CN113539351A - Solid state hard disk controller identity testing method and device and computer equipment - Google Patents

Solid state hard disk controller identity testing method and device and computer equipment Download PDF

Info

Publication number
CN113539351A
CN113539351A CN202110785355.6A CN202110785355A CN113539351A CN 113539351 A CN113539351 A CN 113539351A CN 202110785355 A CN202110785355 A CN 202110785355A CN 113539351 A CN113539351 A CN 113539351A
Authority
CN
China
Prior art keywords
test
solid state
controller
setting
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110785355.6A
Other languages
Chinese (zh)
Inventor
霍开源
石骁
李杨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Union Memory Information System Co Ltd
Original Assignee
Shenzhen Union Memory Information System 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 Shenzhen Union Memory Information System Co Ltd filed Critical Shenzhen Union Memory Information System Co Ltd
Priority to CN202110785355.6A priority Critical patent/CN113539351A/en
Publication of CN113539351A publication Critical patent/CN113539351A/en
Pending legal-status Critical Current

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
    • G11C29/56008Error analysis, representation of errors

Abstract

The application relates to a method and a device for testing identity of a solid state hard disk controller, computer equipment and a storage medium, wherein the method comprises the following steps: acquiring an identity test request of a solid state hard disk controller; downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request; developing a corresponding test interface by using the Windows software development kit; setting interface parameters in the test interface according to test contents specified by a protocol in the test request; and performing identification test on the solid state disk to be tested under different setting combinations of interface parameters. According to the method, the open-source controller identification test flow is established through the Windows software development kit, so that the comprehensive coverage of the solid state disk identification test is realized, the abnormity appearing in the test can be found in time, and the test efficiency is effectively improved.

Description

Solid state hard disk controller identity testing method and device and computer equipment
Technical Field
The invention relates to the technical field of hard disk testing, in particular to a method and a device for testing the identity of a solid state hard disk controller, computer equipment and a storage medium.
Background
With the development of computer technology, computer equipment has become the most powerful utility tool for people today, and the safety and stability of computer equipment are necessary guarantees when people work with computers. Nowadays, the solid state disk is also more and more widely applied due to the characteristics of quick reading and writing, light weight, low energy consumption, small size and the like. The solid state disk is one of core hardware devices in a computer device, and the stability and reliability of the solid state disk greatly affect the security and stability of the whole computer device, so that the solid state disk in the computer device needs to be subjected to system testing before the computer device leaves a factory.
The identity test is a test item of the solid state disk controller, however, the identity test of the solid state disk under the conventional technology can only depend on a test (non-open source) of a third party, so that when a problem occurs in the test process, it is tedious to analyze the abnormality, and the test efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a method and an apparatus for testing the identity of a solid state disk controller, a computer device, and a storage medium.
A method for testing the identity of a solid state hard disk controller, the method comprising:
acquiring an identity test request of a solid state hard disk controller;
downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request;
developing a corresponding test interface by using the Windows software development kit;
setting interface parameters in the test interface according to test contents specified by a protocol in the test request;
and performing identification test on the solid state disk to be tested under different setting combinations of interface parameters.
In one embodiment, the interface parameters of the test interface include: controller namespace, namespace type, and controller setup parameters.
In one embodiment, the step of setting the interface parameters in the test interface according to the test content specified by the protocol in the test request further includes:
setting the controller namespaces to 1, 0 and 2 respectively;
setting the namespace types as 0, 1, active, FFFFFFFFh and invalid respectively;
the controller setting parameter is set to 0 and not 0, respectively.
In one embodiment, the step of performing identity test on the solid state disk to be tested under different setting combinations of interface parameters further includes:
sending a control command to the solid state disk to be tested under different setting combinations of interface parameters;
and judging whether the execution of the control command is in accordance with expectation according to the state returned by the solid state disk.
A solid state hard disk controller identity testing apparatus, the apparatus comprising:
the acquisition module is used for acquiring an identity test request of the solid state hard disk controller;
the installation module is used for downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request;
the interface development module is used for developing a corresponding test interface by utilizing the Windows software development kit;
the parameter setting module is used for setting interface parameters in the test interface according to test contents specified by a protocol in the test request;
and the test module is used for carrying out identification test on the solid state disk to be tested under the setting combination of different interface parameters.
In one embodiment, the interface parameters of the test interface include: controller namespace, namespace type, and controller setup parameters.
In one embodiment, the parameter setting module is further configured to:
setting the controller namespaces to 1, 0 and 2 respectively;
setting the namespace types as 0, 1, active, FFFFFFFFh and invalid respectively;
the controller setting parameter is set to 0 and not 0, respectively.
In one embodiment, the apparatus includes a command issuing module configured to:
sending a control command to the solid state disk to be tested under different setting combinations of interface parameters;
and judging whether the execution of the control command is in accordance with expectation according to the state returned by the solid state disk.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any of the above methods when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any of the methods described above.
The solid state hard disk controller identity test method, the solid state hard disk controller identity test device, the computer equipment and the storage medium obtain the solid state hard disk controller identity test request; downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request; developing a corresponding test interface by using the Windows software development kit; setting interface parameters in the test interface according to test contents specified by a protocol in the test request; and performing identification test on the solid state disk to be tested under different setting combinations of interface parameters. According to the method, the open-source controller identification test flow is established through the Windows software development kit, so that the comprehensive coverage of the solid state disk identification test is realized, the abnormity appearing in the test can be found in time, and the test efficiency is effectively improved.
Drawings
FIG. 1 is a schematic diagram illustrating an embodiment of a method for testing the identity of a solid state disk controller;
FIG. 2 is a flowchart illustrating a method for testing the identity of a solid state disk controller according to an embodiment;
FIG. 3 is a flowchart illustrating a method for testing the identity of the solid state disk controller according to another embodiment;
FIG. 4 is a block diagram illustrating an exemplary apparatus for testing the identity of a solid state disk controller;
FIG. 5 is a block diagram of an apparatus for testing the identity of a solid state disk controller according to another embodiment;
FIG. 6 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
At present, the identity test is a test item of the solid state disk controller, however, the identity test of the solid state disk under the conventional technology can only depend on a third-party test (non-open source), so that when a problem occurs in the test process, it is tedious to analyze the abnormality, and the test efficiency is low. .
Based on this, the invention provides a solid state hard disk controller identity testing method, and specifically, the overall concept of the method is as shown in fig. 1. Specifically, first, the latest WSDK library, Windows Software development Kit, is downloaded and installed. Next, a test interface is developed using the installed WSDK library. And finally, designing a corresponding test scheme according to the test requirement, setting various parameters of the test interface, and traversing the test contents specified by the protocol.
In one embodiment, as shown in fig. 2, there is provided a solid state hard disk controller identity test, the method including:
step 202, acquiring an identity test request of the solid state hard disk controller;
step 204, downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request;
step 206, developing a corresponding test interface by using a Windows software development kit;
step 208, setting interface parameters in the test interface according to test contents specified by the protocol in the test request;
and step 210, performing identity test on the solid state disk to be tested under different setting combinations of the interface parameters.
In this embodiment, a method for testing the identity of a solid state disk controller is provided, and the specific implementation steps are as follows:
firstly, the device to be tested acquires a solid state hard disk controller identity test request. Specifically, the request may include a specific test object and a test item to be tested.
And then, the device to be tested accesses the server according to the solid state hard disk controller identity test request, and downloads and installs the Windows software development kit. Windows SDK is an important version of Windows released by Microsoft, and is generally released by Microsoft as an SDK (software Development kit). The SDK contains the Windows function and constant definitions, API function specification documentation, related tools and examples required to develop the Windows version. SDKs generally use the C language, but do not include a compiler.
And then, developing a corresponding test interface by using a Windows software development kit, and setting interface parameters in the test interface according to test contents specified by a protocol in the test request.
In one embodiment, the interface parameters of the test interface include: a Controller Namespace (CNS), a Namespace type (NSID), and a Controller Identifier (CNTID).
In one embodiment, the step of setting the interface parameters in the test interface according to the test content specified by the protocol in the test request further includes: setting the controller namespaces to 1, 0 and 2 respectively; setting the namespace types as 0, 1, active, FFFFFFFFh and invalid respectively; the controller setting parameter is set to 0 and not 0, respectively.
And finally, designing a corresponding test scheme according to the test requirement, setting various parameters of the test interface, and traversing the test contents specified by the protocol. Specifically, a command may be sent to the solid state disk to be tested under the combination of the above different parameters, and whether the command meets expectations or not may be determined according to the returned state.
In this embodiment, a test request of the identity of the solid state disk controller is obtained; downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request; developing a corresponding test interface by using the Windows software development kit; setting interface parameters in the test interface according to test contents specified by a protocol in the test request; and performing identification test on the solid state disk to be tested under different setting combinations of interface parameters. According to the scheme, the open-source controller identification test flow is established through the Windows software development kit, so that the comprehensive coverage of the solid state disk identification test is realized, the abnormity appearing in the test can be found in time, and the test efficiency is effectively improved.
In one embodiment, as shown in fig. 3, there is provided a solid state hard disk controller identity test, the method including:
step 302, acquiring an identity test request of the solid state hard disk controller;
step 304, downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request;
step 306, utilizing a Windows software development kit to develop a corresponding test interface;
308, setting interface parameters in the test interface according to test contents specified by the protocol in the test request;
step 310, sending a control command to the solid state disk to be tested under different setting combinations of interface parameters;
step 312, determining whether the execution of the control command is expected according to the state returned by the solid state disk.
In this embodiment, a complete solid state hard disk controller identity testing method is provided, where the method includes the following steps:
and step 1, downloading and installing the latest WSDK library.
And 2, developing a test interface by using the WSDK library.
Step 3, designing a corresponding test scheme according to the test requirements:
step 3a, set 1, 0, 2 for CNS (controller namespace) respectively.
And 3b, setting NSID (name space type) as 0, 1, active, FFFFFFh and invalid respectively.
And 3c, setting the CNTID (controller setting parameter) to be 0 and not 0 respectively.
And 4, sending commands to the solid state disk under different setting combinations.
And 5, judging whether the state meets the expectation according to the return state.
It should be understood that although the various steps in the flow charts of fig. 1-3 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1-3 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 4, there is provided a solid state hard disk controller identity test apparatus 400, comprising:
an obtaining module 401, configured to obtain an identity test request of a solid-state hard disk controller;
an installation module 402, configured to download and install a Windows software development kit according to the solid state disk controller identity test request;
an interface development module 403, configured to develop a corresponding test interface using the Windows software development kit;
a parameter setting module 404, configured to set interface parameters in the test interface according to test contents specified by a protocol in the test request;
and the test module 405 is configured to perform identity test on the solid state disk to be tested under different setting combinations of the interface parameters.
In one embodiment, the interface parameters of the test interface include: controller namespace, namespace type, and controller setup parameters.
In one embodiment, the parameter setting module 404 is further configured to:
setting the controller namespaces to 1, 0 and 2 respectively;
setting the namespace types as 0, 1, active, FFFFFFFFh and invalid respectively;
the controller setting parameter is set to 0 and not 0, respectively.
In one embodiment, as shown in fig. 5, there is provided an apparatus 400 for testing the identity of a solid state disk controller, the apparatus further comprising a command issuing module 406, the command issuing module being configured to:
sending a control command to the solid state disk to be tested under different setting combinations of interface parameters;
and judging whether the execution of the control command is in accordance with expectation according to the state returned by the solid state disk.
For specific limitations of the solid state hard disk controller identity test apparatus, reference may be made to the above limitations of the solid state hard disk controller identity test method, and details are not described here.
In one embodiment, a computer device is provided, the internal structure of which may be as shown in FIG. 6. The computer apparatus includes a processor, a memory, and a network interface connected by a device bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The nonvolatile storage medium stores an operating device, a computer program, and a database. The internal memory provides an environment for the operation device in the nonvolatile storage medium and the execution of the computer program. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a solid state disk controller identity testing method.
Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the above method embodiments when executing the computer program.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the above respective method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for testing the identity of a solid state hard disk controller, the method comprising:
acquiring an identity test request of a solid state hard disk controller;
downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request;
developing a corresponding test interface by using the Windows software development kit;
setting interface parameters in the test interface according to test contents specified by a protocol in the test request;
and performing identification test on the solid state disk to be tested under different setting combinations of interface parameters.
2. The method of testing the identity of the solid state hard disk controller of claim 1, wherein the interface parameters of the test interface comprise: controller namespace, namespace type, and controller setup parameters.
3. The method for testing the identity of the solid state disk controller according to claim 2, wherein the step of setting the interface parameters in the test interface according to the test contents specified by the protocol in the test request further comprises:
setting the controller namespaces to 1, 0 and 2 respectively;
setting the namespace types as 0, 1, active, FFFFFFFFh and invalid respectively;
the controller setting parameter is set to 0 and not 0, respectively.
4. The method for testing the identity of the solid state disk controller according to any one of claims 1 to 3, wherein the step of performing the identity test on the solid state disk to be tested under different setting combinations of interface parameters further comprises:
sending a control command to the solid state disk to be tested under different setting combinations of interface parameters;
and judging whether the execution of the control command is in accordance with expectation according to the state returned by the solid state disk.
5. An apparatus for testing the identity of a solid state disk controller, the apparatus comprising:
the acquisition module is used for acquiring an identity test request of the solid state hard disk controller;
the installation module is used for downloading and installing a Windows software development kit according to the solid state hard disk controller identity test request;
the interface development module is used for developing a corresponding test interface by utilizing the Windows software development kit;
the parameter setting module is used for setting interface parameters in the test interface according to test contents specified by a protocol in the test request;
and the test module is used for carrying out identification test on the solid state disk to be tested under the setting combination of different interface parameters.
6. The apparatus of claim 5, wherein the interface parameters of the test interface comprise: controller namespace, namespace type, and controller setup parameters.
7. The apparatus of claim 6, wherein the parameter setting module is further configured to:
setting the controller namespaces to 1, 0 and 2 respectively;
setting the namespace types as 0, 1, active, FFFFFFFFh and invalid respectively;
the controller setting parameter is set to 0 and not 0, respectively.
8. The apparatus according to any one of claims 5-7, wherein the apparatus comprises a command issuing module to:
sending a control command to the solid state disk to be tested under different setting combinations of interface parameters;
and judging whether the execution of the control command is in accordance with expectation according to the state returned by the solid state disk.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 4.
CN202110785355.6A 2021-07-12 2021-07-12 Solid state hard disk controller identity testing method and device and computer equipment Pending CN113539351A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110785355.6A CN113539351A (en) 2021-07-12 2021-07-12 Solid state hard disk controller identity testing method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110785355.6A CN113539351A (en) 2021-07-12 2021-07-12 Solid state hard disk controller identity testing method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN113539351A true CN113539351A (en) 2021-10-22

Family

ID=78098613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110785355.6A Pending CN113539351A (en) 2021-07-12 2021-07-12 Solid state hard disk controller identity testing method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN113539351A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145649A1 (en) * 2007-02-23 2011-06-16 Johan Nilsson Method and a System for Dynamic Probe Authentication for Test and Monitoring of Software
CN102411993A (en) * 2011-11-24 2012-04-11 曙光信息产业股份有限公司 Method and device for testing state solid disk (SSD)
CN103024531A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Hardware monitoring method and system
US20160004625A1 (en) * 2014-07-07 2016-01-07 Unisys Corporation Method of executing test scripts based on runtime test selection
CN106897188A (en) * 2017-02-23 2017-06-27 郑州云海信息技术有限公司 A kind of method of monitor in real time Sandisk_SSD temperature
CN107832176A (en) * 2017-11-16 2018-03-23 郑州云海信息技术有限公司 Hard disk pressure automatic test approach and system under a kind of Windows
CN112256601A (en) * 2020-10-19 2021-01-22 凌云光技术股份有限公司 Data access control method, embedded storage system and embedded equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110145649A1 (en) * 2007-02-23 2011-06-16 Johan Nilsson Method and a System for Dynamic Probe Authentication for Test and Monitoring of Software
CN102411993A (en) * 2011-11-24 2012-04-11 曙光信息产业股份有限公司 Method and device for testing state solid disk (SSD)
CN103024531A (en) * 2012-11-12 2013-04-03 北京奇虎科技有限公司 Hardware monitoring method and system
US20160004625A1 (en) * 2014-07-07 2016-01-07 Unisys Corporation Method of executing test scripts based on runtime test selection
CN106897188A (en) * 2017-02-23 2017-06-27 郑州云海信息技术有限公司 A kind of method of monitor in real time Sandisk_SSD temperature
CN107832176A (en) * 2017-11-16 2018-03-23 郑州云海信息技术有限公司 Hard disk pressure automatic test approach and system under a kind of Windows
CN112256601A (en) * 2020-10-19 2021-01-22 凌云光技术股份有限公司 Data access control method, embedded storage system and embedded equipment

