CN109684137A - A kind of method and system for being detected to target device - Google Patents

A kind of method and system for being detected to target device Download PDF

Info

Publication number
CN109684137A
CN109684137A CN201710980064.6A CN201710980064A CN109684137A CN 109684137 A CN109684137 A CN 109684137A CN 201710980064 A CN201710980064 A CN 201710980064A CN 109684137 A CN109684137 A CN 109684137A
Authority
CN
China
Prior art keywords
detected
target device
data
essential information
hardware
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710980064.6A
Other languages
Chinese (zh)
Inventor
赵阳
缪云青
李予昂
王招凯
刘锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Aisino Corp
Original Assignee
Aisino Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Aisino Corp filed Critical Aisino Corp
Priority to CN201710980064.6A priority Critical patent/CN109684137A/en
Publication of CN109684137A publication Critical patent/CN109684137A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The invention discloses a kind of methods for being detected to hardware device and data, which comprises the acquisition request for being directed to essential information is sent to target device to be detected;Essential information is obtained from the target device to be detected;The essential information is parsed, the hardware status information of the target device to be detected is detected;According to the essential information, judge whether the target device to be detected is data hardware equipment, if the target device to be detected is data hardware equipment, sends data read command to the target device to be detected;Data are received from the target device to be detected;And the data are parsed, detect the data state info of the target device to be detected.Technical solution of the present invention not only detected hardware equipment information, but also carried out state investigation to the data of hardware device, improves detection accuracy and efficiency, has ensured the reliability that equipment uses, has very high practical value.

Description

