TWI564722B - Black plane and method for detecting serial general purpose input/output signal thereof - Google Patents

Black plane and method for detecting serial general purpose input/output signal thereof Download PDF

Info

Publication number
TWI564722B
TWI564722B TW103143534A TW103143534A TWI564722B TW I564722 B TWI564722 B TW I564722B TW 103143534 A TW103143534 A TW 103143534A TW 103143534 A TW103143534 A TW 103143534A TW I564722 B TWI564722 B TW I564722B
Authority
TW
Taiwan
Prior art keywords
count value
signal
serial
purpose input
voltage level
Prior art date
Application number
TW103143534A
Other languages
Chinese (zh)
Other versions
TW201621674A (en
Inventor
顏敏男
Original Assignee
環鴻科技股份有限公司
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 環鴻科技股份有限公司 filed Critical 環鴻科技股份有限公司
Priority to TW103143534A priority Critical patent/TWI564722B/en
Publication of TW201621674A publication Critical patent/TW201621674A/en
Application granted granted Critical
Publication of TWI564722B publication Critical patent/TWI564722B/en

Links

Landscapes

  • Information Transfer Systems (AREA)

Description

硬碟背板及其串列通用輸入輸出訊號的偵測方法 Hard disk backplane and its serial detection method for detecting common input and output signals

本發明關於一種硬碟背板及其串列通用輸入輸出訊號的偵測方法,特別是指一種能判斷由一起始端傳送的一串列通用輸入輸出訊號之訊框容量的硬碟背板及其串列通用輸入輸出訊號的偵測方法。 The present invention relates to a method for detecting a hard disk backplane and its serial general-purpose input and output signals, and more particularly to a hard disk backplane capable of determining the frame capacity of a series of general-purpose input and output signals transmitted by a start end and Serial detection of general-purpose input and output signals.

在電腦領域中,伺服器可採用串列通用輸入輸出匯流排(Serial General Purpose Input/Output bus,簡稱SGPIO bus),來實現主機板(Motherboard)與硬碟背板(Black plane)間的通訊。一般來說,主機板與硬碟背板間可連接SGPIO纜線,主機板通過所述SGPIO纜線傳送SGPIO訊號至硬碟背板,接著硬碟背板解碼所述SGPIO訊號,以控制多個指示元件(如發光二極體,Light-Emitting Diode,簡稱LED)來指示硬碟狀態。例如:每個硬碟對應三個發光二極體,所述發光二極體可分別指示硬碟的活動(activity)、確定(locate)及錯誤(error)等資訊。 In the computer field, the server can use a Serial General Purpose Input/Output Bus (SGPIO bus) to communicate between the Motherboard and the Blackplane. Generally, a SGPIO cable can be connected between the motherboard and the hard disk backplane, and the motherboard transmits the SGPIO signal to the hard disk backplane through the SGPIO cable, and then the hard disk backplane decodes the SGPIO signal to control multiple A pointing component (such as a Light-Emitting Diode, LED for short) is used to indicate the state of the hard disk. For example, each hard disk corresponds to three light-emitting diodes, and the light-emitting diodes respectively indicate information such as an activity, a locate, and an error of the hard disk.

進一步地說,主機板上可插設有硬碟控制元件(如主機匯流排配接器(host bus adapter,簡稱HBA)卡、獨立磁碟冗餘陣列(Redundant Array of Independent Disks,簡稱RAID)卡或平台控制器(Platform Controller Hub,簡稱PCH)等),所述硬碟控制元件用以傳送符合SFF-8485規格書規範的SGPIO訊號至硬碟背板,故所 述硬碟控制元件可視為一起始端(initiator),而硬碟背板可視為一目標端(target)。值得注意的是,因不同硬碟控制元件所支援的硬碟數目並不相同,故不同硬碟控制元件所傳送的SGPIO訊號之訊框容量(Frame size)亦不相同。 Further, a hard disk control component (such as a host bus adapter (HBA) card or a Redundant Array of Independent Disks (RAID) card) may be inserted into the motherboard. Or a platform controller (PCH), etc., the hard disk control component is configured to transmit a SGPIO signal conforming to the SFF-8485 specification to a hard disk backplane. The hard disk control element can be regarded as an initiator, and the hard disk backplane can be regarded as a target. It is worth noting that the number of hard disks supported by different hard disk control components is different, so the frame size of SGPIO signals transmitted by different hard disk control components is also different.

因此,當使用者欲更換主機板上既有的硬碟控制元件時,若欲設置的硬碟控制元件與既有的硬碟控制元件提供的SGPIO訊號之訊框容量不相同,則使用者須以人工跳線(Jump)的方式,來切換硬碟背板讀取SGPIO訊號的方式,讓硬碟背板知悉SGPIO訊號的訊框容量,以正確解碼SGPIO訊號。否則,硬碟背板將無法控制指示元件來顯示硬碟狀態。然而,所述跳線的方式雖然簡單且成本低廉,但卻會浪費通用輸入輸出(General Purpose Input/Output,簡稱GPIO)資源,且當有多個主機板之硬碟控制元件需同時進行更換時,則容易因人為疏失,造成硬碟背板無法正確解碼SGPIO訊號。 Therefore, when the user wants to replace the existing hard disk control component on the motherboard, if the hard disk control component to be set is different from the frame capacity of the SGPIO signal provided by the existing hard disk control component, the user must The manual jumper (Jump) is used to switch the SGPIO signal on the hard disk backplane, so that the hard disk backplane knows the frame capacity of the SGPIO signal to correctly decode the SGPIO signal. Otherwise, the hard disk backplane will not be able to control the indicator component to display the hard disk status. However, the method of the jumper is simple and low-cost, but it wastes General Purpose Input/Output (GPIO) resources, and when multiple hard disk control components of multiple motherboards need to be replaced at the same time. , it is easy to cause human error, causing the hard disk backplane to not correctly decode the SGPIO signal.

另一方面,除了上述跳線的方式外,亦可在伺服器開機時,藉由基本輸入輸出系統(Basic Input/Output System,簡稱BIOS)收集相關資訊後,利用內部整合電路匯流排(Integrated Circuit bus,簡稱I2C-bus)達成主機板與硬碟背板之間的資料傳輸,但此種方式除了依舊會浪費GPIO資源外,更增加了韌體開發時間及硬體的實現成本。 On the other hand, in addition to the above-mentioned jumper mode, the internal integrated circuit bus (integrated circuit) can be used after the server is powered on, and the related information is collected by the Basic Input/Output System (BIOS). Bus, referred to as I 2 C-bus), achieves data transfer between the motherboard and the hard disk backplane, but this method not only wastes GPIO resources, but also increases firmware development time and hardware implementation cost.

本發明提供一種硬碟背板及其串列通用輸入輸出訊號的偵測方法,所述硬碟背板可經由執行所述串列通用輸入輸出訊號的偵測方法,來辨別主機板傳送的串列通用輸入輸出訊號之訊框容量。 The present invention provides a method for detecting a hard disk backplane and a serial general-purpose input/output signal thereof, wherein the hard disk backplane can identify a string transmitted by the motherboard by performing the method of detecting the serial general-purpose input and output signals. Column frame input and output signal frame capacity.

本發明實施例提供一種串列通用輸入輸出訊號的偵測方法,所述串列通用輸入輸出訊號的偵測方法包括由一主機板取得一串列通用輸入輸出訊號,其中串列通用輸入輸出訊號包括一載入訊號及一時脈訊號,以及依據載入訊號及時脈訊號,對初始值為零 的一第一計數值進行累加,以及當第一計數值大於一第一預設值時,依據載入訊號的電壓準位狀態,於一時點擷取第一計數值,並依據被截取的第一計數值來判斷串列通用輸入輸出訊號的一訊框容量。 An embodiment of the present invention provides a method for detecting a serial input/output signal. The method for detecting a serial general-purpose input/output signal includes obtaining a serial general-purpose input and output signal from a motherboard, wherein the serial input/output signal is serially connected. Including a load signal and a clock signal, and based on the load signal and the pulse signal, the initial value is zero. a first count value is accumulated, and when the first count value is greater than a first preset value, the first count value is captured at a time according to the voltage level state of the load signal, and according to the intercepted A count value is used to determine the frame capacity of the serial input/output signals.

本發明實施例提供一種硬碟背板,包括通訊接口及處理模組。通訊接口耦接一起始端,以接收一串列通用輸入輸出訊號。處理模組耦接通訊接口,以接收串列通用輸入輸出訊號,並且處理模組可執行如請求項1所述之串列通用輸入輸出訊號的偵測方法,以判斷串列通用輸入輸出訊號的訊框容量。 Embodiments of the present invention provide a hard disk backplane, including a communication interface and a processing module. The communication interface is coupled to a start end to receive a serial input and output signal. The processing module is coupled to the communication interface to receive the serial general-purpose input and output signals, and the processing module can perform the detection method of the serial general-purpose input and output signals as claimed in claim 1 to determine the serial input/output signals. Frame capacity.

綜上所述,本發明實施例所提供的硬碟背板及其串列通用輸入輸出訊號的偵測方法,依據串列通用輸入輸出訊號中的載入訊號及時脈訊號,即可判斷出串列通用輸入輸出訊號之訊框容量,藉此硬碟背板可有效地解碼起始端傳送的串列通用輸入輸出訊號,並對應控制指示元件來顯示硬碟狀態。 In summary, the method for detecting a hard disk backplane and its serial general-purpose input and output signals according to the embodiments of the present invention can determine the string according to the load signal and the pulse signal in the serial general-purpose input and output signals. The frame input capacity of the general-purpose input/output signal, whereby the hard disk backplane can effectively decode the serial general-purpose input and output signals transmitted from the start end, and display the hard disk state corresponding to the control indicating component.

為使能更進一步瞭解本發明之特徵及技術內容,請參閱以下有關本發明之詳細說明與附圖,但是此等說明與所附圖式僅係用來說明本發明,而非對本發明的權利範圍作任何的限制。 The detailed description of the present invention and the accompanying drawings are to be understood by the claims The scope is subject to any restrictions.

1‧‧‧硬碟系統 1‧‧‧hard disk system

11‧‧‧主機板 11‧‧‧ motherboard

12‧‧‧硬碟背板 12‧‧‧ Hard disk backplane

13‧‧‧SGPIO纜線 13‧‧‧SGPIO cable

14‧‧‧指示元件 14‧‧‧Indicating components

111、121‧‧‧通訊接口 111, 121‧‧‧ communication interface

122‧‧‧處理模組 122‧‧‧Processing module

1221‧‧‧偵測電路 1221‧‧‧Detection circuit

1222‧‧‧控制電路 1222‧‧‧Control circuit

sclock‧‧‧時脈訊號 Sclock‧‧‧ clock signal

sload‧‧‧載入訊號 Sload‧‧‧Load signal

count‧‧‧第一計數值 Count‧‧‧first count value

start‧‧‧第二計數值 Start‧‧‧second count value

sdataout‧‧‧資料輸出訊號 Sdataout‧‧‧ data output signal

sdatain‧‧‧資料輸入訊號 Sdatain‧‧‧ data input signal

S111、S113、S115、S117、S119‧‧‧步驟 S111, S113, S115, S117, S119‧‧ steps

圖1為根據本發明實施例之硬碟系統的架構示意圖。 1 is a block diagram showing the architecture of a hard disk system according to an embodiment of the present invention.

圖2為根據本發明實施例之硬體背板的訊號波形時序圖。 2 is a timing diagram of signal waveforms of a hardware backplane in accordance with an embodiment of the present invention.

圖3為根據本發明另一實施例之硬體背板的訊號波形時序圖。 3 is a timing diagram of signal waveforms of a hardware backplane according to another embodiment of the present invention.

圖4為根據本發明實施例之串列通用輸入輸出訊號的偵測方法之流程圖。 4 is a flow chart of a method for detecting a serial general-purpose input and output signal according to an embodiment of the invention.

在下文將參看隨附圖式更充分地描述各種例示性實施例,在隨附圖式中展示一些例示性實施例。然而,本發明概念可能以許 多不同形式來體現,且不應解釋為限於本文中所闡述之例示性實施例。確切而言,提供此等例示性實施例使得本發明將為詳盡且完整,且將向熟習此項技術者充分傳達本發明概念的範疇。在諸圖式中,可為了清楚而誇示層及區之大小及相對大小。類似數字始終指示類似元件。 Various illustrative embodiments are described more fully hereinafter with reference to the accompanying drawings. However, the concept of the present invention may be The invention is in many different forms and should not be construed as being limited to the illustrative embodiments set forth herein. Rather, these exemplary embodiments are provided so that this invention will be in the In the drawings, the size and relative sizes of layers and regions may be exaggerated for clarity. Similar numbers always indicate similar components.

應理解,雖然本文中可能使用術語第一、第二、第三等來描述各種元件,但此等元件不應受此等術語限制。此等術語乃用以區分一元件與另一元件。因此,下文論述之第一元件可稱為第二元件而不偏離本發明概念之教示。如本文中所使用,術語「及/或」包括相關聯之列出項目中之任一者及一或多者之所有組合。 It will be understood that, although the terms first, second, third, etc. may be used herein to describe various elements, such elements are not limited by the terms. These terms are used to distinguish one element from another. Thus, a first element discussed below could be termed a second element without departing from the teachings of the inventive concept. As used herein, the term "and/or" includes any of the associated listed items and all combinations of one or more.

〔硬碟背板及其串列通用輸入輸出訊號的偵測方法的實施例〕 [Embodiment of a method for detecting a hard disk backplane and its serial general-purpose input and output signals]

請參照圖1,圖1為根據本發明實施例之硬碟系統的架構示意圖。硬碟系統1包括主機板11、硬碟背板12及複數個指示元件14(未繪示)。主機板11通過SGPIO纜線13與硬碟背板12耦接,且硬碟背板12耦接複數個指示元件14,其中複數個指示元件14可為LED燈或其他具有指示功能的發光元件。 Please refer to FIG. 1. FIG. 1 is a schematic structural diagram of a hard disk system according to an embodiment of the present invention. The hard disk system 1 includes a motherboard 11, a hard disk backplane 12, and a plurality of indicating components 14 (not shown). The motherboard 11 is coupled to the hard disk backplane 12 via a SGPIO cable 13, and the hard disk backplane 12 is coupled to a plurality of indicator elements 14, wherein the plurality of indicator elements 14 can be LED lights or other light-emitting elements having an indicating function.

主機板11包括通訊接口111及硬碟控制元件(未繪示),且通訊接口111耦接硬碟控制元件。通訊接口111可為SGPIO匯流排插槽,且硬碟控制元件可為HBA卡、RAID卡、PCH或其他支援SGPIO通訊的擴展器(Expander)或介面卡。硬碟控制元件可視為一起始端,且其可選擇性的插設在主機板11上,藉此主機板11通過所述硬碟控制元件可傳送符合SFF-8485規格書規範的SGPIO訊號至硬碟背板12。 The motherboard 11 includes a communication interface 111 and a hard disk control component (not shown), and the communication interface 111 is coupled to the hard disk control component. The communication interface 111 can be a SGPIO bus slot, and the hard disk control component can be an HBA card, a RAID card, a PCH, or other expander or interface card that supports SGPIO communication. The hard disk control component can be regarded as a start end, and can be selectively inserted on the motherboard 11, whereby the motherboard 11 can transmit the SGPIO signal conforming to the SFF-8485 specification to the hard disk through the hard disk control component. Backboard 12.

硬碟背板12可視為一目標端,其例如為硬碟驅動器(Hard Disk Drive,簡稱HDD),其包括通訊接口121及處理模組122,且通訊接口121耦接處理模組122。通訊接口121可為SGPIO匯流排插槽,用以通過SGPIO纜線13接收所述SGPIO訊號。處理模組122可為複雜可程式邏輯裝置(Complex Programmable Logic Device,簡稱 CPLD)、現場可編輯邏輯閘陣列(Field Programmable Gate Array,簡稱FPGA)或由其他微控制器(Microcontroller,簡稱MCU)搭配適當的韌體來實現。處理模組122依據主機板11傳送的SGPIO訊號可控制複數個指示元件14是否發光。 The hard disk backplane 12 can be regarded as a target end, which is, for example, a hard disk drive (HDD), which includes a communication interface 121 and a processing module 122, and the communication interface 121 is coupled to the processing module 122. The communication interface 121 can be a SGPIO bus slot for receiving the SGPIO signal through the SGPIO cable 13. The processing module 122 can be a Complex Programmable Logic Device (referred to as Complex Programmable Logic Device, referred to as CPLD), Field Programmable Gate Array (FPGA) or other microcontroller (Microcontroller, MCU for short) with appropriate firmware. The processing module 122 controls whether the plurality of indicator elements 14 emit light according to the SGPIO signal transmitted by the motherboard 11.

在本實施例中,主機板11可產生符合SFF-8485規格書所規範的SGPIO訊號,且所述SGPIO訊號包括有時脈訊號sclock、載入訊號sload與帶有硬碟狀態資訊的資料輸出訊號sdataout。處理模組122通過SGPIO纜線13接收所述SGPIO訊號,並依據SGPIO訊號中的時脈訊號sclock與載入訊號sload來判斷SGPIO訊號的訊框容量。接著,處理模組122依據訊框容量來對資料輸出訊號sdataout進行解碼,以控制複數個指示元件14發光,並對應產生資料輸入訊號sdatain至主機板11。 In this embodiment, the motherboard 11 can generate a SGPIO signal conforming to the specification of the SFF-8485 specification, and the SGPIO signal includes a time pulse signal sclock, a load signal sload, and a data output signal with hard disk status information. Sdataout. The processing module 122 receives the SGPIO signal through the SGPIO cable 13, and determines the frame capacity of the SGPIO signal according to the clock signal sclock and the load signal sload in the SGPIO signal. Then, the processing module 122 decodes the data output signal sdataout according to the frame capacity to control the plurality of indicator elements 14 to emit light, and correspondingly generates the data input signal sdatain to the motherboard 11.

詳細地說,硬碟系統中的起始端與目標端間的SGPIO通訊需符合SGPIO協議(即SFF-8485規格書之規範),因此,於一硬碟系統被重置(reset)的期間內,起始端會將時脈訊號sclock與載入訊號sload轉為高電壓準位狀態(即邏輯狀態為1)。而當起始端欲傳送SGPIO訊號至目標端時,起始端所提供之SGPIO訊號中的載入訊號sload會被轉為低電壓準位狀態(即邏輯狀態由1轉變為0),接著目標端便會開始依據時脈訊號sclock的每一下降緣來閂鎖每一位元的資料。另外,於載入訊號sload初次由高電壓準位轉變為低電壓準位後,在前四位元資料的傳送期間內,載入訊號sload可以是供應商特定的模式(vendor-specific pattern)。 In detail, the SGPIO communication between the start end and the target end in the hard disk system is in compliance with the SGPIO protocol (that is, the specification of the SFF-8485 specification), and therefore, during a period in which a hard disk system is reset (reset), The start end converts the clock signal sclock and the load signal sload to a high voltage level (ie, the logic state is 1). When the initiator wants to transmit the SGPIO signal to the target end, the load signal sload in the SGPIO signal provided at the start end is converted to the low voltage level state (ie, the logic state is changed from 1 to 0), and then the target end is It will start to latch the data of each bit according to each falling edge of the clock signal sclock. In addition, after the load signal sload is first changed from the high voltage level to the low voltage level, during the transmission period of the first four bits of data, the load signal sload may be a vendor-specific pattern.

在此,本發明係利用SFF-8485規格書之規範特性,提供一種可判斷SGPIO訊號之訊框容量之串列通用輸入輸出訊號的偵測方法,並將所述方法應用於硬碟背板12,使硬碟背板12能判斷所接收之SGPIO訊號的訊框容量,以正確解碼SGPIO訊號,並據以控制複數個指示元件14發光。 Here, the present invention utilizes the specification features of the SFF-8485 specification to provide a method for detecting serial serial input and output signals capable of determining the frame capacity of the SGPIO signal, and applying the method to the hard disk backplane 12 The hard disk backplane 12 can determine the frame capacity of the received SGPIO signal to correctly decode the SGPIO signal, and accordingly control the plurality of indicator elements 14 to emit light.

更詳細地說,在本實施例中,處理模組122包括偵測電路1221 及控制電路1222,且偵測電路1221耦接控制電路1222。偵測電路1221可依據時脈訊號sclock與載入訊號sload,來對初始值為零的一計數值進行累加。當計數值大於一預設值時,偵測電路1221依據載入訊號sload的電壓準位狀態,於一時點擷取所述計數值。接下來,偵測電路1221依據被截取的計數值,來判斷SGPIO訊號的一訊框容量,並據以產生一訊框容量指示訊號F。控制電路1222依據訊框容量指示訊號F,可解碼所接收的SGPIO訊號,以控制複數個指示元件14是否發光。 In more detail, in this embodiment, the processing module 122 includes a detection circuit 1221. And the control circuit 1222, and the detection circuit 1221 is coupled to the control circuit 1222. The detecting circuit 1221 can accumulate a count value whose initial value is zero according to the clock signal sclock and the load signal sload. When the count value is greater than a predetermined value, the detecting circuit 1221 captures the count value at a time according to the voltage level state of the load signal sload. Next, the detecting circuit 1221 determines the frame capacity of the SGPIO signal according to the intercepted count value, and accordingly generates a frame capacity indication signal F. The control circuit 1222 can decode the received SGPIO signal according to the frame capacity indication signal F to control whether the plurality of indicator elements 14 emit light.

