[go: up one dir, main page]

CN102387604B - Client device and method for recovering network connection thereof - Google Patents

Client device and method for recovering network connection thereof Download PDF

Info

Publication number
CN102387604B
CN102387604B CN201010266802.9A CN201010266802A CN102387604B CN 102387604 B CN102387604 B CN 102387604B CN 201010266802 A CN201010266802 A CN 201010266802A CN 102387604 B CN102387604 B CN 102387604B
Authority
CN
China
Prior art keywords
information
historical record
stage
stage information
inventory
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN201010266802.9A
Other languages
Chinese (zh)
Other versions
CN102387604A (en
Inventor
曾一修
黄姵钧
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
Original Assignee
Hongfujin Precision Industry Shenzhen Co Ltd
Hon Hai Precision Industry Co Ltd
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 Hongfujin Precision Industry Shenzhen Co Ltd, Hon Hai Precision Industry Co Ltd filed Critical Hongfujin Precision Industry Shenzhen Co Ltd
Priority to CN201010266802.9A priority Critical patent/CN102387604B/en
Publication of CN102387604A publication Critical patent/CN102387604A/en
Application granted granted Critical
Publication of CN102387604B publication Critical patent/CN102387604B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a client device and a method for recovering network connection thereof. The method comprises the following steps of: recording a plurality of history records in the client device when an application program achieves successful network connection at a time, wherein each history record corresponds to one WiMAX (worldwide interoperability for microwave access) set information when the network connection is successful, and each piece of WiMAX set information comprises first stage information, second stage information and third stage information; and when the network connection of the application program is in failure, detecting current WiMAX set information so as to determine a stage in failure, and further, reading a history record from a history record list to try to recover the network connection according to the stage in failure and the stored history records about the successful network connection. With the adoption of the client device and the method for recovering the network connection thereof, the network connection can be fast and conveniently recovered.

Description

客户端装置及其恢复网络连接的方法Client device and method for restoring network connection thereof

技术领域 technical field

本发明涉及一种客户端装置及其恢复网络连接的方法。The invention relates to a client device and a method for restoring network connection thereof.

背景技术 Background technique

目前,客户端装置在应用WiMAX(Worldwide Interoperability forMicrowave Access,全球互通微波存取)无线接入技术进行网络连接,且该客户端装置中的应用程序网络连接成功时,会保存该网络连接成功的WiMAX设置资讯,作为一个历史记录清单。如图1所示。每一个历史记录清单有对应Scanning、Filter、Network资讯。当网络中断时或需要恢复最近的网络连接成功的设置资讯时,需要依次读取历史记录清单中的每条历史记录,并建立连接,直到网络连接成功。这样导致效率不高,且在存储上也需要较大的存储空间。At present, when the client device is connected to the network using WiMAX (Worldwide Interoperability for Microwave Access) wireless access technology, and the application program in the client device is successfully connected to the network, it will save the WiMAX data of the successful network connection. Set information, as a history list. As shown in Figure 1. Each history list has corresponding Scanning, Filter, and Network information. When the network is interrupted or the setting information of the recent successful network connection needs to be restored, it is necessary to read each history record in the history record list in turn and establish a connection until the network connection is successful. In this way, the efficiency is not high, and a large storage space is also required for storage.

发明内容 Contents of the invention

鉴于以上内容,有必要提供一种客户端装置及其恢复网络连接的方法,其仅记录没有存在于历史记录清单中的资讯,以及当需要恢复网络连接时,读取连接成功的资讯在历史记录清单中的历史记录以恢复网络。In view of the above, it is necessary to provide a client device and its method for restoring the network connection, which only records the information that does not exist in the history record list, and when the network connection needs to be restored, read the information of successful connection in the history record History in the manifest to restore the network.

一种客户端装置,包括全球互通微波存取WiMAX单元以及历史记录清单,该历史记录清单中记录该客户端装置的应用程序每次网络连接成功时的多条历史记录,该每条历史记录对应一条网络连接成功时的WiMAX设置资讯。该客户端装置还包括:检查模块,用于当应用程序通过WiMAX单元进行网络连接失败时,检查当前的WiMAX设置资讯以判断出现故障的阶段,该WiMAX设置资讯包括三个阶段的资讯,分别为第一阶段资讯、第二阶段资讯以及第三阶段资讯;读取模块,用于当出现故障的是第一阶段时,从历史记录清单中读取一条历史记录以恢复网络连接;所述的读取模块,还用于当出现故障的是第二阶段时,若当前的第一阶段资讯存在于历史记录清单中,则在历史记录清单中读取一条该第一阶段资讯所在的历史记录以恢复网络连接,若当前的第一阶段资讯没有存在于历史记录清单中,则从历史记录清单中读取一条历史记录以恢复网络连接;所述的读取模块,还用于当出现故障的是第三阶段时,若当前的第一阶段资讯没有存在于历史记录清单中,则从历史记录清单中读取一条历史记录以恢复网络连接,若当前的第一阶段资讯存在于历史记录清单中而当前的第二阶段资讯没有存在于历史记录清单中,则在历史记录清单中读取一条该第一阶段资讯所在的历史记录以恢复网络连接,若当前的第一阶段资讯与当前的第二阶段资讯均存在于历史记录清单中,则在历史记录清单中读取一条该第一阶段资讯与第二阶段资讯所在的历史记录以恢复网络连接。A client device, including a Worldwide Interoperability Microwave Access WiMAX unit and a history record list, the history record list records multiple history records when the client device's application program is successfully connected to the network each time, and each history record corresponds to A WiMAX setting message when the network connection is successful. The client device also includes: a check module, used to check the current WiMAX setting information to determine the stage of the failure when the application program fails to connect to the network through the WiMAX unit. The WiMAX setting information includes three stages of information, which are respectively The first stage information, the second stage information and the third stage information; the reading module is used to read a historical record from the historical record list to restore the network connection when the failure is the first stage; the reading The fetching module is also used for when the fault occurs in the second stage, if the current first stage information exists in the history record list, read a history record where the first stage information is located in the history record list to restore Network connection, if the current first-stage information does not exist in the historical record list, then read a historical record from the historical record list to restore the network connection; the reading module is also used when the failure occurs In the third stage, if the current first stage information does not exist in the history record list, read a history record from the history record list to restore the network connection, if the current first stage information exists in the history record list and the current If the second-stage information does not exist in the history list, read a history record where the first-stage information is located in the history list to restore the network connection. If the current first-stage information is the same as the current second-stage information Both exist in the history record list, then read a history record where the first-stage information and the second-stage information are located in the history record list to restore the network connection.

一种恢复网络连接的方法,应用在客户端装置中,该客户端装置包括全球互通微波存取WiMAX单元以及历史记录清单,该历史记录清单中记录该客户端装置的应用程序每次网络连接成功时的多条历史记录,该每条历史记录对应一条网络连接成功时的WiMAX设置资讯。该方法包括:当应用程序通过WiMAX单元进行网络连接失败时,检查当前WiMAX设置资讯以判断出现故障的阶段,该WiMAX设置资讯包括三个阶段的资讯,分别为第一阶段资讯、第二阶段资讯以及第三阶段资讯;当出现故障的是第一阶段时,则从历史记录清单中读取一条历史记录以恢复网络连接;当出现故障的是第二阶段时,若当前的第一阶段资讯存在于历史记录清单中,则在历史记录清单中读取一条该第一阶段资讯所在的历史记录以恢复网络连接,若当前的第一阶段资讯没有存在于历史记录清单中,则从历史记录清单中读取一条历史记录以恢复网络连接;当出现故障的是第三阶段时,若当前的第一阶段资讯没有存在于历史记录清单中,则从历史记录清单中读取一条历史记录以恢复网络连接,若当前的第一阶段资讯存在于历史记录清单中而当前的第二阶段资讯没有存在于历史记录清单中,则在历史记录清单中读取一条该第一阶段资讯所在的历史记录以恢复网络连接,若当前的第一阶段资讯与当前的第二阶段资讯均存在于历史记录清单中,则在历史记录清单中读取一条该第一阶段资讯与第二阶段资讯所在的历史记录以恢复网络连接。A method for restoring network connection, which is applied in a client device, the client device includes a Worldwide Interoperability Microwave Access WiMAX unit and a history record list, and the application program of the client device is recorded in the history record list every time the network connection is successful Multiple historical records, each historical record corresponds to a piece of WiMAX setting information when the network connection is successful. The method includes: when the application program fails to connect to the network through the WiMAX unit, checking the current WiMAX setting information to determine the stage of the failure. The WiMAX setting information includes three stages of information, namely the first stage information and the second stage information And the third stage information; when the failure is the first stage, read a historical record from the history list to restore the network connection; when the failure is the second stage, if the current first stage information exists In the history list, read a history record where the first-stage information is located in the history list to restore the network connection. If the current first-stage information does not exist in the history list, read from the history list Read a history record to restore the network connection; when the failure is the third stage, if the current first stage information does not exist in the history record list, read a history record from the history record list to restore the network connection , if the current first-stage information exists in the history list and the current second-stage information does not exist in the history list, read a history record where the first-stage information is located in the history list to restore the network Connection, if the current first-stage information and the current second-stage information both exist in the history record list, read a history record where the first-stage information and the second-stage information are located in the history record list to restore the network connect.

相较于现有技术,本发明提供的客户端装置及其恢复网络连接的方法,其将设置资讯分为第一、第二以及第三阶段资讯,且仅记录没有存在于历史记录清单中的某个阶段资讯,以及当需要恢复网络连接时,首先检查存在于历史记录清单中的阶段资讯,然后使用该阶段资讯所在的历史记录建立连接,以快速恢复网络连接。提高了效率,且节约了存储空间。Compared with the prior art, the client device and the method for restoring the network connection provided by the present invention divide the setting information into the first, second and third stage information, and only record the information that does not exist in the historical record list. A certain stage of information, and when it is necessary to restore the network connection, first check the stage information in the history list, and then use the history record where the stage information is located to establish a connection to quickly restore the network connection. Efficiency is improved and storage space is saved.

附图说明 Description of drawings

图1是传统保存网络连接成功的设置资讯的示意图。FIG. 1 is a schematic diagram of conventionally saving setting information of a successful network connection.

图2是本发明客户端装置的较佳实施例的系统架构图。FIG. 2 is a system architecture diagram of a preferred embodiment of the client device of the present invention.

图3是本发明记录网络连接成功时多条历史记的显示示意图。Fig. 3 is a schematic diagram of displaying multiple histories when the network connection is successfully recorded according to the present invention.

图4是本发明客户端装置的较佳实施例的功能模块图。FIG. 4 is a functional block diagram of a preferred embodiment of the client device of the present invention.

图5是本发明恢复客户端装置网络连接的方法较佳实施例的流程图。FIG. 5 is a flowchart of a preferred embodiment of a method for restoring a network connection of a client device according to the present invention.

图6是本发明恢复客户端装置网络连接的方法中步骤S10的细化流程图。FIG. 6 is a detailed flowchart of step S10 in the method for restoring the network connection of the client device according to the present invention.

图7是本发明恢复客户端装置网络连接的方法中步骤S17的细化流程图。FIG. 7 is a detailed flow chart of step S17 in the method for restoring the network connection of the client device according to the present invention.

主要元件符号说明Description of main component symbols

  客户端装置 client device  1 1   应用程序 application  10 10   恢复单元 recovery unit  20 20   WiMAX单元 WiMAX unit  30 30   数据库 database  40 40   历史记录清单 History list  401 401   记录模块 Record module  202 202   检查模块 check module  204 204   判断模块 Judgment module  206 206   读取模块 read module  208 208

具体实施方式 Detailed ways

如图2所示,是本发明客户端装置的较佳实施例的系统架构图。所述的客户端装置1包括应用程序10、恢复单元20、WiMAX(Worldwide Interoperability for Microwave Access,全球互通微波存取)单元30以及数据库40。所述的客户端装置1通过WiMAX单元30与WiMAX无线接入点2(AP,Access Point)进行无线网络连接。所述的应用程序10可以是客户端装置1上需要进行网络连接的程序,例如,VOIP(Voice over Internet Protocol,网络电话)应用程序。应说明的是,所述的客户端装置1中的应用程序10通过WiMAX单元30与WiMAX无线接入点2进行网络连接时,需要通过一定的WiMAX设置资讯进行连接。所述的WiMAX设置资讯包括网络连接过程中三个阶段的资讯,分别是第一阶段资讯、第二阶段资讯以及第三阶段资讯。第一阶段资讯包括客户端装置1连接网络时所使用的频段(Frequency)与带宽(Bandwidth)等资讯;第二阶段资讯包括与该第一阶段资讯对应的接入点资讯,例如,SectorID(扇区参数消息),PreambleIdx(前导码索引)等资讯;第三阶段资讯包括与该接入点资讯所连接网络的验证信息,例如,用于进行身份验证的用户名、密码等资讯。在应用程序10通过WiMAX单元30与WiMAX无线接入点2进行网络连接时,需要使用该第一阶段、第二阶段以及第三阶段的资讯依次连接。As shown in FIG. 2 , it is a system architecture diagram of a preferred embodiment of the client device of the present invention. The client device 1 includes an application program 10, a recovery unit 20, a WiMAX (Worldwide Interoperability for Microwave Access, Worldwide Interoperability for Microwave Access) unit 30 and a database 40. The client device 1 performs a wireless network connection with a WiMAX wireless access point 2 (AP, Access Point) through the WiMAX unit 30. The application program 10 may be a program that needs to be connected to the network on the client device 1, for example, a VOIP (Voice over Internet Protocol, VoIP) application program. It should be noted that, when the application program 10 in the client device 1 is connected to the WiMAX wireless access point 2 through the WiMAX unit 30 , certain WiMAX setting information is required for the connection. The WiMAX setting information includes information of three stages in the network connection process, which are information of the first stage, information of the second stage and information of the third stage. The first-stage information includes information such as the frequency band (Frequency) and bandwidth (Bandwidth) used by the client device 1 to connect to the network; the second-stage information includes the access point information corresponding to the first-stage information, for example, SectorID (SectorID) Area parameter message), PreambleIdx (preamble index) and other information; the third stage information includes verification information of the network connected to the access point information, for example, information such as user name and password for identity verification. When the application program 10 connects to the WiMAX wireless access point 2 through the WiMAX unit 30 , it needs to use the information of the first stage, the second stage and the third stage to connect sequentially.