A kind of method and system for being detected to target device
Technical field
The present invention relates to technical field of hardware test, more particularly, to one kind for carrying out to hardware device and data The method and system of detection.
Background technique
In computer application system, hardware device is that basis is also most important component part, either bottom operation System or tension management software, which require enough hardware supporteds, to be operated normally.The state of hardware itself, performance are to being Stability, reliability and the operational efficiency of system all have significant effect.
The various hardware detection tools of computer are run on, illustrate the hardware information of hardware device for user, such as produce The parameter information of product, the version information of bottom allow users to the current state that hardware device is obtained by hardware detection tool.
The prior art detects the data hardware equipment of specific applications, it usually needs professional personnel carry out judgement row It looks into, low efficiency, inspection equipment cost is high back and forth, and timeliness is low.Whether just common detection instrument only detects the essential information of hardware Often, the failure in terms of but due to often will appear data in hardware device, only detect hardware essential information be cannot Enough meet demands.There is presently no technologies for the data hardware equipment of specific applications, and judges the number in hardware device According to whether meeting the use condition of equipment and detected.
Therefore, it is necessary to a kind of technologies, to solve the problems, such as to detect hardware device and data.
Summary of the invention
The present invention provides a kind of method and system for being detected to hardware device and data, how right to solve The problem of hardware device and data are detected.
To solve the above-mentioned problems, the present invention provides a kind of method for being detected to target device, the sides Method includes:
The acquisition request for being directed to essential information is sent to target device to be detected;
Essential information is obtained from the target device to be detected;
The essential information is parsed, the hardware status information of the target device to be detected is detected;
According to the essential information, judge whether the target device to be detected is data hardware equipment, if described to be checked Survey target device is data hardware equipment, sends data read command to the target device to be detected;
Data are received from the target device to be detected;And
The data are parsed, the data state info of the target device to be detected is detected.
Preferably, further includes:
The connection of the target device to be detected is established by way of general-purpose serial bus USB interface.
Preferably, the target device connection to be detected is connected.
Preferably, pass through the essential information of inquiry INQUIRY command request target device to be detected.
Preferably, the target device to be detected is small computer system interface scsi device.
Based on another aspect of the present invention, provide a kind of to the system detected for target device, the system packet It includes:
Target device to be detected, for feeding back the essential information of the target device to be detected;And it is described for feeding back The data of target device to be detected;
Computer, for sending the acquisition request for being directed to essential information to target device to be detected;From described to be detected Target device obtains essential information;For parsing the essential information, the hardware state letter of the target device to be detected is detected Breath;According to the essential information, judge whether the target device to be detected is data hardware equipment, if the target to be detected Equipment is data hardware equipment, sends data read command to the target device to be detected;From the target device to be detected Receive data;The data are parsed, the data state info of the target device to be detected is detected.
Preferably, the computer is also used to:
The connection of the target device to be detected is established by way of general-purpose serial bus USB interface.
Preferably, the computer is for connecting the target device connection to be detected.
Preferably, the essential information that the computer passes through inquiry INQUIRY command request target device to be detected.
Preferably, the target device to be detected is small computer system interface scsi device.
The fault detection method of hardware device and data provided by technical solution of the present invention is reduced to dedicated hardware When equipment detects investigation problem, to the dependence of professional skill, the cost of inspection hardware device transport is saved, hardware is avoided The risk that important information is leaked in equipment.Technical solution of the present invention not only detected hardware equipment information, but also to hardware The data of equipment carry out state investigation, improve detection accuracy and efficiency, have ensured the reliability that equipment uses, and have very high Practical value.
Detailed description of the invention
By reference to the following drawings, exemplary embodiments of the present invention can be more fully understood by:
Fig. 1 is a kind of method flow for being detected to hardware device and data according to embodiment of the present invention Figure;
Fig. 2 is a kind of method flow for being detected to hardware device and data according to embodiment of the present invention Figure;And
Fig. 3 is a kind of system structure for being detected to hardware device and data according to embodiment of the present invention Figure.
Specific embodiment
Exemplary embodiments of the present invention are introduced referring now to the drawings, however, the present invention can use many different shapes Formula is implemented, and is not limited to the embodiment described herein, and to provide these embodiments be at large and fully disclose The present invention, and the scope of the present invention is sufficiently conveyed to person of ordinary skill in the field.Show for what is be illustrated in the accompanying drawings Term in example property embodiment is not limitation of the invention.In the accompanying drawings, identical cells/elements use identical attached Icon note.
Unless otherwise indicated, term (including scientific and technical terminology) used herein has person of ordinary skill in the field It is common to understand meaning.Further it will be understood that with the term that usually used dictionary limits, should be understood as and its The context of related fields has consistent meaning, and is not construed as Utopian or too formal meaning.
Fig. 1 is a kind of method flow for being detected to hardware device and data according to embodiment of the present invention Figure.Target device hardware to be detected is attached by the general USB interface of presently filed embodiment with computer, can be facilitated Quickly obtain the user information in hardware equipment information and hardware.Presently filed embodiment is by computer to mesh to be detected The information of marking device hardware is parsed, and is judged compared in hardware device, and detection speed is improved, if to be detected Target device hardware or data mode are out of order, and presently filed embodiment is then supplied to the corresponding solution of user.Such as Shown in Fig. 1, a kind of method 100 for being detected to hardware device and data is since step 101:
Preferably, in step 101: sending the acquisition request for being directed to essential information to target device to be detected.
Preferably, in step 102: obtaining essential information from the target device to be detected.
Preferably, in step 103: parsing essential information detects the hardware status information of target device to be detected.
Preferably, in step 104: according to essential information, judge whether target device to be detected is data hardware equipment, if Target device to be detected is data hardware equipment, sends data read command to target device to be detected.
Preferably, in step 105: receiving data from the target device to be detected.
Preferably, in step 106: being parsed to data, detect the data state info of target device to be detected.
Preferably, method 100 is before step 101 further include:
The connection of target device to be detected is established by way of general-purpose serial bus USB interface.
Preferably, a target device to be detected is connected by computer to connect.
Preferably, the essential information that computer passes through inquiry INQUIRY command request target device to be detected.
Preferably, target device to be detected is small computer system interface scsi device.
The application embodiment is with data hardware equipment Golden Taxes disk for example, client uses the detection instrument for issuing client When being detected to the state of Golden Taxes disk, for example, the issuing date of disk, the number of disk, the distribution duty paragraph of disk, the capacity of disk, disk The essential informations such as type, typically no problem;IC card status information in disk, some disks may IC card it is locked or inquire less than, It needs to prompt depot repair;There are also issuing how many ticket kinds, the issuing date of ticket kind, the limit of invoice, last time copies the tax date, disk Current time, and according to current time and last time copy that tax time reckoning goes out copy the clear card-like state of tax, the application embodiment benefit With the use state for the Golden Taxes disk that these data are extrapolated, if not influencing the use of Golden Taxes disk, the user can be prompted needs Tax is copied to declare dutiable goods;If Golden Taxes disk influences to use, for example detects that Golden Taxes disk is not issued, then prompt takes Golden Taxes disk to go to issue; If detecting that Golden Taxes disk is locked, prompt to take Golden Taxes disk disk that unlock is gone to retransmit.Presently filed embodiment, by detecting Golden Taxes disk State, judge whether Golden Taxes disk can be used, if operated, if needs reissue, if need to return factory, pass through Detection, informs user, what problem disk occurs, need how to handle.
Fig. 2 is a kind of method flow for being detected to hardware device and data according to embodiment of the present invention Figure.Fig. 2 carries out concrete example to a kind of method for being detected to hardware device and data of the application embodiment and says It is bright.
The application embodiment is directed to the data hardware equipment of specific applications, and computer machine passes through USB interface and mesh to be measured Marking device hardware is communicated, and obtains all information of hardware device item by item, computer machine is with fixed format to reading out Hardware information parsed, and the data parsed are compared with the indices that hardware operates normally, and is counting The state of viewing hardware equipment, achievees the purpose that hardware device fault detection on the hardware detection tools interfaces of calculation machine.The application A kind of method and step for being detected to hardware device and data is as follows:
1, target device to be detected is connected, equipment is opened by USB in a manner readable.
2, the essential information of INQUIRY command request target device is sent.INQUIRY order is that all scsi devices are realized Most common scsi command will return to 36 byte datas for requesting the essential information of scsi device.
3, by computer analyzing above equipment information, dedicated data hardware equipment is judged whether it is, if otherwise returning The first step, if so, continuing in next step.
4, COMPUTER DETECTION tool organizes scsi command automatically, is communicated by USB, is transmitted to hardware device, and hardware device is held The corresponding scsi command of row, readout equipment related data all return to computer, return on computers to hardware device Data carry out analysis judgment, if finding that hardware equipment information or data information are unsatisfactory for use condition in detection process Prompt is any failure on upper computer detection tools interfaces, and shows corresponding solution.
5, step 4 is repeated, until all detection projects are completed.
6, terminate detection, close target device to be detected.
In the application embodiment, wherein the first step opens equipment and at most needs to attempt how many need according to specifically answering It is determined with scene.The application should ensure that primary only one target device to be detected of connection, if applied field when equipment fault detects Jing Zhongyou SCSI hard disk, USB flash disk etc., number is also considered as into.
Fig. 3 is a kind of system structure for being detected to hardware device and data according to embodiment of the present invention Figure.As shown in figure 3, a kind of include: to the system 300 detected for hardware device and data
Target device 301 to be detected, for feeding back the essential information of target device to be detected;And it is to be detected for feeding back The data of target device;
Computer 302, for sending the acquisition request for being directed to essential information to target device to be detected;From described to be checked It surveys target device and obtains essential information;For parsing the essential information, the hardware state of the target device to be detected is detected Information;According to the essential information, judge whether the target device to be detected is data hardware equipment, if the mesh to be detected Marking device is data hardware equipment, sends data read command to the target device to be detected;It is set from the target to be detected It is standby to receive data;The data are parsed, the data state info of the target device to be detected is detected.
Preferably, computer is also used to:
The connection of target device to be detected is established by way of general-purpose serial bus USB interface.
Preferably, computer is for connecting a target device connection to be detected.
Preferably, the essential information that computer passes through inquiry INQUIRY command request target device to be detected.
Preferably, target device to be detected is small computer system interface scsi device.
The a kind of of the application embodiment implements the system 300 detected for hardware device and data and the application Mode it is a kind of corresponding to the method 100,200 detected for hardware device and data, no longer repeated herein.
The present invention is described by reference to a small amount of embodiment.However, it is known in those skilled in the art, as Defined by subsidiary Patent right requirement, in addition to the present invention other embodiments disclosed above equally fall in it is of the invention In range.
Normally, all terms used in the claims are all solved according to them in the common meaning of technical field It releases, unless in addition clearly being defined wherein.All references " one/described/be somebody's turn to do [device, component etc.] " are all opened ground At least one example being construed in described device, component etc., unless otherwise expressly specified.Any method disclosed herein Step need not all be run with disclosed accurate sequence, unless explicitly stated otherwise.

