CN101071389A - Formating and testing method - Google Patents

Formating and testing method Download PDF

Info

Publication number
CN101071389A
CN101071389A CN 200710130564 CN200710130564A CN101071389A CN 101071389 A CN101071389 A CN 101071389A CN 200710130564 CN200710130564 CN 200710130564 CN 200710130564 A CN200710130564 A CN 200710130564A CN 101071389 A CN101071389 A CN 101071389A
Authority
CN
China
Prior art keywords
storage device
usb storage
format
testing
random data
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.)
Granted
Application number
CN 200710130564
Other languages
Chinese (zh)
Other versions
CN100498720C (en
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.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB2007101305647A priority Critical patent/CN100498720C/en
Publication of CN101071389A publication Critical patent/CN101071389A/en
Application granted granted Critical
Publication of CN100498720C publication Critical patent/CN100498720C/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a formatting and testing method for a multi-thread operating system to format and test multiple USB storage devices. And the method comprises: firstly detecting these USB storage devices; then, obtaining pipeline control right to them; then, in a multi-thread mode, formatting them and writing a file system format; then, releasing the pipeline control right to the operating system; then, testing whether they have been successfully formatted. And the invention can save formatting and read-write test time and shorten product test course for mass production of USB storage devices.

Description

Format and method of testing
Technical field
The invention relates to a kind of USB (universal serial bus) (Universal serial bus, USB) format of storage device and method of testing, and particularly relevant for a kind of format and method of testing that can format and test a plurality of USB (universal serial bus) storage devices simultaneously.
Background technology
(Universal serial bus, USB) storage device need carry out a series of formats and readwrite tests to USB (universal serial bus) before dispatching from the factory, to guarantee the product quality of USB storage device.The format of tradition USB storage device and method of testing be used for single-threaded disc operating system (DOS) (Disk operating system, DOS).Therefore, when testing the USB storage device with traditional format and method of testing, plant operator once only can format and readwrite tests a USB storage device, therefore when a large amount of production USB storage devices are tested, above-mentioned traditional format and method of testing will be very consuming time, and cause and procrastinate going out ETCD estimated time of commencing discharging.
Summary of the invention
The present invention proposes a kind of format and method of testing, the operating system that is used for a multithreading (Multi-thread), in order to format and test a plurality of USB (universal serial bus) (Universal serial bus, USB) storage device comprises: (a) detecting USB storage device; (b) obtain pipeline (pipe) control of USB storage device; (c) the USB storage device is formatd, and write a file system format; (d) the pipeline control that discharges the USB storage device is given operating system; And (e) test the USB storage device and whether format success.
The present invention proposes a kind of format and method of testing in addition, the operating system that is used for a multithreading (Multi-thread), in order to format and test a plurality of USB (universal serial bus) (Universal serial bus, USB) storage device comprises: (a) detecting U SB storage device; (b) obtain pipeline (pipe) control of USB storage device; (c) the USB storage device is formatd, and write a file system format; (d) the pipeline control that discharges the USB storage device is given operating system; (e) the USB storage device that is formatted into merit is write one first random data; And (f) format successful USB storage device certainly and read one second random data, first random data and second random data are carried out a readwrite tests, if the identical then readwrite tests success of first random data with second random data.
Format of the present invention and method of testing when producing the USB storage device in a large number, can be saved the time of format and readwrite tests, shorten the product test time-histories.
Description of drawings
Fig. 1 illustrates the format of the embodiment of the invention and the process flow diagram of method of testing.
Fig. 2 illustrates the format of another embodiment of the present invention and the process flow diagram of method of testing.
Embodiment
For foregoing of the present invention can be become apparent, a preferred embodiment cited below particularly, and cooperate appended graphicly, be described in detail below.
Fig. 1 illustrates the format of the embodiment of the invention and the process flow diagram of method of testing, is used for the operating system of a multithreading (Multi-thread), in order to format and to test a plurality of USB (universal serial bus) (Universal serial bus, USB) storage device.The format of the embodiment of the invention and method of testing are example to be used for Windows XP version (Windows XP).In embodiments of the present invention, the USB storage device is that example explains with Sheffer stroke gate flash memory (NAND flash).
The format and the method for testing of the embodiment of the invention are described now.Please refer to Fig. 1.At first, in step S110, detecting USB storage device.When the USB storage device inserted (plug-in), Windows can see through the control end points (control endpoint) of USB storage device and detect and identification USB storage device.
Then, in step S120, obtain pipeline (pipe) control of these a little USB storage devices.In embodiments of the present invention, (Windowsdriver model, WDM) low order filter drive program (WDM lower filterdriver) is obtained the control of USB storage device to use a window driving model.
Because the embodiment of the invention is an example to be used for Windows, after detecting the USB storage device that is inserted when Windows, promptly pipeline (pipe) control of USB storage device can be handed over the internal driving program to Windows, internal driving program is controlled the USB storage device thus.Thus, just can't format the USB storage device.
Therefore, in embodiments of the present invention, after detecting the USB storage device that is inserted when Windows one, obtain at the internal driving program of Windows before the pipeline control of USB storage device, even tackle the pipeline control that obtains the USB storage device with above-mentioned low order filter drive program.This pipeline is USB storage device employed pipeline when sending and receiving data (bulk in/bulk out).
Obtain the pipeline control of USB storage device at above-mentioned low order filter drive program after, the beginning is able to the USB storage device is formatd action, and at this, format can be low-level format.In step S130,, these a little USB storage devices are formatd, and write a file system format with multithreading.This file system format for example is file configuration table 16 (File allocation table 16, FAT 16) or file configuration table 32 (FAT 32) form.
Afterwards, at step S140, the pipeline control that discharges the USB storage device is given Windows.After the USB storage device is formatd, promptly no longer need the pipeline control of USB storage device.Therefore, the pipeline control of USB storage device is discharged to Windows, that is, the pipeline control of USB storage device is handed over to the driver of the USB storage device of Windows.
Afterwards, at step S150, whether test USB storage device formats success.At this moment, the internal driving program that promptly sees through Windows is controlled the file system format that reads in the USB storage device, and verifies this file system format correctness.
Afterwards,, the USB storage device that is formatted into merit is carried out readwrite tests, could normally read and write to verify it in step S160.In embodiments of the present invention, the internal driving program that sees through Windows writes random data, and reads this random data, and whether the random data that comparison writes conforms to the random data of reading.Thus, can filter out the USB storage device of format failure and readwrite tests failure, to guarantee the product quality of USB storage device.
Fig. 2 illustrates the format of another embodiment of the present invention and the process flow diagram of method of testing.At first, in step S210, detect a plurality of USB storage devices.Then, in step S220, obtain the pipeline control of USB storage device.Afterwards, in step S230, the USB storage device is formatd action, at this, format can be low-level format, and writes a file system format.In step S240, the pipeline control that discharges the USB storage device is given operating system.
Afterwards, in step S250, test each USB storage device respectively and whether format successfully.If format and successfully then carry out step S260, respectively the USB storage device that is formatted into merit is write one first random data; In the present embodiment, the internal driving program through Windows writes random data.If the format of step S250 failure is then carried out step S280, the USB storage device of record format failure.
Then, carry out step S270, the USB storage device of the format success among the step S260 is carried out readwrite tests.Readwrite tests is from the successful USB storage device of format and reads one second random data, and whether second random data that comparison is read conforms to first random data that writes, both conform to and then represent the readwrite tests success, presentation format changes into the USB storage device of merit and can normally read and write, and then test is finished.If step S280 is then carried out in the readwrite tests failure, the USB storage device of record readwrite tests failure.
Because Windows is the multithreading operation system, therefore in the format and method of testing of above-mentioned two embodiment, all carry out with multithreading, simultaneously a plurality of USB storage devices are formatd and test whether format success.
The format of above-mentioned two embodiment and method of testing are example to be used for Windows XP version.In the practical application, format of the present invention and method of testing can be used for the operating system of any support multithreading, for example the Windows of LINUX or other version.
Though the format of above-mentioned two embodiment and method of testing are example with format and test NAND flash memory, are not limited to this in the practical application.Advance in the dispatching from the factory USB storage device of row formatization of any need, rejection gate (NOR) flash memory for example all can use the format and the method for testing of the embodiment of the invention.
The format of above-mentioned two embodiment and method of testing are used for the Windows of multithreading.The format of the embodiment of the invention and method of testing, the multithreading of available time division multiplexing formats, verifies the format correctness to a plurality of USB storage devices simultaneously, and carries out readwrite tests.Be used for single-threaded format and method of testing in comparison with tradition, the format of the embodiment of the invention and method of testing a large amount of when producing the USB storage device, can be saved the time of format and readwrite tests, shorten the product test time-histories.In addition, along with development of technology, when the storage volume of following USB storage device product is big more, use the format and the method for testing of multithreading to format and test a plurality of USB storage devices, the time of being saved will be more remarkable.
The above only is preferred embodiment of the present invention; so it is not in order to limit scope of the present invention; any personnel that are familiar with this technology; without departing from the spirit and scope of the present invention; can do further improvement and variation on this basis, so the scope that claims were defined that protection scope of the present invention is worked as with the application is as the criterion.

Claims (9)

1. one kind is formatd and method of testing, is used for the operating system of a multithreading, in order to format and to test a plurality of USB (universal serial bus) storage devices, it is characterized in that, comprising:
Step 1: detect described USB storage device;
Step 2: the pipeline control that obtains described USB storage device;
Step 3: described USB storage device is formatd, and write a file system format;
Step 4: the pipeline control that discharges described USB storage device is given this operating system;
Step 5: this USB storage device that is formatted into merit is write one first random data; And
Step 6: this USB storage device that formats is certainly successfully read one second random data, and this first random data and this second random data are carried out a readwrite tests, if identical then this readwrite tests success with this second random data of this first random data.
2. format according to claim 1 and method of testing is characterized in that, more comprise the step of this USB storage device of record format failure.
3. format according to claim 1 and method of testing is characterized in that, if different then these readwrite tests failures with this second random data of this first random data are carried out record to this USB storage device.
4. format according to claim 1 and method of testing is characterized in that, in step 4, the pipeline control of described USB storage device is given the driver of the USB storage device of this operating system.
5. format according to claim 1 and method of testing is characterized in that step 1 to step 6 is carried out with multithreading.
6. format according to claim 1 and method of testing is characterized in that, this operating system is Windows XP version.
7. format according to claim 1 and method of testing is characterized in that, this document system format is FAT16 or FAT32 form.
8. format according to claim 1 and method of testing is characterized in that, this USB storage device is a Sheffer stroke gate flash memory.
9. format according to claim 1 and method of testing is characterized in that, step 3 is that described USB storage device is carried out low-level format.
CNB2007101305647A 2007-07-16 2007-07-16 Formating and testing method Active CN100498720C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101305647A CN100498720C (en) 2007-07-16 2007-07-16 Formating and testing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101305647A CN100498720C (en) 2007-07-16 2007-07-16 Formating and testing method

Publications (2)

Publication Number Publication Date
CN101071389A true CN101071389A (en) 2007-11-14
CN100498720C CN100498720C (en) 2009-06-10

Family

ID=38898623

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101305647A Active CN100498720C (en) 2007-07-16 2007-07-16 Formating and testing method

Country Status (1)

Country Link
CN (1) CN100498720C (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996121A (en) * 2009-08-12 2011-03-30 鸿富锦精密工业(深圳)有限公司 Universal serial bus (USB) port testing device and testing method
CN104317684A (en) * 2014-09-28 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1222871C (en) * 1999-03-04 2005-10-12 英业达股份有限公司 Method for formatted disc
CN100472667C (en) * 2005-12-23 2009-03-25 中兴通讯股份有限公司 Method for detecting electronic magnetic disc

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101996121A (en) * 2009-08-12 2011-03-30 鸿富锦精密工业(深圳)有限公司 Universal serial bus (USB) port testing device and testing method
CN101996121B (en) * 2009-08-12 2014-04-23 鸿富锦精密工业(深圳)有限公司 Universal serial bus (USB) port testing device and testing method
CN104317684A (en) * 2014-09-28 2015-01-28 浪潮电子信息产业股份有限公司 Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces

Also Published As

Publication number Publication date
CN100498720C (en) 2009-06-10

Similar Documents

Publication Publication Date Title
CN103488544B (en) Detect the treating method and apparatus of slow dish
US8086919B2 (en) Controller having flash memory testing functions, and storage system and testing method thereof
US9304856B2 (en) Implementing ECC control for enhanced endurance and data retention of flash memories
CN110718264A (en) Method and device for testing information of solid state disk, computer equipment and storage medium
CN104317684A (en) Method for synchronously automatic testing of bandwidth and transmission rate of multiple USB (Universal Serial Bus) interfaces
US10607714B2 (en) Verification of storage media upon deployment
CN104660471A (en) Method for automatically testing PCIE-SSD transmitting velocity and band width under Linux
CN107844165A (en) Hard disk hot-plug realization device
CN107577549A (en) It is a kind of to store the method for testing for deleting function again
US10768852B2 (en) Batch automatic test method for solid state disks and batch automatic test device for solid state disks
CN100498720C (en) Formating and testing method
CN114067901A (en) Cluster test method, test terminal and storage medium of embedded storage chip
CN109582513B (en) JBOD test method and system based on general server
CN104020457B (en) The real-time recording device of multichannel data and the method that realizes data real time record in radar test
CN104133640B (en) From the fast quick-recovery of dormancy
CN110727399B (en) Storage array management method and device
CN112579483A (en) Data recovery method and device for shingled magnetic recording disk
CN111028881B (en) Open Block testing device, method and system
CN114356677B (en) NVMe SSD hot plug test method, device, equipment and storage medium
CN116386711B (en) Testing device and testing method for data transmission of memory device
US8972614B2 (en) Half-duplex SATA link with controlled idle gap insertion
CN117476088A (en) Flash memory testing method and testing equipment
CN114996063A (en) Stability testing method, system and equipment of NVMe SSD
US20100328814A1 (en) Control apparatus, method of controlling apparatus and computer-readable recording medium
TWI336838B (en) Method for formatting and testing usb storage devices

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant