CN105262610A - Network repairing method, device and terminal - Google Patents

Network repairing method, device and terminal Download PDF

Info

Publication number
CN105262610A
CN105262610A CN201510558080.7A CN201510558080A CN105262610A CN 105262610 A CN105262610 A CN 105262610A CN 201510558080 A CN201510558080 A CN 201510558080A CN 105262610 A CN105262610 A CN 105262610A
Authority
CN
China
Prior art keywords
network
terminal
network environment
described terminal
abnormal
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.)
Pending
Application number
CN201510558080.7A
Other languages
Chinese (zh)
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.)
Beijing Kingsoft Internet Security Software Co Ltd
Zhuhai Juntian Electronic Technology Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Zhuhai Juntian Electronic Technology 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 Beijing Kingsoft Internet Security Software Co Ltd, Zhuhai Juntian Electronic Technology Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510558080.7A priority Critical patent/CN105262610A/en
Publication of CN105262610A publication Critical patent/CN105262610A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a network repairing method, a network repairing device and a terminal. Wherein, the method comprises the following steps: when a first application program runs in a terminal, detecting the network connection state of the terminal; if the network connection of the terminal is detected to be abnormal, further detecting the running state of a network card driving program of the terminal; and if the network card driving program is detected to run normally, determining the network environment abnormal factor causing the network connection abnormality in the terminal, and calling a network environment repairing tool to repair the network environment abnormal factor. According to the network repairing method, the abnormal network environment factors of the terminal are repaired through the network environment modification tool, the network of the terminal is repaired in time, and user experience is improved.

Description

The method of network restoration, device and terminal
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method of network restoration, device and terminal.
Background technology
Along with the development of Internet technology, network plays more and more important role in the life of people.People use computer to carry out various network operation, realize the application of various live and work.
In the routine use of computer, often there is various fault or problem in computer, and many times when fault or problem have appearred in computer, we can pass through computer network internet searching treating method, and then achieve a solution.If but exception has appearred in the network of computer, usually cause the reason of computer network exception to have a lot, may be such as that NIC driver is not installed or NIC driver exception, also may be that computer system problem causes.
When Network Abnormal, user cannot obtain the help of automatic network, the fault of computer or problem achieve a solution being difficult to, now, the computer maintenance personnel of specialty can only be sought help from, this uses computer to bring inconvenience to computer user, also improves complexity and the cost of computer maintenance.Therefore, when cannot interconnection network, it is very important for how helping user to carry out network recovery fast in time.
Summary of the invention
The present invention is intended to solve one of technical problem in correlation technique at least to a certain extent.For this reason, first object of the present invention is a kind of method proposing network restoration, the method is at NIC driver normal operation, and the network of terminal is when connecting abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, the timely network repairing terminal, improves Consumer's Experience.
Second object of the present invention is the device proposing a kind of network restoration.
3rd object of the present invention is to propose a kind of terminal.
For achieving the above object, first aspect present invention embodiment proposes a kind of method of network restoration, comprising: when described first application program is run in the terminal, detect the network connection state of described terminal; If it is abnormal to detect that the network of described terminal connects, then detect the running status of the NIC driver of described terminal further; If described NIC driver normal operation detected, then determine to cause network in described terminal to connect abnormal network environment abnormal factors, and call network environment fix tool described network environment abnormal factors is repaired.
Preferably, described method also comprises: if described NIC driver operation exception detected, then obtain hardware information and the software information of described terminal, and according to described hardware information and the link of software information generated query; Quick Response Code is generated according to described query link; Described Quick Response Code is shown in described terminal.
Preferably, show described Quick Response Code in described terminal before, also comprise: when described terminal installs the first application program, if the current network of described terminal connects normal, then obtain hardware information and the software information of described terminal, and the hardware information of described terminal and software information are sent to server, to make described server obtain the link information of the NIC driver of mating with described terminal according to the hardware information of described terminal and software information, and generate described Quick Response Code according to described link information; And receive and preserve the described Quick Response Code that described server returns.
Preferably, described network environment abnormal factors is Power Management Setup parameter, described in call network environment fix tool and described network environment abnormal factors is repaired specifically comprise: call described network environment fix tool will " allow computer to close this equipment to save power supply " option is set to " not allowing ".
Preferably, described network environment abnormal factors is WINSOCK agreement parameters, described in call the network environment of network environment fix tool to described terminal and repair and specifically comprise: reset described WINSOCK agreement.
Preferably, the network connection state of the described terminal of described detection specifically comprises: start detection thread in described terminal, and wherein, described detection thread sends message according to predetermined period to preset service device; If described message all sends failure in Preset Time, then judge that the network of described terminal connects abnormal.
According to the method for the network restoration of the embodiment of the present invention, when the first application program is run in the terminal, can the network connection state of sense terminals, and when detecting that the network of terminal connects abnormal, the running status of the NIC driver of further sense terminals; And when NIC driver normal operation being detected, determine to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.Thus, at NIC driver normal operation, and when the network of terminal connects abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, repaired the network of terminal in time, improve Consumer's Experience.
For achieving the above object, second aspect present invention embodiment proposes a kind of device of network restoration, comprising: first detection module, for when described first application program is run in the terminal, detects the network connection state of described terminal; Second detection module, if the network for described terminal being detected connects abnormal, then detects the running status of the NIC driver of described terminal further; First processing module, if for described NIC driver normal operation being detected, then determines to cause network in described terminal to connect abnormal network environment abnormal factors, and calls network environment fix tool and repair described network environment abnormal factors.
Preferably, described device also comprises: the second processing module, if for described NIC driver operation exception being detected, then obtain hardware information and the software information of described terminal, and according to described hardware information and the link of software information generated query, and generate Quick Response Code according to described query link, and show described Quick Response Code in described terminal.
Preferably, described device also comprises: the 3rd processing module, for when described terminal installs the first application program, if the current network of described terminal connects normal, then obtain hardware information and the software information of described terminal, and the hardware information of described terminal and software information are sent to server, to make described server obtain the link information of the NIC driver of mating with described terminal according to the hardware information of described terminal and software information, and generate described Quick Response Code according to described link information; And receive and preserve the described Quick Response Code that described server returns.
Preferably, described network environment abnormal factors is Power Management Setup parameter, described first processing module, specifically for: call described network environment fix tool and " permission computer cuts out this equipment to save power supply " option is set to " not allowing ".
Preferably, described network environment abnormal factors is WINSOCK agreement parameters, described first processing module, specifically for: call described network environment fix tool and reset described WINSOCK agreement.
Preferably, described first detection module, specifically for: start detection thread in described terminal, wherein, described detection thread sends message according to predetermined period to preset service device; If described message all sends failure in Preset Time, then judge that the network of described terminal connects abnormal.
According to the device of the network restoration of the embodiment of the present invention, when the first application program is run in the terminal, first detection module can the network connection state of sense terminals, and when detecting that the network of terminal connects abnormal, the running status of the NIC driver of the further sense terminals of the second detection module; And when NIC driver normal operation being detected, the first processing module determines to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.Thus, at NIC driver normal operation, and when the network of terminal connects abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, repaired the network of terminal in time, improve Consumer's Experience.
For achieving the above object, third aspect present invention embodiment proposes a kind of terminal, comprise: housing, processor, memory, circuit board and power circuit, wherein, described circuit board is placed in the interior volume that described housing surrounds, and described processor and described memory are arranged on described circuit board; Described power circuit, for powering for each circuit of described terminal or device; Described memory is used for stores executable programs code; Described processor runs the program corresponding with described executable program code by reading the executable program code stored in described memory, for when the first application program is run in described terminal, control described first application: when described first application program is run in the terminal, detect the network connection state of described terminal; If it is abnormal to detect that the network of described terminal connects, then detect the running status of the NIC driver of described terminal further; If described NIC driver normal operation detected, then determine to cause network in described terminal to connect abnormal network environment abnormal factors, and call network environment fix tool described network environment abnormal factors is repaired.
According to the terminal of the embodiment of the present invention, can the network connection state of sense terminals, and when detecting that the network of terminal connects abnormal, the running status of the NIC driver of further sense terminals; And when NIC driver normal operation being detected, determine to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.Thus, at NIC driver normal operation, and when the network of terminal connects abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, repaired the network of terminal in time, improve Consumer's Experience.
Accompanying drawing explanation
Fig. 1 is the flow chart of the method for network restoration according to an embodiment of the invention.
Fig. 2 is the flow chart of the method for network restoration according to the present invention's specific embodiment.
Fig. 3 is the structural representation of the device of network restoration according to an embodiment of the invention.
Fig. 4 is the structural representation of the device of network restoration in accordance with another embodiment of the present invention.
Embodiment
Be described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has element that is identical or similar functions from start to finish.Be exemplary below by the embodiment be described with reference to the drawings, be intended to for explaining the present invention, and can not limitation of the present invention be interpreted as.
Below with reference to the accompanying drawings the method for the network restoration of the embodiment of the present invention, device and terminal are described.
Fig. 1 is the flow chart of the method for network restoration according to an embodiment of the invention.
As shown in Figure 1, the method comprises:
S101, when the first application program is run in the terminal, the network connection state of sense terminals.
Wherein, the first application program is the client software can repaired the network in terminal, and such as, the first application program can be WinDriver Ghost software.
Particularly, after user opens the first application program, can start detection thread in the terminal, wherein, detect thread and send message according to predetermined period to preset service device; If message all sends failure in Preset Time, then judge that the network of terminal connects abnormal.
Such as, after user opens WinDriver Ghost software, by the network connection state of the automatic sense terminals of asynchronous thread.This network detects thread can the network connection state of sense terminals always.This thread can send message to preferred server at interval of 2 minutes, if message is all failed, was then judged as that the network of terminal connects abnormal.If message is all successful, be then judged as that the network of terminal connects normal.
S102, if it is abnormal to detect that the network of terminal connects, then the running status of the NIC driver of further sense terminals.
Connect extremely at the network of sense terminals, can the installation situation of NIC driver further in sense terminals, and whether install normally according to the NIC driver in the installation situation determination terminal of the NIC driver in terminal, and obtain the service data of NIC driver, and obtained service data is analyzed, whether the NIC driver according to analysis result determination terminal is run normal.If determine that network determination installation of network card diver is normal, and the service data of NIC driver is normal, then determine NIC driver normal operation.
Such as, connect extremely at the network of sense terminals, by the API (ApplicationProgrammingInterface of terminal operating system, application programming interface) and registration table traversal equipment manager in the conditional code of all devices under network adapter, can analyze in obtained conditional code and whether there is error status code, and whether driving INF file corresponding to checking network card driver be abnormal, if there is no error status code, and drive INF file normal, then can determine the NIC driver normal operation of terminal.
S103, if NIC driver normal operation detected, then determines to cause network in terminal to connect abnormal network environment abnormal factors, and calls network environment fix tool and repair network environment abnormal factors.
In one embodiment of the invention, if the network environment abnormal factors abnormal factors determining to cause network in terminal to connect exception is Power Management Setup parameter, then calls network environment fix tool and " permission computer cuts out this equipment to save power supply " option is set to " not allowing ".
In one embodiment of the invention, if the network environment abnormal factors determining to cause network in terminal to connect exception is WINSOCK agreement parameters, calls the WINSOCK agreement of network environment fix tool to terminal and reset.
Wherein, it should be noted that, save the correcting strategy repaired network and connect exception in network environment fix tool, different network environment abnormal factorses, corresponding correcting strategy is different.
In addition, in one embodiment of the invention, if NIC driver operation exception detected, then obtain hardware information and the software information of terminal, and according to hardware information and the link of software information generated query, and generate Quick Response Code according to query link, and two-dimensional code display in the terminal.
In addition, when first application program is installed in the terminal, if the current network of terminal connects normal, then can also obtain hardware information and the software information of terminal, and the hardware information of terminal and software information are sent to server, to make server obtain the link information of the NIC driver of mating with terminal according to the hardware information of terminal and software information, and generate Quick Response Code according to link information; And receive and preserve the Quick Response Code that server returns.
Particularly, after showing the Quick Response Code downloading NIC driver in the terminal, user downloads NIC driver by mobile terminal such as smart mobile phone from server, then downloaded NIC driver can be uploaded to terminal, to carry out the installation of NIC driver.
The method of the network restoration of the embodiment of the present invention, when the first application program is run in the terminal, can the network connection state of sense terminals, and when detecting that the network of terminal connects abnormal, the running status of the NIC driver of further sense terminals; And when NIC driver normal operation being detected, determine to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.Thus, at NIC driver normal operation, and when the network of terminal connects abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, repaired the network of terminal in time, improve Consumer's Experience.
Fig. 2 is the flow chart of the method for network restoration according to the present invention's specific embodiment.
As shown in Figure 2, the method comprises:
S201, when the first application program is run in the terminal, the network connection state of sense terminals.
Wherein, the first application program is the client software can repaired the network in terminal, and such as, the first application program can be WinDriver Ghost software.
S202, judges that whether the network connection state of terminal is normal.
Particularly, after user opens the first application program, can start detection thread in the terminal, wherein, detect thread and send message according to predetermined period to preset service device; If message all sends failure in Preset Time, then judge that the network of terminal connects abnormal.
Such as, after user opens WinDriver Ghost software, by the network connection state of the automatic sense terminals of asynchronous thread.This network detects thread can the network connection state of sense terminals always.This thread can send message to preferred server at interval of 2 minutes, if message is all failed, was then judged as that the network of terminal connects abnormal.If message is all successful, be then judged as that the network of terminal connects normal.
S203, if it is abnormal to detect that the network of terminal connects, then whether the running status of the NIC driver of sense terminals is normal further.
Connect extremely at the network of sense terminals, can the installation situation of NIC driver further in sense terminals, and whether install normally according to the NIC driver in the installation situation determination terminal of the NIC driver in terminal, and obtain the service data of NIC driver, and obtained service data is analyzed, whether the NIC driver according to analysis result determination terminal is run normal.If determine that network determination installation of network card diver is normal, and the service data of NIC driver is normal, then determine NIC driver normal operation.
S204, if NIC driver normal operation detected, then determines to cause network in terminal to connect abnormal network environment abnormal factors, and calls network environment fix tool and repair network environment abnormal factors.
In one embodiment of the invention, if the network environment abnormal factors abnormal factors determining to cause network in terminal to connect exception is Power Management Setup parameter, then calls network environment fix tool and " permission computer cuts out this equipment to save power supply " option is set to " not allowing ".
In one embodiment of the invention, if the network environment abnormal factors determining to cause network in terminal to connect exception is WINSOCK agreement parameters, calls the WINSOCK agreement of network environment fix tool to terminal and reset.
S205, if NIC driver operation exception detected, then obtains hardware information and the software information of terminal, and according to hardware information and the link of software information generated query, and generate Quick Response Code according to query link, and two-dimensional code display in the terminal.
S206, downloaded NIC driver to download NIC driver from server, and is uploaded to terminal, to carry out the installation of NIC driver by mobile scanning terminal Quick Response Code by user.
Successfully NIC driver is installed in the terminal, and after NIC driver normal operation, jumps to step S201, whether normal with the current network connection status of further sense terminals.
The method of the network restoration of the embodiment of the present invention, when the running status of NIC driver terminal being detected is abnormal, for user provides the Quick Response Code downloading NIC driver, the mode that user sweeps Quick Response Code by mobile phone downloads NIC driver, facilitate user when terminal network exception, download the NIC driver of mating with terminal.In addition at NIC driver normal operation, and the network of terminal is when connecting abnormal, after determining to cause the network environment abnormal factors of Network Abnormal, the network environment abnormal factors of open network environment modifiers to correspondence is repaired, timely help user has repaired the network of terminal, improves user experience.
In order to realize above-described embodiment, the present invention also proposes a kind of device of network restoration.
Fig. 3 is the structural representation of the device of network restoration according to an embodiment of the invention.
As shown in Figure 3, this device comprises first detection module 100, second detection module 200 and the first processing module 300, wherein:
First detection module 100 for when the first application program is run in the terminal, the network connection state of sense terminals; If the second detection module 200 is abnormal for detecting that the network of terminal connects, then the running status of the NIC driver of further sense terminals; If the first processing module 300 is for NIC driver normal operation being detected, then determine to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.
First detection module 100, specifically for start detection thread in the terminal, wherein, detects thread and sends message according to predetermined period to preset service device; If message all sends failure in Preset Time, then judge that the network of terminal connects abnormal.
Such as, after user opens WinDriver Ghost software, first detection module 100 is by the network connection state of the automatic sense terminals of asynchronous thread.This network detects thread can the network connection state of sense terminals always.This thread can send message to preferred server at interval of 2 minutes, if message is all failed, was then judged as that the network of terminal connects abnormal.If message is all successful, be then judged as that the network of terminal connects normal.
In addition, conveniently user is by the NIC driver of the mode download terminal of Quick Response Code, as shown in Figure 4, said apparatus can also comprise the second processing module 400, if this second processing module 400 is for NIC driver operation exception being detected, then obtain hardware information and the software information of terminal, and according to hardware information and the link of software information generated query, and generate Quick Response Code according to query link, and two-dimensional code display in the terminal.
Particularly, second processing module 400 can the installation situation of NIC driver in sense terminals, and whether install normally according to the NIC driver in the installation situation determination terminal of the NIC driver in terminal, and obtain the service data of NIC driver, and obtained service data is analyzed, whether the NIC driver according to analysis result determination terminal is run normal.If determine that network determination installation of network card diver is normal, and the service data of NIC driver is normal, then determine NIC driver normal operation.
In addition, above-mentioned Quick Response Code when the network connection state of terminal is normal, can also be generated by server in advance, and preserves in the terminal.As shown in Figure 4, said apparatus can also comprise the 3rd processing module 500,3rd processing module 500 is for when terminal installs the first application program, if the current network of terminal connects normal, then obtain hardware information and the software information of terminal, and the hardware information of terminal and software information are sent to server, to make server obtain the link information of the NIC driver of mating with terminal according to the hardware information of terminal and software information, and generate Quick Response Code according to link information; And receive and preserve the Quick Response Code that server returns.
In one embodiment of the invention, if determining to cause network in terminal to connect abnormal network environment abnormal factors abnormal factors is Power Management Setup parameter, then the first processing module 300 can call network environment fix tool will " allow computer to close this equipment to save power supply " option is set to " not allowing ".
In one embodiment of the invention, if determining to cause network in terminal to connect abnormal network environment abnormal factors is WINSOCK agreement parameters, then the first processing module can be called the WINSOCK agreement of network environment fix tool to terminal and resets.
It should be noted that, the explanation of the embodiment of the aforementioned control method to browser page illustrates and the control device being also applicable to the browser page of this embodiment repeats no more herein.
The device of the network restoration of the embodiment of the present invention, when the first application program is run in the terminal, first detection module can the network connection state of sense terminals, and when detecting that the network of terminal connects abnormal, the running status of the NIC driver of the further sense terminals of the second detection module; And when NIC driver normal operation being detected, the first processing module determines to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.Thus, at NIC driver normal operation, and when the network of terminal connects abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, repaired the network of terminal in time, improve Consumer's Experience.
In order to realize above-described embodiment, the present invention also proposes a kind of terminal, and this terminal comprises housing, processor, memory, circuit board and power circuit, wherein, foregoing circuit plate is placed in the interior volume that above-mentioned housing surrounds, and above-mentioned processor and above-mentioned memory are arranged on foregoing circuit plate; Above-mentioned power circuit, for powering for each circuit of above-mentioned terminal or device; Above-mentioned memory is used for stores executable programs code; Above-mentioned processor runs the program corresponding with above-mentioned executable program code by reading the executable program code stored in above-mentioned memory, for execution following steps:
S101 ', when the first application program is run in the terminal, the network connection state of sense terminals.
Wherein, the first application program is the client software can repaired the network in terminal, and such as, the first application program can be WinDriver Ghost software.
Particularly, after user opens the first application program, can start detection thread in the terminal, wherein, detect thread and send message according to predetermined period to preset service device; If message all sends failure in Preset Time, then judge that the network of terminal connects abnormal.
Such as, after user opens WinDriver Ghost software, by the network connection state of the automatic sense terminals of asynchronous thread.This network detects thread can the network connection state of sense terminals always.This thread can send message to preferred server at interval of 2 minutes, if message is all failed, was then judged as that the network of terminal connects abnormal.If message is all successful, be then judged as that the network of terminal connects normal.
S102 ', if it is abnormal to detect that the network of terminal connects, then the running status of the NIC driver of further sense terminals.
Connect extremely at the network of sense terminals, can the installation situation of NIC driver further in sense terminals, and whether install normally according to the NIC driver in the installation situation determination terminal of the NIC driver in terminal, and obtain the service data of NIC driver, and obtained service data is analyzed, whether the NIC driver according to analysis result determination terminal is run normal.If determine that network determination installation of network card diver is normal, and the service data of NIC driver is normal, then determine NIC driver normal operation.
Such as, connect extremely at the network of sense terminals, by the API (ApplicationProgrammingInterface of terminal operating system, application programming interface) and registration table traversal equipment manager in the conditional code of all devices under network adapter, can analyze in obtained conditional code and whether there is error status code, and whether driving INF file corresponding to checking network card driver be abnormal, if there is no error status code, and drive INF file normal, then can determine the NIC driver normal operation of terminal.
S103 ', if NIC driver normal operation detected, then determines to cause network in terminal to connect abnormal network environment abnormal factors, and calls network environment fix tool and repair network environment abnormal factors.
In one embodiment of the invention, if the network environment abnormal factors abnormal factors determining to cause network in terminal to connect exception is Power Management Setup parameter, then calls network environment fix tool and " permission computer cuts out this equipment to save power supply " option is set to " not allowing ".
In one embodiment of the invention, if the network environment abnormal factors determining to cause network in terminal to connect exception is WINSOCK agreement parameters, calls the WINSOCK agreement of network environment fix tool to terminal and reset.
In addition, in one embodiment of the invention, if NIC driver operation exception detected, then obtain hardware information and the software information of terminal, and according to hardware information and the link of software information generated query, and generate Quick Response Code according to query link, and two-dimensional code display in the terminal.
In addition, when first application program is installed in the terminal, if the current network of terminal connects normal, then can also obtain hardware information and the software information of terminal, and the hardware information of terminal and software information are sent to server, to make server obtain the link information of the NIC driver of mating with terminal according to the hardware information of terminal and software information, and generate Quick Response Code according to link information; And receive and preserve the Quick Response Code that server returns.
Particularly, after showing the Quick Response Code downloading NIC driver in the terminal, user downloads NIC driver by mobile terminal such as smart mobile phone from server, then downloaded NIC driver can be uploaded to terminal, to carry out the installation of NIC driver.
The terminal of the embodiment of the present invention, can the network connection state of sense terminals, and when detecting that the network of terminal connects abnormal, the running status of the NIC driver of further sense terminals; And when NIC driver normal operation being detected, determine to cause network in terminal to connect abnormal network environment abnormal factors, and call network environment fix tool network environment abnormal factors is repaired.Thus, at NIC driver normal operation, and when the network of terminal connects abnormal, repaired by the network environment abnormal factors of network environment modifiers to terminal, repaired the network of terminal in time, improve Consumer's Experience.
In addition, term " first ", " second " only for describing object, and can not be interpreted as instruction or hint relative importance or imply the quantity indicating indicated technical characteristic.Thus, be limited with " first ", the feature of " second " can express or impliedly comprise at least one this feature.In describing the invention, the implication of " multiple " is at least two, such as two, three etc., unless otherwise expressly limited specifically.
Describe and can be understood in flow chart or in this any process otherwise described or method, represent and comprise one or more for realizing the module of the code of the executable instruction of the step of specific logical function or process, fragment or part, and the scope of the preferred embodiment of the present invention comprises other realization, wherein can not according to order that is shown or that discuss, comprise according to involved function by the mode while of basic or by contrary order, carry out n-back test, this should understand by embodiments of the invention person of ordinary skill in the field.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
Those skilled in the art are appreciated that realizing all or part of step that above-described embodiment method carries is that the hardware that can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, this program perform time, step comprising embodiment of the method one or a combination set of.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, also can be that the independent physics of unit exists, also can be integrated in a module by two or more unit.Above-mentioned integrated module both can adopt the form of hardware to realize, and the form of software function module also can be adopted to realize.If described integrated module using the form of software function module realize and as independently production marketing or use time, also can be stored in a computer read/write memory medium.
The above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.Although illustrate and describe embodiments of the invention above, be understandable that, above-described embodiment is exemplary, can not be interpreted as limitation of the present invention, and those of ordinary skill in the art can change above-described embodiment within the scope of the invention, revises, replace and modification.