Claims (10)

1. a kind of method for being detected to target device, which comprises
The acquisition request for being directed to essential information is sent to target device to be detected;
Essential information is obtained from the target device to be detected;
The essential information is parsed, the hardware status information of the target device to be detected is detected;
According to the essential information, judge whether the target device to be detected is data hardware equipment, if the mesh to be detected Marking device is data hardware equipment, sends data read command to the target device to be detected;
Data are received from the target device to be detected;And
The data are parsed, the data state info of the target device to be detected is detected.
2. according to the method described in claim 1, further include:
The connection of the target device to be detected is established by way of general-purpose serial bus USB interface.
3. according to the method described in claim 2, the target device connection to be detected of connection one.
4. according to the method described in claim 1, passing through the basic letter of inquiry INQUIRY command request target device to be detected Breath.
5. according to the method described in claim 1, the target device to be detected is small computer system interface scsi device.
6. it is a kind of to the system detected for target device, the system comprises:
Target device to be detected, for feeding back the essential information of the target device to be detected;And it is described to be checked for feeding back Survey the data of target device;
Computer, for sending the acquisition request for being directed to essential information to target device to be detected;From the target to be detected Equipment obtains essential information;For parsing the essential information, the hardware status information of the target device to be detected is detected;Root According to the essential information, judge whether the target device to be detected is data hardware equipment, if the target device to be detected For data hardware equipment, data read command is sent to the target device to be detected;It is received from the target device to be detected Data;The data are parsed, the data state info of the target device to be detected is detected.
7. system according to claim 6, the computer is also used to:
The connection of the target device to be detected is established by way of general-purpose serial bus USB interface.
8. system according to claim 7, the computer is for connecting the target device connection to be detected.
9. system according to claim 6, the computer passes through inquiry INQUIRY command request target device to be detected Essential information.
10. system according to claim 6, the target device to be detected is that small computer system interface SCSI is set It is standby.
CN201710980064.6A 2017-10-19 2017-10-19 A kind of method and system for being detected to target device Pending CN109684137A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710980064.6A CN109684137A (en) 2017-10-19 2017-10-19 A kind of method and system for being detected to target device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710980064.6A CN109684137A (en) 2017-10-19 2017-10-19 A kind of method and system for being detected to target device

Publications (1)

Publication Number Publication Date
CN109684137A true CN109684137A (en) 2019-04-26

Family

ID=66183621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710980064.6A Pending CN109684137A (en) 2017-10-19 2017-10-19 A kind of method and system for being detected to target device

Country Status (1)

Country Link
CN (1) CN109684137A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282441A (en) * 2021-07-19 2021-08-20 北京交通大学 Hardware running state data acquisition method and hardware detection equipment

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061498A1 (en) * 2005-09-12 2007-03-15 Huey-Tyug Chua Method and System for NAND-Flash Identification without Reading Device ID Table
CN102591591A (en) * 2011-12-19 2012-07-18 杭州瑞网广通信息技术有限公司 Disk detection system, disk detection method and network storage system
CN103325424A (en) * 2012-03-23 2013-09-25 绿智慧流科技公司 Method for evaluating lifetime of flash memory
CN103645981A (en) * 2013-11-15 2014-03-19 华为技术有限公司 Hard disk identification method and system
CN104133750A (en) * 2014-08-20 2014-11-05 浪潮(北京)电子信息产业有限公司 Method and system for testing compatibility adaptability of host and storage device
CN104166613A (en) * 2013-05-20 2014-11-26 鸿富锦精密工业(深圳)有限公司 Hard disk working state monitoring system and method
CN105304144A (en) * 2015-10-30 2016-02-03 中国科学院微电子研究所 Memory error detection method and device
CN105893230A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for detecting IOPS performance of hard disks

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070061498A1 (en) * 2005-09-12 2007-03-15 Huey-Tyug Chua Method and System for NAND-Flash Identification without Reading Device ID Table
CN102591591A (en) * 2011-12-19 2012-07-18 杭州瑞网广通信息技术有限公司 Disk detection system, disk detection method and network storage system
CN103325424A (en) * 2012-03-23 2013-09-25 绿智慧流科技公司 Method for evaluating lifetime of flash memory
CN104166613A (en) * 2013-05-20 2014-11-26 鸿富锦精密工业(深圳)有限公司 Hard disk working state monitoring system and method
CN103645981A (en) * 2013-11-15 2014-03-19 华为技术有限公司 Hard disk identification method and system
CN104133750A (en) * 2014-08-20 2014-11-05 浪潮(北京)电子信息产业有限公司 Method and system for testing compatibility adaptability of host and storage device
CN105304144A (en) * 2015-10-30 2016-02-03 中国科学院微电子研究所 Memory error detection method and device
CN105893230A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Method and device for detecting IOPS performance of hard disks

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282441A (en) * 2021-07-19 2021-08-20 北京交通大学 Hardware running state data acquisition method and hardware detection equipment
CN113282441B (en) * 2021-07-19 2022-04-19 北京交通大学 Hardware running state data acquisition method and hardware detection equipment