所述的数据库40用于存储各类数据。在本较佳实施例中,所述的数据库40存储有包括WiMAX设置资讯的历史记录清单401。该历史记录清单401记录了应用程序10网络连接成功时的多条历史记录,该每条历史记录对应一条网络连接成功时的WiMAX设置资讯,因此每条历史记录均包括一个第一阶段资讯、一个第二阶段资讯以及一个第三阶段资讯。The database 40 is used to store various data. In this preferred embodiment, the database 40 stores a history record list 401 including WiMAX setting information. The historical record list 401 records a plurality of historical records when the network connection of the application program 10 is successful, and each historical record corresponds to a piece of WiMAX setting information when the network connection is successful, so each historical record includes a first-stage information, a A second stage message and a third stage message.

如图3所示,为本发明所记录的历史记录清单401较佳实施例的示意图。所述的历史记录清单401中包括多个带有编号的Scanning来记录每条历史记录的第一阶段资讯,多个带有编号的Filter来记录每条历史记录的第二阶段资讯,以及多个带有编号的Network来记录每条历史记录的第三阶段资讯。其中,该历史记录清单401中的Scanning 2、Filter 2与Network 2为网络连接成功时的一条历史记录,或历史记录清单401中的Scanning 2、Filter 2与Network 3也为网络连接成功时的一条历史记录。其中,历史记录清单401中的Scanning2所在的历史记录有三条,第一条历史记录包括Scanning 2、Filter 1以及Network 1;第二条历史记录包括Scanning 2、Filter 2以及Network2;第三条历史记录包括Scanning 2、Filter 2以及Network 3。As shown in FIG. 3 , it is a schematic diagram of a preferred embodiment of the history record list 401 recorded in the present invention. The history record list 401 includes multiple numbered Scannings to record the first phase information of each historical record, multiple numbered Filters to record the second phase information of each historical record, and multiple A numbered Network to record the third-stage information of each historical record. Wherein, Scanning 2, Filter 2 and Network 2 in the history record list 401 are a history record when the network connection is successful, or Scanning 2, Filter 2 and Network 3 in the history record list 401 are also a history record when the network connection is successful history record. Among them, there are three historical records of Scanning2 in the historical record list 401, the first historical record includes Scanning 2, Filter 1 and Network 1; the second historical record includes Scanning 2, Filter 2 and Network2; the third historical record Including Scanning 2, Filter 2 and Network 3.

如图4所示,是本发明客户端装置中的恢复单元较佳实施例的功能模块图。所示的恢复单元20包括记录模块202、检查模块204、判断模块206以及读取模块208。本发明所称的模块是完成一特定功能的计算机程序段,比程序更适合于描述软件在计算机中的执行过程,因此在本发明以下对软件描述中都以模块描述。As shown in FIG. 4 , it is a functional block diagram of a preferred embodiment of the recovery unit in the client device of the present invention. The recovery unit 20 shown includes a recording module 202 , a checking module 204 , a judging module 206 and a reading module 208 . The module referred to in the present invention is a computer program segment that completes a specific function, which is more suitable than a program to describe the execution process of software in a computer, so the following description of software in the present invention is described as a module.

所述的记录模块202用于当应用程序10通过WiMAX单元30与WiMAX无线接入点2进行网络连接且网络连接成功时,从WiMAX单元30中读取该次网络连接成功的WiMAX设置资讯,并添加该WiMAX设置资讯作为一条历史记录存储于历史记录清单401中。The recording module 202 is used to read the WiMAX setting information of the successful network connection from the WiMAX unit 30 when the application program 10 is connected to the WiMAX wireless access point 2 through the WiMAX unit 30 and the network connection is successful, and The WiMAX setting information is added as a historical record and stored in the historical record list 401 .

