[go: up one dir, main page]

CN104516802A - Method and system for indicating statuses of different types of hard disks - Google Patents

Method and system for indicating statuses of different types of hard disks Download PDF

Info

Publication number
CN104516802A
CN104516802A CN201510009366.XA CN201510009366A CN104516802A CN 104516802 A CN104516802 A CN 104516802A CN 201510009366 A CN201510009366 A CN 201510009366A CN 104516802 A CN104516802 A CN 104516802A
Authority
CN
China
Prior art keywords
hard disk
pcie
status
signal
state
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
CN201510009366.XA
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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510009366.XA priority Critical patent/CN104516802A/en
Publication of CN104516802A publication Critical patent/CN104516802A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and system for indicating statuses of different types of hard disks. The method comprises the following steps: monitoring the status signal of each hard disk; judging the type of the hard disk according to the monitored status signal of the hard disk; reading and displaying the status information of the hard disk according to the judged type of the hard disk. Through the adoption of the technical scheme of the invention, the statuses of different types of hard disks can be indicated, so that the status indication for the hard disks is achieved while the interfaces of the hard disks are upgraded.

Description

一种指示不同类型硬盘的状态的方法及系统A method and system for indicating status of different types of hard drives

技术领域technical field

本发明涉及计算机技术,尤指一种指示不同类型硬盘的状态的方法及系统。The invention relates to computer technology, in particular to a method and system for indicating the states of different types of hard disks.

背景技术Background technique

随着大数据和云计算的发展,系统对存储的速率和可靠性要求越来越高,尤其对于高性能计算,对存储的速率要求很高,当前采用串行高级技术附件接口(SATA,Serial Advanced Technology Attachment)或串行连接小型计算机系统接口(SAS)的硬盘形态已经成为瓶颈。现有的硬盘背板所支持的硬盘状态指示却仅限于传统的SATA、SAS硬盘,通过SATA、SAS硬盘控制器获取与之相连的SATA和/或SAS硬盘的状态信息,其中,硬盘状态指示是指指示硬盘的状态,硬盘状态包括:硬盘的活动状态、定位状态和错误状态等,微处理器从硬盘控制器读取硬盘的状态信息,对获得的硬盘的状态信息进行处理发送给状态指示装置进行硬盘状态指示。随着存储技术的发展,串行总线接口(PCIE)固态硬盘(SSD)逐步登上了服务器舞台。而现有的硬盘背板所支持的硬盘状态指示却仅限于传统的SATA、SAS硬盘,无法满足在升级硬盘接口的同时做到对硬盘状态指示的兼容。With the development of big data and cloud computing, the system has higher and higher requirements for storage speed and reliability, especially for high-performance computing, which requires high storage speed. Currently, Serial Advanced Technology Attachment Interface (SATA, Serial Advanced Technology Attachment) or Serial Attached Small Computer System Interface (SAS) hard drives have become bottlenecks. The hard disk status indicators supported by the existing hard disk backplanes are limited to traditional SATA and SAS hard disks. The status information of the SATA and/or SAS hard disks connected to them can be obtained through the SATA and SAS hard disk controllers. The hard disk status indicators are Refers to indicating the state of the hard disk. The state of the hard disk includes: the active state, positioning state and error state of the hard disk. The microprocessor reads the state information of the hard disk from the hard disk controller, processes the obtained state information of the hard disk and sends it to the state indicating device Indicates the status of the hard disk. With the development of storage technology, Serial Bus Interface (PCIE) Solid State Disk (SSD) has gradually entered the server stage. However, the hard disk status indicators supported by the existing hard disk backplanes are limited to traditional SATA and SAS hard disks, which cannot be compatible with hard disk status indicators while upgrading the hard disk interface.

发明内容Contents of the invention

为了解决上述技术问题,本发明提供了一种指示不同类型硬盘的状态的方法及系统,能够指示不同类型的硬盘的状态。In order to solve the above technical problems, the present invention provides a method and system for indicating the states of different types of hard disks, which can indicate the states of different types of hard disks.

为了达到本发明目的,本发明提供了一种指示不同类型硬盘的状态的方法,包括:In order to achieve the purpose of the present invention, the present invention provides a method for indicating the states of different types of hard disks, including:

监测各个硬盘的状态信号;Monitor the status signal of each hard disk;

根据监测到的硬盘的状态信号判断硬盘的类型;Determine the type of the hard disk according to the monitored status signal of the hard disk;

根据判断出的硬盘的类型,读取该硬盘的状态信息并显示。According to the determined type of the hard disk, the status information of the hard disk is read and displayed.

进一步地,监测各个硬盘的状态信号,包括:通过小型存储接口SFF-8639与各个硬盘相连,监测各个硬盘的状态信号;Further, monitoring the status signal of each hard disk includes: connecting with each hard disk through a small storage interface SFF-8639, and monitoring the status signal of each hard disk;

其中,状态信号包括:在位Present信号和指示Ifdef信号。Wherein, the state signal includes: present signal and indication Ifdef signal.

进一步地,根据监测到的硬盘的状态信号判断硬盘的类型,包括:Further, judging the type of the hard disk according to the monitored status signal of the hard disk, including:

