CN110415756B - Method and device for testing SSD label information - Google Patents

Method and device for testing SSD label information Download PDF

Info

Publication number
CN110415756B
CN110415756B CN201910702055.XA CN201910702055A CN110415756B CN 110415756 B CN110415756 B CN 110415756B CN 201910702055 A CN201910702055 A CN 201910702055A CN 110415756 B CN110415756 B CN 110415756B
Authority
CN
China
Prior art keywords
ssd
checking
log page
printing
identifier
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
Application number
CN201910702055.XA
Other languages
Chinese (zh)
Other versions
CN110415756A (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.)
Dongguan Memory Storage Technology Co ltd
Original Assignee
Dongguan Memory Storage Technology Co ltd
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 Dongguan Memory Storage Technology Co ltd filed Critical Dongguan Memory Storage Technology Co ltd
Priority to CN201910702055.XA priority Critical patent/CN110415756B/en
Publication of CN110415756A publication Critical patent/CN110415756A/en
Application granted granted Critical
Publication of CN110415756B publication Critical patent/CN110415756B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Abstract

The invention relates to a method and a device for testing SSD label information; the method comprises the following steps: building a test environment; defining variables and setting a script running environment; displaying the log page information column of the SSD through a circulation function, and comparing the log page information with the SSD label one by one; if the results are consistent, marking the result as qualified; if not, the mark is not qualified. According to the invention, the log page information of the SSD is displayed through the circulation function, then the log page information and the SSD label are compared one by one, and the result is obtained finally, so that the information inspection automation of the SSD label is realized, the test time is greatly saved, the test efficiency is improved, and the requirement can be better met.

Description

