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

By judging the router's dynamic network configuration abnormality in the device and displaying the static network configuration page to obtain static configuration information, the network connection failure caused by the router's dynamic configuration abnormality is solved, and the connection success rate is improved.

CN119420625APending Publication Date: 2025-02-11SHENZHEN TCL DIGITAL TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411348913.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2025-02-11

AI Technical Summary

Technical Problem

When the device establishes a network connection with the router, if the router has an abnormal dynamic network configuration, it cannot dynamically configure the network configuration information, resulting in the network connection failure.

Method used

By determining whether the router to be accessed has a dynamic network configuration abnormality, if it exists, display the static network configuration page, obtain the static network configuration information entered by the user, and establish a network connection with the router based on this information.

Benefits of technology

When the router has dynamic network configuration abnormalities, it can effectively improve the success rate of network connection between the device and the router and avoid connection failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119420625A_ABST
    Figure CN119420625A_ABST
Patent Text Reader

Abstract

The invention discloses a network connection method and device, a storage medium, electronic equipment and a router, and relates to the technical field of communication, the equipment can judge whether a to-be-accessed router has dynamic network configuration abnormity, and the dynamic network configuration abnormity means that dynamic configuration of dynamic network configuration information has abnormity; if the dynamic network configuration of the router is abnormal, displaying a static network configuration page; and 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. According to the invention, when the dynamic network configuration of the router is abnormal, the network connection with the router can be successfully established, and the success rate of establishing the network connection between the equipment and the router is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] When a device establishes a network connection with a router, it needs to obtain the dynamic network configuration information such as the Internet Protocol address (IP address), subnet mask, gateway, DNS information, etc. dynamically configured by the router, and then establish a network connection with the router based on this dynamic network configuration information. Currently, if the router has a dynamic network configuration anomaly and cannot dynamically configure this network configuration information to the device, the device will generally stop establishing a network connection with the router, resulting in a network connection failure. Summary of the invention

[0003] The embodiment of the present application provides a solution that can effectively improve the success rate of establishing a network connection between a device and a router.

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

[0005] According to one embodiment of the present application, a network connection method is applied to a device, and the method includes: determining whether a router to be accessed has a dynamic network configuration anomaly, wherein the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of dynamic network configuration information; if the router has a dynamic network configuration anomaly, 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.

[0006] In some embodiments of the present application, determining whether a dynamic network configuration anomaly exists in the router to be accessed, 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 the Internet Protocol address dynamically configured by the dynamic host configuration protocol server in the router has not been obtained for more than a predetermined period of time; if so, determining that a dynamic network configuration anomaly exists in the router.

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

[0008] In some embodiments of the present application, determining whether a dynamic network configuration anomaly exists in a router to be accessed includes: sending a wireless network password to the router; receiving an activation status of a dynamic host configuration protocol server returned by the router together with an authentication result, wherein the authentication result is obtained by the router authenticating the wireless network password; and determining whether a dynamic network configuration anomaly exists in the router based on the activation status.

[0009] In some embodiments of the present application, the display of the static network configuration page includes: playing static configuration prompt information, wherein the static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network; if so, displaying the static network configuration page.

[0010] In some embodiments of the present application, the display of the static network configuration page includes: 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 static configuration reference information.

[0011] In some embodiments of the present application, obtaining the static configuration reference information corresponding to the router includes: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by associated devices within a local area network of the router; obtaining other static configuration information other than the selected static configuration information from the static configuration information set to obtain candidate static configuration information; and generating the static configuration reference information containing the candidate static configuration information.

[0012] In some embodiments of the present application, after determining whether the router has a dynamic network configuration anomaly, the method further includes: if the router has a dynamic network configuration anomaly, playing static connection prompt information, wherein the static connection prompt information is used to ask the user whether to establish a network connection with the router through the default static network configuration information; if a consent instruction is received, establishing a network connection with the router based on the default static network configuration information.

[0013] According to one embodiment of the present application, a network connection method is applied to a router, the method comprising: receiving static network configuration information sent by a device, 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 anomaly, the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; if the static network configuration information is verified to be passed, then accessing the device.

[0014] In some embodiments of the present application, before receiving the static network configuration information sent by the device, the method further includes: 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.

[0015] According to one embodiment of the present application, a network connection device is applied to a device, and the device includes: a judgment module, which is used to judge whether there is a dynamic network configuration anomaly in the router to be accessed, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the network configuration information; a display module, which is used to display a static network configuration page if there is a dynamic network configuration anomaly in the router; and a connection module, which is used to obtain the 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.

[0016] In some embodiments of the present application, the judgment module is used to: send the wireless network password to the router; receive the authentication result for the wireless network password returned by the router; if the authentication result is authentication passed, determine whether the Internet Protocol address dynamically configured by the dynamic host configuration protocol server in the router has not been obtained for more than a predetermined time; if so, determine that there is a dynamic network configuration anomaly in the router.

[0017] In some embodiments of the present application, the judgment module is used to: obtain network connection information shared by other devices within a predetermined period of time; and determine whether there is a dynamic network configuration anomaly in the router based on the network connection information.

[0018] In some embodiments of the present application, the judgment module is used to: send a wireless network password to the router; receive the startup status of the dynamic host configuration protocol server returned by the router together with the authentication result, wherein the authentication result is obtained by the router authenticating the wireless network password; and determine whether the router has a dynamic network configuration anomaly based on the startup status.

[0019] In some embodiments of the present application, the display module is used to: play static configuration prompt information, wherein the static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network; if so, display the static network configuration page.

[0020] In some embodiments of the present application, the display module is used 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 can input the static network configuration information according to the static configuration reference information.

[0021] In some embodiments of the present application, the display module is used to: obtain the static configuration information set corresponding to the router; obtain the selected static configuration information shared by associated devices in the local area network of the router; obtain other static configuration information other than the selected static configuration information from the static configuration information set to obtain candidate static configuration information; and generate the static configuration reference information containing the candidate static configuration information.

[0022] In some embodiments of the present application, after determining whether the router has a dynamic network configuration anomaly, the device also includes a default execution module, which is used to: if the router has a dynamic network configuration anomaly, play static connection prompt information, and the static connection prompt information is used to ask the user whether to establish a network connection with the router through the default static network configuration information; if a consent instruction is received, establish a network connection with the router based on the default static network configuration information.

[0023] According to one embodiment of the present application, a network connection device is applied to a router, and the device includes: a receiving module, which is used 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, and the static network configuration page is displayed by the device after determining whether there is a dynamic network configuration anomaly in the router, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the network configuration information; a verification module, which is used to access the device if the verification of the static network configuration information passes.

[0024] In some embodiments of the present application, before receiving the static network configuration information sent by the device, the apparatus further includes a verification module for: receiving a wireless network password sent by the device; authenticating the wireless network password, obtaining an authentication result, and sending the authentication result to the device.

[0025] According to another embodiment of the present application, a storage medium stores a computer program thereon, and when the computer program is executed by a processor of a computer, the computer executes the method described in the embodiment of the present application.

[0026] According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application executed on one side of the device.

[0027] According to another embodiment of the present application, a router includes: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application executed on the router side.

[0028] According to another embodiment of the present application, a computer program product or a computer program includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in various optional implementations described in the embodiments of the present application.

[0029] In an embodiment of the present application, the device can: determine whether there is a dynamic network configuration anomaly in the router to be accessed, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; if the router has a dynamic network configuration anomaly, a static network configuration page is displayed; obtain the static network configuration information entered through the static network configuration page, and establish a network connection with the router based on the static network configuration information.

[0030] In this way, when the device determines that there is an abnormality in the dynamic configuration of the dynamic network configuration information of the router to be accessed, it will display a static network configuration page for the user to enter the static network configuration information. Then, the device can use the static network configuration information to establish a network connection with the router. Furthermore, when the router has an abnormality in the dynamic network configuration, it can also successfully establish a network connection with the router, thereby improving the success rate of establishing a network connection between the device and the router. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0032] Figure 1 A flow chart of a network connection method according to an embodiment of the present application is shown.