当监测到的硬盘的状态信号为Present信号且Present=0时,监测Ifdef信号;When the status signal of the monitored hard disk is a Present signal and Present=0, monitor the Ifdef signal;

当监测到的Ifdef=0时,则判断该硬盘为PCIE硬盘;当监测到的Ifdef=1时,则判断该硬盘为非PCIE硬盘。When the detected Ifdef=0, it is judged that the hard disk is a PCIE hard disk; when the detected Ifdef=1, it is judged that the hard disk is a non-PCIE hard disk.

进一步地,根根据判断出的硬盘的类型,读取该硬盘的状态信息并显示,包括:Further, the root reads and displays the status information of the hard disk according to the determined type of the hard disk, including:

当硬盘为PCIE硬盘时,从PCIE控制器读取该硬盘的状态信息,根据获得的该硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态;When the hard disk is a PCIE hard disk, read the status information of the hard disk from the PCIE controller, and control the LED lights corresponding to the hard disk to display the status of the hard disk according to the obtained status information of the hard disk;

当硬盘为非PCIE硬盘时,从非PCIE控制器读取该硬盘的状态信息,根据获得的该硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态。When the hard disk is a non-PCIE hard disk, read the status information of the hard disk from the non-PCIE controller, and control the LED lights corresponding to the hard disk to display the status of the hard disk according to the obtained status information of the hard disk.

进一步地,通过控制硬盘对应的LED灯显示该硬盘的状态。Further, the status of the hard disk is displayed by controlling the LED light corresponding to the hard disk.

本发明还提供了一种指示不同类型硬盘的状态的系统,包括:监测模块、判断模块、控制模块和一个以上的LED灯;其中,The present invention also provides a system for indicating the states of different types of hard disks, including: a monitoring module, a judging module, a control module and more than one LED light; wherein,

监测模块,用于监测各个硬盘的状态信号;A monitoring module, configured to monitor status signals of each hard disk;

判断模块,用于根据监测到的硬盘的状态信号判断硬盘的类型;A judging module, configured to judge the type of the hard disk according to the monitored status signal of the hard disk;

控制模块,用于根据判断出的硬盘的类型,读取该硬盘的状态信息并控制与该硬盘对应的LED灯显示该硬盘的状态;The control module is used to read the state information of the hard disk and control the LED light corresponding to the hard disk to display the state of the hard disk according to the determined type of the hard disk;

LED灯,用于显示对应的硬盘的状态。LED lights are used to display the status of the corresponding hard disk.

进一步地,该系统还包括:一个以上的小型存储接口SFF-8639,用于与各个硬盘相连,并与监测模块相连;Further, the system also includes: more than one small storage interface SFF-8639, which is used to connect with each hard disk and connect with the monitoring module;

监测模块,具体用于:通过小型存储接口SFF-8639与各个硬盘相连,监测各个硬盘的状态信号;The monitoring module is specifically used for: connecting with each hard disk through the small storage interface SFF-8639, and monitoring the status signal of each hard disk;

其中,状态信号包括:在位Present信号和指示Ifdef信号。Wherein, the state signal includes: present signal and indication Ifdef signal.

进一步地,判断模块,具体用于:Further, the judging module is specifically used for:

当监测到的硬盘的状态信号为Present信号且Present=0时,监测Ifdef信号;When the status signal of the monitored hard disk is a Present signal and Present=0, monitor the Ifdef signal;

当监测到的Ifdef=0时,则判断该硬盘为PCIE硬盘;当监测到的Ifdef=1时,则判断该硬盘为非PCIE硬盘。When the detected Ifdef=0, it is judged that the hard disk is a PCIE hard disk; when the detected Ifdef=1, it is judged that the hard disk is a non-PCIE hard disk.

进一步地,该系统还包括:PCIE控制器和非PCIE控制器;Further, the system also includes: a PCIE controller and a non-PCIE controller;

其中,PCIE控制器,用于与PCIE硬盘进行信息交互获取PCIE硬盘的状态信息;非PCIE控制器,用于与非PCIE硬盘进行信息交互获取非PCIE硬盘的状态信息;Among them, the PCIE controller is used for information interaction with the PCIE hard disk to obtain the status information of the PCIE hard disk; the non-PCIE controller is used for information interaction with the non-PCIE hard disk to obtain the status information of the non-PCIE hard disk;

控制模块,具体用于:control module, specifically for:

当硬盘为PCIE硬盘时,从PCIE控制器读取该硬盘的状态信息,根据获得的该硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态;When the hard disk is a PCIE hard disk, read the status information of the hard disk from the PCIE controller, and control the LED lights corresponding to the hard disk to display the status of the hard disk according to the obtained status information of the hard disk;

当硬盘为非PCIE硬盘时,从非PCIE控制器读取该硬盘的状态信息,根据获得的该硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态。When the hard disk is a non-PCIE hard disk, read the status information of the hard disk from the non-PCIE controller, and control the LED lights corresponding to the hard disk to display the status of the hard disk according to the obtained status information of the hard disk.