為了更詳細地說明本發明所述之硬碟背板及其串列通用輸入輸出訊號的偵測方法的工作原理,以下將舉多個實施例中至少之一來作更進一步的說明。請同時參照圖1、圖2與圖3,圖2為根據本發明實施例之硬體背板的訊號波形時序圖。圖3為根據本發明另一實施例之硬體背板的訊號波形時序圖。在此須說明的是,圖2與圖3所示之時脈訊號sclock與載入訊號sload,係分別由支援4個與7個硬碟之硬體控制元件所提供。在本實施例中,當偵測電路1221偵測到載入訊號sload由高電壓準位轉變為低電壓準位時,偵測電路1221會開始偵測時脈訊號sclock的下降緣次數,以對初始值為0的第一計數值count進行累加,並且偵測電路1221會將初始值為0的第二計數值start加1。接下來,當第一計數值count大於4(即所述預設值)時,若偵測電路1221偵測到載入訊號sload再次由高電壓準位轉變為低電壓準位,則偵測電路1221會再次將第二計數值start加1。接下來,當第二計數值start為2時,偵測電路1221便會停止對第一計數值count進行累加,並依據當前的第一計數值count來決定SGPIO訊號之訊框容量。其中,所述的第一計數值count以及第二計數值start的訊號來源,乃是皆由硬碟背板12中的偵測電路1221所產生。 In order to explain in more detail the working principle of the method for detecting a hard disk backplane and its serial general-purpose input and output signals according to the present invention, at least one of the following embodiments will be further described. Please refer to FIG. 1 , FIG. 2 and FIG. 3 simultaneously. FIG. 2 is a timing diagram of signal waveforms of a hardware backplane according to an embodiment of the invention. 3 is a timing diagram of signal waveforms of a hardware backplane according to another embodiment of the present invention. It should be noted that the clock signal sclock and the load signal sload shown in FIG. 2 and FIG. 3 are respectively provided by hardware control elements supporting 4 and 7 hard disks. In this embodiment, when the detecting circuit 1221 detects that the loading signal sload changes from the high voltage level to the low voltage level, the detecting circuit 1221 starts detecting the falling edge number of the clock signal sclock, so as to The first count value count whose initial value is 0 is accumulated, and the detecting circuit 1221 adds 1 to the second count value start whose initial value is 0. Next, when the first count value count is greater than 4 (ie, the preset value), if the detecting circuit 1221 detects that the load signal sload is again changed from the high voltage level to the low voltage level, the detecting circuit 1221 will again increment the second count value start by one. Next, when the second count value start is 2, the detecting circuit 1221 stops accumulating the first count value count, and determines the frame capacity of the SGPIO signal according to the current first count value count. The signal sources of the first count value count and the second count value start are all generated by the detecting circuit 1221 in the hard disk backboard 12.

換言之,若主機板11之硬體控制元件係支援4個硬碟,則當第一計數值count大於4且載入訊號sload由高電壓準位轉變為低電壓 準位時,偵測電路1221會擷取數值為12的第一計數值count,以告知控制電路1222所述SGPIO訊號之訊框容量為12位元。另一方面,若主機板11之硬體控制元件係支援7個硬碟時,則當第一計數值count大於4且載入訊號sload由高電壓準位轉變為低電壓準位時,偵測電路1221會擷取數值為21的第一計數值count,以告知控制電路1222所述SGPIO訊號之訊框容量為21位元。藉此,控制電路1222可據以產生控制訊號至複數個指示元件14,以控制複數個指示元件14的發光狀態(例如長亮或閃爍)。 In other words, if the hardware control component of the motherboard 11 supports 4 hard disks, when the first count value count is greater than 4 and the load signal sload is changed from the high voltage level to the low voltage. When the level is in position, the detecting circuit 1221 retrieves the first count value count of the value 12 to inform the control circuit 1222 that the frame capacity of the SGPIO signal is 12 bits. On the other hand, if the hardware control component of the motherboard 11 supports 7 hard disks, when the first count value count is greater than 4 and the load signal sload is changed from the high voltage level to the low voltage level, the detection is performed. The circuit 1221 retrieves the first count value count of the value 21 to inform the control circuit 1222 that the frame capacity of the SGPIO signal is 21 bits. Thereby, the control circuit 1222 can generate a control signal to the plurality of indicator elements 14 to control the illumination state (eg, long light or blink) of the plurality of indicator elements 14.

值得一提的是,於另一實施中,當第一計數值count大於所述預設值時,若偵測電路1221偵測到載入訊號sload為高電壓準位,則偵測電路1221會擷取當前的第一計數值count,接著將所擷取的第一計數值count加一,並據以決定SGPIO訊號之訊框容量。舉例來說,以圖2為例,當第一計數值count大於4且載入訊號sload為高電壓準位時,偵測電路1221會擷取數值為11的第一計數值count,接著將之加一,以決定SGPIO訊號之訊框容量為12位元。另一方面,以圖3為例,當第一計數值count大於4且載入訊號sload為高電壓準位時,偵測電路1221會擷取數值為20的第一計數值count,接著將之加一,以決定SGPIO訊號之訊框容量為21位元。藉此,偵測電路1221可在下一個訊框被傳送至硬碟背板12之前,即讓控制電路1222依據所述SGPIO訊號之訊框容量,即時地解碼所述SGPIO訊號,以控制所述複數個指示元件14是否發光。 It is worth mentioning that, in another implementation, when the first count value count is greater than the preset value, if the detecting circuit 1221 detects that the load signal sload is at a high voltage level, the detecting circuit 1221 will The current first count value count is retrieved, and then the captured first count value count is incremented by one, and the frame capacity of the SGPIO signal is determined accordingly. For example, in FIG. 2, when the first count value count is greater than 4 and the load signal sload is at a high voltage level, the detecting circuit 1221 captures the first count value count of the value 11, and then Add one to determine the frame size of the SGPIO signal as 12 bits. On the other hand, taking FIG. 3 as an example, when the first count value count is greater than 4 and the load signal sload is at a high voltage level, the detecting circuit 1221 captures the first count value count of the value 20, and then Add one to determine the frame size of the SGPIO signal is 21 bits. Therefore, the detecting circuit 1221 can immediately decode the SGPIO signal according to the frame capacity of the SGPIO signal before the next frame is transmitted to the hard disk backplane 12, to control the complex number. Whether the indicator element 14 emits light.

簡言之,當硬碟背板12由主機板11獲得SGPIO訊號時,硬碟背板12可依據時脈訊號sclock與載入訊號sload來產生一計數值,且當計數值大於一預設值時,硬碟背板12依據載入訊號sload的電壓準位狀態,會於一時點擷取所述計數值,並據以判斷SGPIO訊號的一訊框容量。 In short, when the hard disk backplane 12 obtains the SGPIO signal from the motherboard 11, the hard disk backplane 12 can generate a count value according to the clock signal sclock and the load signal sload, and when the count value is greater than a preset value. When the hard disk backplane 12 is in accordance with the voltage level state of the load signal sload, the count value is retrieved at a time, and the frame capacity of the SGPIO signal is determined accordingly.

請參照圖4,圖4為根據本發明實施例之串列通用輸入輸出訊號的偵測方法之流程圖。所述偵測方法係可以執行於圖1所示的硬 碟背板12,因此請一併照圖1至圖4以利理解,而所述偵測方法包括以下步驟。 Please refer to FIG. 4. FIG. 4 is a flowchart of a method for detecting a serial general-purpose input and output signal according to an embodiment of the present invention. The detection method can be performed on the hard shown in FIG. The disc backing plate 12, so please understand it together with FIG. 1 to FIG. 4, and the detecting method includes the following steps.

在步驟S111中,硬碟背板12通過主機板11可接收到符合SFF-8485規格書之規範的SGPIO訊號,接著硬碟背板12可由所述SGPIO訊號中取得一載入訊號sload及一時脈訊號sclock。 In step S111, the hard disk backplane 12 can receive the SGPIO signal conforming to the specification of the SFF-8485 specification through the motherboard 11, and then the hard disk backplane 12 can obtain a load signal sload and a clock from the SGPIO signal. Signal sclock.

在步驟S113中,硬碟背板12會判斷載入訊號sload是否由高電壓準位轉變為低電準位壓。若硬碟背板12判斷載入訊號sload是由高電壓準位轉變為低電準位壓,則執行步驟S115。反之,若硬碟背板12判斷載入訊號sload非由高電壓準位轉變為低電準位壓,則再次執行步驟S113。 In step S113, the hard disk backplane 12 determines whether the load signal sload is converted from a high voltage level to a low power level voltage. If the hard disk backplane 12 determines that the load signal sload is changed from the high voltage level to the low power level, step S115 is performed. On the other hand, if the hard disk backplane 12 determines that the load signal sload is not converted from the high voltage level to the low power level, step S113 is performed again.

在步驟S115中,硬碟背板12依據時脈訊號sclock的下降緣次數,開始對初始值為零的第一計數值count進行累加。 In step S115, the hard disk backplane 12 starts accumulating the first count value count whose initial value is zero according to the number of falling edges of the clock signal sclock.

在步驟S117中,當第一計數值count大於一預設值時,硬碟背板12會判斷載入訊號sload是否為高電壓準位。若硬碟背板12判斷載入訊號sload為高電壓準位,則執行步驟S119。反之,若硬碟背板12判斷載入訊號sload非為高電壓準位,則再次執行步驟S117。 In step S117, when the first count value count is greater than a predetermined value, the hard disk backplane 12 determines whether the load signal sload is at a high voltage level. If the hard disk backplane 12 determines that the load signal sload is at a high voltage level, step S119 is performed. On the other hand, if the hard disk backplane 12 determines that the load signal sload is not at the high voltage level, step S117 is performed again.

在步驟S119中,硬碟背板12會擷取當前的第一計數值count,並將其加一,以決定所述SGPIO訊號之框架容量。藉此,硬碟背板12可正確解析由主機板11傳送的SGPIO訊號,並對應控制後端複數個指示元件14是否發光,以即時顯示硬碟之狀態。 In step S119, the hard disk backplane 12 captures the current first count value count and adds it to determine the frame capacity of the SGPIO signal. Thereby, the hard disk backplane 12 can correctly parse the SGPIO signal transmitted by the motherboard 11, and correspondingly control whether the plurality of indicator components 14 on the back end emit light to instantly display the state of the hard disk.

關於硬碟背板12之串列通用輸入輸出訊號的偵測方法之各步驟的相關細節在上述圖1實施例已詳細說明,在此恕不贅述。 The details of the steps of the method for detecting the serial input/output signals of the hard disk backplane 12 have been described in detail in the above embodiment of FIG. 1, and will not be described herein.

在此須說明的是,圖4實施例之各步驟僅為方便說明之須要,本發明實施例並不以各步驟彼此間的順序作為實施本發明各個實施例的限制條件。 It should be noted that the steps of the embodiment of FIG. 4 are only for convenience of description, and the embodiments of the present invention do not use the steps of the steps as a limitation of the embodiments of the present invention.

另,尚須須注意的是,上述串列通用輸入輸出訊號的偵測方法的各步驟可以透過至少一段程式碼來實現,且各步驟所對應的 至少一段程式碼可以記錄於電腦可讀取媒體(computer-readable media)中。 In addition, it should be noted that the steps of the above-described method for detecting the serial input/output signals can be implemented by at least one piece of code, and the steps correspond to At least one piece of code can be recorded in computer-readable media.

〔實施例可能之功效〕 [Effects of possible examples]

綜合以上所述,本發明實施例所提供的硬碟背板及其串列通用輸入輸出訊號的偵測方法,依據串列通用輸入輸出訊號中的載入訊號及時脈訊號,即可判斷出所述串列通用輸入輸出訊號的訊框容量,從而硬碟背板能正確解碼所述串列通用輸入輸出訊號,以有效控制複數個指示元件的發光狀態。因此,相較於習知技術,本發明所提出之硬碟背板及其串列通用輸入輸出訊號的偵測方法,不會額外增加硬體成本,且可避免入為疏失及浪費通用輸入輸出資源。 In summary, the method for detecting a hard disk backplane and its serial general-purpose input and output signals according to the embodiments of the present invention can be determined according to the load signal and the pulse signal in the serial general-purpose input and output signals. The frame capacity of the serial input/output signal is serialized, so that the hard disk backplane can correctly decode the serial general-purpose input and output signals to effectively control the illumination states of the plurality of indicator components. Therefore, compared with the prior art, the method for detecting the hard disk backplane and the serial general-purpose input and output signals thereof of the present invention does not increase the hardware cost, and can avoid the loss and waste of general-purpose input and output. Resources.

以上所述,僅為本發明最佳之具體實施例,惟本發明之特徵並不侷限於此,任何熟悉該項技藝者在本發明之領域內,可輕易思及之變化或修飾,皆可涵蓋在本發明專利範圍。 The above description is only the preferred embodiment of the present invention, but the features of the present invention are not limited thereto, and any one skilled in the art can easily change or modify it in the field of the present invention. It is covered by the scope of the invention.

S111、S113、S115、S117、S119‧‧‧步驟 S111, S113, S115, S117, S119‧‧ steps

Claims (10)

一種串列通用輸入輸出訊號的偵測方法,包括:取得一串列通用輸入輸出訊號,其中該串列通用輸入輸出訊號包括一載入訊號及一時脈訊號;依據該載入訊號及該時脈訊號,對初始值為零的一第一計數值進行累加;以及當該第一計數值大於一第一預設值時,依據該載入訊號的電壓準位狀態,於一時點擷取該第一計數值,並依據被截取的該第一計數值判斷該串列通用輸入輸出訊號的一訊框容量。 A method for detecting a serial input/output signal includes: obtaining a serial input/output signal, wherein the serial input/output signal comprises a load signal and a clock signal; and according to the load signal and the clock a signal, accumulating a first count value whose initial value is zero; and when the first count value is greater than a first preset value, according to the voltage level state of the load signal, capturing the first time a count value, and determining a frame capacity of the serial general-purpose input and output signals according to the intercepted first count value. 如請求項1所述之串列通用輸入輸出訊號的偵測方法,更包括:當該載入訊號第一次由高電壓準位轉變為低電準位壓時,依據該時脈訊號的下降緣次數,開始對初始值為零的該第一計數值進行累加。 The method for detecting a serial general-purpose input/output signal according to claim 1 further includes: when the load signal is changed from a high voltage level to a low power level for the first time, according to the decline of the clock signal The number of edges starts to accumulate the first count value whose initial value is zero. 如請求項1所述之串列通用輸入輸出訊號的偵測方法,更包括:當該第一計數值大於一第一預設值且該載入訊號為高電壓準位時,擷取當前的該第一計數值,並將被截取的該第一計數值加一,以決定該串列通用輸入輸出訊號的該訊框容量。 The method for detecting a serial general-purpose input/output signal according to claim 1, further comprising: when the first count value is greater than a first preset value and the load signal is at a high voltage level, capturing the current The first count value is incremented by the intercepted first count value to determine the frame capacity of the serial general-purpose input and output signal. 如請求項1所述之串列通用輸入輸出訊號的偵測方法,更包括:當該第一計數值大於一第一預設值且該載入訊號由高電壓準位轉為低電壓準位時,擷取當前的該第一計數值,以決定該串列通用輸入輸出訊號的該訊框容量。 The method for detecting a serial general-purpose input/output signal according to claim 1, further comprising: when the first count value is greater than a first preset value and the load signal is changed from a high voltage level to a low voltage level The current first count value is retrieved to determine the frame capacity of the serial general-purpose input and output signals. 如請求項1所述之串列通用輸入輸出訊號的偵測方法,更包括: 當該第一計數值大於一第一預設值且該載入訊號由高電壓準位轉為低電壓準位時,停止對該第一計數值進行累加,並依據停止累加後的該第一計數值,以決定該串列通用輸入輸出訊號的該訊框容量。 The method for detecting a serial general-purpose input/output signal according to claim 1 further includes: When the first count value is greater than a first preset value and the load signal is changed from a high voltage level to a low voltage level, stopping accumulating the first count value, and according to stopping the accumulated first The value is counted to determine the frame capacity of the serial general-purpose input and output signals. 如請求項1所述之串列通用輸入輸出訊號的偵測方法,更包括:當該載入訊號第一次由高電壓準位轉變為低電準位壓時,將初始值為零的一第二計數值加一;當該第一計數值大於一第一預設值且該載入訊號由高電壓準位轉為低電壓準位時,再次將該第二計數值加一;以及當該第二計數值等於二時,停止對該第一計數值進行累加,並依據停止累加後的該第一計數值,以決定該串列通用輸入輸出訊號的該訊框容量。 The method for detecting a serial general-purpose input/output signal according to claim 1 further includes: when the load signal is changed from a high voltage level to a low power level for the first time, the initial value is zero. The second count value is incremented by one; when the first count value is greater than a first preset value and the load signal is changed from the high voltage level to the low voltage level, the second count value is incremented by one again; When the second count value is equal to two, the first count value is stopped to be accumulated, and the frame count capacity of the serial general-purpose input and output signal is determined according to the stop of the accumulated first count value. 一種硬碟背板,包括:一通訊接口,耦接一起始端,以接收一串列通用輸入輸出訊號;以及一處理模組,耦接該通訊接口,以接收該串列通用輸入輸出訊號,並執行如請求項1所述之串列通用輸入輸出訊號的偵測方法,以判斷該串列通用輸入輸出訊號的該訊框容量。 A hard disk backplane includes: a communication interface coupled to a start end for receiving a serial input/output signal; and a processing module coupled to the communication interface to receive the serial general input and output signal, and The method for detecting the serial general-purpose input and output signals as claimed in claim 1 is performed to determine the frame capacity of the serial general-purpose input and output signals. 如請求項7所述之硬碟背板,其中該處理模組包括:一偵測電路,偵測該載入訊號及第一計數值的狀態,以於該載入訊號第一次由高電壓準位轉變為低電準位壓時,依據該時脈訊號的下降緣次數對應產生該第一計數值。 The hard disk backplane of claim 7, wherein the processing module comprises: a detecting circuit for detecting a state of the loading signal and the first count value, so that the loading signal is firstly applied by a high voltage When the level is changed to the low level voltage, the first count value is generated according to the number of falling edges of the clock signal. 如請求項8所述之硬碟背板,其中該偵測電路於該第一計數值大於一第一預設值後,當該載入訊號由高電壓準位轉變為 低電準位壓時,該偵測電路會依據當前的該第一計數值,產生一訊框容量指示訊號,抑或當該載入訊號為高電壓準位時,該偵測電路會擷取當前的該第一計數值,並將被截取的該第一計數值加一,據以產生該訊框容量指示訊號。 The hard disk backplane of claim 8, wherein the detecting circuit is converted from a high voltage level to a first value after the first count value is greater than a first preset value When the voltage is low, the detection circuit generates a frame capacity indication signal according to the current first count value, or when the load signal is at a high voltage level, the detection circuit captures the current The first count value is incremented, and the intercepted first count value is incremented by one to generate the frame capacity indication signal. 如請求項9所述之硬碟背板,其中該處理模組包括:一控制電路,耦接該偵測電路及至少一指示元件,該控制電路依據該訊框容量指示訊號,解碼該串列通用輸入輸出訊號,以控制該至少一指示元件。 The hard disk backplane of claim 9, wherein the processing module comprises: a control circuit coupled to the detecting circuit and at least one indicating component, the control circuit decoding the serial according to the frame capacity indicating signal A general purpose input and output signal to control the at least one indicator component.
TW103143534A 2014-12-12 2014-12-12 Black plane and method for detecting serial general purpose input/output signal thereof TWI564722B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW103143534A TWI564722B (en) 2014-12-12 2014-12-12 Black plane and method for detecting serial general purpose input/output signal thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW103143534A TWI564722B (en) 2014-12-12 2014-12-12 Black plane and method for detecting serial general purpose input/output signal thereof

Publications (2)

Publication Number Publication Date
TW201621674A TW201621674A (en) 2016-06-16
TWI564722B true TWI564722B (en) 2017-01-01

Family

ID=56755484

Family Applications (1)

Application Number Title Priority Date Filing Date
TW103143534A TWI564722B (en) 2014-12-12 2014-12-12 Black plane and method for detecting serial general purpose input/output signal thereof

Country Status (1)

Country Link
TW (1) TWI564722B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109800186B (en) * 2017-11-17 2022-06-24 英业达科技有限公司 Control system and control method thereof
CN107885678B (en) * 2017-11-24 2020-12-22 英业达科技有限公司 Hard disk control interface device
TWI682282B (en) * 2017-11-28 2020-01-11 英業達股份有限公司 Hard disk control interface device
TWI665562B (en) * 2017-11-29 2019-07-11 英業達股份有限公司 Control system and control method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047392A1 (en) * 2000-02-09 2005-03-03 Nortel Networks Limited Method and system for optical routing of variable-length packet data
JP2006303724A (en) * 2005-04-18 2006-11-02 Sumitomo Electric Ind Ltd Shaping apparatus and shaping method for variable length frame
JP2008065719A (en) * 2006-09-10 2008-03-21 Ricoh Co Ltd Method and device for receiving serial data, and image forming device
TW201250477A (en) * 2011-06-15 2012-12-16 Inventec Corp A device, a system and a method for detecting SGPIO and I2C
TW201445308A (en) * 2013-05-20 2014-12-01 Hon Hai Prec Ind Co Ltd Hard disk drive work status monitoring system and method
US20140359173A1 (en) * 2013-05-28 2014-12-04 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Port indicating circuit for hard disk backplane and server system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050047392A1 (en) * 2000-02-09 2005-03-03 Nortel Networks Limited Method and system for optical routing of variable-length packet data
JP2006303724A (en) * 2005-04-18 2006-11-02 Sumitomo Electric Ind Ltd Shaping apparatus and shaping method for variable length frame
JP2008065719A (en) * 2006-09-10 2008-03-21 Ricoh Co Ltd Method and device for receiving serial data, and image forming device
TW201250477A (en) * 2011-06-15 2012-12-16 Inventec Corp A device, a system and a method for detecting SGPIO and I2C
TW201445308A (en) * 2013-05-20 2014-12-01 Hon Hai Prec Ind Co Ltd Hard disk drive work status monitoring system and method
US20140359173A1 (en) * 2013-05-28 2014-12-04 Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. Port indicating circuit for hard disk backplane and server system

Also Published As

Publication number Publication date
TW201621674A (en) 2016-06-16

Similar Documents

Publication Publication Date Title
US8830611B1 (en) Working states of hard disks indicating apparatus
US10127170B2 (en) High density serial over LAN management system
US9921933B2 (en) System and method for indicator light control of storage devices
TWI564722B (en) Black plane and method for detecting serial general purpose input/output signal thereof
US9164861B2 (en) Drive mapping using a plurality of connected enclosure management controllers
US20170068630A1 (en) Runtime drive detection and configuration
TWI488045B (en) A device, a system and a method for detecting sgpio and i2c
EP3349118B1 (en) Bus hang detection and find out
US7490176B2 (en) Serial attached SCSI backplane and detection system thereof
US9015394B2 (en) Chip select (‘CS’) multiplication in a serial peripheral interface (‘SPI’) system
US8583847B2 (en) System and method for dynamically detecting storage drive type
US8751635B2 (en) Monitoring sensors for systems management
TW201514706A (en) Electronic device for detecting state of hard disk
US9626241B2 (en) Watchdogable register-based I/O
US9507744B2 (en) Handling two SGPIO channels using single SGPIO decoder on a backplane controller
US20130343197A1 (en) Operating A Demultiplexer On An Inter-Integrated Circuit ('I2C') Bus
US9619359B2 (en) Server and device for analyzing a signal thereof
CN105740116A (en) Hard disk backboard and detection method of serial general input/output signal of hard disk backboard
CN107765993B (en) Hard disk interface device
US20200210367A1 (en) External serial at attachment device
TW201510716A (en) Apparatus and method for computer debug
TW201426290A (en) System and method of testing hard disks
CN108549042A (en) A kind of NVME LED detecting systems and detection method
JPWO2016151845A1 (en) Information processing device
US7921336B1 (en) System and method for avoiding categorizing potential link error events as actual link error events based on a proximity to a physical layer signal state change