[0033] Figure 2 A flow chart of a network connection method according to another embodiment of the present application is shown.

[0034] Figure 3 A flow chart of a network connection method according to another embodiment of the present application is shown.

[0035] Figure 4 A block diagram of a network connection device according to an embodiment of the present application is shown.

[0036] Figure 5 A block diagram of a network connection device according to another embodiment of the present application is shown.

[0037] Figure 6 A block diagram of an electronic device according to an embodiment of the present application is shown. DETAILED DESCRIPTION

[0038] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not intended to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. In the absence of conflict, the technical solutions recorded in the embodiments of the present disclosure can be implemented in any combination.

[0039] It should be noted that, in the embodiments of the present disclosure, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the elements explicitly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or apparatus. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other related elements in the method or apparatus including the element (such as a step in the method or a unit in the apparatus, for example, a unit may be a part of a circuit, a part of a processor, a part of a program or software, etc.).

[0040] For example, the network connection method provided by the embodiment of the present disclosure includes a series of steps, but the network connection method provided by the embodiment of the present disclosure is not limited to the recorded steps. Similarly, the network connection device provided by the embodiment of the present disclosure includes a series of units, but the device provided by the embodiment of the present disclosure is not limited to including the units explicitly recorded, and may also include units required to obtain relevant information or perform processing based on the information.

[0041] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0042] It is understandable that in the specific implementation of this application, relevant data is involved. When the embodiments in this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0043] Figure 1 The flowchart of a network connection method according to an embodiment of the present application is schematically shown. The execution subject of the network connection method can be any device with processing capabilities, such as a television, a computer, a mobile phone, a smart watch, and other home appliances.

[0044] like Figure 1 As shown, the network connection method may include steps S110 to S130.

[0045] Step S110, determine whether there is a dynamic network configuration anomaly in the router to be accessed, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; Step S120, if the router has a dynamic network configuration anomaly, display a static network configuration page; Step S130, obtain the 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.

[0046] When a device needs to access a 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 there is a dynamic network configuration anomaly in the router to be accessed.

[0047] Dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of dynamic network configuration information. The dynamic network configuration information may specifically include the Internet Protocol address (IP address), subnet mask, gateway and / or domain name information (DNS information) dynamically assigned by the router to the device.

[0048] If the router has a dynamic network configuration anomaly, it means that the router cannot dynamically configure dynamic network configuration information such as the Internet Protocol address (IP address), subnet mask, gateway and / or domain name information (DNS information) for the device. As a result, the device cannot successfully establish a network connection with the router based on the dynamic network configuration information.

[0049] In the related art, when there is an abnormality in the dynamic network configuration of the router, the device will disconnect from the router, resulting in a network failure. In the present application, if there is an abnormality in the dynamic network configuration of the router, the device will display a static network configuration page, and the user can enter the static network configuration information through the static network configuration page, and the device can establish a network connection with the router based on the static network configuration information.

[0050] Therefore, when there is an abnormality in the dynamic network configuration of the router, a network connection can be successfully established with the router based on the static network configuration information. When the router verifies that the static network configuration information is passed, it will access the device, so that the device is successfully connected to the network.

[0051] The user can input the static network configuration information through the input control in the static network configuration page, or the user can input the static network configuration information through the voice control in the static network configuration page. The static network configuration information can be information such as the Internet Protocol address (static IP address), subnet mask, gateway and / or DNS information statically assigned by the network administrator or the relevant allocation end. The static network configuration information is used for the user to input it into the device autonomously without the need for dynamic allocation by the router.

[0052] In this way, when the device determines that the router to be accessed has a dynamic network configuration anomaly, it will display a static network configuration page for the user to enter the static network configuration information. Then, the device can use the static network configuration information to establish a network connection with the router. Furthermore, when the router has a dynamic network configuration anomaly, it can also successfully establish a network connection with the router, thereby improving the success rate of establishing a network connection between the device and the router.