本发明技术方案包括:监测各个硬盘的状态信号;根据监测到的硬盘的状态信号判断硬盘的类型;根据判断出的硬盘的类型,读取该硬盘的状态信息并显示。本发明技术方案能够指示不同类型的硬盘的状态,实现了在升级硬盘接口的同时做到对硬盘状态指示的兼容。提高了产品竞争力,节约了成本。The technical solution of the invention includes: monitoring the state signals of each hard disk; judging the type of the hard disk according to the monitored state signal of the hard disk; and reading and displaying the state information of the hard disk according to the judged type of the hard disk. The technical scheme of the invention can indicate the states of different types of hard disks, and achieve compatibility with hard disk state indications while upgrading the hard disk interface. Improve product competitiveness and save costs.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1为本发明指示不同类型硬盘的状态的方法的流程图;Fig. 1 is a flow chart of the method for indicating the states of different types of hard disks according to the present invention;

图2为本发明指示不同类型硬盘的状态的系统的结构示意图。FIG. 2 is a schematic structural diagram of a system for indicating states of different types of hard disks according to the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

图1为本发明指示不同类型硬盘的状态的方法的流程图,如图1所示,包括:Fig. 1 is a flow chart of the method for indicating the states of different types of hard disks according to the present invention, as shown in Fig. 1 , including:

步骤101:监测各个硬盘的状态信号。Step 101: Monitor status signals of each hard disk.

具体包括:通过小型存储接口SFF-8639与各个硬盘相连,监测各个硬盘的状态信号。Specifically include: connecting with each hard disk through the small storage interface SFF-8639, and monitoring the status signal of each hard disk.

其中,状态信号至少包括:在位(Present)信号和指示(Ifdef)信号。Wherein, the state signal at least includes: a present (Present) signal and an indication (Ifdef) signal.

步骤102:根据监测到的硬盘的状态信号判断硬盘的类型。Step 102: Determine the type of the hard disk according to the monitored status signal of the hard disk.

具体包括:当监测到的硬盘的状态信号为Present信号且Present=0时,监测Ifdef信号;Specifically include: when the monitored status signal of the hard disk is a Present signal and Present=0, monitor the Ifdef signal;

当监测到的Ifdef=0时,则判断该硬盘为PCIE硬盘;当监测到的Ifdef=1时,则判断该硬盘为非PCIE硬盘。When the detected Ifdef=0, it is judged that the hard disk is a PCIE hard disk; when the detected Ifdef=1, it is judged that the hard disk is a non-PCIE hard disk.

其中,非PCIE硬盘至少包括:SAS硬盘和/或SATA硬盘。Wherein, the non-PCIE hard disk at least includes: SAS hard disk and/or SATA hard disk.

步骤103:根据判断出的硬盘的类型,读取该硬盘的状态信息并显示。Step 103: According to the determined type of the hard disk, read and display the status information of the hard disk.

具体包括:当硬盘为PCIE硬盘时,从PCIE控制器读取该硬盘的状态信息,根据获得的该硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态;Specifically include: when the hard disk is a PCIE hard disk, read the status information of the hard disk from the PCIE controller, and control the LED lights corresponding to the hard disk to display the status of the hard disk according to the obtained status information of the hard disk;

当硬盘为非PCIE硬盘时,从非PCIE控制器读取该硬盘的状态信息,根据获得的该硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态。When the hard disk is a non-PCIE hard disk, read the status information of the hard disk from the non-PCIE controller, and control the LED lights corresponding to the hard disk to display the status of the hard disk according to the obtained status information of the hard disk.

需要说明的是,关于如何控制与硬盘对应的LED灯显示该硬盘的状态属于本领域技术人员所熟知的惯用技术手段,并不用来限制本发明,在此不再赘述。It should be noted that how to control the LED light corresponding to the hard disk to display the status of the hard disk is a common technical means well known to those skilled in the art, and is not used to limit the present invention, and will not be repeated here.

其中,状态信息包括:硬盘的活动状态、定位状态和错误状态等。以及,非PCIE控制器为磁盘阵列(Raid)卡,PCIE控制器为中央处理器(CPU)。Wherein, the status information includes: activity status, location status and error status of the hard disk. And, the non-PCIE controller is a disk array (Raid) card, and the PCIE controller is a central processing unit (CPU).

其中,每个LED灯包括三个硬盘状态指示灯,分别为:定位(Locate)指示灯、错误(Error)指示灯、活动(Active)指示灯。根据从硬盘控制器(PCIE控制器或非PCIE控制器)中获得的硬盘的状态信息,控制与该硬盘对应的LED灯显示该硬盘的状态(即点亮与状态信息对应的指示灯)。Wherein, each LED light includes three hard disk status indicators, namely: Locate indicator, Error indicator, and Active indicator. According to the state information of the hard disk obtained from the hard disk controller (PCIE controller or non-PCIE controller), control the LED light corresponding to the hard disk to display the state of the hard disk (that is, turn on the indicator light corresponding to the state information).

上述方法中,可以通过片上可编程系统(PSOC)芯片进行实现,PSOC芯片与PCIE控制器通过I2C(Inter-Integrated Circuit)总线相连;PSOC芯片与非PCIE控制器通过串行通用输入/输出(SGPIO)总线相连。具体如何使用PSOC芯片实现本发明方法属于本领域技术人员的惯用技术手段,并不用于限定本发明的保护范围,这里不再赘述。In the above method, it can be realized by a programmable system on chip (PSOC) chip, and the PSOC chip and the PCIE controller are connected through an I2C (Inter-Integrated Circuit) bus; the PSOC chip and the non-PCIE controller are connected through a serial general input/output (SGPIO ) connected to the bus. How to use the PSOC chip to implement the method of the present invention belongs to the usual technical means of those skilled in the art, and is not used to limit the protection scope of the present invention, so it will not be repeated here.

本发明方法中通过硬盘的状态信号判断出硬盘的状态,进而能够指示不同类型的硬盘的状态,实现了在升级硬盘接口的同时做到对硬盘状态指示的兼容。In the method of the present invention, the state of the hard disk is judged by the state signal of the hard disk, and then the states of different types of hard disks can be indicated, thereby achieving compatibility with hard disk state indications while upgrading the hard disk interface.

图2为本发明指示不同类型硬盘的状态的系统的结构示意图,如图2所示,包括:监测模块、判断模块、控制模块和一个以上的LED灯。其中,FIG. 2 is a schematic structural diagram of the system indicating the states of different types of hard disks according to the present invention. As shown in FIG. 2 , it includes: a monitoring module, a judging module, a control module and more than one LED light. in,

监测模块,用于监测各个硬盘的状态信号。The monitoring module is used for monitoring status signals of each hard disk.

判断模块,用于根据监测到的硬盘的状态信号判断硬盘的类型。The judging module is used for judging the type of the hard disk according to the monitored status signal of the hard disk.

控制模块,用于根据判断出的硬盘的类型,读取该硬盘的状态信息并控制与该硬盘对应的LED灯显示该硬盘的状态。The control module is used for reading the state information of the hard disk and controlling the LED light corresponding to the hard disk to display the state of the hard disk according to the determined type of the hard disk.

LED灯,用于显示对应的硬盘的状态。LED lights are used to display the status of the corresponding hard disk.

其中,LED灯包括三个硬盘状态指示灯,分别为:定位(Locate)指示灯、错误(Error)指示灯、活动(Active)指示灯。控制模块根据从硬盘控制器(PCIE控制器或SAS控制器)中获得的硬盘的状态信息,控制与该硬盘对应的LED灯显示该硬盘的状态(即点亮与状态信息对应的指示灯)。Among them, the LED lights include three hard disk status indicators, namely: Locate (Locate) indicator, Error (Error) indicator, and Activity (Active) indicator. According to the state information of the hard disk obtained from the hard disk controller (PCIE controller or SAS controller), the control module controls the LED light corresponding to the hard disk to display the state of the hard disk (ie lights up the indicator light corresponding to the state information).

进一步地,该系统还包括一个以上的小型存储接口SFF-8639,用于与各个硬盘相连,通过PCB走线与监测模块相连。Furthermore, the system also includes more than one small storage interface SFF-8639, which is used to connect with each hard disk, and connects with the monitoring module through PCB wiring.

其中,监测模块,具体用于:通过小型存储接口SFF-8639与各个硬盘相连,监测各个硬盘的状态信号。其中,状态信号至少包括:在位(Present)信号和指示(Ifdef)信号。Among them, the monitoring module is specifically used for: connecting with each hard disk through a small storage interface SFF-8639, and monitoring the status signal of each hard disk. Wherein, the state signal at least includes: a present (Present) signal and an indication (Ifdef) signal.

判断模块,具体用于:The judgment module is specifically used for:

当监测到的硬盘的状态信号为Present信号且Present=0时,监测Ifdef信号;When the status signal of the monitored hard disk is a Present signal and Present=0, monitor the Ifdef signal;

当监测到的Ifdef=0时,则判断所述硬盘为PCIE硬盘;当监测到的Ifdef=1时,则判断所述硬盘为非PCIE硬盘。其中,非PCIE硬盘包括:SAS硬盘和/或SATA硬盘。When the detected Ifdef=0, it is judged that the hard disk is a PCIE hard disk; when the detected Ifdef=1, it is judged that the hard disk is a non-PCIE hard disk. Wherein, the non-PCIE hard disk includes: SAS hard disk and/or SATA hard disk.

控制模块,具体用于:control module, specifically for:

当硬盘为PCIE硬盘时,从PCIE控制器读取所述硬盘的状态信息,根据获得的所述硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态;When the hard disk is a PCIE hard disk, read the state information of the hard disk from the PCIE controller, and control the LED lights corresponding to the hard disk to display the state of the hard disk according to the state information of the obtained hard disk;

当硬盘为非PCIE硬盘时,从非PCIE控制器读取所述硬盘的状态信息,根据获得的所述硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态。When the hard disk is a non-PCIE hard disk, read the state information of the hard disk from the non-PCIE controller, and control the LED lights corresponding to the hard disk to display the state of the hard disk according to the obtained state information of the hard disk.

其中,状态信息包括:硬盘的活动状态、定位状态和错误状态等。以及,非PCIE控制器为磁盘阵列(Raid)卡,PCIE控制器为中央处理器(CPU)。Wherein, the status information includes: activity status, location status and error status of the hard disk. And, the non-PCIE controller is a disk array (Raid) card, and the PCIE controller is a central processing unit (CPU).

进一步地,该系统还包括,与控制模块通过I2C总线相连的PCIE控制器和与控制模块通过串行通用输入/输出(SGPIO)总线相连的非PCIE控制器。Further, the system also includes a PCIE controller connected to the control module through an I2C bus and a non-PCIE controller connected to the control module through a serial general input/output (SGPIO) bus.

其中,PCIE控制器,用于与PCIE硬盘进行信息交互获取PCIE硬盘的状态信息,以便控制模块读取PCIE硬盘的状态信息;非PCIE控制器,用于与非PCIE硬盘进行信息交互获取非PCIE硬盘的状态信息,以便控制模块读取非PCIE硬盘的状态信息。Among them, the PCIE controller is used for information interaction with the PCIE hard disk to obtain the status information of the PCIE hard disk, so that the control module can read the status information of the PCIE hard disk; the non-PCIE controller is used for information interaction with the non-PCIE hard disk to obtain the non-PCIE hard disk status information so that the control module can read the status information of non-PCIE hard disks.

其中,状态信息包括:硬盘的活动状态、定位状态和错误状态等。以及,SAS控制器为磁盘阵列(Raid)卡,PCIE控制器为中央处理器(CPU)。Wherein, the status information includes: activity status, location status and error status of the hard disk. And, the SAS controller is a disk array (Raid) card, and the PCIE controller is a central processing unit (CPU).

需要说明的是,关于PCIE控制器和非PCIE控制器如何与硬盘进行信息交互获取硬盘的状态信息,属于本领域技术人员所熟知的惯用技术手段,在此不再赘述。It should be noted that how the PCIE controller and the non-PCIE controller interact with the hard disk to obtain the status information of the hard disk is a conventional technical means well known to those skilled in the art, and will not be repeated here.

其中,监测模块、判断模块、控制模块可以集成在PSOC芯片中。Wherein, the monitoring module, judgment module and control module can be integrated in the PSOC chip.

需要说明的是,上述LED等可以替换为替他指示装置,例如发光二极管等。It should be noted that the aforementioned LEDs can be replaced by other indicating devices, such as light emitting diodes.

本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序来指令相关硬件完成,所述程序可以存储于计算机可读存储介质中,如只读存储器、磁盘或光盘等。可选地,上述实施例的全部或部分步骤也可以使用一个或多个集成电路来实现。相应地,上述实施例中的各模块/单元可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。本申请不限制于任何特定形式的硬件和软件的结合。Those skilled in the art can understand that all or part of the steps in the above method can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium, such as a read-only memory, a magnetic disk or an optical disk, and the like. Optionally, all or part of the steps in the foregoing embodiments may also be implemented using one or more integrated circuits. Correspondingly, each module/unit in the foregoing embodiments may be implemented in the form of hardware, or may be implemented in the form of software function modules. This application is not limited to any specific form of combination of hardware and software.

以上所述,仅为本发明的较佳实例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred examples of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (9)

1.一种指示不同类型硬盘的状态的方法,其特征在于,包括:1. A method for indicating the states of different types of hard disks, comprising: 监测各个硬盘的状态信号;Monitor the status signal of each hard disk; 根据监测到的硬盘的状态信号判断硬盘的类型;Determine the type of the hard disk according to the monitored status signal of the hard disk; 根据判断出的硬盘的类型,读取该硬盘的状态信息并显示。According to the determined type of the hard disk, the state information of the hard disk is read and displayed. 2.根据权利要求1所述的方法,其特征在于,所述监测各个硬盘的状态信号,包括:通过小型存储接口SFF-8639与各个硬盘相连,监测各个硬盘的状态信号;2. The method according to claim 1, wherein said monitoring the status signals of each hard disk comprises: connecting to each hard disk through a small storage interface SFF-8639, and monitoring the status signals of each hard disk; 其中,状态信号包括:在位Present信号和指示Ifdef信号。Wherein, the state signal includes: present signal and indication Ifdef signal. 3.根据权利要求2所述的方法,其特征在于,所述根据监测到的硬盘的状态信号判断硬盘的类型,包括:3. The method according to claim 2, wherein said judging the type of the hard disk according to the monitored status signal of the hard disk comprises: 当监测到的硬盘的状态信号为Present信号且Present=0时,监测Ifdef信号;When the status signal of the monitored hard disk is a Present signal and Present=0, monitor the Ifdef signal; 当监测到的Ifdef=0时,则判断该硬盘为PCIE硬盘;当监测到的Ifdef=1时,则判断该硬盘为非PCIE硬盘。When the detected Ifdef=0, it is judged that the hard disk is a PCIE hard disk; when the detected Ifdef=1, it is judged that the hard disk is a non-PCIE hard disk. 4.根据权利要求3所述的方法,其特征在于,所述根根据判断出的硬盘的类型,读取该硬盘的状态信息并显示,包括:4. The method according to claim 3, wherein the root reads and displays the status information of the hard disk according to the determined type of the hard disk, including: 当硬盘为PCIE硬盘时,从PCIE控制器读取所述硬盘的状态信息,根据获得的所述硬盘的状态信息控制与所述硬盘对应的LED灯显示所述硬盘的状态;When the hard disk is a PCIE hard disk, read the state information of the hard disk from the PCIE controller, and control the LED lights corresponding to the hard disk to display the state of the hard disk according to the obtained state information of the hard disk; 当硬盘为非PCIE硬盘时,从非PCIE控制器读取所述硬盘的状态信息,根据获得的所述硬盘的状态信息控制与所述硬盘对应的LED灯显示所述硬盘的状态。When the hard disk is a non-PCIE hard disk, read the state information of the hard disk from the non-PCIE controller, and control the LED lights corresponding to the hard disk to display the state of the hard disk according to the obtained state information of the hard disk. 5.根据权利要求4所述的方法,其特征在于,通过控制硬盘对应的LED灯显示该硬盘的状态。5. The method according to claim 4, wherein the status of the hard disk is displayed by controlling the LED light corresponding to the hard disk. 6.一种指示不同类型硬盘的状态的系统,其特征在于,包括:监测模块、判断模块、控制模块和一个以上的LED灯;其中,6. A system indicating the states of different types of hard disks, comprising: a monitoring module, a judging module, a control module and more than one LED light; wherein, 监测模块,用于监测各个硬盘的状态信号;A monitoring module, configured to monitor status signals of each hard disk; 判断模块,用于根据监测到的硬盘的状态信号判断硬盘的类型;A judging module, configured to judge the type of the hard disk according to the monitored status signal of the hard disk; 控制模块,用于根据判断出的硬盘的类型,读取该硬盘的状态信息并控制与该硬盘对应的LED灯显示该硬盘的状态;The control module is used to read the state information of the hard disk and control the LED light corresponding to the hard disk to display the state of the hard disk according to the determined type of the hard disk; LED灯,用于显示对应的硬盘的状态。LED lights are used to display the status of the corresponding hard disk. 7.根据权利要求6所述的系统,其特征在于,该系统还包括:一个以上的小型存储接口SFF-8639,用于与各个硬盘相连,并与监测模块相连;7. The system according to claim 6, characterized in that the system further comprises: more than one small storage interface SFF-8639, which is used to connect with each hard disk and connect with the monitoring module; 所述监测模块,具体用于:通过小型存储接口SFF-8639与各个硬盘相连,监测各个硬盘的状态信号;The monitoring module is specifically used for: connecting with each hard disk through a small storage interface SFF-8639, and monitoring the status signal of each hard disk; 其中,状态信号包括:在位Present信号和指示Ifdef信号。Wherein, the state signal includes: present signal and indication Ifdef signal. 8.根据权利要求7所述的系统,其特征在于,所述判断模块,具体用于:8. The system according to claim 7, wherein the judging module is specifically used for: 当监测到的硬盘的状态信号为Present信号且Present=0时,监测Ifdef信号;When the status signal of the monitored hard disk is a Present signal and Present=0, monitor the Ifdef signal; 当监测到的Ifdef=0时,则判断该硬盘为PCIE硬盘;当监测到的Ifdef=1时,则判断该硬盘为非PCIE硬盘。When the detected Ifdef=0, it is judged that the hard disk is a PCIE hard disk; when the detected Ifdef=1, it is judged that the hard disk is a non-PCIE hard disk. 9.根据权利要求8所述的系统,其特征在于,该系统还包括:PCIE控制器和非PCIE控制器;9. system according to claim 8, is characterized in that, this system also comprises: PCIE controller and non-PCIE controller; 其中,PCIE控制器,用于与PCIE硬盘进行信息交互获取PCIE硬盘的状态信息;非PCIE控制器,用于与非PCIE硬盘进行信息交互获取非PCIE硬盘的状态信息;Among them, the PCIE controller is used for information interaction with the PCIE hard disk to obtain the status information of the PCIE hard disk; the non-PCIE controller is used for information interaction with the non-PCIE hard disk to obtain the status information of the non-PCIE hard disk; 所述控制模块,具体用于:The control module is specifically used for: 当硬盘为PCIE硬盘时,从PCIE控制器读取所述硬盘的状态信息,根据获得的所述硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态;When the hard disk is a PCIE hard disk, read the state information of the hard disk from the PCIE controller, and control the LED lights corresponding to the hard disk to display the state of the hard disk according to the state information of the obtained hard disk; 当硬盘为非PCIE硬盘时,从非PCIE控制器读取所述硬盘的状态信息,根据获得的所述硬盘的状态信息控制与该硬盘对应的LED灯显示该硬盘的状态。When the hard disk is a non-PCIE hard disk, read the state information of the hard disk from the non-PCIE controller, and control the LED lights corresponding to the hard disk to display the state of the hard disk according to the obtained state information of the hard disk.
CN201510009366.XA 2015-01-08 2015-01-08 Method and system for indicating statuses of different types of hard disks Pending CN104516802A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510009366.XA CN104516802A (en) 2015-01-08 2015-01-08 Method and system for indicating statuses of different types of hard disks

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510009366.XA CN104516802A (en) 2015-01-08 2015-01-08 Method and system for indicating statuses of different types of hard disks

