Multiple hard disk LED lamp test system and method

多硬盘led灯测试系统及方法

Abstract

The invention discloses a multiple hard disk LED lamp test method, comprising: obtaining the number of hard disks normally connected to a computer; calling an API function in the operating system of the computer to establish a primary thread; establishing a corresponding sub thread for each hard disk by the thread function of the primary thread respectively; driving an LED lamp on each hard disk by the data exchange between each sub thread and corresponding hard disk; testing the state of the LED lamp on each hard disk; prompting that the LED lamp on the hard disk complies with the standard if the LED lamp on the hard disk is in a light-up state; warning that the LED lamp on the hard disk does not comply with the standard if the LED lamp on the hard disk is in an extinct state; and generating a test report of the multiple hard disk LED lamps according to the test result of the LED lamp on each hard disk. The implementation of the invention can fast test goodness of quantities of hard disk LED lamps, enhance coverage of test and save test time and cost.
一种多硬盘LED灯测试方法包括步骤:获取正常连接到计算机上的硬盘数量;调用计算机操作系统中的API函数来创建一个主线程;通过该主线程的线程函数为每一个硬盘分别创建一个对应的子线程;通过每一个子线程与其对应的硬盘进行数据交互来驱动每一个硬盘上的LED灯;检测每一个硬盘上的LED灯状态;若硬盘上的LED灯处于点亮状态,则提示该硬盘上的LED灯符合标准;若硬盘上的LED灯处于熄灭状态,则警示该硬盘上的LED灯不符合标准;根据每一个硬盘上的LED灯的测试结果生成多硬盘LED灯的测试报告。实施本发明,能够快速地测试大批量硬盘LED灯的良好性,提高测试的覆盖面,节约测试时间及测试成本。

Claims

Description

Topics

Download Full PDF Version (Non-Commercial Use)

Patent Citations (0)

    Publication numberPublication dateAssigneeTitle

NO-Patent Citations (0)

    Title

Cited By (2)

    Publication numberPublication dateAssigneeTitle
    CN-102141949-AAugust 03, 2011浪潮电子信息产业股份有限公司Method for quickly detecting bad sector of SATA hard disk
    CN-104484131-AApril 01, 2015珠海金山网络游戏科技有限公司, 广州西山居世游网络科技有限公司Device and corresponding method for processing data of multi-disk servers