Network connection method and apparatus, and storage medium, electronic device and router

The device detects abnormal dynamic network configurations on the router and displays a static network configuration page. Users can input static network configuration information to resolve network connection failures caused by router malfunctions, thus achieving successful network connection even under abnormal circumstances.

WO2026066908A1PCT designated stage Publication Date: 2026-04-02SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-08-28
Publication Date
2026-04-02

AI Technical Summary

Technical Problem

When a router has a dynamic network configuration error, the device cannot dynamically configure network configuration information, resulting in network connection failure.

Method used

The device determines whether there is a dynamic network configuration error on the router, and displays a static network configuration page when an error occurs, allowing the user to enter static network configuration information to establish a network connection.

Benefits of technology

Even when there are dynamic network configuration errors on the router, a network connection can still be successfully established using static network configuration information, thus improving the success rate of network connection between the device and the router.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025117562_02042026_PF_FP_ABST
    Figure CN2025117562_02042026_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of communications. Disclosed are a network connection method and apparatus, and a storage medium, an electronic device and a router. The device may: determine whether a router has a dynamic network configuration abnormality; present a static network configuration page if the router has a dynamic network configuration abnormality; and acquire static network configuration information, which is inputted by means of the static network configuration page, and establish a network connection with the router on the basis of the static network configuration information. By means of the present application, the success rate of a device establishing a network connection with a router is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Network connection method and device, storage medium, electronic device and router

[0001] The present application claims priority from the Chinese patent application No. 202411348913.2 filed on September 25, 2024, and entitled "Network connection method, device, storage medium, electronic device and router", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of communication technology, in particular to a network connection method, device, storage medium, electronic device and router. BACKGROUND

[0003] When establishing a network connection with a router, a device needs to obtain dynamic network configuration information of the router, such as an Internet Protocol (IP) address, a subnet mask, a gateway, DNS information, etc., and then establish a network connection with the router based on the dynamic network configuration information. Currently, if the router has a dynamic network configuration exception and cannot dynamically configure the network configuration information to the device, the device will generally stop establishing a network connection with the router, resulting in a network connection failure. TECHNICAL PROBLEM

[0004] If the router has a dynamic network configuration exception and cannot dynamically configure the network configuration information to the device, the device will generally stop establishing a network connection with the router, resulting in a network connection failure. TECHNICAL SOLUTION

[0005] The embodiments of the present application provide a scheme, which can effectively improve the success rate of establishing a network connection between a device and a router.

[0006] The embodiments of the present application provide the following technical solutions:

[0007] According to an embodiment of the present application, a network connection method is applied to a device, and the method comprises: judging whether a router to be accessed has a dynamic network configuration exception, wherein the dynamic network configuration exception refers to an exception in dynamic configuration of dynamic network configuration information; if the router has a dynamic network configuration exception, a static network configuration page is displayed; static network configuration information input through the static network configuration page is obtained, and a network connection is established with the router based on the static network configuration information.

[0008] In some embodiments of the present application, the determining whether the router to be accessed has a dynamic network configuration exception comprises: sending a wireless network password to the router; receiving an authentication result of the wireless network password returned by the router; if the authentication result is authentication passed, determining whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period; and if yes, determining that the router has a dynamic network configuration exception.

[0009] In some embodiments of the present application, the determining whether the router to be accessed has a dynamic network configuration exception comprises: obtaining network connection information shared by other devices within a predetermined time period; and determining whether the router has a dynamic network configuration exception according to the network connection information.

[0010] In some embodiments of the present application, the determining whether the router to be accessed has a dynamic network configuration exception comprises: sending a wireless network password to the router; receiving an authentication result of the wireless network password returned by the router; if the authentication result is authentication passed, determining whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period; and if yes, determining that the router has a dynamic network configuration exception.

[0011] In some embodiments of the present application, the displaying the static network configuration page comprises: playing static configuration prompt information, the static configuration prompt information being used to inquire whether a user inputs static network configuration information for network connection through a static network configuration page; and if yes, displaying the static network configuration page.

[0012] In some embodiments of the present application, the displaying the static network configuration page comprises: obtaining static configuration reference information corresponding to the router; displaying the static network configuration page and displaying the static configuration reference information in the static network configuration page, so that the user inputs the static network configuration information according to the static configuration reference information.

[0013] In some embodiments of the present application, the obtaining static configuration reference information corresponding to the router comprises: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by an associated device in a local area network of the router; obtaining other static configuration information from the static configuration information set except the selected static configuration information, to obtain candidate static configuration information; and generating the static configuration reference information containing the candidate static configuration information.

[0014] In some embodiments of the present application, after the determining whether the router has the dynamic network configuration exception, the method further comprises: if the router has the dynamic network configuration exception, playing a static connection prompt information, the static connection prompt information is used to inquire whether a user establishes a network connection with the router through default static network configuration information; and if a consent instruction is received, establishing the network connection with the router based on the default static network configuration information.

