CN102662786A - Exception recovery method and exception recovery device for device with network interface card and memory device - Google Patents
Exception recovery method and exception recovery device for device with network interface card and memory device Download PDFInfo
- Publication number
- CN102662786A CN102662786A CN201210110952XA CN201210110952A CN102662786A CN 102662786 A CN102662786 A CN 102662786A CN 201210110952X A CN201210110952X A CN 201210110952XA CN 201210110952 A CN201210110952 A CN 201210110952A CN 102662786 A CN102662786 A CN 102662786A
- Authority
- CN
- China
- Prior art keywords
- interface card
- network interface
- card apparatus
- equipment
- nic
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention relates to an exception recovery method and an exception recovery device for a device with a network interface card and a memory device. The method comprises the following steps: acquiring identification information of a network interface card device in the accessed device; acquiring state information of the network interface card device according to the identification information of the network interface card device; judging whether the network interface card device is exceptional or not according to the state information of the network interface card device; and unloading a driving program of the network interface card device and re-loading the driving program of the network interface card device if the network interface card device is exceptional. According to the method disclosed by the invention, a technical means for re-unloading the NIC (network interface card) device is adopted, the technical problem that the NIC device can become exceptional when a wireless Internet access data card is pulled out in a forced manner is overcome, and the technical effect of recovering the NIC device to the normal state without re-starting a PC (personal computer) is achieved.
Description
Technical field
The invention relates to field of wireless communication, especially about the NIC technical field, is abnormal restoring method and the device that has the device of NIC and memory device about a kind of specifically.
Background technology
Along with the development of Internet technology, traditional wiring logging-on function mode can't satisfy the demand that the user surfs the Net whenever and wherever possible, and the user begins through the wireless mode accesses network.Through the wireless Internet access data card accesses network is more common wireless Internet access mode; In use; Wireless Internet access data card can also simulate other equipment kenels through USB (USB:Universal Serial Bus); Like modem, COM port, NIC (NIC:Network Interface Card), CDROM etc., thereby make a wireless Internet access data card have multiple function.A plurality of equipment that wireless Internet access data card simulates show as an equipment complex usually on PC.
In the process of embodiment of the present invention, the inventor finds to exist at least in the prior art following problem.To have wireless Internet access data card (hereinafter to be referred as data card) now inserts among the PC; Data card can shine upon all of the port that to comprise NIC and storage class equipment; By force data card is not extracted from PC if do not carry out safe sweep equipment operation; And under the prerequisite that does not restart PC, once more data card is inserted among the PC, NIC equipment can occur unusual and can't use, and is embodied in equipment manager, to occur yellow exclamation mark on the NIC equipment.Plugging data card this moment more repeatedly also can't make NIC equipment recover normal.
Prior art has been announced method and system wrong in a kind of process computer system; Through restarting systems faulty hardware is recovered from ERST; Yet can expend a lot of times from new start-up system, cause very big inconvenience, can not satisfy user's needs to the user.
Summary of the invention
The present invention provides a kind of abnormal restoring method with device of NIC and memory device; Make the device that will have NIC and memory device by force from PC, extract; Insert under the situation that PC is not restarted under the situation of data card, NIC equipment can not occur unusually again.
The present invention provides a kind of abnormal restoring method with device of NIC and memory device, and described method comprises: obtain the NIC equipment identification information in the device of access; Obtain the status information of network interface card apparatus according to described NIC equipment identification information; Judge according to the status information of described network interface card apparatus whether said network interface card apparatus is unusual; If said NIC unit exception then unloads the driver of described network interface card apparatus, and reload the driver of described network interface card apparatus.
The present invention also provides a kind of abnormal restoring device with device of NIC and memory device; Described abnormal restoring device comprises: identification information obtaining unit is used for obtaining the NIC equipment identification information of the device with NIC and memory device of access; The state information acquisition unit is used for obtaining according to described NIC equipment identification information the status information of network interface card apparatus; Abnormal deciding means is used for judging according to the status information of said network interface card apparatus whether said network interface card apparatus is unusual; The driver unloading unit when being used for judged result at said unusual unloading judging unit and being said NIC unit exception, unloads the driver of described network interface card apparatus; The driver loading unit is used for after said driver unloading unit unloads the driver of said network interface card apparatus, reloading the driver of described network interface card apparatus.
The beneficial effect of the embodiment of the invention is; Because adopted the technological means that unloads NIC equipment again; Unusual technical matters can occur so overcome the NIC equipment that causes when wireless Internet access data card is extracted by force, and then reach and to restart PC and can make NIC equipment recover normal technique effect.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, does not constitute qualification of the present invention.In the accompanying drawings:
Fig. 1 is a kind of device synoptic diagram that uses data card to connect network that the embodiment of the invention provides;
Fig. 2 is that a kind of data card that the embodiment of the invention provides unloads the recovery device module map unusually;
Fig. 3 is that a kind of data card that the embodiment of the invention provides unloads the restoration methods process flow diagram unusually;
Fig. 4 is that a kind of data card based on Windows operating system that the embodiment of the invention provides unloads the restoration methods process flow diagram unusually;
Fig. 5 is that a kind of data card that the embodiment of the invention provides unloads the recovery device module map unusually.
Embodiment
For making the object of the invention, technical scheme and advantage clearer,, the present invention is explained further details below in conjunction with embodiment and accompanying drawing.At this, exemplary embodiment of the present invention and explanation thereof are used to explain the present invention, but not as to qualification of the present invention.
The embodiment of the invention provides a kind of data card with NIC and memory device to unload restoration methods and device unusually, below in conjunction with accompanying drawing the present invention is elaborated.
Fig. 1 is a kind of device synoptic diagram that uses data card to connect network that the embodiment of the invention provides; As shown in Figure 1; Notebook computer 100 comprises: fuselage 101, display screen 103, keyboard 105, data card slot 107 and wireless Internet access data card 109; In use, the user inserts wireless Internet access data card 109 in the data card slot 107 of notebook computer 100, can pass through wireless Internet access data card 109 accesses network; Wireless Internet access data card 109 is a kind of of data card, wherein can comprise memory device and network interface card apparatus.
Need to prove; More than be that example describes with notebook computer 100; The main frame that is used with data card is not limited to notebook computer, is convenient explanation, and the main frame that is used with data card hereinafter also is that example describes with the notebook computer; But the reader should understand that this main frame is not defined as notebook computer.
Fig. 2 is that a kind of data card with NIC and memory device that the embodiment of the invention provides unloads the recovery device module map unusually, and as shown in Figure 2, data card unloads recovery device 200 unusually and comprises:
Identification information obtaining unit 201 is used for obtaining the NIC equipment identification information of the data card of access;
State information acquisition unit 203 is used for obtaining according to described NIC equipment identification information the status information of network interface card apparatus;
Data card shown in Figure 2 unloads recovery device unusually and can be applied in the notebook computer shown in Figure 1 100; Notebook computer 100 adopts Windows2000 or Windows XP operating system; When wireless Internet access data card 109 is forced when extracting; Can't normally remove because the handle of storage class equipment is occupied, and then caused NIC (NIC card, Network Interface Card) equipment to remove failure.And the basic reason that this problem occurs is because the storage class device driver of operating system and the defective of USB layer driver.Data card provided by the present invention unloads recovery device unusually because adopted the technological means that unloads NIC equipment again; Unusual technical matters can occur so overcome the NIC equipment that causes when wireless Internet access data card is extracted by force, and then reach and to restart PC and can make NIC equipment recover normal technique effect.
Fig. 3 is that a kind of data card with NIC and memory device that the embodiment of the invention provides unloads the restoration methods process flow diagram unusually, and as shown in Figure 3, data card unloads restoration methods unusually and comprises:
Fig. 4 is that a kind of data card based on Windows operating system that the embodiment of the invention provides unloads the restoration methods process flow diagram unusually, and as shown in Figure 4, data card unloads restoration methods unusually and comprises:
Fig. 5 is that a kind of data card with NIC and memory device that the embodiment of the invention provides unloads the recovery device module map unusually, and as shown in Figure 5, data card unloads recovery device 500 unusually and comprises:
Identification information obtaining unit 501; Be used for obtaining the NIC equipment identification information of the data card of access; Described identification information obtaining unit 501 comprises the name information acquisition module, is used for obtaining the name information of network interface card apparatus of the data card of access;
State information acquisition unit 503 is used for obtaining according to described NIC device name information the status information of network interface card apparatus;
Abnormal deciding means 505 is used for judging according to described status information whether the network interface card apparatus is unusual, the output judging result signal;
Driver unloading unit 507 unloads the driver of described network interface card apparatus when to be used for according to described judging result signal be unusual;
Driver loading unit 509 is used to load the driver of described network interface card apparatus, and said driver loading unit 509 comprises the node acquisition module, is used to obtain the nodal information of network interface card apparatus.
In one embodiment of this invention, wireless Internet access data card is subsidiary to have connection manager, connection manager to comprise wireless Internet access data card abnormal restoring device provided by the invention, in case before the user pinpoints the problems, just can repair automatically unusually appears in NIC.
In one embodiment of this invention, the wireless Internet access data card abnormal restoring method begins to carry out when PC starts shooting, in case that NIC equipment occurs is unusual, the wireless Internet access data card abnormal restoring method just can repair rapidly that this is unusual.
A kind of wireless Internet access data card abnormal restoring method provided by the invention and device thereof; Solve wireless Internet access data card and forced to extract the problem that back NIC equipment appearance can't be used unusually; Avoid the user to restart the flow process of PC, saved the time, greatly convenient for users to use.
Through the description of above embodiment, those skilled in the art can be well understood to some embodiments of the present invention and can realize by the mode that software adds essential general hardware platform, can certainly realize through hardware.Based on such understanding, technical scheme of the present invention can be come out with the embodied of software product, and this software product is stored in the storage medium, comprises that some instructions are used so that a computing equipment is carried out the described method of each embodiment of the present invention.
Above-described embodiment; The object of the invention, technical scheme and beneficial effect have been carried out further explain, and institute it should be understood that the above is merely embodiment of the present invention; And be not used in qualification protection scope of the present invention; All within spirit of the present invention and principle, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (9)
1. an abnormal restoring method is characterized in that, comprising:
Whether requester network interface card equipment exists;
When said interface card equipment exists, detect the state of said interface card equipment;
When detecting said NIC unit exception, unload said network interface card apparatus, enumerate said network interface card apparatus again.
2. abnormal restoring method according to claim 1; It is characterized in that; Whether said requester network interface card equipment exists comprises: through the title and the Windows API SetupDiGetClassDevs () of said network interface card apparatus to be checked; SetupDiEnumDeviceInfo (), SetupDiGetDeviceRegistryProperty () inquires about said network interface card apparatus.
3. abnormal restoring method according to claim 2; It is characterized in that the state of the said interface card equipment of said detection comprises: facility information and Windows API CM_Get_DevNode_Status () through the said network interface card apparatus that inquires confirm whether said network interface card apparatus is unusual.
4. according to claim 2 or 3 described abnormal restoring methods, it is characterized in that the said network interface card apparatus of said unloading comprises:
Facility information and the said network interface card apparatus of Windows API SetupDiCallClassInstaller () unloading through the said network interface card apparatus that inquires.
5. according to each described abnormal restoring method in the claim 2 to 4, it is characterized in that, saidly enumerate said network interface card apparatus again and comprise:
Through Windows API SetupDiGetClassDevs (); SetupDiEnumDeviceInfo () and SetupDiGetDeviceInstanceId () obtain the residing equipment complex node of said network interface card apparatus, and call Windows API CM_Locate_DevNode () and CM_Reenumerate_DevNode () enumerates said equipment complex node again.
6. a device is characterized in that, comprising:
Be used for the module whether requester network interface card equipment exists;
Be used for when said interface card equipment exists, detecting the module of the state of said interface card equipment;
Be used for unloading said network interface card apparatus, enumerate the module of said network interface card apparatus again when detecting said NIC unit exception.
7. device according to claim 6; It is characterized in that; Saidly be used for the module whether requester network interface card equipment exists; Comprise: be used for title and Windows API SetupDiGetClassDevs (), SetupDiEnumDeviceInfo (), the module of the said network interface card apparatus of SetupDiGetDeviceRegistryProperty () inquiry through said network interface card apparatus to be checked.
8. device according to claim 7 is characterized in that, said being used for detected the module of the state of said interface card equipment when said interface card equipment exists, comprising:
Be used for the module that facility information and Windows API CM_Get_DevNode_Status () through the said network interface card apparatus that inquires confirms that said network interface card apparatus is whether unusual.
9. according to claim 7 or 8 described devices, it is characterized in that said being used for unloads said network interface card apparatus when detecting said NIC unit exception, enumerates the module of said network interface card apparatus again, comprising:
Be used for module through the facility information and the said network interface card apparatus of Windows API SetupDiCallClassInstaller () unloading of the said network interface card apparatus that inquires; Be used for through Windows API SetupDiGetClassDevs (); SetupDiEnumDeviceInfo () and SetupDiGetDeviceInstanceId () obtain the residing equipment complex node of said network interface card apparatus, and call the module that Windows API CM_Locate_DevNode () and CM_Reenumerate_DevNode () enumerate said equipment complex node again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210110952XA CN102662786A (en) | 2008-11-20 | 2008-11-20 | Exception recovery method and exception recovery device for device with network interface card and memory device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210110952XA CN102662786A (en) | 2008-11-20 | 2008-11-20 | Exception recovery method and exception recovery device for device with network interface card and memory device |
Related Parent Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN200810176349.5A Division CN101430669A (en) | 2008-11-20 | 2008-11-20 | Exception recovery method and device for apparatus with network interface card and memory device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102662786A true CN102662786A (en) | 2012-09-12 |
Family
ID=46772285
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210110952XA Pending CN102662786A (en) | 2008-11-20 | 2008-11-20 | Exception recovery method and exception recovery device for device with network interface card and memory device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102662786A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020102940A1 (en) * | 2018-11-19 | 2020-05-28 | 深圳市欢太科技有限公司 | Abnormality processing method, terminal device and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1648870A (en) * | 2005-03-09 | 2005-08-03 | 北京软通科技有限责任公司 | Automatic detesting method for computer system hardware device |
CN101030178A (en) * | 2006-02-28 | 2007-09-05 | 环达电脑(上海)有限公司 | Method for fastly reading and writing memory card |
CN101075178A (en) * | 2007-06-25 | 2007-11-21 | 中兴通讯股份有限公司 | Method for automatically starting TD-SCDMA wireless data card |
-
2008
- 2008-11-20 CN CN201210110952XA patent/CN102662786A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1648870A (en) * | 2005-03-09 | 2005-08-03 | 北京软通科技有限责任公司 | Automatic detesting method for computer system hardware device |
CN101030178A (en) * | 2006-02-28 | 2007-09-05 | 环达电脑(上海)有限公司 | Method for fastly reading and writing memory card |
CN101075178A (en) * | 2007-06-25 | 2007-11-21 | 中兴通讯股份有限公司 | Method for automatically starting TD-SCDMA wireless data card |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020102940A1 (en) * | 2018-11-19 | 2020-05-28 | 深圳市欢太科技有限公司 | Abnormality processing method, terminal device and storage medium |
CN112805691A (en) * | 2018-11-19 | 2021-05-14 | 深圳市欢太科技有限公司 | Exception handling method, terminal device and storage medium |
US11903041B2 (en) | 2018-11-19 | 2024-02-13 | Shenzhen Heytap Technology Corp., Ltd. | Abnormality processing method, terminal device and storage medium |
CN112805691B (en) * | 2018-11-19 | 2024-11-12 | 深圳市欢太科技有限公司 | Exception handling method, terminal device and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101430669A (en) | Exception recovery method and device for apparatus with network interface card and memory device | |
CN100595778C (en) | Method and apparatus for identifying virus document | |
CN104834575B (en) | A kind of firmware restoration method and device | |
US7870548B2 (en) | Method for updating an image file | |
CN100517246C (en) | Computer remote control method and system | |
KR101712172B1 (en) | The preliminary diagnosis and analysis and recovery system of computer error, and method thereof | |
CN110162435B (en) | Method, system, terminal and storage medium for starting and testing PXE of server | |
KR20080096572A (en) | A method of selecting a data transfer protocol by an attached device, a media storage device and a computer readable medium | |
RU2436145C1 (en) | Information processing device and method of controlling said device | |
US20080270827A1 (en) | Recovering diagnostic data after out-of-band data capture failure | |
CN105607972B (en) | A kind of method and device repaired extremely | |
CN101593083A (en) | Device, computing machine and method that computer profile is protected and recovered | |
US20180322020A1 (en) | Backup and recovery of configuration files in management device | |
CN104010077A (en) | Information processing method and electronic equipment | |
CN102662786A (en) | Exception recovery method and exception recovery device for device with network interface card and memory device | |
CN111090537B (en) | Cluster starting method and device, electronic equipment and readable storage medium | |
CN108509252B (en) | Virtual machine starting device and method and host | |
CN101615149B (en) | Automated system recovery method | |
CN116048400A (en) | Hardware recovery method, device, equipment and readable storage medium | |
WO2012097761A1 (en) | Recovery method for communication exceptions between data card and host, and data card | |
CN115098342A (en) | System log collection method, system, terminal and storage medium | |
CN107357684A (en) | A kind of kernel failure method for restarting and device | |
CN103186403A (en) | Node replacement processing method and server system using the method | |
CN106528317A (en) | Controlling method and device of terminal and intelligent terminal | |
CN114003461A (en) | Server failure prediction method, system, terminal and storage medium |
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 |
Application publication date: 20120912 |