WO2016082517A1 - Method and device for recovering network connection - Google Patents

Method and device for recovering network connection Download PDF

Info

Publication number
WO2016082517A1
WO2016082517A1 PCT/CN2015/080792 CN2015080792W WO2016082517A1 WO 2016082517 A1 WO2016082517 A1 WO 2016082517A1 CN 2015080792 W CN2015080792 W CN 2015080792W WO 2016082517 A1 WO2016082517 A1 WO 2016082517A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
internet access
network connection
parameter
user
Prior art date
Application number
PCT/CN2015/080792
Other languages
French (fr)
Chinese (zh)
Inventor
郭守朋
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016082517A1 publication Critical patent/WO2016082517A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/18Selecting a network or a communication service

Definitions

  • This paper relates to the technical field of restoring network connections, and in particular to a method and apparatus for restoring network connections.
  • Internet access parameters such as data card / uFi (wireless network card) / CPE (Customer Premise Equipment) / router, such as broadband account password, Web UI (User Interface, user interface) login account password, 3G
  • the parameters such as the APN (Access Point Name) or the Internet access method used by the /4G data service are changed, the web UI cannot be logged in or the Internet cannot be accessed.
  • the following methods are used to restore the network connection: 1. By restarting the device, test whether the network is back to normal. 2. Reconfigure the parameters related to the Internet by restoring the factory settings, and provide technical support from the network operator if necessary. 3. Manually modify the relevant parameters such as the Internet through the user.
  • the network cannot be connected due to abnormal Internet access parameters, such as the user modifying the parameters related to the Internet access, or pressing the Reset button and forgetting the account password or APN parameters, the above method cannot restore the network connection.
  • the technical problem to be solved by the present invention is to provide a method and a device for restoring a network connection, which are used to solve the problem that the related technology cannot recover the network connection due to an abnormality of the Internet access parameter.
  • the priority is selected. Connect to a low-cost network in the network to connect to the network, or preferentially select the network with the priority connection set by the user to connect, or connect the network according to the network currently selected by the user.
  • the method further includes:
  • Network connection method service set identifier SSID and password for accessing other access point APs, firewall rules for network connection, and network connection mask list.
  • connection module is configured to re-connect the network using the Internet access parameter when the network connection is abnormal as follows:
  • the obtaining module is configured to: when the Internet parameter setting is completed and the network is still unable to connect, Obtaining the currently available Internet access parameters in the pre-backed Internet access parameters, and providing the obtained Internet access parameters to the user;
  • the solution provided by the embodiment of the present invention restores the Internet access parameter when the Internet access parameter is set and the network connection is normal.
  • the network connection is performed by using the backup Internet access parameter, so that the Internet access parameter is restored.
  • Network connectivity improves the user experience.
  • Figure 7 is a block diagram showing the structure of a recovery network connection apparatus according to Embodiment 3 of the present invention.
  • FIG. 1 is a flowchart of a method for restoring a network connection according to Embodiment 1 of the present invention. As shown in FIG. 1, the method includes the following steps:
  • Step 101 Back up the Internet access parameter when the Internet parameter setting is completed and the network is normally connected.
  • the Internet access parameter may include at least one of the following:
  • the foregoing step 101 may be configured to determine whether to back up the Internet access parameter according to the operation of the user. Specifically, after the Internet parameter setting is completed and the network is normally connected, the message prompting the backup Internet access parameter is displayed on the terminal interface that performs the network connection, and is received. When the user operation indicates that the Internet access parameters are backed up, the Internet access parameters are backed up. Otherwise, the Internet access parameters are not backed up.
  • the user operation may be an operation of inputting an indication signal by the user through the Internet terminal. The user operation is specifically limited. Those skilled in the art can understand that the user operations herein can be used by various current Internet terminals to receive an operation performed by the user to indicate whether to back up the Internet access parameters.
  • the user uses the mobile terminal product for the first time to access the Internet, you need to set the corresponding Internet access mode and the corresponding Internet access parameters.
  • the Internet access parameter configuration is complete, and the user performs the action of connecting to the network (the user's WAN port is inserted into the network cable in DHCP mode). , there will be a display connection on the UI. Gong, such as the Connected logo (text or icon).
  • the background will be connected according to the current dialed state, and it is determined whether the current Internet access mode and the Internet access parameter exist in the preset backup Internet access parameter. If not, the backup operation is performed.
  • the background parameters of the Internet access are triggered. If it is determined that the corresponding Internet access parameters are not backed up, the entry is backed up.
  • the background will give a prompt to prompt the user to use the backup parameters for recovery.
  • a list of users can be given for the user to choose. Users can use the connection list to perform networking operations, or use the recovery function to let the background itself try to configure parameters and network from the backup entries. If the network is successful, the user's current networking mode is given. If it fails, perform a simple network diagnosis for your reference.
  • the setting of the Internet parameter setting may be specifically: the timing when the Internet access parameter is modified, or the Internet access parameter set when the device first performs the network connection, for example, if the mobile device is powered on for the first time, the user sets the Internet access.
  • the mode that is, the network connection mode and the corresponding Internet access parameter, or when the Internet access mode needs to be changed, the user modifies the Internet access parameter, and after the configuration is completed, implements the network connection operation (such as SIM card/PPPOE dialing action, WAN port insertion network line action), network connection Normally, the background will back up the new Internet access method and other corresponding Internet access parameters, that is, the Internet access mode is also one of the Internet access parameters.
  • the Internet access parameter set by the user cannot complete the network connection, you can obtain the Internet access recovery function from the previously backed up Internet parameter entry to perform the network connection recovery operation, and try to restore the Internet access parameter, which is allowed or selected by the user (if there are multiple Internet access methods) The situation) uses an internet access method in the Internet parameter list.
  • the backup of the Internet access parameter can be performed after the user manually modifies the Internet access parameter. If the normal network connection can be established after the Internet access parameter is modified, and the Internet access parameter is not backed up, the Internet access parameter is backed up. If the network connection cannot be established after the Internet access parameter is modified, the Internet access parameter that the user can make a network connection is provided for the user to select. If the feasible Internet access parameter cannot be found from the backup Internet access parameter, the cause of the network abnormality is diagnosed. For example, the WAN port should be plugged into the network cable, but it is not inserted. In this case, the user needs to be prompted to insert the network cable, and then continue to try to recover the Internet parameters.
  • the backup location must be a partition that cannot be erased.
  • the size of the partition can be occupied by 10-20 backup records, which does not exceed 2M.
  • the partition can also be used to store preset Internet access methods and parameter entries.
  • Steps for judging whether the network is normal in the background Generally, first, setting the value of the network state according to the mobile terminal device, for example, when the dialing action is successfully dialed, setting a dialing success identifier to identify that the current dialing is successful. After determining that the dialing is successful, determine whether the public IP address is obtained. If the public IP address is obtained successfully, you can use ping (Network Diagnostic Tool) to check whether the preset website can connect to the network. The judgment results that can be obtained in the above various judgment steps can be used as the basis for whether the current network connection is abnormal. The background can select at least one of the steps to determine whether the network is normal.
  • the timing of determining whether the network is abnormal may be: when the Internet access mode or other Internet access parameters are changed. For example, if the network connection fails for the first time, if the network connection fails, the user prompts will be given when the network cable is in the correct state. You need to contact the carrier for support. When the parameters of the PPPOE change, such as the account and password changes, and this change is not what the user wants, this may be caused by the user's and other users' misoperations. In this case, the online parameter recovery operation is required. .
  • the backup Internet access parameter can be used for the case where there is a misoperation or the user cannot complete the parameter setting.
  • the user attempts to restore the network connection by selecting the Internet access parameter from the backup Internet parameter entry through the webpage or the UI or the combination key of the computer.
  • the command only needs to click the button to restore the Internet parameter on the UI, or call the same background interface defined by the combination key to perform the online parameter attempt recovery operation. That is, the user performs a recovery operation, invokes a background interface according to the operation, and queries the backup Internet access parameter entry in the background to determine the process of the online parameter.
  • you can first query the Internet access parameters corresponding to the current Internet access mode. If the network connection can be restored, the user prompts or the user selects.
  • the backup Internet access parameter can be used for querying by the user, and the identifier of the Internet access parameter can be presented.
  • the backup Internet access parameter items are presented on the UI for the user to select.
  • Step 102 When the network connection is abnormal, use the Internet access parameter to perform network connection.
  • the network connection using the Internet access parameter may specifically include:
  • the Internet access parameter of the device backup can be There are more than two types. For example, if the operator's SIM card is replaced, the corresponding APN parameters may also change. Therefore, even if the same Internet access method is used, different Internet access parameters may need to be backed up. Each time a new Internet access method is used, The background will query whether the backup entry has a backup of the Internet access parameters corresponding to the Internet access method. If not, the corresponding Internet access parameters are backed up. Therefore, when the network connection is abnormal, there may be multiple online access parameters available for backup in the device. In this case, you need to select these available Internet access parameters. You can select the following methods:
  • the network with low tariffs in the network to be connected is preferentially selected for network connection, or the preferentially connected network preset by the user is preferentially connected, or according to the network currently selected by the user. Make a network connection.
  • the method further includes: obtaining the currently available Internet access parameter in the pre-backed Internet access parameter, and providing the obtained online access parameter to the user, if the network parameter setting is completed and the network is still unable to connect; If the access network parameter network still cannot be connected, determine the reason why the network cannot be connected, and prompt the user why the network cannot be connected.
  • the process of using the backup Internet access parameter to perform the network connection may be set to be visible to the user and confirmed by the user whether to perform the process.
  • the method for restoring the network connection in this embodiment may further include: using the Internet access parameter Before the network connection is made, the message of the Internet parameter recovery and the available Internet access parameters are prompted on the terminal interface, and after receiving the user operation, the network connection is indicated by using the Internet access parameter indicated by the user operation.
  • the keyword search method may be used to obtain the corresponding Internet access parameter, thereby improving the efficiency of obtaining the corresponding Internet access parameter.
  • the method may further include:
  • the keyword used to find the corresponding Internet access parameter is determined according to the network connection mode of the current network to be connected, and the Internet access parameter of the current network to be connected is searched for by using the keyword in the online parameter of the backup, and the network connection parameter is used to perform network connection.
  • the method for restoring the network connection can diagnose the abnormality of the network connection, and the specific diagnosis method is as follows:
  • the Internet access parameter Before using the Internet access parameter to connect to the network, determine the cause of the abnormal network connection according to the historical Internet access parameters of the terminal that performs the network connection and the data of the backup Internet access; and prompt the user to provide the network connection guidance information according to the determined network connection abnormality.
  • the second embodiment provides a method for restoring the Internet access parameters, which is the same as the method for restoring the network connection of the embodiment 1. It discloses the more technical details of the method of the present invention to more clearly describe the present invention. The specific implementation process. It should be noted that the present embodiment is a preferred embodiment, and the disclosure is not intended to limit the implementation of the present invention.
  • the function of restoring the correct configuration of the last network connection is added to the UI of the traditional data card/uFi/cpe, so that the embedded Internet access device can automatically back up the relevant Internet access parameters.
  • the network connection is normal, and the embedded Internet access device background will automatically back up the relevant parameters of the Internet access.
  • the Internet access mode is PPPoE (Point- To-Point Protocol over Ethernet, point-to-point protocol dialing on Ethernet, the corresponding PPPoE account and password and PPPOE Internet access mode are backed up.
  • the Internet access mode for example, if the user uses the SIM (Subscriber Identity Module) card and sets the corresponding APN parameters, the Internet access is normal, and the Internet device backend will back up the mobile phone number/IMSI of the SIM card (International Mobile SubscriberIdentification Number). , the international mobile subscriber identity), and the corresponding APN parameters, when the SIM card is inserted again next time, the Internet access parameters corresponding to the entry are preferentially restored from the backup entry for the user to use.
  • SIM Subscriber Identity Module
  • the backup related online parameters in this embodiment can also be used for backup and restoring other related parameters, for example, the SSID and password of other APs, the firewall rules, and the black and white list of wifi can be backed up.
  • the backup related Internet access parameters can be operated through the UI.
  • the traditional data card can be used for network connection.
  • the UI and uFi and CPE can restore the Internet access parameters through the Web UI.
  • the backup operations can be automatically completed by the background.
  • it can also be implemented by setting a hardware combination key.
  • the combination key is used to quickly restore the Internet access mode and the corresponding Internet access parameter, and based on the combination key, there is no need to restore the Internet access parameter operation on the UI. That is, if the network connection can be restored only by the key combination, the user does not need to open the UI. For example, the way to restore instructions is entered via a button on the device. Perform recovery operations such as Internet/firewall rules/wifi black and white lists.
  • the online backup parameters of the background backup are backups after the network connection is normal, and the background parameters of the network can be backed up in advance, so that when the user first uses the Internet access device, the network connection operation can also be performed based on the online parameters that are backed up in advance, which is convenient and quick. . It should be noted that the backup Internet access parameters must be correct, otherwise the background will return a backup failure message.
  • the above process of restoring parameters such as the Internet may optionally be set to be visible to the user. If the user is invisible, the system needs to be designed to automatically back up and restore the Internet access parameters.
  • the abnormality of the network connection may be caused by other reasons except the abnormal Internet access parameters. Therefore, after the other abnormal causes are resolved, the Internet access parameters are used for network connection. Based on this, the above method also includes: Before the network connection, if the cause of the abnormal network connection is detected and is not related to the Internet access parameter, the user is prompted for the cause of the abnormal network connection.
  • the priority is selected according to the lowest tariff.
  • all the schemes are required for the user to select. Or try to use the cpe Internet terminal device as an example, as shown in Figure 4, according to a certain method set by the user.
  • the above process of restoring the Internet access parameter can perform keyword query recovery on the entry of the backup parameter.
  • the mobile phone number/IMSI number is used as a keyword query, as shown in FIG. 5, uFi
  • the CPE and the router can also perform keyword query according to the Internet access method, especially when judging that there is no SIM card, directly querying the Internet access mode.
  • the Internet access device has a GPS positioning function
  • the location message can be used as a judgment condition for storage, which is equivalent to the SIM card mobile phone number/IMSI number.
  • the lowest tariff is determined, it can also determine whether it is roaming according to the GPS positioning.
  • the above process of restoring the Internet access parameter may also be used as a diagnosis for the reason that the network cannot be connected.
  • the corresponding judgment basis is matched in the background, combined with the backup Internet access parameters, to jointly diagnose the reason that the network cannot be connected, to the user.
  • Prompt the network connection guide information to guide the user to complete the configuration of the Internet access parameters, as shown in Figure 6.
  • Figure 7 is a block diagram showing the structure of an apparatus for restoring a network connection according to Embodiment 3 of the present invention. As shown in FIG. 7, the device 70 specifically includes the following components:
  • the backup module 71 is configured to back up the Internet access parameter when the Internet access parameter setting is completed and the network is normally connected, and the connection module 72 is configured to use the Internet access parameter to perform network connection when the network connection is abnormal.
  • connection module 72 may be specifically configured to: if there are at least two networks to be connected based on the backup Internet access parameter, preferentially select a network with a low tariff in the network to be connected to perform network connection, or preferentially select a priority connection preset by the user. The network is connected, or the network connection is made according to the network currently selected by the user.
  • the foregoing apparatus 30 may further include: an obtaining module, configured to obtain a currently available Internet access parameter in the pre-backed Internet access parameter, and obtain the obtained Internet access parameter, if the Internet access parameter setting is completed and the network is still unable to connect.
  • the first prompting module is configured to determine the reason why the network cannot be connected if the network is still unable to connect using the obtained Internet access parameter, and prompt the user The reason the network could not be connected.
  • the foregoing apparatus 30 may further include: a second prompting module, configured to prompt a message for recovering the Internet parameter and an available Internet access parameter on the terminal interface before the network operation is performed by using the Internet access parameter, after the received user operation , using the Internet parameters indicated by the user operation for network connection.
  • a second prompting module configured to prompt a message for recovering the Internet parameter and an available Internet access parameter on the terminal interface before the network operation is performed by using the Internet access parameter, after the received user operation , using the Internet parameters indicated by the user operation for network connection.
  • the Internet access parameter includes at least one of the following: a network connection mode, a service set identifier SSID and password for accessing other access point APs, a firewall rule for network connection, and a network connection mask list.
  • the technical solution of the invention can restore the situation that the Internet access parameter is abnormal and cannot access the Internet, saves the time for communicating with the operator and the waiting time of the Internet, and improves the user experience. While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.
  • the solution provided by the embodiment of the present invention restores the Internet access parameter when the Internet access parameter is set and the network connection is normal.
  • the network connection is performed by using the backup Internet access parameter, so that the Internet access parameter is restored.
  • Network connectivity improves the user experience. Therefore, the present invention has strong industrial applicability.

