Power failure pressure test method for flash memory device

文档序号:1506879 发布日期:2020-02-07 浏览:15次 中文

阅读说明:本技术 一种闪存存储装置掉电压力测试方法 (Power failure pressure test method for flash memory device ) 是由 顾伟 魏智汎 王展南 谢享奇 于 2019-10-31 设计创作,主要内容包括:本发明公开了一种闪存存储装置掉电压力测试方法,包括PC、简易断电装置和平台,PC与简易断电装置通过USB连接,简易断电装置通过电源输出线向平台提供电源,平台与PC之间通过串口、USB或网线连接,在外置硬件装置连接完成,并在PC安装测试控制软件,用户在该软件上设置测试的次数后,PC通过USB向简易断电装置进行下发命令,平台开机后通过串口、USB或网线向PC回报开机信息。本发明可用于代替人工进行对装有系统的闪存存储装置做掉电压力测试,进行掉电测试闪存存储装置装载的系统是否稳定,且较现有的技术装置降低采购成本。(The invention discloses a power failure pressure test method of a flash memory storage device, which comprises a PC, a simple power-off device and a platform, wherein the PC is connected with the simple power-off device through a USB, the simple power-off device supplies power to the platform through a power output line, the platform is connected with the PC through a serial port, a USB or a network cable, the connection of an external hardware device is completed, test control software is installed on the PC, after a user sets the test times on the software, the PC sends a command to the simple power-off device through the USB, and after the platform is started, starting information is reported back to the PC through the serial port, the USB or the network cable. The invention can be used for replacing manpower to perform voltage drop test on the flash memory device provided with the system, and performing power failure test on whether the system provided with the flash memory device is stable, and the purchase cost is reduced compared with the prior art.)

1. A method for testing power failure pressure of a flash memory device is characterized by comprising the following steps: including PC (1), simple and easy outage device (2) and platform (3), PC (1) passes through USB with simple and easy outage device (2) and is connected, simple and easy outage device (2) provide the power to platform (3) through power output line, connect through serial ports, USB or net twine between platform (3) and PC (1).

2. The method of claim 1, wherein the method comprises the steps of: the method comprises the following steps:

A. running designed PC control software;

B. clicking to start after the number of times of the expected test is set;

C. the software checks the current test times, stops the test if the target times is reached or the system is hung up, and continues to send a power-off command to the simple power-off device if the target times is reached;

D. the platform is started after the power-on device provides power for the platform;

E. the platform is powered on and started, and logs are continuously printed to the UART serial port, or the platform is successfully started to process a command sent by PC software;

F. the software obtains a system log of the startup end of the platform to be tested or returns a command processing result to the PC software;

G. the PC software processes the results returned by the platform and displays the results on the software;

H. and (5) finishing the test.

3. The method of claim 1, wherein the method comprises the steps of: the simple power-off device adopts a control switch.

Technical Field

The invention relates to the technical field of flash memory testing, in particular to a method for testing power failure pressure of a flash memory storage device.

Background

In the case of using a flash memory storage device as a system storage device platform, part of the open source platforms can be powered down through a power down device of the bottom control platform, but the power down device of the bottom can not be controlled after the system is installed.

In the prior art, a power-down device is designed as an independent device for timing power down, a loading system is required for timing control, flash memory is used as a power supply of a system storage device platform, the device is similar to a microcomputer, but whether a system loaded by the flash memory storage device is hung or not cannot be judged, so that a tester cannot timely know when the system is hung.

At the end of the development of the flash memory device, the flash memory device needs to be placed on a platform capable of loading a system as a memory, stability verification is performed on the flash memory device loaded with the system, one of the verifications requires unexpected power down of the platform, indirectly and continuously unexpected power down of the flash memory device to ensure the stability of the system loaded by the flash memory device, when the test is carried out, a large number of repeated power failure pressure tests are needed, and whether a system arranged on the flash memory storage device is started successfully or not is needed to be judged, the process can be up to ten thousands of times, the time required for each time is about 1 minute, if the manual power-on and power-off test needs to consume huge manpower, the existing automatic power-off device can only power off, a system loading the flash memory storage device cannot be judged whether to be hung or not, and the purchase cost is high.

