TWI788021B - Device detection method and device detection system - Google Patents
Device detection method and device detection system Download PDFInfo
- Publication number
- TWI788021B TWI788021B TW110135036A TW110135036A TWI788021B TW I788021 B TWI788021 B TW I788021B TW 110135036 A TW110135036 A TW 110135036A TW 110135036 A TW110135036 A TW 110135036A TW I788021 B TWI788021 B TW I788021B
- Authority
- TW
- Taiwan
- Prior art keywords
- layer
- server
- scan
- host
- devices
- Prior art date
Links
Images
Landscapes
- Position Fixing By Use Of Radio Waves (AREA)
- Transforming Light Signals Into Electric Signals (AREA)
- Investigating Or Analyzing Materials By The Use Of Electric Means (AREA)
- Radar Systems Or Details Thereof (AREA)
Abstract
Description
本發明是有關於一種裝置偵測方法以及裝置偵測系統,且特別是有關於一種用於至少一伺服器的裝置偵測方法以及裝置偵測系統。The present invention relates to a device detection method and a device detection system, and in particular to a device detection method and a device detection system for at least one server.
伺服器的設計趨於多樣化,對應於伺服器的實體裝置配置設計也較為複雜。也就是說,基於不同的使用需求,伺服器的設計也會不時地被調整,硬體裝置設計也會有所不同。伺服器的基板管理控制器(Baseboard Management Controller,BMC)的開發必須要確定出對應於伺服器的實體裝置配置設計,才能夠使BMC對伺服器進行正確監控和管理工作。由此可知,如何快速確定出伺服器的實體裝置配置設計,從而縮短BMC的開發時間,是本領域技術人員的研究重點之一。The design of the server tends to be diversified, and the configuration design of the physical device corresponding to the server is also relatively complicated. That is to say, based on different usage requirements, the design of the server will be adjusted from time to time, and the design of the hardware device will also be different. The development of the server's Baseboard Management Controller (BMC) must determine the configuration design of the physical device corresponding to the server, so that the BMC can correctly monitor and manage the server. It can be seen that how to quickly determine the physical device configuration design of the server, thereby shortening the development time of the BMC, is one of the research focuses of those skilled in the art.
本發明提供一種裝置偵測方法以及裝置偵測系統,能夠快速確定出伺服器的實體裝置配置設計。The invention provides a device detection method and a device detection system, which can quickly determine the configuration design of the physical device of the server.
本發明的裝置偵測方法用於偵測至少一伺服器的多個裝置。裝置偵測方法包括由主機選擇所述至少一伺服器的其中之一為選中伺服器,並透過通訊介面對選中伺服器的至少一第N層裝置進行掃描;紀錄所述至少一第N層裝置中的至少一第一類型裝置的位址;以及將所述至少一第N層裝置中的至少一第二類型裝置分別定義為節點,並且對對應於節點的至少一第N+1層裝置進行掃描,N為正整數。The device detection method of the present invention is used to detect multiple devices of at least one server. The device detection method includes selecting one of the at least one server as the selected server by the host, and scanning at least one Nth layer device of the selected server through the communication interface; recording the at least one Nth layer device The address of at least one first type device in the layer device; and at least one second type device in the at least one Nth layer device is respectively defined as a node, and at least one N+1th layer corresponding to the node The device scans, and N is a positive integer.
本發明的裝置偵測系統包括至少一伺服器以及主機。所述至少一伺服器各包括多個裝置。主機以通訊介面與所述至少一伺服器溝通。主機選擇所述至少一伺服器的其中之一為選中伺服器,並透過通訊介面對選中伺服器的至少一第N層裝置進行掃描,紀錄所述至少一第N層裝置中的至少一第一類型裝置的位址。此外,主機將所述至少一第N層裝置中的至少一第二類型裝置分別定義為節點,並且對對應於節點的至少一第N+1層裝置進行掃描,其中N為正整數。The device detection system of the present invention includes at least one server and a host. The at least one server each includes a plurality of devices. The host communicates with the at least one server through a communication interface. The host selects one of the at least one server as the selected server, and scans at least one N-layer device of the selected server through the communication interface, and records at least one of the at least one N-layer device. The address of the first type of device. In addition, the host defines at least one second-type device in the at least one N-th layer device as a node, and scans at least one N+1-th layer device corresponding to the node, where N is a positive integer.
基於上述,主機紀錄被偵測到的第N層裝置中的第一類型裝置的位址。主機將第N層裝置中的第二類型裝置定義為節點,並且對對應於節點的至少一第N+1層裝置進行掃描。如此一來,伺服器的實體裝置配置能夠被快速地確定出來。此外,BMC的開發時間也會被縮短。Based on the above, the host records the address of the first type device among the detected N-th layer devices. The host defines a second-type device in the N-th layer of devices as a node, and scans at least one N+1-th layer device corresponding to the node. In this way, the physical device configuration of the server can be quickly determined. In addition, the development time of BMC will be shortened.
為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.
本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的範例。Parts of the embodiments of the present invention will be described in detail with reference to the accompanying drawings. For the referenced reference symbols in the following description, when the same reference symbols appear in different drawings, they will be regarded as the same or similar components. These embodiments are only a part of the present invention, and do not reveal all possible implementation modes of the present invention. Rather, these embodiments are only examples within the scope of the patent application of the present invention.
請同時參考圖1以及圖2,圖1是依據本發明一實施例所繪示的裝置偵測系統的示意圖。圖2是依據本發明一實施例所繪示的裝置偵測方法的方法流程圖。在本實施例中,裝置偵測系統100包括伺服器110_1~110_3以及主機120。主機120以通訊介面與伺服器110_1~110_3進行通訊。主機120可以是具備運算功能的電子裝置。主機120可例如是桌上型電腦、筆記型電腦、智慧型手機等電子裝置。伺服器110_1~110_3分別包括多個裝置。舉例來說,伺服器110_1包括裝置111~118。為了便於說明,本實施例以3個伺服器110_1~110_3為例。本發明的裝置偵測系統的伺服器的數量可以是一個或多個,並不以本實施例為限。此外,本發明的伺服器的裝置數量可以是多個,並不以本實施例為限。Please refer to FIG. 1 and FIG. 2 at the same time. FIG. 1 is a schematic diagram of a device detection system according to an embodiment of the present invention. FIG. 2 is a flow chart of a device detection method according to an embodiment of the present invention. In this embodiment, the
在本實施例中,主機120會基於步驟S110~S130來執行多個操作。在步驟S110中,主機120選擇伺服器110_1~110_3的其中之一為選中伺服器,並對選中伺服器的第N層裝置進行掃描。主機120會對第N層裝置進行偵測以判斷第N層裝置的類型。N為正整數。在步驟S120中,主機120會紀錄第一類型裝置的位址。在步驟S130中,主機120會將第二類型裝置定義為節點。此外,主機120還會在步驟S130中對對應於節點的第N+1層裝置進行掃描。換句話說,主機120還會在步驟S130中對連接於第N層裝置的第二類型裝置的第N+1層裝置進行掃描。In this embodiment, the
在本實施例中,第一類型裝置為感測裝置。舉例來說,感測裝置可以為溫度感測器、電壓感測器、電流感測器以及用於風扇的轉速感測器的其中一者。第二類型裝置為多工器。也就是說,如果有多工器被偵測到,主機120會將被偵測到的各至少一多工器定義為節點。主機120對對應於節點的下一層裝置進行掃描。In this embodiment, the first type of device is a sensing device. For example, the sensing device may be one of a temperature sensor, a voltage sensor, a current sensor, and a speed sensor for a fan. The second type of device is a multiplexer. That is, if multiple multiplexers are detected, the
在此值得一提的是,主機紀錄被偵測到的第一類型裝置的位址。主機將第二類型裝置定義為節點並且對對應於節點的至少一第N+1層裝置進行掃描。如此一來,伺服器的實體裝置配置能夠被快速地確定出來。因此,基板管理控制器(Baseboard Management Controller,BMC)的開發時間可以被大幅縮短。It is worth mentioning here that the host records the address of the first type of device detected. The host defines the second type device as a node and scans at least one N+1th layer device corresponding to the node. In this way, the physical device configuration of the server can be quickly determined. Therefore, the development time of the Baseboard Management Controller (BMC) can be greatly shortened.
舉例來說明,在步驟S110中,主機120選擇伺服器110_1為選中伺服器,並透過通訊介面對伺服器110_1的第1層裝置進行掃描。通訊介面可例如是適用於I2C、SMBUS的介面。在進行掃描後,主機120能夠獲知伺服器110_1的第1層裝置為裝置111、112。主機120進一步獲知裝置111為第一類型裝置,裝置112為第二類型裝置。在步驟S120中,主機120會紀錄裝置111的位址。在步驟S130中,主機120會將裝置112定義為父節點(或稱為根節點)。接下來,主機120以遞迴(Recursion)方式對連接於節點的第2層裝置進行掃描。也就是說,主機120對連接於節點(即,裝置112)的第2層裝置(即,裝置113~115)進行掃描以判斷第2層裝置的類型,紀錄被偵測到的第一類型裝置的位址,定義第二類型裝置為節點,並對連接於節點的第3層裝置進行掃描,依此類推。For example, in step S110 , the
具體來說,主機120確定出裝置113為第一類型裝置,並且裝置114、115為第二類型裝置。因此,主機120會紀錄裝置113的位址。此外,主機120將裝置114定義第2層裝置的第一子節點,並將裝置115定義第2層裝置的第二子節點。因此,主機120會通過通訊介面關閉裝置115並且以遞迴方式對連接於裝置114的第3層裝置(即,裝置116、117)進行掃描。接下來,主機120會通過通訊介面關閉裝置114並且以遞迴方式對連接於裝置115的第3層裝置(即,裝置118)進行掃描。如以一來,所有的第一類型裝置(即,裝置111、113、116~118)的位址能夠快速地被記錄。Specifically, the
請同時參考圖1、圖2以及圖3,圖3是依據本發明一實施例所繪示的網頁介面的示意圖。在本實施例中,主機120可提供網頁介面200。網頁介面200包括伺服器欄位210以及伺服器位址欄位220。伺服器欄位210以及伺服器位址欄位220可以被編輯以提供選擇指令。主機120會接收選擇指令以選擇伺服器110_1~110_3的其中之一為選中伺服器。伺服器位址可例如是網際協定位址(Internet Protocol Address)。Please refer to FIG. 1 , FIG. 2 and FIG. 3 at the same time. FIG. 3 is a schematic diagram of a webpage interface according to an embodiment of the present invention. In this embodiment, the
在本實施例中,網頁介面200還包括掃描層數欄位230以及掃描鍵B1。掃描層數欄位230可以被編輯以提供掃描層數指令。主機120會基於掃描層數指令對選中伺服器中的多個裝置進行掃描。In this embodiment, the
在本實施例中,主機120基於掃描層數指令獲得掃描層數,並基於掃描層數以遞迴方式對選中伺服器中的掃描層數中的裝置進行掃描。舉例來說,使用者可以在掃描層數欄位230中輸入「2」並點選掃描鍵B1。網頁介面200被操作以提供對應於掃描層數等於2的掃描層數指令。因此,主機120基於掃描層數指令獲得等於2的掃描層數。基於掃描層數,主機120以遞迴方式對選中伺服器中的第一層裝置以及第二層裝置進行掃描。In this embodiment, the
在本實施例中,網頁介面200還包括BMC欄位240、檔名欄位250、掃描結果視窗260以及下載鍵B2。在一些情境下,記錄於BMC欄位240中的BMC型號以及記錄於檔名欄位250的檔名可以是被預先設定的。因此,掃描結果視窗260的結果及/或語法會匹配於相同型號的BMC的韌體設計。一旦下載鍵B2被點選,掃描結果的檔名會被設定為記錄於檔名欄位250的檔名。In this embodiment, the
在一些情境下,使用者可決定基於不同的BMC的韌體設計來對選中伺服器進行掃描。使用者可將選中BMC型號輸入至BMC欄位240中並點選掃描鍵B1。掃描結果視窗260的結果及/或語法會匹配於選中BMC的韌體設計。In some situations, the user may decide to scan the selected server based on different BMC firmware designs. The user can input the selected BMC model into the
在一些情境下,記錄於檔名欄位250的檔名可以被修改。使用者可在檔名欄位250中輸入使用者本身所期望的檔名。In some cases, the file name recorded in the
在一些實施例中,伺服器欄位210、伺服器位址欄位220、掃描層數欄位230、BMC欄位240以及檔名欄位250的至少其中之一可以被設計為下拉式選單。In some embodiments, at least one of the
在此順帶一提的是,本實施例能夠利用網頁介面200提供裝置偵測方法以及裝置偵測系統100的設定。本實施例的網頁介面200能夠使使用者快速熟悉。因此,本實施例的網頁介面200也更快速確定出伺服器的實體裝置配置設計,從而縮短BMC的開發時間。除此之外,掃描層數欄位230的設計能夠縮短掃描時間。Incidentally, this embodiment can use the
在本實施例中,掃描結果視窗260可基於步驟S110~S130來顯示出掃描結果,從而產生出裝置的樹狀圖。樹狀圖的各個節點處分別紀錄第二類型裝置(如,多工器)的訊息ND1~ND3,例如是位址或型號。節點處以外的訊息LF1~LF5分別為第一類型裝置(如,感測器)的訊息,例如是位址或型號。上述的訊息ND1~ND3、LF1~LF5分別可例如是以文字或圖像來表現。舉例來說,在樹狀圖的第一層中,訊息LF1會對應到裝置111。訊息ND1會對應到裝置112。在樹狀圖的第二層中,訊息LF2會對應到裝置113。訊息ND2會對應到裝置115。訊息ND3會對應到裝置114。在掃描結果視窗260中,訊息LF2、ND2、ND3會透過通道被連接到訊息ND1。這表示裝置113~115分別被連接到裝置112。在樹狀圖的第三層中,訊息LF3會對應到裝置118。訊息LF4會對應到裝置116。訊息LF5會對應到裝置117。在掃描結果視窗260中,訊息LF3會透過通道被連接到訊息ND2。這表示裝置118被連接到裝置115。在掃描結果視窗260中,訊息LF3會透過通道被連接到訊息ND2。這表示裝置116、117被連接到裝置114。由此可知,在掃描結果視窗260所顯示的訊息可對應到裝置111~118的配置關係。In this embodiment, the
請參考圖1、圖3以及圖4,圖4是依據本發明另一實施例所繪示的裝置偵測方法的方法流程圖。在本實施例中,主機120會基於步驟S210~S290來執行多個操作。在步驟S210中,主機120至少接收選擇指令以及掃描層數指令。在本實施例中,主機120可提供網頁介面200。選擇指令以及掃描層數指令可透過對網頁介面200的操作而被產生。在步驟S220中,主機120基於選擇指令以選擇出選中伺服器。在步驟S230中,主機120對N值進行初始化以使N值等於1,並對選中伺服器中的第N層裝置(即,第1層裝置)進行掃描。步驟S230是在掃描鍵B1被點選後執行。在步驟S240中,主機120紀錄第N層裝置中的第一類型裝置的位址。在步驟S250中,主機120將第N層裝置中的第二類型裝置定義為節點。Please refer to FIG. 1 , FIG. 3 and FIG. 4 . FIG. 4 is a flowchart of a device detection method according to another embodiment of the present invention. In this embodiment, the
在步驟S260中,主機120會基於掃描層數指令判斷N值是否等於掃描層數。當N值不等於掃描層數時,主機120在步驟S270中使N值加1,並在步驟S280中對連接於節點的第N層裝置進行掃描。也就是說,主機120會對連接於第1層裝置中的第二類型裝置的第2層裝置進行掃描。接下來,進入步驟S240。因此,主機120基於步驟S240~S280所形成的步驟迴圈來執行遞迴操作,直到N值等於掃描層數為止。In step S260, the
當主機120在步驟S260中判斷出N值等於掃描層數時,主機120會在步驟S290中結束掃描並存檔。When the
綜上所述,本發明的主機紀錄被偵測到的第N層裝置中的第一類型裝置的位址。主機將第N層裝置中的第二類型裝置定義為節點,並且對對應於節點的至少一第N+1層裝置進行掃描。如此一來,伺服器的實體裝置配置能夠被快速地確定出來,從而縮短BMC的開發時間。除此之外,本發明的能夠利用網頁介面來提供裝置偵測方法以及裝置偵測系統的設定。本實施例的網頁介面能夠使使用者快速熟悉。因此,本實施例的網頁介面也更快速確定出伺服器的實體裝置配置設計。To sum up, the host of the present invention records the address of the first type device among the detected N-th layer devices. The host defines a second-type device in the N-th layer of devices as a node, and scans at least one N+1-th layer device corresponding to the node. In this way, the physical device configuration of the server can be quickly determined, thereby shortening the development time of the BMC. In addition, the present invention can use the web interface to provide the device detection method and the configuration of the device detection system. The web page interface of this embodiment can make the user quickly familiar with it. Therefore, the webpage interface of this embodiment can more quickly determine the configuration design of the physical device of the server.
雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed above with the embodiments, it is not intended to limit the present invention. Anyone with ordinary knowledge in the technical field may make some changes and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention should be defined by the scope of the appended patent application.
100:裝置偵測系統
110_1~110_3:伺服器
111~118:裝置
120:主機
200:網頁介面
210:伺服器欄位
220:伺服器位址欄位
230:掃描層數欄位
240:BMC欄位
250:檔名欄位
260:掃描結果視窗
B1:掃描鍵
B2:下載鍵
LF1~LF5:第一類型裝置的訊息
ND1~ND3:第二類型裝置的訊息
S110~S130:步驟
S210~S290:步驟
100:Device detection system
110_1~110_3:
圖1是依據本發明一實施例所繪示的裝置偵測系統的示意圖。 圖2是依據本發明一實施例所繪示的裝置偵測方法的方法流程圖。 圖3是依據本發明一實施例所繪示的網頁介面的示意圖。 圖4是依據本發明另一實施例所繪示的裝置偵測方法的方法流程圖。 FIG. 1 is a schematic diagram of a device detection system according to an embodiment of the present invention. FIG. 2 is a flow chart of a device detection method according to an embodiment of the present invention. FIG. 3 is a schematic diagram of a webpage interface according to an embodiment of the present invention. FIG. 4 is a flow chart of a device detection method according to another embodiment of the present invention.
S110~S130:步驟 S110~S130: steps
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110135036A TWI788021B (en) | 2021-09-22 | 2021-09-22 | Device detection method and device detection system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW110135036A TWI788021B (en) | 2021-09-22 | 2021-09-22 | Device detection method and device detection system |
Publications (2)
Publication Number | Publication Date |
---|---|
TWI788021B true TWI788021B (en) | 2022-12-21 |
TW202315359A TW202315359A (en) | 2023-04-01 |
Family
ID=85795157
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW110135036A TWI788021B (en) | 2021-09-22 | 2021-09-22 | Device detection method and device detection system |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI788021B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170201424A1 (en) * | 2016-01-11 | 2017-07-13 | Equinix, Inc. | Architecture for data center infrastructure monitoring |
US20190370414A1 (en) * | 2018-05-31 | 2019-12-05 | Vmware, Inc. | Visualizing data center inventory and entity relationships |
CN113326271A (en) * | 2021-08-03 | 2021-08-31 | 江苏未来智慧信息科技有限公司 | Non-recursive high-performance construction method of balanced binary tree |
-
2021
- 2021-09-22 TW TW110135036A patent/TWI788021B/en active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20170201424A1 (en) * | 2016-01-11 | 2017-07-13 | Equinix, Inc. | Architecture for data center infrastructure monitoring |
US20190370414A1 (en) * | 2018-05-31 | 2019-12-05 | Vmware, Inc. | Visualizing data center inventory and entity relationships |
CN113326271A (en) * | 2021-08-03 | 2021-08-31 | 江苏未来智慧信息科技有限公司 | Non-recursive high-performance construction method of balanced binary tree |
Also Published As
Publication number | Publication date |
---|---|
TW202315359A (en) | 2023-04-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10482411B2 (en) | Dashboard for dynamic display of distributed transaction data | |
US20070240098A1 (en) | Per User File Associations | |
JP5894266B2 (en) | Application tile presentation format | |
US9384119B2 (en) | Web page error reporting | |
KR102045602B1 (en) | Live tiles without application-code execution | |
US20090064000A1 (en) | SYSTEMS, METHODS AND COMPUTER PRODUCTS TO AUTOMATICALLY COMPLETE a GUI TASK | |
US20100162209A1 (en) | Embedding Software Developer Comments In Source Code Of Computer Programs | |
BRPI0720152A2 (en) | IMPROVEMENT OF USER EXPERIENCES USING DATA USING AGGREGATED DEVICES. | |
US9577998B2 (en) | Dynamic file access to files of unmapped remote computers | |
US8706778B2 (en) | Methods and systems for an action-based interface for files and other assets | |
TW201145169A (en) | Configuration of a basic input/output system (BIOS) of a computing device | |
JP2007183838A (en) | Query parameter output page discovering program, query parameter output page discovering method, and query parameter output page discovering device | |
US20140281664A1 (en) | Method and system for determining device configuration settings | |
KR20170110512A (en) | Information processing apparatus, control method, and storage medium | |
CN115576974B (en) | Data processing method, device, equipment and medium | |
JP2017208057A (en) | System and method of detecting unwanted software | |
US7065789B1 (en) | System and method for increasing heuristics suspicion levels in analyzed computer code | |
TWI427490B (en) | Methods and systems for viewing web pages, and computer program products thereof | |
TWI788021B (en) | Device detection method and device detection system | |
CN108228836B (en) | Video compatible loading method and device and video component | |
US20140365758A1 (en) | Techniques for booting an information processing system | |
US9176954B2 (en) | Information processing apparatus, information processing method, and non-transitory computer readable medium for presenting associated information upon selection of information | |
WO2023241583A1 (en) | Method and apparatus for page interaction, device, and storage medium | |
WO2023137957A1 (en) | Method for acquiring ambient light sensation value, and electronic device and computer-readable storage medium | |
CN116028282A (en) | Device detection method and device detection system |