CN105843721B - A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk - Google Patents
A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk Download PDFInfo
- Publication number
- CN105843721B CN105843721B CN201610383444.7A CN201610383444A CN105843721B CN 105843721 B CN105843721 B CN 105843721B CN 201610383444 A CN201610383444 A CN 201610383444A CN 105843721 B CN105843721 B CN 105843721B
- Authority
- CN
- China
- Prior art keywords
- read
- usb flash
- flash disk
- write
- range
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/24—Marginal checking or other specified testing methods not covered by G06F11/26, e.g. race tests
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06K—GRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
- G06K19/00—Record carriers for use with machines and with at least a part designed to carry digital markings
- G06K19/06—Record carriers for use with machines and with at least a part designed to carry digital markings characterised by the kind of the digital marking, e.g. shape, nature, code
- G06K19/067—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components
- G06K19/07—Record carriers with conductive marks, printed circuits or semiconductor circuit elements, e.g. credit or identity cards also with resonating or responding marks without active components with integrated circuit chips
- G06K19/077—Constructional details, e.g. mounting of circuits in the carrier
- G06K19/0772—Physical layout of the record carrier
- G06K19/07732—Physical layout of the record carrier the record carrier having a housing or construction similar to well-known portable memory devices, such as SD cards, USB or memory sticks
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Debugging And Monitoring (AREA)
Abstract
The present invention discloses a kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk, the method includes:After receiving the systematic parameter detection operation that user is triggered by the computer, the systematic parameter of the USB flash disk is detected, the systematic parameter includes the actual capacity of the USB flash disk, system performance parameter;Using the computer screen curtain, the systematic parameter of the USB flash disk is shown to user.The present invention is detected the true systematic parameter of USB flash disk and feeds back to user.After USB flash disk on the market is detected using the systematic parameter detection method of the present invention, user can identify whether USB flash disk manufacturer fakes, and limit the deception consumer behaviour of USB flash disk manufacturer to a certain extent.
Description
Technical field
The present invention relates to data processing fields, and in particular to a kind of systematic parameter detection method of USB flash disk, device and a kind of U
Disk.
Background technology
The movable storage devices such as USB flash disk are very common storage devices, and due to its feature easy to carry, user usually will
Its first choice as mobile storage demand.
But USB flash disk manufactures at present, selling market is lack of standardization, the USB flash disk that user buys is often actual capacity and is less than USB flash disk factory
The capacity of trade mark note, this deceit practiced against consumers would generally allow user oneself to check.
So being taken advantage of at present to the above-mentioned of USB flash disk manufacturer there is an urgent need for a kind of method being detected to the true systematic parameter of USB flash disk
It deceives consumer behaviour and carries out a degree of limitation.
Invention content
The present invention provides a kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disks, can be to the true system of USB flash disk
System parameter is detected, and feeds back to user.
The present invention provides a kind of systematic parameter detection method of USB flash disk, USB flash disk is connected with computer, the method includes:
After receiving the systematic parameter detection operation that user triggered by the computer, the system that detects the USB flash disk
Parameter, the systematic parameter include the actual capacity of the USB flash disk, system performance parameter;
Using the computer screen curtain, the systematic parameter of the USB flash disk is shown to user.
Preferably, the systematic parameter of the detection USB flash disk, including:
Obtain manufacturer's marked capacity of the USB flash disk;
It is read-write range with manufacturer's marked capacity, operation is written and read to the USB flash disk;
If normal to the read-write operation of the USB flash disk, it is determined that the actual capacity of the USB flash disk is that manufacturer calibration is held
Amount.
Preferably, the method further includes:
If the read-write operation to the USB flash disk is abnormal, USB flash disk described in computer screen curtain prompt user is utilized
Manufacturer's marked capacity be not actual capacity.
Preferably, abnormal to the read-write operation of the USB flash disk if being read-write range with manufacturer's marked capacity, then institute
The method of stating further includes S1, S2, S3, S4:
S1:New read-write range is redefined, the upper limit of the new read-write range is the read-write of a preceding read-write operation
Any value in range, lower limit are the lower limits of the read-write range of a preceding read-write operation;
S2:Judge whether the new read-write range is less than preset range threshold value, if the new read-write range is less than
Preset range threshold value then executes S4, is otherwise written and read operation to the USB flash disk with the new read-write range;If with described
New read-write range is written and read operation exception to the USB flash disk, then re-executes S1, if with the new read-write range to institute
It states USB flash disk and is written and read operation normally, then execute S3;
S3:New read-write range is redefined, the lower limit of the new read-write range is the read-write of a preceding read-write operation
When the upper limit of the upper limit of range, the new read-write range is a preceding read-write operation exception upper limit of read-write range with it is preceding once
Any value between the upper limit of range is read and write when read-write operation is normal;Execute S2.
S4:Using the lower limit of the new read-write range as read-write operation starting point, operation is written and read to the USB flash disk, it will be first
It is secondary actual capacity of the corresponding numerical value as USB flash disk when exception occur.
Preferably, the system performance parameter includes the element model in the read or write speed of the USB flash disk, the USB flash disk.
Preferably, the systematic parameter of the detection USB flash disk, including:
By executing disk read-write operation to the USB flash disk, the read or write speed of the USB flash disk is obtained.
Preferably, the systematic parameter of the detection USB flash disk, including:
Detect the model of the USB flash disk chips.
The present invention also provides a kind of systematic parameter detection device of USB flash disk, USB flash disk is connected with computer, the detection device
Including systematic parameter detection module and display module;
The systematic parameter detection module, for being detected in the systematic parameter for receiving user and being triggered by the computer
After operation, the systematic parameter of the USB flash disk is detected, the systematic parameter includes the actual capacity of the USB flash disk, system performance parameter;
The systematic parameter of the USB flash disk is shown to use by the display module for utilizing the computer screen curtain
Family.
Preferably, the systematic parameter detection module includes the first acquisition submodule, the first read-write submodule and determines son
Module;
First acquisition submodule, manufacturer's marked capacity for obtaining the USB flash disk;
The first read-write submodule is written and read the USB flash disk for being read-write range with manufacturer's marked capacity
Operation;
The determination sub-module, for when the first read-write submodule is normal to the read-write operation of the USB flash disk, determining
The actual capacity of the USB flash disk is manufacturer's marked capacity.
Preferably, the systematic parameter detection module further includes prompting submodule;
The prompting submodule, in read-write operation exception of the first read-write submodule to the USB flash disk, utilizing
Manufacturer's marked capacity of USB flash disk is not actual capacity described in the computer screen curtain prompt user.
Preferably, described device further includes:
First determining module, for redefining new read-write range, the upper limit of the new read-write range is preceding primary
Any value within the scope of the read-write of read-write operation, lower limit are the lower limits of the read-write range of a preceding read-write operation;
Judgment module, for judging whether the new read-write range is less than preset range threshold value, if the new reading
It writes range and is less than preset range threshold value, then trigger third determining module, otherwise the USB flash disk is carried out with the new read-write range
Read-write operation;If being written and read operation exception to the USB flash disk with the new read-write range, first is true described in retriggered
Cover half block triggers the second determining module if being written and read operation normally to the USB flash disk with the new read-write range;
Second determining module, for redefining new read-write range, the lower limit of the new read-write range is preceding primary
The upper limit of the upper limit of the read-write range of read-write operation, the new read-write range reads and writes range when being a preceding read-write operation exception
The upper limit and any value when a normal preceding read-write operation between the upper limit of read-write range;Trigger the judgment module.
Third determining module, for using the lower limit of the new read-write range as read-write operation starting point, being carried out to the USB flash disk
Read-write operation will first appear when exception corresponding numerical value as the actual capacity of the USB flash disk.
Preferably, the system performance parameter includes the element model in the read or write speed of the USB flash disk, the USB flash disk.
Preferably, the systematic parameter detection module further includes read or write speed acquisition submodule;
The read or write speed acquisition submodule, for by executing disk read-write operation to the USB flash disk, obtaining the USB flash disk
Read or write speed.
Preferably, the systematic parameter detection module further includes chip detection sub-module;
The chip detection sub-module, the model for detecting the USB flash disk chips.
The present invention also provides a kind of USB flash disk, above-mentioned systematic parameter detection device is installed in the USB flash disk.
In the systematic parameter detection method of USB flash disk provided by the invention, USB flash disk is connected with computer, it is logical receiving user
After crossing the systematic parameter detection operation of the computer triggering, the systematic parameter of the USB flash disk is detected, the systematic parameter includes institute
State actual capacity, the system performance parameter of USB flash disk;Using the computer screen curtain, the systematic parameter of the USB flash disk is shown
To user.The present invention is detected the true systematic parameter of USB flash disk and feeds back to user.That is, USB flash disk on the market utilizes
After the systematic parameter detection method of the present invention is detected, user can identify whether USB flash disk manufacturer fakes, to a certain degree the upper limit
The deception consumer behaviour of Zhi LiaoUPan manufacturers.
Description of the drawings
In order to more clearly explain the technical solutions in the embodiments of the present application, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, the accompanying drawings in the following description is only some embodiments of the present application, for
For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is a kind of flow chart of the systematic parameter detection method of USB flash disk provided in an embodiment of the present invention;
Fig. 2 is a kind of method flow diagram of the actual capacity of detection USB flash disk provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of the systematic parameter detection device of USB flash disk provided in an embodiment of the present invention;
Fig. 4 is the structural schematic diagram of systematic parameter detection module 110 provided in an embodiment of the present invention.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
The introduction of embodiment particular content is carried out below.
An embodiment of the present invention provides a kind of systematic parameter detection methods of USB flash disk to be carried for the embodiment of the present invention with reference to figure 1
A kind of flow chart of the systematic parameter detection method of the USB flash disk supplied.The USB flash disk of progress systematic parameter detection is needed in the embodiment of the present invention
It is connected with a computer, specifically, the method includes:
S101:After receiving the systematic parameter detection operation that user is triggered by the computer, the USB flash disk is detected
Systematic parameter, the systematic parameter include the actual capacity of the USB flash disk, system performance parameter;
S102:Using the computer screen curtain, the systematic parameter of the USB flash disk is shown to user.
In practical application, the systematic parameter detection method of the USB flash disk of the embodiment of the present invention can utilize executable program to realize
, after the USB flash disk is inserted into the USB interface of computer, the executable program in the USB flash disk is visible user, Yong Hutong
It crosses and double-clicks the executable program, the operation of the systematic parameter of USB flash disk described in detection trigger.Specifically, the embodiment of the present invention carries at present
The systematic parameter detection method of the USB flash disk of confession can detect the actual capacity of USB flash disk, system performance.With the increase of demand, the present invention
Embodiment can also detect the other systems parameter of USB flash disk, not be limited herein.
Theoretically, if the capacity of manufacturer's calibration is exactly the actual capacity of USB flash disk, when being written and read operation to the USB flash disk
Can take manufacturer's marked capacity as read-write range;If the capacity of manufacturer's calibration is more than the actual capacity of USB flash disk, marked with manufacturer
Constant volume is to read and write range can be abnormal when the read-write operation of USB flash disk.So the embodiment of the present invention utilizes These characteristics,
Whether manufacturer's marked capacity to USB flash disk is that actual capacity is detected.
Specifically, if with manufacturer's marked capacity be read-write range, to the USB flash disk be written and read operation do not occur it is different
Often, then inform that user manufacturer marked capacity is accurate using the computer screen curtain.If demarcated with the manufacturer
Capacity is read-write range, when to the read-write operation exception of the USB flash disk, described in computer screen curtain prompt user
Manufacturer's marked capacity of USB flash disk is not actual capacity.
The embodiment of the present invention, can be to the practical appearance of the USB flash disk when the manufacturer's marked capacity for determining USB flash disk is not actual capacity
Amount is detected.Specifically, with reference to figure 2, for a kind of method flow of the actual capacity of detection USB flash disk provided in an embodiment of the present invention
Figure, wherein will take manufacturer's marked capacity as read-write range, to abnormal the holding as this method of the read-write operation of the USB flash disk
Row premise, the method includes:
S201:New read-write range is redefined, the upper limit of the new read-write range is the reading of a preceding read-write operation
Any value in range is write, lower limit is the lower limit of the read-write range of a preceding read-write operation.
S202:Judge whether the new read-write range is less than preset range threshold value, if the new read-write range is small
In preset range threshold value, then S205 is executed, S203 is otherwise executed.
S203:Operation is written and read to the USB flash disk with the new read-write range, if with the new read-write range pair
The USB flash disk is written and read operation exception, then re-executes S201, if read the USB flash disk with the new read-write range
Write operation is normal, then executes S204.
S204:New read-write range is redefined, the lower limit of the new read-write range is the reading of a preceding read-write operation
Write the upper limit of range, the upper limit of the new read-write range read and write when being a preceding read-write operation exception upper limit of range with it is previous
Any value when secondary read-write operation is normal between the upper limit of read-write range;Execute S202.
S205:Using the lower limit of the new read-write range as read-write operation starting point, operation is written and read to the USB flash disk, it will
First appear actual capacity of the corresponding numerical value as USB flash disk when exception.
By taking a kind of manufacturer's marked capacity is the USB flash disk of 16G as an example, the actual capacity of detection USB flash disk provided in an embodiment of the present invention
Method in, it is assumed that 16G be the USB flash disk actual capacity, to the USB flash disk carry out disk read-write operation, if gone out in read-write operation
Now abnormal (such as capacity not enough), then can determine that manufacturer's marked capacity of the USB flash disk is problematic.At this point, redefining to the USB flash disk
It is written and read the read-write range of operation, such as assumes that the actual capacity of the USB flash disk is 12G again, is read-write range with 0-12G, to the U
Disk carries out disk read-write operation.If being written and read operation as the actual capacity of USB flash disk using 12G still there is read-write exception, it is determined that
The actual capacity of the USB flash disk is less than 12G, continues the read-write ranging from 0-8G for determining the USB flash disk, according to aforesaid way constantly to the USB flash disk
Actual capacity carry out approaching test, until to be less than preset range threshold value (upper such as read-write range for finally determining read-write range
2) difference of lower limit is less than.
After determining the read-write range less than preset range threshold value, in order to further be accurately determined the practical appearance of the USB flash disk
Amount is to belong to the accurate value of which of the read-write range, and the embodiment of the present invention is read-write starting point with the lower limit of the read-write range
Operation is written and read to the USB flash disk, once there is exception during read-write, then corresponding numerical value when exception will be first appeared and make
For the actual capacity of the USB flash disk, the computer screen curtain being connect with the USB flash disk can be utilized to show the actual capacity of the USB flash disk
To user.
The embodiment of the present invention is to further including the inspection to read or write speed, the element model of USB flash disk etc. in the systematic parameter detection of USB flash disk
It surveys.In view of user is to the understanding demand of the various systematic parameters of the USB flash disk bought, USB flash disk provided in an embodiment of the present invention is
Parameter detection method of uniting can also obtain the read or write speed of the USB flash disk by executing disk read-write operation to the USB flash disk.
In practical application, by executing disk read-write operation to the USB flash disk, the USB flash disk is executed in statistics certain time
The number of disk read-write operation, and then obtain the read or write speed of the USB flash disk.
In addition, the embodiment of the present invention can also detect the model of USB flash disk chips.
In the systematic parameter detection method of USB flash disk provided in an embodiment of the present invention, USB flash disk is connected with computer, is being received
After the systematic parameter detection that user is triggered by the computer operates, the systematic parameter of the USB flash disk, the systematic parameter are detected
Actual capacity, system performance parameter including the USB flash disk;Using the computer screen curtain, the system of the USB flash disk is joined
Number is shown to user.The embodiment of the present invention is detected the true systematic parameter of USB flash disk and feeds back to user.That is, city
After USB flash disk on face is detected using the systematic parameter detection method of the embodiment of the present invention, user can identify that USB flash disk manufacturer is
No fraud limits the deception consumer behaviour of USB flash disk manufacturer to a certain extent.
An embodiment of the present invention provides a kind of systematic parameter detection devices of USB flash disk to be carried for the embodiment of the present invention with reference to figure 3
A kind of structural schematic diagram of the systematic parameter detection device of the USB flash disk supplied.The USB flash disk is connected with computer, the systematic parameter inspection
It includes systematic parameter detection module 310 and display module 320 to survey device 300.
The systematic parameter detection module 310, in the systematic parameter for receiving user and being triggered by the computer
After detection operation, the systematic parameter of the USB flash disk is detected, the systematic parameter includes the actual capacity of the USB flash disk, system performance ginseng
Number.
The display module 320 shows the systematic parameter of the USB flash disk for utilizing the computer screen curtain
To user.
The systematic parameter detection device of USB flash disk provided in an embodiment of the present invention can be installed in USB flash disk, will be equipped with the inspection
After the USB flash disk of survey device is connected with any one computer, the detection device can detect the systematic parameter of the USB flash disk.Separately
Outside, the systematic parameter detection device of the USB flash disk can also be installed in computer, for pair USB flash disk being connected with the computer into
Row detection.
It is the structural schematic diagram of systematic parameter detection module 310 provided in an embodiment of the present invention in addition, with reference to figure 4.This hair
The systematic parameter detection module 310 that bright embodiment provides is including the first acquisition submodule 311, first read-write submodule 312 and really
Stator modules 313;
Specifically, first acquisition submodule 311, manufacturer's marked capacity for obtaining the USB flash disk;
The first read-write submodule 312 carries out the USB flash disk for being read-write range with manufacturer's marked capacity
Read-write operation;
The determination sub-module 313 is used for when the first read-write submodule is normal to the read-write operation of the USB flash disk,
Determine that the actual capacity of the USB flash disk is manufacturer's marked capacity.
The systematic parameter detection module 310 further includes prompting submodule 314;
The prompting submodule 314, for abnormal to the read-write operation of the USB flash disk in the first read-write submodule 312
When, manufacturer's marked capacity using USB flash disk described in computer screen curtain prompt user is not actual capacity.
In addition, the embodiment of the present invention is not when the manufacturer's marked capacity for determining USB flash disk is not actual capacity, it can be further right
The actual capacity of the USB flash disk is detected.Correspondingly, described device further includes:
First determining module, for redefining new read-write range, the upper limit of the new read-write range is preceding primary
Any value within the scope of the read-write of read-write operation, lower limit are the lower limits of the read-write range of a preceding read-write operation;
Judgment module, for judging whether the new read-write range is less than preset range threshold value, if the new reading
It writes range and is less than preset range threshold value, then trigger third determining module, otherwise the USB flash disk is carried out with the new read-write range
Read-write operation;If being written and read operation exception to the USB flash disk with the new read-write range, first is true described in retriggered
Cover half block triggers the second determining module if being written and read operation normally to the USB flash disk with the new read-write range;
Second determining module, for redefining new read-write range, the lower limit of the new read-write range is preceding primary
The upper limit of the upper limit of the read-write range of read-write operation, the new read-write range reads and writes range when being a preceding read-write operation exception
The upper limit and any value when a normal preceding read-write operation between the upper limit of read-write range;Trigger the judgment module.
Third determining module, for using the lower limit of the new read-write range as read-write operation starting point, being carried out to the USB flash disk
Read-write operation will first appear when exception corresponding numerical value as the actual capacity of the USB flash disk.
The embodiment of the present invention is to further including the inspection to read or write speed, the element model of USB flash disk etc. in the systematic parameter detection of USB flash disk
It surveys.In view of user is to the understanding demand of the various systematic parameters of the USB flash disk bought, systematic parameter provided in an embodiment of the present invention
Detection module further includes read or write speed acquisition submodule;
The read or write speed acquisition submodule, for by executing disk read-write operation to the USB flash disk, obtaining the USB flash disk
Read or write speed.
The systematic parameter detection module further includes chip detection sub-module;
The chip detection sub-module, the model for detecting the USB flash disk chips.
The embodiment of the present invention additionally provides a kind of USB flash disk, specifically, above system parameter detection device is installed on the USB flash disk,
It is detected for the systematic parameter of itself to the USB flash disk.The function of the specific detection device is referred in above-described embodiment
Description.
In short, the systematic parameter detection device of USB flash disk provided in an embodiment of the present invention, can be installed in USB flash disk, and the U
Disk is connected with computer.Wherein, the detection device includes systematic parameter detection module and display module;The systematic parameter inspection
Module is surveyed, for after receiving the systematic parameter detection operation that user is triggered by the computer, detect the USB flash disk to be
System parameter, the systematic parameter includes the actual capacity of the USB flash disk, system performance parameter;The display module, for utilizing institute
Computer screen curtain is stated, the systematic parameter of the USB flash disk is shown to user.The embodiment of the present invention is utilized and is installed on USB flash disk
Systematic parameter detection device the true systematic parameter of USB flash disk is detected and feeds back to user.That is, once on the market
USB flash disk the systematic parameter detection device of the embodiment of the present invention is installed, user can identify whether USB flash disk manufacturer fakes, centainly
The deception consumer behaviour of USB flash disk manufacturer is limited in degree.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.Those of ordinary skill in the art are not
In the case of making the creative labor, you can to understand and implement.
It should be noted that herein, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also include other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk is provided for the embodiments of the invention above to carry out
It is discussed in detail, principle and implementation of the present invention are described for specific case used herein, above example
Explanation be merely used to help understand the present invention method and its core concept;Meanwhile for those of ordinary skill in the art,
According to the thought of the present invention, there will be changes in the specific implementation manner and application range, in conclusion in this specification
Appearance should not be construed as limiting the invention.
Claims (11)
1. a kind of systematic parameter detection method of USB flash disk, which is characterized in that USB flash disk is connected with computer, the method includes:
After receiving the systematic parameter detection operation that user is triggered by the computer, the systematic parameter of the USB flash disk is detected,
The systematic parameter includes the actual capacity of the USB flash disk, system performance parameter;
The systematic parameter of the detection USB flash disk, including:
Obtain manufacturer's marked capacity of the USB flash disk;
It is read-write range with manufacturer's marked capacity, operation is written and read to the USB flash disk;
If normal to the read-write operation of the USB flash disk, it is determined that the actual capacity of the USB flash disk is manufacturer's marked capacity;
If being read-write range with manufacturer's marked capacity, abnormal to the read-write operation of the USB flash disk, then the method further includes
S1、S2、S3、S4:
S1:New read-write range is redefined, the upper limit of the new read-write range is the read-write range of a preceding read-write operation
Interior any value, lower limit are the lower limits of the read-write range of a preceding read-write operation;
S2:Judge whether the new read-write range is less than preset range threshold value, is preset if the new read-write range is less than
Range threshold then executes S4, is otherwise written and read operation to the USB flash disk with the new read-write range;If with described new
Read-write range is written and read operation exception to the USB flash disk, then S1 is re-executed, if with the new read-write range to the U
Disk is written and read operation normally, then executes S3;
S3:New read-write range is redefined, the lower limit of the new read-write range is the read-write range of a preceding read-write operation
The upper limit, the upper limit of read-write range and preceding primary read-write when the upper limit of the new read-write range is a preceding read-write operation exception
Any value between the upper limit of range is read and write when operating normal;Execute S2;
S4:Using the lower limit of the new read-write range as read-write operation starting point, operation is written and read to the USB flash disk, will be gone out for the first time
Actual capacity of the corresponding numerical value as USB flash disk when now abnormal;
Using the computer screen curtain, the systematic parameter of the USB flash disk is shown to user.
2. system according to claim 1 parameter detection method, which is characterized in that the method further includes:
If the read-write operation to the USB flash disk is abnormal, the factory of USB flash disk described in computer screen curtain prompt user is utilized
Trade mark constant volume is not actual capacity.
3. system according to claim 1 parameter detection method, which is characterized in that the system performance parameter includes described
Element model in the read or write speed of USB flash disk, the USB flash disk.
4. systematic parameter detection method according to claim 3, which is characterized in that the system ginseng of the detection USB flash disk
Number, including:
By executing disk read-write operation to the USB flash disk, the read or write speed of the USB flash disk is obtained.
5. systematic parameter detection method according to claim 3, which is characterized in that the system ginseng of the detection USB flash disk
Number, including:
Detect the model of the USB flash disk chips.
6. a kind of systematic parameter detection device of USB flash disk, which is characterized in that USB flash disk is connected with computer, and the detection device includes being
Parameter detection module of uniting and display module;
The systematic parameter detection module, for detecting operation in the systematic parameter for receiving user and triggering by the computer
Afterwards, the systematic parameter of the USB flash disk is detected, the systematic parameter includes the actual capacity of the USB flash disk, system performance parameter;
The systematic parameter detection module includes the first acquisition submodule, the first read-write submodule and determination sub-module;
First acquisition submodule, manufacturer's marked capacity for obtaining the USB flash disk;
The first read-write submodule is written and read behaviour for being read-write range with manufacturer's marked capacity to the USB flash disk
Make;
The determination sub-module, described in when the first read-write submodule is normal to the read-write operation of the USB flash disk, determining
The actual capacity of USB flash disk is manufacturer's marked capacity;
The systematic parameter detection module further includes:First determining module, judgment module, the second determining module and third determine mould
Block;
First determining module, for redefining new read-write range, the upper limit of the new read-write range is preceding primary
Any value within the scope of the read-write of read-write operation, lower limit are the lower limits of the read-write range of a preceding read-write operation;
The judgment module, for judging whether the new read-write range is less than preset range threshold value, if the new reading
It writes range and is less than preset range threshold value, then trigger third determining module, otherwise the USB flash disk is carried out with the new read-write range
Read-write operation;If being written and read operation exception to the USB flash disk with the new read-write range, first is true described in retriggered
Cover half block triggers the second determining module if being written and read operation normally to the USB flash disk with the new read-write range;
Second determining module, for redefining new read-write range, the lower limit of the new read-write range is preceding primary
The upper limit of the upper limit of the read-write range of read-write operation, the new read-write range reads and writes range when being a preceding read-write operation exception
The upper limit and any value when a normal preceding read-write operation between the upper limit of read-write range;Trigger the judgment module;
The third determining module, for using the lower limit of the new read-write range as read-write operation starting point, being carried out to the USB flash disk
Read-write operation will first appear when exception corresponding numerical value as the actual capacity of the USB flash disk;
The systematic parameter of the USB flash disk is shown to user by the display module for utilizing the computer screen curtain.
7. systematic parameter detection device according to claim 6, which is characterized in that the systematic parameter detection module also wraps
Include prompting submodule;
The prompting submodule, for when the first read-write submodule is to the read-write operation exception of the USB flash disk, using described
It is not actual capacity that computer screen curtain, which prompts manufacturer's marked capacity of USB flash disk described in user,.
8. systematic parameter detection device according to claim 6, which is characterized in that the system performance parameter includes described
Element model in the read or write speed of USB flash disk, the USB flash disk.
9. systematic parameter detection device according to claim 8, which is characterized in that the systematic parameter detection module also wraps
Include read or write speed acquisition submodule;
The read or write speed acquisition submodule, for by executing disk read-write operation to the USB flash disk, obtaining the reading of the USB flash disk
Writing rate.
10. systematic parameter detection device according to claim 9, which is characterized in that the systematic parameter detection module is also
Including chip detection sub-module;
The chip detection sub-module, the model for detecting the USB flash disk chips.
11. a kind of USB flash disk, which is characterized in that be equipped with the system ginseng described in any one of the claims 6-10 in the USB flash disk
Number detection device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610383444.7A CN105843721B (en) | 2016-06-01 | 2016-06-01 | A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610383444.7A CN105843721B (en) | 2016-06-01 | 2016-06-01 | A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105843721A CN105843721A (en) | 2016-08-10 |
CN105843721B true CN105843721B (en) | 2018-08-28 |
Family
ID=56595470
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610383444.7A Active CN105843721B (en) | 2016-06-01 | 2016-06-01 | A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105843721B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110782941B (en) * | 2019-09-12 | 2021-05-04 | 深圳市德明利技术股份有限公司 | Method, device and equipment for testing storage equipment and automatically distributing BIN |
CA3209399A1 (en) | 2021-02-24 | 2022-09-01 | Michael Thomas Pace | System and method for a digitally beamformed phased array feed |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500586A (en) * | 2013-09-26 | 2014-01-08 | 北京奇虎科技有限公司 | Method and device for detecting capacity of storage device |
CN105097042A (en) * | 2014-05-20 | 2015-11-25 | 中兴通讯股份有限公司 | Method and apparatus for processing health condition of hard disk |
-
2016
- 2016-06-01 CN CN201610383444.7A patent/CN105843721B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103500586A (en) * | 2013-09-26 | 2014-01-08 | 北京奇虎科技有限公司 | Method and device for detecting capacity of storage device |
CN105097042A (en) * | 2014-05-20 | 2015-11-25 | 中兴通讯股份有限公司 | Method and apparatus for processing health condition of hard disk |
Also Published As
Publication number | Publication date |
---|---|
CN105843721A (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109346122A (en) | The test method and device of solid state hard disk performance | |
CN111868686B (en) | Method for exporting application program and export equipment using the same | |
CN105843721B (en) | A kind of systematic parameter detection method of USB flash disk, device and a kind of USB flash disk | |
CN109726364A (en) | Electricity consumption method for detecting abnormality, device, terminal and computer readable storage medium | |
CN110018920A (en) | A kind of detection method, device and the equipment of page presentation exception | |
CN104035321A (en) | Screen control method of smart watch and smart watch | |
CN109884427A (en) | Electrostatic detection methods and relevant apparatus | |
CN110399257A (en) | Detection method, electronic equipment and the computer readable storage medium of memory | |
CN103150098B (en) | A kind of method and device representing the image of mobile terminal shooting | |
CN110502591A (en) | A kind of data extraction method, device and equipment | |
CN103336256B (en) | WAT probe intelligent processing system and method | |
CN107366834A (en) | Water pipe leakage detection method, storage medium and electronic equipment | |
CN109559218A (en) | A kind of determination method, apparatus traded extremely and storage medium | |
CN109558297A (en) | EMS memory management process and device | |
CN109558281A (en) | A kind of test method, device and electronic equipment | |
CN107450854A (en) | The determination method and system of maximum thread under a kind of expected rate | |
CN108920338A (en) | A kind of method and terminal indicating file system state | |
CN108229975A (en) | Method, terminal device and the computer readable storage medium of terminal authentication | |
CN107133328A (en) | Pipeline buried depth accuracy checking method and device | |
CN102254569A (en) | Quad-data rate (QDR) controller and realization method thereof | |
CN108896070B (en) | Method and device for detecting sensor error in mobile equipment and terminal | |
CN110059712A (en) | The detection method and device of abnormal data | |
CN108959006A (en) | A kind of hardware detection method and its tool | |
CN105912966B (en) | A kind of Consumption Path implementation method of smart card, apparatus and system | |
US10895960B2 (en) | Recommendation method implemented in electronic device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |