Router connection method and device

Scan the router's QR code through the terminal device to obtain WIFI information and establish a LAN connection, which solves the problem of cumbersome router connection in the existing technology, and realizes the connection experience and Internet information acquisition without manually entering a password.

CN119071882APending Publication Date: 2024-12-03HONOR DEVICE CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202310644223.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The connection method of existing routers is cumbersome, and users need to manually enter the WIFI password, which affects the connection experience.

Method used

Scan the target QR code of the router through the terminal device, obtain the first WIFI SSID and password, establish a LAN connection, and obtain the second WIFI SSID and password through the LAN connection, so as to enable the router to be connected without the user manually entering the password.

Benefits of technology

Simplifies the router connection process, improves the user experience, reduces the trouble of memory passwords, and obtains Internet access information in LAN connections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071882A_ABST
    Figure CN119071882A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a router connection method and device, and the method comprises the steps: building first WIFI connection with terminal equipment based on a first WIFI SSID and a first WIFI password; based on the first WIFI connection, sending a second WIFI SSID (Service Set Identifier) and a second WIFI password to the terminal equipment; and establishing a second WIFI connection with the terminal device based on the second WIFI SSID and the second WIFI password. Therefore, the router can realize the local area network connection with the terminal equipment through the first WIFI, and obtains the information of the second WIFI through the local area network connection, thereby realizing the WIFI connection with the router, realizing the connection with the router WIFI without inputting information such as a WIFI password by a user, and bringing better connection experience to the user.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of terminal technology, and in particular to a router connection method and device. Background Art

[0002] With the popularization and development of the Internet, wireless fidelity (WIFI) technology has been widely used in daily life and office scenarios. WIFI technology is a wireless local area network technology based on the Institute of Electrical and Electronics Engineers (IEEE) 802.11 standard.

[0003] Normally, in a scenario where a terminal device is connected to a routing WIFI, the terminal device can open a WIFI search in the setting function based on user operations, select any WIFI that needs to be connected, and enter the WIFI password to successfully connect to the WIFI.

[0004] However, the above router connection method is relatively complicated. Summary of the invention

[0005] The embodiment of the present application provides a router connection method and device. When a terminal device obtains a first WIFI SSID and a first WIFI password based on a target QR code, the router can realize a local area network connection with the terminal device, and return a second WIFI SSID and a second WIFI password to the terminal device through the local area network connection, thereby realizing a WIFI connection with the router, and realizing that the router WIFI can be connected without the user actively entering information such as the WIFI password, thereby bringing a better connection experience to the user.

[0006] In the first aspect, the embodiment of the present application provides a method for connecting a router, which is applied to the router, and the method includes: establishing a first WIFI connection with a terminal device based on a first WIFI SSID and a first WIFI password, wherein the first WIFI SSID and the first WIFI password are determined based on the attribute parameters of the router indicated in the target QR code, and the target QR code is the QR code corresponding to the router; based on the first WIFI connection, sending a second WIFI SSID and a second WIFI password to the terminal device; and establishing a second WIFI connection with the terminal device based on the second WIFI SSID and the second WIFI password. In this way, when the terminal device obtains the first WIFI SSID and the first WIFI password based on the target QR code, the router can realize a local area network connection with the terminal device, and return the second WIFI SSID and the second WIFI password to the terminal device through the local area network connection, thereby realizing a WIFI connection with the router, and realizing that the router WIFI can be connected without the user actively entering information such as the WIFI password, thereby bringing a better connection experience to the user.

[0007] In a possible implementation, the first WIFI connection is a LAN connection. In this way, the router can return the WIFI information that can access the Internet, such as the second WIFI SSID and the second WIFI password, to the terminal device through the LAN connection, thereby achieving the second WIFI connection with the terminal device.

[0008] In a possible implementation, after the second WIFI connection is established, the method further includes: based on the second WIFI connection, receiving a first data packet from the terminal device, the first data packet being a data packet for accessing a network server through the router; and sending a second data packet to the terminal device, the second data packet being a response data packet generated when the network server receives the first data packet. In this way, the router and the terminal device can access the Internet through the established second WIFI. For example, the router can forward the first data packet obtained from the terminal device to the network server based on the second WIFI connection, and return the second data packet in response to the terminal device.

[0009] In a possible implementation, after establishing the second WIFI connection, the method further includes: closing the first WIFI connection. In this way, when establishing the second WIFI connection, the router and the terminal device can reduce resource consumption by closing the first WIFI connection.

[0010] In a possible implementation, the second WIFI SSID is changed to a third WIFI SSID, and / or the second WIFI password is changed to a third WIFI password, and the method further includes: establishing a first WIFI connection with the terminal device based on the first WIFI SSID and the first WIFI password; sending attribute information of the third WIFI to the terminal device based on the first WIFI connection, the attribute information of the third WIFI including: the third WIFI SSID and the third WIFI password; and establishing a third WIFI connection with the terminal device based on the attribute information of the third WIFI. In this way, even if the second WIFI password is changed, the router can establish a first WIFI connection with the terminal device through the first WIFI SSID and the first WIFI password, and return the third WIFI SSID and the third WIFI password to the terminal device based on the first WIFI connection, thereby realizing the establishment of a second WIFI connection with the terminal device, so as to reduce the trouble caused by the user remembering the WIFI password.

[0011] In a possible implementation manner, the attribute parameters of the router include a serial number SN of the router, and the first WIFI SSID and the first WIFI password are determined based on the SN of the router.

[0012] It can be understood that the SN of the router is unique, and the first WIFI SSID and the first WIFI password resolved by the SN are also unique. Therefore, regardless of whether the user knows the WIFI password, the terminal device can use the SN in the attribute parameters of the router to resolve the first WIFI SSID and the first WIFI password, realize the LAN connection between the router, and obtain the WIFI connection information that can access the Internet when the LAN is connected.

[0013] In a possible implementation, the sending of the second WIFI SSID and the second WIFI password to the terminal device based on the first WIFI connection includes: receiving a first request from the terminal device based on the first WIFI connection; sending a first message to the terminal device, wherein the first message includes the second WIFI SSID and the second WIFI password, and the first message is a message generated by the router in response to the first request. In this way, when the router establishes a LAN connection with the terminal device, the router can send the WIFI connection information that can access the Internet to the terminal device, thereby realizing the WIFI connection between the terminal device and the router.

[0014] The first request may be the request for obtaining routing information described in S1310, and the first message may include the routing information described in S1311.

[0015] In a possible implementation, before receiving the first request from the terminal device, the method further includes: receiving a second request from the terminal device; sending a second message to the terminal device, wherein the second message includes a symmetric key, the second message is a message generated by the router in response to the second request, and the first message is a message generated by the router after encrypting the second WIFI SSID and the second WIFI password using the symmetric key. In this way, the router can return the symmetric key supported by the router to the terminal device through the second request and the second message, so that the communication link between the router and the terminal device can be encrypted based on the symmetric key to ensure the security of data transmission.

[0016] In a possible implementation, the first message also includes: information for indicating whether the router wizard configuration is completed, and the method further includes: when the information for indicating whether the router wizard configuration is completed indicates that the router has not completed the wizard configuration, receiving a fourth request from the terminal device; sending a fourth message to the terminal device, the fourth message is a message generated by the router in response to the fourth request, and the fourth message includes the Internet access method of the router, and the Internet access method of the router includes: Ethernet point-to-point communication protocol PPPOE, or dynamic host configuration protocol DHCP. In this way, the router can return the Internet access method obtained by the router to the terminal device through the fourth request and the fourth message, so that the terminal device can realize the display of the configuration interface corresponding to the subsequent Internet access method.

[0017] In the second aspect, the embodiment of the present application provides a router connection method, the method comprising: receiving a first operation of a user scanning a target QR code, the target QR code being a QR code corresponding to the router; in response to the first operation, obtaining a first WIFI service set identifier SSID and a first WIFI password based on the target QR code, the first WIFI SSID and the first WIFI password being determined based on the attribute parameters of the router; establishing a first WIFI connection with the router based on the first WIFI SSID and the first WIFI password; obtaining a second WIFI SSID and a second WIFI password from the router based on the first WIFI connection; establishing a second WIFI connection with the router based on the second WIFI SSID and the second WIFI password. In this way, the terminal device can first establish a local area network connection with the router by directly scanning the target QR code preset by the router, and then automatically obtain the WIFI connection information that can access the Internet through the local area network connection, and then establish a WIFI connection that can access the Internet through the router. The user only needs to scan the target QR code preset by the router, and the user does not need to actively enter information such as the WIFI password to realize the automatic connection of WIFI, which brings a better connection experience to the user.

[0018] In a possible implementation, the first WIFI connection is a LAN connection. In this way, the terminal device can establish LAN communication with the router through the first WIFI connection, so that the terminal device can automatically obtain WIFI connection information that can access the Internet, such as the second WIFI SSID and the second WIFI password, through the LAN communication, and then establish a WIFI connection that can access the Internet with the router.

[0019] Among them, the target QR code can be the mini program code described in the embodiment of this application.

[0020] In a possible implementation, after establishing the second WIFI connection, the method further includes: based on the second WIFI connection, sending a first data packet to the router, the first data packet being a data packet for accessing the network server through the router; receiving a second data packet from the router, the second data packet being a response data packet generated when the network server receives the first data packet. In this way, the terminal device and the router can access the Internet through the established second WIFI connection, for example, the router can forward the first data packet obtained from the terminal device to the network server based on the second WIFI connection, and return the second data packet in response to the terminal device.

[0021] In a possible implementation, after establishing the second WIFI connection, the method further includes: closing the first WIFI connection. In this way, when establishing the second WIFI connection, resource consumption between the terminal device and the router can be reduced by closing the first WIFI connection.

[0022] In a possible implementation, the second WIFI SSID is changed to a third WIFI SSID, and / or the second WIFI password is changed to a third WIFI password, and the method further includes: receiving a second operation of a user scanning a target QR code; in response to the second operation, obtaining the first WIFI SSID and the first WIFI password based on the target QR code; establishing a first WIFI connection with a router based on the first WIFI SSID and the first WIFI password; obtaining attribute information of a third WIFI from the router based on the first WIFI connection, the attribute information of the third WIFI including: a third WIFI SSID and a third WIFI password; and establishing a third WIFI connection with the router based on the attribute information of the third WIFI. In this way, even if the second WIFI password is changed, the first WIFI connection can be established with the router again by scanning the target QR code, and then the changed third WIFI SSID and the third WIFI password can be obtained from the router, reducing the trouble caused by the user remembering the WIFI password.

[0023] Among them, in the attribute information of the third WIFI: the third WIFI SSID is the same as the second WIFI SSID and the third WIFI password is different from the second WIFI password, or the third WIFI SSID is different from the second WIFI SSID and the third WIFI password is the same as the second WIFI password, or the third WIFI SSID is different from the second WIFI SSID and the third WIFI password is different from the second WIFI password.

[0024] In a possible implementation, after establishing the second WIFI connection, the method further includes: receiving a third operation of the user; in response to the third operation, sending the attribute information of the third WIFI to the router, the attribute information of the third WIFI is obtained by adjusting the attribute information of the second WIFI based on the third operation, and the attribute information of the second WIFI includes: the second WIFI SSID and the second WIFI password. In this way, the user can flexibly modify the second WIFI SSID and the second WIFI password, and the modified attribute information of the third WIFI can be sent to the router so that the terminal device can obtain it at any time.

[0025] In a possible implementation, the attribute parameters of the router include a serial number SN of the router, and the first WIFI SSID and the first WIFI password are determined based on the SN of the router.

[0026] It can be understood that the SN of the router is unique, and the first WIFI SSID and the first WIFI password resolved by the SN are also unique. Therefore, regardless of whether the user knows the WIFI password, the terminal device can use the SN in the attribute parameters of the router to resolve the first WIFI SSID and the first WIFI password, realize the LAN connection between the router, and obtain the WIFI connection information that can access the Internet when the LAN is connected.

[0027] In a possible implementation, based on the first WIFI connection, obtaining the second WIFI SSID and the second WIFI password from the router includes: based on the first WIFI connection, sending a first request to the router; receiving a first message from the router, the first message including the second WIFI SSID and the second WIFI password, the first message being a message generated by the router in response to the first request. In this way, when the terminal device establishes a local area network connection with the router, the terminal device can obtain WIFI connection information that can access the Internet, such as the real second WIFI SSID and the second WIFI password of the router, and then realize the WIFI connection between the terminal device and the router.

[0028] The first request may be the request for obtaining routing information described in S1310, and the first message may include the routing information described in S1311.

[0029] In a possible implementation, before sending the first request, the method further includes: sending a second request to the router; receiving a second message from the router, the second message including the symmetric key, the second message being a message generated by the router in response to the second request, and the first message being a message generated by the router after encrypting the second WIFI SSID and the second WIFI password using the symmetric key. In this way, the terminal device can obtain the symmetric key supported by the router through the second request and the second message, so that the communication link between the terminal device and the router can be encrypted based on the symmetric key to ensure the security of data transmission.

[0030] The second request may be the request for obtaining the symmetric key described in S1308, and the second message may include the symmetric key described in S1309.

[0031] In a possible implementation, before establishing the first WIFI connection, the method further includes: obtaining a uniform resource locator URL from the target QR code; sending a third request to the first server, the third request including the URL; receiving a third message from the first server, and displaying the first prompt information in the first interface, the third message including at least one interface information corresponding to the URL, the at least one interface information including the interface information corresponding to the first interface, the third message is a message generated by the server in response to the third request, and the first prompt information is used to prompt the terminal device to enter the code scanning connection system. In this way, the terminal device can pull up the applet and display the first interface through the URL obtained from the target QR code, so as to enrich the user's experience of using the code scanning connection system.

[0032] The third request may be a request for obtaining a mini program page as described in S1303, the third message may include page information corresponding to the mini program as described in S1304, and the first interface may be Figure 5 In the interface shown in b, the first prompt information can be Figure 5 The interface shown in b in FIG. 1 is used to describe the prompt information for welcoming the user to join the one-scan connection system.

[0033] In a possible implementation, after displaying the first prompt information in the first interface, the method further includes: displaying the second prompt information in the second interface, the second prompt information is used to prompt the terminal device that the first information is being synchronized, and the first information includes: a second WIFI SSID and a second WIFI password.

[0034] The second interface can be Figure 5 In the interface shown in c, the first information may be the routing information described in the embodiment of the present application, and the second prompt information may be Figure 5 The prompt information shown in c in FIG. 1 is used to prompt that the routing information is being synchronized.

[0035] In a possible implementation, after obtaining the second WIFI SSID and the second WIFI password from the router, the method further includes: displaying a third prompt message and a fourth prompt message in sequence in the second interface, the third prompt message is used to prompt that the first information is successfully synchronized in the terminal device, and the fourth prompt message is used to prompt that the terminal device is connecting to the router WIFI. In this way, the user can confirm the different stages of the terminal device connecting to the router WIFI through the third prompt message and the fourth prompt message, so as to enrich the user's experience of using the one-scan connection system.

[0036] The second interface can be Figure 5 The interface shown in d, or Figure 5 In the interface shown in e, the third prompt information can be Figure 5The prompt information for prompting successful synchronization of routing information in the interface shown in d in FIG. 1 may be Figure 5 The interface shown in e is used to prompt that the router WIFI is being connected.

[0037] In a possible implementation, the method further includes: when the first information is not detected, displaying fifth prompt information and sixth prompt information in the second interface, the fifth prompt information is used to prompt that the first information fails to be synchronized in the terminal device, and the sixth prompt information includes at least one strategy for reacquiring the first information. In this way, the user can determine that the first information is not detected through the fifth prompt information, and determine the possible reasons for the failure to synchronize the first information through the sixth prompt information, so that the user can promptly repair the connection between the terminal device and the router through the sixth prompt information, so as to enrich the user's experience of using the one-scan connection system.

[0038] The second interface can be Fig.10 In the interface shown in a, the fifth prompt information can be Fig.10 The prompt information in the interface shown in a in , which is used to prompt the route configuration failure, the sixth prompt information may be prompt information for prompting the user to adjust the line.

[0039] In a possible implementation, after establishing the second WIFI connection, the method further includes: displaying a seventh prompt message in the second interface, the seventh prompt message being used to prompt that the terminal device is successfully connected to the router. In this way, the user can confirm that the terminal device is successfully connected to the router WIFI through the seventh prompt message, thereby enriching the user's experience of using the one-scan connection function.

[0040] The second interface can be Figure 5 In the interface shown in f, the seventh prompt information can be Figure 5 The interface shown in f is used to prompt that the router WIFI has been connected.

[0041] In a possible implementation, the first information may also include: information for indicating whether the router wizard configuration is completed, and the method further includes: in the information for indicating whether the router wizard configuration is completed, when the router wizard configuration is not completed, sending a fourth request to the router; receiving a fourth message from the router, the fourth message is a message generated by the router in response to the fourth request, and the fourth message includes the Internet access method of the router, and the Internet access method of the router includes: Ethernet point-to-point communication protocol PPPOE, or dynamic host configuration protocol DHCP. In this way, the terminal device can obtain the Internet access method from the router through the fourth request and the fourth message, so as to realize the display of the configuration interface corresponding to the subsequent Internet access method.

[0042] The fourth request may be the request for obtaining the Internet access method described in S1401, and the fourth message may include the Internet access method detection result described in S1402.

[0043] In a possible implementation, the target QR code is a mini-program code. In this way, the terminal device can make full use of the convenient attributes of the mini-program, use the mini-program to connect to the router WIFI and / or use the mini-program to implement the routing wizard configuration, making it convenient for ordinary users to connect and configure the router without any threshold.

[0044] In a possible implementation, after sending the fourth request to the router, the method further includes: displaying an eighth prompt message in the third interface, the eighth prompt message being used to prompt the terminal device that the router is detecting the Internet access method of the router. In this way, the user can understand the different stages of the router wizard configuration through the eighth prompt message.

[0045] Among them, the third interface can be Figure 6 The interface shown in a or Figure 8 In the interface shown in a, the eighth prompt information can be Figure 6 The interface shown in a or Figure 8 The interface shown in a in FIG. 1 is used to indicate that the router's Internet access method is being detected.

[0046] In a possible implementation, after receiving the fourth message from the router, the method further includes: displaying a first control in the third interface, the first control is used to indicate the completion of the router wizard configuration, and when the Internet access mode is PPPOE, the third interface also includes: a text box for setting the second WIFI SSID, a text box for setting the second WIFI password, a text box for setting the broadband account, and a text box for setting the broadband password, or, when the Internet access mode is DHCP, the third interface also includes: a text box for setting the second WIFI SSID, and a text box for setting the second WIFI password. In this way, the terminal device can implement the router wizard configuration for different Internet access modes, which is convenient for ordinary users to connect and configure the router with zero threshold.

[0047] Among them, the third interface can be Figure 6 b- Figure 6 Any interface in d, or Figure 8 a- Figure 8 In any interface of c, the first control can be Figure 6 The corresponding embodiment described in the completion configuration control 603, or Figure 8 The completion configuration control 805 described in the corresponding embodiment.

[0048] When the Internet access method is PPPOE, see Figure 8 In the corresponding embodiment, the text box for setting the second WIFI SSID may be text box 803, the text box for setting the second WIFI password may be text box 804, the text box for setting the broadband account may be text box 801, and the text box for setting the broadband password may be text box 802. Alternatively, when the Internet access mode is DHCP, see Figure 6 In a corresponding embodiment, the text box for setting the second WIFI SSID may be text box 601 , and the text box for setting the second WIFI password may be text box 602 .

[0049] In a possible implementation, the Internet access method is PPPOE, the router wizard configuration includes the Internet access method configuration corresponding to PPPOE, and the WIFI configuration of the router, and the method also includes: receiving a second WIFI SSID input by the user in a text box for setting a second WIFI SSID, inputting a second WIFI password in a text box for setting a second WIFI password, inputting a broadband account corresponding to PPPOE in a text box for setting a broadband account, inputting a broadband password corresponding to PPPOE in a text box for setting a broadband password, and receiving a fourth operation of the user on the first control; in response to the fourth operation, sending a fifth message to the router, and displaying a ninth prompt information in the third interface, wherein the fifth message includes: the second WIFI SSID, second WIFI password, broadband account corresponding to PPPOE, and broadband password corresponding to PPPOE, the ninth prompt information is used to prompt that the router is saving the router wizard configuration corresponding to the fourth operation; when receiving the sixth message from the router, the tenth prompt information is displayed in the third interface, the tenth prompt information is used to prompt that the router wizard configuration is successful, the sixth message is a message generated when the router receives the fifth message and determines that the router wizard configuration is successful; or, when receiving the seventh message from the router, the eleventh prompt information is displayed in the third interface, the eleventh prompt information is used to prompt that the router wizard configuration fails, the seventh message is a message generated when the router receives the fifth message and determines that the router wizard configuration fails, and the router wizard configuration failure includes: the Internet access method configuration corresponding to PPPOE, and / or the WIFI configuration of the router. In this way, the user can configure the PPPOE Internet access method in the third interface, and can determine the configuration of the router according to the tenth prompt information or the eleventh prompt information.

[0050] Among them, the fifth message can be a message containing configuration information described in S1406, the sixth message can be a message described in S1413 for indicating successful configuration, the seventh message can be a message described in S1408 for indicating failure of Internet access configuration, and / or a message described in S1411 for indicating failure of WIFI configuration.

[0051] The tenth prompt message can be Figure 7 The interface shown in d or Fig. 9 The prompt information in the interface shown in d in FIG. 1 is used to prompt the completion of the router configuration; the eleventh prompt information can be Fig.11 a in or Fig.11 b in or Fig.11 Any prompt information in the interface shown in c.

[0052] In a possible implementation, the method further includes: sending a fifth request to the router, and displaying a twelfth prompt message in the third interface, the fifth request is used to request to restart the second WIFI of the router, and the twelfth prompt message is used to prompt that the router is restarting the second WIFI; receiving an eighth message from the router, the eighth message is a message generated by the router in response to the fifth request; after receiving the eighth message from the router, the method further includes: displaying a thirteenth prompt message in the third interface, the thirteenth prompt message is used to prompt that the terminal device is connecting to the second WIFI of the router. In this way, the user can determine the different stages of the terminal device connecting to the router according to the twelfth prompt message and the thirteenth prompt message, thereby improving the user's experience of using the one-scan connection system.

[0053] The fifth request may be a request for instructing to restart the second WIFI as described in S1414, and the eighth message may be a message for indicating that the second WIFI is successfully restarted as described in S1415. The twelfth prompt information may be Figure 7 b or Fig. 9 The prompt message for restarting WIFI in the interface shown in b in FIG. 13 may be Figure 7 c or Fig. 9 The interface shown in c in FIG. 1 is used to prompt the user to reconnect to WIFI.

[0054] In a possible implementation, the method further includes: when it is detected that the model corresponding to the terminal device does not meet the preset model, displaying a fourteenth prompt message in the first interface; and / or, when it is detected that the system version corresponding to the terminal device does not meet the preset system version, displaying a fifteenth prompt message in the first interface, the fourteenth prompt message and the fifteenth prompt message are both used to prompt the user to download a preset application, and the preset application is used to implement the router wizard configuration. In this way, the user can perform the router wizard configuration in the preset application according to the guidance of the terminal device.

[0055] The fourteenth prompt information can be Fig.12 a or Fig.12The prompt message shown in b in the figure is used to prompt that the one-scan connection system does not support the current model and download the smart space APP. The fifteenth prompt message can be Fig.12 The c in the figure indicates that the system version is low and prompts you to download the Smart Space APP.

[0056] Among them, the preset application can be the smart space APP described in the embodiment of this application.

[0057] In a third aspect, an embodiment of the present application provides a connection device of a router, wherein a communication unit in the router is used to establish a first WIFI connection with a terminal device based on a first WIFI SSID and a first WIFI password, wherein the first WIFI SSID and the first WIFI password are determined based on attribute parameters of the router indicated in a target QR code, and the target QR code is a QR code corresponding to the router; the communication unit in the router is also used to send a second WIFI SSID and a second WIFI password to the terminal device based on the first WIFI connection; the communication unit in the router is also used to establish a second WIFI connection with the terminal device based on the second WIFI SSID and the second WIFI password.

[0058] In a possible implementation manner, the first WIFI connection is a local area network connection.

[0059] In a possible implementation, the communication unit in the router is further used to receive a first data packet from the terminal device based on the second WIFI connection, where the first data packet is a data packet for accessing a network server through the router; the communication unit in the router is further used to send a second data packet to the terminal device, where the second data packet is a response data packet generated by the network server when receiving the first data packet.

[0060] In a possible implementation manner, the communication unit in the router is further configured to close the first WIFI connection.

[0061] In a possible implementation, the communication unit in the router is further used to establish a first WIFI connection with the terminal device based on the first WIFI SSID and the first WIFI password; the communication unit in the router is further used to send attribute information of a third WIFI to the terminal device based on the first WIFI connection, where the attribute information of the third WIFI includes: the third WIFI SSID and the third WIFI password; the communication unit in the router is further used to establish a third WIFI connection with the terminal device based on the attribute information of the third WIFI.

[0062] In a possible implementation manner, the attribute parameters of the router include a serial number SN of the router, and the first WIFI SSID and the first WIFI password are determined based on the SN of the router.

[0063] In a possible implementation, the communication unit in the router is further used to receive a first request from the terminal device based on the first WIFI connection; the communication unit in the router is further used to send a first message to the terminal device, wherein the first message includes the second WIFI SSID and the second WIFI password, and the first message is a message generated by the router in response to the first request.

[0064] In a possible implementation, the communication unit in the router is further used to receive a second request from the terminal device; the communication unit in the router is further used to send a second message to the terminal device, the second message includes a symmetric key, the second message is a message generated by the router in response to the second request, and the first message is a message generated by the router after encrypting the second WIFI SSID and the second WIFI password using the symmetric key.

[0065] In a possible implementation, the first message also includes: information for indicating whether the router wizard configuration is completed, and when the information for indicating whether the router wizard configuration is completed indicates that the router has not completed the wizard configuration, the communication unit in the router is further used to receive a fourth request from the terminal device; the communication unit in the router is further used to send a fourth message to the terminal device, the fourth message is a message generated by the router in response to the fourth request, the fourth message includes the Internet access method of the router, and the Internet access method of the router includes: Ethernet point-to-point communication protocol PPPOE, or dynamic host configuration protocol DHCP.

[0066] In a fourth aspect, an embodiment of the present application provides a router connection device, comprising a processing unit in a terminal device and a communication unit in the terminal device, the processing unit in the terminal device being used to receive a first operation of a user scanning a target QR code, where the target QR code is a QR code corresponding to the router; in response to the first operation, the processing unit in the terminal device is also used to obtain a first WIFI service set identifier SSID and a first WIFI password based on the target QR code, where the first WIFI SSID and the first WIFI password are determined based on attribute parameters of the router; the communication unit in the terminal device is used to establish a first WIFI connection with the router based on the first WIFI SSID and the first WIFI password; the communication unit in the terminal device is also used to obtain a second WIFI SSID and a second WIFI password from the router based on the first WIFI connection; the communication unit in the terminal device is also used to establish a second WIFI connection with the router based on the second WIFI SSID and the second WIFI password.

[0067] In a possible implementation manner, the first WIFI connection is a local area network connection.

[0068] In one possible implementation, after establishing the second WIFI connection, the communication unit in the terminal device is also used to send a first data packet to the router based on the second WIFI connection, where the first data packet is a data packet for accessing the network server through the router; the communication unit in the terminal device is also used to receive a second data packet from the router, where the second data packet is a response data packet generated when the network server receives the first data packet.

[0069] After establishing the second WIFI connection, the communication unit in the terminal device is also used to close the first WIFI connection.

[0070] In a possible implementation, the second WIFI SSID is changed to a third WIFI SSID, and / or the second WIFI password is changed to a third WIFI password, and the processing unit in the terminal device is further used to receive a second operation of a user scanning a target QR code; in response to the second operation, the processing unit in the terminal device is further used to obtain the first WIFI SSID and the first WIFI password based on the target QR code; the communication unit in the terminal device is further used to establish a first WIFI connection with a router based on the first WIFI SSID and the first WIFI password; the communication unit in the terminal device is further used to obtain attribute information of a third WIFI from the router based on the first WIFI connection, the attribute information of the third WIFI including: a third WIFI SSID and a third WIFI password; the communication unit in the terminal device is further used to establish a third WIFI connection with the router based on the attribute information of the third WIFI.

[0071] In a possible implementation, the processing unit in the terminal device is further used to receive a third operation of the user; in response to the third operation, the communication unit in the terminal device is further used to send attribute information of the third WIFI to the router, the attribute information of the third WIFI is obtained by adjusting the attribute information of the second WIFI based on the third operation, and the attribute information of the second WIFI includes: a second WIFI SSID and a second WIFI password.

[0072] In a possible implementation, the attribute parameters of the router include a serial number SN of the router, and the first WIFI SSID and the first WIFI password are determined based on the SN of the router.

[0073] In a possible implementation, the communication unit in the terminal device is specifically used to send a first request to the router based on the first WIFI connection; the communication unit in the terminal device is also specifically used to receive a first message from the router, the first message includes a second WIFI SSID and a second WIFI password, and the first message is a message generated by the router in response to the first request.

[0074] In a possible implementation, the communication unit in the terminal device is further used to send a second request to the router; the communication unit in the terminal device is further used to receive a second message from the router, the second message includes a symmetric key, the second message is a message generated by the router in response to the second request, and the first message is a message generated by the router after encrypting the second WIFI SSID and the second WIFI password using the symmetric key.

[0075] In one possible implementation, the processing unit in the terminal device is also used to obtain a uniform resource locator URL from the target QR code; the communication unit in the terminal device is also used to send a third request to the first server, the third request includes a URL; the communication unit in the terminal device is also used to receive a third message from the first server, and the display unit in the terminal device is used to display a first prompt information in the first interface, the third message includes at least one interface information corresponding to the URL, and the at least one interface information includes interface information corresponding to the first interface, the third message is a message generated by the server in response to the third request, and the first prompt information is used to prompt the terminal device to enter the code scanning connection system.

[0076] In a possible implementation, the display unit in the terminal device is also used to display second prompt information in the second interface, and the second prompt information is used to prompt the terminal device that the first information is being synchronized, and the first information includes: a second WIFI SSID and a second WIFI password.

[0077] In one possible implementation, the display unit in the terminal device is also used to display a third prompt message and a fourth prompt message in sequence in the second interface, the third prompt message is used to prompt that the first information is successfully synchronized in the terminal device, and the fourth prompt message is used to prompt that the terminal device is connecting to the router WIFI.

[0078] In one possible implementation, when the first information is not detected, the display unit in the terminal device is also used to display fifth prompt information and sixth prompt information in the second interface, the fifth prompt information is used to prompt that the first information has failed to synchronize in the terminal device, and the sixth prompt information includes at least one strategy for reacquiring the first information.

[0079] In a possible implementation, the display unit in the terminal device is further used to display seventh prompt information in the second interface, and the seventh prompt information is used to prompt that the terminal device is successfully connected to the router.

[0080] In a possible implementation, the first information may also include: information used to indicate whether the router wizard configuration is completed. In the information used to indicate whether the router wizard configuration is completed, when it is indicated that the router has not completed the wizard configuration, the communication unit in the terminal device is also used to send a fourth request to the router; the communication unit in the terminal device is also used to receive a fourth message from the router, the fourth message is a message generated by the router in response to the fourth request, the fourth message includes the router's Internet access method, and the router's Internet access method includes: Ethernet point-to-point communication protocol PPPOE, or dynamic host configuration protocol DHCP.

[0081] In a possible implementation, the display unit in the terminal device is further used to display an eighth prompt message in the third interface, and the eighth prompt message is used to prompt the terminal device that it is detecting the Internet access mode of the router.

[0082] In a possible implementation, the display unit in the terminal device is also used to display the first control in the third interface, and the first control is used to indicate the completion of the router wizard configuration. When the Internet access method is PPPOE, the third interface also includes: a text box for setting the second WIFI SSID, a text box for setting the second WIFI password, a text box for setting the broadband account, and a text box for setting the broadband password. Alternatively, when the Internet access method is DHCP, the third interface also includes: a text box for setting the second WIFI SSID, and a text box for setting the second WIFI password.

[0083] In a possible implementation, the Internet access method is PPPOE, the router wizard configuration includes the Internet access method configuration corresponding to PPPOE, and the WIFI configuration of the router, the processing unit in the terminal device is also used to receive the user input of the second WIFI SSID in the text box for setting the second WIFI SSID, the second WIFI password in the text box for setting the second WIFI password, the broadband account corresponding to PPPOE in the text box for setting the broadband account, the broadband password corresponding to PPPOE in the text box for setting the broadband password, and receive the user's fourth operation on the first control; in response to the fourth operation, the communication unit in the terminal device is also used to send a fifth message to the router, and the display unit in the terminal device is also used to display a ninth prompt information in the third interface, and the fifth message includes: the second WIFI SSID, a second WIFI password, a broadband account corresponding to PPPOE, and a broadband password corresponding to PPPOE, the ninth prompt information is used to prompt that the router is saving the router wizard configuration corresponding to the fourth operation; when the communication unit in the terminal device receives the sixth message from the router, the display unit in the terminal device is also used to display the tenth prompt information in the third interface, the tenth prompt information is used to prompt that the router wizard configuration is successful, the sixth message is the message generated when the router receives the fifth message and determines that the router wizard configuration is successful; or, when the communication unit in the terminal device receives the seventh message from the router, the display unit in the terminal device is also used to display the eleventh prompt information in the third interface, the eleventh prompt information is used to prompt that the router wizard configuration fails, the seventh message is the message generated when the router receives the fifth message and determines that the router wizard configuration fails, and the router wizard configuration failure includes: the Internet access method configuration corresponding to PPPOE, and / or the WIFI configuration of the router.

[0084] In a possible implementation, the communication unit in the terminal device is further used to send a fifth request to the router, and the display unit in the terminal device is further used to display a twelfth prompt message in the third interface, where the fifth request is used to request to restart the second WIFI of the router, and the twelfth prompt message is used to prompt that the router is restarting the second WIFI; the communication unit in the terminal device is further used to receive an eighth message from the router, where the eighth message is a message generated by the router in response to the fifth request; the display unit in the terminal device is further used to display a thirteenth prompt message in the third interface, and the thirteenth prompt message is used to prompt that the terminal device is connecting to the second WIFI of the router.

[0085] In one possible implementation, when the processing unit in the terminal device detects that the model corresponding to the terminal device does not meet the preset model, the display unit in the terminal device is also used to display the fourteenth prompt information in the first interface; and / or, when the processing unit in the terminal device detects that the system version corresponding to the terminal device does not meet the preset system version, the display unit in the terminal device is also used to display the fifteenth prompt information in the first interface, and the fourteenth prompt information and the fifteenth prompt information are both used to prompt the user to download a preset application, and the preset application is used to implement the router wizard configuration.

[0086] In a fifth aspect, the present application provides a terminal device, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the terminal device executes the method in the second aspect and any possible design thereof.

[0087] In a sixth aspect, the present application provides a router, comprising a memory and one or more processors; wherein the memory is used to store computer program code, and the computer program code comprises computer instructions; when the computer instructions are executed by the processor, the router executes the method in the first aspect and any possible design thereof.

[0088] In a seventh aspect, the present application provides a computer-readable storage medium, the computer-readable storage medium comprising computer instructions. When the computer instructions are executed on a terminal device (such as a computer), the terminal device executes the method of the second aspect and any possible design thereof, or when the computer instructions are executed on a router, the router executes the method of the first aspect and any possible design thereof.

[0089] In an eighth aspect, the present application provides a computer program product, which, when executed on a computer, enables the computer to execute a method as in the first aspect and any possible design thereof, or a method as in the second aspect and any possible design thereof.

[0090] In a ninth aspect, the present application provides a chip system, which includes one or more interface circuits and one or more processors. The interface circuit and the processor are interconnected by lines. The above chip system can be applied to a terminal device including a communication module and a memory. The interface circuit is used to receive a signal from the memory of the terminal device and send the received signal to the processor, where the signal includes a computer instruction stored in the memory. When the processor executes the computer instruction, the terminal device can execute the method as in the second aspect and any possible design thereof.

[0091] It can be understood that the beneficial effects of the third aspect to the ninth aspect mentioned above can be referred to as the beneficial effects in the first aspect to the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0092] Figure 1 A schematic diagram of a scenario provided for an embodiment of the present application;

[0093] Figure 2 It is a schematic diagram of an interface for connecting to a router WIFI;

[0094] Figure 3 This is a schematic diagram of an interface for sharing a WIFI password;

[0095] Figure 4 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application;

[0096] Figure 5 A schematic diagram of an interface for connecting to a router provided in an embodiment of the present application;

[0097] Figure 6 A schematic diagram of a router configuration interface provided in an embodiment of the present application Figure 1 ;

[0098] Figure 7 A schematic diagram of a router configuration interface provided in an embodiment of the present application Figure 2 ;

[0099] Figure 8 Another example of a router configuration interface provided in the present application Figure 1 ;

[0100] Fig. 9 Another example of a router configuration interface provided in the present application Figure 2 ;

[0101] Fig.10 A schematic diagram of an interface in which routing information is not detected provided in an embodiment of the present application;

[0102] Fig.11 A schematic diagram of an interface of a router configuration failure provided in an embodiment of the present application;

[0103] Fig.12 A schematic diagram of an interface for prompting to download the Smart Space APP is provided for an embodiment of the present application;

[0104] Fig.13 A schematic diagram of a flow chart of a router connection method provided in an embodiment of the present application;

[0105] Fig.14 A schematic diagram of a flow chart of a parameter configuration method of a router provided in an embodiment of the present application;

[0106] Fig.15 A schematic diagram of a router connection device provided in an embodiment of the present application Figure 1 ;

[0107] Fig.16 A schematic diagram of a router connection device provided in an embodiment of the present application Figure 2 ;

[0108] Fig.17 A schematic diagram of the hardware structure of another device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0109] In order to facilitate the clear description of the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the first value and the second value are only used to distinguish different values, and their order is not limited. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0110] It should be noted that, in this application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0111] In the present application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.

[0112] To facilitate understanding of the embodiments of the present application, some terms involved in the present application are first briefly explained.

[0113] 1. Point to point protocol over ethernet (PPPOE) Internet access

[0114] PPPOE Internet access can be a dial-up Internet access method using the PPPOE protocol. Usually, after the broadband is activated, the operator can provide the user who uses PPPOE Internet access with a broadband account and broadband password. The user can enter the broadband account and broadband password in the terminal device configured with the router. After the broadband account and broadband password are successfully verified, the terminal device can obtain the Internet Protocol (IP) address to access the Internet.

[0115] 2. Dynamic host configuration protocol (DHCP) Internet access

[0116] DHCP Internet access can be a way of surfing the Internet using the DHCP protocol and based on a dynamic IP address assigned by a DHCP server. Generally, a terminal device can automatically obtain an IP address when it needs to surf the Internet, and surf the Internet based on the obtained IP address.

[0117] A router connection method provided in an embodiment of the present application can be applied to the above-mentioned PPPOE Internet access and / or DHCP Internet access. In combination with PPPOE Internet access and DHCP Internet access, it can be understood that DHCP Internet access does not require identity authentication, and the terminal device only needs to wait for the DHCP server to randomly assign an IP address from multiple IP addresses. PPPOE Internet access requires identity authentication first, and the terminal device can only be assigned a valid IP address when the broadband account and broadband password are verified correctly.

[0118] For example, Figure 1 A schematic diagram of a scenario provided in an embodiment of the present application. Figure 1 As shown, the scenario may include: a terminal device 101 and a router 102, and the terminal device 101 may be a mobile phone.

[0119] Typically, after the user gets the router 102, the user may need to perform wizard configuration on the router 102 according to different Internet access methods. After the wizard configuration is completed, the terminal device can access the WIFI network by connecting to the router 102. For example, the terminal device 101 can open the setting function based on the user operation, search for WIFI signals when receiving the user turning on the WIFI search button, establish a connection with the router 102 when receiving the user triggering any WIFI and entering the password corresponding to any WIFI, and realize wireless Internet access.

[0120] Specifically, Figure 2 This is a schematic diagram of an interface for connecting to a router WIFI. When a terminal device searches for a network that can be connected, it can display Figure 2 The interface shown in a in the figure may include a control 201 corresponding to WIFI1 and a control corresponding to WIFI2. When the terminal device receives a trigger operation of a user triggering a control corresponding to any WIFI, such as receiving a trigger operation of a user triggering a control 201 corresponding to WIFI1, the terminal device may display the following information: Figure 2 The interface shown in b in the figure. Figure 2 The interface shown in b in FIG. 1 may include a text box for inputting a password corresponding to WIFI1, and the user may connect to WIFI1 by inputting the password in the text box.

[0121] In the above Figure 2 In the corresponding scenario, the user needs to manage the WIFI password entered when connecting to the router. When the user does not know the WIFI password, the terminal device 101 can also access the WIFI of the router 102 based on the following two methods.

[0122] In one implementation, the terminal device 101 can connect to the router 102 by triggering a preset button in the router 102, and the preset button is used to achieve a quick connection between the terminal device 101 and the router 102. For example, the terminal device 101 can search for a router 102 with a preset button, and display a password setting interface based on a user operation. When the terminal device 101 receives an operation from the user to set the WIFI password of the router 102, the terminal device 101 can send the WIFI password to the router 102. Further, when the user triggers the logo corresponding to the router 102 in the interface displayed by the terminal device 101 and brings the terminal device 101 close to the router 102, the router 102 can discover the terminal device 101, and then the user can trigger the preset button in the router 102 to enable the terminal device 101 to access the WIFI of the router 102.

[0123] In another implementation, when the user does not know the WIFI password, the terminal device 101 can also obtain the WIFI password by scanning the QR code shared by other devices that have been connected to the WIFI of the router 102 (such as Figure 3 Corresponding interface), and then based on the user entering the WIFI password in this device, access to the WIFI of router 102.

[0124] Figure 3 A schematic diagram of an interface for sharing a WIFI password. Figure 3The interface displayed for the device that has been connected to the WIFI of the router 102 may include one or more of the following: a control 301 corresponding to WIFI1, a QR code 302 corresponding to WIFI1, and text information for indicating sharing the WIFI password, etc. The present embodiment of the application does not specifically limit the content displayed in the interface. Suitably, the terminal device 101 can obtain the password of WIFI1 by scanning the QR code 302, and access the WIFI of the router 102 when receiving the password of WIFI1 input by the user.

[0125] However, regardless of whether the user knows the WIFI password or not, the steps for the above terminal device to connect to the router WIFI are relatively cumbersome and affect the user's experience of using the WIFI function.

[0126] In view of this, the embodiment of the present application provides a router connection method, whereby the terminal device can first establish a local area network connection with the router by directly scanning the target QR code preset in the router, and then automatically obtain the WIFI connection information that can access the Internet through the local area network connection, and then establish a WIFI connection that can access the Internet through the router. The user only needs to scan the target QR code preset in the router, and does not need to actively enter the WIFI password and other information to achieve automatic WIFI connection, which brings a better connection experience to the user.

[0127] The core of this solution is that the terminal device first establishes a local area network connection with the router through the first WIFI SSID and the first WIFI password parsed from the target QR code, thereby initially establishing a connection with the router. After the connection is established, the terminal device can obtain WIFI connection information that can access the Internet from the router through the local area network, such as the second WIFI SSID and the second WIFI password. Then, after connecting to the router using the WIFI connection information that can access the Internet, the terminal device can connect to the network server through the router to access the Internet.

[0128] Among them, since the first WIFI SSID and the first WIFI password are parameters generated based on the attribute parameters of the router, and the second WIFI SSID and the second WIFI password are parameters used to connect to the router and access the Internet, this solution can establish a local area network connection between the terminal device and the router through the first WIFI, and obtain WIFI connection information that can access the Internet, such as the second WIFI SSID and the second WIFI password, when the local area network connection is established, thereby reducing the trouble caused by users remembering WIFI passwords.

[0129] In a possible implementation, when the user has not performed wizard configuration on the router, the terminal device can open a browser (or download an application (APP) provided by the router manufacturer) based on the user's operation, and complete the wizard configuration of the router by automatically obtaining the IP address, modifying the WIFI name, and setting the WIFI password in the browser interface, or complete the wizard configuration of the router by entering the broadband account and broadband password, modifying the WIFI name, and setting the WIFI password in the browser interface.

[0130] In view of the fact that the router parameter configuration is relatively complicated, the embodiment of the present application provides a router connection method that can also enable the terminal device to scan the small program code preset by the router to achieve extremely simple configuration of the router in the process of quickly connecting to the router WIFI.

[0131] The above-mentioned terminal devices can be called terminals, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. For example, the terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiments of the present application do not limit the specific technology and specific device form adopted by the terminal device.

[0132] In order to better understand the embodiment of the present application, the structure of the terminal device of the embodiment of the present application is introduced below. Figure 4 A schematic diagram of the hardware structure of a terminal device provided in an embodiment of the present application.

[0133] like Figure 4As shown, the terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.

[0134] The sensor module 180 may include one or more of the following, for example: a pressure sensor, a gyroscope sensor, an air pressure sensor, a magnetic sensor, an acceleration sensor, a distance sensor, a proximity light sensor, a fingerprint sensor, a temperature sensor, a touch sensor, an ambient light sensor, or a bone conduction sensor.

[0135] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.

[0136] The processor 110 may include one or more processing units. Different processing units may be independent devices or integrated into one or more processors. The processor 110 may also be provided with a memory for storing instructions and data.

[0137] The USB interface 130 is an interface that complies with the USB standard specification, and specifically can be a Mini USB interface, a Micro USB interface, a USB Type C interface, etc. The USB interface 130 can be used to connect a charger to charge the terminal device, and can also be used to transfer data between the terminal device and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other devices, such as AR devices, etc.

[0138] The charging management module 140 is used to receive charging input from a charger, which may be a wireless charger or a wired charger. The power management module 141 is used to connect the charging management module 140 to the processor 110 .

[0139] The wireless communication function of the terminal device can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160 and baseband processor.

[0140] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. The antenna in the terminal device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna.

[0141] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to terminal devices. The mobile communication module 150 can include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, etc. the received electromagnetic waves, and transmit them to the modem for demodulation.

[0142] The wireless communication module 160 can provide wireless communication solutions applied to terminal devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), etc.

[0143] The modem may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker, a receiver, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem may be an independent device. In other embodiments, the modem may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0144] The terminal device realizes the display function through the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering.

[0145] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0146] The terminal device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0147] The camera 193 is used to capture static images or videos. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0148] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.

[0149] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The internal memory 121 can include a program storage area and a data storage area.

[0150] The terminal device can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.

[0151] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Speaker 170A, also known as "speaker", is used to convert audio electrical signals into sound signals. The terminal device can listen to music or listen to hands-free calls through speaker 170A. Receiver 170B, also known as "earpiece", is used to convert audio electrical signals into sound signals. When the terminal device answers a call or voice message, the voice can be answered by placing receiver 170B close to the human ear. Headphone interface 170D is used to connect wired headphones. Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. In an embodiment of the present application, the terminal device may have a microphone 170C.

[0152] The button 190 includes a power button, a volume button, etc. The button 190 may be a mechanical button. It may also be a touch button. The terminal device may receive the button input and generate a key signal input related to the user settings and function control of the terminal device. The indicator 192 may be an indicator light, which may be used to indicate the charging status, power change, message, missed call, notification, etc.

[0153] In addition, on top of the above components, the device also runs an operating system, such as an iOS operating system, an Android operating system, or a Windows operating system, etc. Applications can be installed and run on the operating system.

[0154] The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture, etc., which will not be elaborated here.

[0155] The following specific embodiments are used to describe in detail the technical solution of the present application and how the technical solution of the present application solves the above technical problems. The following specific embodiments can be implemented independently or in combination with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.

[0156] The embodiment of the present application provides a method for connecting to a router, so that a terminal device can scan a small program code preset on the router body, pull up a small program page, and connect to the router WIFI and configure the router based on user operations on the small program page. The applet in the application can be understood that the embodiment of the present application can make full use of The social attributes of the application and the convenient attributes of the mini program make it possible for terminal devices to Scan the mini program code associated with the router to automatically and quickly connect to the router WIFI and perform minimalist configuration of the router, making it convenient for ordinary users to connect and configure the router with zero threshold.

[0157] For example, the terminal device can be configured based on the wizard configuration of the router. Figure 5 The corresponding embodiment quickly connects to the router WIFI; or, the terminal device can be based on the router without wizard configuration. Figure 6-Figure 7 (or Figure 8-Figure 9 )The corresponding embodiment implements router configuration.

[0158] in, Figure 6-Figure 7 This is an example of how to configure a router for DHCP Internet access. Figure 8-Figure 9 This is an example of how to configure a router for PPPOE Internet access.

[0159] It is understandable that, in the case where the terminal device has not configured the router, the router configuration process can be completed as follows: the terminal device configures the router based on Figure 5 A scanning connection system (or also referred to as a scanning code connection system) described in the corresponding embodiment obtains routing information. When it is determined from the routing information that the router has not been configured with a wizard, the terminal device can Figure 6-Figure 7 (or Figure 8-Figure 9 )The corresponding embodiment implements router configuration and then connects to the router WIFI.

[0160] Among them, the routing information (or first information) can be understood as the information stored in the router, and the routing information may include one or more of the following: the second WIFI SSID, the second WIFI password, the gateway IP address corresponding to the bridge (bridge, abbreviated as br) br0, the Internet access status, or the information used to indicate whether the router wizard configuration is completed, etc.

[0161] For example, Figure 5 A schematic diagram of an interface for connecting to a router provided in an embodiment of the present application.

[0162] Open on terminal device When you use the Scan function of the application and point the camera in the terminal device at the mini program code on the router body, the terminal device can display the following Figure 5 The interface shown in a in , which may include: mini program code.

[0163] When the terminal device scans the mini program code, the terminal device can pull up the mini program page corresponding to the mini program code and display the following information: Figure 5 The interface shown in b in the figure. The interface may be the homepage of the mini program, and the interface is used to indicate that the user has opened the mini program. The interface may include one or more of the following: a prompt message for welcoming the user to join the XX-scan connection system, a control for exiting the mini program, or a control for forwarding the mini program.

[0164] The prompt message for welcoming the user to join the one-scan-connect system may be displayed as: Welcome to join the XX one-scan-connect system. One-scan-connect may be understood as scanning the mini-program code to connect to the router WIFI.

[0165] The terminal device can be Figure 5 After staying in the interface shown in b for 2 seconds, it will automatically jump to Figure 5 The interface shown in c in Figure 1 is as follows. Figure 5 The interface shown in c in FIG. 1 is used to indicate that routing information is being synchronized. The interface may include one or more of the following: a prompt message for indicating that routing information is being synchronized, a progress bar for indicating the synchronization status of routing information, or a graphic icon for indicating that the terminal device and the router are synchronizing routing information.

[0166] After the terminal device obtains the routing information from the router, the terminal device can Figure 5 The interface shown in c in the figure switches to Figure 5 The interface shown in d in the figure. Figure 5The interface shown in d in the figure is used to indicate that the terminal device has obtained the routing information. The interface may include one or more of the following: an identifier 501 indicating that the terminal device is connected to the router WIFI, a prompt message for indicating that the routing information synchronization is successful, a text identifier for indicating that the terminal device and the router have completed information synchronization, a text identifier for indicating that the router WIFI is connected in the second step, or a graphic icon for indicating that the terminal device and the router have completed routing information synchronization.

[0167] The identifier 501 is used to indicate that the terminal device has been connected to the first WIFI of the router. The specific description of the first WIFI can be found in Fig.13 In a possible implementation, the logo 501 may also be displayed on Figure 5 The interface shown in c can be understood as the terminal device being connected to the first WIFI of the router during the process of synchronizing the routing information.

[0168] Typically, the time it takes for a terminal device to synchronize routing information can be 6 seconds, for example. Figure 5 The interface shown in c in the figure switches to Figure 5 The duration of the interface shown in d may be 6 seconds, etc.

[0169] Further, when the terminal device determines that the router has been configured with the wizard based on the routing information, the terminal device can Figure 5 The interface shown in d in the figure switches to Figure 5 In the interface shown in e, the Figure 5 The interface shown in e in FIG. 1 is used to indicate that the terminal device is connecting to the router WIFI. For example, the interface may display a prompt message for indicating that the router WIFI is being connected. The terminal device may display the following after connecting to the router WIFI: Figure 5 The interface shown in f in the figure is used to indicate that the terminal device has been connected to the router WIFI. For example, the interface may display a prompt message indicating that the terminal device has been connected to the router WIFI. Figure 5 e- Figure 5 The router WIFI described in the interface shown in f may be the second WIFI described in the embodiment of the present application. The specific description of the second WIFI can be found in Fig.13 The corresponding embodiments.

[0170] Based on this, users can confirm the different stages of the process of connecting to the router WIFI according to the interface displayed by the terminal device after scanning the mini program code, simplify the way the terminal device connects to the router WIFI, and enrich the user experience of using the one-scan connection function.

[0171] For example, Figure 6A schematic diagram of a router configuration interface provided in an embodiment of the present application Figure 1 .

[0172] like Figure 5 In the interface shown in d in FIG. 1 , when the terminal device determines based on the routing information that the router is not configured, the terminal device may display the following Figure 6 The interface shown in a in the figure, Figure 6 The interface shown in a in the figure is used to indicate that the terminal device is detecting the Internet environment. Figure 6 The interface shown in a includes: a prompt message for prompting that the Internet access method of the router is being detected, a text mark for indicating that the terminal device and the router have completed information synchronization, a text mark for indicating that Internet access configuration is performed in the second step, and a text mark for indicating that the settings are completed in the third step.

[0173] exist Figure 6 The interface shown in a in the figure, the terminal device can display the following when detecting that the Internet access method is DHCP. Figure 6 The interface shown in b in the figure. Figure 6 The interface shown in b in the figure may be an interface for configuring a router for DHCP Internet access mode, and may include one or more of the following, for example: an identifier for indicating Internet access status, a text box 601 for setting a WIFI name, a text box 602 for setting a WIFI password, a control for downloading a smart space APP (or a preset application), a control for agreeing to a privacy statement, a control for agreeing to join the user experience improvement plan, a control for agreeing to automatically upgrade a mini-program, or a complete configuration control 603, etc.

[0174] The words "Network connected" may be displayed around the logo indicating the Internet access status; the words "I have read and agreed to the End User License Agreement and are aware of the statement about the smart router and privacy" may be displayed around the control for agreeing to the privacy statement. The smart router is the router described in the embodiment of the present application; the words "Go to download" may be displayed around the control for downloading the Smart Space APP; the words "Automatically upgrade the device's applications and services to provide a better user experience (3:00-5:00 am)" may be displayed around the control for agreeing to automatically upgrade the mini-program.

[0175] The first WIFI service set identifier (SSID) may be displayed in the text box 601 by default, and the password may not be displayed in the text box 602, and only the words "Please enter the password" may be displayed to prompt the user to enter the second WIFI password. For example, mingcheng1234 may be displayed in the text box 601. Alternatively, the first WIFI SSID may not be displayed in the text box 601. In this scenario, the words "Please enter the WIFI name" may be displayed in the text box 601 to prompt the user to enter the second WIFI SSID. Figure 6 The interface shown in b is not shown. The WIFI SSID is the name of the wireless signal sent by the router, which can also be called the WIFI name. The second WIFI SSID can be the same as or different from the first WIFI SSID.

[0176] It is understandable that the terminal device can also Figure 6 The DHCP mark is displayed in the interface shown in b. The DHCP mark is used to indicate that the router's Internet access method is DHCP. Users can use the DHCP mark to identify that the router is currently being configured for the DHCP Internet access method.

[0177] In such Figure 6 In the interface shown in b in FIG. 1 , when the terminal device receives the operation of the user entering the second WIFI SSID in the text box 601 and the second WIFI password in the text box 602, the terminal device may display the following Figure 6 The interface shown in c in the figure, Figure 6 Other contents displayed in the interface shown in c are similar to Figure 6 The interface shown in b is similar and will not be repeated here.

[0178] like Figure 6 As shown in the interface c in FIG. 6 , the second WIFI password is not visible, so multiple * can be displayed in the text box 602. When the terminal device receives the user's operation on the right side of the text box 602 for the control for displaying the second WIFI password, the terminal device can display the input second WIFI password in the text box 602.

[0179] In a possible implementation, when the terminal device receives a user's Figure 6 The trigger operation of completing the configuration control 603 in the interface shown in c in FIG. Figure 6 When the control for agreeing to the privacy statement in the interface shown in c is not selected, the terminal device can display a prompt box for prompting the user to check the privacy statement, and the prompt box for prompting the user to check the privacy statement can display a text message of "Please check the end user license agreement and the smart router and privacy statement" ( Figure 6(not shown in the interface shown in c in FIG. ).

[0180] In a possible implementation, when the terminal device detects that the first WIFI password is consistent with the second WIFI password input by the user, the terminal device can Figure 6 The interface shown in d in FIG. 6 shows a prompt message 604, which is used to prompt the user that the second WIFI password is consistent with the first WIFI password. The prompt message 604 can be displayed as "The router login password is consistent with the WIFI password, please keep it properly", and the router password described in the prompt message 604 can be the default first WIFI password of the router. The WIFI password described in the prompt message 604 can be the second WIFI password described in the embodiment of the present application. It can be understood that when the second WIFI password set by the user is consistent with the default first WIFI password of the router, it may affect the security of the WIFI connection, so the terminal device can initiate a prompt.

[0181] Understandably, Figure 6 The dotted box displayed in any interface described in the corresponding embodiment is only used to indicate the content displayed in the interface and is not actually displayed in the interface.

[0182] Furthermore, Figure 7 A schematic diagram of a router configuration interface provided in an embodiment of the present application Figure 2 .

[0183] In such Figure 6 In the interface shown in c in FIG. 1 , when the terminal device receives a trigger operation from the user to complete the configuration control 603, the terminal device may display the following Figure 7 The interface shown in a in the figure, Figure 7 The interface shown in a may include a prompt for saving Figure 6 The configuration prompt information 701 in the interface shown in c in FIG. Further, the terminal device may display Figure 7 The interface shown in b and Figure 7 The interface shown in c in the figure will be displayed after the router WIFI is successfully connected. Figure 7 The interface shown in d.

[0184] Figure 7 The interface shown in b and Figure 7 The WIFI described in the interface shown in c may be the second WIFI. Figure 7 The interface shown in b in FIG. 1 is used to indicate that the second WIFI is being restarted, for example Figure 7 The interface shown in b includes: a prompt message for prompting to restart WIFI; Figure 7 The interface shown in c in the figure is used to indicate that the second WIFI is being connected. Figure 7The interface shown in c includes: prompt information for prompting to reconnect to WIFI. Figure 7 The interface shown in d is used to indicate that the router settings have been completed. Figure 7 The interface shown in d includes one or more of the following: an icon of XX router, a prompt message for completing the router configuration, or a control for downloading the Smart Space APP, etc.

[0185] Based on this, the terminal device can automatically detect the routing Internet access method in the mini program, and implement the settings of the router for any Internet access method in the mini program, simplifying the router settings and improving the user experience of the one-scan-to-connect system.

[0186] For example, Figure 8 Another example of a router configuration interface provided in the present application Figure 1 .

[0187] like Figure 5 In the interface shown in d in FIG. 1 , when the terminal device determines based on the routing information that the router has not been configured with the wizard, the terminal device may display the following Figure 8 The interface shown in a in the figure, Figure 8 The interface shown in a is the same as Figure 6 The interface shown in a is similar and will not be described here.

[0188] exist Figure 8 The terminal device can display the interface shown in a of 8 when detecting that the Internet access method is PPPOE. Figure 8 The interface shown in b in the figure may be an interface for configuring a router for PPPOE Internet access. The interface may include one or more of the following: a text box 801 for indicating input of a broadband account number, or a text box 802 for indicating input of a broadband password. Other contents displayed in the interface may be the same as those in the example in the figure. Figure 6 The interface shown in b is similar and will not be repeated here.

[0189] The words “Please enter the broadband account number” may be displayed in the text box 801 to prompt the user to enter the broadband account number provided by the operator when the user applies for PPPOE Internet access; the words “Please enter the broadband password” may be displayed in the text box 802 to prompt the user to enter the broadband password provided by the operator when the user applies for PPPOE Internet access, and PPPOE Internet access can only be achieved when the broadband account number and broadband password are entered correctly.

[0190] It is understandable that the terminal device can also Figure 8The PPPOE logo is displayed in the interface shown in b. The PPPOE logo is used to indicate that the router's Internet access method is PPPOE. Users can use the PPPOE logo to identify that the router is currently being configured for the PPPOE Internet access method.

[0191] In such Figure 8 In the interface shown in b in FIG. 8 , when the terminal device receives the operation of the user entering the broadband account in text box 801, entering the broadband password in text box 802, entering the second WIFI SSID in text box 803, and entering the second WIFI password in text box 804, the terminal device can display the following Figure 8 The interface shown in c in Figure 1 is as follows. Figure 8 In the interface shown in c, the text box 801 can be displayed as "abc123", and the password in the text box 802 is invisible, so multiple * can be displayed in the text box 802. For other contents displayed in this interface, please refer to Figure 6 The interface shown in c will not be described here.

[0192] Furthermore, Fig. 9 Another example of a router configuration interface provided in the present application Figure 2 .

[0193] In such Figure 8 In the interface shown in c in FIG. 8 , when the terminal device receives a trigger operation from the user to complete the configuration control 805, the terminal device may display the following Fig. 9 The interface shown in a in the figure, Fig. 9 The interface shown in a may include a prompt for saving Figure 8 The configuration prompt information in the interface shown in c in FIG. Further, the terminal device can display Fig. 9 The interface shown in b and Fig. 9 The interface shown in c in the figure will be displayed after the router WIFI is successfully connected. Fig. 9 The interface shown in d in Figure 1. Fig. 9 The interface shown in a - Fig. 9 For the prompt information in the interface shown in d, please refer to Figure 7 The interface shown in a - Figure 7 The description of the interface shown in d is not repeated here.

[0194] It is understandable that the terminal device can be based on Figure 8-Figure 9 The corresponding embodiment completes the router configuration for the PPPOE Internet access mode. After the router receives the broadband account and broadband password and confirms that the broadband account and broadband password are successfully verified, the IP address obtained from the network side can be returned to the terminal device to realize the subsequent Internet access function of the terminal device.

[0195] Based on this, the terminal device can automatically detect the routing Internet access method in the mini program, and implement the settings of the router for any Internet access method in the mini program, simplifying the router settings and improving the user experience of the one-scan-to-connect system.

[0196] exist Figure 5 Based on the corresponding embodiment, when the terminal device does not detect the routing information, the terminal device can Fig.10 The corresponding embodiment prompts the user to re-acquire the routing information.

[0197] For example, Fig.10 A schematic diagram of an interface in which routing information is not detected is provided in an embodiment of the present application.

[0198] like Figure 5 In the interface shown in c in the figure, when the terminal device does not detect routing information from the router, the terminal device can display Fig.10 The interface shown in a. Fig.10 The interface shown in a in the figure may include one or more of the following: an icon indicating that there is an abnormality in the line between the optical modem (or home network port) and the router, a prompt message indicating that the routing configuration has failed, a prompt message prompting the user to adjust the line, a re-detection control 1001, a control for downloading the Smart Space APP, etc. Among them, the prompt message for prompting the user to adjust the line can be displayed as "1. Please confirm that the router is connected to the optical modem or home network port; 2. Please plug the network cable tightly, or try to change a network cable; 3. After confirming all the above, click re-detection. If you still cannot connect, please contact the broadband operator to solve the problem." The "broadband operator" in the prompt message is a triggerable control 1002.

[0199] like Fig.10 In the interface shown in a of FIG. 1 , when the terminal device receives a trigger operation of the user for re-detecting the control 1001, the terminal device can re-synchronize the routing information and display the following Fig.10 The interface shown in b in the figure. Fig.10 The interface shown in b in the figure may include: a prompt message for prompting that the routing information is being resynchronized, and the prompt message may be displayed as "routing information synchronization failed, routing information is being resynchronized...".

[0200] like Fig.10 In the interface shown in b in FIG. 1 , when the terminal device detects that the routing information fails to be synchronized again, the terminal device may display the following Fig.10 The interface shown in c in Figure 1 is as follows. Fig.10The interface shown in c in FIG. 1 is used to prompt the user that the routing information synchronization has failed and configure the user by downloading the Smart Space APP. The interface may include one or more of the following: text information indicating the failure of routing information synchronization, a graphic icon indicating the failure of routing information synchronization between the terminal device and the router, or a control for downloading the Smart Space APP, etc.

[0201] In a possible implementation, the terminal device may also display a message such as: Fig.10 For example, when the number threshold is 2, the terminal device can continue to display the following information when the number of routing information synchronization failures is detected to be 2. Fig.10 The interface shown in a in the figure will continue to be displayed when the number of failed routing information synchronization is 3. Fig.10 The interface shown in c in FIG. is not limited to this in the embodiments of the present application.

[0202] It is understandable that when the terminal device detects that the routing information synchronization fails multiple times, the terminal device may display the following Fig.10 The interface shown in c in the figure prompts the user to configure the router in the Smart Space APP. The Smart Space APP is an APP that can realize router configuration. The Smart Space APP is not affected by factors such as mini-programs, system versions, and device models, and can provide the ability to configure routers for various types of terminal devices.

[0203] Possible implementations include Fig.10 When the terminal device receives a trigger operation of the user on the triggerable control 1002, the terminal device may display the following Fig.10 The interface shown in d in the figure. Fig.10 The interface shown in d in the figure can display the operator communication list, and the operator communication list can include: at least one operator's number and the name of the operator.

[0204] exist Fig.10 In the interface shown in c in FIG. 1 , when the terminal device receives a trigger operation of a control for downloading the smart space APP, the terminal device may display the following Fig.10The interface shown in e in the figure may include one or more of the following: text information for prompting the user to download the Smart Space APP, a QR code 1003 corresponding to the Smart Space APP, a cancel control, or a save picture control. The text information for prompting the user to download the Smart Space APP may be displayed as "Smart Space APP, please save the picture and scan the code to download". Therefore, the terminal device can save the picture of the QR code 1003, scan the QR code 1003 to download the Smart Space APP, and continue to configure the router.

[0205] In possible implementations, Figure 6 The interface shown in a or Figure 8 Based on the interface shown in a of FIG. 1 , when the terminal device determines that no Internet access method is detected, the terminal device may also display the following Fig.10 The interface shown in a in the figure allows users to Fig.10 In the interface shown in a, obtain the Internet access method by re-detecting.

[0206] Based on this, when the terminal device fails to detect routing information or Internet access method, the terminal device can display a message to prompt the user to re-detect, so that the user can re-obtain routing information or Internet access method as needed, thereby improving the user experience of the one-scan-to-connect system.

[0207] exist Figure 6 or Figure 8 Based on the corresponding embodiment, when the terminal device detects that the router configuration fails, the terminal device can Fig.11 The corresponding embodiment prompts the user to reconfigure the router.

[0208] For example, Fig.11 A schematic diagram of a router configuration failure interface provided by an embodiment of the present application. Fig.11 In the corresponding embodiment, the PPPOE Internet access configuration is used as an example for illustration, which does not constitute a limitation on the embodiments of the present application. The process of PPPOE router configuration failure may include one or more of the following: Internet access configuration failure (or understood as broadband account and broadband password configuration failure), or WIFI configuration failure.

[0209] The terminal device can display the following when it detects that the Internet access configuration fails or the WIFI configuration fails. Fig.11 Alternatively, the terminal device may also display the following when detecting that the Internet access configuration fails: Fig.11 The interface shown in b in the figure is displayed when the WIFI configuration fails. Fig.11 The interface shown in c.

[0210] In one implementation, Figure 8In the interface shown in c in FIG. 8 , when the terminal device receives the user's trigger operation for completing the configuration control 805, and the router determines that the Internet access configuration fails or the WIFI configuration fails, the terminal device can display the following Fig.11 The interface shown in a in the figure, Fig.11 The interface shown in a in FIG. 1 includes: a prompt message for indicating that the routing configuration has failed. Or, Figure 8 In the interface shown in c in FIG. 8 , when the terminal device receives the user's trigger operation for completing the configuration control 805, and the router determines that the Internet access configuration fails or the WIFI configuration fails, the terminal device may also display Fig. 9 After jumping to the interface shown in a Fig.11 The interface shown in a.

[0211] In another implementation, Figure 8 In the interface shown in c in FIG. 8 , when the terminal device receives the user's trigger operation for completing the configuration control 805 and the router determines that the Internet access configuration fails, the terminal device may display the following Fig.11 The interface shown in b in the figure, Fig.11 The interface shown in b in FIG. 1 includes: a prompt message for prompting that the Internet access configuration fails. Or, Figure 8 In the interface shown in c in FIG. 8 , when the terminal device receives the user's trigger operation for completing the configuration control 805, and the router determines that the Internet access configuration fails or the WIFI configuration fails, the terminal device may also display Fig. 9 After jumping to the interface shown in a Fig.11 The interface shown in b.

[0212] In another implementation, Figure 8 In the interface shown in c in FIG. 8 , when the terminal device receives the user's trigger operation for completing the configuration control 805 and determines based on the router that the WIFI configuration fails, the terminal device may display the following Fig.11 The interface shown in c in the figure, Fig.11 The interface shown in c in FIG. 1 includes: a prompt message for prompting that the WIFI configuration has failed. Or, Figure 8 In the interface shown in c in FIG. 8 , when the terminal device receives the user's trigger operation for completing the configuration control 805, and the router determines that the Internet access configuration fails or the WIFI configuration fails, the terminal device may also display Fig. 9 After jumping to the interface shown in a Fig.11 The interface shown in c.

[0213] It is understandable that when the Internet access method is DHCP, the terminal device can display the following when detecting that the WIFI configuration fails. Fig.11 The prompt information in the interface shown in a, or Fig.11 The prompt information in the interface shown in c.

[0214] in, Fig.11 The specific reasons for the configuration failure described in the corresponding embodiment can be found in Fig.14 The steps shown in S1407 and S1410 in the corresponding embodiment are not repeated here.

[0215] Based on this, the terminal device can display the same prompt information or different prompt information when detecting that the Internet access configuration fails or the WIFI configuration fails, so as to prompt the user to modify the router configuration and improve the accuracy of the connection between the terminal device and the router.

[0216] exist Figure 5 On the basis of the corresponding embodiment, when the terminal device detects that the current device does not support router settings, the terminal device can prompt the user to download the Smart Space APP to perform router settings.

[0217] For example, Fig.12 A schematic diagram of an interface for prompting downloading a Smart Space APP is provided for an embodiment of the present application.

[0218] In one implementation, when the terminal device detects that the current device does not meet the preset model, it can prompt the user to download the Smart Space APP to set up the router. For example, the terminal device can preset the model of at least one terminal device that allows the one-scan connection system. After the terminal device scans the mini program code, it can detect whether the device is the preset model. For example, when the terminal device determines that the current model is not the preset model, the terminal device can display the following information: Fig.12 The interface shown in a or Fig.12 The interface shown in b. Fig.12 The interface shown in a or Fig.12 The interfaces shown in b in FIG. 1 include prompt information that the one-scan connection system does not support the current model and that the Smart Space APP can be downloaded.

[0219] like Fig.12 In the interface shown in a in the figure, when the terminal device receives the user's operation of triggering the save image control, the terminal device can save the QR code image. Further, when the terminal device receives the user scanning the QR code in a preset application, it can jump to the application store or browser to download the smart space APP.

[0220] like Fig.12 In the interface shown in b in the figure, when the terminal device receives the operation of the user triggering the download control, the terminal device can jump to the application store or browser to download the smart space APP. The specific method of downloading the smart space APP is not limited in the embodiment of the present application.

[0221] In another implementation, when the terminal device detects that the current device does not meet the preset system version number, the terminal device can prompt the user to download the Smart Space APP to set up the router. For example, the terminal device can preset the system version number of at least one terminal device that allows the one-scan system to be used. When the terminal device scans the mini program code, it can detect whether the system version number corresponding to the device is the preset system version number. For example, when the terminal device determines that the current system version number is not the preset system version number, the terminal device can display the following information: Fig.12 The interface shown in c in Figure 1 is as follows. Fig.12 The interface shown in c in FIG. 1 may include prompt information for indicating that the system version is low and downloading the Smart Space APP.

[0222] Based on this, the terminal device can scan the mini program code to detect whether the current device supports router settings in the one-scan system, and prompt when it is determined that the current device does not support router settings in the one-scan system, so that the user can use the Smart Space APP to set up the router.

[0223] Understandably, Figure 5-Figure 12 The interface described in the corresponding embodiment is only an example and does not constitute a limitation on the router connection method provided in the embodiment of the present application.

[0224] based on Figure 5-Figure 12 Corresponding to the description of the embodiment, the embodiment of the present application provides a router connection method, so that the terminal device can quickly connect to the router WIFI by scanning the mini-program code pre-installed in the router.

[0225] For example, Fig.13 A schematic diagram of a flow chart of a router connection method provided in an embodiment of the present application. Fig.13 As shown, the router connection method may include the following steps:

[0226] S1301. The terminal device receives an operation in which a user scans a mini-program code.

[0227] The mini program code can be affixed to the body of the router or to the corresponding instruction manual or other location of the router, which is not limited in the embodiments of the present application.

[0228] The applet code may be generated by the applet uniform resource locator (URL) and attribute parameters of the router, etc. The attribute parameters of the router may include: a router serial number (SN) and other parameters used to uniquely indicate the router.

[0229] It is understandable that since the router SN is unique, the mini-program code is also unique, that is, one router can correspond to one mini-program code. The WIFI carried by the mini-program code can be non-hidden, that is, the user can search for the WIFI corresponding to the router through the terminal device. If the WIFI carried by the mini-program is hidden, the terminal device cannot successfully connect to the router WIFI.

[0230] S1302. The terminal device obtains the mini-program URL and the router SN from the mini-program code.

[0231] For example, the terminal device can scan the mini-program code to obtain the mini-program URL and router SN, and save them in the terminal device.

[0232] S1303: The terminal device uses the mini-program URL to pull the mini-program page from the server.

[0233] For example, the terminal device may send a request for obtaining a mini-program page to the server, and the request for obtaining the mini-program page may include the mini-program URL.

[0234] The server (or first server) described in S1303 can be understood as Application public platform, used for terminal devices The application provides various mini-program pages. For example, a terminal device can send a request to the server to obtain a mini-program page, and the server can obtain the page information corresponding to the mini-program URL and return the page information corresponding to the mini-program to the terminal device, so that the terminal device can pull up the mini-program page from the server according to the mini-program URL parsed in the mini-program code.

[0235] S1304. The server returns page information corresponding to the mini-program to the terminal device.

[0236] The page information corresponding to the mini program may include: the page information corresponding to any interface in the mini program described in the embodiments of the present application, such as the page information corresponding to the homepage of the mini program. The homepage of the mini program may be Figure 5 The interface shown in b.

[0237] Exemplarily, after receiving the page information corresponding to the mini-program, the terminal device may render the page information and perform other operations, so that the terminal device can display different interface contents in the mini-program.

[0238] S1305. The terminal device displays the homepage of the mini program and uses the SN to calculate the first WIFI SSID and the first WIFI password.

[0239] The first WIFI may be the initial WIFI of the router or called a fixed WIFI. The first WIFI SSID and the first WIFI password are both obtained based on SN resolution, so the first WIFI SSID and the first WIFI password are also unique.

[0240] It is understandable that the first WIFI SSID and the first WIFI password are determined based on attribute parameters of the router, such as the router SN, and therefore the user is not allowed to modify the first WIFI SSID and the first WIFI password at will.

[0241] S1306: The terminal device sends a request to the router for connecting to the first WIFI of the router.

[0242] The request for connecting to the first WIFI of the router may include: a first WIFI SSID and a first WIFI password.

[0243] S1307: The router returns a message to the terminal device indicating that the first WIFI connection is successful.

[0244] It can be understood that, since the first WIFI SSID and the first WIFI password are fixed, the terminal device can use the first WIFI to access the router to achieve LAN communication between the terminal device and the router. In this scenario, the first WIFI SSID and the first WIFI can serve as a bridge to achieve data interaction between the terminal device and the router.

[0245] After the first WIFI connection is successful, the terminal device can send a request to the router for obtaining an IP address, and the bridge in the router, such as br2, can assign a first IP address to the terminal device connected to the first WIFI of the router. Further, when the terminal device sends a message to the router based on the first IP address and the gateway IP address corresponding to br2, br2 can forward the message; further, the forward checkpoint in the data link layer firewall can intercept the message reported by br2 to prevent the terminal device from connecting to the Internet through the first WIFI. It can be understood that the first WIFI is only used to realize the LAN communication between the terminal device and the router, and cannot realize the Internet access function. Among them, the gateway IP address corresponding to br2 can be set by default in the applet of the terminal device.

[0246] For example, based on the first WIFI connection, the terminal device and the router can implement the interaction of symmetric keys in S1308-S1309 and the interaction of routing information in S1310-S1311.

[0247] S1308: The terminal device sends a request for obtaining a symmetric key to the router.

[0248] The request for obtaining the symmetric key may include: a router SN and signature information, where the signature information is information obtained after the terminal device signs the router SN using a private key.

[0249] The private key of the RSA asymmetric encryption algorithm filled with 1024-bit public key cryptography standards (PKCS) #8 can be preset in the applet of the terminal device, and the public key of the RSA asymmetric encryption algorithm filled with 1024-bit PKCS #8 can be preset in the routing plug-in process of the router.

[0250] S1309. The router returns the symmetric key to the terminal device.

[0251] Suitably, after the router receives the router SN and signature information in the request for obtaining the symmetric key, the router can use the public key to decrypt the signature information and compare the decrypted information with the router SN for consistency. After the signature verification is successful, the router can determine that the request for obtaining the symmetric key is a message sent by the applet in the terminal device, and then return the generated symmetric key to the terminal device. The symmetric key can be a 16-bit advanced encryption standard (AES) symmetric encryption key.

[0252] Based on the steps shown in S1308-S1309, the communication link between the subsequent terminal device and the router can be encrypted based on the symmetric key to ensure the security of data transmission. For example, the router can encrypt the routing information using the symmetric key and return the encrypted information to the terminal device through the step shown in S1311. If appropriate, the terminal device can decrypt the message received in S1311.

[0253] S1310. The terminal device sends a request for obtaining routing information to the router.

[0254] The routing information (or first information) may be information obtained from the router, and the routing information may include one or more of the following: a second WIFI SSID, a second WIFI password, a gateway IP address corresponding to br0, Internet access status, or information indicating whether the router wizard configuration is completed.

[0255] The second WIFI can be understood as a router WIFI for realizing the Internet access function. The second WIFI SSID and / or the second WIFI password can be set by default in the router, or can also be set by the user in Figure 6 or Figure 8 The corresponding embodiments are set, and this is not limited in the embodiments of the present application.

[0256] The online status may include: network connected, network disconnected, etc.

[0257] The router wizard configuration can be understood as configuring the router's Internet access method. The process of the router wizard configuration can be found in Figure 6-Figure 7 The corresponding embodiment (or Figure 8-Figure 9 corresponding embodiment).

[0258] Exemplarily, the terminal device may display the following after sending a request to the router for obtaining routing information: Figure 5 The interface shown in c.

[0259] S1311. The router returns routing information to the terminal device.

[0260] Suitably, after the terminal device receives the routing information returned by the router, the terminal device can display the following information: Figure 5 Further, the terminal device can use the second WIFI SSID and the second WIFI password in the routing information to connect to the second WIFI of the router, for example, by executing the step shown in S1312.

[0261] In a possible implementation, when the terminal device determines that the user has performed the wizard configuration based on the information in the routing information indicating whether the router wizard configuration is completed, the terminal device can connect to the router WIFI based on the second WIFI SSID and the second WIFI password, for example, executing the steps shown in S1312.