[0053] Described below Figure 1 When the network connection is performed under the embodiment, further optional specific embodiments are provided under each step performed.

[0054] In one embodiment, see Figure 2 , the step of determining whether the router to be accessed has a dynamic network configuration anomaly in step S110 may include: step S111, sending the wireless network password to the router; step S112, receiving the authentication result for the wireless network password returned by the router; step S113, if the authentication result is authentication passed, determining whether the Internet Protocol address dynamically configured by the dynamic host configuration protocol server in the router has not been obtained for more than a predetermined time; step S114, if so, determining that the router has a dynamic network configuration anomaly.

[0055] For the router to be accessed, the user first enters the 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, and obtains the authentication result, and the router can further return the authentication result to the device.

[0056] When the device determines that the authentication result of the router for the wireless network password is authentication passed (that is, the wireless network password is correct), the device further determines whether the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol (DHCP (Dynamic Host Configuration Protocol)) server in the router has not been obtained for more than a predetermined time. Specifically, when the device determines that the authentication result of the router for the wireless network password is authentication passed, the device further sends a Dynamic Host Configuration Protocol search (DHCP DISCOVER) message to the router. If the Dynamic Host Configuration Protocol server in the router does not respond to the Dynamic Host Configuration Protocol search message for more than a predetermined time, that is, the Internet Protocol address is not dynamically configured, it is determined that the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router has not been obtained for more than a predetermined time.

[0057] If the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router is not obtained within the predetermined time, it means that the Dynamic Host Configuration Protocol server in the router is turned off or there are other problems that make it impossible to dynamically configure the Internet Protocol address, and it is determined that the dynamic network configuration of the router is abnormal. Figure 2 As shown, steps S120 and S130 can be executed, wherein step S120 and step S130 can be specifically described with reference to the description of the aforementioned embodiment and will not be described in detail here.

[0058] Furthermore, in one embodiment, the determining whether the router to be accessed has a dynamic network configuration anomaly may include: obtaining network connection information shared by other devices within a predetermined period of time; and determining whether the router has a dynamic network configuration anomaly based on the network connection information.

[0059] For the router to be connected, the device can obtain the network connection information shared by other devices within a predetermined time period before the current moment. The network connection information can include the record information when other devices access the network of the router. For example, when other devices access the network of the router, if they find that the router has a dynamic network configuration anomaly, they can record it in the network connection information and share the network connection information with the device via Bluetooth connection or other connection methods. Furthermore, the device can directly determine whether the router has a dynamic network configuration anomaly from the network connection information shared by other devices, further improving the efficiency of judging dynamic network configuration anomalies, thereby improving network connection efficiency.

[0060] Furthermore, the determination of whether the router to be accessed has a dynamic network configuration anomaly includes: sending a wireless network password to the router; receiving an activation status of a dynamic host configuration protocol server returned by the router together with an authentication result, wherein the authentication result is obtained by the router authenticating the wireless network password; and determining whether the router has a dynamic network configuration anomaly based on the activation status.

[0061] For the router to be accessed, the user first enters the 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, and obtains the authentication result. The router can further return the authentication result to the device. Furthermore, when returning the authentication result, the router returns the activation status of the dynamic host configuration protocol server to the device. In addition, the device can efficiently determine whether the router has a dynamic network configuration anomaly based on the activation status, without having to wait for a predetermined period of time to determine, further improving the network connection efficiency. Among them, if the activation status of the dynamic host configuration protocol server is not activated, it is determined that the router has a dynamic network configuration anomaly.

[0062] Furthermore, in one embodiment, the display of the static network configuration page includes: playing static configuration prompt information, wherein the static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network; if so, displaying the static network configuration page.

[0063] When the device determines that there is an abnormality in the dynamic network configuration of the router, it can first play static configuration prompt information through voice broadcast or interface display. The static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network. For example, the static configuration prompt information can be "The network dynamic configuration is abnormal, do you want to perform static configuration?"