[0015] According to an embodiment of the present application, a network connection method is applied to a router, and the method comprises: receiving static network configuration information sent by a device, the static network configuration information being input by the device through a static network configuration page, the static network configuration page being displayed by the device after determining that the router has a dynamic network configuration exception, the dynamic network configuration exception indicating that a dynamic configuration of dynamic network configuration information has an exception; and if the static network configuration information is verified to be correct, accessing the device.

[0016] In some embodiments of the present application, before the receiving the static network configuration information sent by the device, the method further comprises: receiving a wireless network password sent by the device; authenticating the wireless network password to obtain an authentication result, and sending the authentication result to the device.

[0017] According to an embodiment of the present application, a network connection device is applied to a device, and the device comprises: a judging module, configured to judge whether a router to be accessed has a dynamic network configuration exception, the dynamic network configuration exception indicating that a dynamic configuration of network configuration information has an exception; a displaying module, configured to display a static network configuration page if the router has the dynamic network configuration exception; and a connecting module, configured to obtain static network configuration information input through the static network configuration page, and establish a network connection with the router based on the static network configuration information.

[0018] In some embodiments of the present application, the judging module is configured to: send a wireless network password to the router; receive an authentication result of the wireless network password returned by the router; if the authentication result is authentication passed, judge whether an Internet Protocol address dynamically configured by a dynamic host configuration protocol server in the router is not obtained within a predetermined time length; if yes, determine that the router has the dynamic network configuration exception.

[0019] In some embodiments of the present application, the judging module is configured to: obtain network connection information shared by other devices within a predetermined time length; and determine whether the router has the dynamic network configuration exception according to the network connection information.

[0020] In some embodiments of the present application, the judging module is configured to: send a wireless network password to the router; receive an open state of a dynamic host configuration protocol server returned by the router together with an authentication result, the authentication result being obtained by the router authenticating the wireless network password; and determine whether the router has a dynamic network configuration exception according to the open state.

[0021] In some embodiments of the present application, the displaying module is configured to: play static configuration prompt information, the static configuration prompt information being used to inquire whether a user inputs static network configuration information through a static network configuration page for network connection; and if so, display the static network configuration page.

[0022] In some embodiments of the present application, the displaying module is configured to: obtain static configuration reference information corresponding to the router; display a static network configuration page and display the static configuration reference information in the static network configuration page, so that the user inputs the static network configuration information according to the static configuration reference information.

[0023] In some embodiments of the present application, the displaying module is configured to: obtain a static configuration information set corresponding to the router; obtain selected static configuration information shared by an associated device in a local area network of the router; obtain other static configuration information from the static configuration information set except the selected static configuration information, to obtain candidate static configuration information; and generate the static configuration reference information containing the candidate static configuration information.

[0024] In some embodiments of the present application, after judging whether the router has a dynamic network configuration exception, the device further comprises a default executing module configured to: if the router has a dynamic network configuration exception, play static connection prompt information, the static connection prompt information being used to inquire whether a user establishes network connection with the router through default static network configuration information; and if receiving an agreement instruction, establish network connection with the router based on the default static network configuration information.

[0025] According to an embodiment of the present application, a network connection device is applied to a router, and the device comprises: a receiving module configured to receive static network configuration information sent by a device, the static network configuration information being input by the device through a static network configuration page, the static network configuration page being displayed by the device after judging whether the router has a dynamic network configuration exception, the dynamic network configuration exception indicating that a dynamic configuration of network configuration information has an exception; and a verifying module configured to access the device if verifying that the static network configuration information is correct.

[0026] In some embodiments of the present application, before the static network configuration information sent by the receiving device, the apparatus further comprises a verification module configured to: receive a wireless network password sent by the device; authenticate the wireless network password to obtain an authentication result, and send the authentication result to the device.

[0027] According to another embodiment of the present application, a storage medium has a computer program stored thereon, which, when executed by a processor of a computer, causes the computer to perform the method according to the embodiments of the present application.

[0028] According to another embodiment of the present application, an electronic device can include a memory storing a computer program, and a processor reading the computer program stored in the memory to perform the method according to the embodiments of the present application.

[0029] According to another embodiment of the present application, a router can include a memory storing a computer program, and a processor reading the computer program stored in the memory to perform the method according to the embodiments of the present application.

[0030] According to another embodiment of the present application, a computer program product or a computer program includes computer instructions stored in a computer readable storage medium. A processor of a computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the method provided in various optional implementation manners according to the embodiments of the present application. Advantages

[0031] In the embodiments of the present application, the device can determine whether the router to be accessed has a dynamic network configuration exception, the dynamic network configuration exception refers to an exception in dynamic configuration of dynamic network configuration information, display a static network configuration page if the router has a dynamic network configuration exception, obtain static network configuration information input through the static network configuration page, and establish a network connection with the router based on the static network configuration information.

[0032] In this way, when the device determines that the router to be accessed has an exception in dynamic configuration of dynamic network configuration information, the device displays a static network configuration page for a user to input static network configuration information, and then the device can use the static network configuration information to establish a network connection with the router, thereby successfully establishing a network connection with the router when the router has a dynamic network configuration exception, and improving the success rate of establishing a network connection between the device and the router. BRIEF DESCRIPTION OF DRAWINGS

[0033] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiment description. Obviously, the drawings in the following description only some of the embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0034] FIG. 1 shows a flow chart of a network connection method according to one embodiment of the present application.

[0035] FIG. 2 shows a flow chart of a network connection method according to another embodiment of the present application.

[0036] FIG. 3 shows a flow chart of a network connection method according to another embodiment of the present application.

[0037] FIG. 4 shows a block diagram of a network connection apparatus according to one embodiment of the present application.

[0038] FIG. 5 shows a block diagram of a network connection apparatus according to another embodiment of the present application.

[0039] FIG. 6 shows a block diagram of an electronic device according to one embodiment of the present application.

[0040] Embodiments of the present application

[0041] The present disclosure will be further described in details by the following embodiments and drawings. It should be understood that the embodiments provided herein are only used to explain the present disclosure, and are not used to limit the present disclosure. In addition, the embodiments provided below are used to implement some embodiments of the present disclosure, and the technical solutions described in the embodiments of the present disclosure can be combined in any manner without conflict.

[0042] It should be noted that in the embodiments of the present disclosure, the terms "comprise", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the method or device comprising a series of elements not only includes the elements explicitly described, but also includes other elements not explicitly listed, or includes elements inherent in the implementation of the method or device. Without more limitations, the element defined by the sentence "comprises a" does not exclude the presence of other related elements (such as steps in the method or units in the device, for example, the unit can be part of the circuit, part of the processor, part of the program or software, etc.) in the method or device comprising the element.

[0043] For example, the network connection method provided by the embodiments of the present disclosure includes a series of steps, but the network connection method provided by the embodiments of the present disclosure is not limited to the steps described, and similarly, the network connection device provided by the embodiments of the present disclosure includes a series of units, but the device provided by the embodiments of the present disclosure is not limited to including the units explicitly described, and can also include units that need to be set when obtaining related information or processing based on information.

[0044] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present disclosure belongs. The terminology used in the specification is for the purpose of describing particular embodiments only and is not intended to be limiting of the present disclosure.

[0045] It can be understood that in the specific embodiments of the present application, relevant data is involved, and when the embodiments in the present application are applied to specific products or technologies, the permission or consent of the user needs to be obtained, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards in relevant countries and regions.

[0046] FIG. 1 schematically shows a flowchart of a network connection method according to an embodiment of the present application. The execution subject of the network connection method can be any device with processing capability, such as a television, a computer, a mobile phone, a smart watch, and other household appliances.

[0047] As shown in FIG. 1, the network connection method can include steps S110 to S130.

[0048] Step S110, determining whether a dynamic network configuration exception exists in a router to be accessed, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of dynamic network configuration information; step S120, if the dynamic network configuration exception exists in the router, a static network configuration page is displayed; step S130, static network configuration information input through the static network configuration page is obtained, and network connection is established with the router based on the static network configuration information.

[0049] When a device needs to access a certain wireless network (WIFI network), the router corresponding to the wireless network is the router to be accessed. For the router to be accessed, the device first determines whether a dynamic network configuration exception exists in the router to be accessed.

[0050] The dynamic network configuration exception indicates that there is an exception in dynamic configuration of dynamic network configuration information, and the dynamic network configuration information can specifically include an Internet Protocol address (IP address), a subnet mask, a gateway, and / or domain name information (DNS information) and the like dynamically allocated by the router for the device.

[0051] If the router has a dynamic network configuration exception, it means that the router cannot dynamically configure the device with dynamic network configuration information such as an Internet Protocol address (IP address), a subnet mask, a gateway, and / or Domain Name System (DNS) information, so the device cannot successfully establish a network connection with the router based on the dynamic network configuration information.

[0052] In related technologies, when the router has a dynamic network configuration exception, the device will disconnect from the router, resulting in a network connection failure. In this application, if the router has a dynamic network configuration exception, a static network configuration page is displayed in the device, and the user can input static network configuration information through the static network configuration page. The device can establish a network connection with the router based on the static network configuration information.

[0053] Thus, when the router has a dynamic network configuration exception, a network connection can be successfully established with the router based on static network configuration information. When the router verifies that the static network configuration information is correct, it will access the device, and the device will successfully connect to the network.

[0054] The user can input static network configuration information through an input control on the static network configuration page, or the user can input static network configuration information through a voice control on the static network configuration page. The static network configuration information can be static Internet Protocol (IP) address, subnet mask, gateway, and / or DNS information statically assigned by a network administrator or a related assignment end. The static network configuration information is used for the user to input to the device independently, without the need for dynamic allocation by the router.

[0055] In this way, when the device determines that the router to be accessed has a dynamic network configuration exception, it will display a static network configuration page for the user to input static network configuration information. Then, the device can use the static network configuration information to establish a network connection with the router, and thus, when the router has a dynamic network configuration exception, a network connection can be successfully established with the router, improving the success rate of establishing a network connection between the device and the router.

[0056] The following describes further optional embodiments of each step performed when establishing a network connection in the embodiment of FIG. 1.

[0057] In one embodiment, referring to FIG. 2, the determining whether the to-be-joined router has a dynamic network configuration exception in step S110 can include: sending a wireless network password to the to-be-joined router in step S111; receiving an authentication result of the wireless network password returned by the to-be-joined router in step S112; determining whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol server in the to-be-joined router is not obtained within a predetermined time period if the authentication result is passed in step S113; and determining that the to-be-joined router has a dynamic network configuration exception if the Internet Protocol address is not obtained within the predetermined time period in step S114.

[0058] The user of the to-be-joined router inputs a wireless network password first, the device sends the wireless network password to the to-be-joined router, the to-be-joined router authenticates the wireless network password, determines whether the wireless network password is correct, and obtains an authentication result. The to-be-joined router can further return the authentication result to the device.

[0059] If the device determines that the authentication result of the to-be-joined router for the wireless network password is passed (i.e., the wireless network password is correct), the device further determines whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol (DHCP) server in the to-be-joined router is not obtained within a predetermined time period. Specifically, if the device determines that the authentication result of the to-be-joined router for the wireless network password is passed, the device further sends a Dynamic Host Configuration Protocol search (DHCP DISCOVER) message to the to-be-joined router. If the Dynamic Host Configuration Protocol server in the to-be-joined router does not respond to the Dynamic Host Configuration Protocol search message (i.e., does not dynamically configure an Internet Protocol address) within the predetermined time period, the device determines that the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the to-be-joined router is not obtained within the predetermined time period.

[0060] If the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the to-be-joined router is not obtained within the predetermined time period, it indicates that the Dynamic Host Configuration Protocol server in the to-be-joined router is closed or has other problems and cannot dynamically configure an Internet Protocol address. Then, as shown in FIG. 2, steps S120 and S130 and the like can be performed. Steps S120 and S130 can be specifically referred to the description of the foregoing embodiments, which will not be described herein.

[0061] Further, in one embodiment, the determining whether the to-be-joined router has a dynamic network configuration exception can include: obtaining network connection information shared by other devices within a predetermined time period; and determining whether the to-be-joined router has a dynamic network configuration exception according to the network connection information.

[0062] For the router to be accessed, the device can obtain network connection information shared by other devices within a predetermined length of time before the current time, which can include record information of other devices accessing the network of the router, for example, if the router has dynamic network configuration exception when other devices access the network of the router, it can be recorded in the network connection information, and the network connection information is shared with the device through Bluetooth connection or other connection methods. Further, the device can directly determine whether the router has dynamic network configuration exception from the network connection information shared by other devices, further improve the judgment efficiency of dynamic network configuration exception, thereby improving the network connection efficiency.

[0063] Further, the determination of whether the router to be accessed has dynamic network configuration exception includes: sending a wireless network password to the router; receiving the start state of the dynamic host configuration protocol server returned by the router together with the authentication result, the authentication result being obtained by the router authenticating the wireless network password; and determining whether the router has dynamic network configuration exception according to the start state.

[0064] For the router to be accessed, the user first inputs a wireless network password, the device sends the wireless network password to the router, the router authenticates the wireless network password, authenticates whether the wireless network password is correct, obtains an authentication result, and the router further returns the authentication result to the device. Further, the router returns the start state of the dynamic host configuration protocol server to the device at the same time. Further, the device can efficiently determine whether the router has dynamic network configuration exception according to the start state, without having to wait for a predetermined length of time to determine, further improving the network connection efficiency. Wherein, if the start state of the dynamic host configuration protocol server is not started, it is determined that the router has dynamic network configuration exception.

[0065] Further, in an embodiment, the static network configuration page includes: playing static configuration prompt information, the static configuration prompt information being used to inquire whether the user inputs static network configuration information through the static network configuration page for network connection; if yes, the static network configuration page is displayed.

[0066] When the device determines that the router has dynamic network configuration exception, it can first play static configuration prompt information through voice broadcast or interface display, etc. The static configuration prompt information is used to inquire whether the user inputs static network configuration information through the static network configuration page for network connection, for example, the static configuration prompt information can be "network dynamic configuration exception, whether to perform static configuration" and the like.

[0067] If the user responds to the static configuration prompt information with "yes", the device further displays a static network configuration page, so that the static network configuration page can be displayed only when the user agrees.

[0068] It can be understood that in other optional embodiments, the device can directly display the static network configuration page when it is determined that the router has a dynamic network configuration exception, without first asking the user. The user can manually close the static network configuration page.

[0069] Further, in some embodiments, the display of the static network configuration page can specifically include: obtaining static configuration reference information corresponding to the router; displaying the static network configuration page and displaying the static configuration reference information in the static network configuration page, so that the user can input the static network configuration information according to the network configuration reference information.

[0070] The static configuration reference information of the router is reference information for inputting the static network configuration information. In some manners, the static configuration reference information can be specifically the format of the static network configuration information. In other manners, the static configuration reference information can be specifically candidate static configuration information.

[0071] The network configuration reference information is further displayed in the static network configuration page, so that the user can input the static network configuration information more efficiently and accurately according to the network configuration reference information.

[0072] In other embodiments, the display of the static network configuration page can only include a control for inputting the static network configuration information, without including the network configuration reference information.

[0073] In some embodiments, the obtaining of the static configuration reference information corresponding to the router can include: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by an associated device in the local area network of the router; obtaining other static configuration information from the static configuration information set except the selected static configuration information, to obtain candidate static configuration information; and generating the static configuration reference information containing the candidate static configuration information.

[0074] The device can obtain a static configuration information set corresponding to the router transmitted by a network administrator or a related distribution end. The static configuration information set corresponding to the router is a set of static network configuration information that can be successfully authenticated by the router.

[0075] The device can also acquire the selected static configuration information shared by the associated device in the local area network of the router, and acquire other static configuration information in addition to the selected static configuration information from the static configuration information set as the obtained candidate static configuration information, and the candidate static configuration information includes at least one candidate static network configuration information. Further, the static configuration reference information including the candidate static configuration information is displayed on the static network configuration page, and the user can directly and efficiently select a static network configuration information from the candidate static configuration information.

[0076] Further, in an embodiment, after determining whether the router has a dynamic network configuration exception, the method further includes: if the router has a dynamic network configuration exception, playing static connection prompt information, the static connection prompt information being used to inquire whether the user establishes a network connection with the router through default static network configuration information; and if a consent instruction is received, establishing a network connection with the router based on the default static network configuration information.

[0077] In this embodiment, if the device determines that the router has a dynamic network configuration exception, the device can play static connection prompt information through voice or interface display, and the static connection prompt information is used to inquire whether the user establishes a network connection with the router through default static network configuration information.

[0078] The default static network configuration information is default information in the device that is designated as static network configuration information in advance. If the user agrees to establish a network connection with the router through the default static network configuration information, and feeds back a consent instruction to the device, the device can directly establish a network connection with the router based on the default static network configuration information, without further input operation by the user, thereby further improving the network connection efficiency.

[0079] Further, the network connection method performed by the router side is further described below, and with reference to FIG. 3, the router side can perform a corresponding network connection method relative to the device side, and the router side can perform:

[0080] In step S310, the static network configuration information sent by the device is received, the static network configuration information is input by the device through a static network configuration page, the static network configuration page is displayed by the device after determining that the router has a dynamic network configuration exception, and the dynamic network configuration exception refers to an exception in dynamic configuration of dynamic network configuration information. In step S320, if the static network configuration information is verified to be correct, the device is accessed.

[0081] Corresponding to the device side, the router verifies the static network configuration information input by the device through the static network configuration page after receiving the static network configuration information, and if the static network configuration information is verified to be correct, the device is accessed, and then the device is successfully connected to the wireless network corresponding to the router.

[0082] Further, the device can display a static network configuration page for a user to input static network configuration information when it is determined that the router to be accessed has a dynamic network configuration exception, and then the device can use the static network configuration information to establish a network connection with the router. Thus, the device can also successfully establish a network connection with the router when the router has a dynamic network configuration exception, thereby improving the success rate of establishing a network connection between the device and the router.

[0083] Further, before receiving the static network configuration information sent by the device, the method further comprises: receiving a wireless network password sent by the device; authenticating the wireless network password to obtain an authentication result, and sending the authentication result to the device.

[0084] For the router to be accessed, the user first inputs a wireless network password, and the device sends the wireless network password to the router. The router authenticates the wireless network password to determine whether it is correct, and obtains an authentication result. The router can further return the authentication result to the device.

[0085] When the device determines that the authentication result of the router for the wireless network password is authentication passed (i.e., the wireless network password is correct), the device further determines whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol (DHCP) server in the router is obtained within a predetermined time period. Specifically, when the device determines that the authentication result of the router for the wireless network password is authentication passed, the device further sends Dynamic Host Configuration Protocol search (DHCP DISCOVER) information to the router. If the Dynamic Host Configuration Protocol server in the router does not respond to the Dynamic Host Configuration Protocol search information within a predetermined time period, i.e., no Internet Protocol address is dynamically configured, it is determined that the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period.

[0086] If the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period, it indicates that the Dynamic Host Configuration Protocol server in the router is closed or has other problems and cannot dynamically configure the Internet Protocol address. Then, as shown in FIG. 2, steps S120 and S130 and the like can be performed to send the static network configuration information to the router.

[0087] To facilitate better implementation of the network connection method provided by the embodiments of the present application, the embodiments of the present application further provide a network connection device based on the above network connection method. The meanings of the terms are the same as those in the above network connection method, and the specific implementation details can be referred to the description of the method embodiments.

[0088] FIG. 4 shows a block diagram of a network connection device according to an embodiment of the present application. The network connection device 400 shown in FIG. 4 can be applied to a device.

[0089] As shown in FIG. 4, the network connection device 400 can include: a judging module 410, which can be configured to judge whether a router to be accessed has a dynamic network configuration exception, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of network configuration information; a displaying module 420, which can be configured to display a static network configuration page if the router has the dynamic network configuration exception; and a connecting module 430, which can be configured to obtain static network configuration information input through the static network configuration page, and establish network connection with the router based on the static network configuration information.