应说明的是,在记录模块202记录该条历史记录过程中,需要首先依次判断所读取的WiMAX设置资讯中各阶段资讯是否已经存在于历史记录清单401中。所述记录模块202通过下列方法将每次网络连接成功时的WiMAX设置资讯中的各阶段资讯记录到历史记录清单401中:当历史记录清单中不存在该读取的WiMAX设置资讯的第一阶段资讯时,需要在历史记录清单中新增该第一阶段资讯;当历史记录清单中存在该第一阶段资讯时,无需再新增该第一阶段资讯;当历史记录清单中不存在该读取的WiMAX设置资讯的第二阶段资讯时,需要在历史记录清单中新增该第二阶段资讯,并将该新增的第二阶段资讯同上述第一阶段资讯关联起来;当历史记录清单中存在该第二阶段资讯时,将该已经存在的该第二阶段资讯与上述第一阶段资讯关联起来;当历史记录清单中不存在该读取的WiMAX设置资讯的第三阶段资讯时,需要在历史记录清单中新增该第三阶段资讯,并将该新增的第三阶段资讯与上述第一阶段资讯和第二阶段资讯关联起来,形成一条历史记录;当历史记录清单中存在该读取的第三阶段资讯时,无需新增该第三阶段资讯,只需将历史记录清单中存在的该第三阶段资讯与上述第一阶段资讯、第二阶段资讯关联起来,以形成一条历史记录。该记录模块202往历史记录清单401添加新记录的方法可参见图6的描述。It should be noted that, in the process of recording the historical record by the recording module 202 , it is first necessary to sequentially determine whether information of each stage in the read WiMAX setting information already exists in the historical record list 401 . The recording module 202 records the information of each stage in the WiMAX setting information when the network connection is successful each time into the history record list 401 by the following method: when the first stage of the read WiMAX setting information does not exist in the history record list When reading information, it is necessary to add the first-stage information in the history list; when the first-stage information exists in the history list, there is no need to add the first-stage information; when the read does not exist in the history list When the second stage information of the WiMAX configuration information is set, it is necessary to add the second stage information in the history record list, and associate the added second stage information with the above-mentioned first stage information; when the history record list exists For the second-stage information, associate the existing second-stage information with the above-mentioned first-stage information; when the third-stage information of the read WiMAX setting information does not exist in the history record list, it needs to Add the third-stage information to the record list, and associate the added third-stage information with the above-mentioned first-stage information and second-stage information to form a historical record; when there is the read in the historical record list For the third-stage information, there is no need to add the third-stage information, and only need to associate the third-stage information in the history record list with the above-mentioned first-stage information and second-stage information to form a history record. The method for the record module 202 to add a new record to the historical record list 401 can refer to the description of FIG. 6 .

所述的检查模块204用于当应用程序10通过WiMAX单元30与WiMAX无线接入点2进行网络连接失败时,检查WiMAX单元30中当前的WiMAX设置资讯。具体而言,检查模块204依次检查当前的WiMAX设置资讯中的第一阶段资讯、第二阶段资讯以及第三阶段资讯以查找出网络断线时出现故障的阶段。所述的检查模块204根据当前哪个阶段资讯连接失败来判断出现故障的是哪一个阶段。所述的出现故障即表示连接失败。The checking module 204 is used for checking the current WiMAX setting information in the WiMAX unit 30 when the application program 10 fails to connect to the WiMAX wireless access point 2 through the WiMAX unit 30 . Specifically, the checking module 204 sequentially checks the first-stage information, second-stage information, and third-stage information in the current WiMAX setting information to find out the stage where a fault occurs when the network is disconnected. The checking module 204 judges which stage the failure occurs according to which stage the current information connection fails. The above failure means that the connection failed.

当出现故障的是第一阶段,或者当出现故障的是第二阶段或第三阶段时且第一阶段资讯没有存在于历史记录清单401中时,所述的读取模块208读取整个历史记录清单401,并从中读取一条历史记录以尝试使用该条历史记录的第一、第二、第三阶段资讯恢复应用程序10与无线接入点2的网络连接。When the fault occurs in the first stage, or when the fault occurs in the second stage or the third stage and the first stage information does not exist in the historical record list 401, the reading module 208 reads the entire historical record List 401, and read a history record from it to try to use the first, second and third stage information of the history record to restore the network connection between the application program 10 and the wireless access point 2.

当出现故障的不是第一阶段时,而是第二阶段时,所述的判断模块206判断当前的第一阶段资讯是否存在于历史记录清单401中。当第一阶段资讯存在于历史记录清单401中时,所述的读取模块208读取历史记录清单401中该第一阶段资讯所在的历史记录以尝试恢复网络连接。When the fault occurs not in the first stage but in the second stage, the judging module 206 judges whether the current first stage information exists in the history record list 401 . When the first-stage information exists in the history record list 401, the reading module 208 reads the history record of the first-stage information in the history record list 401 to try to restore the network connection.