Publications (1)

Publication Number Publication Date
CN104516802A true CN104516802A (en) 2015-04-15

Family

ID=52792148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510009366.XA Pending CN104516802A (en) 2015-01-08 2015-01-08 Method and system for indicating statuses of different types of hard disks

Country Status (1)

Country Link
CN (1) CN104516802A (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105512007A (en) * 2015-12-17 2016-04-20 英业达科技有限公司 Method for controlling peripheral component interface express (PCIE) hard disk status lamp and system
CN106326171A (en) * 2016-08-24 2017-01-11 联想(北京)有限公司 Method and device for recognizing hard disk type of hard disk back plate
CN106649038A (en) * 2016-12-09 2017-05-10 英业达科技有限公司 Hard disk control system
CN106681880A (en) * 2015-11-06 2017-05-17 湖南百里目科技有限责任公司 Server storage hard disk positioning method
CN106708429A (en) * 2016-11-24 2017-05-24 英业达科技有限公司 Detection circuit
CN107017025A (en) * 2016-01-28 2017-08-04 瑞昱半导体股份有限公司 The solid state hard disc control circuit of Ssd apparatus and correlation with alarming device
CN107145430A (en) * 2017-04-21 2017-09-08 深圳市同泰怡信息技术有限公司 A kind of method for realizing NVMe SSD lightings by CPLD based on I2C interfaces
CN107463521A (en) * 2016-06-06 2017-12-12 瑞昱半导体股份有限公司 solid state disk control device and method
CN107622002A (en) * 2017-09-14 2018-01-23 郑州云海信息技术有限公司 System and method for designing indicator light of server hard disk compatible with NVME hard disk
CN108319540A (en) * 2017-01-18 2018-07-24 佛山市顺德区顺达电脑厂有限公司 Hard disk lamp number control system
CN109032900A (en) * 2018-06-15 2018-12-18 烽火通信科技股份有限公司 Compatible a plurality of types of hard disk indication lamp control methods and system
CN109062773A (en) * 2018-08-03 2018-12-21 联想(北京)有限公司 A kind of information processing method and electronic equipment
WO2018233222A1 (en) * 2017-06-20 2018-12-27 郑州云海信息技术有限公司 Design method and apparatus for self-recognition of m.2 capable of flexibly supporting pcie and sata protocols
TWI685738B (en) * 2018-08-17 2020-02-21 神雲科技股份有限公司 Led control method for disk drive
CN110895502A (en) * 2018-12-24 2020-03-20 研祥智能科技股份有限公司 Hard disk state indicating device control method and device, electronic equipment and storage medium
US10776288B2 (en) 2016-06-01 2020-09-15 Raymx Microelectronics Corp. Apparatus for adapting interface type of peripheral device and method thereof
US10909047B2 (en) 2016-06-01 2021-02-02 Raymx Microelectronics Corp. Flash memory control device capable of detecting type of interface and method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201153336Y (en) * 2007-10-31 2008-11-19 佛山市顺德区顺达电脑厂有限公司 Control circuit of hard disk drive operating status indicating lamp
US20130232301A1 (en) * 2010-12-09 2013-09-05 Dell Products, Lp System and Method for Mapping a Logical Drive Status to a Physical Drive Status for Multiple Storage Drives Having Different Storage Technologies within a Server
CN104133716A (en) * 2014-08-18 2014-11-05 浪潮电子信息产业股份有限公司 Method for testing main board hardware stability of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201153336Y (en) * 2007-10-31 2008-11-19 佛山市顺德区顺达电脑厂有限公司 Control circuit of hard disk drive operating status indicating lamp
US20130232301A1 (en) * 2010-12-09 2013-09-05 Dell Products, Lp System and Method for Mapping a Logical Drive Status to a Physical Drive Status for Multiple Storage Drives Having Different Storage Technologies within a Server
CN104133716A (en) * 2014-08-18 2014-11-05 浪潮电子信息产业股份有限公司 Method for testing main board hardware stability of server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SSD FORM FACTOR WORKING GROUP: "Enterprise SSD Form Factor Version 1.0", 《SPECIFICATION@SSDFORMFACTOR.ORG 》 *

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106681880A (en) * 2015-11-06 2017-05-17 湖南百里目科技有限责任公司 Server storage hard disk positioning method
CN105512007B (en) * 2015-12-17 2018-12-04 英业达科技有限公司 A kind of control method and system of PCIE disk state lamp
US20200273300A1 (en) * 2015-12-17 2020-08-27 Inventec (Pudong) Technology Corporation Method and system for controlling status indication light of pcie hard disk drive
WO2017101217A1 (en) * 2015-12-17 2017-06-22 英业达科技有限公司 Method and system for controlling pcie hard drive status light
CN105512007A (en) * 2015-12-17 2016-04-20 英业达科技有限公司 Method for controlling peripheral component interface express (PCIE) hard disk status lamp and system
US10909818B2 (en) * 2015-12-17 2021-02-02 Inventec (Pudong) Technology Corporation Method and system for controlling status indication light of PCIE hard disk drive
CN107017025A (en) * 2016-01-28 2017-08-04 瑞昱半导体股份有限公司 The solid state hard disc control circuit of Ssd apparatus and correlation with alarming device
US10776288B2 (en) 2016-06-01 2020-09-15 Raymx Microelectronics Corp. Apparatus for adapting interface type of peripheral device and method thereof
US10817437B2 (en) 2016-06-01 2020-10-27 Raymx Microelectronics Corp. Solid state drive control device and method
US10909047B2 (en) 2016-06-01 2021-02-02 Raymx Microelectronics Corp. Flash memory control device capable of detecting type of interface and method thereof
CN107463521A (en) * 2016-06-06 2017-12-12 瑞昱半导体股份有限公司 solid state disk control device and method
CN107463521B (en) * 2016-06-06 2020-09-01 合肥沛睿微电子股份有限公司 Solid state disk control device and method
CN106326171A (en) * 2016-08-24 2017-01-11 联想(北京)有限公司 Method and device for recognizing hard disk type of hard disk back plate
CN106708429A (en) * 2016-11-24 2017-05-24 英业达科技有限公司 Detection circuit
CN106708429B (en) * 2016-11-24 2019-12-24 英业达科技有限公司 Detection circuit
CN106649038A (en) * 2016-12-09 2017-05-10 英业达科技有限公司 Hard disk control system
CN106649038B (en) * 2016-12-09 2019-05-07 英业达科技有限公司 Hard disk controlling system
CN108319540A (en) * 2017-01-18 2018-07-24 佛山市顺德区顺达电脑厂有限公司 Hard disk lamp number control system
CN108319540B (en) * 2017-01-18 2020-08-11 佛山市顺德区顺达电脑厂有限公司 Hard disk lamp signal control system
CN107145430A (en) * 2017-04-21 2017-09-08 深圳市同泰怡信息技术有限公司 A kind of method for realizing NVMe SSD lightings by CPLD based on I2C interfaces
WO2018233222A1 (en) * 2017-06-20 2018-12-27 郑州云海信息技术有限公司 Design method and apparatus for self-recognition of m.2 capable of flexibly supporting pcie and sata protocols
CN107622002A (en) * 2017-09-14 2018-01-23 郑州云海信息技术有限公司 System and method for designing indicator light of server hard disk compatible with NVME hard disk
CN109032900A (en) * 2018-06-15 2018-12-18 烽火通信科技股份有限公司 Compatible a plurality of types of hard disk indication lamp control methods and system
CN109032900B (en) * 2018-06-15 2022-07-08 烽火通信科技股份有限公司 Control method and system compatible with multiple types of hard disk indicator lamps
CN109062773A (en) * 2018-08-03 2018-12-21 联想(北京)有限公司 A kind of information processing method and electronic equipment
US10642707B2 (en) 2018-08-17 2020-05-05 Mitac Computing Technology Corporation Method for indicating status of a storage device
TWI685738B (en) * 2018-08-17 2020-02-21 神雲科技股份有限公司 Led control method for disk drive
CN110895502A (en) * 2018-12-24 2020-03-20 研祥智能科技股份有限公司 Hard disk state indicating device control method and device, electronic equipment and storage medium
CN110895502B (en) * 2018-12-24 2024-02-20 深圳市亿万克数据设备科技有限公司 Control method and device for hard disk state indicating device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104516802A (en) Method and system for indicating statuses of different types of hard disks
US9921933B2 (en) System and method for indicator light control of storage devices
US9460042B2 (en) Backplane controller to arbitrate multiplexing of communication
US8830611B1 (en) Working states of hard disks indicating apparatus
US9367510B2 (en) Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane
US9146823B2 (en) Techniques for testing enclosure management controller using backplane initiator
US9164861B2 (en) Drive mapping using a plurality of connected enclosure management controllers
CN107622002A (en) System and method for designing indicator light of server hard disk compatible with NVME hard disk
CN104484264A (en) Hard disk state indication method and hard disk state indication device
CN105529045A (en) Lamp signal control system for nonvolatile memory solid state disk
CN107818062A (en) A kind of hard disk backboard and its design method of compatible SAS, SATA and NVME hard disk
CN206515814U (en) A kind of monitoring hard-disk status device
CN108845763A (en) A kind of system and method for managing disk state concentratedly
CN105487959A (en) Management method of intel NVMe hard disk
CN109032992A (en) A kind of server NVME hard disk backboard LED control device and method
US20150161069A1 (en) Handling two sgpio channels using single sgpio decoder on a backplane controller
CN104794043A (en) Control method for achieving light-up indication of server hard disk state
CN107656857A (en) A kind of NVMeSSD hard disks ignition method and device
CN205621448U (en) Lamp controlgear is instructed to hard disk
US9916273B2 (en) Sideband serial channel for PCI express peripheral devices
TWI742461B (en) System for detecting installation state of hard disk
CN104731686A (en) Indicator control system and electronic device
CN102376338B (en) Hard disk module
US9619359B2 (en) Server and device for analyzing a signal thereof
TW201721431A (en) System is applied to control indicator lights for non-volatile memory express solid state disk

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150415

RJ01 Rejection of invention patent application after publication