[0064] If the user responds to the static configuration prompt information with a "yes" feedback to the device, the device further displays the static network configuration page. Thus, the static network configuration page can be displayed only with the user's consent.

[0065] It is understandable that in other optional embodiments, when the device determines that there is a dynamic network configuration anomaly in the router, it can directly display the static network configuration page without asking the user first, and the user can manually close the static network configuration page.

[0066] Furthermore, in some embodiments, the display of the static network configuration page may 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.

[0067] The static configuration reference information of the router is reference information of statically input static network configuration information. In some methods, the static configuration reference information may specifically be the format of static network configuration information; in other methods, the static configuration reference information may specifically be candidate static configuration information.

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

[0069] In some other embodiments, the static network configuration page displayed may only include controls for inputting static network configuration information, but not network configuration reference information.

[0070] In some embodiments, the obtaining of static configuration reference information corresponding to the router includes: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by associated devices within a local area network of the router; obtaining other static configuration information other than the selected static configuration information from the static configuration information set to obtain candidate static configuration information; and generating the static configuration reference information containing the candidate static configuration information.

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

[0072] The device can also obtain the selected static configuration information shared by the associated devices in the local area network of the router, and obtain other static configuration information other than 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, static configuration reference information including the candidate static configuration information is generated and displayed on the static network configuration page, and the user can directly and efficiently reliably select a static network configuration information from the candidate static configuration information.

[0073] Furthermore, in one embodiment, after determining whether the router has a dynamic network configuration anomaly, the method further includes: if the router has a dynamic network configuration anomaly, playing static connection prompt information, wherein the static connection prompt information is used to ask the user whether to establish a network connection with the router through the default static network configuration information; if a consent instruction is received, establishing a network connection with the router based on the default static network configuration information.

[0074] In this embodiment, if the device determines that there is an abnormal dynamic network configuration of the router, it can play static connection prompt information through voice or interface display, and the static connection prompt information is used to ask the user whether to establish a network connection with the router through the default static network configuration information.

[0075] The default static network configuration information is the default information pre-specified in the device as the static network configuration information. If the user agrees to establish a network connection with the router through the default static network configuration information and feeds back an agreement 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, further improving the network connection efficiency.

[0076] Further, the network connection method performed by the router side is further described below, see Figure 3 , the router side can execute the corresponding network connection method relative to the device side. The router side can execute:

[0077] Step S310, receiving static network configuration information sent by the device, wherein the static network configuration information is input by the device through a static network configuration page, and the static network configuration page is displayed by the device after determining that the router has a dynamic network configuration anomaly, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; Step S320, if the verification of the static network configuration information is passed, accessing the device.

[0078] Corresponding to the device side, after receiving the static network configuration information entered by the device through the static network configuration page, the router verifies the static network configuration information. If the verification of the static network configuration information passes, the device is connected, and then the device is successfully connected to the wireless network corresponding to the router.

[0079] Furthermore, when the device determines that the router to be accessed has a dynamic network configuration anomaly, it can display a static network configuration page for the user to enter static network configuration information. Then, the device can use the static network configuration information to establish a network connection with the router. Furthermore, when the router has a dynamic network configuration anomaly, the device can also successfully establish a network connection with the router, thereby improving the success rate of establishing a network connection between the device and the router.

[0080] Furthermore, before receiving the static network configuration information sent by the device, the method further includes: 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.

[0081] For the router to be accessed, the user first enters the 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, and obtains the authentication result, and the router can further return the authentication result to the device.

[0082] When the device determines that the authentication result of the router for the wireless network password is authentication passed (that is, the wireless network password is correct), the device further determines whether the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol (DHCP (Dynamic Host Configuration Protocol)) server in the router has not been obtained for more than a predetermined time. Specifically, when the device determines that the authentication result of the router for the wireless network password is authentication passed, the device further sends a Dynamic Host Configuration Protocol search (DHCP DISCOVER) message to the router. If the Dynamic Host Configuration Protocol server in the router does not respond to the Dynamic Host Configuration Protocol search message for more than a predetermined time, that is, the Internet Protocol address is not dynamically configured, it is determined that the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router has not been obtained for more than a predetermined time.

