CN109817272B - System disk SSD power-off test method based on mainboard - Google Patents

System disk SSD power-off test method based on mainboard Download PDF

Info

Publication number
CN109817272B
CN109817272B CN201910058510.7A CN201910058510A CN109817272B CN 109817272 B CN109817272 B CN 109817272B CN 201910058510 A CN201910058510 A CN 201910058510A CN 109817272 B CN109817272 B CN 109817272B
Authority
CN
China
Prior art keywords
ssd
power
shutdown
program
mainboard
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
CN201910058510.7A
Other languages
Chinese (zh)
Other versions
CN109817272A (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.)
Shandong Sinochip Semiconductors Co Ltd
Original Assignee
Shandong Sinochip Semiconductors 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 Shandong Sinochip Semiconductors Co Ltd filed Critical Shandong Sinochip Semiconductors Co Ltd
Priority to CN201910058510.7A priority Critical patent/CN109817272B/en
Publication of CN109817272A publication Critical patent/CN109817272A/en
Application granted granted Critical
Publication of CN109817272B publication Critical patent/CN109817272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Power Sources (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses a system disk SSD power-off test method based on a mainboard, which detects the voltage change of a controlled host taking SSD equipment as a main disk of an operating system, realizes the startup operation of the controlled host through a relay according to the voltage change condition, and realizes the shutdown operation of the controlled host through an upper computer. In the cycle process of completing the login and exit operations of the multiple machine operating systems, the power-on and power-off cycle operation of the batch SSD storage device is realized, and the automatic execution of the test of the application scene of the startup and shutdown operations in the compatibility test of the batch SSD storage device is realized. The invention does not need to depend on WOL function, is not limited by network or mainboard, is convenient to deploy and has strong compatibility.

Description

System disk SSD power-off test method based on mainboard
Technical Field
The invention relates to an SSD power-off test method, in particular to a system SSD power-off test method based on a mainboard, and belongs to the technical field of SSD storage device test.
Background
In the compatibility test of the SSD storage device, there is an application test scenario in which the SSD device is used as a master of the operating system to perform startup and shutdown, and multiple rounds of cycles are required to ensure product quality. In the current boot-up and shutdown tests of the SSD, manual operation or host control is generally adopted, and the defects of dependence on WOL function, limitation to a network or a mainboard, inconvenience in deployment and poor compatibility exist.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a system SSD power-off test method based on a mainboard, which does not depend on WOL function, is not limited by a network or the mainboard, is convenient to deploy and has strong compatibility.
In order to solve the technical problem, the technical scheme adopted by the invention is as follows: a system SSD power-off test method based on a mainboard comprises the following steps: s01), taking the SSD device as the main disk of the operating system as the controlled host, connecting the analog signal port of the Arduino board with the interface of the controlled host, which can provide a voltage signal source, and connecting the digital signal port of the Arduino board with the power on/off interface of the controlled host through a relay; s02), preparing an external power supply of the Arduino board, writing a voltage judgment program and a starting program into the Arduino board, and writing a shutdown program into an upper computer; s03), supplying power to the Arduino board, starting testing, wherein in an initial state, a voltage signal on each controlled host mainboard is about 0V, after a period of time from the beginning of the testing, a running program in the Arduino board circularly judges the voltage signal received by the analog signal port, and if the voltage signal is less than 1V, a high-level signal is sent to the relay, so that the relay is communicated, starting operation is completed, and SSD equipment serving as a system disk is electrified; after logging in an operating system, synchronously opening a shutdown program, after a period of time, sending a shutdown instruction to a controlled host by the shutdown program, shutting down the operating system, and powering off SSD equipment serving as a system disk; s04), when the operating system finishes the shutdown operation, the voltage signal on the mainboard is recovered to about 0V, the program running in the Arduino continuously judges the voltage signal received by the analog signal port, and the step S03 is repeated, so that the cycle operation of startup and shutdown of the controlled host is realized, and meanwhile, the automatic execution of the SSD power-off test of the system disk is realized.
Furthermore, an interface of the controlled host capable of providing a voltage signal source is a contact pin on the mainboard.
Further, the voltage signal of the analog signal port is judged circularly by the running program in the Arduino board 3 seconds after the test is started.
The invention has the beneficial effects that:
according to the method, in the cyclic process of completing the login and exit operations of the operating system with the SSD storage device as the main disk, the power-on and power-off cyclic operation of the SSD storage device is realized, and the automatic execution of the test of the application scene of the startup and shutdown operations in the compatibility test of the SSD device is realized.
Compared with the manual operation or the existing testing method in the industry, the invention has the following advantages:
1) no master control computer is required. The existing testing means in the industry basically needs other hosts as a main control unit, and the testing machine is controlled to complete the startup and shutdown operations through the network awakening function. In comparison, the invention occupies less resources, is convenient to deploy, and has stronger load capacity of a unit quantity tester.
2) The control unit is simple and only needs an Arduino board (programmable) and a relay. If the network controller is awakened through the network, the processor, the control program, the Ethernet interface and the AD conversion circuit in the network controller need to be involved, and the above factors are all not necessary. Not only has requirements on the configuration of a testing machine, but also increases the uncontrollable factors of the testing environment. In contrast, the invention does not depend on WOL function, is not limited by network or mainboard, and has great cost advantage and test environment reliability.
3) And the requirements of the test are met. The network awakening mode is not a complete power-off state, and has a certain difference with an actual application scene, and the network awakening method can achieve complete power-off and accords with the actual application scene.
Drawings
FIG. 1 is a schematic diagram of automated execution of a system disk SSD power-down test based on a motherboard.
Detailed Description
The invention is further described with reference to the following figures and specific embodiments.
Example 1
The embodiment discloses a system disk SSD power-off test method based on a mainboard,
as shown in the flowchart of fig. 1, before the test is started, the operating system with the SSD storage device as the host disk is in a shutdown state. The preparation work to be completed further includes:
1. the SSD device is used as a master of an operating system as a controlled host, and an interface capable of providing a voltage signal source is prepared on the controlled host (the interface may be a pin on a motherboard, and a voltage signal in a system operation stage and a shutdown state needs to have a significant change, and a voltage peak value does not exceed 5V). The external interface of the main board is usually 3.3v or 5v, the voltage of the interface needs to be rapidly reduced to 0v after the power of the main board is cut off, when the voltage of the interface is high, the main board works normally, the SSD of the system to be tested is powered on normally, and when the voltage of the interface cannot be raised normally, the controlled host is not started normally.
2. Connect voltage signal source, Arduino board, relay, controlled host computer power on/off interface, concrete connected mode is: an analog signal port of the Arduino board is connected with a voltage signal source of the controlled host, and a digital signal port of the Arduino board is connected with a power on/off interface of the controlled host through a relay;
3. and preparing an external power supply of the Arduino board.
4. Writing burning program source codes of the Arduino board which are in line with execution expectation, wherein the burning program source codes comprise a voltage judgment program and a starting program, and the starting program is arranged in an upper computer;
after the preparation work is completed, the Arduino board is powered on, and the test is started. In the initial state, the voltage signal on the main board is about 0V. And 3 seconds after the test is started, the voltage signal received by the analog signal port is judged by an operating program in the Arduino, if the voltage signal is less than 1V, a high-level signal is sent to the relay, the relay is communicated (the communication time is less than 1 s), the starting operation is completed, and the SSD serving as the system disk is electrified. After the operating system is normally logged in, the shutdown program is synchronously opened, a shutdown instruction is sent after a period of time is set, the operating system is shut down, and the SSD device serving as the system disk is powered off. When the operating system finishes the shutdown operation, the voltage signal on the mainboard is recovered to about 0V, and the program running in the Arduino continuously judges the voltage signal received by the analog signal port and carries out corresponding processing. Therefore, the circular operation of starting and shutting down the machine is realized, and the automatic execution of the SSD power-off test of the system disk is realized.
In an application test scene that the SSD device is used as a main disk of an operating system to carry out startup and shutdown, the startup operation and the shutdown operation are respectively triggered and realized. The starting operation needs to use a hardware Arduino board, a relay and an interface on a machine mainboard as a signal source of the Arduino board. When the system is shut down, the Arduino detects that the voltage of the corresponding interface is reduced to be below a threshold value, and the relay is operated to complete the starting operation. The shutdown operation needs to be performed by means of upper computer software, and after the operating system is logged in, the upper computer software is synchronously opened to complete the shutdown operation of the system. Therefore, the circulation of the startup and shutdown operations of the operating system is completed, and the automatic execution of the power-off test of the SSD of the system is realized.
According to the method, in the cyclic process of completing the login and exit operations of the controlled host, the power-on and power-off cyclic operation of the batch SSD storage equipment is realized, and the automatic execution of the test of the application scene of the startup and shutdown operations in the compatibility test of the batch SSD equipment is realized.
Compared with the manual operation or the existing testing method in the industry, the invention has the following advantages:
1) no master control computer is required. The existing testing means in the industry basically needs other hosts as a main control unit, and the testing machine is controlled to complete the startup and shutdown operations through the network awakening function. In comparison, the invention occupies less resources, is convenient to deploy, and has stronger load capacity of a unit quantity tester.
2) The control unit is simple and only needs an Arduino board (programmable) and a relay. If the network controller is awakened through the network, the processor, the control program, the Ethernet interface and the AD conversion circuit in the network controller need to be involved, and the above factors are all not necessary. Not only has requirements on the configuration of a testing machine, but also increases the uncontrollable factors of the testing environment. In contrast, the invention does not depend on WOL function, is not limited by network or mainboard, and has great cost advantage and test environment reliability.
3) And the requirements of the test are met. The network awakening mode is not a complete power-off state, and has a certain difference with an actual application scene, and the network awakening method can achieve complete power-off and accords with the actual application scene.
In conclusion, the invention has the advantages of low implementation cost, simple deployment and strong compatibility to the testing machine, and greatly improves the testing efficiency and quality.
The foregoing description is only for the basic principle and the preferred embodiments of the present invention, and modifications and substitutions by those skilled in the art are included in the scope of the present invention.

Claims (3)

1. A system disk SSD power-off test method based on a mainboard is characterized in that: the method comprises the following steps: s01), taking the SSD device as the main disk of the operating system as the controlled host, connecting the analog signal port of the Arduino board with the interface of the controlled host, which can provide a voltage signal source, and connecting the digital signal port of the Arduino board with the power on/off interface of the controlled host through a relay; s02), preparing an external power supply of the Arduino board, writing a voltage judgment program and a starting program into the Arduino board, and writing a shutdown program into an upper computer; s03), supplying power to the Arduino board, starting testing, wherein in an initial state, a voltage signal on each controlled host mainboard is about 0V, after a period of time from the beginning of the testing, a running program in the Arduino board circularly judges the voltage signal received by the analog signal port, and if the voltage signal is less than 1V, a high-level signal is sent to the relay, so that the relay is communicated, starting operation is completed, and SSD equipment serving as a system disk is electrified; after logging in an operating system, synchronously opening a shutdown program, after a period of time, sending a shutdown instruction to a controlled host by the shutdown program, shutting down the operating system, and powering off SSD equipment serving as a system disk; s04), when the operating system finishes the shutdown operation, the voltage signal on the mainboard is recovered to about 0V, the program running in the Arduino continuously judges the voltage signal received by the analog signal port, and the step S03 is repeated, so that the cycle operation of startup and shutdown of the controlled host is realized, and meanwhile, the automatic execution of the SSD power-off test of the system disk is realized.
2. The motherboard-based system disk (SSD) power-off test method according to claim 1, characterized in that: the interface of the controlled host capable of providing the voltage signal source is a pin on the mainboard.
3. The motherboard-based system disk (SSD) power-off test method according to claim 1, characterized in that: and 3 seconds after the test is started, the program in the Arduino board operates to circularly judge the voltage signal of the analog signal port.
CN201910058510.7A 2019-01-22 2019-01-22 System disk SSD power-off test method based on mainboard Active CN109817272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910058510.7A CN109817272B (en) 2019-01-22 2019-01-22 System disk SSD power-off test method based on mainboard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910058510.7A CN109817272B (en) 2019-01-22 2019-01-22 System disk SSD power-off test method based on mainboard

