TWI762914B - A method of enhancing added sensor - Google Patents

A method of enhancing added sensor Download PDF

Info

Publication number
TWI762914B
TWI762914B TW109114008A TW109114008A TWI762914B TW I762914 B TWI762914 B TW I762914B TW 109114008 A TW109114008 A TW 109114008A TW 109114008 A TW109114008 A TW 109114008A TW I762914 B TWI762914 B TW I762914B
Authority
TW
Taiwan
Prior art keywords
sensor
added
function
baseboard management
data record
Prior art date
Application number
TW109114008A
Other languages
Chinese (zh)
Other versions
TW202141274A (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 TW109114008A priority Critical patent/TWI762914B/en
Priority to US17/239,283 priority patent/US11714630B2/en
Publication of TW202141274A publication Critical patent/TW202141274A/en
Application granted granted Critical
Publication of TWI762914B publication Critical patent/TWI762914B/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3031Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a motherboard or an expansion card
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3058Monitoring arrangements for monitoring environmental properties or parameters of the computing system or of the computing system component, e.g. monitoring of power, currents, temperature, humidity, position, vibrations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3089Monitoring arrangements determined by the means or processing involved in sensing the monitored data, e.g. interfaces, connectors, sensors, probes, agents
    • G06F11/3093Configuration details thereof, e.g. installation, enabling, spatial arrangement of the probes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Security & Cryptography (AREA)
  • Mathematical Physics (AREA)
  • Stored Programmes (AREA)

Abstract

A method of Enhancing added sensor is implemented by a baseboard management controller which stores a firmware and includes: (A) updating a function library stored in the firmware to a target function library which includes an corresponding identification information of each of added sensors; (B) loading the target function library; (C) for each of the added sensors, determining whether the identification information of the added sensor is storing in a sensor data record of the firmware; (D) storing the identification information in the sensor data record when it determined that the identification information is not storing in the sensor data record; and (E) for each of the added sensors added to the sensor data record, initializing variables associated with the added sensors.

Description

加入所新增之感測器的方法How to add the added sensor

本發明是有關於一種收集一電腦裝置之運作情況的方法,特別是指一種將至少一新增至一電腦裝置之感測器的監測功能加入至該電腦裝置所包括的一基板管理控制器所提供之監控功能中的加入所新增之感測器的方法。The present invention relates to a method for collecting the operation status of a computer device, and more particularly, to a method of adding a monitoring function of at least one sensor added to a computer device to a baseboard management controller included in the computer device. The method of adding the added sensor in the provided monitoring function.

基板管理控制器(Baseboard Management Controller,簡稱BMC)在電腦裝置之應用中,主要功能之一是收集該電腦裝置之運作情況以及系統狀態資訊,例如系統電壓、溫度與風扇速度等。在產品量產後,有時會遇到客戶需要支援新的擴充卡,如PCIE/OCP add-on card,以提供多樣服務,面對這種狀況,就會需要新增一感測器來監測該PCIE/OCP add-on card的電壓與溫度,並將該感測器的監測功能加入至該電腦裝置所包括的該基板管理控制器所提供的監控功能中。此時,管理者須先在該基板管理控制器之基板管理控制韌體的主程式定義該感測器的相關資訊,在產生該基板管理控制器的基板管理控制韌體時,重新編譯修改後的主程式,接著重新燒錄基板管理控制韌體並重啟該基板管理控制器,才可透過該基板管理控制器獲得所新增之該感測器的感測資訊,只不過在燒錄及重啟過程中(數分鐘),該基板管理控制器則不能提供服務,甚至有燒錄失敗的風險,在講求高穩定性的系統中是不被允許的。One of the main functions of a baseboard management controller (BMC) in the application of a computer device is to collect the operation status and system status information of the computer device, such as system voltage, temperature and fan speed. After mass production of the product, sometimes customers need to support new expansion cards, such as PCIE/OCP add-on card, to provide various services. Faced with this situation, it is necessary to add a sensor to monitor the The voltage and temperature of the PCIE/OCP add-on card, and the monitoring function of the sensor is added to the monitoring function provided by the baseboard management controller included in the computer device. At this time, the administrator must first define the relevant information of the sensor in the main program of the baseboard management control firmware of the baseboard management controller, and recompile and modify the baseboard management control firmware when generating the baseboard management control firmware. the main program, then re-program the baseboard management control firmware and restart the baseboard management controller, and then the sensing information of the newly added sensor can be obtained through the baseboard management controller. During the process (several minutes), the baseboard management controller cannot provide services, and even has the risk of programming failure, which is not allowed in systems that require high stability.

此外,因現今發行(release)流程的關係,重新編譯後的基板管理控制韌體,還需經過測試單位驗證過後,才能送至客戶手上,故往往得需耗費一段作業時間,較沒效率,故實有必要提出一解決方案。In addition, due to the relationship of the current release process, the recompiled baseboard management control firmware needs to be verified by the testing unit before it can be delivered to the customer, so it usually takes a long time to work, which is less efficient. Therefore, it is necessary to propose a solution.

因此,本發明的目的,即在提供一種可動態新增感測器,且無需重新燒錄基板管理控制韌體及重新啟動基板管理控制器,並縮短發行時程以減少成本開銷的加入所新增之感測器的方法。Therefore, the purpose of the present invention is to provide a sensor that can be dynamically added without re-programming the baseboard management control firmware and restarting the baseboard management controller, and to shorten the release time and reduce the cost of adding new components. method of adding sensors.

於是,本發明加入所新增之感測器的方法,適用於將至少一新增至一電腦裝置之感測器的監測功能加入至該電腦裝置所包括的一基板管理控制器所提供之監控功能中,並藉由該基板管理控制器來實施,該基板管理控制器儲存有一包含一主程式、一函式庫,及一感測器資料紀錄表的基板管理控制韌體,該加入所新增之感測器的方法包含以下步驟:Therefore, the method for adding the added sensor of the present invention is suitable for adding the monitoring function of at least one sensor added to a computer device to the monitoring provided by a baseboard management controller included in the computer device function, and is implemented by the baseboard management controller. The baseboard management controller stores a baseboard management control firmware including a main program, a function library, and a sensor data record table. The method of adding a sensor includes the following steps:

(A)將原先所儲存之基板管理控制韌體中的函式庫更新為一目標函式庫,該目標函式庫含有所新增之每一感測器之識別資訊,及用於操作其監測功能的功能函式;(A) Update the function library in the originally stored baseboard management control firmware to a target function library, the target function library contains the identification information of each newly added sensor, and is used to operate its The function function of the monitoring function;

(B) 經由該主程式之執行載入該目標函式庫;(B) loading the object library through the execution of the main program;

(C)經由該主程式之執行,對於每一感測器,判定該感測器資料紀錄表中是否存在一與該感測器之識別資訊相同的紀錄;(C) through the execution of the main program, for each sensor, determine whether there is a record identical to the identification information of the sensor in the sensor data record table;

(D)當判定出不存在與該感測器之識別資訊相同的紀錄時,經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式,以將該感測器之識別資訊新增至該感測器資料紀錄表;及(D) when it is determined that there is no record identical to the identification information of the sensor, call the function function related to the sensor in the target function library through the main program, so that the sensor's The identification information is added to the sensor data record table; and

(E)對於每一新增至該感測器資料紀錄表之感測器,經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式,以初始化該目標函式庫中與新增至該感測器資料紀錄表之該感測器相關的變數。(E) For each sensor added to the sensor data record table, call the function function related to the sensor in the target function library through the main program to initialize the target function library in the variables associated with the sensor added to the sensor data record table.

本發明的功效在於:藉由將原先所儲存之基板管理控制韌體中的函式庫更新為該目標函式庫,並載入該目標函式庫,且經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式,以動態地將不存在於該感測器資料紀錄表中之感測器的識別資訊新增至該感測器資料紀錄表,並初始化與新增至該感測器資料紀錄表之感測器相關的變數,藉此以動態地載入每一感測器的功能函式,並將其識別資訊新增至該感測器資料紀錄表,而使該基板管理控制器可獲得所新增之該感測器的感測資訊。由於所新增之每一感測器之識別資訊,及用於操作其監測功能的功能函式係定義於該目標函式庫中,因此只需用該目標函式庫替換掉舊的函式庫即可,不需重新編譯該基板管理控制韌體之主程式,故無需重新燒錄基板管理控制韌體及重新啟動基板管理控制器,因而可減少更新基板管理控制韌體的機率,避免基板管理控制器因更新失敗而無法提供服務的風險。此外,測試單位僅需針對該目標函式庫驗證即可,可減少驗證時間,以縮短發行時程進而減少成本開銷。The effect of the present invention is: by updating the function library in the originally stored baseboard management control firmware to the target function library, loading the target function library, and calling the target function through the main program Function functions related to the sensor in the library to dynamically add the identification information of the sensor that does not exist in the sensor data record table to the sensor data record table, and initialize and update adding the sensor-related variables to the sensor data record table, thereby dynamically loading the function function of each sensor, and adding its identification information to the sensor data record table, So that the baseboard management controller can obtain the sensing information of the newly added sensor. Since the identification information of each sensor added and the function functions used to operate its monitoring function are defined in the target function library, it is only necessary to replace the old functions with the target function library The main program of the baseboard management control firmware does not need to be recompiled, so there is no need to re-burn the baseboard management control firmware and restart the baseboard management controller, so it can reduce the probability of updating the baseboard management control firmware and avoid the Manages the risk of the controller being out of service due to a failed update. In addition, the test unit only needs to verify against the target function library, which can reduce the verification time, shorten the release time process and reduce the cost overhead.

參閱圖1,本發明加入所新增之感測器的方法之實施例,適用於將至少一新增至一電腦裝置1之感測器11的監測功能加入至該電腦裝置1所包括的一基板管理控制器12所提供之監控功能中,並藉由該電腦裝置1來實施。該電腦裝置1包含該至少一用於監測該電腦裝置1之構件(圖未示)的感測器11,及電連接該至少一感測器11的該基板管理控制器12,該基板管理控制器12儲存有一包含一主程式、一函式庫,及一感測器資料紀錄表(sensor data record)的基板管理控制韌體。Referring to FIG. 1 , an embodiment of the method for adding a newly added sensor of the present invention is suitable for adding at least one monitoring function of a sensor 11 added to a computer device 1 to a computer device 1 including a monitoring function. The monitoring function provided by the baseboard management controller 12 is implemented by the computer device 1 . The computer device 1 includes the at least one sensor 11 for monitoring components (not shown) of the computer device 1 , and the baseboard management controller 12 electrically connected to the at least one sensor 11 , the baseboard management control The device 12 stores a baseboard management control firmware including a main program, a function library, and a sensor data record.

參閱圖1與圖2,該加入所新增之感測器的方法之實施例包含以下步驟。Referring to FIG. 1 and FIG. 2 , an embodiment of the method for adding the newly added sensor includes the following steps.

在步驟21中,該基板管理控制器12將原先所儲存之基板管理控制韌體中的函式庫更新為一目標函式庫,該目標函式庫含有所新增之每一感測器11之識別資訊,及用於操作其監測功能的功能函式如,CreateSensor()及InitSensor()等。值得一提的是,該目標函式庫中之每一感測器11之識別資訊及功能函式係由一管理者所定義。In step 21 , the baseboard management controller 12 updates the function library stored in the baseboard management control firmware to a target function library, and the target function library contains each of the newly added sensors 11 identification information, and functions used to operate its monitoring functions, such as CreateSensor() and InitSensor(). It is worth mentioning that the identification information and function functions of each sensor 11 in the target library are defined by a manager.

在步驟22中,該基板管理控制器12回應於一OEM指令經由該主程式之執行載入該目標函式庫。值得一提的是,該基板管理控制器12在上電時即會執行該主程式,而在收集該電腦裝置1之運作情況以及系統狀態資訊時,還會經由該主程式之執行載入該目標函式庫,如此一來,所新增之每一感測器11的功能函式即會隨著該目標函式庫的載入也被載入,故即便所新增之每一感測器11的功能函式非包含於該主程式,其仍可隨著該目標函式庫被載入。另外,在本實施例中,可透過發出該OEM指令來觸發該基板管理控制器12載入該目標函式庫,以即時地在更新完該目標函式庫後就載入更新後的該目標函式庫;然而,在本發明之其他實施例中,由於每當該基板管理控制器12重新啟動時,該基板管理控制器12即會重新載入該主程式及該函式庫,藉此,更新後的該目標函式庫不必然要透過發出該OEM指令方能被載入,藉由重新啟動該基板管理控制器12也可以達到載入更新後之該目標函式庫的效果。In step 22, the baseboard management controller 12 loads the object library through the execution of the main program in response to an OEM command. It is worth mentioning that the baseboard management controller 12 will execute the main program when it is powered on, and will also load the main program through the execution of the main program when collecting the operation status and system status information of the computer device 1 . The target function library, in this way, the function function of each sensor 11 added will be loaded along with the loading of the target function library, so even if the added sensor 11 is loaded The functional functions of the device 11 are not included in the main program, but can still be loaded along with the object library. In addition, in this embodiment, the baseboard management controller 12 can be triggered to load the target function library by issuing the OEM command, so as to load the updated target immediately after updating the target function library function library; however, in other embodiments of the present invention, since every time the baseboard management controller 12 is restarted, the baseboard management controller 12 will reload the main program and the function library, thereby , the updated target function library does not necessarily need to be loaded by issuing the OEM command, and the effect of loading the updated target function library can also be achieved by restarting the baseboard management controller 12 .

在步驟23中,該基板管理控制器12經由該主程式之執行,根據該感測器資料紀錄表及該至少一感測器11之數量判定是否可將該至少一感測器11之每一者所對應的識別資訊皆新增至該感測器資料紀錄表。當該基板管理控制器12判定出無法將該至少一感測器11之每一者所對應的識別資訊皆新增至該感測器資料紀錄表時,流程結束;當該基板管理控制器12判定出可將該至少一感測器11之每一者所對應的識別資訊皆新增至該感測器資料紀錄表時,流程進行步驟24。In step 23, the baseboard management controller 12 determines whether each of the at least one sensor 11 can be determined according to the sensor data record table and the number of the at least one sensor 11 through the execution of the main program. The corresponding identification information is added to the sensor data record table. When the baseboard management controller 12 determines that the identification information corresponding to each of the at least one sensor 11 cannot be added to the sensor data record table, the process ends; when the baseboard management controller 12 When it is determined that the identification information corresponding to each of the at least one sensor 11 can be added to the sensor data record table, the flow goes to step 24 .

值得一提的是,步驟23還包含以下子步驟(見圖3)。It is worth mentioning that step 23 also includes the following sub-steps (see Figure 3).

在子步驟231中,該基板管理控制器12經由該主程式之執行,將該感測器資料紀錄表中已存在之感測器紀錄的數量(亦即,原先該感測器資料紀錄表已記錄過之感測器11的數量)加上所新增之該至少一感測器11之數量,以獲得一感測器總數。In sub-step 231, the baseboard management controller 12 executes the main program to obtain the number of existing sensor records in the sensor data record table (that is, the sensor data record table has The number of the recorded sensors 11 ) is added to the number of the newly added at least one sensor 11 to obtain a total number of sensors.

在子步驟232中,該基板管理控制器12經由該主程式之執行,判定該感測器總數是否小於等於一預設的數量閥值,以判定是否可將該至少一感測器11之每一者所對應的識別資訊皆新增至該感測器資料紀錄表。當該基板管理控制器12判定出該感測器總數小於等於預設的該數量閥值時,即判定可將該至少一感測器11之每一者所對應的識別資訊皆新增至該感測器資料紀錄表;當該基板管理控制器12判定出該感測器總數大於預設的該數量閥值時,即判定無法將該至少一感測器11之每一者所對應的識別資訊皆新增至該感測器資料紀錄表。In sub-step 232, the baseboard management controller 12 determines whether the total number of the sensors is less than or equal to a predetermined number threshold through the execution of the main program, so as to determine whether each of the at least one sensor 11 can be The identification information corresponding to one is added to the sensor data record table. When the baseboard management controller 12 determines that the total number of sensors is less than or equal to the preset number threshold, it determines that the identification information corresponding to each of the at least one sensor 11 can be added to the sensor data record table; when the baseboard management controller 12 determines that the total number of the sensors is greater than the preset number threshold, it determines that the identification corresponding to each of the at least one sensor 11 cannot be Information is added to the sensor data record table.

在步驟24中,對於每一感測器11,該基板管理控制器12經由該主程式之執行,判定該感測器資料紀錄表中是否存在一與該感測器11之識別資訊相同的紀錄。當該基板管理控制器12判定出不存在與該感測器11之識別資訊相同的紀錄時,流程進行步驟25;當該基板管理控制器12判定出存在與該感測器11之識別資訊相同的紀錄時,流程進行步驟26。In step 24, for each sensor 11, the baseboard management controller 12 determines whether there is a record with the same identification information as the sensor 11 in the sensor data record table through the execution of the main program . When the baseboard management controller 12 determines that there is no record with the same identification information as the sensor 11 , the process proceeds to step 25 ; when the baseboard management controller 12 determines that there is a record with the same identification information as the sensor 11 , the flow goes to step 26.

在步驟25中,該基板管理控制器12經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式(亦即,CreateSensor()),以將該感測器11之識別資訊新增至該感測器資料紀錄表。In step 25 , the baseboard management controller 12 calls the function function (ie, CreateSensor( )) related to the sensor in the target library through the main program to identify the sensor 11 Information is added to the sensor data record table.

在步驟26中,該基板管理控制器12不將該感測器11之識別資訊新增至該感測器資料紀錄表。In step 26, the baseboard management controller 12 does not add the identification information of the sensor 11 to the sensor data record table.

在步驟27中,對於每一新增至該感測器資料紀錄表之感測器11,該基板管理控制器12經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式(亦即,InitSensor()),以初始化該目標函式庫中與新增至該感測器資料紀錄表之該感測器11相關的變數。值得一提的是,當該感測器11之識別資訊被記錄到該感測器資料紀錄表,並完成初始化後,對於每一存在於該感測器資料紀錄表之感測器11,該基板管理控制器12即可根據其識別資訊利用已載入之對應該感測器11的功能函式來採集該感測器11所監測的感測資訊。In step 27, for each sensor 11 added to the sensor data record table, the baseboard management controller 12 calls the function function related to the sensor in the target library via the main program formula (ie, InitSensor( )) to initialize the variables in the target library related to the sensor 11 added to the sensor data record table. It is worth mentioning that when the identification information of the sensor 11 is recorded in the sensor data record table and the initialization is completed, for each sensor 11 existing in the sensor data record table, the The baseboard management controller 12 can use the loaded function function corresponding to the sensor 11 to collect the sensing information monitored by the sensor 11 according to the identification information.

值得一提的是,在本實施方式中,在步驟22中,該基板管理控制器12回應於該OEM指令還觸發該主程式建立一任務(task)來進行步驟23~24,並且透過該主程式之任務呼叫該目標函式庫中與該感測器相關的功能函式以進行步驟25及步驟27。然而,在其他實施方式中,也可直接將步驟23~24之執行動作,及呼叫該目標函式庫中與該感測器相關的功能函式以進行步驟25及步驟27的動作直接定義在該主程式的一函式中,然不以此為限。It is worth mentioning that, in this embodiment, in step 22, the baseboard management controller 12 also triggers the main program to create a task in response to the OEM instruction to perform steps 23-24, and through the main program The task of the program calls the function function related to the sensor in the target library to perform step 25 and step 27 . However, in other embodiments, the execution actions of steps 23-24 and calling the function functions related to the sensor in the target function library to perform the actions of steps 25 and 27 can also be directly defined in In a function of the main program, however, it is not limited to this.

綜上所述,本發明藉由將原先所儲存之基板管理控制韌體中的函式庫更新為該目標函式庫,並載入該目標函式庫,且經由該主程式呼叫該目標函式庫,以動態地將不存在於該感測器資料紀錄表中之感測器11的識別資訊新增至該感測器資料紀錄表,並初始化與新增至該感測器資料紀錄表之感測器11相關的變數,藉此以動態地載入每一感測器11的功能函式,並將其識別資訊新增至該感測器資料紀錄表,而使該基板管理控制器12可根據該感測器資料紀錄表中新增的識別資訊配合所載入的功能函式,獲得所新增之該感測器11的感測資訊。由於所新增之每一感測器11之識別資訊,及用於操作其監測功能的功能函式係定義於該目標函式庫中,因此只需用該目標函式庫替換掉舊的函式庫即可,不需重新編譯該基板管理控制韌體之主程式,故無需重新燒錄基板管理控制韌體及重新啟動基板管理控制器12,因而可減少更新基板管理控制韌體的機率,避免基板管理控制器12因更新失敗而無法提供服務的風險。此外,測試單位僅需針對該目標函式庫替驗證即可,可減少驗證時間,以縮短發行時程進而減少成本開銷,故確實能達成本發明的目的。To sum up, the present invention updates the function library in the originally stored baseboard management control firmware to the target function library, loads the target function library, and calls the target function through the main program library to dynamically add the identification information of the sensor 11 that does not exist in the sensor data record table to the sensor data record table, and initialize and add to the sensor data record table The relevant variables of the sensor 11 are used to dynamically load the function function of each sensor 11 and add its identification information to the sensor data record table, so that the baseboard management controller can 12 can obtain the newly added sensing information of the sensor 11 according to the newly added identification information in the sensor data record table and the loaded function function. Since the identification information of each sensor 11 added and the function functions for operating its monitoring function are defined in the target function library, it is only necessary to replace the old function with the target function library. There is no need to recompile the main program of the baseboard management control firmware, so there is no need to re-burn the baseboard management control firmware and restart the baseboard management controller 12, thus reducing the probability of updating the baseboard management control firmware. Avoid the risk that the baseboard management controller 12 cannot provide services due to an update failure. In addition, the test unit only needs to perform verification against the target function library, which can reduce verification time, shorten the release time process and reduce the cost, so the purpose of the present invention can be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。However, the above are only examples of the present invention, and should not limit the scope of implementation of the present invention. Any simple equivalent changes and modifications made according to the scope of the patent application of the present invention and the contents of the patent specification are still included in the scope of the present invention. within the scope of the invention patent.

1:電腦裝置 11:感測器 12:基板管理控制器 21~27:步驟 231~232:子步驟1: Computer device 11: Sensor 12: Baseboard Management Controller 21~27: Steps 231~232: Substeps

本發明的其他的特徵及功效,將於參照圖式的實施方式中清楚地呈現,其中: 圖1是一方塊圖,說明一用於實施本發明加入所新增之感測器的方法之實施例的電腦裝置; 圖2是一流程圖,說明本發明加入所新增之感測器的方法之實施例;及 圖3是一流程圖,說明如何判定是否將至少一感測器之每一者所對應的識別資訊皆新增至一感測器資料紀錄表。Other features and effects of the present invention will be clearly presented in the embodiments with reference to the drawings, wherein: FIG. 1 is a block diagram illustrating a computer apparatus for implementing an embodiment of the method of adding the added sensor of the present invention; FIG. 2 is a flow chart illustrating an embodiment of the method of adding the newly added sensor of the present invention; and 3 is a flowchart illustrating how to determine whether to add identification information corresponding to each of at least one sensor to a sensor data record table.

21~27:步驟21~27: Steps

Claims (5)

一種加入所新增之感測器的方法,適用於將至少一新增至一電腦裝置之感測器的監測功能加入至該電腦裝置所包括的一基板管理控制器所提供之監控功能中,並藉由該基板管理控制器來實施,該基板管理控制器儲存有一包含一主程式、一函式庫,及一感測器資料紀錄表的基板管理控制韌體,該加入所新增之感測器的方法包含以下步驟: (A)將原先所儲存之基板管理控制韌體中的函式庫更新為一目標函式庫,該目標函式庫含有所新增之每一感測器之識別資訊,及用於操作其監測功能的功能函式; (B)經由該主程式之執行載入該目標函式庫; (C)經由該主程式之執行,對於每一感測器,判定該感測器資料紀錄表中是否存在一與該感測器之識別資訊相同的紀錄; (D)當判定出不存在與該感測器之識別資訊相同的紀錄時,經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式,以將該感測器之識別資訊新增至該感測器資料紀錄表;及 (E)對於每一新增至該感測器資料紀錄表之感測器,經由該主程式呼叫該目標函式庫中與該感測器相關的功能函式,以初始化該目標函式庫中與新增至該感測器資料紀錄表之該感測器相關的變數。A method for adding a newly added sensor, which is suitable for adding the monitoring function of at least one sensor added to a computer device to the monitoring function provided by a baseboard management controller included in the computer device, And implemented by the baseboard management controller, the baseboard management controller stores a baseboard management control firmware including a main program, a function library, and a sensor data record table, and the added sense is added. The tester's method consists of the following steps: (A) Update the function library in the originally stored baseboard management control firmware to a target function library, the target function library contains the identification information of each newly added sensor, and is used to operate its The function function of the monitoring function; (B) loading the object library through the execution of the main program; (C) through the execution of the main program, for each sensor, determine whether there is a record identical to the identification information of the sensor in the sensor data record table; (D) when it is determined that there is no record identical to the identification information of the sensor, call the function function related to the sensor in the target function library through the main program, so that the sensor's The identification information is added to the sensor data record table; and (E) For each sensor added to the sensor data record table, call the function function related to the sensor in the target function library through the main program to initialize the target function library in the variables associated with the sensor added to the sensor data record table. 如請求項1所述的加入所新增之感測器的方法,在步驟(B)與(C)之間,還包含一步驟(F),經由該主程式之執行,根據該感測器資料紀錄表及該至少一感測器之數量判定是否可將該至少一感測器之每一者所對應的識別資訊皆新增至該感測器資料紀錄表; 其中,當判定出可將該至少一感測器之每一者所對應的識別資訊皆新增至該感測器資料紀錄表時,進行步驟(C)。The method for adding the added sensor as described in claim 1 further includes a step (F) between steps (B) and (C), through the execution of the main program, according to the sensor The data record table and the number of the at least one sensor determine whether the identification information corresponding to each of the at least one sensor can be added to the sensor data record table; Wherein, when it is determined that the identification information corresponding to each of the at least one sensor can be added to the sensor data record table, step (C) is performed. 如請求項2所述的加入所新增之感測器的方法,其中,步驟(F)包含以下子步驟: (F-1)將該感測器資料紀錄表中已存在之感測器紀錄的數量加上所新增之該至少一感測器之數量,以獲得一感測器總數;及 (F-2)判定該感測器總數是否小於等於一預設的數量閥值,以判定是否可將該至少一感測器之每一者所對應的識別資訊皆新增至該感測器資料紀錄表。The method for adding a newly added sensor according to claim 2, wherein step (F) includes the following sub-steps: (F-1) Add the number of the at least one sensor added to the number of existing sensor records in the sensor data record table to obtain a total number of sensors; and (F-2) Determine whether the total number of the sensors is less than or equal to a preset number threshold, so as to determine whether the identification information corresponding to each of the at least one sensor can be added to the sensor Data record sheet. 如請求項1所述的加入所新增之感測器的方法,其中,在步驟(B)中,該基板管理控制器係回應於一OEM指令而載入該目標函式庫。The method for adding an added sensor according to claim 1, wherein, in step (B), the baseboard management controller loads the target function library in response to an OEM command. 如請求項4所述的加入所新增之感測器的方法,其中: 在步驟(B)中,該基板管理控制器回應於該OEM指令還觸發該主程式建立一任務; 在步驟(C)中,該基板管理控制器係經由該主程式之任務的執行,對於每一感測器,判定該感測器資料紀錄表中是否存在一與該感測器之識別資訊相同的紀錄; 在步驟(D)中,該基板管理控制器係經由該主程式之任務呼叫該目標函式庫中與該感測器相關的功能函式,以將該感測器之識別資訊新增至該感測器資料紀錄表;及 在步驟(E)中,該基板管理控制器係經由該主程式之任務呼叫該目標函式庫中與該感測器相關的功能函式,以初始化該感測器相關的變數。The method for adding an added sensor as described in claim 4, wherein: In step (B), the baseboard management controller also triggers the main program to create a task in response to the OEM command; In step (C), the baseboard management controller, through the execution of the task of the main program, for each sensor, determines whether there is an identification information identical to that of the sensor in the sensor data record table records; In step (D), the baseboard management controller calls the function function related to the sensor in the target function library through the task of the main program, so as to add the identification information of the sensor to the sensor sensor data log; and In step (E), the baseboard management controller calls the function function related to the sensor in the target function library through the task of the main program to initialize the variables related to the sensor.
TW109114008A 2020-04-27 2020-04-27 A method of enhancing added sensor TWI762914B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW109114008A TWI762914B (en) 2020-04-27 2020-04-27 A method of enhancing added sensor
US17/239,283 US11714630B2 (en) 2020-04-27 2021-04-23 Method of adding a sensor monitoring feature of a newly-added sensor to a system monitoring feature provided by a baseboard management controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109114008A TWI762914B (en) 2020-04-27 2020-04-27 A method of enhancing added sensor

Publications (2)

Publication Number Publication Date
TW202141274A TW202141274A (en) 2021-11-01
TWI762914B true TWI762914B (en) 2022-05-01

Family

ID=78222195

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109114008A TWI762914B (en) 2020-04-27 2020-04-27 A method of enhancing added sensor

Country Status (2)

Country Link
US (1) US11714630B2 (en)
TW (1) TWI762914B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201220075A (en) * 2010-11-03 2012-05-16 Inventec Corp Controlling method for Baseboard Management Controller with customization sensor data record
US20150355651A1 (en) * 2014-06-05 2015-12-10 American Megatrends, Inc. Thermal watchdog process in host computer management and monitoring
EP3249536A1 (en) * 2015-03-27 2017-11-29 INTEL Corporation Virtual intelligent platform management interface (ipmi) satellite controller and method
US10534417B1 (en) * 2015-03-10 2020-01-14 Amazon Technologies, Inc. Mass storage device electrical power consumption monitoring

Family Cites Families (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6496790B1 (en) * 2000-09-29 2002-12-17 Intel Corporation Management of sensors in computer systems
US7966389B2 (en) * 2003-04-22 2011-06-21 Hewlett-Packard Development Company, L.P. System and method for application programming interface for extended intelligent platform management
US20050137833A1 (en) * 2003-12-18 2005-06-23 Rajasekhar Sistla Automatic sensor integration
US20060167919A1 (en) * 2004-07-19 2006-07-27 Aten International Co., Ltd. Intelligent platform management interface validating system and method
TW200823752A (en) * 2006-11-24 2008-06-01 Inventec Corp Universal computer product hardware configuration initialization handling method and system
US7827436B2 (en) * 2006-12-21 2010-11-02 Inventec Corporation Method of updating a dual redundant chassis management system
US20080189315A1 (en) * 2007-02-05 2008-08-07 Inventec Corporation Method and server system for creating sensor data record
US8239046B2 (en) * 2007-02-26 2012-08-07 International Business Machines Corporation Sensor network controllers
TW201217989A (en) * 2010-10-29 2012-05-01 Inventec Corp A method for obtaining a failure signal of a storage device using a Baseboard Management Controller
US8751635B2 (en) * 2010-12-13 2014-06-10 International Business Machines Corporation Monitoring sensors for systems management
CN103914323A (en) * 2013-01-08 2014-07-09 鸿富锦精密工业(深圳)有限公司 Baseboard management controller updating system and updating method
US9176649B2 (en) * 2013-03-15 2015-11-03 American Megatrends, Inc. Method and apparatus of remote management of computer system using voice and gesture based input
US9118584B2 (en) * 2013-03-15 2015-08-25 American Megatrends, Inc. Dynamic scalable baseboard management controller stacks on single hardware structure
US9311486B2 (en) * 2013-08-13 2016-04-12 American Megatrends, Inc. Network based firmware feature configuration and firmware image generation
CN104639380B (en) * 2013-11-07 2018-03-09 英业达科技有限公司 server monitoring method
TW201602767A (en) * 2014-07-09 2016-01-16 萬國商業機器公司 Firmware updating method and the power system thereof
US9965270B2 (en) * 2015-07-01 2018-05-08 Quanta Computer Inc. Updating computer firmware
US9921915B2 (en) * 2015-10-16 2018-03-20 Quanta Computer Inc. Baseboard management controller recovery
US9495171B1 (en) * 2015-10-16 2016-11-15 International Business Machines Corporation Baseboard management controller (BMC) provided with sensor list
US11461258B2 (en) * 2016-09-14 2022-10-04 Samsung Electronics Co., Ltd. Self-configuring baseboard management controller (BMC)
US10871963B2 (en) * 2016-10-17 2020-12-22 Lenovo Enterprise Solutions (Singapore) Pte. Ltd Adjustment of voltage regulator firmware settings based upon external factors
US11182143B2 (en) * 2016-10-18 2021-11-23 Lenovo Enterprise Solutions (Singapore) Pte. Ltd. Adjustment of voltage regulator firmware settings based upon an efficiency score
US10318736B2 (en) * 2016-10-31 2019-06-11 Hewlett Packard Enterprise Development Lp Validating operating firmware of a periperhal device
TWI602124B (en) * 2017-01-20 2017-10-11 神雲科技股份有限公司 Baseboard Management Controller Firmware Updating Method For Fan Speed Control
US10346187B1 (en) * 2017-03-30 2019-07-09 Amazon Technologies, Inc. Board management controller firmware emulation
US10924350B1 (en) * 2017-06-21 2021-02-16 Amazon Technologies, Inc. Software sensor for reporting controller metrics
US11635971B2 (en) * 2018-02-16 2023-04-25 Reneo, Inc. Scalable life-cycle maintenance of hardware
CN109005226A (en) * 2018-07-27 2018-12-14 郑州云海信息技术有限公司 The acquisition methods of sensing data, acquisition system and relevant apparatus in server
US11099926B2 (en) * 2019-04-15 2021-08-24 Hewlett Packard Enterprise Development Lp Sensor reading verification and query rate adjustment based on readings from associated sensors
US11914492B2 (en) * 2020-10-13 2024-02-27 Dell Products, L.P. System and method for highly granular power/thermal control in information handling systems

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201220075A (en) * 2010-11-03 2012-05-16 Inventec Corp Controlling method for Baseboard Management Controller with customization sensor data record
US20150355651A1 (en) * 2014-06-05 2015-12-10 American Megatrends, Inc. Thermal watchdog process in host computer management and monitoring
US10534417B1 (en) * 2015-03-10 2020-01-14 Amazon Technologies, Inc. Mass storage device electrical power consumption monitoring
EP3249536A1 (en) * 2015-03-27 2017-11-29 INTEL Corporation Virtual intelligent platform management interface (ipmi) satellite controller and method

Also Published As

Publication number Publication date
TW202141274A (en) 2021-11-01
US20210334086A1 (en) 2021-10-28
US11714630B2 (en) 2023-08-01

Similar Documents

Publication Publication Date Title
CN106648958B (en) Basic input output system replys management system and its method and program product
WO2022198972A1 (en) Method, system and apparatus for fault positioning in starting process of server
US7185335B2 (en) Programmatic application installation diagnosis and cleaning
US20200310779A1 (en) Validating a firmware compliance policy prior to use in a production system
JP6292045B2 (en) Software information management program, software information management apparatus, and software information management method
JP6089064B2 (en) Method, computer system and memory device for updating software components
CN112100027A (en) Server maintenance method, device, equipment and machine readable storage medium
WO2021103598A1 (en) Server starting method and apparatus
TW201944239A (en) Server and method for restoring a baseboard management controller automatically
CN109032636A (en) A method of UEFI firmware is updated based on encryption certification BMC
WO2023092875A1 (en) Intelligent port mapping method for wsl2 system
CN111752635A (en) Application program running method and device, computer equipment and storage medium
TWI553490B (en) Method and system for remote system configuration management and non-transitory computer-readable storage medium
TWI762914B (en) A method of enhancing added sensor
CN115291925A (en) BMC upgrading method, system, equipment and storage medium
CN113946482A (en) Method for adding new sensor
JP2021157489A (en) Information processing apparatus and information processing system
CN113672267A (en) Parameter updating method and device
CN113791874A (en) Configuration method and device for virtual machine boot, computer equipment and storage medium
TWI668636B (en) Update method for server firmware
CN113467801A (en) BMC firmware application updating method, BMC, system and storage medium
CN112527343A (en) Firmware updating method and device, computer equipment and storage medium
CN107015827B (en) Embedded system and method for automatically operating third-party extension program thereof
JP7411471B2 (en) Information processing equipment and communication systems
JP6571423B2 (en) Information processing system, device information acquisition method, and program therefor