[0083] If the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router is not obtained within the predetermined time, it means that the Dynamic Host Configuration Protocol server in the router is turned off or there are other problems that make it impossible to dynamically configure the Internet Protocol address, and it is determined that the dynamic network configuration of the router is abnormal. Figure 2 As shown, steps S120 and S130 can be executed to send static network configuration information to the router.

[0084] In order to better implement the network connection method provided in the embodiment of the present application, the embodiment of the present application also provides 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 refer to the description in the method embodiment.

[0085] Figure 4 FIG. 1 is a block diagram of a network connection device according to an embodiment of the present application. Figure 4 The network connection apparatus 400 shown can be applied to a device.

[0086] like Figure 4As shown, the network connection device 400 may include: a judgment module 410 can be used to judge whether there is a dynamic network configuration anomaly in the router to be accessed, and the dynamic network configuration anomaly refers to an abnormality in the dynamic configuration of the network configuration information; a display module 420 can be used to display a static network configuration page if there is a dynamic network configuration anomaly in the router; a connection module 430 can be used to obtain the 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.

[0087] In some embodiments of the present application, the judgment module is used to: send the wireless network password to the router; receive the authentication result for the wireless network password returned by the router; if the authentication result is authentication passed, determine whether the Internet Protocol address dynamically configured by the dynamic host configuration protocol server in the router has not been obtained for more than a predetermined time; if so, determine that there is a dynamic network configuration anomaly in the router.

[0088] In some embodiments of the present application, the judgment module is used to: obtain network connection information shared by other devices within a predetermined period of time; and determine whether there is a dynamic network configuration anomaly in the router based on the network connection information.

[0089] In some embodiments of the present application, the judgment module is used to: send a wireless network password to the router; receive the startup status of the dynamic host configuration protocol server returned by the router together with the authentication result, wherein the authentication result is obtained by the router authenticating the wireless network password; and determine whether the router has a dynamic network configuration anomaly based on the startup status.

[0090] In some embodiments of the present application, the display module is used to: play static configuration prompt information, wherein the static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network; if so, display the static network configuration page.

[0091] In some embodiments of the present application, the display module is used 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 can input the static network configuration information according to the static configuration reference information.

[0092] In some embodiments of the present application, the display module is used to: obtain the static configuration information set corresponding to the router; obtain the selected static configuration information shared by associated devices in the local area network of the router; obtain other static configuration information other than the selected static configuration information from the static configuration information set to obtain candidate static configuration information; and generate the static configuration reference information containing the candidate static configuration information.

[0093] In some embodiments of the present application, after determining whether the router has a dynamic network configuration anomaly, the device also includes a default execution module, which is used to: if the router has a dynamic network configuration anomaly, play static connection prompt information, and the static connection prompt information is used to ask the user whether to establish a network connection with the router through the default static network configuration information; if a consent instruction is received, establish a network connection with the router based on the default static network configuration information.

[0094] Figure 5 FIG. 1 is a block diagram of a network connection device according to an embodiment of the present application. Figure 5 The network connection device 500 shown can be applied to a router.

[0095] like Figure 5 As shown, the network connection device 500 may include: a receiving module 510 may be used 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, and the static network configuration page is displayed by the device after determining whether there is a dynamic network configuration anomaly in the router, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the network configuration information; a verification module 520 may be used to access the device if the verification of the static network configuration information passes.

[0096] In some embodiments of the present application, before receiving the static network configuration information sent by the device, the apparatus further includes a verification module for: receiving a wireless network password sent by the device; authenticating the wireless network password, obtaining an authentication result, and sending the authentication result to the device.

[0097] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0098] In addition, the present application also provides an electronic device, such as Figure 6As shown, Figure 6 A block diagram of an electronic device according to an embodiment of the present application is shown, specifically:

[0099] The electronic device may include components such as a processor 601 with one or more processing cores, a memory 602 with one or more computer-readable storage media, a power supply 603, and an input unit 604. Those skilled in the art will appreciate that Figure 6 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0100] in:

[0101] The processor 601 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire computer device. By running or executing software programs and / or modules stored in the memory 602, and calling data stored in the memory 602, it executes various functions of the computer device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 601 may include one or more processing cores; preferably, the processor 601 may 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 communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 601.

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

[0103] The electronic device also includes 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 as to manage charging, discharging, power consumption and other functions through the power management system. The power supply 603 can also include one or more DC or AC power supplies, recharging systems, power failure detection circuits, power converters or inverters, power status indicators and other arbitrary components.

[0104] The electronic device may further include an input unit 604, which may be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal input related to user settings and function control.

[0105] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail herein. Specifically in this embodiment, the processor 601 in the electronic device will load the executable files corresponding to the processes of one or more computer programs into the memory 602 according to the following instructions, and the processor 601 will run the computer programs stored in the memory 602, thereby realizing various functions in the aforementioned embodiments of the present application, such as the processor 601 may perform the following steps:

[0106] Determine whether the router to be accessed has a dynamic network configuration anomaly, where the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; if the router has a dynamic network configuration anomaly, display a static network configuration page; obtain the 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.

[0107] In some embodiments of the present application, determining whether a dynamic network configuration anomaly exists in the router to be accessed, 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 the Internet Protocol address dynamically configured by the dynamic host configuration protocol server in the router has not been obtained for more than a predetermined period of time; if so, determining that a dynamic network configuration anomaly exists in the router.

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

[0109] In some embodiments of the present application, determining whether a dynamic network configuration anomaly exists in a router to be accessed includes: sending a wireless network password to the router; receiving an activation status of a dynamic host configuration protocol server returned by the router together with an authentication result, wherein the authentication result is obtained by the router authenticating the wireless network password; and determining whether a dynamic network configuration anomaly exists in the router based on the activation status.

[0110] In some embodiments of the present application, the display of the static network configuration page includes: playing static configuration prompt information, wherein the static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network; if so, displaying the static network configuration page.

[0111] In some embodiments of the present application, the display of the static network configuration page includes: 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 static configuration reference information.

[0112] In some embodiments of the present application, obtaining the static configuration reference information corresponding to the router includes: obtaining a static configuration information set corresponding to the router; obtaining selected static configuration information shared by associated devices within a local area network of the router; obtaining other static configuration information other than the selected static configuration information from the static configuration information set to obtain candidate static configuration information; and generating the static configuration reference information containing the candidate static configuration information.

[0113] In some embodiments of the present application, after determining whether the router has a dynamic network configuration anomaly, the method further includes: if the router has a dynamic network configuration anomaly, playing static connection prompt information, wherein the static connection prompt information is used to ask the user whether to establish a network connection with the router through the default static network configuration information; if a consent instruction is received, establishing a network connection with the router based on the default static network configuration information.

[0114] According to another embodiment of the present application, a router includes: a memory storing a computer program; and a processor reading the computer program stored in the memory to execute the method described in the embodiment of the present application executed on the router side.

[0115] For example, the router side can execute: receiving static network configuration information sent by the device, the static network configuration information is input by the device through the static network configuration page, and the static network configuration page is displayed by the device after determining that the router has a dynamic network configuration anomaly, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; if the static network configuration information is verified to be passed, the device is connected.

[0116] In some embodiments of the present application, before receiving the static network configuration information sent by the device, the method further includes: 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.

[0117] A person of ordinary skill in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by a computer program, or by controlling related hardware through a computer program. The computer program may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0118] To this end, an embodiment of the present application further provides a storage medium, in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided in the embodiment of the present application.

[0119] The storage medium may be a computer-readable storage medium, and the storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0120] Since the computer program stored in the storage medium can execute the steps in any method provided in the embodiments of the present application, the beneficial effects that can be achieved by the method provided in the embodiments of the present application can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0121] Those skilled in the art will readily come up with other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0122] It should be understood that the present application is not limited to the embodiments that have been described above and shown in the accompanying drawings, but various modifications and changes may be made without departing from the scope thereof.