当出现故障的不是第一、第二阶段,而是第三阶段时,所述的判断模块206判断第一、第二阶段资讯是否存在于历史记录清单401中。当第一阶段资讯和第二阶段资讯均存在于历史记录清单401中时,所述的读取模块208读取历史记录清单401中所述第一阶段资讯以及第二阶段资讯所在的历史记录以恢复网络连接。当第一阶段资讯存在于历史记录清单401中而第二阶段资讯没有存在于历史记录清单401中时,所述的读取模块208在历史记录清单401中读取第一阶段资讯所在的历史记录以恢复网络。When the failure occurs not in the first and second stages but in the third stage, the judging module 206 judges whether the information of the first and second stages exists in the history record list 401 . When both the first-stage information and the second-stage information exist in the historical record list 401, the reading module 208 reads the history records where the first-stage information and the second-stage information in the historical record list 401 are located to Restore network connection. When the information of the first stage exists in the history list 401 and the information of the second stage does not exist in the history list 401, the reading module 208 reads the history record where the information of the first stage is located in the history list 401 to restore the network.

所述读取模块208读取历史记录清单中的历史记录以尝试恢复网络连接的过程结合图7进行描述。The process of the reading module 208 reading the history records in the history record list to try to restore the network connection is described in conjunction with FIG. 7 .

如图5所示,是本发明恢复网络连接方法较佳实施例的流程图。As shown in FIG. 5 , it is a flow chart of a preferred embodiment of the method for restoring network connection in the present invention.

步骤S10,当应用程序10通过WiMAX单元30与WiMAX无线接入点2进行网络连接且网络连接成功时,从WiMAX单元30中读取所述的WiMAX设置资讯,并添加该WiMAX设置资讯作为一条历史记录存储于历史记录清单401中。Step S10, when the application program 10 is connected to the WiMAX wireless access point 2 through the WiMAX unit 30 and the network connection is successful, read the WiMAX setting information from the WiMAX unit 30, and add the WiMAX setting information as a history The records are stored in the history record list 401 .

步骤S11,当应用程序10通过WiMAX单元30与WiMAX无线接入点2网络连接失败时,所述的检查模块204检查WiMAX单元30中当前的WiMAX设置资讯中的第一阶段资讯、第二阶段资讯及第三阶段资讯,以判断出现故障的是哪一个阶段。当出现故障的是第一阶段时,进入步骤S17;当出现故障的是第二阶段时,进入步骤S12;当出现故障的是第三阶段时,进入步骤S14。Step S11, when the application program 10 fails to connect to the WiMAX wireless access point 2 network through the WiMAX unit 30, the checking module 204 checks the first stage information and the second stage information in the current WiMAX setting information in the WiMAX unit 30 And the third stage information to determine which stage the failure occurred. When the fault occurs in the first stage, enter step S17; when the fault occurs in the second stage, enter step S12; when the fault occurs in the third stage, enter step S14.

步骤S12,所述的判断模块206判断当前的第一阶段资讯是否存在于历史记录清单401中。当当前的第一阶段资讯存在于历史记录清单401中时,进入步骤S13;当当前的第一阶段资讯没有存在于历史记录清单401中时,进入步骤S17。Step S12 , the judging module 206 judges whether the current first-stage information exists in the history list 401 . When the current first-stage information exists in the history list 401, go to step S13; when the current first-stage information does not exist in the history list 401, go to step S17.

步骤S13,所述的读取模块208读取历史记录清单401中该第一阶段资讯所在的历史记录,并提供给应用程序10以使用该条历史记录尝试恢复网络连接,流程结束。In step S13, the reading module 208 reads the history record of the first-stage information in the history record list 401, and provides it to the application program 10 to use the history record to try to restore the network connection, and the process ends.

步骤S14,所述的判断模块206判断当前的第一阶段资讯是否存在于历史记录清单401中。当当前的第一阶段资讯存在于历史记录清单401中时,进入步骤S15;当当前的第一阶段资讯没有存在于历史记录清单401中时,进入步骤S17。Step S14 , the judging module 206 judges whether the current first-stage information exists in the historical record list 401 . When the current first-stage information exists in the history list 401, go to step S15; when the current first-stage information does not exist in the history list 401, go to step S17.

步骤S15,所述的判断模块206判断当前的第二阶段资讯是否存在于历史记录清单401中。当当前的第二阶段资讯存在于历史记录清单401中时,进入步骤S16;当当前的第二阶段资讯没有存在于历史记录清单401中时,进入步骤S13。Step S15 , the judging module 206 judges whether the current second-stage information exists in the history list 401 . When the current second-stage information exists in the history list 401, go to step S16; when the current second-stage information does not exist in the history list 401, go to step S13.

步骤S16,所述的读取模块208读取历史记录清单401中该第一阶段资讯以及第二阶段资讯所在的历史记录,并提供给应用程序10以使用该条历史记录尝试恢复网络连接,流程结束。Step S16, the reading module 208 reads the history records of the first stage information and the second stage information in the history record list 401, and provides them to the application program 10 to use the history records to try to restore the network connection, the process flow Finish.

步骤S17,所述的读取模块208从历史记录清单401中读取任意一条连接成功的历史记录并提供给应用程序以使用该条历史记录尝试恢复网络连接,流程结束。In step S17, the reading module 208 reads any successful connection history record from the history record list 401 and provides it to the application program to use the history record to try to restore the network connection, and the process ends.

如图6所示,是图5中步骤S10的细化流程图。As shown in FIG. 6 , it is a detailed flowchart of step S10 in FIG. 5 .