Publications (2)

Publication Number Publication Date
CN109817272A CN109817272A (en) 2019-05-28
CN109817272B true CN109817272B (en) 2021-04-30

Family

ID=66604658

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910058510.7A Active CN109817272B (en) 2019-01-22 2019-01-22 System disk SSD power-off test method based on mainboard

Country Status (1)

Country Link
CN (1) CN109817272B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103364650A (en) * 2012-04-06 2013-10-23 鸿富锦精密工业(深圳)有限公司 Testing system and testing method
CN103576018A (en) * 2012-08-02 2014-02-12 珠海格力电器股份有限公司 Testing tool, system and method of electrical equipment
US8862803B2 (en) * 2011-05-31 2014-10-14 Architecture Technology Corporation Mediating communciation of a univeral serial bus device
CN106329675A (en) * 2016-11-19 2017-01-11 汤瑷语 Charging device achieving automatic power off and charging method
CN206133541U (en) * 2016-09-22 2017-04-26 深圳市嘉合劲威电子科技有限公司 Solid state hard drives's outage testing arrangement
CN109213646A (en) * 2018-08-29 2019-01-15 深圳佰维存储科技股份有限公司 Hard disk intelligence power failure test equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150074637A (en) * 2013-12-24 2015-07-02 삼성전자주식회사 Terminal apparatus and method for controlling thereof
US10019326B2 (en) * 2015-07-15 2018-07-10 Toshiba Memory Corporation Memory system
US10649896B2 (en) * 2016-11-04 2020-05-12 Samsung Electronics Co., Ltd. Storage device and data processing system including the same

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8862803B2 (en) * 2011-05-31 2014-10-14 Architecture Technology Corporation Mediating communciation of a univeral serial bus device
CN103364650A (en) * 2012-04-06 2013-10-23 鸿富锦精密工业(深圳)有限公司 Testing system and testing method
CN103576018A (en) * 2012-08-02 2014-02-12 珠海格力电器股份有限公司 Testing tool, system and method of electrical equipment
CN206133541U (en) * 2016-09-22 2017-04-26 深圳市嘉合劲威电子科技有限公司 Solid state hard drives's outage testing arrangement
CN106329675A (en) * 2016-11-19 2017-01-11 汤瑷语 Charging device achieving automatic power off and charging method
CN109213646A (en) * 2018-08-29 2019-01-15 深圳佰维存储科技股份有限公司 Hard disk intelligence power failure test equipment