Abstract

A method and device for recovering a network connection, the method comprising: when setting of an Internet-surfing parameter is complete and a network connection is normal, backing up the Internet-surfing parameter; and when the network connection is abnormal, using the Internet-surfing parameter for network connection. The solution enables recovery of the network connection when the Internet-surfing parameter is abnormal, thus improving user experience.

Description

一种恢复网络连接的方法及装置Method and device for restoring network connection 技术领域Technical field
本文涉及恢复网络连接的技术领域,特别是涉及一种恢复网络连接的方法及装置。This paper relates to the technical field of restoring network connections, and in particular to a method and apparatus for restoring network connections.
背景技术Background technique
当数据卡/uFi(无线上网卡)/CPE(Customer Premise Equipment,客户终端设备)/路由器等上网设备的上网参数,如宽带账号密码、Web UI(User Interface,用户界面)的登录账号密码、3G/4G数据业务使用的APN(Access Point Name,接入点名称)或上网方式等参数发生变化后,导致无法登录web UI或者无法上网的情况。一般采用以下方式来恢复网络连接:1、通过重启设备,测试网络是否恢复正常。2、通过恢复出厂设置,重新配置上网相关的参数,必要时需要网络运营商提供技术支持。3、通过用户手动修改上网等相关参数。然而,对于由于上网参数异常导致网络无法连接,如用户修改了上网相关的参数,或者误按了Reset(复位)按键且忘记账号密码或APN等参数的情况,上述方式则无法恢复网络连接。Internet access parameters such as data card / uFi (wireless network card) / CPE (Customer Premise Equipment) / router, such as broadband account password, Web UI (User Interface, user interface) login account password, 3G If the parameters such as the APN (Access Point Name) or the Internet access method used by the /4G data service are changed, the web UI cannot be logged in or the Internet cannot be accessed. Generally, the following methods are used to restore the network connection: 1. By restarting the device, test whether the network is back to normal. 2. Reconfigure the parameters related to the Internet by restoring the factory settings, and provide technical support from the network operator if necessary. 3. Manually modify the relevant parameters such as the Internet through the user. However, in the case that the network cannot be connected due to abnormal Internet access parameters, such as the user modifying the parameters related to the Internet access, or pressing the Reset button and forgetting the account password or APN parameters, the above method cannot restore the network connection.
发明内容Summary of the invention
本发明要解决的技术问题是提供一种恢复网络连接的方法及装置,用以解决相关技术无法恢复因上网参数异常而导致无法建立网络连接的问题。The technical problem to be solved by the present invention is to provide a method and a device for restoring a network connection, which are used to solve the problem that the related technology cannot recover the network connection due to an abnormality of the Internet access parameter.
为解决上述问题,采用如下技术方案:In order to solve the above problems, the following technical solutions are adopted:
一种恢复网络连接的方法,包括:A method of restoring a network connection, including:
在上网参数设置完成且网络使用该上网参数正常连接的情况下,备份所述上网参数;After the Internet parameter setting is completed and the network uses the Internet access parameter to connect normally, the online parameter is backed up;
在网络连接异常时,使用所述上网参数重新进行网络连接。When the network connection is abnormal, the network connection is used to re-connect the network.
可选地,所述使用所述上网参数重新进行网络连接的步骤包括:Optionally, the step of re-networking using the Internet access parameter includes:
如果基于备份的上网参数存在至少两种待连接网络,则优先选择所述待 连接网络中资费低的网络进行网络连接,或优先选择用户预先设置的优先连接的网络进行连接,或者根据用户当前选择的网络进行网络连接。If there are at least two networks to be connected based on the backup Internet access parameters, the priority is selected. Connect to a low-cost network in the network to connect to the network, or preferentially select the network with the priority connection set by the user to connect, or connect the network according to the network currently selected by the user.
可选地,所述方法还包括:Optionally, the method further includes:
在上网参数设置完成且网络仍无法连接的情况下,在所备份的上网参数中获取当前可用上网参数,并将获取到的上网参数提供给用户;After the Internet parameter setting is completed and the network is still unable to connect, obtain the currently available Internet access parameters in the backed up Internet parameters, and provide the obtained Internet access parameters to the user;
如果使用获取到的上网参数网络仍无法连接,则判断网络无法连接的原因,并向用户提示网络无法连接的原因。If the network is still unable to connect using the obtained Internet access parameter, determine the reason why the network cannot be connected, and prompt the user why the network cannot be connected.
可选地,所述方法还包括:Optionally, the method further includes:
在所述使用上网参数重新进行网络连接的步骤之前,在所述终端界面上提示上网参数恢复的消息以及可用的上网参数,在接收到的用户指示后,使用用户所指示的上网参数进行网络连接。Before the step of re-establishing the network connection by using the Internet access parameter, prompting the online parameter recovery message and the available Internet access parameter on the terminal interface, and after receiving the user indication, using the Internet access parameter indicated by the user to perform network connection .
可选地,所述上网参数包括以下信息中的至少一种:Optionally, the online parameter includes at least one of the following information:
网络连接方式、接入其他接入点AP的服务集标识SSID和密码、网络连接的防火墙规则、以及网络连接屏蔽名单。Network connection method, service set identifier SSID and password for accessing other access point APs, firewall rules for network connection, and network connection mask list.
一种恢复网络连接的装置,包括备份模块和连接模块,其中:A device for restoring a network connection, comprising a backup module and a connection module, wherein:
所述备份模块设置成:在上网参数设置完成且网络使用该上网参数正常连接的情况下,备份所述上网参数;The backup module is configured to: when the Internet parameter setting is completed and the network uses the Internet access parameter to connect normally, back up the Internet access parameter;
所述连接模块设置成:在网络连接异常时,使用所述上网参数重新进行网络连接。The connection module is configured to re-connect the network using the Internet access parameter when the network connection is abnormal.
可选地,所述连接模块设置成按照如下方式在网络连接异常时,使用所述上网参数重新进行网络连接:Optionally, the connection module is configured to re-connect the network using the Internet access parameter when the network connection is abnormal as follows:
如果基于备份的上网参数存在至少两种待连接网络,则优先选择所述待连接网络中资费低的网络进行网络连接,或优先选择用户预先设置的优先连接的网络进行连接,或者根据用户当前选择的网络进行网络连接。If there are at least two networks to be connected based on the backup Internet access parameter, the network with low tariff in the network to be connected is preferentially selected for network connection, or the network with preferential connection set by the user is preferentially selected for connection, or according to the current selection of the user. The network is connected to the network.
可选地,所述装置还包括获取模块和第一提示模块,其中,Optionally, the device further includes an obtaining module and a first prompting module, where
所述获取模块设置成:在上网参数设置完成且网络仍无法连接的情况下, 在预先备份的上网参数中获取当前可用上网参数,并将获取到的上网参数提供给用户;The obtaining module is configured to: when the Internet parameter setting is completed and the network is still unable to connect, Obtaining the currently available Internet access parameters in the pre-backed Internet access parameters, and providing the obtained Internet access parameters to the user;
所述第一提示模块设置成:如果使用获取到的上网参数网络仍无法连接,则判断网络无法连接的原因,并向用户提示网络无法连接的原因。The first prompting module is configured to: if the network is still unable to connect using the obtained Internet access parameter, determine the reason why the network cannot be connected, and prompt the user for the reason that the network cannot be connected.
可选地,所述装置还包括第二提示模块,其中,Optionally, the device further includes a second prompting module, where
所述第二提示模块设置成:在所述连接模块使用上网参数重新进行网络连接之前,在所述终端界面上提示上网参数恢复的消息以及可用的上网参数,在接收到的用户指示后,使用用户所指示的上网参数进行网络连接。The second prompting module is configured to: after the connection module uses the Internet access parameter to re-connect the network, prompt the Internet parameter recovery message and the available Internet access parameter on the terminal interface, and use the received user indication. The Internet access parameter indicated by the user is connected to the network.
可选地,所述上网参数包括以下信息中的至少一种:Optionally, the online parameter includes at least one of the following information:
网络连接方式、接入其他接入点AP的服务集标识SSID和密码、网络连接的防火墙规则、以及网络连接屏蔽名单。Network connection method, service set identifier SSID and password for accessing other access point APs, firewall rules for network connection, and network connection mask list.
一种计算机程序,包括程序指令,当该程序指令被计算机执行时,使得该计算机可执行上述任意的恢复网络连接的方法。A computer program comprising program instructions that, when executed by a computer, cause the computer to perform any of the methods described above for restoring a network connection.
一种载有所述的计算机程序的载体。A carrier carrying the computer program as described.
本发明实施例提供的方案,在上网参数设置完成且网络连接正常的情况下,备份上网参数,在网络连接异常时,使用备份的上网参数进行网络连接,使得在上网参数异常的情况下得以恢复网络连接,提高了用户体验。The solution provided by the embodiment of the present invention restores the Internet access parameter when the Internet access parameter is set and the network connection is normal. When the network connection is abnormal, the network connection is performed by using the backup Internet access parameter, so that the Internet access parameter is restored. Network connectivity improves the user experience.
附图概述BRIEF abstract
图1是本发明实施例1的恢复网络连接的方法的流程图;1 is a flowchart of a method for restoring a network connection according to Embodiment 1 of the present invention;
图2是本发明实施例2的上网参数恢复方法的流程图;2 is a flowchart of a method for restoring an Internet parameter according to Embodiment 2 of the present invention;
图3是本发明实施例2的上网参数恢复过程中用户提示消息的流程图;3 is a flowchart of a user prompt message in an online parameter recovery process according to Embodiment 2 of the present invention;
图4是本发明实施例2的上网参数恢复时网络连接方式的选择方法的流程图; 4 is a flowchart of a method for selecting a network connection mode when the Internet parameter is restored according to Embodiment 2 of the present invention;
图5是本发明实施例2的根据关键字查找对应备份上网参数的流程图;FIG. 5 is a flowchart of searching for corresponding backup Internet access parameters according to keywords according to Embodiment 2 of the present invention; FIG.
图6是本发明实施例2的根据终端上网的配置参数以及备份参数诊断网络无法连接的流程图;6 is a flowchart of a network connection configuration parameter and a backup parameter diagnosis network failing to connect according to Embodiment 2 of the present invention;
图7是本发明实施例3的恢复网络连接装置的结构框图。Figure 7 is a block diagram showing the structure of a recovery network connection apparatus according to Embodiment 3 of the present invention.
本发明的较佳实施方式Preferred embodiment of the invention
为了解决相关技术无法恢复因上网参数异常而导致无法建立网络连接的问题,本发明实施例提供了一种恢复网络连接的方法及装置,以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem that the related art cannot recover the network connection due to the abnormality of the Internet access parameter, the embodiment of the present invention provides a method and an apparatus for restoring the network connection. The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
实施例1Example 1
图1是本发明实施例1的恢复网络连接的方法的流程图,如图1所示,该方法包括以下步骤:1 is a flowchart of a method for restoring a network connection according to Embodiment 1 of the present invention. As shown in FIG. 1, the method includes the following steps:
步骤101:在上网参数设置完成且网络正常连接的情况下,备份上网参数;Step 101: Back up the Internet access parameter when the Internet parameter setting is completed and the network is normally connected.
在该步骤101中,上网参数可以包括以下至少一种:In this step 101, the Internet access parameter may include at least one of the following:
接入其他接入点AP的服务集标识SSID和密码、网络连接的防火墙规则以及网络连接屏蔽名单。The service set identifier SSID and password for accessing other access point APs, the firewall rules for network connections, and the network connection mask list.
此外,上述步骤101,可以设置为根据用户的操作确定是否备份上网参数,具体地,在上网参数设置完成且网络正常连接后,在执行网络连接的终端界面上提示备份上网参数的消息,在接收到的用户操作指示备份上网参数的情况下,备份上网参数,否则,不备份上网参数,此处,用户操作可以是用户通过上网终端输入指示信号的操作,由于上网设备种类较多,故此处不对用户操作进行具体限定,本领域技术人员可以理解,此处的用户操作可以为各种当前上网终端可接收用户执行的可以指示是否备份上网参数的操作。In addition, the foregoing step 101 may be configured to determine whether to back up the Internet access parameter according to the operation of the user. Specifically, after the Internet parameter setting is completed and the network is normally connected, the message prompting the backup Internet access parameter is displayed on the terminal interface that performs the network connection, and is received. When the user operation indicates that the Internet access parameters are backed up, the Internet access parameters are backed up. Otherwise, the Internet access parameters are not backed up. Here, the user operation may be an operation of inputting an indication signal by the user through the Internet terminal. The user operation is specifically limited. Those skilled in the art can understand that the user operations herein can be used by various current Internet terminals to receive an operation performed by the user to indicate whether to back up the Internet access parameters.
当用户首次使用移动终端产品进行上网业务时,需要设置相应的上网方式以及对应的上网参数,上网参数配置完成,用户执行连接网络的动作(DHCP方式下用户WAN口插入网线),如果连接网络成功,UI上会有显示连接成 功,如Connected的标识(文字或图标)。此时后台会根据当前拨号后的状态Connected,判断当前上网方式及上网参数在预置备份的上网参数中是否存在,如果不存在,则进行备份操作。同样以后在用户每次主动修改了上网参数,且拨号成功,都会触发后台进行上网参数的检测,如果判断没有备份对应的上网参数,则备份此条目。When the user uses the mobile terminal product for the first time to access the Internet, you need to set the corresponding Internet access mode and the corresponding Internet access parameters. The Internet access parameter configuration is complete, and the user performs the action of connecting to the network (the user's WAN port is inserted into the network cable in DHCP mode). , there will be a display connection on the UI. Gong, such as the Connected logo (text or icon). At this time, the background will be connected according to the current dialed state, and it is determined whether the current Internet access mode and the Internet access parameter exist in the preset backup Internet access parameter. If not, the backup operation is performed. Similarly, each time the user voluntarily modifies the Internet access parameters and the dialing is successful, the background parameters of the Internet access are triggered. If it is determined that the corresponding Internet access parameters are not backed up, the entry is backed up.
当用户主动或误操作修改了上网参数,导致拨号不成功,无法连接网络,这种情况下,后台会给出提示,提示用户可以使用备份的参数进行恢复操作。如果存在多种上网方式,可以给出用户列表,供用户选择使用。用户可以使用选择列表中的进行联网操作,也可以使用恢复功能,让后台自行从备份条目中尝试配置参数并联网,如联网成功,则给出用户当前的联网方式。如果失败,则进行简单的网络诊断,供用户参考。When the user modifies the Internet access parameters actively or by mistake, the dialing is unsuccessful and the network cannot be connected. In this case, the background will give a prompt to prompt the user to use the backup parameters for recovery. If there are multiple ways to access the Internet, a list of users can be given for the user to choose. Users can use the connection list to perform networking operations, or use the recovery function to let the background itself try to configure parameters and network from the backup entries. If the network is successful, the user's current networking mode is given. If it fails, perform a simple network diagnosis for your reference.
在上述步骤101中,上网参数设置完成的情况具体可以为:上网参数被修改的时机,或设备初次进行网络连接时设置的上网参数,例如,如移动设备第一次开机,在用户设置了上网方式,即网络连接方式和对应上网参数,或当上网方式需要改变时,用户修改上网参数,配置完成以后,实施网络连接操作(如SIM卡/PPPOE拨号动作、WAN口插入网线动作),网络连接正常,后台会备份新的上网方式以及对应的其他上网参数,即上网方式也为上网参数中的一种。如果用户设置的上网参数不能完成网络连接,则可以从之前备份的上网参数条目中获取上网参数来执行网络连接恢复操作,尝试恢复上网参数,经用户允许或选择(如有多种上网方式可选的情况)使用上网参数列表中一种上网方式。In the foregoing step 101, the setting of the Internet parameter setting may be specifically: the timing when the Internet access parameter is modified, or the Internet access parameter set when the device first performs the network connection, for example, if the mobile device is powered on for the first time, the user sets the Internet access. The mode, that is, the network connection mode and the corresponding Internet access parameter, or when the Internet access mode needs to be changed, the user modifies the Internet access parameter, and after the configuration is completed, implements the network connection operation (such as SIM card/PPPOE dialing action, WAN port insertion network line action), network connection Normally, the background will back up the new Internet access method and other corresponding Internet access parameters, that is, the Internet access mode is also one of the Internet access parameters. If the Internet access parameter set by the user cannot complete the network connection, you can obtain the Internet access recovery function from the previously backed up Internet parameter entry to perform the network connection recovery operation, and try to restore the Internet access parameter, which is allowed or selected by the user (if there are multiple Internet access methods) The situation) uses an internet access method in the Internet parameter list.
上网参数的备份可以是在用户人为修改上网参数后执行的,如果修改上网参数后可以建立正常的网络连接,且此种上网参数没有备份,则备份该上网参数。如果修改上网参数后不能建立网络连接,则提供给用户可以进行网络连接的上网参数,供用户选择,如果从备份的上网参数中无法查找到可行的上网参数,则会对网络异常的原因作出诊断,例如,可能WAN口应该插入网线,却没有插入,此时需要提示用户插入网线后,然后继续尝试上网参数的恢复。The backup of the Internet access parameter can be performed after the user manually modifies the Internet access parameter. If the normal network connection can be established after the Internet access parameter is modified, and the Internet access parameter is not backed up, the Internet access parameter is backed up. If the network connection cannot be established after the Internet access parameter is modified, the Internet access parameter that the user can make a network connection is provided for the user to select. If the feasible Internet access parameter cannot be found from the backup Internet access parameter, the cause of the network abnormality is diagnosed. For example, the WAN port should be plugged into the network cable, but it is not inserted. In this case, the user needs to be prompted to insert the network cable, and then continue to try to recover the Internet parameters.
当网络连接正常后,判断当前上网方式及对应的上网参数是否备份过, 如果没有,则备份当前上网方式对应的上网参数,应考虑到用户恢复出厂设置以及升级应用程序版本,会擦除相应参数存储的分区,因此备份的位置必须是不能擦除的分区,可选地,该分区的大小可以以10-20条备份记录占用的空间为宜,不会超过2M,该分区中同样可以用于存储预置上网方式及参数条目。After the network connection is normal, determine whether the current Internet access mode and the corresponding Internet access parameters have been backed up. If not, backup the Internet access parameters corresponding to the current Internet access mode. The user should restore the factory settings and upgrade the application version. The partitions of the corresponding parameter storage will be erased. Therefore, the backup location must be a partition that cannot be erased. The size of the partition can be occupied by 10-20 backup records, which does not exceed 2M. The partition can also be used to store preset Internet access methods and parameter entries.
后台判断网络是否正常的步骤:一般地,首先,根据移动终端设备设置网络状态的值,如当拨号动作拨号成功以后,设置拨号成功标识,标识当前拨号成功。判断拨号成功以后,判断是否获取到公网IP地址。如果公网IP地址获取成功,可以通过ping(网络诊断工具)检测预置的网站能否进行网络连接。以上各判断步骤均可以得到的判断结果均可以作为当前网络连接是否异常的依据,后台可以选择其中至少一个步骤用来判断网络是否正常。Steps for judging whether the network is normal in the background: Generally, first, setting the value of the network state according to the mobile terminal device, for example, when the dialing action is successfully dialed, setting a dialing success identifier to identify that the current dialing is successful. After determining that the dialing is successful, determine whether the public IP address is obtained. If the public IP address is obtained successfully, you can use ping (Network Diagnostic Tool) to check whether the preset website can connect to the network. The judgment results that can be obtained in the above various judgment steps can be used as the basis for whether the current network connection is abnormal. The background can select at least one of the steps to determine whether the network is normal.
具体地,判断网络是否异常的时机可以为:在上网方式或其他上网参数进行改变时。如,首次PPPOE拨号,如果网络连接失败,在网线状态正确的情况下,就会给出用户提示,需要联系运营商支持。当PPPOE的参数发生改变,如账号和密码发生变化,而这个变化并非是用户想要的,这可能由用户及其他接入的用户的误操作导致,这种情况则需要进行上网参数的恢复操作。Specifically, the timing of determining whether the network is abnormal may be: when the Internet access mode or other Internet access parameters are changed. For example, if the network connection fails for the first time, if the network connection fails, the user prompts will be given when the network cable is in the correct state. You need to contact the carrier for support. When the parameters of the PPPOE change, such as the account and password changes, and this change is not what the user wants, this may be caused by the user's and other users' misoperations. In this case, the online parameter recovery operation is required. .
备份的上网参数,可以用于存在误操作,或者用户无法完成参数设置的情况,用户通过网页或计算机的UI或者组合键的方式尝试从备份的上网参数条目中选择上网参数来恢复网络连接,使用的命令只需在UI上点击恢复上网参数的按钮,或者通过组合键定义的调用同样的后台接口进行上网参数尝试恢复动作。即,用户执行恢复操作,根据该操作调用后台接口,后台对备份的上网参数条目进行查询,确定上网参数的过程。具体查询过程中,可以首先查询当前上网方式对应的上网参数,如果能够恢复网络连接,则给出用户提示,或用户选择。如果基于当前上网方式没有查询到上网参数,则查询其他上网方式对应的上网参数条目,如果存在一种以上可用上网参数,给出用户提示供用户选择,如果也没有查询到可用上网参数,则给出用户网络异常诊断结果,以便用户针对网络异常原因进行相应操作后,再次通过查询可用上网参数来恢复网络连接。The backup Internet access parameter can be used for the case where there is a misoperation or the user cannot complete the parameter setting. The user attempts to restore the network connection by selecting the Internet access parameter from the backup Internet parameter entry through the webpage or the UI or the combination key of the computer. The command only needs to click the button to restore the Internet parameter on the UI, or call the same background interface defined by the combination key to perform the online parameter attempt recovery operation. That is, the user performs a recovery operation, invokes a background interface according to the operation, and queries the backup Internet access parameter entry in the background to determine the process of the online parameter. During the specific query process, you can first query the Internet access parameters corresponding to the current Internet access mode. If the network connection can be restored, the user prompts or the user selects. If the Internet access parameter is not queried based on the current Internet access mode, the Internet access parameter corresponding to other Internet access modes is queried. If there is more than one available Internet access parameter, the user prompts for the user to select, and if the available Internet access parameter is not queried, The user network abnormality diagnosis result is obtained, so that the user performs the corresponding operation for the network abnormality reason, and then restores the network connection by querying the available online parameter.
可选地,备份的上网参数可以供用户查询,可以将上网参数的标识呈现 给用户,以使用户可以自行选择上网参数,也可以,直接在UI上呈现出备份的上网参数条目,供用户选择。Optionally, the backup Internet access parameter can be used for querying by the user, and the identifier of the Internet access parameter can be presented. To the user, so that the user can select the Internet access parameters by themselves, or directly, the backup Internet access parameter items are presented on the UI for the user to select.
步骤102:在网络连接异常时,使用上网参数进行网络连接。Step 102: When the network connection is abnormal, use the Internet access parameter to perform network connection.
在该步骤102中,使用上网参数进行网络连接具体可以包括:In the step 102, the network connection using the Internet access parameter may specifically include:
如果在移动终端设备的使用过程中,更换了上网方式,如果更换上网方式之前使用PPPOE有线宽带拨号方式,之后使用了3G/4G套餐的SIM卡拨号方式,这种情况下设备备份的上网参数可以存在两种以上,如更换运营商的SIM卡,对应的APN等参数也可能发生改变,因此即使是使用同一种上网方式也会有不同的上网参数需要备份,每使用一种新的上网方式,后台都会查询备份条目是否有该上网方式对应的上网参数的备份,如果没有则备份相应上网参数。因此,在网络连接异常时,设备中可能同时存在多项事先备份的可用的上网参数,此时则需要对这些可用的上网参数进行选择,具体可以采用以下方式进行选择:If the mobile terminal device is used, the Internet access method is replaced. If the PPPOE cable broadband dialing method is used before the Internet access method is replaced, then the SIM card dialing mode of the 3G/4G package is used. In this case, the Internet access parameter of the device backup can be There are more than two types. For example, if the operator's SIM card is replaced, the corresponding APN parameters may also change. Therefore, even if the same Internet access method is used, different Internet access parameters may need to be backed up. Each time a new Internet access method is used, The background will query whether the backup entry has a backup of the Internet access parameters corresponding to the Internet access method. If not, the corresponding Internet access parameters are backed up. Therefore, when the network connection is abnormal, there may be multiple online access parameters available for backup in the device. In this case, you need to select these available Internet access parameters. You can select the following methods:
如果基于备份的上网参数存在至少两种待连接网络,则优先选择待连接网络中资费低的网络进行网络连接,或优先选择用户预先设置的优先连接的网络进行连接,或者根据用户当前选择的网络进行网络连接。If there are at least two networks to be connected based on the backup Internet access parameters, the network with low tariffs in the network to be connected is preferentially selected for network connection, or the preferentially connected network preset by the user is preferentially connected, or according to the network currently selected by the user. Make a network connection.
可选地,上述方法还包括:在上网参数设置完成且网络仍无法连接的情况下,在预先备份的上网参数中获取当前可用上网参数,并将获取到的上网参数提供给用户;如果使用获取到的上网参数网络仍无法连接,则判断网络无法连接的原因,并向用户提示网络无法连接的原因。Optionally, the method further includes: obtaining the currently available Internet access parameter in the pre-backed Internet access parameter, and providing the obtained online access parameter to the user, if the network parameter setting is completed and the network is still unable to connect; If the access network parameter network still cannot be connected, determine the reason why the network cannot be connected, and prompt the user why the network cannot be connected.
为了进一步提高用户体验,使用备份的上网参数进行网络连接的过程可以设置为对用户可见并由用户确认是否执行该过程,基于此,本实施例恢复网络连接的方法还可以包括:在使用上网参数进行网络连接之前,在终端界面上提示上网参数恢复的消息以及可用的上网参数,在接收到的用户操作后,使用用户操作所指示的上网参数进行网络连接。此处基于备份的上网参数存在至少两种待连接网络,具体指使用备份的上网参数可以连接的网络,所涉及的两种待连接的网络,具体指不同网络的种类,例如,通过传统数据卡、uFi、CPE或路由器等进行网络连接。 In order to further improve the user experience, the process of using the backup Internet access parameter to perform the network connection may be set to be visible to the user and confirmed by the user whether to perform the process. Based on this, the method for restoring the network connection in this embodiment may further include: using the Internet access parameter Before the network connection is made, the message of the Internet parameter recovery and the available Internet access parameters are prompted on the terminal interface, and after receiving the user operation, the network connection is indicated by using the Internet access parameter indicated by the user operation. There are at least two networks to be connected based on the backup Internet access parameters, specifically the network that can be connected by using the backup Internet access parameters, and the two types of networks to be connected, specifically the types of different networks, for example, through traditional data cards. , uFi, CPE, or router to connect to the network.
再者,由于上网设备中可能存有较多上网参数,因此在当前网络连接需要获取上网参数时,可以使用关键字查找的方式来获取对应上网参数,进而提高获取对应上网参数的效率,基于此,步骤102中,使用上网参数进行网络连接,还可以包括:In addition, since the Internet access device may have more Internet access parameters, when the current network connection needs to obtain the Internet access parameter, the keyword search method may be used to obtain the corresponding Internet access parameter, thereby improving the efficiency of obtaining the corresponding Internet access parameter. In step 102, using the Internet access parameter for network connection, the method may further include:
根据当前待连接网络的网络连接方式确定用于查找对应上网参数的关键字,利用关键字在备份的上网参数中查找当前待连接网络的上网参数,使用查找到的上网参数进行网络连接。The keyword used to find the corresponding Internet access parameter is determined according to the network connection mode of the current network to be connected, and the Internet access parameter of the current network to be connected is searched for by using the keyword in the online parameter of the backup, and the network connection parameter is used to perform network connection.
基于本发明实施例的恢复网络连接的方法可以对网络连接异常的情况进行诊断,具体诊断方式如下:The method for restoring the network connection according to the embodiment of the present invention can diagnose the abnormality of the network connection, and the specific diagnosis method is as follows:
使用上网参数进行网络连接之前,根据执行网络连接的终端的历史上网参数以及备份的上网数据,确定网络连接异常的原因;根据确定出的网络连接异常的原因,向用户提示网络连接的指导信息。Before using the Internet access parameter to connect to the network, determine the cause of the abnormal network connection according to the historical Internet access parameters of the terminal that performs the network connection and the data of the backup Internet access; and prompt the user to provide the network connection guidance information according to the determined network connection abnormality.
实施例2Example 2
本实施例2提供一种上网参数恢复方法,其与实施例1的恢复网络连接的方法施原理相同,其通过公开实现本发明所述方法的更多技术细节,以更清楚的表述本发明的具体实现过程。需要说明的是,本实施例是一种较佳的实施例,其公开的内容并不用于唯一限定本发明的实施过程。The second embodiment provides a method for restoring the Internet access parameters, which is the same as the method for restoring the network connection of the embodiment 1. It discloses the more technical details of the method of the present invention to more clearly describe the present invention. The specific implementation process. It should be noted that the present embodiment is a preferred embodiment, and the disclosure is not intended to limit the implementation of the present invention.
本实施例在传统数据卡/uFi/cpe的UI上增加恢复上一次网络连接的正确配置的功能,使嵌入式上网设备能够自动备份相关上网参数。图2所示,当运营商技术人员或者用户设置好上网方式和上网参数后,网络连接正常,嵌入式上网设备后台会自动备份本次上网的相关参数,如使用的上网方式为PPPoE(Point-to-Point Protocol over Ethernet,以太网上的点对点协议拨号),则对应的PPPoE的账号和密码和PPPOE上网方式进行备份。当用户修改上网方式,如用户使用SIM(Subscriber Identity Module,客户识别模块)卡,设置了相应的APN等参数,上网正常,上网设备后台会备份此SIM卡的手机号/IMSI(International Mobile SubscriberIdentification Number,国际移动用户识别码),以及对应的APN参数,当下次再次插入SIM卡时,会优先从备份条目中恢复此条目对应的上网参数,供用户使用。 In this embodiment, the function of restoring the correct configuration of the last network connection is added to the UI of the traditional data card/uFi/cpe, so that the embedded Internet access device can automatically back up the relevant Internet access parameters. As shown in Figure 2, after the operator's technical personnel or users set the Internet access mode and Internet access parameters, the network connection is normal, and the embedded Internet access device background will automatically back up the relevant parameters of the Internet access. For example, the Internet access mode is PPPoE (Point- To-Point Protocol over Ethernet, point-to-point protocol dialing on Ethernet, the corresponding PPPoE account and password and PPPOE Internet access mode are backed up. When the user modifies the Internet access mode, for example, if the user uses the SIM (Subscriber Identity Module) card and sets the corresponding APN parameters, the Internet access is normal, and the Internet device backend will back up the mobile phone number/IMSI of the SIM card (International Mobile SubscriberIdentification Number). , the international mobile subscriber identity), and the corresponding APN parameters, when the SIM card is inserted again next time, the Internet access parameters corresponding to the entry are preferentially restored from the backup entry for the user to use.
本实施例中的备份相关的上网参数,还可以用于备份还原其他相关参数,如,可以备份接入其他AP的SSID和密码,设定的防火墙规则,以及wifi黑白名单等参数。The backup related online parameters in this embodiment can also be used for backup and restoring other related parameters, for example, the SSID and password of other APs, the firewall rules, and the black and white list of wifi can be backed up.
备份相关的上网参数可选地可以通过UI进行操作,使用传统数据卡进行网络连接可以通过PC的UI,uFi和CPE可以通过Web UI进行恢复上网参数的操作,备份操作均可以是由后台自动完成,此外,还可以通过设置硬件组合键的方式来实现,组合键用于快速恢复上网方式以及对应的上网参数,基于该组合键,无需在UI上进行恢复上网参数的操作。即,如果仅通过组合键即可恢复网络连接,则用户不需要打开UI。例如,通过设备上的按键输入恢复指令的方式。进行上网/防火墙规则/wifi黑白名单等参数的恢复操作。此外,后台备份的上网参数都是网络连接正常后的备份,后台可以有预先备份的上网参数,这样在用户首次使用上网设备时,也可以基于事先备份的上网参数来进行网络连接操作,方便快捷。需要注意的是,备份的上网参数必须是正确的,否则后台将返回备份失败消息。The backup related Internet access parameters can be operated through the UI. The traditional data card can be used for network connection. The UI and uFi and CPE can restore the Internet access parameters through the Web UI. The backup operations can be automatically completed by the background. In addition, it can also be implemented by setting a hardware combination key. The combination key is used to quickly restore the Internet access mode and the corresponding Internet access parameter, and based on the combination key, there is no need to restore the Internet access parameter operation on the UI. That is, if the network connection can be restored only by the key combination, the user does not need to open the UI. For example, the way to restore instructions is entered via a button on the device. Perform recovery operations such as Internet/firewall rules/wifi black and white lists. In addition, the online backup parameters of the background backup are backups after the network connection is normal, and the background parameters of the network can be backed up in advance, so that when the user first uses the Internet access device, the network connection operation can also be performed based on the online parameters that are backed up in advance, which is convenient and quick. . It should be noted that the backup Internet access parameters must be correct, otherwise the background will return a backup failure message.
上述恢复上网等参数的过程,可选地,可以设置为对用户可见,如果设计成用户不可见,则需设计成后台自动备份恢复上网参数的方式。The above process of restoring parameters such as the Internet may optionally be set to be visible to the user. If the user is invisible, the system needs to be designed to automatically back up and restore the Internet access parameters.
由于网络连接异常可能是由于除上网参数异常之外的其他原因造成的,因此,需要在解决其他异常原因之后,再使用上网参数进行网络连接,基于此,上述方法还包括;在使用上网参数进行网络连接之前,如果检测出网络连接异常的原因与上网参数无关,则向用户提示网络连接异常的原因。The abnormality of the network connection may be caused by other reasons except the abnormal Internet access parameters. Therefore, after the other abnormal causes are resolved, the Internet access parameters are used for network connection. Based on this, the above method also includes: Before the network connection, if the cause of the abnormal network connection is detected and is not related to the Internet access parameter, the user is prompted for the cause of the abnormal network connection.
上述恢复上网参数的过程,在用户的网线插口位置不对的情况下,应对用户进行提示,以使用户将网线更改至正确的插口位置,待网线插口正确后重试,如图3。In the above process of restoring the Internet access parameter, if the user's network cable socket is not in the correct position, the user should be prompted to change the network cable to the correct socket position, and try again after the network cable socket is correct, as shown in FIG.
上述恢复上网等参数的过程,如果有两种或者两种以上的上网方式都可以上网的情况下,按照资费最低进行优先选择,为确保资费最低判断的正确性,要求显示出所有方案供用户选择或者根据用户设置的某种方式优先或仅某种方式尝试,以cpe上网终端设备为例,如图4。In the above process of restoring parameters such as accessing the Internet, if there are two or more types of Internet access that can be accessed online, the priority is selected according to the lowest tariff. To ensure the correctness of the minimum judgment of the tariff, all the schemes are required for the user to select. Or try to use the cpe Internet terminal device as an example, as shown in Figure 4, according to a certain method set by the user.
上述恢复上网参数的过程,可以对备份参数的条目进行关键字查询恢复,使用传统数据卡时,以手机号/IMSI号作为关键字查询,如图5所示,uFi、 CPE、路由器除了SIM卡的手机号/IMSI号,还可以根据上网方式进行关键字查询,特别是判断无SIM卡时,直接查询上网方式。如果上网设备有GPS定位功能,可以以位置消息作为存储的一个判断条件,等效于SIM卡手机号/IMSI号,在资费最低判断时,还可以根据GPS定位判断是否处于漫游。The above process of restoring the Internet access parameter can perform keyword query recovery on the entry of the backup parameter. When using the traditional data card, the mobile phone number/IMSI number is used as a keyword query, as shown in FIG. 5, uFi, In addition to the mobile phone number/IMSI number of the SIM card, the CPE and the router can also perform keyword query according to the Internet access method, especially when judging that there is no SIM card, directly querying the Internet access mode. If the Internet access device has a GPS positioning function, the location message can be used as a judgment condition for storage, which is equivalent to the SIM card mobile phone number/IMSI number. When the lowest tariff is determined, it can also determine whether it is roaming according to the GPS positioning.
上述恢复上网参数的过程,还可以作为网络无法连接原因的诊断,根据终端以往上网的配置参数,在后台对应相应的判断依据,结合备份的上网参数,共同诊断出网络无法连接的原因,向用户提示网络连接指导信息,指导用户完成上网参数的配置,如图6。The above process of restoring the Internet access parameter may also be used as a diagnosis for the reason that the network cannot be connected. According to the configuration parameters of the previous Internet access of the terminal, the corresponding judgment basis is matched in the background, combined with the backup Internet access parameters, to jointly diagnose the reason that the network cannot be connected, to the user. Prompt the network connection guide information to guide the user to complete the configuration of the Internet access parameters, as shown in Figure 6.
在传统数据卡、uFi、CPE以及路由器等上网设备上,对正确的上网参数进行备份,当发生网络连接异常时,用户可以通过UI或者硬件组合键执行恢复上网操作的动作,后台会自动从备份的条目中查找相关上网参数,并尝试重新建立网络连接,如网络连接成功,返回当前上网的相关参数,如检测所有条目均不能成功,则返回失败,需要用户/运营商技术支持或者稍后再次尝试。On the Internet devices such as traditional data cards, uFi, CPE, and routers, back up the correct Internet access parameters. When a network connection is abnormal, the user can perform the action of restoring the Internet operation through the UI or hardware combination key. The background will automatically backup from the backup. Find the relevant Internet access parameters in the entry and try to re-establish the network connection. If the network connection is successful, return the relevant parameters of the current Internet access. If all the entries are unsuccessful, the user will return the failure. The user/operator technical support or later try.
实施例3Example 3
图7是本发明实施例3的恢复网络连接的装置的结构框图。如图7所示,该装置70具体包括如下组成部分:Figure 7 is a block diagram showing the structure of an apparatus for restoring a network connection according to Embodiment 3 of the present invention. As shown in FIG. 7, the device 70 specifically includes the following components:
备份模块71,用于在上网参数设置完成且网络正常连接的情况下,备份上网参数;连接模块72,用于在网络连接异常时,使用上网参数进行网络连接。The backup module 71 is configured to back up the Internet access parameter when the Internet access parameter setting is completed and the network is normally connected, and the connection module 72 is configured to use the Internet access parameter to perform network connection when the network connection is abnormal.
其中,上述连接模块72具体可以用于:如果基于备份的上网参数存在至少两种待连接网络,则优先选择待连接网络中资费低的网络进行网络连接,或优先选择用户预先设置的优先连接的网络进行连接,或者根据用户当前选择的网络进行网络连接。The foregoing connection module 72 may be specifically configured to: if there are at least two networks to be connected based on the backup Internet access parameter, preferentially select a network with a low tariff in the network to be connected to perform network connection, or preferentially select a priority connection preset by the user. The network is connected, or the network connection is made according to the network currently selected by the user.
可选地,上述装置30还可以包括:获取模块,用于在上网参数设置完成且网络仍无法连接的情况下,在预先备份的上网参数中获取当前可用上网参数,并将获取到的上网参数提供给用户;第一提示模块,用于如果使用获取到的上网参数网络仍无法连接,则判断网络无法连接的原因,并向用户提示 网络无法连接的原因。Optionally, the foregoing apparatus 30 may further include: an obtaining module, configured to obtain a currently available Internet access parameter in the pre-backed Internet access parameter, and obtain the obtained Internet access parameter, if the Internet access parameter setting is completed and the network is still unable to connect. Provided to the user; the first prompting module is configured to determine the reason why the network cannot be connected if the network is still unable to connect using the obtained Internet access parameter, and prompt the user The reason the network could not be connected.
可选地,上述装置30还可以包括:第二提示模块,用于在使用上网参数进行网络连接之前,在终端界面上提示上网参数恢复的消息以及可用的上网参数,在接收到的用户操作后,使用用户操作所指示的上网参数进行网络连接。Optionally, the foregoing apparatus 30 may further include: a second prompting module, configured to prompt a message for recovering the Internet parameter and an available Internet access parameter on the terminal interface before the network operation is performed by using the Internet access parameter, after the received user operation , using the Internet parameters indicated by the user operation for network connection.
其中,上网参数包括以下至少一种:网络连接方式、接入其他接入点AP的服务集标识SSID和密码、网络连接的防火墙规则、以及网络连接屏蔽名单。The Internet access parameter includes at least one of the following: a network connection mode, a service set identifier SSID and password for accessing other access point APs, a firewall rule for network connection, and a network connection mask list.
本发明的技术方案可以恢复上网参数异常导致的无法上网的情况,节省了与运营商沟通技术支持的时间以及上网的等待时间,提高了用户体验。尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。The technical solution of the invention can restore the situation that the Internet access parameter is abnormal and cannot access the Internet, saves the time for communicating with the operator and the waiting time of the Internet, and improves the user experience. While the preferred embodiments of the present invention have been disclosed for purposes of illustration, those skilled in the art will recognize that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.
工业实用性Industrial applicability
本发明实施例提供的方案,在上网参数设置完成且网络连接正常的情况下,备份上网参数,在网络连接异常时,使用备份的上网参数进行网络连接,使得在上网参数异常的情况下得以恢复网络连接,提高了用户体验。因此本发明具有很强的工业实用性。 The solution provided by the embodiment of the present invention restores the Internet access parameter when the Internet access parameter is set and the network connection is normal. When the network connection is abnormal, the network connection is performed by using the backup Internet access parameter, so that the Internet access parameter is restored. Network connectivity improves the user experience. Therefore, the present invention has strong industrial applicability.