Disclosure of Invention

The invention aims to provide a method for testing power failure pressure of a flash memory device, which aims to solve the problems in the background technology.

In order to achieve the purpose, the invention provides the following technical scheme: a power failure pressure test method for a flash memory device comprises a PC, a simple power-off device and a platform, wherein the PC is connected with the simple power-off device through a USB, the simple power-off device supplies power to the platform through a power output line, and the platform is connected with the PC through a serial port, a USB or a network cable.

Preferably, the method for testing the power-down pressure of the flash memory device comprises the following steps:

A. running designed PC control software;

B. clicking to start after the number of times of the expected test is set;

C. the software checks the current test times, stops the test if the target times is reached or the system is hung up, and continues to send a power-off command to the simple power-off device if the target times is reached;

D. the platform is started after the power-on device provides power for the platform;

E. the platform is powered on and started, and logs are continuously printed to the UART serial port, or the platform is successfully started to process a command sent by PC software;

F. the software obtains a system log of the startup end of the platform to be tested or returns a command processing result to the PC software;

G. the PC software processes the results returned by the platform and displays the results on the software;

H. and (5) finishing the test.

Preferably, the simple power-off device adopts a control switch.

Compared with the prior art, the invention has the beneficial effects that: the invention can be used for replacing manpower to perform voltage drop test on the flash memory device provided with the system, and performing power failure test on whether the system provided with the flash memory device is stable, and the purchase cost is reduced compared with the prior art.

Drawings

FIG. 1 is a schematic block diagram of the present invention;

FIG. 2 is a flow chart of the present invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Referring to fig. 1-2, the present invention provides a technical solution: a power failure pressure test method for a flash memory storage device comprises a PC1, a simple power-off device 2 and a platform 3, wherein the PC1 is connected with the simple power-off device 2 through a USB, the simple power-off device 2 supplies power to the platform 3 through a power output line, and the platform 3 is connected with the PC1 through a serial port, a USB or a network cable; the simple power-off device adopts a control switch.

In the invention, the connection of the external hardware device is completed, the test control software is installed on the PC, after the user sets the test times on the software, the PC sends a command to the simple power-off device through the USB, and the platform returns the startup information to the PC through the serial port, the USB or the network cable after being started. For example: when the Android development platform is used as a platform to be tested, the system log can be continuously printed through a UART serial port when the platform is started, and a mark can be printed after the platform is started, so that the platform can be judged to be successfully started after the PC control software obtains the mark, a starting check command can be continuously sent to the ADB service provided by the platform to check the system state, and if the mark is not obtained within a certain time, the platform is judged to be abnormal in starting. And the PC control software records the relevant information of the test, and the test for the first time is finished.

The working principle is as follows: a power failure pressure test method for a flash memory device comprises the following steps:

A. running designed PC control software;

B. clicking to start after the number of times of the expected test is set;

C. the software checks the current test times, stops the test if the target times is reached or the system is hung up, and continues to send a power-off command to the simple power-off device if the target times is reached;

D. the platform is started after the power-on device provides power for the platform;

E. the platform is powered on and started, and logs are continuously printed to the UART serial port, or the platform is successfully started to process a command sent by PC software;

F. the software obtains a system log of the startup end of the platform to be tested or returns a command processing result to the PC software;

G. the PC software processes the results returned by the platform and displays the results on the software;

H. and (5) finishing the test.

In conclusion, the method and the device can be used for replacing manpower to conduct voltage drop test on the flash memory device provided with the system, conducting power failure test on whether the system provided with the flash memory device is stable or not, and reducing purchasing cost compared with the prior art device.

Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种具有防水雾功能的精密仪器存储装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!