Similar Documents

Publication Publication Date Title
CN109144519B (en) Generation method and device of upgrade package, computer equipment and storage medium
CN112395202B (en) Interface automation test method and device, computer equipment and storage medium
CN110618819A (en) Method and device for automatically deploying WINPE system in batches and computer equipment
CN112380130A (en) Application testing method and device based on call dependency relationship
CN113835713B (en) Source code packet downloading method, device, computer equipment and storage medium
WO2019237239A1 (en) Data test method and apparatus, device/terminal/server and computer readable storage medium
CN107798244B (en) Method and device for detecting remote code execution vulnerability
CN114490103A (en) Operating system interface calling method and device and electronic equipment
CN113539351A (en) Solid state hard disk controller identity testing method and device and computer equipment
CN110806891A (en) Method and device for generating software version of embedded equipment
CN116312730A (en) UFS storage device monomer test driving method and device based on MT6891 platform
CN114003486A (en) Plug-in debugging method, client, server and storage medium
CN113851183A (en) Solid state disk testing method and device based on UEFI environment and computer equipment
CN114564385A (en) Software testing method and device, computer equipment and storage medium
CN114090051A (en) eMMC firmware version online upgrading method, device, computer equipment and storage medium
CN113672526B (en) Method and device for acquiring triggering times of power-down protection of solid state disk and computer equipment
CN112287343A (en) SDK monitoring method and device, computer equipment and storage medium
CN112416446A (en) Linux network starting method and device based on Microsoft deployment system
CN112015478B (en) Kernel loading method, server, device, computer device and storage medium
CN113377613A (en) Hard disk test monitoring method and device based on Windows system and computer equipment
CN115242874B (en) Network request agent optimization method, system, equipment and storage medium in application development stage
CN113377588A (en) Sustainable integration test method and device for hard disk and computer equipment
CN112560035B (en) Application detection method, device, equipment and storage medium
CN109460527B (en) Product data configuration method, device, computer equipment and storage medium
CN113377599A (en) Low-power-consumption hard disk test method and device for Windows system and computer equipment

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