Summary of the invention
The application's technical matters to be solved provides a kind of detection method of exception hardware, is used to help to discern the pseudohardness spare or the bad hardware of subscriber equipment.
The application also provides a kind of pick-up unit of exception hardware, in order to guarantee application and the realization of said method in reality.
In order to address the above problem, the application discloses a kind of detection method of exception hardware, comprising:
Detect the hardware information of subscriber equipment, said hardware information comprises hardware status information and hardware identifier information;
To the unusual hardware of hardware status information, whether search exists the hardware identifier information of said hardware in the exception hardware database that presets;
If then in said exception hardware database, extract this hardware identifier information corresponding hardware abnormal information, and turn back to client;
Wherein, said hardware anomalies information is hardware personation or hardware damage.
Preferably, when said hardware anomalies information was hardware damage, said hardware identifier information was also to there being hardware handles information;
When said hardware anomalies information was the hardware personation, said hardware identifier information was also to there being the corresponding driving program information;
Said hardware identifier information comprises the chip identification and the said customer equipment identification of said hardware, and said chip identification comprises chip producer and chip model, and said device identification comprises manufacturer and equipment chain model;
Said hardware status information is meant said hardware status information non-0 unusually;
Said hardware anomalies information and hardware drive program information are the JSON form.
Preferably, preset the exception hardware database through following steps:
Preset hardware and repair the identification information database, the hardware identifier information during comprising each hardware damage or entering recovery pattern;
Receive the hardware identifier information of the exception hardware of feedback, and judge in the said hardware reparation identification information database, whether have the hardware identifier information of said feedback;
If it is hardware damage that this hardware identifier information corresponding hardware abnormal information then is set, if not, it is the hardware personation that this hardware identifier information corresponding hardware abnormal information then is set.
Preferably, said exception hardware database initialize is at server end, and the step of said detection user device hardware information is in client executing, and said method also comprises:
To the unusual hardware of hardware status information, user end to server sends the detection request of exception hardware.
Preferably, whether said in the exception hardware database that presets, the search exists before the hardware identifier information of said hardware, and said method also comprises:
Judge the hardware identifier information that whether has said hardware in the driving data storehouse of presetting, said driving data storehouse comprises hardware identifier information, and each hardware identifier information is to there being the relevant hardware drive information;
If not, then in the exception hardware database that presets, search for the hardware identifier information that whether has said hardware.
Preferably, if search is less than the hardware identifier information of said hardware, then in the exception hardware database that presets:
Whether search exists the hardware identifier information of said hardware in the driving data storehouse of presetting; Said driving data storehouse comprises hardware identifier information; And each hardware identifier information be to there being the relevant hardware drive information, and the hardware identifier information in the said driving data storehouse reads from the INF file of each hardware;
If in said driving data storehouse, searched the hardware identifier information of said hardware, then returned this hardware identifier information corresponding hardware drive information;
If all do not search said hardware identifier information in said driving data storehouse and the exception hardware database, then return the information of no Search Results.
Preferably, the step of the hardware information of said detection subscriber equipment is:
The application programming interfaces API of the Windows operating system of being installed through calling party equipment obtains the hardware information of subscriber equipment.
The application also provides a kind of pick-up unit of exception hardware, comprising:
The hardware information detection module is used to detect the hardware information of subscriber equipment, and said hardware information comprises hardware status information and hardware identifier information;
First search module is used for to the unusual hardware of hardware status information, and whether search exists the hardware identifier information of said hardware in the exception hardware database that presets, if then carry out hardware anomalies information and return module;
Hardware anomalies information is returned module, is used for extracting this hardware identifier information corresponding hardware abnormal information at said exception hardware database, and turns back to client;
Wherein, said hardware anomalies information is hardware personation or hardware damage.
Preferably, when said hardware anomalies information was hardware damage, said hardware identifier information was also to there being hardware handles information;
When said hardware anomalies information was the hardware personation, said hardware identifier information was also to there being the corresponding driving program information;
Said hardware identifier information comprises the chip identification and the said customer equipment identification of said hardware, and said chip identification comprises chip producer and chip model, and said device identification comprises manufacturer and equipment chain model;
Said hardware status information is meant said hardware status information non-0 unusually;
Said hardware anomalies information and hardware drive program information are the JSON form.
Preferably, through preset the exception hardware database with lower module:
The database initialize module is used to preset hardware and repairs the identification information database, the hardware identifier information during comprising each hardware damage or entering recovery pattern;
Second search module is used to receive the hardware identifier information of the exception hardware of feedback, and judges that said hardware repairs in the identification information database, whether has the hardware identifier information of said feedback, if, execute exception information setting module then;
Abnormal information is provided with module, and being used to be provided with this hardware identifier information corresponding hardware abnormal information is hardware damage, and if not, it is the hardware personation that this hardware identifier information corresponding hardware abnormal information then is set.
Preferably, said exception hardware database initialize is at server end, and said hardware information detection module is in client executing, and said device also comprises:
Detect request sending module, be used for to the unusual hardware of hardware status information, user end to server sends the detection request of exception hardware.
Preferably, said device also comprises:
The 3rd search module; Be used for judging whether the driving data storehouse of presetting exists the hardware identifier information of said hardware; Said driving data storehouse comprises hardware identifier information; And each hardware identifier information be to there being the relevant hardware drive information, and the hardware identifier information in the said driving data storehouse reads from the INF file of each hardware;
Drive information returns module, is used for then returning this hardware identifier information corresponding hardware drive information as if the hardware identifier information that has searched said hardware in said driving data storehouse;
Search Results returns module, is used for then returning the information of no Search Results if said driving data storehouse and exception hardware database all do not search said hardware identifier information.
Preferably, said hardware information detection module comprises:
Hardware information extracts submodule, and the application programming interfaces API of the Windows operating system that is used for being installed through calling party equipment obtains the hardware information of subscriber equipment.
Compared with prior art, the application has the following advantages:
The application is through setting up the exception hardware database; Comprising personation hardware and the hardware identifier information of damaging hardware; To the unusual hardware of hardware status information,, then return this hardware identifier information corresponding hardware abnormal information if there is the hardware identifier information of this hardware in the exception hardware database; Hardware anomalies information has indicated the abnormal cause of this hardware, can help to discern the pseudohardness spare or the bad hardware of subscriber equipment.
Secondly; In the prior art, what hardware detection was obtained is the chip identification information of hardware, the hardware identifier information that the application obtains through accessing operation system interface API; And the hardware identifier information that from the INF file, reads of driving data storehouse; Except chip identification information, also obtained the customer equipment identification of hardware, can judge more accurately hardware.
Once more; The application can also search for hardware identifier information in the driving data storehouse of presetting, if search, show that then this exception hardware is owing to there not being install driver to cause; Can return the corresponding driving program information, thereby more perfect solution is provided for exception hardware.
The application is placed on server end with exception hardware database and driving data storehouse; When needs detect exception hardware; The user end to server end initiate to detect request, than existing need be in each client storehouse that Updates Information, the application is when upgrading the exception hardware database; Directly upgrade and get final product at server end; Upgrade simple to operationly,, can from the hardware ID storehouse that collect on the backstage, read correct name and need not rely on client and remove to upgrade version at every turn and could discern some unexpected winners or up-to-date equipment.
In prior art, the drive information that returns is made the XML file, among the application, hardware anomalies information and hardware drive program information are the JSON form, and it is less to take resource, and the return speed of testing result is very fast.
Certainly, arbitrary product of enforcement the application not necessarily need reach above-described all advantages simultaneously.
Embodiment
For above-mentioned purpose, the feature and advantage that make the application can be more obviously understandable, the application is done further detailed explanation below in conjunction with accompanying drawing and embodiment.
With reference to figure 1, show the process flow diagram of detection method embodiment 1 of a kind of exception hardware of the application, specifically can may further comprise the steps:
The hardware information of step 101, detection subscriber equipment, said hardware information comprises hardware status information and hardware identifier information.
In concrete realization, said step 101 can comprise:
The application programming interfaces API of substep S 11, the Windows operating system of being installed through calling party equipment obtains the hardware information of subscriber equipment.
The application programming interfaces API of Windows operating system is the interface of application program and Windows traffic, comprises several thousand functions that can call, and calls the hardware information that corresponding function can obtain subscriber equipment.For example: judge the color of specifying the windows display object through GetSysColor; Obtain and the relevant information of current system power supply state through GetSystemPowerStatus; Understand the information relevant through GetKeyboardType with the keyboard that is using; Can obtain CPU information through GetSystemInfo.
Comprise hardware status information and hardware identifier information in the hardware information that obtains.In concrete realization, said hardware status information is meant that unusually said hardware status information does, that is to say failure code non-0.
The hardware identifier information that the application obtains from the API of system comprises the chip identification and the said customer equipment identification of said hardware.Said chip identification can comprise chip producer and chip model, and said device identification can comprise manufacturer and equipment chain model.For example, the hardware identifier information of certain video card is AMD6450IBMX61, and wherein AMD is the producer of this video card chip, and 6450 is the chip model, and AMD6450 is the chip identification of this video card altogether; IBM is the manufacturer of this video card, and X61 is this video card corresponding device serial model No., and IBMX61 is a customer equipment identification altogether, and than prior art, hardware identifier information has also comprised the customer equipment identification of hardware, can judge more accurately hardware.
In concrete realization, said hardware anomalies information and hardware drive program information can be the JSON form, and it is less to take resource, and the return speed of testing result is very fast.
In this application, said hardware can comprise video card, sound card, network interface card, bluetooth equipment, mainboard, camera, mobile phone, printer, scanner, all-in-one and digital equipment.
Step 102, to the unusual hardware of hardware status information, whether search exists the hardware identifier information of said hardware in the exception hardware database that presets, if then execution in step 103.
In a kind of preferred embodiment of the application, before said step 102, said method can also comprise:
Judge the hardware identifier information that whether has said hardware in the driving data storehouse of presetting, said driving data storehouse comprises hardware identifier information, and each hardware identifier information is to there being the relevant hardware drive information;
If not, then in the exception hardware database that presets, search for the hardware identifier information that whether has said hardware.
Among the application; Can also preset a driving data storehouse, because exception hardware possibly be the cause of installing drive not, therefore; Before can in the exception hardware database, searching for; The hardware identifier information of this hardware of search if exist, explains that then this hardware is owing to there not being install driver just can cause hardware status information unusual in the driving data storehouse.In concrete realization,, then can return this hardware identifier information corresponding hardware drive information if in said driving data storehouse, searched the hardware identifier information of said hardware.
Particularly; Hardware identifier information in the driving data storehouse can read from the INF file of each hardware; INF (Device INFormation File) is a kind of file layout of driver, and the information or the script that comprise hardware device in the INF file are operated with control hardware.Title after the clear hardware of INF document is installed, how hardware driving this be installed in the system, source file where, be installed in which file, how in registration table, add self relevant information or the like.The hardware identifier information of obtaining with the API of system is identical, and the hardware identifier information that from the INF file, reads has not only comprised the chip identification of hardware, has also comprised customer equipment identification.
In concrete realization, comprise a plurality of hardware identifier information in the driving data storehouse, and each hardware identifier information corresponding hardware drive information.According to hardware identifier information extraction relevant hardware drive information the time; Can find corresponding INF file according to hardware identifier information; Then according to the operating system of current user equipment; The operating system figure place, information such as operating system version and equipment brand are confirmed the relevant hardware drive information.
Preferably, when returning hardware drive program information, also can return relevant fault handling information, such as repairing the registration table key assignments, repair system disappearance file is repaired related service etc.
In the application's another kind of preferred embodiment, above-mentioned step of searching in the driving data storehouse can not carried out after said step 103 searches the relevant hardware identification information yet.If all do not search said hardware identifier information in said driving data storehouse and the exception hardware database, then can return the information of no Search Results.
Step 103, in said exception hardware database, extract this hardware identifier information corresponding hardware abnormal information, and turn back to client, wherein, said hardware anomalies information is hardware personation or hardware damage.
In concrete realization; Said exception hardware database can be preset at server end; Said step 101 can be in client executing; Therefore, to some unexpected winners or up-to-date equipment, can from the hardware ID storehouse that collect on the backstage, read correct name and need not rely on client and remove to upgrade version at every turn and could discern.
It is because of hardware damage that hardware anomalies information has indicated this hardware or personation hardware just becomes exception hardware, and for example pointing out the video card on user's current device is false video card, or points out the current video card of user to damage, or gets into the reparation pattern.
In a kind of preferred embodiment of the application, when said hardware anomalies information was hardware damage, said hardware identifier information can also be to there being hardware handles information.For example, when camera damaged, the relevant hardware process information can be " more alias ", when bluetooth is unusual, can point out the user to connect bluetooth again, when printer is unusual, can remind user's printer to be in maintenance mode now, and the suggestion user goes maintenance.When said hardware anomalies information is the hardware personation; Said hardware identifier information is also to there being the corresponding driving program information; For example judge that the corresponding abnormal information of certain hardware identifier information for personation hardware, then can return to the driver of a recommendation, and inform and to have certain risk.
In concrete realization, preset the exception hardware database through following substep:
Substep S21, preset hardware and repair the identification information database, comprising each hardware damage or the hardware identifier information when getting into the recovery pattern;
The hardware identifier information of the exception hardware of substep S22, reception feedback, and judge in the said hardware reparation identification information database whether have the hardware identifier information of said feedback, if then carry out substep S23;
Substep S23, this hardware identifier information corresponding hardware abnormal information is set is hardware damage, and if not, it is the hardware personation that this hardware identifier information corresponding hardware abnormal information then is set.
Device hardware is after damaging or getting into the recovery pattern, and hardware identifier information can change, and converts a preset hardware reparation sign to; If palm off two situation that have of hardware; Adopt the obsolete hardware identifier information of official; Perhaps use the old edition hardware identifier information before for a long time, therefore can not possess normal customer equipment identification, we just think false video card for this type of hardware ID.Therefore; Collect the hardware reparation sign of each hardware, set up hardware and repair the identification information database, when presetting the exception hardware database; Receive the hardware identifier information of the exception hardware of multiple support channels feedback; If this hardware identifier information is repaired in the identification information storehouse at hardware, the reparation sign that this hardware identifier information is hardware is described, and then this hardware identifier information corresponding hardware abnormal information can be set is hardware damage; Otherwise it is the hardware personation that this hardware identifier information corresponding hardware abnormal information then is set.
With reference to figure 2, show the process flow diagram of detection method embodiment 2 of a kind of exception hardware of the application, specifically can may further comprise the steps:
The hardware information of step 201, detection subscriber equipment, said hardware information comprises hardware status information and hardware identifier information;
In this application, said exception hardware database initialize is at server end, and said step 201 can be carried out at the client browser end; Therefore; Client browser can send the detection request of exception hardware to server, and as shown in Figure 2, said method can also comprise step 202.
Step 202, to the unusual hardware of hardware status information, user end to server sends the detection request of exception hardware.
After client detects hardware information,, initiate to detect request, after server receives request, exception hardware is detected to server end to the unusual hardware of hardware status information.When the exception hardware database is upgraded; Directly upgrade and get final product at server end; Upgrade simple to operationly,, can from the hardware ID storehouse that collect on the backstage, read correct name and need not rely on client and remove to upgrade version at every turn and could discern some unexpected winners or up-to-date equipment.
Step 203, to the unusual hardware of hardware status information, whether search exists the hardware identifier information of said hardware in the exception hardware database that presets, if then execution in step 204.
Step 204, in said exception hardware database, extract this hardware identifier information corresponding hardware abnormal information, and turn back to client, wherein, said hardware anomalies information is hardware personation or hardware damage.
In sum, the detection method of a kind of exception hardware of the application is through setting up the exception hardware database; Comprising personation hardware and the hardware identifier information of damaging hardware; To the unusual hardware of hardware status information,, then return this hardware identifier information corresponding hardware abnormal information if there is the hardware identifier information of this hardware in the exception hardware database; Hardware anomalies information has indicated the abnormal cause of this hardware, can help to discern the pseudohardness spare or the bad hardware of subscriber equipment.
Secondly; In the prior art, what hardware detection was obtained is the chip identification information of hardware, the hardware identifier information that the application obtains through accessing operation system interface API; And the hardware identifier information that from the INF file, reads of driving data storehouse; Except chip identification information, also obtained the customer equipment identification of hardware, can judge more accurately hardware.
Once more; The application can also search for hardware identifier information in the driving data storehouse of presetting, if search, show that then this exception hardware is owing to there not being install driver to cause; Can return the corresponding driving program information, thereby more perfect solution is provided for exception hardware.
The application is placed on server end with exception hardware database and driving data storehouse; When needs detect exception hardware; Initiate to detect request to server end, than existing need be in each client storehouse that Updates Information, the application is when database update; Directly upgrade and get final product at server end; Upgrade simple to operationly,, can from the hardware ID storehouse that collect on the backstage, read correct name and need not rely on client and remove to upgrade version at every turn and could discern some unexpected winners or up-to-date equipment.
In prior art, the drive information that returns is made the XML file, among the application, hardware anomalies information and hardware drive program information are the JSON form, and it is less to take resource, and the return speed of testing result is very fast.
Certainly, arbitrary product of enforcement the application not necessarily need reach above-described all advantages simultaneously.
For method embodiment, for simple description, so it all is expressed as a series of combination of actions; But those skilled in the art should know; The application does not receive the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in the instructions all belongs to preferred embodiment, and related action and module might not be that the application is necessary.
With reference to figure 3, show the structured flowchart of pick-up unit embodiment 1 of a kind of exception hardware of the application, specifically can comprise with lower module:
Hardware information detection module 301 is used to detect the hardware information of subscriber equipment, and said hardware information comprises hardware status information and hardware identifier information;
First search module 302 is used for to the unusual hardware of hardware status information, and whether search exists the hardware identifier information of said hardware in the exception hardware database that presets, if then carry out hardware anomalies information and return module;
Hardware anomalies information is returned module 303, is used for extracting this hardware identifier information corresponding hardware abnormal information at said exception hardware database, and turns back to client;
Wherein, said hardware anomalies information is hardware personation or hardware damage.
In a kind of preferred embodiment of the application, when said hardware anomalies information was hardware damage, said hardware identifier information can also be to there being hardware handles information;
When said hardware anomalies information was the hardware personation, said hardware identifier information can also be to there being the corresponding driving program information.
Among the application, can also preset a driving data storehouse, said device may further include the 3rd search module.
The 3rd search module; Be used for judging whether the driving data storehouse of presetting exists the hardware identifier information of said hardware, and said driving data storehouse comprises hardware identifier information, and each hardware identifier information is to there being the relevant hardware drive information; If not, then carry out first search module.
Said the 3rd search module can be carried out after first search module 302 does not obtain Search Results executing, or before first search module 302, carries out.
In concrete realization, after search hardware identifier information has been arrived in the driving data library searching, can also return this hardware identifier information corresponding hardware drive information, said device can further include drive information and returns module.
Drive information returns module, is used for then returning this hardware identifier information corresponding hardware drive information as if the hardware identifier information that has searched said hardware in said driving data storehouse.In concrete realization, in driving data storehouse and exception hardware database, all do not search hardware identifier information, then can return the information of no Search Results to client, shown device comprises that further Search Results returns module.
Search Results returns module, is used for then returning the information of no Search Results if said driving data storehouse and exception hardware database all do not search said hardware identifier information.
In a kind of preferred embodiment of the application, can be through preset the exception hardware database with lower module:
The database initialize module is used to preset hardware and repairs the identification information database, the hardware identifier information during comprising each hardware damage or entering recovery pattern;
Second search module is used to receive the hardware identifier information of the exception hardware of feedback, and judges that said hardware repairs in the identification information database, whether has the hardware identifier information of said feedback, if, execute exception information setting module then;
Abnormal information is provided with module, and being used to be provided with this hardware identifier information corresponding hardware abnormal information is hardware damage, and if not, it is the hardware personation that this hardware identifier information corresponding hardware abnormal information then is set.
Preferably, said exception hardware database can be preset at server end, and said hardware information detection module can be in client executing.
In a kind of preferred embodiment of the application, said hardware information detection module can comprise:
Hardware information extracts submodule, and the application programming interfaces API of the Windows operating system that is used for being installed through calling party equipment obtains the hardware information of subscriber equipment.
In a kind of preferred embodiment of the application; Said hardware identifier information can comprise the chip identification and the said customer equipment identification of said hardware; Said chip identification can comprise chip producer and chip model, and said device identification can comprise manufacturer and equipment chain model.
Preferably, said hardware status information is meant said hardware status information non-0 unusually.
In this application, said hardware anomalies information and hardware drive program information can be the JSON form.
With reference to figure 4, show the structured flowchart of pick-up unit embodiment 2 of a kind of exception hardware of the application, specifically can comprise with lower module:
Hardware information detection module 401 is used to detect the hardware information of subscriber equipment, and said hardware information comprises hardware status information and hardware identifier information;
Detect request sending module 402, be used for to the unusual hardware of hardware status information, user end to server sends the detection request of exception hardware.
In the present embodiment, can also preset the driving data storehouse,, explain that then this hardware is owing to there is not install driver to cause it to become exception hardware if in the driving data storehouse, searched said hardware identifier information to exception hardware.
First search module 403 is used for to the unusual hardware of hardware status information, and whether search exists the hardware identifier information of said hardware in the exception hardware database that presets, if then carry out hardware anomalies information and return module;
Hardware anomalies information is returned module 404, is used for extracting this hardware identifier information corresponding hardware abnormal information at said exception hardware database, and turns back to client, and wherein, said hardware anomalies information is hardware personation or hardware damage.
The pick-up unit of a kind of exception hardware of the application; Through setting up the exception hardware database, comprising personation hardware and the hardware identifier information of damaging hardware, to the unusual hardware of hardware status information; If there is the hardware identifier information of this hardware in the exception hardware database; Then return this hardware identifier information corresponding hardware abnormal information, hardware anomalies information has indicated the abnormal cause of this hardware, can help to discern the pseudohardness spare or the bad hardware of subscriber equipment.
Secondly, in the prior art, what hardware detection was obtained is the chip identification information of hardware, and the application has also obtained the customer equipment identification of hardware, can judge more accurately hardware.
Once more; The application can also search for hardware identifier information in the driving data storehouse of presetting, if search, show that then this exception hardware is owing to there not being install driver to cause; Can return the corresponding driving program information, thereby more perfect solution is provided for exception hardware.
The application is placed on server end with exception hardware database and driving data storehouse; When needs detect exception hardware; Initiate to detect request to server end, than existing need be in each client storehouse that Updates Information, the application is when database update; Directly upgrade and get final product at server end; Upgrade simple to operationly,, can from the hardware ID storehouse that collect on the backstage, read correct name and need not rely on client and remove to upgrade version at every turn and could discern some unexpected winners or up-to-date equipment.
In prior art, the drive information that returns is made the XML file, among the application, hardware anomalies information and hardware drive program information are the JSON form, and it is less to take resource, and the return speed of testing result is very fast.
Certainly, arbitrary product of enforcement the application not necessarily need reach above-described all advantages simultaneously.
Because said device embodiment is basically corresponding to aforementioned method embodiment illustrated in figures 1 and 2, so not detailed part in the description of present embodiment can just not given unnecessary details at this referring to the related description in the previous embodiment.
The application can be used in numerous general or special purpose computingasystem environment or the configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise DCE of above any system or equipment or the like.
The application can describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the application, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
In this article; Term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability; Thereby make and comprise that process, method, article or the equipment of a series of key elements not only comprise those key elements; But also comprise other key elements of clearly not listing, or also be included as this process, method, article or equipment intrinsic key element.Under the situation that do not having much more more restrictions, the key element that limits by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises said key element and also have other identical element.
More than to the detection method of a kind of exception hardware that the application provided; And; A kind of pick-up unit of exception hardware has carried out detailed introduction; Used concrete example among this paper the application's principle and embodiment are set forth, the explanation of above embodiment just is used to help to understand the application's method and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to the application's thought, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as the restriction to the application.