Claims (10)

1. a method for network restoration, is characterized in that, is applied to the first application program, comprises:
When described first application program is run in the terminal, detect the network connection state of described terminal;
If it is abnormal to detect that the network of described terminal connects, then detect the running status of the NIC driver of described terminal further;
If described NIC driver normal operation detected, then determine to cause network in described terminal to connect abnormal network environment abnormal factors, and call network environment fix tool described network environment abnormal factors is repaired.
2. the method for network restoration as claimed in claim 1, is characterized in that, also comprise:
If described NIC driver operation exception detected, then obtain hardware information and the software information of described terminal, and according to described hardware information and the link of software information generated query;
Quick Response Code is generated according to described query link;
Described Quick Response Code is shown in described terminal.
3. the method for network restoration as claimed in claim 2, is characterized in that, before showing described Quick Response Code, also comprise in described terminal:
When described terminal installs the first application program, if the current network of described terminal connects normal, then obtain hardware information and the software information of described terminal, and the hardware information of described terminal and software information are sent to server, to make described server obtain the link information of the NIC driver of mating with described terminal according to the hardware information of described terminal and software information, and generate described Quick Response Code according to described link information; And
Receive and preserve the described Quick Response Code that described server returns.
4. the method for network restoration as claimed in claim 1, it is characterized in that, described network environment abnormal factors is Power Management Setup parameter, described in call network environment fix tool and described network environment abnormal factors is repaired specifically comprise:
Call described network environment fix tool " permission computer cuts out this equipment to save power supply " option is set to " not allowing ".
5. the method for network restoration as claimed in claim 1, it is characterized in that, described network environment abnormal factors is WINSOCK agreement parameters, described in call the network environment of network environment fix tool to described terminal and repair and specifically comprise:
Reset described WINSOCK agreement.
6. the method for network restoration as claimed in claim 1, it is characterized in that, the network connection state of the described terminal of described detection specifically comprises:
Start detection thread in described terminal, wherein, described detection thread sends message according to predetermined period to preset service device;
If described message all sends failure in Preset Time, then judge that the network of described terminal connects abnormal.
7. a device for network restoration, is characterized in that, is applied to the first application program, and described device comprises:
First detection module, for when described first application program is run in the terminal, detects the network connection state of described terminal;
Second detection module, if the network for described terminal being detected connects abnormal, then detects the running status of the NIC driver of described terminal further;
First processing module, if for described NIC driver normal operation being detected, then determines to cause network in described terminal to connect abnormal network environment abnormal factors, and calls network environment fix tool and repair described network environment abnormal factors.
8. the device of network restoration as claimed in claim 7, is characterized in that, also comprise:
Second processing module, if for described NIC driver operation exception being detected, then obtain hardware information and the software information of described terminal, and according to described hardware information and the link of software information generated query, and generate Quick Response Code according to described query link, and show described Quick Response Code in described terminal.
9. the device of network restoration as claimed in claim 8, is characterized in that, also comprise:
3rd processing module, for when described terminal installs the first application program, if the current network of described terminal connects normal, then obtain hardware information and the software information of described terminal, and the hardware information of described terminal and software information are sent to server, to make described server obtain the link information of the NIC driver of mating with described terminal according to the hardware information of described terminal and software information, and generate described Quick Response Code according to described link information; And receive and preserve the described Quick Response Code that described server returns.
10. a terminal, is characterized in that, comprising: housing, processor, memory, circuit board and power circuit, and wherein, described circuit board is placed in the interior volume that described housing surrounds, and described processor and described memory are arranged on described circuit board; Described power circuit, for powering for each circuit of described terminal or device; Described memory is used for stores executable programs code; Described processor runs the program corresponding with described executable program code by reading the executable program code stored in described memory, for when the first application program is run in described terminal, controls described first application:
When described first application program is run in the terminal, detect the network connection state of described terminal;
If it is abnormal to detect that the network of described terminal connects, then detect the running status of the NIC driver of described terminal further;
If described NIC driver normal operation detected, then determine to cause network in described terminal to connect abnormal network environment abnormal factors, and call network environment fix tool described network environment abnormal factors is repaired.
CN201510558080.7A 2015-09-02 2015-09-02 Network repairing method, device and terminal Pending CN105262610A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510558080.7A CN105262610A (en) 2015-09-02 2015-09-02 Network repairing method, device and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510558080.7A CN105262610A (en) 2015-09-02 2015-09-02 Network repairing method, device and terminal