Method and device for testing SSD label information
Technical Field
The present invention relates to the technical field of SSD tag information inspection, and more particularly, to a method and apparatus for testing SSD tag information.
Background
There are many pieces of label information of the SSD, such as a serial number, a model number, and the like. This information is very important and can cause significant trouble if a sample of the wrong label information is sent to the ODM factory or customer.
In the existing technology for testing SSD label information, whether the label is consistent with the information displayed by a CDI tool or not is manually checked one by one, and in addition, the information of the label is very much, so that the time and labor are consumed; and under the condition that the number of the SSDs is large, more people are often needed to cooperate, the workload is large, time and labor are consumed, the labor cost is high, the test efficiency is low, and the requirements cannot be met.
Disclosure of Invention
The present invention is directed to overcome the drawbacks of the prior art, and provides a method and apparatus for testing SSD tag information.
In order to achieve the purpose, the invention adopts the following technical scheme:
a method of testing SSD tag information, comprising the steps of:
building a test environment;
defining variables and setting a script running environment;
displaying the log page information column of the SSD through a circulation function, and comparing the log page information with the SSD label one by one; if the results are consistent, marking the result as qualified; if not, the mark is not qualified.
The further technical scheme is as follows: the step of building the test environment comprises the following steps: the method comprises the steps of connecting a desktop host with a keyboard, a mouse and a display, electrically connecting a main board of the desktop host with a PSPA, an M.2 adapter plate and an SSD to be tested, operating Driver Master software, and executing a test script.
The further technical scheme is as follows: variables in the step of defining variables and setting script operation environment comprise test error, host LBA writing, SLC LBA writing, LCRC error and warning mark.
The further technical scheme is as follows: the step of displaying the log page information of the SSD through the loop function and comparing the log page information with the SSD label one by one comprises the following steps:
reading information of an SSD log page;
checking the SSD model;
checking the SSD serial number;
checking the SSD8S barcode;
checking the LEN identifier;
check if the SSD main flash memory and SLC buffer support writeability.
The further technical scheme is as follows: the displaying of the log page information column of the SSD in the step of displaying the log page information column of the SSD through the loop function and comparing the log page information with the SSD label one by one comprises the following steps:
the host sends a command for reading the log page to the reada buffer;
judging whether the log page is read successfully or not; if the log page is not successful, assigning the test error to be 1, and printing the log page which cannot be successfully read;
a value of the print identifier;
printing the value of the model number;
a value of a print serial number;
the value of the 8S barcode is printed.
The further technical scheme is as follows: the step of "checking SSD model" includes: judging whether the SSD model is consistent with the value of the printing model number or not; if yes, checking the SSD model correctly; if not, the SSD model is printed and the checking is incorrect; the step of "checking of SSD sequence number" includes: judging whether the values of the SSD serial number and the printing serial number are consistent; if yes, printing the SSD serial number to check to be correct; if not, the SSD serial number is printed and checked incorrectly.
The further technical scheme is as follows: the step of "inspection of SSD8S barcode" includes: judging whether the values of the SSD8S barcode and the printed SSD8S barcode are consistent; if yes, printing the SSD8S bar code to check to be correct; if not, printing the SSD8S barcode and checking that the barcode is incorrect; said step of checking the LEN identifier comprises: judging whether the values of the LEN identifier and the printing identifier are consistent; if yes, printing the LEN identifier to check the correctness; if not, print the LEN identifier to check for errors.
The further technical scheme is as follows: the step of checking whether the SSD host flash memory and SLC buffer support writable includes:
judging whether the SSD main flash memory supports writing; if yes, printing the SSD main flash memory to support writing; if not, the SSD main flash memory is printed and writing is not supported;
judging whether the SLC buffer supports writing; if yes, the print SLC buffer supports writing; if not, the print SLC buffer does not support writing.
An apparatus to test SSD tag information, comprising: the device comprises a building unit, a setting unit and a column display comparison unit;
the building unit is used for building a test environment;
the setting unit is used for defining variables and setting a script running environment;
and the column display comparison unit is used for displaying the log page information column of the SSD through a circulation function and comparing the log page information with the SSD label one by one.
The further technical scheme is as follows: the column display alignment unit comprises: the system comprises a reading module, a first checking module, a second checking module, a third checking module, a fourth checking module and a fifth checking module;
the reading module is used for reading the information of the SSD log page;
the first checking module is used for checking the SSD model;
the second checking module is used for checking the SSD serial number;
the third checking module is used for checking the SSD8S barcode;
said fourth checking module for checking the LEN identifier;
the fifth checking module is configured to check whether the SSD main flash memory and the SLC buffer support writable.
Compared with the prior art, the invention has the beneficial effects that: the log page information column of the SSD is displayed through the circulation function, then the log page information and the SSD label are compared one by one, and a result is obtained finally, so that the information inspection automation of the SSD label is realized, the test time is greatly saved, the test efficiency is improved, and the requirement can be better met.
The invention is further described below with reference to the accompanying drawings and specific embodiments.
Drawings
FIG. 1 is a flow chart of a method of testing SSD tag information in accordance with the present invention;
FIG. 2 is a block diagram of an apparatus for testing SSD tag information in accordance with the present invention.
Detailed Description
In order to more fully understand the technical content of the present invention, the technical solution of the present invention will be further described and illustrated with reference to the following specific embodiments, but not limited thereto.
As shown in fig. 1 to fig. 2, in the embodiment, as shown in fig. 1, the present invention discloses a method for testing SSD tag information, comprising the following steps:
s10, building a test environment;
s20, defining variables and setting script running environment;
s30, displaying log page (logpage) information of the SSD through a loop function, and comparing the log page information with SSD labels one by one; if the results are consistent, marking the result as qualified; if not, the mark is not qualified.
Wherein, the step of building the test environment comprises the following steps: the method comprises the steps of connecting a desktop host with a keyboard, a mouse and a display, electrically connecting a main board of the desktop host with a PSPA, an M.2 adapter plate and an SSD to be tested, operating Driver Master software, and executing a test script.
Further, in this embodiment, the operating system of the desktop host is preferably a Windows10 system, and its main function is to provide a software testing environment for testing; the PSPA is called PCIe SSD Power adapter (PCIe SSD Power adapter) in full English, is electrically connected between the M.2 adapter plate and the host desktop board, and is mainly used for driving the SSD as a Power supply; the M.2 adapter plate is electrically connected between the PSPA and the SSD to be tested and mainly used for providing an interface adapter function for information transmission of the SSD; the Driver Master provides an environment function of running and compiling for the script; the test script is mainly used for testing the SSD label information.
Wherein, the variables in the step of defining variables and setting script running environment include test error (test _ error), host LBA write (MAIN _ LBAs _ write), SLC LBA write (SLC _ LBAs _ write), LCRC error (LCRC _ Errors) and warning flag (LCRC _ Errors).
The step of displaying the log page information column of the SSD through the loop function and comparing the log page information with the SSD label one by one comprises the following steps:
reading information of an SSD log page;
checking the SSD model;
checking the SSD serial number;
checking the SSD8S barcode;
checking the LEN identifier;
check if the SSD main flash memory and SLC buffer support writeability.
Further, the step of displaying the log page information column of the SSD through the loop function and comparing the log page information with the SSD tag one by one includes the steps of:
the host sends a command to read a log page to the reada buffer, where in this embodiment, the main code is as follows:
Figure BDA0002151099760000061
Figure BDA0002151099760000071
judging whether the log page is successfully read or not; if the log page is not successful, assigning the test error to be 1, and printing the log page which cannot be successfully read;
the value of the print identifier, in this embodiment, the main code is as follows:
Figure BDA0002151099760000072
the values of the print model numbers, in the present embodiment, the main codes are as follows:
Figure BDA0002151099760000073
Figure BDA0002151099760000081
the value of the print serial number, in this embodiment, the main code is as follows:
Figure BDA0002151099760000082
the value of the 8S barcode is printed, and in this embodiment, the main codes are as follows:
Figure BDA0002151099760000083
Figure BDA0002151099760000091
the main codes written by the host LBA are as follows:
rbv "reada", 224, 16, MAIN _ LBAs _ Written// sending the 16 bytes in the reada buffer starting from the 224 logical address to the variable MAIN _ LBAs _ Written
prnf "\\ n Number of NAND sectors write to MAIN storage [% d', MAIN _ LBAs _ Written 1000// calculate and print the Number of segments already Written in the MAIN memory
prnf "\\ n Number of NAND bytes write to MAIN storage [% d', MAIN _ LBAs _ Written 512000// calculate and print the Number of bytes already Written in the MAIN memory
The main codes written by the SLC LBA are as follows:
rbv "reada", 244, 16, SLC _ LBAs _ Written// sending the 16 bytes in the reada buffer starting at 224 logical addresses to the variable SLC _ LBAs _ Written
prnf "\ n Number of NAND sectors write to SLC Buffer [% ], SLC _ LBAs _ write 1000// calculating and printing the Number of segments already Written in the SLC memory
prnf "\ n Number of NAND bytes write to SLC Buffer ═ d', SLC _ LBAs _ write 512000// calculating and printing the Number of bytes already Written in the SLC memory
rbv "reada", 240, 4, LCRC _ Errors// sending 4 bytes from 240 logical address in reada buffer to variable LCRC _ Errors
prnf "\\ n Number of LCRC and ECRC Errors [% d ]", LCRC _ Errors// Number of print check Errors
Wherein the step of "checking SSD model" includes: judging whether the SSD model is consistent with the value of the printing model number or not; if yes, checking the SSD model correctly; if not, the printing SSD model is checked incorrectly, and the main codes are as follows:
Figure BDA0002151099760000101
Figure BDA0002151099760000111
the step of "checking of SSD sequence number" includes: judging whether the values of the SSD serial number and the printing serial number are consistent; if yes, printing the SSD serial number to check to be correct; if not, the SSD serial number is printed and the checking is incorrect, and the main codes are as follows:
Figure BDA0002151099760000112
Figure BDA0002151099760000121
wherein the step of "checking SSD8S barcode" includes: judging whether the values of the SSD8S barcode and the printed SSD8S barcode are consistent; if yes, printing the SSD8S bar code to check to be correct; if not, the SSD8S bar code is printed and checked incorrectly, the main codes are as follows:
Figure BDA0002151099760000122
Figure BDA0002151099760000131
said step of checking the LEN identifier comprises: judging whether the values of the LEN identifier and the printing identifier are consistent; if yes, printing the LEN identifier to check the correctness; if not, printing the LEN identifier to check that the LEN identifier is incorrect, and the main codes are as follows:
Figure BDA0002151099760000132
Figure BDA0002151099760000141
wherein, the step of checking whether the SSD main flash memory and the SLC buffer support writable includes:
judging whether the SSD main flash memory supports writing; if yes, printing the SSD main flash memory to support writing; if not, the SSD main flash memory is printed without writing, and the main codes are as follows:
Figure BDA0002151099760000142
Figure BDA0002151099760000151
judging whether the SLC buffer supports writing; if yes, the print SLC buffer supports writing; if not, the printing SLC buffer does not support writing, and the main codes are as follows:
Figure BDA0002151099760000152
Figure BDA0002151099760000161
Figure BDA0002151099760000171
as shown in fig. 2, the present invention also discloses a device for testing SSD tag information, which includes: the device comprises a building unit 10, a setting unit 20 and a column display comparison unit 30;
the building unit 10 is used for building a test environment;
the setting unit 20 is configured to define variables and set a script running environment;
the column display comparison unit 30 is configured to display the log page information column of the SSD through a round function, and compare the log page information with the SSD tags one by one.
Wherein, the column display comparison unit 30 includes: a reading module 31, a first checking module 32, a second checking module 33, a third checking module 34, a fourth checking module 35, and a fifth checking module 36;
the reading module 31 is configured to read information of an SSD log page;
the first checking module 32 is configured to check the SSD model;
the second checking module 33 is configured to check the SSD serial number;
the third checking module 34 is configured to check the SSD8S barcode;
said fourth checking module 35, for checking LEN identifiers;
the fifth checking module 36 is configured to check whether the SSD main flash memory and the SLC buffer support writable operation.
The invention solves the problem that whether the SSD label information is consistent with the information displayed by the CDI tool needs to be checked manually in the prior art, the log page information of the SSD is displayed through the circulation function, then the log page information and the SSD label are compared one by one, and the result is obtained finally, thereby realizing the automation of information check of the SSD label, greatly saving the test time, improving the test efficiency and better meeting the requirement.
The technical contents of the present invention are further illustrated by the examples only for the convenience of the reader, but the embodiments of the present invention are not limited thereto, and any technical extension or re-creation based on the present invention is protected by the present invention. The protection scope of the invention is subject to the claims.

Claims (4)

1. A method of testing SSD tag information, comprising the steps of:
building a test environment;
defining variables and setting a script running environment;
displaying the log page information column of the SSD through a circulation function, and comparing the log page information with the SSD label one by one; if the results are consistent, marking the result as qualified; if not, marking as unqualified;
the step of building the test environment comprises the following steps: connecting a desktop host with a keyboard, a mouse and a display, electrically connecting a main board of the desktop host with a PSPA, an M.2 adapter board and an SSD to be tested, operating DriverMaster software, and executing a test script;
the variables in the step of defining variables and setting the script running environment comprise test errors, host LBA writing, SLCLBA writing, LCRC errors and warning signs;
the step of displaying the log page information of the SSD through the loop function and comparing the log page information with the SSD label one by one comprises the following steps:
reading information of an SSD log page;
checking the SSD model;
checking the SSD serial number;
performing a check of the SSD8S barcode;
checking the LEN identifier;
checking whether the SSD main flash memory and the SLC buffer support writable;
the displaying of the log page information column of the SSD in the step of displaying the log page information column of the SSD through the loop function and comparing the log page information with the SSD label one by one comprises the following steps:
the host sends a command for reading the log page to the reada buffer;
judging whether the log page is read successfully or not; if the log page is not successful, assigning the test error to be 1, and printing the log page which cannot be successfully read;
a value of the print identifier;
printing the value of the model number;
a value of a print serial number;
the value of the 8S barcode is printed.
2. The method of claim 1, wherein the step of "checking SSD model" comprises: judging whether the SSD model is consistent with the value of the printing model number or not; if yes, checking the SSD model correctly; if not, the SSD model is printed and the checking is incorrect; the step of "checking of SSD sequence number" includes: judging whether the values of the SSD serial number and the printing serial number are consistent; if yes, printing the SSD serial number to check to be correct; if not, the SSD serial number is printed and checked incorrectly.
3. The method of claim 1, wherein the step of "inspection of SSD8S barcode" comprises: determining whether the SSD8S barcode and the printed 8S barcode have consistent values; if so, the SSD8S barcode is printed for correct checking; if not, the print SSD8S barcode is checked for errors; said step of checking the LEN identifier comprises: judging whether the values of the LEN identifier and the printing identifier are consistent; if yes, printing the LEN identifier to check the correctness; if not, print the LEN identifier to check for errors.
4. The method of claim 1, wherein the step of checking whether the SSD host flash memory and SLC buffer support writeable comprises:
judging whether the SSD main flash memory supports writing; if yes, printing the SSD main flash memory to support writing; if not, the SSD main flash memory is printed and writing is not supported;
judging whether the SLC buffer supports writing; if yes, the print SLC buffer supports writing; if not, the print SLC buffer does not support writing.
CN201910702055.XA 2019-07-31 2019-07-31 Method and device for testing SSD label information Active CN110415756B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910702055.XA CN110415756B (en) 2019-07-31 2019-07-31 Method and device for testing SSD label information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910702055.XA CN110415756B (en) 2019-07-31 2019-07-31 Method and device for testing SSD label information