[0090] In some embodiments of the present application, the judging module is configured to: send a wireless network password to the router; receive an authentication result for the wireless network password returned by the router; if the authentication result is authentication passed, judge whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time length; and if yes, determine that the router has the dynamic network configuration exception.

[0091] In some embodiments of the present application, the judging module is configured to: obtain network connection information shared by other devices within a predetermined time length; and determine whether the router has the dynamic network configuration exception according to the network connection information.

[0092] In some embodiments of the present application, the judging module is configured to: send a wireless network password to the router; receive an opening state of a Dynamic Host Configuration Protocol server returned by the router together with an authentication result, the authentication result being obtained by the router by authenticating the wireless network password; and determine whether the router has the dynamic network configuration exception according to the opening state.

[0093] In some embodiments of the present application, the displaying module is configured to: play static configuration prompt information, the static configuration prompt information being used to inquire whether a user inputs static network configuration information through a static network configuration page for network connection; and if yes, display the static network configuration page.

[0094] In some embodiments of the present application, the display module is configured to: acquire static configuration reference information corresponding to the router; display a static network configuration page and display the static configuration reference information in the static network configuration page, so that the user inputs the static network configuration information according to the static configuration reference information.

[0095] In some embodiments of the present application, the display module is configured to: acquire a set of static configuration information corresponding to the router; acquire selected static configuration information shared by an associated device in a local area network of the router; acquire other static configuration information from the set of static configuration information, except the selected static configuration information, to obtain candidate static configuration information; and generate the static configuration reference information containing the candidate static configuration information.

[0096] In some embodiments of the present application, after judging whether the router has a dynamic network configuration exception, the device further comprises a default execution module configured to: if the router has a dynamic network configuration exception, play static connection prompt information, the static connection prompt information being used to ask the user whether to establish network connection with the router through default static network configuration information; and if an agreement instruction is received, establish network connection with the router based on the default static network configuration information.

[0097] FIG. 5 shows a block diagram of a network connection device according to an embodiment of the present application. The network connection device 500 shown in FIG. 5 can be applied to a router.

[0098] As shown in FIG. 5, the network connection device 500 can comprise: a receiving module 510 configured to receive static network configuration information sent by a device, the static network configuration information being input by the device through a static network configuration page, the static network configuration page being displayed by the device after judging whether the router has a dynamic network configuration exception, the dynamic network configuration exception indicating that a dynamic configuration of network configuration information has an exception; and a verification module 520 configured to access the device if the static network configuration information is verified to be correct.

[0099] In some embodiments of the present application, before receiving the static network configuration information sent by the device, the device further comprises a verification module configured to: receive a wireless network password sent by the device; authenticate the wireless network password to obtain an authentication result, and send the authentication result to the device.

[0100] It should be noted that although several modules or units of the device for action execution are mentioned in the foregoing detailed description, such a division is not mandatory. Indeed, according to an embodiment of the application, the features and functionalities of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functionalities of one module or unit described above can be further divided into several modules or units embodied by several modules or units.

[0101] In addition, the embodiment of the present application further provides an electronic device, as shown in FIG. 6, which is a block diagram of an electronic device according to an embodiment of the present application, in particular:

[0102] The electronic device can include a processor 601 with one or more processing cores, a memory 602 with one or more computer readable storage media, a power supply 603, an input unit 604, and the like. Those skilled in the art can understand that the structure of the electronic device shown in FIG. 6 does not constitute a limitation on the electronic device, and can include more or fewer components than shown, or combine certain components, or different component arrangements. Among them:

[0103] The processor 601 is the control center of the electronic device, which connects various parts of the computer device through various interfaces and lines, and performs various functions and processes data of the computer device by running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, thereby overall monitoring the electronic device. Optionally, the processor 601 can include one or more processing cores; preferably, the processor 601 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user pages and application programs, etc., and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 601.

[0104] The memory 602 can be used to store software programs and modules, and the processor 601 executes various function applications and data processing by running the software programs and modules stored in the memory 602. The memory 602 can mainly include a storage program area and a storage data area, wherein the storage program area can store an operating system, at least one application program required by a function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area can store data created according to the use of the computer device, etc. In addition, the memory 602 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 602 can also include a memory controller to provide access for the processor 601 to the memory 602.

[0105] The electronic device can further include a power supply 603 for supplying power to each component. Preferably, the power supply 603 can be logically connected to the processor 601 through a power management system, so that the power management system can perform functions such as management of charging, discharging, and power consumption management. The power supply 603 can also include one or more DC or AC power sources, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.

[0106] The electronic device can further include an input unit 604 for receiving input digital or character information, and generating keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0107] Although not shown, the electronic device can further include a display unit and the like, which will not be described here. In the present embodiment, the processor 601 in the electronic device loads one or more executable files corresponding to processes of computer programs into the memory 602 according to the following instructions, and executes the computer programs stored in the memory 602 by the processor 601, thereby implementing various functions in the foregoing embodiments of the present application. For example, the processor 601 can perform the following steps:

[0108] determine whether the router to be accessed has a dynamic network configuration exception, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of dynamic network configuration information; if the router has a dynamic network configuration exception, display a static network configuration page; obtain static network configuration information input through the static network configuration page, and establish a network connection with the router based on the static network configuration information.

[0109] In some embodiments of the present application, the determination of whether the router to be accessed has a dynamic network configuration exception includes: sending a wireless network password to the router; receiving an authentication result for the wireless network password returned by the router; if the authentication result is authentication passed, determining whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period; if so, determining that the router has a dynamic network configuration exception.

[0110] In some embodiments of the present application, the determination of whether the router to be accessed has a dynamic network configuration exception includes: obtaining network connection information shared by other devices within a predetermined time period; and determining whether the router has a dynamic network configuration exception according to the network connection information.

[0111] In some embodiments of the present application, the determining whether the router to be accessed has a dynamic network configuration exception comprises: sending a wireless network password to the router; receiving an open state of a dynamic host configuration protocol server returned by the router together with an authentication result, the authentication result being obtained by the router authenticating the wireless network password; and determining whether the router has a dynamic network configuration exception according to the open state.

[0112] In some embodiments of the present application, the displaying the static network configuration page comprises: playing static configuration prompt information, the static configuration prompt information being used to inquire whether a user inputs static network configuration information for network connection through the static network configuration page; and if yes, displaying the static network configuration page.

[0113] In some embodiments of the present application, the displaying the static network configuration page comprises: obtaining static configuration reference information corresponding to the router; displaying the static network configuration page and displaying the static configuration reference information in the static network configuration page, so that the user inputs the static network configuration information according to the static configuration reference information.

[0114] In some embodiments of the present application, the obtaining the static configuration reference information corresponding to the router comprises: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by an associated device in a local area network of the router; obtaining other static configuration information from the static configuration information set except the selected static configuration information, to obtain candidate static configuration information; and generating the static configuration reference information containing the candidate static configuration information.

[0115] In some embodiments of the present application, after the determining whether the router has a dynamic network configuration exception, the method further comprises: if the router has a dynamic network configuration exception, playing static connection prompt information, the static connection prompt information being used to inquire whether a user establishes network connection with the router through default static network configuration information; and if receiving an agreement instruction, establishing network connection with the router based on the default static network configuration information.

[0116] According to another embodiment of the present application, a router comprises: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method performed by the router according to the embodiments of the present application.

[0117] For example, the router side can perform: receiving static network configuration information sent by a device, the static network configuration information being input by the device through a static network configuration page, the static network configuration page being displayed by the device after determining that the router has a dynamic network configuration exception, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of dynamic network configuration information; and accessing the device if the static network configuration information is verified to be correct.

[0118] In some embodiments of the present application, before the receiving device sends the static network configuration information, the method further comprises: receiving a wireless network password sent by the device; authenticating the wireless network password to obtain an authentication result, and sending the authentication result to the device.

[0119] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by a computer program, or by a computer program controlling related hardware, which can be stored in a computer readable storage medium and loaded and executed by a processor.

[0120] To this end, the embodiments of the present application further provide a storage medium, which stores a computer program capable of being loaded by a processor to execute the steps in any method provided by the embodiments of the present application.

[0121] The storage medium can be a computer readable storage medium, which can include a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0122] Since the computer program stored in the storage medium can execute the steps in any method provided by the embodiments of the present application, the beneficial effects of the methods provided by the embodiments of the present application can be achieved, which are described in detail in the foregoing embodiments and will not be described here.

[0123] Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application following, in general, the principles of the present application and including such

[0124] It should be understood that the present application is not limited to the embodiments described above and shown in the drawings, but various modifications and changes can be made without departing from the scope of the present application.

Claims

1. A network connection method, wherein, The method is applied to a device, and comprises: determining whether a router to be accessed has a dynamic network configuration exception, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of dynamic network configuration information; if the router has the dynamic network configuration exception, displaying a static network configuration page; obtaining static network configuration information input through the static network configuration page, and establishing a network connection with the router based on the static network configuration information.

2. The method of claim 1, wherein, The determination whether the router to be accessed has the dynamic network configuration exception comprises: sending a wireless network password to the router; receiving an authentication result for the wireless network password returned by the router; if the authentication result is authentication passed, determining whether an Internet Protocol address dynamically configured by a Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period; if yes, determining that the router has the dynamic network configuration exception.

3. The method of claim 1, wherein, The determination whether the router to be accessed has the dynamic network configuration exception comprises: obtaining network connection information shared by other devices within a predetermined time period; determining whether the router has the dynamic network configuration exception according to the network connection information.

4. The method of claim 1, wherein, The determination whether the router to be accessed has the dynamic network configuration exception comprises: sending a wireless network password to the router; receiving an open state of a Dynamic Host Configuration Protocol server returned by the router together with an authentication result, the authentication result being obtained by the router by authenticating the wireless network password; determining whether the router has the dynamic network configuration exception according to the open state.