步骤S100,在记录模块202记录该条历史记录过程中,所述的判断模块206判断所读取的WiMAX设置资讯中的第一阶段资讯是否存在于历史记录清单401中。当历史记录清单401中存在该所读取的第一阶段资讯时,进入步骤S102;当历史记录清单401中不存在所读取的第一阶段资讯时,进入步骤S101。Step S100 , during the record module 202 recording the history record, the judging module 206 judges whether the first stage information in the read WiMAX setting information exists in the history record list 401 . When the read first-stage information exists in the history record list 401, go to step S102; when there is no read first-stage information in the history record list 401, go to step S101.

步骤S101,所述的记录模块202在历史记录清单401中新增该第一阶段资讯,并进入步骤S102。In step S101, the recording module 202 adds the first-stage information in the historical record list 401, and proceeds to step S102.

步骤S102,所述的判断模块206判断所读取的WiMAX设置资讯中的第二阶段资讯是否存在于历史记录清单401中。当历史记录清单401中存在该所读取的第二阶段资讯时,进入步骤S104;当历史记录清单401中不存在所读取的第二阶段资讯时,进入步骤S103。Step S102 , the judging module 206 judges whether the second stage information in the read WiMAX configuration information exists in the history record list 401 . When the read second-stage information exists in the historical record list 401, go to step S104; when there is no read second-stage information in the historical record list 401, go to step S103.

步骤S103,所述的记录模块202在历史记录清单401中新增该第二阶段资讯,并进入步骤S104。In step S103, the recording module 202 adds the second stage information in the historical record list 401, and proceeds to step S104.

步骤S104,所述的记录模块202将该已存在或新增的第二阶段资讯与上述第一阶段资讯关联起来。Step S104, the recording module 202 associates the existing or newly added second-stage information with the above-mentioned first-stage information.

步骤S105,所述的判断模块206判断所读取的WiMAX设置资讯的第三阶段资讯是否存在于历史记录清单401中。当历史记录清单401中存在该所读取的第三阶段资讯时,进入步骤S107;当历史记录清单401中不存在所读取的第三阶段资讯时,进入步骤S106。Step S105 , the judging module 206 judges whether the third stage information of the read WiMAX configuration information exists in the history list 401 . When the read third-stage information exists in the historical record list 401, go to step S107; when there is no read third-stage information in the historical record list 401, go to step S106.

步骤S106,所述的记录模块202在历史记录清单401中新增该第三阶段资讯,并进入步骤S107。In step S106, the recording module 202 adds the third-stage information in the historical record list 401, and proceeds to step S107.

步骤S107,所述的记录模块202将该已存在或新增的第三阶段资讯与上述第一阶段资讯、第二阶段资讯关联起来,以形成一条历史记录,流程结束。Step S107, the recording module 202 associates the existing or newly added third-stage information with the above-mentioned first-stage information and second-stage information to form a historical record, and the process ends.

如图7所示,是图5中步骤S17的细化流程图。As shown in FIG. 7 , it is a detailed flowchart of step S17 in FIG. 5 .

步骤S170,所述的读取模块208依次读取历史记录清单401中的一条第一阶段资讯,并提供给应用程序10使用,使其使用该第一阶段资讯尝试进行网络连接。In step S170, the reading module 208 sequentially reads a piece of first-stage information in the history record list 401, and provides it to the application program 10, so that it uses the first-stage information to try to connect to the network.

步骤S171,所述的读取模块208判断使用该第一阶段资讯是否连接成功。当连接成功时,进入步骤S173;当没有连接成功时,进入步骤S172。In step S171, the reading module 208 determines whether the connection is successful using the first stage information. When the connection is successful, go to step S173; if not, go to step S172.

步骤S172,判断历史记录清单401中的第一阶段资讯是否已读完。如果第一阶段资讯已读完,流程结束。如果第一阶段资讯没有读完,返回步骤S170,继续读取下一条第一阶段资讯。Step S172, judging whether the first stage information in the history list 401 has been read. If the information in the first stage has been read, the process ends. If the information of the first stage has not been read, return to step S170 and continue to read the next piece of information of the first stage.

步骤S173,所述的读取模块208依次读取该第一阶段资讯所在历史记录中的一条第二阶段资讯,并将其提供给应用程序10,使应用程序10使用该第二阶段资讯进行网络连接。Step S173, the reading module 208 sequentially reads a piece of second-stage information in the history record where the first-stage information is located, and provides it to the application program 10, so that the application program 10 uses the second-stage information for network connect.

步骤S174,所述的读取模块208判断使用该第二阶段资讯是否连接成功。当连接成功时,进入步骤S176;当没有连接成功时,进入步骤S175。In step S174, the reading module 208 determines whether the connection is successful using the second stage information. When the connection is successful, go to step S176; if not, go to step S175.

步骤S175,判断该第一阶段资讯所在的历史记录中的多条第二阶段资讯是否已读完。如果已读完,返回步骤S172。如果没有读完,返回步骤S173。Step S175, judging whether the multiple pieces of second-stage information in the history record where the first-stage information is located have been read. If it has been read, return to step S172. If not finished reading, return to step S173.

步骤S176,所述的读取模块208依次读取该第二阶段资讯所在历史记录中的一条第三阶段资讯,并将其提供给应用程序10,使应用程序10使用该第三阶段资讯进行网络连接。Step S176, the reading module 208 sequentially reads a piece of third-stage information in the history record where the second-stage information is located, and provides it to the application program 10, so that the application program 10 uses the third-stage information for network connect.

步骤S177,所述的读取模块208判断使用该第三阶段资讯是否连接成功。当连接成功时,流程结束,表示应用程序10使用历史记录清单401中的一条历史记录恢复了网络连接。当没有连接成功时,进入步骤S178。In step S177, the reading module 208 determines whether the connection is successful using the third stage information. When the connection is successful, the process ends, indicating that the application program 10 has restored the network connection using a history record in the history record list 401 . When the connection is not successful, go to step S178.