Claims (12)

  1. 一种恢复网络连接的方法,包括:A method of restoring a network connection, including:
    在上网参数设置完成且网络使用该上网参数正常连接的情况下,备份所述上网参数;After the Internet parameter setting is completed and the network uses the Internet access parameter to connect normally, the online parameter is backed up;
    在网络连接异常时,使用所述上网参数重新进行网络连接。When the network connection is abnormal, the network connection is used to re-connect the network.
  2. 如权利要求1所述的恢复网络连接的方法,其中,所述使用所述上网参数重新进行网络连接的步骤包括:The method of recovering a network connection according to claim 1, wherein said step of re-establishing a network connection using said Internet access parameter comprises:
    如果基于备份的上网参数存在至少两种待连接网络,则优先选择所述待连接网络中资费低的网络进行网络连接,或优先选择用户预先设置的优先连接的网络进行连接,或者根据用户当前选择的网络进行网络连接。If there are at least two networks to be connected based on the backup Internet access parameter, the network with low tariff in the network to be connected is preferentially selected for network connection, or the network with preferential connection set by the user is preferentially selected for connection, or according to the current selection of the user. The network is connected to the network.
  3. 如权利要求1所述的恢复网络连接的方法,所述方法还包括:The method of recovering a network connection of claim 1 further comprising:
    在上网参数设置完成且网络仍无法连接的情况下,在所备份的上网参数中获取当前可用上网参数,并将获取到的上网参数提供给用户;After the Internet parameter setting is completed and the network is still unable to connect, obtain the currently available Internet access parameters in the backed up Internet parameters, and provide the obtained Internet access parameters to the user;
    如果使用获取到的上网参数网络仍无法连接,则判断网络无法连接的原因,并向用户提示网络无法连接的原因。If the network is still unable to connect using the obtained Internet access parameter, determine the reason why the network cannot be connected, and prompt the user why the network cannot be connected.
  4. 如权利要求1所述的恢复网络连接的方法,所述方法还包括:The method of recovering a network connection of claim 1 further comprising:
    在所述使用上网参数重新进行网络连接的步骤之前,在所述终端界面上提示上网参数恢复的消息以及可用的上网参数,在接收到的用户指示后,使用用户所指示的上网参数进行网络连接。Before the step of re-establishing the network connection by using the Internet access parameter, prompting the online parameter recovery message and the available Internet access parameter on the terminal interface, and after receiving the user indication, using the Internet access parameter indicated by the user to perform network connection .
  5. 如权利要求1至4中任意一项所述的恢复网络连接的方法,其中,所述上网参数包括以下信息中的至少一种:The method of restoring a network connection according to any one of claims 1 to 4, wherein the internet access parameter comprises at least one of the following information:
    网络连接方式、接入其他接入点AP的服务集标识SSID和密码、网络连接的防火墙规则、以及网络连接屏蔽名单。Network connection method, service set identifier SSID and password for accessing other access point APs, firewall rules for network connection, and network connection mask list.
  6. 一种恢复网络连接的装置,包括备份模块和连接模块,其中:A device for restoring a network connection, comprising a backup module and a connection module, wherein:
    所述备份模块设置成:在上网参数设置完成且网络使用该上网参数正常 连接的情况下,备份所述上网参数;The backup module is configured to: after the Internet parameter setting is completed and the network uses the Internet access parameter is normal In the case of connection, back up the internet access parameter;
    所述连接模块设置成:在网络连接异常时,使用所述上网参数重新进行网络连接。The connection module is configured to re-connect the network using the Internet access parameter when the network connection is abnormal.
  7. 如权利要求6所述的恢复网络连接的装置,其中,所述连接模块设置成按照如下方式在网络连接异常时,使用所述上网参数重新进行网络连接:The apparatus for restoring a network connection according to claim 6, wherein the connection module is configured to re-connect the network using the Internet access parameter when the network connection is abnormal as follows:
    如果基于备份的上网参数存在至少两种待连接网络,则优先选择所述待连接网络中资费低的网络进行网络连接,或优先选择用户预先设置的优先连接的网络进行连接,或者根据用户当前选择的网络进行网络连接。If there are at least two networks to be connected based on the backup Internet access parameter, the network with low tariff in the network to be connected is preferentially selected for network connection, or the network with preferential connection set by the user is preferentially selected for connection, or according to the current selection of the user. The network is connected to the network.
  8. 如权利要求6所述的恢复网络连接的装置,所述装置还包括获取模块和第一提示模块,其中,The apparatus for restoring a network connection according to claim 6, further comprising an acquisition module and a first prompting module, wherein
    所述获取模块设置成:在上网参数设置完成且网络仍无法连接的情况下,在预先备份的上网参数中获取当前可用上网参数,并将获取到的上网参数提供给用户;The obtaining module is configured to: after the Internet parameter setting is completed and the network is still unable to connect, obtain the currently available Internet access parameter in the pre-backed Internet access parameter, and provide the obtained Internet access parameter to the user;
    所述第一提示模块设置成:如果使用获取到的上网参数网络仍无法连接,则判断网络无法连接的原因,并向用户提示网络无法连接的原因。The first prompting module is configured to: if the network is still unable to connect using the obtained Internet access parameter, determine the reason why the network cannot be connected, and prompt the user for the reason that the network cannot be connected.
  9. 如权利要求6所述的恢复网络连接的装置,所述装置还包括第二提示模块,其中,The apparatus for restoring a network connection according to claim 6, wherein the apparatus further comprises a second prompting module, wherein
    所述第二提示模块设置成:在所述连接模块使用上网参数重新进行网络连接之前,在所述终端界面上提示上网参数恢复的消息以及可用的上网参数,在接收到的用户指示后,使用用户所指示的上网参数进行网络连接。The second prompting module is configured to: after the connection module uses the Internet access parameter to re-connect the network, prompt the Internet parameter recovery message and the available Internet access parameter on the terminal interface, and use the received user indication. The Internet access parameter indicated by the user is connected to the network.
  10. 如权利要求6~9中任意一项所述的恢复网络连接的装置,其中,所述上网参数包括以下信息中的至少一种:The apparatus for restoring a network connection according to any one of claims 6 to 9, wherein the internet access parameter comprises at least one of the following information:
    网络连接方式、接入其他接入点AP的服务集标识SSID和密码、网络连接的防火墙规则、以及网络连接屏蔽名单。Network connection method, service set identifier SSID and password for accessing other access point APs, firewall rules for network connection, and network connection mask list.
  11. 一种计算机程序,包括程序指令,当该程序指令被计算机执行时, 使得该计算机可执行如权利要求1-5中任一项所述的恢复网络连接的方法。A computer program comprising program instructions, when the program instructions are executed by a computer, The computer is caused to perform the method of restoring a network connection as claimed in any one of claims 1-5.
  12. 一种载有如权利要求11所述的计算机程序的载体。 A carrier carrying the computer program of claim 11.
PCT/CN2015/080792 2014-11-25 2015-06-04 Method and device for recovering network connection WO2016082517A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410685725.9 2014-11-25
CN201410685725.9A CN105704789A (en) 2014-11-25 2014-11-25 Method and device for restoring network connection

Publications (1)

Publication Number Publication Date
WO2016082517A1 true WO2016082517A1 (en) 2016-06-02

Family

ID=56073516

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080792 WO2016082517A1 (en) 2014-11-25 2015-06-04 Method and device for recovering network connection

Country Status (2)

Country Link
CN (1) CN105704789A (en)
WO (1) WO2016082517A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913416A (en) * 2019-11-04 2020-03-24 深圳市泰信通信息技术有限公司 Terminal, networking method thereof and computer-readable storage medium
CN112188473A (en) * 2020-09-18 2021-01-05 青岛海信电子产业控股股份有限公司 Customer premises equipment and method for monitoring USIM card
CN114608246A (en) * 2022-03-18 2022-06-10 海信(山东)冰箱有限公司 Refrigerator control method and refrigerator

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206749A (en) * 2016-12-19 2018-06-26 国基电子(上海)有限公司 Online configuration file standby system and method
CN107509108B (en) * 2017-08-23 2020-06-30 四川长虹电器股份有限公司 Method for recovering network type of smart television after restarting in abnormal condition
CN111131357B (en) * 2018-10-31 2023-01-13 钉钉控股(开曼)有限公司 Screen projection processing method, device and equipment
CN110399249A (en) * 2019-06-04 2019-11-01 腾讯科技(北京)有限公司 A kind of data disaster tolerance method and relevant apparatus
CN111935277A (en) * 2020-08-07 2020-11-13 上海汉枫电子科技有限公司 Router connection method, router connection device, computer equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754187A (en) * 2009-12-30 2010-06-23 中兴通讯股份有限公司 Management method for connection setting and terminal thereof
CN103259850A (en) * 2013-04-18 2013-08-21 深圳市宏电技术股份有限公司 Method and device for configuring intelligent terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8499190B2 (en) * 2011-03-09 2013-07-30 I/O Interconnect Inc. Portable device and backup method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754187A (en) * 2009-12-30 2010-06-23 中兴通讯股份有限公司 Management method for connection setting and terminal thereof
CN103259850A (en) * 2013-04-18 2013-08-21 深圳市宏电技术股份有限公司 Method and device for configuring intelligent terminal

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110913416A (en) * 2019-11-04 2020-03-24 深圳市泰信通信息技术有限公司 Terminal, networking method thereof and computer-readable storage medium
CN110913416B (en) * 2019-11-04 2023-02-28 深圳市泰信通信息技术有限公司 Terminal, networking method thereof and computer-readable storage medium
CN112188473A (en) * 2020-09-18 2021-01-05 青岛海信电子产业控股股份有限公司 Customer premises equipment and method for monitoring USIM card
CN114608246A (en) * 2022-03-18 2022-06-10 海信(山东)冰箱有限公司 Refrigerator control method and refrigerator

Also Published As

Publication number Publication date
CN105704789A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
WO2016082517A1 (en) Method and device for recovering network connection
CN106465247B (en) Roaming network access method and device
WO2013007179A1 (en) Method and device for automatic dialling of access point
US20130044638A1 (en) Mobile terminal, system and method for realizing access point name setting
CN102739570B (en) Method for opening home gateway through wireless fidelity (WiFi) of smart phone
CN110430115B (en) Service recovery method, system, network device and computer readable storage medium
CN103592936A (en) Method and device for automatic connection between automobile diagnostic device and VCI equipment
WO2018010425A1 (en) Method and apparatus for pushing and receiving wi-fi hotspot information, and storage medium
JP2010532955A (en) Electrical device configuration system and method
EP3454605B1 (en) Network search method and apparatus under double-card mode, and computer storage medium
WO2017166619A1 (en) Method and apparatus for determining emergency communication numbers, and electronic device
WO2014131285A1 (en) Mobile terminal, network login method and device thereof
CN112351471A (en) Method for accessing device to gateway, gateway device and computer readable storage medium
WO2015143698A1 (en) Method and apparatus for network entry in roaming
US9820310B2 (en) Network connection method and system
US20170318483A1 (en) Self-recovery method and device after disconnection of base station
WO2022142728A1 (en) Wifi 6-based wireless router fault processing method and system
CN106301847A (en) Access point interface configuration recovery method, device and home gateway
WO2017181465A1 (en) Access point name configuration method and device
CN105282862B (en) Wireless network access point connection method and terminal
CN105407006A (en) Network information configuring method and device and router
CN104754699B (en) The control method of communication device and communication device
CN102346822B (en) Traceable mobile storage device, system and tracking method
CN103442377B (en) A kind of method that WIFI module and multiple AP carry out WPS session negotiation simultaneously
CN105007589B (en) Parameter configuration method, machine-card integrated terminal device and server

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15862744

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15862744

Country of ref document: EP

Kind code of ref document: A1