5. The method of claim 1, wherein, The display of the static network configuration page comprises: playing static configuration prompt information, the static configuration prompt information being used to inquire whether a user inputs static network configuration information through a static network configuration page for network connection; if yes, displaying the static network configuration page.

6. The method of claim 1, wherein, The display of the static network configuration page comprises: obtaining static configuration reference information corresponding to the router; displaying the static network configuration page, and displaying the static configuration reference information in the static network configuration page, so that the user inputs the static network configuration information according to the static configuration reference information.

7. The method of claim 6, wherein, The obtaining of the static configuration reference information corresponding to the router comprises: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by an associated device in a local area network of the router; obtaining other static configuration information except the selected static configuration information from the static configuration information set, to obtain candidate static configuration information; generating the static configuration reference information containing the candidate static configuration information.

8. The method of claim 1, wherein, After the determination whether the router has the dynamic network configuration exception, the method further comprises: if the router has the dynamic network configuration exception, playing static connection prompt information, the static connection prompt information being used to inquire whether a user establishes a network connection with the router through default static network configuration information; if a consent instruction is received, establishing the network connection with the router based on the default static network configuration information.

9. The method of claim 2, wherein, If the authentication result is authentication pass, it is judged whether the Internet protocol address dynamically configured by a dynamic host configuration protocol server in the router is not obtained for more than a predetermined time length. If the authentication result is authentication pass, a dynamic host configuration protocol search information is sent to the router. If the dynamic host configuration protocol server in the router does not respond to the dynamic host configuration protocol search information for more than the predetermined time length, it is determined that the Internet protocol address dynamically configured by the dynamic host configuration protocol server in the router is not obtained for more than a predetermined time length.

10. The method of claim 1, wherein, The static network configuration page is directly displayed without asking the user.

11. A network connection method, wherein, The method applied to a router comprises: Receiving static network configuration information sent by a device, the static network configuration information being input by the device through a static network configuration page, the static network configuration page being displayed by the device after judging that the router has a dynamic network configuration exception, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of dynamic network configuration information; If the static network configuration information is verified to be correct, the device is accessed.

12. The method of claim 11, wherein, Before the receiving of the static network configuration information sent by the device, the method further comprises: Receiving a wireless network password sent by the device; Authenticating the wireless network password to obtain an authentication result, and sending the authentication result to the device.

13. The method of claim 12, wherein, After the sending of the authentication result to the device, the method further comprises: Receiving dynamic host configuration protocol search information sent by the device, wherein if the dynamic host configuration protocol server in the router does not respond to the dynamic host configuration protocol search information for more than the predetermined time length, the device determines that the Internet protocol address dynamically configured by the dynamic host configuration protocol server in the router is not obtained for more than a predetermined time length, and the device determines that the router has the dynamic network configuration exception.

14. A network connection device, wherein, The device applied to a device comprises: A judging module for judging whether a router to be accessed has a dynamic network configuration exception, the dynamic network configuration exception indicating that there is an exception in dynamic configuration of network configuration information; A displaying module for displaying a static network configuration page if the router has a dynamic network configuration exception; A connecting module for obtaining static network configuration information input through the static network configuration page, and establishing network connection with the router based on the static network configuration information.

15. The apparatus of claim 14, wherein, The judging module is configured to send a wireless network password to the router, receive an authentication result returned by the router for the wireless network password, and judge whether an Internet protocol address dynamically configured by a dynamic host configuration protocol server in the router is not obtained for more than a predetermined time length if the authentication result is authentication pass. If yes, it is determined that the router has a dynamic network configuration exception.

16. The apparatus of claim 14, wherein, The judging module is configured to obtain network connection information shared by other devices within a predetermined time length, and determine whether the router has a dynamic network configuration exception according to the network connection information.

17. A network connection device, wherein, The device is applied to a router and comprises: a receiving module, configured to receive static network configuration information sent by a device, wherein the static network configuration information is input by the device through a static network configuration page, the static network configuration page is displayed by the device after judging whether a dynamic network configuration exception exists in the router, and the dynamic network configuration exception refers to an exception in dynamic configuration of network configuration information; a verifying module, configured to access the device if the static network configuration information is verified to be correct.

18. A storage medium, wherein, A computer program is stored on the computer, and when the computer program is executed by a processor of the computer, the computer executes the method in any one of claims 1 to 10 or 11 to 13.

19. An electronic device, comprising:

19. An electronic device, wherein, comprising: a memory, configured to store a computer program; a processor, configured to read the computer program stored in the memory, and execute the method in any one of claims 1 to 10.

20. A router, wherein, comprising: a memory, configured to store a computer program; a processor, configured to read the computer program stored in the memory, and execute the method in any one of claims 11 to 13.

Citation Information

Patent Citations

  • Method and device for detecting local area network DNS (Domain Name System) hijack

    CN106506544A

  • Method and system of using router to detect networking mode automatically

    CN107592240A

  • Routing information synchronization method and device, computing equipment and storage medium

    CN118055064A

  • Network connection method and device, storage medium, electronic equipment and router

    CN119420625A

  • Network abnormality processing method and apparatus, and household electrical appliance

    WO2020233159A1