Also Published As

Publication number Publication date
CN109817272A (en) 2019-05-28

Similar Documents

Publication Publication Date Title
CN108519938B (en) Memory chip compatibility test method, system and test host
CN105700970A (en) Server system
CN104899120A (en) Server stability test method based on BMC startup and shutdown functions
CN106055440B (en) A kind of test method and system for realizing server exception power-off by BMC
CN104220958A (en) Computer device and method for converting working mode of universal serial bus connector of the computer device
CN111984479A (en) Method and system for carrying out startup and shutdown and restart tests on Android mainboard based on single chip microcomputer
CN112259155A (en) USB device test system and method and SATA device test system and method
CN104156289A (en) Synchronous control method and system based on detection circuit
CN101666855B (en) Universal test system and method of integrated circuit
CN108802627B (en) Testing method, device and system for BBU independent power supply and readable storage medium
CN109817272B (en) System disk SSD power-off test method based on mainboard
CN113609051A (en) Hot plug method, system, device and computer storage medium for expansion board
CN114443067B (en) CPLD (complex programmable logic device) file burning system and CPLD file burning method
CN102955724A (en) BIOS (basic input output system) test fixture and method using same for BIOS test
US20190163595A1 (en) System and method for providing network access in the event of a computer system failure
CN116107855A (en) Test method, system, chip, electronic device and storage medium
CN109840171A (en) A kind of simple SSD power failure test method
CN114936033A (en) Cluster firmware upgrading system and intelligent super computing cluster
CN114564095A (en) Intelligent network card charging control system and server
CN108418707B (en) Method for upgrading mutual online backup of double CPLDs in communication system and service veneer
CN109828877A (en) A kind of batch system disk SSD power failure test method based on mainboard
JP6036229B2 (en) Battery control device, battery control method, and program
CN109800115A (en) A kind of method of simple realization batch SSD power failure test
CN111966195A (en) Start control circuit and method
TWI693515B (en) Testing method for motherboard and testing system for motherboard

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