Publications (1)

Publication Number Publication Date
CN105262610A true CN105262610A (en) 2016-01-20

Family

ID=55102129

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510558080.7A Pending CN105262610A (en) 2015-09-02 2015-09-02 Network repairing method, device and terminal

Country Status (1)

Country Link
CN (1) CN105262610A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169965A (en) * 2016-09-28 2016-11-30 北京金山安全软件有限公司 Network repairing method, device and terminal
CN108199880A (en) * 2017-12-29 2018-06-22 珠海市君天电子科技有限公司 A kind of fault repairing method and device
CN108985397A (en) * 2018-06-15 2018-12-11 北京信安世纪科技股份有限公司 A kind of method, apparatus and computer storage medium for inquiring Bond information
CN109547295A (en) * 2018-12-27 2019-03-29 湖南宸睿通信科技有限公司 A kind of online reparation platform and its restorative procedure of communication network
CN111263386A (en) * 2020-02-10 2020-06-09 北京小米移动软件有限公司 Method, device and medium for processing terminal internet access abnormity
CN111988333A (en) * 2020-08-31 2020-11-24 深信服科技股份有限公司 Method, device and medium for detecting working abnormity of proxy software
CN113676370A (en) * 2021-07-22 2021-11-19 浪潮商用机器有限公司 System network performance monitoring method, device, system and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917454A (en) * 2005-08-17 2007-02-21 华为技术有限公司 System and method for detecting faults in network
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN103001801A (en) * 2012-11-30 2013-03-27 北京奇虎科技有限公司 Network repairing method and device
CN103023699A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Network repair method and system
CN103152218A (en) * 2013-01-30 2013-06-12 北京奇虎科技有限公司 Method and device for inspecting and restoring computer network state

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1917454A (en) * 2005-08-17 2007-02-21 华为技术有限公司 System and method for detecting faults in network
CN102880488A (en) * 2012-09-12 2013-01-16 北京奇虎科技有限公司 Method, equipment and system for restoring drive program
CN103001801A (en) * 2012-11-30 2013-03-27 北京奇虎科技有限公司 Network repairing method and device
CN103023699A (en) * 2012-11-30 2013-04-03 北京奇虎科技有限公司 Network repair method and system
CN103152218A (en) * 2013-01-30 2013-06-12 北京奇虎科技有限公司 Method and device for inspecting and restoring computer network state

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106169965A (en) * 2016-09-28 2016-11-30 北京金山安全软件有限公司 Network repairing method, device and terminal
WO2018059062A1 (en) * 2016-09-28 2018-04-05 北京金山安全软件有限公司 Network repairing method and apparatus, and terminal
CN108199880A (en) * 2017-12-29 2018-06-22 珠海市君天电子科技有限公司 A kind of fault repairing method and device
CN108199880B (en) * 2017-12-29 2021-08-27 珠海豹趣科技有限公司 Fault repairing method and device
CN108985397A (en) * 2018-06-15 2018-12-11 北京信安世纪科技股份有限公司 A kind of method, apparatus and computer storage medium for inquiring Bond information
CN108985397B (en) * 2018-06-15 2022-02-18 北京信安世纪科技股份有限公司 Method and device for inquiring Bond information and computer storage medium
CN109547295A (en) * 2018-12-27 2019-03-29 湖南宸睿通信科技有限公司 A kind of online reparation platform and its restorative procedure of communication network
CN111263386A (en) * 2020-02-10 2020-06-09 北京小米移动软件有限公司 Method, device and medium for processing terminal internet access abnormity
CN111988333A (en) * 2020-08-31 2020-11-24 深信服科技股份有限公司 Method, device and medium for detecting working abnormity of proxy software
CN111988333B (en) * 2020-08-31 2023-11-07 深信服科技股份有限公司 Proxy software work abnormality detection method, device and medium
CN113676370A (en) * 2021-07-22 2021-11-19 浪潮商用机器有限公司 System network performance monitoring method, device, system and storage medium