Publications (2)

Publication Number Publication Date
CN110415756A CN110415756A (en) 2019-11-05
CN110415756B true CN110415756B (en) 2021-06-08

Family

ID=68364884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910702055.XA Active CN110415756B (en) 2019-07-31 2019-07-31 Method and device for testing SSD label information

Country Status (1)

Country Link
CN (1) CN110415756B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110910945B (en) * 2019-11-19 2021-08-17 深圳忆联信息系统有限公司 Method and device for testing robustness of SSD (solid State disk) signal, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310973A (en) * 2006-05-19 2007-11-29 Funai Electric Co Ltd Optical disk recorder
CN101101564A (en) * 2006-07-07 2008-01-09 上海晨兴电子科技有限公司 Automatic identification method for flash memory type of product
US7542225B1 (en) * 2006-11-17 2009-06-02 Western Digital Technologies, Inc. Disk drive idle mode responsive to flex circuit cable bias changes
CN102279775A (en) * 2011-08-19 2011-12-14 西安交通大学 Method for processing failure of hard disk under Linux system
CN102568522A (en) * 2011-12-31 2012-07-11 曙光信息产业股份有限公司 Hardware performance test method and device
EP2711713A4 (en) * 2011-05-16 2015-04-22 Hitachi High Tech Corp Automatic analysis device and automatic analysis program
CN104899119A (en) * 2015-05-21 2015-09-09 浪潮电子信息产业股份有限公司 Method for automatically detecting hard disk abnormality
CN106710636A (en) * 2016-12-29 2017-05-24 记忆科技(深圳)有限公司 SSD product test system
CN108197457A (en) * 2017-12-20 2018-06-22 新华三技术有限公司 Hard disk secure control method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068920B (en) * 2015-07-17 2018-01-02 浪潮电子信息产业股份有限公司 A kind of method based on shell test rack assets information stability

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007310973A (en) * 2006-05-19 2007-11-29 Funai Electric Co Ltd Optical disk recorder
CN101101564A (en) * 2006-07-07 2008-01-09 上海晨兴电子科技有限公司 Automatic identification method for flash memory type of product
US7542225B1 (en) * 2006-11-17 2009-06-02 Western Digital Technologies, Inc. Disk drive idle mode responsive to flex circuit cable bias changes
EP2711713A4 (en) * 2011-05-16 2015-04-22 Hitachi High Tech Corp Automatic analysis device and automatic analysis program
CN102279775A (en) * 2011-08-19 2011-12-14 西安交通大学 Method for processing failure of hard disk under Linux system
CN102568522A (en) * 2011-12-31 2012-07-11 曙光信息产业股份有限公司 Hardware performance test method and device
CN104899119A (en) * 2015-05-21 2015-09-09 浪潮电子信息产业股份有限公司 Method for automatically detecting hard disk abnormality
CN106710636A (en) * 2016-12-29 2017-05-24 记忆科技(深圳)有限公司 SSD product test system
CN108197457A (en) * 2017-12-20 2018-06-22 新华三技术有限公司 Hard disk secure control method and device