Similar Documents

Publication Publication Date Title
CN103246602B (en) Code coverage determines method and system, code coverage detection method and system
CN111078140B (en) Nuclear power station file uploading management method and device, terminal equipment and medium
CN109656812A (en) Data quality checking method, apparatus and storage medium
US20080208780A1 (en) System and method for evaluating documents
CN112199277B (en) Defect reproduction method, device, equipment and storage medium based on browser
CN109635300A (en) Data verification method and device
CN115409590A (en) Unified account checking method, device, equipment and storage medium
CN110471912B (en) Employee attribute information verification method and device and terminal equipment
CN110020550B (en) Assessment method, device and equipment for verification platform
CN113806332B (en) Heterogeneous system integrated data processing method and device and computer equipment
CN109684137A (en) A kind of method and system for being detected to target device
CN106095647A (en) Method for monitoring voltage of Seagate hard disk in real time
CN117573552A (en) Account consistency test method, device, equipment, medium and product
US7668680B2 (en) Operational qualification by independent reanalysis of data reduction patch
CN114020813A (en) Data comparison method, device and equipment based on Hash algorithm and storage medium
CN105373622A (en) Information processing method and device
CN111405060B (en) Service influence range determining method, device, tool and electronic equipment
CN113868137A (en) Method, device and system for processing buried point data and server
CN111382159A (en) Method for processing fee information, server and computer readable medium
CN111625455A (en) Program testing method, device, equipment and medium
CN111199423A (en) User behavior track generation method, device, equipment and storage medium
CN112214495B (en) Data execution tracking method, device and equipment
CN113822046B (en) Analysis method, device, equipment and storage medium based on document test case
KR101088054B1 (en) Test system and test method for the message based communication system
Hammer Error detection in data base systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190426

RJ01 Rejection of invention patent application after publication