Claims

1. A network connection method, characterized in that: Applied to a device, the method comprises: Determine whether there is a dynamic network configuration anomaly in the router to be accessed, wherein the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; If the router has a dynamic network configuration anomaly, a static network configuration page is displayed; 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.

2. The method according to claim 1, characterized in that The determining whether the router to be accessed has a dynamic network configuration anomaly 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 the Internet Protocol address dynamically configured by the Dynamic Host Configuration Protocol server in the router is not obtained within a predetermined time period; If so, it is determined that there is a dynamic network configuration anomaly in the router.

3. The method according to claim 1, characterized in that The determining whether the router to be accessed has a dynamic network configuration anomaly includes: Obtain network connection information shared by other devices within a predetermined time period; Determine whether the router has a dynamic network configuration anomaly according to the network connection information.

4. The method according to claim 1, characterized in that The determining whether the router to be accessed has a dynamic network configuration anomaly includes: Sending a wireless network password to the router; Receiving the start status of the dynamic host configuration protocol server returned by the router together with the authentication result, wherein the authentication result is obtained by the router authenticating the wireless network password; Determine whether the router has a dynamic network configuration anomaly according to the startup state.

5. The method according to claim 1, characterized in that The static network configuration page includes: Playing static configuration prompt information, wherein the static configuration prompt information is used to ask the user whether to enter the static network configuration information through the static network configuration page to connect to the network; If yes, the static network configuration page is displayed.

6. The method according to claim 1 or 5, characterized in that: The static network configuration page includes: Obtaining static configuration reference information corresponding to the router; A static network configuration page is displayed, and the static configuration reference information is displayed in the static network configuration page, so that a user can input the static network configuration information according to the static configuration reference information.

7. The method according to claim 6, characterized in that The obtaining of static configuration reference information corresponding to the router includes: Obtaining a static configuration information set corresponding to the router; Obtaining selected static configuration information shared by associated devices in a local area network of the router; Acquire other static configuration information other than the selected static configuration information from the static configuration information set to obtain candidate static configuration information; The static configuration reference information including the candidate static configuration information is generated.

8. The method according to claim 1, characterized in that After determining whether the router has a dynamic network configuration anomaly, the method further includes: If the dynamic network configuration of the router is abnormal, a static connection prompt message is played, wherein the static connection prompt message is used to ask the user whether to establish a network connection with the router through the default static network configuration information; If an approval instruction is received, a network connection is established with the router based on the default static network configuration information.

9. A network connection method, characterized in that: Applied to a router, the method comprises: Receiving 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, and the static network configuration page is displayed by the device after determining that the router has a dynamic network configuration anomaly, and the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the dynamic network configuration information; If the static network configuration information is verified to be passed, the device is accessed.

10. The method according to claim 9, characterized in that Before the receiving device sends the static network configuration information, the method further includes: Receiving a wireless network password sent by the device; The wireless network password is authenticated to obtain an authentication result, and the authentication result is sent to the device.

11. A network connection device, characterized in that: Applied to equipment, the device comprises: A judgment module, used to judge whether there is a dynamic network configuration anomaly in the router to be accessed, wherein the dynamic network configuration anomaly refers to an abnormality in the dynamic configuration of the network configuration information; A display module, used for displaying a static network configuration page if there is an abnormality in the dynamic network configuration of the router; The connection module is used to obtain the 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.

12. A network connection device, characterized in that: Applied to a router, the device 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, and the static network configuration page is displayed by the device after determining whether the router has a dynamic network configuration anomaly, wherein the dynamic network configuration anomaly refers to an anomaly in the dynamic configuration of the network configuration information; The verification module is used to access the device if the verification of the static network configuration information is passed.

13. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 8 or 9 to 10.

14. An electronic device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 8.

15. A router, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 9 to 10.

Citation Information

Cited By

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

    WO2026066908A1