Summary of the invention
Technical matters to be solved by this invention provides the method that a kind of hardware detection is reported to the police automatically, makes the user know directly whether the description of device therefor is consistent with its real information.
The device that the present invention also provides a kind of hardware detection to report to the police automatically is in order to guarantee application and the realization of said method in reality.
In order to address the above problem, the embodiment of the invention discloses the method that a kind of hardware detection is reported to the police automatically, comprising:
Through the bottom hardware of calling party equipment,, obtain the hardware information of current user equipment as first source that hardware information obtains;
From the second source that hardware information obtains, obtain the hardware information of same user device, said second source is for obtaining the source with the different hardware information in first source;
Whether the hardware information that contrasts said first source is consistent with second-source hardware information;
If not, then generate alarm.
Preferably, the said second source that obtains 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 said second source that obtains 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, said subscriber equipment has terminal iidentification, the said second source that obtains 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 that prestores from server end according to said terminal iidentification.
Preferably, whether the hardware information in said contrast first source and second-source hardware information uniform operation, and the operation of generation alarm is accomplished by server, and said method also comprises:
With the hardware information in said first source, and said second-source hardware information uploads onto the server.
Preferably, whether the hardware information in said contrast first source and second-source hardware information uniform operation, and the operation of generation alarm is accomplished by server, and said method also comprises:
The hardware information in said first source and the terminal iidentification of relative user equipment are uploaded onto the server.
Preferably, whether the hardware information in said contrast first source and second-source hardware information uniform operation, and operating on the current user equipment of alarm of generation accomplished.
Preferably, said subscriber equipment has terminal iidentification, and said method also comprises:
If the hardware information in said first source is consistent with second-source hardware information, then obtain the hardware information of its relative user equipment that prestores from server end according to said terminal iidentification;
With the hardware information or the second-source hardware information in said first source, the hardware information that prestores with said server compares, if inconsistent, then generates alarm.
Preferably, said method also comprises:
If the hardware information in said first source is consistent with second-source hardware information, then obtain the hardware information that operating system that subscriber equipment installs is fed back;
With the hardware information or the second-source hardware information in said first source, the hardware information that feeds back with said operating system compares, if inconsistent, then generates alarm.
Preferably, said method also comprises:
If the hardware information in said first source is consistent with second-source hardware information; Then the application programming interfaces API or the Windows management regulation WMI of the Windows operating system of being installed through calling party equipment; And, hardware drive program, the hardware information of acquisition current user equipment;
Hardware information or second-source hardware information with said first source compare with the hardware information that is obtained, if inconsistent, then generate alarm.
Preferably, said bottom hardware through calling party equipment, as first source that hardware information obtains, the step that obtains the hardware information of current user equipment comprises:
The visit bottom hardware obtains the hardware identifier information in the subscriber equipment;
According to said hardware identifier information, in the hardware information storehouse of presetting, extract the corresponding hardware parameter information.
Preferably, said hardware identifier information comprises vendor id and hardware device ID, and said bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and the step of said visit bottom hardware specifically comprises:
Ergodic Theory bus, said system bus comprise 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 the visit peripheral port is initiated the I/O operation with corresponding peripheral hardware.
Preferably, said method also comprises:
According to the hardware information in said subscriber equipment first source, the hardware information of the relative user equipment that update service device end prestores.
The device that the present invention also provides a kind of hardware detection to report to the police automatically comprises:
The first source hardware information acquisition module is used for the bottom hardware through calling party equipment, as first source that hardware information obtains, obtains the hardware information of current user equipment;
Second source hardware information acquisition module is used for the second source that obtains from hardware information, obtains the hardware information of same user device; Said second source is for obtaining the source with the different hardware information in first source;
Hardware information contrast module, whether be used to contrast said first hardware information of originating consistent with second-source hardware information;
Alarm module is used for if not, then generates alarm.
Preferably, said second source hardware information acquisition module comprises:
System hardware information is obtained submodule, is used to obtain the hardware information of the operating system feedback that subscriber equipment installs.
Preferably, said second source hardware information acquisition module comprises:
The system interface hardware information obtains submodule, is used for the application programming interfaces API or the Windows management regulation WMI of the Windows operating system that calling party equipment installed, and hardware drive program obtains the hardware information of current user equipment.
Preferably, said subscriber equipment has terminal iidentification, and said second source hardware information acquisition module comprises:
The terminal iidentification hardware information obtains submodule, is used for obtaining from server end according to said terminal iidentification the hardware information of its relative user equipment that prestores.
Preferably, said hardware information contrast module, and alarm module is accomplished by server, said device also comprises:
The information uploading module be used for the hardware information with said first source, and said second-source hardware information uploads onto the server.
Preferably, said hardware information contrast module, and alarm module is accomplished by server, said device also comprises:
Transmission module on the terminal iidentification is used for the hardware information in said first source and the terminal iidentification of relative user equipment are uploaded onto the server.
Preferably, said hardware information contrast module, and alarm module is accomplished on current user equipment.
Preferably, said subscriber equipment has terminal iidentification, and said device also comprises:
The prestored information acquisition module is used for then obtaining the hardware information of its relative user equipment that prestores from server end according to said terminal iidentification if the hardware information in said first source is consistent with second-source hardware information;
Prestored information contrast module is used for hardware information or second-source hardware information with said first source, and the hardware information that prestores with said server compares, if inconsistent, then generates alarm.
Preferably, said device also comprises:
The operation system information acquisition module is used for if the hardware information in said first source is consistent with second-source hardware information, then obtains the hardware information that operating system that subscriber equipment installs is fed back;
Operation system information contrast module is used for hardware information or second-source hardware information with said first source, and the hardware information that feeds back with said operating system compares, if inconsistent, then generates alarm.
Preferably, said device also comprises:
Operating system interface information acquisition module; Be used for if the hardware information in said first source is consistent with second-source hardware information; Then the application programming interfaces API or the Windows management regulation WMI of the Windows operating system of being installed through calling party equipment; And; Hardware drive program, the hardware information of acquisition current user equipment;
Operating system interface information contrast module is used for hardware information or second-source hardware information with said first source, compares with the hardware information that is obtained, if inconsistent, then generates alarm.
Preferably, the said first source hardware information acquisition module comprises:
Bottom hardware visit submodule is used to visit bottom hardware, obtains the hardware identifier information in the subscriber equipment;
Hardware parameter information extraction submodule is used for according to said hardware identifier information, in the hardware information storehouse of presetting, extracts the corresponding hardware parameter information.
Preferably, said hardware identifier information comprises vendor id and hardware device ID, and said bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and said bottom hardware visit submodule specifically comprises:
System bus traversal submodule is used for the Ergodic Theory bus, and said 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 is used for the information that reading system is managed Basic Input or Output System (BIOS) SMBIOS;
And/or peripheral port visit submodule is used to visit peripheral port, initiates the I/O operation with corresponding peripheral hardware.
Preferably, said device also comprises:
The hardware information update module is used for the hardware information according to said subscriber equipment first source, the hardware information of the relative user equipment that update service device 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 through direct visit bottom hardware; And this hardware information and the hardware information that application programming interfaces API through operating system, operating system or Windows management regulation WMI obtain compared; Under the situation of information inconsistency, send alarm to the user; Thus; Can help the user to understand the real deployment of equipment, prevent that effectively the user from being deceived by illegal retailer.
In addition; Whether the present invention also contrasts the hardware information that obtains through the visit bottom hardware consistent with the hardware information in being pre-stored in server; The hardware information that under inconsistent situation, prestores in to server is made amendment, and has made things convenient for the keeper that many subscriber equipmenies of its place LAN (Local Area Network) are effectively managed.
Embodiment
For make above-mentioned purpose of the present invention, feature and advantage can be more obviously understandable, below in conjunction with accompanying drawing and embodiment the present invention done further detailed explanation.
For prior art, the user can check the hardware information of current device through operating system, like " equipment manager " and " system information " instrument of Windows system.And in the reality; Illegal businessman may make amendment to the information that operating system shows; Make the actual information of information that operating system obtains and this equipment inconsistent, the user can't be known under the situation of real hardware information of this equipment can not obtain own required equipment.
One of core idea of the embodiment of the invention is; Detect user's installation configuration information; Obtain the hardware information in first source of current user equipment through the bottom hardware of calling party equipment; If the second-source hardware information of this hardware information and subscriber equipment is inconsistent; Then generate alarm, make the user know directly whether the description of device therefor is consistent with its real information.
With reference to figure 1, show a kind of hardware detection of the present invention flow chart of steps of the method embodiment 1 of warning automatically, specifically can may further comprise the steps:
Step 101, the bottom hardware through calling party equipment as first source that hardware information obtains, obtain the hardware information of current user equipment.
In a kind of preferred embodiment of the present invention, said step 101 can comprise:
Substep S11, visit bottom hardware obtain the hardware identifier information in the subscriber equipment.
In concrete realization, said hardware identifier information can comprise vendor id and hardware device ID, and said bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and said substep S11 specifically can comprise:
Substep S11-1, Ergodic Theory bus, said system bus comprise Peripheral Component Interconnect pci bus, system management SMBUS bus, I2C bus and/or industrial standard architectures isa bus;
Substep S11-2 and/or, the information of reading system management Basic Input or Output System (BIOS) SMBIOS;
Substep S11-3 and/or, the visit peripheral port is initiated to operate with the I/O of corresponding peripheral hardware.
For example, can read the information of PCI equipment on the mainboard through the traversal pci bus, and read vendor id and hardware device ID that SMBIOS mainboard information detects mainboard.Perhaps, can read the vendor id and the hardware device ID of the detected video card of video card categorical data on the PCI equipment through the traversal pci bus.Perhaps; Can adopt the mode of SetupAPI to visit peripheral port; Initiate to judge whether to be connected with peripheral hardware with the I/O operation requests of peripheral port; As receive that peripheral hardware is directed against the information that this request is returned; Then further send information acquisition request, receive vendor id and hardware device ID that peripheral hardware returns then to this peripheral hardware.
For example; For hardware such as CPU, internal memory, hard disk or CD-ROM drive; Through reading the information of SMBIOS; And/or; Behind traversal pci bus, SMBUS bus, I2C bus and the isa bus, also need further to carry out manufacturer's information and the identification information that instruction interaction just can be read this hardware with corresponding hardware.
In detail, as obtaining the information of CPU, can further cpu instruction register (comprising CPUID and MSR register) be carried out data analysis then and obtain through reading SMBIOS information earlier.
In concrete the realization, said subscriber equipment can be initiated hardware detection requesting users equipment.When receiving said hardware detection request; Start hardware detection driver (or hardware detection engine) to the subscriber equipment of initiating described request; By said hardware detection driver (or hardware detection engine) access hardware bottom; When said subscriber equipment is computing machine; The hardware bottom layer of being visited specifically comprises: the visit of CPU bottom; The visit of SMBIOS bottom; The pci bus data read; The SMBUS bus data reads; The 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 the 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.
Substep S12, the said hardware identifier information of foundation are extracted the corresponding hardware parameter information in the hardware information storehouse of presetting.
Example as a kind of concrete application; Can preset a plurality of hardware informations storehouses such as hardware production firm database, ardware model number database, hardware specification database and/or hardware configuration parameter database; When detecting vendor id and hardware device ID; In above-mentioned a plurality of hardware informations storehouse, mate respectively one by one, filter out the hardware parameter information that need represent then to the user.
As the concrete example of using of another kind; Can preset a hardware information storehouse; Have many and hardware identifier information corresponding hardware parameter information record in this hardware information storehouse, wherein all comprise information such as hardware brand, hardware title, ardware model number, hardware specification and/or hardware configuration parameter in every hardware parameter information record.
Certainly; Said method is only as example; Which kind of hardware identifier information those skilled in the art can take according to the actual demand setting; As under the situation that only represents hardware brand, hardware title, then only take vendor id, or as; Under the situation that represents ardware model number, hardware specification and hardware configuration parameter; Then only take hardware device ID, said hardware identifier information can also other any relevant information of the hardware that adopts in objective sign subscriber equipment, the present invention need not this to limit.
In reality, can carry out soundness verification for the hardware information of being obtained, if first candidate value is illegal, just adopt second candidate value, if second candidate value is illegal, just adopt the 3rd candidate value, by that analogy.
Step 102, from the second source that hardware information obtains, obtain the hardware information of same user device, said second source for first the source different hardware informations obtain the source.
Need to prove; In embodiments of the present invention; Said hardware information from the accessed subscriber equipment of second source is the information that objectively responds hardware configuration situation in the current user equipment, comprises that hardware information that operating system provides, the device hardware configuration that product producer provides are single etc.
In a kind of preferred embodiment of the present invention, said step 102 can comprise: the hardware information that obtains the operating system feedback that subscriber equipment installs.
In the prior art, the certain operations system provides the instrument of checking main hardware information for the user, like " equipment manager " and " system information " instrument of Windows system.Particularly, " my computer " of user on can the right click desktop selects " attribute " order to open " system property " window from shortcut menu; Perhaps from control panel, open " system property " window, switch to " hardware " Shipping Options Page, click " equipment manager " button to check the main hardware information of current user equipment.Perhaps find under the accessibility options from the start menu of Windows system " system tool ", select then " system information "; Perhaps, in the " RUN " dialog box, directly import " msinfo32.exe " to check the main hardware information of current user equipment.
For example; If the user wants to check hard disk model and mode of operation; Can open " equipment manager " window; Under " disk processor ", check the hard disk model of being installed the current system, select the mode of operation that the IDE passage is checked hard disk down from " IDE ATA/ATAPI controller " then.If the user need check display message; The Shipping Options Page that can open " DirectX diagnostic tool → demonstration " in " system tool " is checked conventional display message such as the title of video card, manufacturer, chip type, DAC type, memory size, or further from control panel, opens the display message such as dll file name and version number that " display properties → setting " window is checked bios version, Installed System Memory, video memory, driver version, OpenGL ICD; Perhaps open " system information → assembly → demonstration " window, check display message such as device id, INF file, color table project, resolution, memory address.
In another kind of preferred embodiment of the present invention, said 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 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.
Windows management regulation WMI is the Windows administrative skill of a core; WMI is as a kind of standard and foundation structure; Nearly all Windows resource can be visited, dispose, manage and keep watch on through it, a process can be on the remote computation machine, started such as the user; Set a process in specific date and time operation; The remote activation computing machine; Obtain the tabulation of installation procedure of Local or Remote computing machine; Windows event log of inquiry Local or Remote computing machine or the like.In practical operation, provide program to represent user's application program and script through WMI, and send instructions to WMI trustship resource from WMI trustship resource request information.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.
Whether the hardware information in step 103, said first source of contrast is consistent with second-source hardware information.
Step 104, if not then generates alarm.
In reality; The user can obtain the hardware information of equipment through second source; Because this information may be modified; So itself and the hardware information that obtains through the visit bottom hardware need be compared; If it is inconsistent; Explanation was modified through the hardware information that second source obtains, and was not real information.
In a kind of preferred embodiment of the present invention, whether the hardware information in said contrast first source and second-source hardware information uniform operation, and operating on the current user equipment of alarm of generation accomplished.That is, whether the contrast hardware information is consistent on the currently used equipment of user, if inconsistent, on the interface of subscriber equipment, generates alarm, and the user can directly be known this prompting.
With reference to figure 2, show a kind of hardware detection of the present invention flow chart of steps of the method embodiment 2 of warning automatically, specifically can may further comprise the steps:
Step 201, the bottom hardware through calling party equipment as first source that hardware information obtains, obtain the hardware information of current user equipment;
Step 202, from the second source that hardware information obtains, obtain the hardware information of same user device, said second source for first the source different hardware informations obtain the source.
In a kind of preferred embodiment of the present invention, said 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, said 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, with the hardware information in said first source, and said second-source hardware information uploads onto the server.
In the present embodiment; Whether hardware information and the second-source hardware information in said first source uniform operation; And; The operation that generates alarm can be accomplished by server; In reality, can be understood as the keeper who alarm is offered a plurality of subscriber equipmenies; The hardware information in these two sources all is to be provided by system, compares so need upload onto the server earlier again.
Whether the hardware information in step 204, said first source of contrast is consistent with second-source hardware information; If, then execution in step 205 and step 206; If not, execution in step 207 then.
Step 205, said subscriber equipment have terminal iidentification, obtain the hardware information of its relative user equipment that prestores from server end according to said terminal iidentification.
In the present embodiment, after hardware information and the second-source hardware information in first source compared, also the hardware information of the relative user equipment that itself and server end need be prestored compared.Prestored in the server identification information at a plurality of terminals and hardware information one to one thereof can extract relevant hardware information according to terminal iidentification.
Here, the hardware information that in server, prestores can be the device hardware configuration list that product producer provides.
Step 206, with the hardware information or the second-source hardware information in said first source, the hardware information that prestores with said server compares, if inconsistent, then generates alarm.
Through learning with the comparison of the hardware information that prestores whether this configuration of devices information is real information,, then send alarm by server end if inconsistent.
Step 207, generation alarm.
The hardware information in step 208, the said subscriber equipment of foundation first source, the hardware information of the relative user equipment that update service device end prestores.
If the hardware information in first source; When promptly the hardware information that prestores through the visit hardware information known of bottom hardware and server end is inconsistent; Hardware information with first source is as the criterion and be sure of breath, and according to the hardware information in first source hardware information that prestores is made amendment.
With reference to figure 3, show a kind of hardware detection of the present invention flow chart of steps of the method embodiment 3 of warning automatically, specifically can may further comprise the steps:
Step 301, the bottom hardware through calling party equipment as first source that hardware information obtains, obtain the hardware information of current user equipment;
Step 302, from the second source that hardware information obtains, obtain the hardware information of same user device, said second source for first the source different hardware informations obtain the source;
In a kind of preferred embodiment of the present invention, said subscriber equipment has terminal iidentification, and said step 302 can comprise:
Obtain the hardware information of its relative user equipment that prestores from server end according to said terminal iidentification.
Be different from last embodiment, in the present embodiment, said second-source hardware information is the hardware information that server end prestores, and this step is that hardware information that will obtain through the visit bottom hardware and the hardware information that prestores compare.
Step 303, hardware information and the terminal iidentification of relative user equipment in said first source uploaded onto the server.
In the present embodiment, whether hardware information and the second-source hardware information in said first source uniform operation, and the operation of generation alarm can be accomplished by server.Second-source hardware information is to be provided by server, and the hardware information in first source is to be provided by system, so need the hardware information in first source is uploaded onto the server with the terminal iidentification of the subscriber equipment of correspondence here.
Whether the hardware information in step 304, said first source of contrast is consistent with second-source hardware information; If, then execution in step 305 and step 306; If not, execution in step 307 then.
Step 305, obtain the hardware information of the operating system feedback that subscriber equipment installs.
Step 306, with the hardware information or the second-source hardware information in said first source, compare with the hardware information of said operating system feedback, if inconsistent, then generate alarm.
In the present embodiment; Before the hardware information that prestores in having contrasted through the visit hardware information that obtains of bottom hardware and server of step; Under the situation of contrast unanimity, also need compare with the hardware information that obtains through operating system, then send alarm as if inconsistent at server end.
Step 307, generation alarm.
The hardware information in step 308, the said subscriber equipment of foundation first source, the hardware information of the relative user equipment that update service device end prestores.
With reference to figure 4, show a kind of hardware detection of the present invention flow chart of steps of the method embodiment 4 of warning automatically, specifically can may further comprise the steps:
Step 401, the bottom hardware through calling party equipment as first source that hardware information obtains, obtain the hardware information of current user equipment;
Step 402, from the second source that hardware information obtains, obtain the hardware information of same user device, said second source for first the source different hardware informations obtain the source;
In a kind of preferred embodiment of the present invention, said subscriber equipment has terminal iidentification, and said step 402 can comprise:
Obtain the hardware information of its relative user equipment that prestores from server end according to said terminal iidentification.
Step 403, hardware information and the terminal iidentification of relative user equipment in said first source uploaded onto the server.
Whether the hardware information in step 404, said first source of contrast is consistent with second-source hardware information; If, then execution in step 405 and step 406; If not, execution in step 407 then.
The application programming interfaces API or the Windows management regulation WMI of step 405, the Windows operating system of being installed through calling party equipment, and hardware drive program obtains the hardware information of current user equipment;
Step 406, with the hardware information or the second-source hardware information in said first source, compare with the hardware information that is obtained, if inconsistent, then generate alarm.
Be different from last embodiment; In the present embodiment; Before the hardware information that prestores in having contrasted through the visit hardware information that obtains of bottom hardware and server of step; Under the situation of contrast unanimity; With first or second-source hardware information compare with the hardware information that application programming interfaces API or Windows management regulation WMI through operating system obtains, if inconsistently then send alarm at server end.
Step 407, if not then generates alarm.
In a kind of preferred embodiment of the present invention, whether the hardware information in said contrast first source and second-source hardware information uniform operation, and the operation of generation alarm can be accomplished by server.
The hardware information in step 408, the said subscriber equipment of foundation first source, the hardware information of the relative user equipment that update service device end prestores.
In concrete realization, the method that a kind of hardware detection of the present invention is reported to the police automatically can regularly be carried out according to predeterminated frequency.
In sum; The invention provides the method that a kind of hardware detection is reported to the police automatically; Can obtain the truest, accurate, objective hardware parameter information through direct visit bottom hardware; And this hardware information and the hardware information that application programming interfaces API through operating system, operating system or Windows management regulation WMI obtain compared; Under the situation of information inconsistency, send alarm to the user; Thus; Can help the user to understand the real deployment of equipment, prevent that effectively the user from being deceived by illegal retailer.
In addition; Whether the present invention also contrasts the hardware information that obtains through the visit bottom hardware consistent with the hardware information in being pre-stored in server; The hardware information that under inconsistent situation, prestores in to server is made amendment, and has made things convenient for the keeper that many subscriber equipmenies of its place LAN (Local Area Network) are effectively managed.
What each embodiment in this instructions stressed all is and the difference of other embodiment that identical similar part is mutually referring to getting final product between each embodiment.
Need to prove; In embodiments of the present invention; Said hardware is meant the hardware in the subscriber equipment; Said subscriber equipment comprises computing machine, mobile phone, PDA etc., and said 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 invention not only can be applied to can also be applied to the applied environment of client-server in the applied environment of single device, perhaps further is applied in the applied environment based on cloud.
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 present invention is not subjected 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 the 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 a kind of hardware detection of the present invention structured flowchart of the device embodiment 1 of warning automatically, specifically can comprise with lower module:
The first source hardware information acquisition module 501 is used for the bottom hardware through calling party equipment, as first source that hardware information obtains, obtains the hardware information of current user equipment;
Second source hardware information acquisition module 502 is used for the second source that obtains from hardware information, obtains the hardware information of same user device, and said second source is for obtaining the source with the different hardware information in first source;
Hardware information contrast module 503, whether be used to contrast said first hardware information of originating consistent with second-source hardware information;
Alarm module 504 is used for if not, then generates alarm.
In a kind of preferred embodiment of the present invention, the said first source hardware information acquisition module can comprise:
Bottom hardware visit submodule is used to visit bottom hardware, obtains the hardware identifier information in the subscriber equipment;
Hardware parameter information extraction submodule is used for according to said hardware identifier information, in the hardware information storehouse of presetting, extracts the corresponding hardware parameter information.
In a kind of preferred embodiment of the present invention; Said hardware identifier information comprises vendor id and hardware device ID; Said bottom hardware comprises system bus, system management Basic Input or Output System (BIOS) SMBIOS and/or peripheral port, and said bottom hardware visit submodule specifically comprises:
System bus traversal submodule is used for the Ergodic Theory bus, and said 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 is used for the information that reading system is managed Basic Input or Output System (BIOS) SMBIOS;
And/or peripheral port visit submodule is used to visit peripheral port, initiates the I/O operation with corresponding peripheral hardware.
In a kind of preferred embodiment of the present invention, said hardware information contrast module, and alarm module is accomplished on current user equipment.
With reference to figure 6, show a kind of hardware detection of the present invention structured flowchart of the generating apparatus embodiment 2 of warning automatically, specifically can comprise with lower module:
The first source hardware information acquisition module 601 is used for the bottom hardware through calling party equipment, as first source that hardware information obtains, obtains the hardware information of current user equipment;
Second source hardware information acquisition module 602 is used for the second source that obtains from hardware information, obtains the hardware information of same user device, and said second source is for obtaining the source with the different hardware information in first source;
In a kind of preferred embodiment of the present invention, said second source hardware information acquisition module can comprise: system hardware information is obtained submodule, is used to obtain the hardware information of the operating system feedback that subscriber equipment installs.
In another kind of preferred embodiment of the present invention; Said second source hardware information acquisition module can comprise: the system interface hardware information obtains submodule; The application programming interfaces API or the Windows management regulation WMI that are used for the Windows operating system that calling party equipment installed; And; Hardware drive program, the hardware information of acquisition current user equipment.
Information uploading module 603 be used for the hardware information with said first source, and said second-source hardware information uploads onto the server.
Hardware information contrast module 604, whether be used to contrast said first hardware information of originating consistent with second-source hardware information; If, then execution module 605 and module 606; If not, execution module 607 then.
Prestored information acquisition module 605 is used for said subscriber equipment and has terminal iidentification, obtains the hardware information of its relative user equipment that prestores from server end according to said terminal iidentification;
Prestored information contrast module 606 is used for hardware information or second-source hardware information with said first source, and the hardware information that prestores with said server compares, if inconsistent, then generates alarm.
Alarm module 607 is used to generate alarm.
Hardware information update module 608 is used for the hardware information according to said subscriber equipment first source, the hardware information of the relative user equipment that update service device end prestores.
In a kind of preferred embodiment of the present invention, said hardware information contrast module, and alarm module is accomplished by server.
With reference to figure 7, show a kind of hardware detection of the present invention structured flowchart of the device embodiment 3 of warning automatically, specifically can comprise with lower module:
The first source hardware information acquisition module 701 is used for the bottom hardware through calling party equipment, as first source that hardware information obtains, obtains the hardware information of current user equipment;
Second source hardware information acquisition module 702 is used for the second source that obtains from hardware information, obtains the hardware information of same user device, and said second source is for obtaining the source with the different hardware information in first source;
In a kind of preferred embodiment of the present invention, said subscriber equipment has terminal iidentification, and said second source hardware information acquisition module comprises:
The terminal iidentification hardware information obtains submodule, is used for obtaining from server end according to said terminal iidentification the hardware information of its relative user equipment that prestores.
Transmission module 703 on the terminal iidentification, are used for the hardware information in said first source and the terminal iidentification of relative user equipment are uploaded onto the server.
Hardware information contrast module 704, whether be used to contrast said first hardware information of originating consistent with second-source hardware information; If, then execution module 705 and module 706; If not, execution module 707 then.
Operation system information acquisition module 705 is used to obtain the hardware information of the operating system feedback that subscriber equipment installs.
Operation system information contrast module 706 is used for hardware information or second-source hardware information with said first source, and the hardware information that feeds back with said operating system compares, if inconsistent, then generates alarm.
Alarm module 707 is used to generate alarm.
In a kind of preferred embodiment of the present invention, said hardware information contrast module, and alarm module is accomplished by server.
Hardware information update module 708 is used for the hardware information according to said subscriber equipment first source, the hardware information of the relative user equipment that update service device end prestores.
With reference to figure 8, show a kind of hardware detection of the present invention structured flowchart of the device embodiment 4 of warning automatically, specifically can comprise with lower module:
The first source hardware information acquisition module 801 is used for the bottom hardware through calling party equipment, as first source that hardware information obtains, obtains the hardware information of current user equipment;
Second source hardware information acquisition module 802 is used for the second source that obtains from hardware information, obtains the hardware information of same user device, and said second source is for obtaining the source with the different hardware information in first source;
In a kind of preferred embodiment of the present invention, said subscriber equipment has terminal iidentification, and said second source hardware information acquisition module comprises:
The terminal iidentification hardware information obtains submodule, is used for obtaining from server end according to said terminal iidentification the hardware information of its relative user equipment that prestores.
Transmission module 803 on the terminal iidentification, are used for the hardware information in said first source and the terminal iidentification of relative user equipment are uploaded onto the server.
Hardware information contrast module 804, whether be used to contrast said first hardware information of originating consistent with second-source hardware information; If, then execution module 805 and module 806; If not, execution module 807 then.
Operating system interface information acquisition module 805, the application programming interfaces API or the Windows management regulation WMI of the Windows operating system that is used for being installed through calling party equipment, and hardware drive program obtains the hardware information of current user equipment;
Operating system interface information contrast module 806 is used for hardware information or second-source hardware information with said first source, compares with the hardware information that is obtained, if inconsistent, then generates alarm.
Alarm module 807 is used to generate alarm.
In a kind of preferred embodiment of the present invention, said hardware information contrast module, and alarm module is accomplished by server.
Hardware information update module 808 is used for the hardware information according to said subscriber equipment first source, the hardware information of the relative user equipment that update service device end prestores.
The embodiment of the invention not only can be applied to can also be applied to the applied environment of client-server in the applied environment of single device, perhaps further is applied in the applied environment based on cloud.
Because said device embodiment is basically corresponding to preceding method embodiment, 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.Module, submodule and unit related in apparatus of the present invention embodiment and the system embodiment can be software, can be hardware, also can be the combination of software and hardware.
The present invention 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 distributed computing environment of above any system or equipment or the like.
The present invention 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 distributed computing environment, put into practice the present invention, in these distributed computing environment, by through communication network connected teleprocessing equipment execute the task.In distributed computing environment, 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.
At last; Also need to prove; In this article; Relational terms such as first and second grades only is used for an entity or operation are made a distinction with another entity or operation, and not necessarily requires or hint relation or the order that has any this reality between these entities or the operation.And; 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 method that a kind of hardware detection provided by the present invention is automatically reported to the police and a kind of hardware detection device of reporting to the police automatically carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.