步骤S178,判断该第二阶段资讯所在历史记录中的多条第三阶段资讯是否已读完。如果已读完,返回步骤S175;如果没有读完,返回步骤S176。Step S178, judging whether the multiple pieces of third-stage information in the history record where the second-stage information is located have been read. If it has been read, return to step S175; if not, return to step S176.

最后所应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention without limitation. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be The scheme shall be modified or equivalently replaced without departing from the spirit and scope of the technical scheme of the present invention.

Claims (6)

1. a client terminal device, comprise global intercommunication microwave access WiMAX unit and historical record inventory, in this historical record inventory, record this client terminal device the each network successful connection of application program time many historical records, WiMAX during this every the corresponding network successful connection of historical record arranges information, it is characterized in that, this client terminal device also comprises:
Checking module, for when application program is carried out network connection failure by WiMAX unit, check that current WiMAX arranges the stage that information breaks down with judgement, this WiMAX arranges the information that information comprises three phases, is respectively first stage information, second stage information and phase III information;
Read module, for when break down be the first stage time, from historical record inventory, read a historical record and connect to recover network;
Described read module, also for when break down be second stage time, if current first stage information is present in historical record inventory, the historical record that reads this first stage information place in historical record inventory connects to recover network, if current first stage information is not present in historical record inventory, from historical record inventory, reads a historical record and connect to recover network;
Described read module, also for when break down be the phase III time, if current first stage information is not present in historical record inventory, from historical record inventory, reading a historical record connects to recover network, if current first stage information is present in historical record inventory, current second stage information is not present in historical record inventory, the historical record that reads this first stage information place in historical record inventory connects to recover network, if current first stage information and current second stage information are all present in historical record inventory, in historical record inventory, reading this first stage information is connected to recover network with the historical record at second stage information place,
Wherein, read module reads a historical record from historical record inventory by following steps:
E1. read a first stage information in historical record inventory, and offer application program and use this information to attempt carrying out network connection first stage;
E2. when using that this first stage, information did not have successful connection, enter step e3, when using this information successful connection, enter step e4 first stage;
E3. judge whether the first stage information in historical record inventory runs through, if do not run through, returns to step e1, if run through, process ends;
E4. read a second stage information in this first stage information place historical record, and offer application program and use this second stage information to carry out network connection;
E5. when using this second stage information there is no successful connection, enter step e6, when using this second stage information successful connection, enter step e7;
E6. judge whether many second stage information in this first stage information place historical record run through, if do not run through, return to step e4, if run through, return to step e3;
E7. read a phase III information in this second stage information place historical record, and offer application program and use this phase III information to carry out network connection;
E8. when using that this phase III, information did not have successful connection, enter step e9, when using this information successful connection phase III, process ends;
E9. judge whether many phase III information in this second stage information place historical record run through, if do not run through, return to step e7, if while having run through, return to step e6.
2. client terminal device as claimed in claim 1, is characterized in that, frequency range and the bandwidth information when described first stage information comprises the application program interconnection network of client terminal device, used; Second stage information comprises the access point information corresponding with this first stage information; Phase III information comprises the authorization information with this access point information connected network.
3. client terminal device as claimed in claim 1, it is characterized in that, this client terminal device also comprises logging modle, for when the successful connection of application program network, adds through the following steps WiMAX and information is set as a historical record in historical record inventory:
A1. when application program is carried out network successful connection by WiMAX unit, judge that whether Already in first stage information that this WiMAX arranges information in historical record inventory;
A2. in historical record inventory, exist this during information first stage, directly enter step a3, in historical record inventory, do not exist this during information, newly-increased this first stage information in historical record inventory first stage;
While a3. existing this WiMAX that the second stage information of information is set, directly enter step a4 in historical record inventory; While there is not this second stage information in historical record inventory, newly-increased this second stage information in historical record inventory;
A4. this second stage information and above-mentioned first stage information are associated;
A5. in historical record inventory, exist phase III that this WiMAX arranges information during information, directly enter step a6; In historical record inventory, do not exist this during information, newly-increased this phase III information in historical record inventory phase III;
A6. this phase III information and above-mentioned first stage information, second stage information are associated, to form a historical record, be stored in historical record inventory.
4. one kind is recovered the method that network connects, be applied in client terminal device, this client terminal device comprises global intercommunication microwave access WiMAX unit and historical record inventory, in this historical record inventory, record this client terminal device the each network successful connection of application program time many historical records, WiMAX during this every the corresponding network successful connection of historical record arranges information, it is characterized in that, the method comprises:
When application program is carried out network connection failure by WiMAX unit, check that current WiMAX arranges the stage that information breaks down with judgement, this WiMAX arranges the information that information comprises three phases, is respectively first stage information, second stage information and phase III information;
When break down be the first stage time, from historical record inventory, read a historical record and connect to recover network;
When break down be second stage time, if current first stage information is present in historical record inventory, the historical record that reads this first stage information place in historical record inventory connects to recover network, if current first stage information is not present in historical record inventory, from historical record inventory, reads a historical record and connect to recover network;
When break down be the phase III time, if current first stage information is not present in historical record inventory, from historical record inventory, reading a historical record connects to recover network, if current first stage information is present in historical record inventory, current second stage information is not present in historical record inventory, the historical record that reads this first stage information place in historical record inventory connects to recover network, if current first stage information and current second stage information are all present in historical record inventory, in historical record inventory, reading this first stage information is connected to recover network with the historical record at second stage information place,
Wherein, describedly from historical record inventory, read a historical record and comprise with the step of recovering network and connecting:
E1. read a first stage information in historical record inventory, and offer application program and use this information to attempt carrying out network connection first stage;
E2. when using that this first stage, information did not have successful connection, enter step e3, when using this information successful connection, enter step e4 first stage;
E3. judge whether the first stage information in historical record inventory runs through, if do not run through, returns to step e1, if run through, process ends;
E4. read a second stage information in this first stage information place historical record, and offer application program and use this second stage information to carry out network connection;
E5. when using this second stage information there is no successful connection, enter step e6, when using this second stage information successful connection, enter step e7;
E6. judge whether many second stage information in this first stage information place historical record run through, if do not run through, return to step e4, if run through, return to step e3;
E7. read a phase III information in this second stage information place historical record, and offer application program and use this phase III information to carry out network connection;
E8. when using that this phase III, information did not have successful connection, enter step e9, when using this information successful connection phase III, process ends;
E9. judge whether many phase III information in this second stage information place historical record run through, if do not run through, return to step e7, if while having run through, return to step e6.
5. the method that recovery network as claimed in claim 4 connects, is characterized in that, frequency range and the bandwidth information when described first stage information comprises the application program interconnection network of client terminal device, used; Second stage information comprises the access point information corresponding with this first stage information; Phase III information comprises the authorization information with this access point information connected network.
6. the method that recovery network as claimed in claim 4 connects, is characterized in that, the method also comprises recording step:
A1. when application program is carried out network successful connection by WiMAX unit, judge that whether Already in first stage information that this WiMAX arranges information in historical record inventory;
A2. in historical record inventory, exist this during information first stage, directly enter step a3, in historical record inventory, do not exist this during information, newly-increased this first stage information in historical record inventory first stage;
While a3. existing this WiMAX that the second stage information of information is set, directly enter step a4 in historical record inventory; While there is not this second stage information in historical record inventory, newly-increased this second stage information in historical record inventory;
A4. this second stage information and above-mentioned first stage information are associated;
A5. in historical record inventory, exist phase III that this WiMAX arranges information during information, directly enter step a6; In historical record inventory, do not exist this during information, newly-increased this phase III information in historical record inventory phase III;
A6. this phase III information and above-mentioned first stage information, second stage information are associated, to form a historical record, be stored in historical record inventory.
CN201010266802.9A 2010-08-30 2010-08-30 Client device and method for recovering network connection thereof Expired - Fee Related CN102387604B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010266802.9A CN102387604B (en) 2010-08-30 2010-08-30 Client device and method for recovering network connection thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010266802.9A CN102387604B (en) 2010-08-30 2010-08-30 Client device and method for recovering network connection thereof