[0262] Alternatively, when the terminal device determines that the user has not performed wizard configuration based on the information in the routing information indicating whether the router wizard configuration is completed, the terminal device can detect the Internet access mode of the router and display the following information: Figure 6 The interface shown in a or Figure 8 The interface shown in a.

[0263] It is understandable that even if the information indicating whether the router wizard configuration is completed indicates that the user has not performed wizard configuration on the router, the routing information may also include the router's default second WIFI SSID and the router's default second WIFI password. The router's default second WIFI SSID and the router's default second WIFI password are stored in the router when it leaves the factory, and the user is allowed to modify them.

[0264] In a possible implementation, when the terminal device does not receive the routing information returned by the router within a time threshold of sending a request for obtaining routing information, the terminal device may display the following information: Fig.10Further, when the terminal device detects the user's triggering operation for re-detecting the control 1001, the terminal device may re-execute the steps shown in S1310-S1311 to re-detect the routing information.

[0265] S1312: The terminal device sends a request to the router for connecting to the second WIFI of the router.

[0266] The request for connecting to the second WIFI of the router may include: a second WIFI SSID and a second WIFI password.

[0267] S1313: The router returns a message to the terminal device indicating that the second WIFI connection is successful.

[0268] Suitably, when the terminal device receives a message indicating that the second WIFI connection is successful, the second device may determine that it has been successfully connected to the router WIFI.

[0269] After the second WIFI connection is successful, the terminal device can send a request to the router for obtaining an IP address, and br0 in the router can allocate a second IP address to the terminal device connected to the second WIFI of the router. When the terminal device sends a message to the router based on the second IP address and the gateway IP address corresponding to br0, br0 can forward the message; further, the forward checkpoint in the data link layer firewall can forward the message reported by br0 and forward it to the network server. The network server can respond to the message and return the generated response message to the terminal device through the router, so that the terminal device can connect to the Internet through the second WIFI.

[0270] Exemplarily, based on the second WIFI connection, the terminal device sends a first data packet to the router, and the router can send the first data packet to the network server; adapted, the network server can respond to the received first data packet and generate a second data packet corresponding to the first data packet, and then the network data packet can return the second data packet to the terminal device through the router, so that the terminal device can access the Internet through the second WIFI connection. It can be understood that the first data packet is a data packet that accesses the network server through the router, and the second data packet is a response data packet generated when the network server receives the first data packet.

[0271] In a possible implementation, the terminal device can close the first WIFI connection after establishing the second WIFI connection. For example, the terminal device sends a request to close the first WIFI connection to the router, and the router returns a message to the terminal device indicating that the first WIFI connection was successfully closed. In this way, when the second WIFI connection is established, the terminal device and the router can reduce resource consumption by closing the first WIFI connection.

[0272] In a possible implementation, the router can also store the device information brought by the terminal device when it connects to the second WIFI. When the terminal device connects to the first WIFI of the router again by scanning the mini-program code, the router can determine that the terminal device has been connected to the router based on the device information of the terminal device. Therefore, the router can directly return the routing information to the terminal device, so that the terminal device can connect to the second WIFI of the router after connecting to the first WIFI of the router without obtaining routing information, thereby simplifying the method of connecting the terminal device to the router.

[0273] based on Fig.13 The description in the corresponding embodiment. The terminal device can first establish a local area network connection with the router by directly scanning the target QR code preset by the router, and then automatically obtain the WIFI connection information that can access the Internet through the local area network connection, and then establish a WIFI connection that can access the Internet through the router. The user only needs to scan the target QR code preset by the router, and does not need to actively enter the WIFI password and other information to achieve automatic WIFI connection, which brings a better connection experience to the user.

[0274] exist Fig.13 On the basis of the corresponding embodiment, when the second WIFI SSID and / or the second WIFI SSID changes, the terminal device can also establish a LAN connection with the first WIFI of the router by scanning the mini-program code, and obtain the third WIFI SSID and the third WIFI password from the router when the LAN is connected, and use the third WIFI SSID and the third WIFI password to establish a connection with the router.

[0275] The third WIFI SSID is different from the second WIFI SSID, and / or the third WIFI password is different from the second WIFI password. The process of establishing a connection between the terminal device and the router through the third WIFI SSID and the third WIFI password can be seen in Fig.13 The corresponding embodiments will not be described in detail here.

[0276] It can be understood that when at least one parameter in the second WIFI SSID and the second WIFI password is modified, the terminal device can establish a LAN connection with the first WIFI of the router by scanning the mini-program code, and when the first WIFI connection is successful, obtain the third WIFI SSID and the third WIFI password required for reconnection from the router.

[0277] In this way, the advantage of using the first WIFI SSID and the first WIFI password to achieve LAN communication between the terminal device and the router is that no matter how the second WIFI SSID and / or the second WIFI password changes, the terminal device can use the fixed first WIFI to achieve LAN connection, and obtain WIFI connection information that can access the Internet from the router based on the LAN connection, so as to achieve the purpose of accessing the router even if the WIFI password is modified.

[0278] It can be understood that, compared with storing the router's WIFI SSID and WIFI password in the cloud as usual, the router connection method described in the embodiment of the present application does not need to obtain the WIFI SSID and WIFI password from the cloud, saving resource consumption.

[0279] exist Fig.13 On the basis of the corresponding embodiments, a router connection method provided in the embodiments of the present application can also realize the setting of Internet access mode and / or WIFI in the router.

[0280] For example, Fig.14 A flowchart of a method for configuring parameters of a router provided in an embodiment of the present application.

[0281] S1401. The terminal device sends a request to the router for obtaining an Internet access method.

[0282] Exemplarily, when the terminal device determines that the router has not been configured with a wizard based on the information indicating whether the router wizard configuration is completed in the routing information obtained in S1311, the terminal device may display the following information: Figure 6 The interface shown in a or Figure 8 The interface shown in a in FIG. 1401 is displayed, and the step shown in S1401 is executed to send a request for obtaining an Internet access method to the router.

[0283] S1402. The router returns the Internet access method detection result to the terminal device.

[0284] The Internet access method detection result may include: DHCP Internet access, PPPOE Internet access, or no Internet access method is detected.

[0285] S1403: The terminal device determines whether the detection is successful.

[0286] When the terminal device detects the Internet access method, the terminal device may execute the step shown in S1404; or, when the terminal device does not detect the Internet access method, the terminal device may execute the step shown in S1405.

[0287] S1404. The terminal device displays an interface corresponding to detection failure.

[0288] The interface corresponding to the detection failure can be Fig.10 The interface shown in a.

[0289] In a possible implementation, when the terminal device receives a user's Fig.10 When the re-detection control in the interface shown in a is triggered, the terminal device can execute the steps shown in S1401 to re-detect the Internet access method.

[0290] It is understandable that the Internet access detection may fail because the line between the optical modem (or home network port) and the router is not successfully connected, so the user can Fig.10 Recheck the line connection status according to the prompt information displayed in the interface shown in a.

[0291] S1405. The terminal device displays an interface corresponding to successful detection.

[0292] When the detection result is DHCP access, the corresponding interface for successful detection can be Figure 6 or, when the detection result is PPPOE Internet access, the interface corresponding to successful detection can be Figure 8 The interface shown in b.

[0293] S1406: The terminal device detects that the user is configuring the Internet access method, and sends a message containing the configuration information to the router.

[0294] The configuration information may include: WIFI configuration information, and / or configuration information corresponding to the Internet access method. The configuration information can be understood as the user Figure 6 (or Figure 8 ) corresponds to the information input by the user in the embodiment.

[0295] The WIFI configuration information may include: a second WIFI SSID and a second WIFI password. When the Internet access method is PPPOE, the configuration information corresponding to the Internet access method may include: a broadband account and a broadband password, or when the Internet access method is DHCP, the configuration information may not include the configuration information corresponding to DHCP Internet access.

[0296] In a possible implementation, since DHCP Internet access does not require the setting of Internet access methods such as broadband account and broadband password, the router may not confirm whether the DHCP Internet access method is successfully configured. For example, when the router determines that the Internet access method is DHCP Internet access, the terminal device can execute the steps shown in S1410-S1413 to determine the WIFI settings; or, when the router determines that the Internet access method is PPPOE Internet access, the terminal device can execute the steps shown in S1407-S1409 to verify the broadband account and broadband password input by the terminal device based on the PPPOE Internet access method, and then execute the steps shown in S1410-S1413 to determine the WIFI settings.

[0297] For example, the terminal device can be based on the user operation Figure 6-Figure 7 (or Figure 8-Figure 9 ) The corresponding embodiment performs Internet access configuration. After the configuration is completed, when the terminal device receives a trigger operation from the user to complete the configuration control, the terminal device can send configuration information to the router.

[0298] It is understandable that the terminal device can display the following information after sending the configuration information to the router: Figure 7 The interface shown in a or Fig. 9 The interface shown in a.

[0299] S1407. The router determines whether the Internet access method is configured successfully.

[0300] When the router determines that the Internet access method configuration is successful, the router can execute the steps shown in S1410-S1413; or, when the router determines that the Internet access method configuration fails, the router can execute the steps shown in S1408-S1409.

[0301] For example, the router can Figure 6 b(or Figure 8 b) in the interface to determine whether the Internet access method is configured successfully. For example, the router can verify the broadband account and broadband password entered by the user. When it is determined that the broadband account entered by the user is consistent with the broadband account provided by the operator, and the broadband password entered by the user is consistent with the broadband password provided by the operator, the router can determine that the Internet access method is configured successfully. Alternatively, when it is determined that the broadband account entered by the user is inconsistent with the broadband account provided by the operator, and / or the broadband password entered by the user is inconsistent with the broadband password provided by the operator, the router can determine that the Internet access method configuration fails and execute the steps shown in S1408.

[0302] S1408. The router returns a message to the terminal device indicating that the Internet access configuration has failed.

[0303] S1409. The terminal device displays the corresponding reconfiguration interface 1.

[0304] Reconfigure the corresponding interface to Fig.11 The interface shown in a or Fig.11 The interface shown in b.

[0305] S1410, the router determines whether the WIFI configuration is successful.

[0306] When the router determines that the WIFI configuration is successful, the router may execute the steps shown in S1413; or, when the router determines that the WIFI configuration fails, the router may execute the steps shown in S1411-S1412.

[0307] For example, the router can Figure 6 b(or Figure 8 b) and the second WIFI password entered by the user in the interface shown in the figure determine whether the Internet access method is configured successfully. For example, the router can verify the second WIFI SSID entered by the user and the second WIFI password entered by the user. When it is determined that the second WIFI SSID entered by the user is inconsistent with the second WIFI SSID defaulted by the router, and the second WIFI password entered by the user is inconsistent with the second WIFI password defaulted by the router, the router can determine that the Internet access method is configured successfully. Alternatively, when it is determined that the second WIFI SSID entered by the user is consistent with the second WIFI SSID defaulted by the router, and / or the second WIFI password entered by the user is consistent with the second WIFI password defaulted by the router, the router can determine that the Internet access method configuration fails.

[0308] In a possible implementation, the terminal device can also determine whether the WIFI configuration is successful, that is, the terminal device can receive the routing information returned by the router based on the steps shown in S1311, and obtain the router's default second WIFI SSID and the router's default second WIFI password from the router, thereby determining whether the WIFI configuration is successful in the terminal device.

[0309] S1411. The router returns a message to the terminal device indicating that the WIFI configuration has failed.

[0310] S1412. The terminal device displays the reconfiguration corresponding interface 2.

[0311] Reconfigure the corresponding interface 2 to Fig.11 The interface shown in a or Fig.11 The interface shown in c.

[0312] It is understandable that interface 1 and interface 2 may be the same or different, and this is not limited in the embodiments of the present application.

[0313] S1413. The router returns a message indicating successful configuration to the terminal device.

[0314] S1414. The terminal device sends a request to the router to instruct restarting the second WIFI.

[0315] Exemplarily, upon receiving the message returned by the router in S1413 indicating successful configuration, the terminal device may execute the step shown in S1414.

[0316] After the terminal device sends a request to the router for instructing to restart the second WIFI, the following information may be displayed: Figure 7 b(or Fig. 9 In this way, after the router restarts the second WIFI configuration, the terminal device can use the second WIFI SSID and the second WIFI password configured by the user to establish a connection with the second WIFI of the router.

[0317] S1415. The router returns a message to the terminal device indicating that the second WIFI has been successfully restarted.

[0318] Further, when the terminal device receives a message returned by the router indicating that the configuration is successful, the terminal device can execute the steps shown in S1312-S1313 based on the set second WIFI SSID and the second WIFI password, reconnect to the second WIFI of the router, and display the following information: Figure 7 As shown in c or Fig. 9 The interface shown in c.

[0319] Based on this, the terminal device can not only realize one-scan connection, but also configure the router in one-scan connection, so as to simplify the method of user configuration of the router and facilitate ordinary users to configure the router with zero threshold.

[0320] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0321] Combined with the above Figure 5-Figure 14 , the method provided in the embodiment of the present application is described, and the device for executing the above method provided in the embodiment of the present application is described below. Fig.15 As shown, Fig.15 A schematic diagram of a router connection device provided in an embodiment of the present application Figure 1 The router connection device may be a terminal device in the embodiment of the present application, or a chip or chip system in the terminal device.

[0322] like Fig.15 As shown, the router connection device 1500 can be used in a communication device, circuit, hardware component or chip, and the router connection device includes: a display unit 1501, a processing unit 1502 and a communication unit 1503. The display unit 1501 is used to support the display step performed by the router connection device 1500; the processing unit 1502 is used to support the router connection device 1500 to perform information processing steps; the communication unit is used to support the router connection device 1500 to perform data transmission and data reception steps. The communication unit 1503 can be an input or output interface, a pin or a circuit, etc.

[0323] In a possible embodiment, the router connection device may further include: a storage unit 1504. The processing unit 1502 and the storage unit 1504 are connected via a line. The storage unit 1504 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1504 may exist independently and be connected to the processing unit 1502 of the router connection device via a communication line. The storage unit 1504 may also be integrated with the processing unit 1502.

[0324] The storage unit 1504 can store computer-executable instructions of the method in the terminal device so that the processing unit 1502 executes the method in the above embodiment. The storage unit 1504 can be a register, a cache, or a RAM, etc. The storage unit 1504 can be integrated with the processing unit 1502. The storage unit 1504 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1504 can be independent of the processing unit 1502.

[0325] Fig.16 A schematic diagram of a processing device in a router connection provided in an embodiment of the present application Figure 2 The processing device in the router connection may be the router in the embodiment of the present application, or may be a chip or chip system in the router.

[0326] like Fig.16As shown, the processing device 1600 in the router connection can be used in a communication device, circuit, hardware component or chip, and the processing device in the router connection includes: a processing unit 1601 and a communication unit 1602. The processing unit 1601 is used to support the processing device 1600 in the router connection to perform information processing steps; the communication unit is used to support the processing device 1600 in the router connection to perform data sending and data receiving steps. The communication unit 1602 can be an input or output interface, a pin or a circuit, etc.

[0327] In a possible embodiment, the processing device in the router connection may further include: a storage unit 1603. The processing unit 1601 and the storage unit 1603 are connected via a line. The storage unit 1603 may include one or more memories, and the memory may be a device used to store programs or data in one or more devices or circuits. The storage unit 1603 may exist independently and be connected to the processing unit 1601 of the processing device in the router connection via a communication line. The storage unit 1603 may also be integrated with the processing unit 1601.

[0328] The storage unit 1603 may store computer-executable instructions of the method in the router so that the processing unit 1601 executes the method in the above embodiment. The storage unit 1603 may be a register, a cache, or a RAM, etc. The storage unit 1603 may be integrated with the processing unit 1601. The storage unit 1603 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, and the storage unit 1603 may be independent of the processing unit 1601.

[0329] Fig.17 A schematic diagram of the hardware structure of another device provided in an embodiment of the present application is shown in FIG. Fig.17 The device described in the corresponding embodiment may be a terminal device or a router device.

[0330] like Figure 6 As shown, the device includes a processor 1701, a communication line 1704 and at least one communication interface ( Fig.17 The communication interface 1703 is used as an example for explanation).

[0331] Processor 1701 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application.

[0332] Communications link 1704 may include circuitry to transmit information between the above-described components.

[0333] The communication interface 1703 uses any transceiver or other device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.

[0334] Possibly, the device may further include a memory 1702 .

[0335] The memory 1702 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory may exist independently and be connected to the processor via a communication line 1704. The memory may also be integrated with the processor.

[0336] The memory 1702 is used to store computer-executable instructions for executing the solution of the present application, and the execution is controlled by the processor 1701. The processor 1701 is used to execute the computer-executable instructions stored in the memory 1702, thereby implementing the method provided by the embodiment of the present application.

[0337] Possibly, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, and the embodiments of the present application do not specifically limit this.

[0338] In a specific implementation, as an embodiment, the processor 1701 may include one or more CPUs, such as Fig.17 CPU0 and CPU1 in.

[0339] In a specific implementation, as an embodiment, the device may include multiple processors, such as Fig.171701 and 1705 in the embodiment of the present invention. Each of these processors may be a single-CPU processor or a multi-CPU processor. The processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).

[0340] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can store or a data storage device such as a server or data center that includes one or more available media integrated. For example, the available medium can include a magnetic medium (e.g., a floppy disk, a hard disk or a tape), an optical medium (e.g., a digital versatile disc (digital versatile disc, DVD)), or a semiconductor medium (e.g., a solid state drive (solid state disk, SSD)), etc.

[0341] The embodiments of the present application also provide a computer-readable storage medium. The methods described in the above embodiments can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. Computer-readable media may include computer storage media and communication media, and may also include any medium that can transfer a computer program from one place to another. The storage medium may be any target medium that can be accessed by a computer.

[0342] As a possible design, the computer readable medium may include a compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disc storage; the computer readable medium may include a magnetic disk storage or other magnetic disk storage device. Moreover, any connection line may also be appropriately referred to as a computer readable medium. For example, if the software is transmitted from a website, server or other remote source using a coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology (such as infrared, radio and microwave), the coaxial cable, fiber optic cable, twisted pair, DSL or wireless technology such as infrared, radio and microwave are included in the definition of medium. Disk and disc as used herein include compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc, where disks usually reproduce data magnetically, while optical discs reproduce data optically using lasers.

[0343] The above combinations should also be included in the scope of computer-readable media. The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for connecting a router, characterized in that: Applied to a router, the method comprises: Establishing a first WIFI connection with a terminal device based on a first WIFI SSID and a first WIFI password, wherein the first WIFI SSID and the first WIFI password are determined based on attribute parameters of the router indicated in a target QR code, and the target QR code is a QR code corresponding to the router; Based on the first WIFI connection, sending a second WIFI SSID and a second WIFI password to the terminal device; Based on the second WIFI SSID and the second WIFI password, a second WIFI connection is established with the terminal device.

2. The method according to claim 1, characterized in that The first WIFI connection is a local area network connection.

3. The method according to claim 1 or 2, characterized in that: After establishing the second WIFI connection, the method further includes: Based on the second WIFI connection, receiving a first data packet from the terminal device, where the first data packet is a data packet for accessing a network server through the router; A second data packet is sent to the terminal device, where the second data packet is a response data packet generated when the network server receives the first data packet.

4. The method according to any one of claims 1 to 3, characterized in that: After establishing the second WIFI connection, the method further includes: Close the first WIFI connection.

5. The method according to any one of claims 1 to 4, characterized in that: The second WIFI SSID is changed to a third WIFI SSID, and / or the second WIFI password is changed to a third WIFI password, and the method further includes: Establishing a first WIFI connection with the terminal device based on the first WIFI SSID and the first WIFI password; Based on the first WIFI connection, sending attribute information of the third WIFI to the terminal device, the attribute information of the third WIFI including: the third WIFI SSID and the third WIFI password; Based on the attribute information of the third WIFI, a third WIFI connection is established with the terminal device.

6. The method according to any one of claims 1 to 5, characterized in that: The attribute parameters of the router include a serial number SN of the router, and the first WIFI SSID and the first WIFI password are determined based on the SN of the router.

7. The method according to any one of claims 1 to 6, characterized in that: The sending the second WIFI SSID and the second WIFI password to the terminal device based on the first WIFI connection includes: Based on the first WIFI connection, receiving a first request from the terminal device; A first message is sent to the terminal device, where the first message includes the second WIFI SSID and the second WIFI password, and the first message is a message generated by the router in response to the first request.

8. The method according to claim 7, characterized in that Before receiving the first request from the terminal device, the method further includes: receiving a second request from the terminal device; A second message is sent to the terminal device, where the second message includes a symmetric key, the second message is a message generated by the router in response to the second request, and the first message is a message generated by the router after encrypting the second WIFI SSID and the second WIFI password using the symmetric key.

9. The method according to claim 7 or 8, characterized in that: The first message also includes: information for indicating whether the router wizard configuration is completed, and the method further includes: When the information for indicating whether the wizard configuration of the router is completed indicates that the wizard configuration of the router is not completed, receiving a fourth request from the terminal device; A fourth message is sent to the terminal device, where the fourth message is a message generated by the router in response to the fourth request, and the fourth message includes an Internet access method of the router, where the Internet access method of the router includes: Ethernet point-to-point communication protocol PPPOE, or dynamic host configuration protocol DHCP.

10. A router connection method, characterized in that: Applied to a terminal device, the method comprises: Receiving a first operation of a user scanning a target QR code, where the target QR code is a QR code corresponding to the router; In response to the first operation, acquiring a first WIFI SSID and a first WIFI password based on the target QR code, where the first WIFI SSID and the first WIFI password are determined based on attribute parameters of the router; Establishing a first WIFI connection with the router based on the first WIFI SSID and the first WIFI password; Based on the first WIFI connection, obtaining a second WIFI SSID and a second WIFI password from the router; Based on the second WIFI SSID and the second WIFI password, a second WIFI connection is established with the router.

11. The method according to claim 10, characterized in that The first WIFI connection is a local area network connection.

12. The method according to claim 10 or 11, characterized in that: After establishing the second WIFI connection, the method further includes: Based on the second WIFI connection, sending a first data packet to the router, where the first data packet is a data packet for accessing a network server through the router; A second data packet is received from the router, where the second data packet is a response data packet generated when the network server receives the first data packet.

13. The method according to any one of claims 10 to 12, characterized in that: After establishing the second WIFI connection, the method further includes: Close the first WIFI connection.

14. The method according to any one of claims 10 to 13, characterized in that: The second WIFI SSID is changed to a third WIFI SSID, and / or the second WIFI password is changed to a third WIFI password, and the method further includes: Receiving a second operation of the user scanning the target QR code; In response to the second operation, acquiring the first WIFI SSID and the first WIFI password based on the target QR code; Establishing a first WIFI connection with the router based on the first WIFI SSID and the first WIFI password; Based on the first WIFI connection, obtaining attribute information of a third WIFI from the router, wherein the attribute information of the third WIFI includes: the third WIFI SSID and the third WIFI password; Based on the attribute information of the third WIFI, a third WIFI connection is established with the router.

15. The method according to claim 14, characterized in that After establishing the second WIFI connection, the method further includes: receiving a third operation from the user; In response to the third operation, the attribute information of the third WIFI is sent to the router, where the attribute information of the third WIFI is obtained by adjusting the attribute information of the second WIFI based on the third operation, and the attribute information of the second WIFI includes: the second WIFI SSID and the second WIFI password.

16. The method according to any one of claims 10 to 15, characterized in that: The attribute parameters of the router include a serial number SN of the router, and the first WIFI SSID and the first WIFI password are determined based on the SN of the router.

17. The method according to any one of claims 10 to 16, characterized in that: The acquiring a second WIFI SSID and a second WIFI password from the router based on the first WIFI connection includes: Based on the first WIFI connection, sending a first request to the router; A first message is received from the router, where the first message includes the second WIFI SSID and the second WIFI password, and the first message is a message generated by the router in response to the first request.

18. The method according to claim 17, characterized in that Before sending the first request, the method further includes: sending a second request to the router; A second message is received from the router, wherein the second message includes a symmetric key, the second message is a message generated by the router in response to the second request, and the first message is a message generated by the router after encrypting the second WIFI SSID and the second WIFI password by using the symmetric key.

19. The method according to any one of claims 10 to 18, characterized in that: Before establishing the first WIFI connection, the method further includes: Obtaining a uniform resource locator URL from the target QR code; Sending a third request to the first server, wherein the third request includes the URL; Receive a third message from the first server and display a first prompt information in the first interface, the third message includes at least one interface information corresponding to the URL, the at least one interface information includes interface information corresponding to the first interface, the third message is a message generated by the server in response to the third request, and the first prompt information is used to prompt the terminal device to enter the code scanning connection system.

20. The method according to claim 19, characterized in that After the first prompt information is displayed in the first interface, the method further includes: The second prompt information is displayed in the second interface, and the second prompt information is used to prompt that the terminal device is synchronizing the first information, and the first information includes: the second WIFI SSID and the second WIFI password.

21. The method according to claim 20, characterized in that After obtaining the second WIFI SSID and the second WIFI password from the router, the method further includes: The third prompt information and the fourth prompt information are displayed in sequence in the second interface, the third prompt information is used to prompt that the first information is successfully synchronized in the terminal device, and the fourth prompt information is used to prompt that the terminal device is connecting to the router WIFI.

22. The method according to claim 20, characterized in that The method further comprises: When the first information is not detected, fifth and sixth prompt messages are displayed in the second interface, the fifth prompt message is used to prompt that the first information fails to be synchronized in the terminal device, and the sixth prompt message includes at least one strategy for reacquiring the first information.

23. The method according to any one of claims 20 to 22, characterized in that: After establishing the second WIFI connection, the method further includes: The seventh prompt information is displayed in the second interface, and the seventh prompt information is used to prompt that the terminal device is successfully connected to the router.

24. The method according to any one of claims 20 to 23, characterized in that: The first information may further include: information for indicating whether the router wizard configuration is completed, and the method further includes: When the information for indicating whether the wizard configuration of the router is completed indicates that the wizard configuration of the router is not completed, sending a fourth request to the router; Receive a fourth message from the router, the fourth message is a message generated by the router in response to the fourth request, the fourth message includes the Internet access method of the router, and the Internet access method of the router includes: Ethernet point-to-point communication protocol PPPOE, or dynamic host configuration protocol DHCP.

25. The method according to any one of claims 10 to 24, characterized in that: The target QR code is a mini program code.

26. A terminal device, characterized in that: include: processor and memory, wherein The memory is used to store computer programs; The processor is configured to call and execute the computer program so that the terminal device executes the method according to any one of claims 10 to 25.

27. A computer-readable storage medium, characterized in that: Used to store a computer program, when the computer program is run on a computer, the computer is caused to execute the method according to any one of claims 1 to 9, or execute the method according to any one of claims 10 to 25.

Citation Information

Cited By

  • Router connecting method and apparatus

    EP4583587A1

  • Router connecting method and apparatus

    WO2024244623A1