A kind of method of automatic hardware test alarm and device
Technical field
The present invention relates to the technical field of hardware configuration information processing, particularly relate to a kind of method of automatic hardware test alarm, and, a kind of device of automatic hardware test alarm.
Background technology
At present, in many demands such as people configure at purchase subscriber equipment, optimizing user equipment, the applied environment of understanding subscriber equipment, need to understand in detail the hardware information of subscriber equipment, for example CPU, mainboard, internal memory, video card, display, hard disk, network interface card, sound card, and the information such as the USB device of all accesses.
In prior art, certain operations system provides the instrument of checking main hardware information for user, as " equipment manager " of Windows system and " system information " instrument.But illegal businessman may modify to this information, for example, originally the dominant frequency of CPU is 800Mhz, and while detecting by operating system, shows that the dominant frequency of CPU may be 1066Mhz, and so, the real information of operating system acquired information and equipment is also inconsistent.User does not know how to obtain in the situation of real facility information, can not obtain own needed equipment.
In addition, when keeper manages the subscriber equipment of its place LAN (Local Area Network), if be replaced hardware in subscriber equipment, and the corresponding hardware information that server prestores does not change, at this moment, keeper does not also know the real information of its hardware, thereby cannot effectively manage these subscriber equipmenies.
Therefore, need at present the urgent technical matters solving of those skilled in the art to be exactly: a kind of mechanism of automatic hardware test alarm to be provided, thereby can to know that whether the described hardware information of current device is consistent with its real hardware information.
Summary of the invention
Technical matters to be solved by this invention is to provide a kind of method of automatic hardware test alarm, makes user directly know that whether the description of device therefor is consistent with its real information.
The present invention also provides a kind of device of automatic hardware test alarm, in order to ensure said method application and realization in practice.
In order to address the above problem, the embodiment of the invention discloses a kind of method of automatic hardware test alarm, comprising:
By the bottom hardware of calling party equipment, the first source obtaining as hardware information, the hardware information of acquisition current user equipment;
The second source obtaining from hardware information, obtains the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
Whether the hardware information that contrasts described the first source is consistent with second-source hardware information;
If not, generate alarm.
Preferably, the described second source obtaining from hardware information, the step of obtaining the hardware information of same user device comprises:
Obtain the hardware information of the operating system feedback that subscriber equipment installs.
Preferably, the described second source obtaining from hardware information, the step of obtaining the hardware information of same user device comprises:
The application programming interfaces API of the Windows operating system that calling party equipment is installed or Windows management regulation WMI, and, hardware drive program, the hardware information of acquisition current user equipment.
Preferably, described subscriber equipment has terminal iidentification, the described second source obtaining from hardware information, and the step of obtaining the hardware information of same user device comprises:
Obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification.
Preferably, the hardware information operation whether consistent with second-source hardware information that described contrast first is originated, and the operation that generates alarm is completed by server, described method also comprises:
By the hardware information in described the first source, and described second-source hardware information uploads onto the server.
Preferably, the hardware information operation whether consistent with second-source hardware information that described contrast first is originated, and the operation that generates alarm is completed by server, described method also comprises:
The hardware information in described the first source and the terminal iidentification of relative user equipment are uploaded onto the server.
Preferably, the hardware information operation whether consistent with second-source hardware information that described contrast first is originated, and, generate operating in current user equipment of alarm and complete.
Preferably, described subscriber equipment has terminal iidentification, and described method also comprises:
If the hardware information in described the first source is consistent with second-source hardware information, obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification;
By hardware information or the second-source hardware information in described the first source, the hardware information prestoring with described server contrasts, if inconsistent, generates alarm.
Preferably, described method also comprises:
If the hardware information in described the first source is consistent with second-source hardware information, obtain the hardware information that operating system that subscriber equipment installs is fed back;
By hardware information or the second-source hardware information in described the first source, contrast with the hardware information of described operating system feedback, if inconsistent, generate alarm.
Preferably, described method also comprises:
If the hardware information in described the first source is consistent with second-source hardware information, the application programming interfaces API of the Windows operating system of installing by calling party equipment or Windows management regulation WMI, and, hardware drive program, the hardware information of acquisition current user equipment;
By hardware information or the second-source hardware information in described the first source, contrast with obtained hardware information, if inconsistent, generate alarm.
Preferably, described by the bottom hardware of calling party equipment, the first source obtaining as hardware information, the step that obtains the hardware information of current user equipment comprises:
Access bottom hardware, obtains the hardware identifier information in subscriber equipment;
According to described hardware identifier information, in preset hardware information storehouse, extract corresponding hardware parameter information.
Preferably, described hardware identifier information comprises vendor id and hardware device ID, and described bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and the step of described access bottom hardware specifically comprises:
Ergodic Theory bus, described system bus comprises Peripheral Component Interconnect pci bus, system management SMBUS bus, I2C bus and/or industrial standard architectures isa bus;
And/or, the information of reading system management Basic Input or Output System (BIOS) SMBIOS;
And/or access peripheral port, initiates the I/O operation with corresponding peripheral hardware.
Preferably, described method also comprises:
The hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
The present invention also provides a kind of device of automatic hardware test alarm, comprising:
The first source hardware information acquisition module, for passing through the bottom hardware of calling party equipment, the first source obtaining as hardware information, the hardware information of acquisition current user equipment;
Second source hardware information acquisition module, for the second source obtaining from hardware information, obtains the hardware information of same user device; Described second source is that the hardware information different from the first source obtains source;
Whether hardware information contrast module is consistent with second-source hardware information for contrasting the described first hardware information of originating;
Alarm module, for if not, generates alarm.
Preferably, described second source hardware information acquisition module comprises:
System hardware acquisition of information submodule, for obtaining the hardware information of the operating system feedback that subscriber equipment installs.
Preferably, described second source hardware information acquisition module comprises:
System interface hardware information obtains submodule, the application programming interfaces API of the Windows operating system of installing for calling party equipment or Windows management regulation WMI, and, hardware drive program, the hardware information of acquisition current user equipment.
Preferably, described subscriber equipment has terminal iidentification, and described second source hardware information acquisition module comprises:
Terminal iidentification hardware information obtains submodule, for obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification.
Preferably, described hardware information contrast module, and alarm module is completed by server, described device also comprises:
Transmission module in information, for by the hardware information in described the first source, and described second-source hardware information uploads onto the server.
Preferably, described hardware information contrast module, and alarm module is completed by server, described device also comprises:
Transmission module on terminal iidentification, for uploading onto the server the hardware information in described the first source and the terminal iidentification of relative user equipment.
Preferably, described hardware information contrast module, and alarm module completes in current user equipment.
Preferably, described subscriber equipment has terminal iidentification, and described device also comprises:
Prestored information acquisition module, if consistent with second-source hardware information for the hardware information in described the first source, obtains the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification;
Prestored information contrast module, for by hardware information or the second-source hardware information in described the first source, the hardware information prestoring with described server contrasts, if inconsistent, generates alarm.
Preferably, described device also comprises:
Operation system information acquisition module, if consistent with second-source hardware information for the hardware information in described the first source, obtains the hardware information that operating system that subscriber equipment installs is fed back;
Operation system information contrast module, for by hardware information or the second-source hardware information in described the first source, contrasts with the hardware information of described operating system feedback, if inconsistent, generates alarm.
Preferably, described device also comprises:
Operating system interface acquisition of information module, if the hardware information for described the first source is consistent with second-source hardware information, the application programming interfaces API of the Windows operating system of installing by calling party equipment or Windows management regulation WMI, and, hardware drive program, the hardware information of acquisition current user equipment;
Operating system interface information contrast module, for by hardware information or the second-source hardware information in described the first source, contrasts with obtained hardware information, if inconsistent, generates alarm.
Preferably, described the first source hardware information acquisition module comprises:
Bottom hardware access submodule, for accessing bottom hardware, obtains the hardware identifier information in subscriber equipment;
Hardware parameter information extraction submodule for according to described hardware identifier information, extracts corresponding hardware parameter information in preset hardware information storehouse.
Preferably, described hardware identifier information comprises vendor id and hardware device ID, and described bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and described bottom hardware access submodule specifically comprises:
System bus traversal submodule, for Ergodic Theory bus, described system bus comprises Peripheral Component Interconnect pci bus, system management SMBUS bus, I2C bus and/or industrial standard architectures isa bus;
And/or mainboard information reading submodule, for the information of reading system management Basic Input or Output System (BIOS) SMBIOS;
And/or peripheral port access submodule, for accessing peripheral port, initiates the I/O operation with corresponding peripheral hardware.
Preferably, described device also comprises:
Hardware information update module, for the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
Compared with prior art, the present invention has the following advantages:
The present invention can obtain the truest, accurate, objective hardware parameter information by direct access bottom hardware, and the hardware information obtaining by this hardware information and by application programming interfaces API or the Windows management regulation WMI of operating system, operating system contrasts, in the inconsistent situation of information, send alarm to user, thus, can help user to understand the real deployment of equipment, effectively prevent that user from being deceived by illegal retailer.
In addition, the present invention also contrasts by the hardware information that obtains of access bottom hardware with whether be pre-stored in hardware information in server consistent, the hardware information prestoring in to server in inconsistent situation is modified, and has facilitated keeper effectively to manage many subscriber equipmenies of its place LAN (Local Area Network).
Brief description of the drawings
Fig. 1 is the flow chart of steps of the embodiment of the method 1 of a kind of automatic hardware test alarm of the present invention;
Fig. 2 is the flow chart of steps of the embodiment of the method 2 of a kind of automatic hardware test alarm of the present invention;
Fig. 3 is the flow chart of steps of the embodiment of the method 3 of a kind of automatic hardware test alarm of the present invention;
Fig. 4 is the flow chart of steps of the embodiment of the method 4 of a kind of automatic hardware test alarm of the present invention;
Fig. 5 is the structured flowchart of the device embodiment 1 of a kind of automatic hardware test alarm of the present invention;
Fig. 6 is the structured flowchart of the device embodiment 2 of a kind of automatic hardware test alarm of the present invention;
Fig. 7 is the structured flowchart of the device embodiment 3 of a kind of automatic hardware test alarm of the present invention;
Fig. 8 is the structured flowchart of the device embodiment 4 of a kind of automatic hardware test alarm of the present invention.
Embodiment
For above-mentioned purpose of the present invention, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
For prior art, user can check by operating system the hardware information of current device, as " equipment manager " of Windows system and " system information " instrument.And in reality, the information that illegal businessman may show operating system is modified, make the actual information of information that operating system obtains and this equipment inconsistent, user cannot be known in the situation of real hardware information of this equipment can not obtain own required equipment.
One of core idea of the embodiment of the present invention is, detect user's installation configuration information, obtain the hardware information in the first source of current user equipment by the bottom hardware of calling party equipment, if the second-source hardware information of this hardware information and subscriber equipment is inconsistent, generate alarm, make user directly know that whether the description of device therefor is consistent with its real information.
With reference to figure 1, show the flow chart of steps of the embodiment of the method 1 of a kind of automatic hardware test alarm of the present invention, specifically can comprise the following steps:
Step 101, by the bottom hardware of calling party equipment, the first source obtaining as hardware information, obtains the hardware information of current user equipment.
In a preferred embodiment of the present invention, described step 101 can comprise:
Sub-step S11, access bottom hardware, obtain the hardware identifier information in subscriber equipment.
In concrete realization, described hardware identifier information can comprise vendor id and hardware device ID, and described bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and described sub-step S11 specifically can comprise:
Sub-step S11-1, Ergodic Theory bus, described system bus comprises Peripheral Component Interconnect pci bus, system management SMBUS bus, I2C bus and/or industrial standard architectures isa bus;
Sub-step S11-2 and/or, the information of reading system management Basic Input or Output System (BIOS) SMBIOS;
Sub-step S11-3 and/or, access peripheral port, initiates to operate with the I/O of corresponding peripheral hardware.
For example, can read the information of PCI equipment on mainboard by traversal pci bus, and read SMBIOS mainboard information and detect vendor id and the hardware device ID of mainboard.Or, can read by traversal pci bus vendor id and the hardware device ID of the video card that the video card categorical data on PCI equipment detects.Or, can adopt the mode of SetupAPI to access peripheral port, initiate to judge whether to be connected with peripheral hardware with the I/O operation requests of peripheral port, as receive the information that peripheral hardware returns for this request, further send information acquisition request to this peripheral hardware, then receive vendor id and hardware device ID that peripheral hardware returns.
For example, for the hardware such as CPU, internal memory, hard disk or CD-ROM drive, by the information that reads SMBIOS, and/or, after traversal pci bus, SMBUS bus, I2C bus and isa bus, also need further to carry out instruction interaction and just can read with corresponding hardware manufacturer's information and the identification information of this hardware.
In detail, as obtained the information of CPU, can, by first reading SMBIOS information, then further carry out data analysis acquisition to cpu instruction register (comprising CPUID and MSR register).
In specific implementation, described subscriber equipment can be initiated the subscriber equipment of hardware detection request.When receiving described hardware detection request, start hardware detection driver (or hardware detection engine) for the subscriber equipment of initiating described request, by described hardware detection driver (or hardware detection engine) access hardware bottom, in the time that described subscriber equipment is computing machine, the hardware bottom layer of accessing specifically comprises: the access of CPU bottom, the access of SMBIOS bottom, pci bus data read, SMBUS bus data reads, isa bus data read, (oneself detects for IDE (hard disk drive) and Smart, analyze, reporting techniques) hard disc data reads, SCSI (small computer system interface) hard disc data reads, EEDID (extending display identification data) display data reads, after the scanning of I2C bus data, find vendor id and the hardware ID of following hardware, comprise CPU, mainboard, video card, display, internal memory, hard disk, CD-ROM drive, sound card, battery, network interface card, mouse-keyboard and/or camera.
Sub-step S12, the described hardware identifier information of foundation are extracted corresponding hardware parameter information in preset hardware information storehouse.
As a kind of example of concrete application, can be preset multiple hardware informations storehouse such as hardware production firm database, ardware model number database, hardware specification database and/or hardware configuration parameter database, when vendor id and hardware device ID being detected, in above-mentioned multiple hardware informations storehouse, mate respectively one by one, then filter out the hardware parameter information that need to represent to user.
As the example of the concrete application of another kind, can a preset hardware information storehouse, in this hardware information storehouse, there are many hardware parameter information recordings corresponding with hardware identifier information, wherein in every hardware parameter information recording, all comprise the information such as hardware brand, hardware title, ardware model number, hardware specification and/or hardware configuration parameter.
Certainly, said method is only as example, which kind of hardware identifier information those skilled in the art can take according to actual demand setting, as in the situation that only representing hardware brand, hardware title, only take vendor id, or as, in the situation that representing ardware model number, hardware specification and hardware configuration parameter, only take hardware device ID, described hardware identifier information can also other any relevant information of the hardware that adopts in objective sign subscriber equipment, the present invention to this without being limited.
In practice, can carry out soundness verification for obtained hardware information, if the first candidate value is illegal, just adopt the second candidate value, if the second candidate value is illegal, just adopt the 3rd candidate value, by that analogy.
Step 102, the second source obtaining from hardware information, obtain the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source.
It should be noted that, in embodiments of the present invention, the described hardware information from the accessed subscriber equipment of second source, is the information that objectively responds hardware configuration situation in current user equipment, comprises hardware information, the device hardware configuration list that product producer provides etc. that operating system provides.
In a kind of preferred embodiment of the present invention, described step 102 can comprise: the hardware information that obtains the operating system feedback that subscriber equipment installs.
In prior art, certain operations system provides the instrument of checking main hardware information for user, as " equipment manager " of Windows system and " system information " instrument.Particularly, " my computer " of user on can right click desktop selects " attribute " order to open " system property " window from shortcut menu; Or from control panel, open " system property " window, be switched to " hardware " Shipping Options Page, click " equipment manager " button to check the main hardware information of current user equipment.Or under the accessibility options from the start menu of Windows system, find " system tool ", then select " system information "; Or, in " RUN " dialog box, directly input " msinfo32.exe " to check the main hardware information of current user equipment.
For example, if user wants to check hard disk model and mode of operation, can open " equipment manager " window, from " disk processor ", check the hard disk model of installing in current system, then from " IDE ATA/ATAPI controller ", select a mode of operation that IDE passage is checked hard disk.If user need to check demonstration information, the Shipping Options Page that can open " DirectX diagnostic tool → demonstration " in " system tool " is checked the conventional demonstration information such as the title of video card, manufacturer, chip type, DAC type, memory size, or the demonstration information such as dll file name and version number of further opening " display properties → setting " window check bios version, Installed System Memory, video memory, driver version, OpenGL ICD from control panel; Or open " system information → assembly → demonstration " window, check the demonstration information such as device id, INF file, color table project, resolution, memory address.
In another kind of preferred embodiment of the present invention, described step 102 can comprise:
The application programming interfaces API of the Windows operating system that calling party equipment is installed or Windows management regulation WMI, and, hardware drive program, the hardware information of acquisition current user 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 corresponding function and can obtain the hardware information of subscriber equipment.For example: judge the color of specifying windows to show object by GetSysColor; Obtain the information relevant with current system power supply status by GetSystemPowerStatus; Understand the information relevant with the keyboard using by GetKeyboardType; Can obtain CPU information by GetSystemInfo.
Windows management regulation WMI is the Windows administrative skill of a core, WMI is as a kind of specification and foundation structure, can access, configure, manage and monitor nearly all Windows resource by it, such as user can start a process on remote computation machine; Set a process in specific date and time operation; Remote distance start computer; Obtain the list of installation procedure of Local or Remote computing machine; Windows event log of inquiry Local or Remote computing machine etc.In practical operation, provide program to represent that user's application program and script are from WMI trustship resource request information by WMI, and send instructions to WMI trustship resource.For example: Win32 provides that program provides about computing machine, disk, peripherals, file, file, file system, networking component, operating system, printer, process, security, service, shares, SAM user and group, and the information of more resources.
Step 103, contrast described first source hardware information whether consistent with second-source hardware information.
Step 104, if not, generates alarm.
In practice, user can obtain by second source the hardware information of equipment, because this information may be modified, so itself and the hardware information obtaining by access bottom hardware need to be contrasted, if inconsistent, illustrate that the hardware information obtaining by second source was modified, not real information.
In a kind of preferred embodiment of the present invention, the hardware information operation whether consistent with second-source hardware information that described contrast first is originated, and, generate operating in current user equipment of alarm and complete.That is, whether consistent contrast hardware information on the currently used equipment of user, if inconsistent, on the interface of subscriber equipment, generate alarm, user can directly be known this prompting.
With reference to figure 2, show the flow chart of steps of the embodiment of the method 2 of a kind of automatic hardware test alarm of the present invention, specifically can comprise the following steps:
Step 201, by the bottom hardware of calling party equipment, the first source obtaining as hardware information, obtains the hardware information of current user equipment;
Step 202, the second source obtaining from hardware information, obtain the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source.
In a kind of preferred embodiment of the present invention, described step 202 can comprise:
Obtain the hardware information of the operating system feedback that subscriber equipment installs.
In another kind of preferred embodiment of the present invention, described step 202 can comprise:
The application programming interfaces API of the Windows operating system that calling party equipment is installed or Windows management regulation WMI, and, hardware drive program, the hardware information of acquisition current user equipment.
Step 203, by the hardware information in described the first source, and described second-source hardware information uploads onto the server.
In the present embodiment, the hardware information operation whether consistent with second-source hardware information in described the first source, and, the operation that generates alarm can be completed by server, in reality, can be understood as the keeper who alarm is offered to multiple subscriber equipmenies, the hardware information in these two sources is all to be provided by system, so need to first upload onto the server and contrast.
Step 204, contrast described first source hardware information whether consistent with second-source hardware information; If so, perform step 205 and step 206; If not, perform step 207.
Step 205, described subscriber equipment have terminal iidentification, obtain the hardware information of its relative user equipment prestoring according to described terminal iidentification from server end.
In the present embodiment, after the hardware information in the first source and second-source hardware information are contrasted, also need the hardware information of the relative user equipment that itself and server end are prestored to contrast.The identification information of multiple terminals that prestored in server and one to one hardware information, can extract corresponding hardware information according to terminal iidentification.
Herein, the hardware information prestoring in server can be the device hardware configuration list that product producer provides.
Step 206, by described first source hardware information or second-source hardware information, the hardware information prestoring with described server contrasts, if inconsistent, generates alarm.
Whether be real information by the configuration information that relatively can learn this equipment with the hardware information prestoring, if inconsistent, send alarm by server end.
Step 207, generation alarm.
Step 208, the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
If the hardware information in the first source, when the hardware information that prestores by the access hardware information known of bottom hardware and server end is inconsistent, taking the hardware information in the first source as accurate information, and according to the hardware information in the first source, the hardware information prestoring is modified.
With reference to figure 3, show the flow chart of steps of the embodiment of the method 3 of a kind of automatic hardware test alarm of the present invention, specifically can comprise the following steps:
Step 301, by the bottom hardware of calling party equipment, the first source obtaining as hardware information, obtains the hardware information of current user equipment;
Step 302, the second source obtaining from hardware information, obtain the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
In a kind of preferred embodiment of the present invention, described subscriber equipment has terminal iidentification, and described step 302 can comprise:
Obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification.
Be different from last embodiment, in the present embodiment, described second-source hardware information is the hardware information that server end prestores, and this step is that the hardware information obtaining by access bottom hardware and the hardware information prestoring are contrasted.
Step 303, by described first source hardware information and the terminal iidentification of relative user equipment upload onto the server.
In the present embodiment, the hardware information operation whether consistent with second-source hardware information in described the first source, and the operation that generates alarm can be completed by server.Second-source hardware information is to be provided by server, and the hardware information in the first source is to be provided by system, so need the terminal iidentification of the hardware information in the first source and corresponding subscriber equipment to upload onto the server herein.
Step 304, contrast described first source hardware information whether consistent with second-source hardware information; If so, perform step 305 and step 306; If not, perform step 307.
Step 305, obtain the hardware information of the operating system feedback that subscriber equipment installs.
Step 306, by hardware information or the second-source hardware information in described the first source, contrast with the hardware information of described operating system feedback, if inconsistent, generate alarm.
In the present embodiment, the hardware information having prestored in step has before contrasted by the access hardware information that obtains of bottom hardware and server, in the situation that contrast is consistent, also need to contrast with the hardware information obtaining by operating system, send alarm at server end if inconsistent.
Step 307, generation alarm.
Step 308, the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
With reference to figure 4, show the flow chart of steps of the embodiment of the method 4 of a kind of automatic hardware test alarm of the present invention, specifically can comprise the following steps:
Step 401, by the bottom hardware of calling party equipment, the first source obtaining as hardware information, obtains the hardware information of current user equipment;
Step 402, the second source obtaining from hardware information, obtain the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
In a kind of preferred embodiment of the present invention, described subscriber equipment has terminal iidentification, and described step 402 can comprise:
Obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification.
Step 403, by described first source hardware information and the terminal iidentification of relative user equipment upload onto the server.
Step 404, contrast described first source hardware information whether consistent with second-source hardware information; If so, perform step 405 and step 406; If not, perform step 407.
Application programming interfaces API or the Windows management regulation WMI of step 405, the Windows operating system of installing by calling party equipment, and hardware drive program, obtains the hardware information of current user equipment;
Step 406, by described first source hardware information or second-source hardware information, contrast with obtained hardware information, if inconsistent, generate alarm.
Be different from last embodiment, in the present embodiment, the hardware information having prestored in step has before contrasted by the access hardware information that obtains of bottom hardware and server, in the situation that contrast is consistent, by first or second-source hardware information contrast with the hardware information that obtains by application programming interfaces API or the Windows management regulation WMI of operating system, send alarm at server end if inconsistent.
Step 407, if not, generates alarm.
In a kind of preferred embodiment of the present invention, the hardware information operation whether consistent with second-source hardware information that described contrast first is originated, and the operation that generates alarm can be completed by server.
Step 408, the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
In concrete realization, the method for a kind of automatic hardware test alarm of the present invention can regularly be carried out according to predeterminated frequency.
In sum, the invention provides a kind of method of automatic hardware test alarm, can obtain the truest, accurate, objective hardware parameter information by direct access bottom hardware, and the hardware information obtaining by this hardware information and by application programming interfaces API or the Windows management regulation WMI of operating system, operating system contrasts, in the inconsistent situation of information, send alarm to user, thus, can help user to understand the real deployment of equipment, effectively prevent that user from being deceived by illegal retailer.
In addition, the present invention also contrasts by the hardware information that obtains of access bottom hardware with whether be pre-stored in hardware information in server consistent, the hardware information prestoring in to server in inconsistent situation is modified, and has facilitated keeper effectively to manage many subscriber equipmenies of its place LAN (Local Area Network).
What each embodiment in this instructions stressed is all and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be noted that, in embodiments of the present invention, described hardware refers to the hardware in subscriber equipment, described subscriber equipment comprises computing machine, mobile phone, PDA etc., and described hardware comprises CPU, mainboard, video card, display, internal memory, hard disk, CD-ROM drive, sound card, battery, network interface card, mouse-keyboard and/or makes a video recording first-class.The embodiment of the present invention not only can be applied in the applied environment of single device, can also be applied to the applied environment of client-server, or is further applied in the applied environment based on cloud.
For embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
With reference to figure 5, show the structured flowchart of the device embodiment 1 of a kind of automatic hardware test alarm of the present invention, specifically can comprise with lower module:
The first source hardware information acquisition module 501, for passing through the bottom hardware of calling party equipment, the first source obtaining as hardware information, the hardware information of acquisition current user equipment;
Second source hardware information acquisition module 502, for the second source obtaining from hardware information, obtains the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
Whether hardware information contrast module 503 is consistent with second-source hardware information for contrasting the described first hardware information of originating;
Alarm module 504, for if not, generates alarm.
In a preferred embodiment of the present invention, described the first source hardware information acquisition module can comprise:
Bottom hardware access submodule, for accessing bottom hardware, obtains the hardware identifier information in subscriber equipment;
Hardware parameter information extraction submodule for according to described hardware identifier information, extracts corresponding hardware parameter information in preset hardware information storehouse.
In a preferred embodiment of the present invention, described hardware identifier information comprises vendor id and hardware device ID, described bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and described bottom hardware access submodule specifically comprises:
System bus traversal submodule, for Ergodic Theory bus, described system bus comprises Peripheral Component Interconnect pci bus, system management SMBUS bus, I2C bus and/or industrial standard architectures isa bus;
And/or mainboard information reading submodule, for the information of reading system management Basic Input or Output System (BIOS) SMBIOS;
And/or peripheral port access submodule, for accessing peripheral port, initiates the I/O operation with corresponding peripheral hardware.
In a kind of preferred embodiment of the present invention, described hardware information contrast module, and alarm module completes in current user equipment.
With reference to figure 6, show the structured flowchart of the generating apparatus embodiment 2 of a kind of automatic hardware test alarm of the present invention, specifically can comprise with lower module:
The first source hardware information acquisition module 601, for passing through the bottom hardware of calling party equipment, the first source obtaining as hardware information, the hardware information of acquisition current user equipment;
Second source hardware information acquisition module 602, for the second source obtaining from hardware information, obtains the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
In a kind of preferred embodiment of the present invention, described second source hardware information acquisition module can comprise: system hardware acquisition of information submodule, and for obtaining the hardware information of the operating system feedback that subscriber equipment installs.
In another kind of preferred embodiment of the present invention, described second source hardware information acquisition module can comprise: system interface hardware information obtains submodule, application programming interfaces API or the Windows management regulation WMI of the Windows operating system of installing for calling party equipment, and, hardware drive program, the hardware information of acquisition current user equipment.
Transmission module 603 in information, for by the hardware information in described the first source, and described second-source hardware information uploads onto the server.
Whether hardware information contrast module 604 is consistent with second-source hardware information for contrasting the described first hardware information of originating; If so, execution module 605 and module 606; If not, execution module 607.
Prestored information acquisition module 605, has terminal iidentification for described subscriber equipment, obtains the hardware information of its relative user equipment prestoring according to described terminal iidentification from server end;
Prestored information contrast module 606, for by hardware information or the second-source hardware information in described the first source, the hardware information prestoring with described server contrasts, if inconsistent, generates alarm.
Alarm module 607, for generating alarm.
Hardware information update module 608, for the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
In a kind of preferred embodiment of the present invention, described hardware information contrast module, and alarm module is completed by server.
With reference to figure 7, show the structured flowchart of the device embodiment 3 of a kind of automatic hardware test alarm of the present invention, specifically can comprise with lower module:
The first source hardware information acquisition module 701, for passing through the bottom hardware of calling party equipment, the first source obtaining as hardware information, the hardware information of acquisition current user equipment;
Second source hardware information acquisition module 702, for the second source obtaining from hardware information, obtains the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
In a kind of preferred embodiment of the present invention, described subscriber equipment has terminal iidentification, and described second source hardware information acquisition module comprises:
Terminal iidentification hardware information obtains submodule, for obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification.
Transmission module 703 on terminal iidentification, for uploading onto the server the hardware information in described the first source and the terminal iidentification of relative user equipment.
Whether hardware information contrast module 704 is consistent with second-source hardware information for contrasting the described first hardware information of originating; If so, execution module 705 and module 706; If not, execution module 707.
Operation system information acquisition module 705, for obtaining the hardware information of the operating system feedback that subscriber equipment installs.
Operation system information contrast module 706, for by hardware information or the second-source hardware information in described the first source, contrasts with the hardware information of described operating system feedback, if inconsistent, generates alarm.
Alarm module 707, for generating alarm.
In a kind of preferred embodiment of the present invention, described hardware information contrast module, and alarm module is completed by server.
Hardware information update module 708, for the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
With reference to figure 8, show the structured flowchart of the device embodiment 4 of a kind of automatic hardware test alarm of the present invention, specifically can comprise with lower module:
The first source hardware information acquisition module 801, for passing through the bottom hardware of calling party equipment, the first source obtaining as hardware information, the hardware information of acquisition current user equipment;
Second source hardware information acquisition module 802, for the second source obtaining from hardware information, obtains the hardware information of same user device, and described second source is that the hardware information different from the first source obtains source;
In a kind of preferred embodiment of the present invention, described subscriber equipment has terminal iidentification, and described second source hardware information acquisition module comprises:
Terminal iidentification hardware information obtains submodule, for obtain the hardware information of its relative user equipment prestoring from server end according to described terminal iidentification.
Transmission module 803 on terminal iidentification, for uploading onto the server the hardware information in described the first source and the terminal iidentification of relative user equipment.
Whether hardware information contrast module 804 is consistent with second-source hardware information for contrasting the described first hardware information of originating; If so, execution module 805 and module 806; If not, execution module 807.
Operating system interface acquisition of information module 805, for application programming interfaces API or the Windows management regulation WMI of the Windows operating system of installing by calling party equipment, and hardware drive program, obtains the hardware information of current user equipment;
Operating system interface information contrast module 806, for by hardware information or the second-source hardware information in described the first source, contrasts with obtained hardware information, if inconsistent, generates alarm.
Alarm module 807, for generating alarm.
In a kind of preferred embodiment of the present invention, described hardware information contrast module, and alarm module is completed by server.
Hardware information update module 808, for the hardware information of originating according to described subscriber equipment first, the hardware information of the relative user equipment that update server end prestores.
The embodiment of the present invention not only can be applied in the applied environment of single device, can also be applied to the applied environment of client-server, or is further applied in the applied environment based on cloud.
Because described device embodiment is substantially corresponding to preceding method embodiment, therefore not detailed part in the description of the present embodiment can, referring to the related description in previous embodiment, just not repeat at this.In apparatus of the present invention embodiment and system embodiment, related module, submodule and unit can be software, can be hardware, can be also the combination of software and hardware.
The present invention can be used in numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, laptop device, multicomputer system, system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, the distributed computing environment that comprises above any system or equipment etc.
The present invention can describe in the general context of computer executable instructions, for example program module.Usually, program module comprises and carries out particular task or realize routine, program, object, assembly, data structure of particular abstract data type etc.Also can in distributed computing environment, put into practice the present invention, in these distributed computing environment, be executed the task by the teleprocessing equipment being connected by communication network.In distributed computing environment, program module can be arranged in the local and remote computer-readable storage medium including memory device.
In this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, article or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, article or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment that comprises described key element and also have other identical element.
The device of the method to a kind of automatic hardware test alarm provided by the present invention and a kind of automatic hardware test alarm is described in detail above, applied specific case herein principle of the present invention and embodiment are set forth, the explanation of above embodiment is just for helping to understand method of the present invention and core concept thereof; , for one of ordinary skill in the art, according to thought of the present invention, all will change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention meanwhile.