Similar Documents

Publication Publication Date Title
CN105262610A (en) Network repairing method, device and terminal
CN112291621B (en) System upgrading automation test method, device and test equipment
CN107241229B (en) Service monitoring method and device based on interface testing tool
CN105335277A (en) Fault information processing method and device as well as terminal
CN105468384A (en) Vehicle-mounted controller programming system and method, server and programming terminal
CN104683154A (en) Exception handling method, terminal equipment and server
CN108170441A (en) Drive programe installation method, device, driver installation client and server
CN110874311A (en) Database detection method and device, computer equipment and storage medium
CN112543478B (en) WiFi module automatic test method and device, computer equipment and storage medium
CN108540344B (en) Router upgrading test method and system
CN110198222B (en) Plug-and-play test method and test master station for power distribution automation terminal
CN112817883A (en) Method, device and system for adapting interface platform and computer readable storage medium
CN108870641B (en) Drive fault detection method and device and air conditioner
CN110597562A (en) Automatic batch processing method based on script and electronic equipment
CN105718324A (en) Simulation testing method, apparatus and device for abnormal power-down of mobile terminal in upgrade process
JP4408865B2 (en) Data writing system for portable terminal having power supply function, power supply control program, and data writing method for portable terminal
CN114168108A (en) Code merging method and device, electronic equipment and computer readable storage medium
CN112799957A (en) User behavior based fault handling method, system, device and medium
CN106909489B (en) Method and device for testing EventLog state
CN108563441B (en) Power monitoring platform generation method and device
CN104123223A (en) Software repair method and device
CN112887111B (en) Equipment fault detection method and device and computer readable storage medium
CN117076255A (en) Network card temperature acquisition method, device, equipment and storage medium
CN105354487A (en) Application monitoring processing method and device and terminal equipment
CN115229799A (en) Robot position determining method, determining device and robot 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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160120