[go: up one dir, main page]

TW201007446A - Method for verifying data - Google Patents

Method for verifying data Download PDF

Info

Publication number
TW201007446A
TW201007446A TW97130876A TW97130876A TW201007446A TW 201007446 A TW201007446 A TW 201007446A TW 97130876 A TW97130876 A TW 97130876A TW 97130876 A TW97130876 A TW 97130876A TW 201007446 A TW201007446 A TW 201007446A
Authority
TW
Taiwan
Prior art keywords
data
storage unit
verifying
system data
code
Prior art date
Application number
TW97130876A
Other languages
Chinese (zh)
Other versions
TWI399641B (en
Inventor
Chih-Wen Wang
pei-chun Wang
Original Assignee
Inventec Corp
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 Inventec Corp filed Critical Inventec Corp
Priority to TW97130876A priority Critical patent/TWI399641B/en
Publication of TW201007446A publication Critical patent/TW201007446A/en
Application granted granted Critical
Publication of TWI399641B publication Critical patent/TWI399641B/en

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

A method for verifying data, which is suitable for verifying plenty of system data of a computer, is provided. First, the system data is gathered from a storage unit. Then, one of serial numbers is selected according to a user's selection. Afterwards, specification data relative to the specification number is updated into a specification. Finally, the system data is compared with the specification so as to obtain a compared result, and the compared result is recorded.

Description

201007446 UOUH7->* JL W 28781twf.doc/n 九、發明說明: 【發明所屬之技術領域】 本發明是有關於一種電腦系統的測試方法,且特別是 有關於電腦系統的系統資料的驗證方法。 【先前技術】 一般而言,電腦系統開啟時,首先基本輸入輪出系統 (Basic Input Output System,BIOS)將被啟動,以執行啟 動自我測言式(Power On Self Test,POST)。在完成POST ® 之後’ BIOS便會將有關於電腦系統的資料整合成一個表 格,而寫入至記憶體中。也就是說,BIOS是依據系統管理 基本輸入輸出系統(System Management BIOS,SMBIOS ) 所訂定的規格,將所擷取的資料以資料結構的方式儲存至 記憶體中。 當電腦系統處於測試階段時,測試人員需要藉由讀取 SMBIOS的資料,判斷BI0S所操取的資料是否正確,藉 以測试BIOS的程式碼是否有誤。然而,傳統在驗證 ❿ SMBI0S的資料是否正確時,只能藉由人工方式來逐一進 行比對’此舉不僅浪費人力亦耗費時間。 【發明内容】 本發明提供一種驗證資料的方法,可依據不同的需求 而制疋出不同的規格書,據以藉由規格書來自動進行驗證 的動作。 有鑑於此,本發明提出一種驗證資料的方法,適用於 驗證電腦系統的多個系統資料。首先,自儲存單元操取系 201007446 ,/ 28781twf.doc/n 統資料。接著’依據使用者的選擇,自多個規格代號中擇 一。其中這些規格代號各自具有對應的規格資料。之後, 將規格資料更新至規格書中。最後,比對這些系統資料與 規格書’獲得比對結果,並記錄比對結果。 在本發明之一實施例中,驗證資料的方法更包括建立 資料庫。在資料庫中包括上述規格代號、各個規格代號所 對應的規格資料以及規格書。 0 在本發明之一實施例中’上述更新規格書的步驟可依 據所選擇的規格代號,將此規格代號對應的一組規格資料 填入至規格書對應的欄位中。 在本發明之一實施例中’上述在自儲存單元擷取系統 資料的步驟之前’可藉由BIOS來擷取這些系統資料,而 儲存至儲存單元。 在本發明之一實施例中’上述自儲存單元擷取系統資 料的步驟’可在電腦系統進入磁碟作業系統(Disk Operating System,DOS)時來進行之。 ® 在本發明之一實施例中,上述在依據使用者的選擇, 自上述規格代號中擇一的步驟之前,更可藉由使用者介面 來顯示一清單’而呈現出這些規格代號以供使用者選擇。 在本發明之一實施例中,上述記錄比對結果的步驟, 為儲存比對結果為記錄構。 綜上所述’本發明為預先設定好多組規格代號及各個 規格代號所對應的規格資料。因此’在規格代號被選定之 後,便能自動地將相關的規格資料填入至規格書中。據此, 5 201007446 28781twf.doc/n 在使用上更具彈性。之後,便能夠自動比對更新後的規格 書與系統資料,並儲存比對後的比對結果。如此一來,不 僅加快驗證過程的速度’亦提高驗證的正確率。 為讓本發明之上述特徵和優點能更明顯易懂,下文特 舉較佳實施例’並配合所附圖式,作詳細說明如下。 【實施方式】 為了使本發明之内容更為明瞭,以下特舉實施例作為 ❹本發明確實能夠據以實施的範例。此領域具有通常知識者 可以電腦程式的形式實現下述諸實施例,並利用電腦可讀 取儲存媒體儲存此一電腦程式,以利電腦系統執行之,以 電子自動化的方式完成驗證資料的方法。為了方便說明, 下述實施例是以應用軟體做為實施方式。 圖1是依照本發明一實施例所繪示的驗證資料的方法 流程圖。請參照圖1,首先,在步驟S105中,應用軟體自 儲存單元擷取系統資料。在本實施例中,儲存單元例如為 記憶體,系統資料例如為SMBIOS資料。 鲁 以測試BIOS流程來說,電腦系統(也就是被測系统 (System Under Test,SUT))啟動之後,電腦系統首先 會去執行BIOS ’以藉由BIOS來擷取週邊設備的系統資料 (例如,中央處理器的速度、快取的大小等),而儲存至 儲存單元。也就是說,在BIOS完成POST之後,BIOS便 會將有關於電腦系統的系統資料寫入至記憶體中。 在進行驗證時,應用軟體便能夠自記憶體中讀出相關 的系統資料。在此,可在電腦系統進入磁碟作業系統(邙认 28781twf.doc/n 201007446201007446 UOUH7->* JL W 28781twf.doc/n IX. Description of the Invention: [Technical Field] The present invention relates to a test method for a computer system, and in particular to a method for verifying system data of a computer system . [Prior Art] Generally, when the computer system is turned on, the Basic Input Output System (BIOS) will be activated to start the Power On Self Test (POST). After completing POST ® , the BIOS will integrate the data about the computer system into a single form and write it to the memory. That is to say, the BIOS stores the captured data in the memory structure according to the specifications set by the system management basic system (SMBIOS). When the computer system is in the test phase, the tester needs to read the SMBIOS data to determine whether the data acquired by BI0S is correct, so as to test whether the BIOS code is incorrect. However, in the traditional case of verifying that the data of SMBI0S is correct, it can only be compared manually by manual means. This is not only a waste of manpower but also a waste of time. SUMMARY OF THE INVENTION The present invention provides a method for verifying data, which can be based on different requirements to produce different specifications, and the verification operation is automatically performed by the specification. In view of this, the present invention provides a method for verifying data, which is suitable for verifying multiple system data of a computer system. First, the self-storage unit operates the system 201007446, /28781twf.doc/n. Then, depending on the user's choice, choose one of several specification codes. Each of these specification codes has corresponding specifications. After that, update the specifications to the specification. Finally, compare these system data with the specification' to obtain the comparison results and record the comparison results. In an embodiment of the invention, the method of verifying data further comprises establishing a database. The specification code and the specification data and specifications corresponding to each specification code are included in the database. In one embodiment of the present invention, the step of updating the specification may include a set of specification data corresponding to the specification code in a field corresponding to the specification according to the selected specification code. In an embodiment of the present invention, the system data may be retrieved by the BIOS and stored in the storage unit before the step of extracting system data from the storage unit. In one embodiment of the present invention, the step of "capturing the system data from the storage unit" may be performed when the computer system enters the Disk Operating System (DOS). In an embodiment of the present invention, before the step of selecting one of the specification codes according to the user's selection, the user interface may display a list to present the specification codes for use. Choose. In an embodiment of the present invention, the step of recording the comparison result is to store the comparison result as a record structure. In summary, the present invention has a plurality of sets of specification codes and specifications corresponding to each specification code. Therefore, after the specification code is selected, the relevant specification data can be automatically filled in the specification. Accordingly, 5 201007446 28781twf.doc/n is more flexible in use. After that, the updated specifications and system data can be automatically compared and the comparison results can be stored. As a result, not only does the speed of the verification process speed up, it also increases the accuracy of verification. The above described features and advantages of the present invention will become more apparent from the following description. [Embodiment] In order to clarify the content of the present invention, the following specific examples are given as examples in which the present invention can be implemented. Those skilled in the art can implement the following embodiments in the form of a computer program, and use a computer readable storage medium to store the computer program for the computer system to perform the method of verifying the data in an electronically automated manner. For convenience of explanation, the following embodiments are based on application software. FIG. 1 is a flow chart of a method for verifying data according to an embodiment of the invention. Referring to FIG. 1, first, in step S105, the application software retrieves system data from the storage unit. In this embodiment, the storage unit is, for example, a memory, and the system data is, for example, SMBIOS data. In order to test the BIOS process, after the computer system (that is, the System Under Test (SUT)) is started, the computer system will first execute the BIOS 'to retrieve the system data of the peripheral devices through the BIOS (for example, The speed of the CPU, the size of the cache, etc.) are stored to the storage unit. That is, after the BIOS completes the POST, the BIOS writes system data about the computer system to the memory. When validating, the application software can read relevant system data from the memory. Here, you can enter the disk operating system in the computer system (邙 28781twf.doc/n 201007446

Operating System,DOS)時,便藉由BIOS從儲存單元掏 取系統資料。這是因為,在DOS環境下,記憶體當中的系 統資料是由BIOS擷取而儲存之。據此,透過驗證Bl〇s 所擷取的系統資料,便能夠測試BIOS的程式碼是否有誤。 接著’在步驟S110中’應用軟體依據使用者的選擇, 自多個規格代號中擇一。其中,這些規格代號各自具有對 應的規格資料。由於規格資料會隨著硬體型號的不^而有 所不同,因此,在比對系統資料跟規格書之前,先對規格 書中的會變動的規格資料來進行設定。 舉例來說,可預先建立一個資料庫來記錄上述規格代 號、各個規格代號所對應的規格資料以及一份規格書。可 將規格書的攔位分為固定攔位與變動攔位。固定欄位用以 記錄不會變動的規格資料,而變動攔位則用來記錄會隨著 硬體設備的不同而變動的規格資料。之後,再藉由使用者 介面來顯示一清單,藉以呈現出這些規格代號供使用者進 行選擇。 _ 以中央處理器(CPU)而言,不同廠商所生產的CPU, 其規格資料亦不相同。因此,在資料庫中先建立好各種 fPU的規格資料,並依據各個CPU的型號將一個規格代 號賦予給其對應的一組規格資料。也就是建立規格代號與 其對應的規格資料的關聯性。之後,使用者便可在清單中, 透過選擇符合需求的規格代號,來獲得對應的規格資料。 在選擇元規格代號之後,在步驟SU5中,應用軟體 將規格資料更新至規格書中。例如’應用軟體依據與所選 201007446, 28781twf.doc/n 擇的規格代號,將此規格代號對應的規格資料填入至規格 書對應的欄位中。 舉例來說,分散式管理任務編組(Distributed Management Task Force,DMTF)所訂定的 SMBIOS 的規 格書中定義了多組的類型(Type)。例如,Type 0記錄 BIOS的規格資料’ Type 4記錄CPU的規格資料等。In the case of Operating System (DOS), the system data is retrieved from the storage unit by the BIOS. This is because, in the DOS environment, the system data in the memory is stored by the BIOS. Accordingly, by verifying the system data captured by Bl〇s, it is possible to test whether the BIOS code is incorrect. Then, in the step S110, the application software selects one of the plurality of specification codes according to the user's selection. Among them, these specification codes have corresponding specifications. Since the specification data will vary depending on the hardware model, set the specifications of the specifications in the specification before comparing the system data with the specifications. For example, a database can be created in advance to record the specification code, the specification data corresponding to each specification code, and a specification. The block of the specification can be divided into fixed and change blocks. Fixed fields are used to record specifications that do not change, while change blocks are used to record specifications that vary from hardware to device. Then, a list is displayed through the user interface to present these specification codes for the user to select. _ In terms of the central processing unit (CPU), the specifications of the CPUs produced by different manufacturers are also different. Therefore, the specifications of various fPUs are first established in the database, and a specification code is assigned to its corresponding set of specifications according to the model of each CPU. That is, the association between the specification code and its corresponding specification data is established. After that, the user can obtain the corresponding specification data by selecting the specification code that meets the requirements in the list. After selecting the meta-specification code, in step SU5, the application software updates the specification data to the specification. For example, the application software is based on the specification code selected by 201007446, 28781twf.doc/n, and the specification data corresponding to the specification code is filled in the corresponding field of the specification. For example, the SMBIOS specification defined by the Distributed Management Task Force (DMTF) defines multiple types of types. For example, Type 0 records the BIOS specification data 'Type 4 records the CPU specifications and so on.

以修改CPU的規格資料為例’假設使用者介面所顯示 的清單中’CPU包括“01”〜“〇5”五組規格代號。當使用者選 擇了規格代號“01”時,應用軟體便可依據規格代號“01 ”, 去資料庫中取出規格代號“01”下所有相關的規格資料(也 就是規格代號“01”的CPU資料)。之後,應用軟體再將此 規格代號底下所對應的規格資料填入至規格書中Type4 的各個欄位中。Taking the specification data of the CPU as an example, it is assumed that the CPU in the list displayed by the user interface includes five sets of specification codes of "01" to "〇5". When the user selects the specification code “01”, the application software can take out the relevant specification data (that is, the CPU data of the specification code “01” according to the specification code “01” according to the specification code “01”. ). After that, the application software fills in the specification data corresponding to the specification code into the fields of Type4 in the specification.

接著,在步驟S120中,應用軟體開始比對這些系統 資料與規格書,而獲得比對結果。最後,如步驟$125所 示,應用軟體將比對結果記錄下來。也就是將比對結果儲 存為記錄檔。例如,將錯誤的比對結果儲存為一個記錄檔, 而將正確的比對結果儲存為另一個記錄檔。另外,亦可將 錯誤與正確的比對結果合併在同一個記錄檔中。可視使用 者情況來蚊,在此料關。據此,制者便能夠檢視 圮錄檔來查詢SMBIOS的系統資料是否有誤。 另外,更可設定在驗證過程結果之後,僅將錯誤的比 對結果的記錄職出,以供制者快速得知錯誤之處來修 改BIOS的程式碼。 201007446 ▽·χ” 28781twf.doc/n 綜上所述’在上述實施例中’預先在資料庫中設定一 個規格代號給不同型號的硬體,並將各個硬體相關的規格 資料與其對應的規格代號設定好關聯性。據此,便可依據 不同的需求而制定出不同的規格書,在使用上更具彈性。 之後’再藉由更新後的規格書來自動驗證系統資料。如此 一來,不僅加快驗證過程的速度,亦提高驗證的正確率。 雖然本發明已以較佳實施例揭露如上,然其並非用以 限定本發明,任何關麟領域巾具有通者 脫離本發明之精神和範_,當可作些許之更動與潤飾, 因此本發明之賴範圍當減社巾料職目所界定者 【圖式簡單說明】 資料的方法 圖1是依照本發明一實施例所繪示的驗證 流程圖。 【主要元件符號說明】Next, in step S120, the application software starts to compare the system data and the specification to obtain the comparison result. Finally, as shown in step $125, the application software records the results of the comparison. That is, the comparison result is stored as a log file. For example, storing the wrong comparison result as one log file and storing the correct comparison result as another log file. In addition, errors can be combined with the correct comparison results in the same log file. Mosquitoes can be used depending on the user's situation. According to this, the system can view the file to check whether the system information of SMBIOS is incorrect. In addition, after the result of the verification process, only the record of the wrong comparison result is issued, so that the controller can quickly learn the error to modify the BIOS code. 201007446 ▽·χ" 28781twf.doc/n In summary, 'in the above embodiment', a specification code is set in the database in advance to different types of hardware, and the specifications related to each hardware are specified. The code is set to be relevant. According to this, different specifications can be developed according to different needs, and it is more flexible in use. Then, the system data is automatically verified by the updated specification. Not only speeds up the verification process, but also improves the accuracy of the verification. Although the invention has been disclosed above in the preferred embodiments, it is not intended to limit the invention, and any Guanlin field towel has the spirit and scope of the invention. The method of the present invention is defined as a method for reducing the amount of information in the society. [Method of the Drawing] FIG. 1 is a verification flow according to an embodiment of the present invention. Fig. [Main component symbol description]

S105〜S125 :本發明一實施例的驗證資料的方法各步 9S105~S125: Steps 9 of the method for verifying data according to an embodiment of the present invention

Claims (1)

201007446 * ./ 2878ltwf.doc/π 十、申請專利範圍: 1·一種驗證資料的方法,適用於驗證一電腦系統的多 個系統資料,該方法包括: 自一儲存單元擷取該些系統資料; 依據一使用者的選擇,自多個規格代號中擇一,其中 該些規格代號各自具有對應的一規格資料; 更新該規格資料至一規格書中; 比對該些系統資料與該規格書’而獲得一比對結果; ®以及 記錄該比對結果。 2. 如申請專利範圍第1項所述之驗證資料的方法,更 包括: 建立一資料庫,該資料庫包括該些規格代號與該些規 格代號分別所對應的該規格資料。 3. 如申請專利範圍第2項所述之驗證資料的方法,其 中該規格書儲存於該資料庫中。 Φ 4.如申請專利範圍第1項所述之驗證資料的方法,其 中更新該規格書的步驟,包括: 依據所選擇的該規格代號,填入該規格代號對應的該 規格資料至該規格書對應的攔位中。 5.如申請專利範圍第1項所述之驗證資料的方法,其 中在自該儲存單元擷取該些系統資料的步驟之前,更包括: 藉由一基本輪入輸出系統擷取該些系統資料,並儲存 至該儲存單元。 2878 ltwf.doc/n 201007446 6. 如申請專利範圍第1項所述之驗證資料的方法,其 中自該儲存單元擷取該些系統資料的步驟,包括: 备邊電腦系統進入一磁碟作業系統時,自該儲存單元 擷取該些系統資料。 7. 如申請專利範圍第1項所述之驗證資料的方法,其 中在依據該使用者的選擇,自該些規格代號中擇一的步驟 之前,更包括: 藉由一使用者介面顯示一清單,該清單包括該些規格 代號。 8. 如申請專利範圍第1項所述之驗證資料的方法,其 中兄錄該比對結果的步驟,包括: 儲存該比對結果為一記錄檔。 ❹ 11201007446 * ./ 2878ltwf.doc/π X. Patent application scope: 1. A method for verifying data, which is suitable for verifying a plurality of system data of a computer system, the method comprising: extracting the system data from a storage unit; According to a user's choice, one of the plurality of specification codes is selected, wherein each of the specification codes has a corresponding specification data; updating the specification data to a specification book; comparing the system data with the specification book And get a comparison result; ® and record the comparison result. 2. The method for applying the verification information described in the first paragraph of the patent scope further includes: establishing a database including the specification code corresponding to the specification code and the specification data respectively. 3. A method of applying for verification data as described in item 2 of the patent scope, wherein the specification is stored in the database. Φ 4. The method for verifying the data as described in claim 1, wherein the step of updating the specification comprises: filling in the specification data corresponding to the specification code to the specification according to the selected specification code Corresponding in the block. 5. The method of claiming the verification data according to claim 1, wherein before the step of extracting the system data from the storage unit, the method further comprises: extracting the system data by using a basic wheel input and output system And save to the storage unit. 2878 ltwf.doc/n 201007446 6. The method of claiming the verification data described in claim 1, wherein the step of extracting the system data from the storage unit comprises: preparing the side computer system into a disk operating system The system data is retrieved from the storage unit. 7. The method of claiming the verification data according to claim 1, wherein before the step of selecting one of the specification codes according to the user's selection, the method further comprises: displaying a list by using a user interface The list includes the specification codes. 8. The method of applying the verification data described in claim 1 of the patent scope, wherein the step of comparing the results comprises: storing the comparison result as a log file. ❹ 11
TW97130876A 2008-08-13 2008-08-13 Method for verifying data TWI399641B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW97130876A TWI399641B (en) 2008-08-13 2008-08-13 Method for verifying data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW97130876A TWI399641B (en) 2008-08-13 2008-08-13 Method for verifying data

Publications (2)

Publication Number Publication Date
TW201007446A true TW201007446A (en) 2010-02-16
TWI399641B TWI399641B (en) 2013-06-21

Family

ID=44827056

Family Applications (1)

Application Number Title Priority Date Filing Date
TW97130876A TWI399641B (en) 2008-08-13 2008-08-13 Method for verifying data

Country Status (1)

Country Link
TW (1) TWI399641B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI804301B (en) * 2022-05-05 2023-06-01 仁寶電腦工業股份有限公司 Verification system of basic input output system and verification method thereof

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI221255B (en) * 2003-05-09 2004-09-21 Via Tech Inc Device information management system of application device and method thereof
TWI259369B (en) * 2004-12-28 2006-08-01 Inventec Corp Method for updating system management basic input/output system data
TWI296778B (en) * 2006-01-26 2008-05-11 Asustek Comp Inc Method and system for maintaining smbios

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI804301B (en) * 2022-05-05 2023-06-01 仁寶電腦工業股份有限公司 Verification system of basic input output system and verification method thereof
US12045148B2 (en) 2022-05-05 2024-07-23 Compal Electronics, Inc. Verification system of basic input output system and verification method thereof

Also Published As

Publication number Publication date
TWI399641B (en) 2013-06-21

Similar Documents

Publication Publication Date Title
US7103641B2 (en) Method and apparatus for distributing computer platform firmware across a network
JP2014526735A5 (en)
TW201243722A (en) Booting method and computer system
JP2004246897A5 (en)
KR100746032B1 (en) A storage medium managing a master boot record and a booting method of a computer system using the storage medium
TW201009706A (en) Update method for basic input/output system and update system thereof
CN107766240A (en) UEFI Shell internal command automatic running detection methods and system
CN102455961A (en) System and method for managing and controlling mainboard testing process
CN113821369A (en) Method, device and medium for memory polling
CN111581219A (en) Monitoring data acquisition method and device
TWI342518B (en) Adjusting method for set-up default value of bios and mainboard using the same method
JP2012526322A5 (en)
TW201028845A (en) RAID testing method and testing system
TW201007446A (en) Method for verifying data
CN106021043A (en) Method and device for acquiring configuration information of server
CN110750434A (en) Interface testing method, apparatus, electronic device, and computer-readable storage medium
Zhang et al. Combinatorial testing on id3v2 tags of mp3 files
JP2005196779A5 (en)
US8892956B2 (en) Electronic device and method for managing test results
US20050071125A1 (en) Method for performing testing of a simulated storage device within a testing simulation environment
TWI231451B (en) Program testing system and method
CN110427528A (en) SSD identifier test method, device, computer equipment and storage medium
CN112433738B (en) Firmware update test method, system, equipment and medium
CN110389777A (en) A kind of edition upgrading verification method, system and the relevant apparatus of BIOS node
CN101655810A (en) Method for verifying data

Legal Events

Date Code Title Description
MM4A Annulment or lapse of patent due to non-payment of fees