Publications (2)

Publication Number Publication Date
CN102387604A CN102387604A (en) 2012-03-21
CN102387604B true CN102387604B (en) 2014-04-30

Family

ID=45826414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010266802.9A Expired - Fee Related CN102387604B (en) 2010-08-30 2010-08-30 Client device and method for recovering network connection thereof

Country Status (1)

Country Link
CN (1) CN102387604B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105873175B (en) * 2015-08-11 2019-02-01 上海连尚网络科技有限公司 For handling the method and apparatus of abnormal wireless access point

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848783A (en) * 2005-11-24 2006-10-18 华为技术有限公司 Method and device for recovering service flow identifier in WiMAX network
CN101212382A (en) * 2006-12-27 2008-07-02 富士通株式会社 Network connection restoration method, AAA server and wireless access network gateway device
CN101364913A (en) * 2007-08-07 2009-02-11 中兴通讯股份有限公司 Method for network access by wireless terminal
CN101459972A (en) * 2008-12-09 2009-06-17 中兴通讯股份有限公司 Method and access gateway for implementing user access holding in WiMAX system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5167769B2 (en) * 2007-11-09 2013-03-21 富士通株式会社 Communication control device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848783A (en) * 2005-11-24 2006-10-18 华为技术有限公司 Method and device for recovering service flow identifier in WiMAX network
CN101212382A (en) * 2006-12-27 2008-07-02 富士通株式会社 Network connection restoration method, AAA server and wireless access network gateway device
CN101364913A (en) * 2007-08-07 2009-02-11 中兴通讯股份有限公司 Method for network access by wireless terminal
CN101459972A (en) * 2008-12-09 2009-06-17 中兴通讯股份有限公司 Method and access gateway for implementing user access holding in WiMAX system

Also Published As

Publication number Publication date
CN102387604A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
CN106326219B (en) Method, device and system for checking business system data
CN103019707A (en) Call stack analyzing and processing method and device
CN103049354B (en) Data recovery method, data restore device and storage system
CN109102273B (en) Method and system for realizing distributed intelligent payment routing
CN111651173A (en) Key code data burning method, device, terminal device and readable storage medium
EP4145771A1 (en) Network topology construction method and apparatus, and computer readable medium
CN103888597B (en) A kind of communication means, device and electronic equipment
CN115794472A (en) Chip error collection and processing method, device and storage medium
CN102387604B (en) Client device and method for recovering network connection thereof
WO2011127708A1 (en) Set-card separation mobile phone and method for realizing card initialization
CN113420082A (en) Data synchronization anomaly detection method and device
CN103065096B (en) A kind of data guard method, Apparatus and system
TWI478529B (en) Client device and method for recovering a network connection
CN114786279A (en) Method, device and system for directly connecting control of air conditioner and storage medium
CN106204031B (en) Card application processing method and device
CN111371818B (en) Data request verification method, device and equipment
WO2017201966A1 (en) Control method and apparatus for smart card, terminal device, and smart card
CN113448760B (en) Method, system, equipment and medium for recovering abnormal state of hard disk
CN111026332B (en) SSD bad block information protection method, SSD bad block information protection device, computer equipment and storage medium
CN115021806A (en) Link detection method, device, electronic device and storage medium
CN112463460A (en) Erasure code-based small block data recovery method and system
CN100401814C (en) A protection method for PHS mobile communication PIM card authentication data
CN106446214B (en) A method of extracting Saipan system message registration data
CN106339280B (en) A method of recombination spreadtrum system data
CN105574438A (en) User privacy protection method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20140430

Termination date: 20210830

CF01 Termination of patent right due to non-payment of annual fee