Also Published As

Publication number Publication date
CN110415756A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
CN100472460C (en) Detection and display method and device for computer self-test information
CN102541676B (en) Method for detecting and mapping states of NAND FLASH
CN101853692B (en) Controller with flash memory test function, and storage system and test method thereof
CN101377749B (en) Method, programmable logic device, system and apparatus for checking memory data
US10318918B2 (en) Recording device, system and method
CN110689915A (en) Remote SSD debug via host/serial interface and method of performing same
CN105320553A (en) Method and system for updating network card firmware on basis of domestic processor platform
CN101599035A (en) USB port proving installation and method
CN109445691B (en) Method and device for improving FTL algorithm development and verification efficiency
CN110415756B (en) Method and device for testing SSD label information
CN101739322B (en) Test device and method of embedded system
CN102004892B (en) Multi-function card reader testing device and method
US20070094427A1 (en) System and method for verifying the coupled locations of computer devices
CN107452427B (en) Method and system for testing data integrity of storage equipment
CN112882995A (en) Script automatic generation method and device, electronic equipment and storage medium
CN101354673B (en) SPD chip error information simulation apparatus of memory
CN103577344A (en) Data writing method, memory controller and memory storage device
CN103809051A (en) Automatic test system and switch matrix and detection method thereof in automatic test system
CN112216340A (en) Hard disk test method and device, storage medium and electronic equipment
CN116820193A (en) Cable connection correctness recognition system, method, device, equipment and storage medium
CN1991754A (en) Information displaying system and method
CN107168650B (en) Method and device for processing data in memory of BIOS
CN115659426A (en) Anti-counterfeiting method, device and medium for hard disk
US8595418B2 (en) Memory configuring method, memory controller and memory storage apparatus
CN1123828C (en) Method and its device for display BIOS error code

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
GR01 Patent grant
GR01 Patent grant