550452 A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明說明(1 ) 【發明領域】 本發明係有關於一種系統開機自我檢查裝置以及方 法,更詳而言之,係用以供一電腦系統判斷與其連接的各 周邊設備之連接狀況,以供該電腦系統作為下次開機時執 行一般或精簡POST工作之參考,藉此提升p〇STi作的處 理速度的系統開機自我檢查裝置以及方法。 【發明背景】 為提升電腦運算速度,微處理器製造商亦不斷地研發 出新的產品’但是,儘管目前的微處理器已達到GHz的運 作時脈’然而’在電腦系統開機中的系統自我測試工作 (Power-On Self Test ;以下簡稱為POST)過程卻佔用了不 少的處理時間,因此,各BIOS公司不得不設計出較精簡的 基本輸出輸入系統(Basic Input/Output System ;以下簡稱 為BIOS)程式。 當使用者開啟桌上型或筆記型個人電臑使用時,即執 行儲存在例如唯讀記憶體(ROM)内的一 BIOS程式碼,藉 此進行POST工作以檢查(test)出電腦系統所提供的介面 是否與周邊設備安裝妥當。當POST成功地完成系統檢查 時,將會繼續執行開機後的程序;反之,若POST檢查出有 錯誤發生時,則會依照BIOS的偵測設計而在螢幕上顯示錯 誤訊息。 由於輸入/輸出周邊設備(以下簡稱為I/O設備)的測 試工作便是POST過程中最為耗時的處理,即便是精簡了 BIOS程式,對於POST的處理速度亦無法有效提升。其中, --------------^ — f請先閱讀背面之注意事項再填寫本頁) lr· -線- 本紙張尺度適用中國國家標準(CNS)A4規格(210x297公爱) 16527 550452 A7550452 A7 B7 Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 5. Description of the Invention (1) [Field of the Invention] The present invention relates to a system self-checking device and method for booting the system, and more specifically, it is used for a computer The system judges the connection status of the peripheral devices connected to it, and uses the computer system as a reference for performing general or streamlined POST tasks at the next boot, thereby improving the system startup self-checking device and method for processing speed of POSTi. [Background of the Invention] In order to increase the computing speed of computers, microprocessor manufacturers have also continuously developed new products. 'However, although the current microprocessor has reached the operating clock of the GHz,' however 'the system self in the computer system startup The test (Power-On Self Test; hereinafter referred to as POST) process takes a lot of processing time, so each BIOS company has to design a more streamlined Basic Input / Output System (hereinafter referred to as BIOS) program. When the user turns on the desktop or notebook personal computer for use, a BIOS code stored in, for example, a read-only memory (ROM) is executed to perform a POST job to test the computer system. Whether the interface is properly installed with peripheral equipment. When POST successfully completes the system check, it will continue to execute the process after booting up. On the contrary, if POST detects an error, it will display an error message on the screen according to the detection design of the BIOS. Since the testing of input / output peripherals (hereinafter referred to as I / O devices) is the most time-consuming process during POST, even if the BIOS program is simplified, the processing speed for POST cannot be effectively improved. Among them, -------------- ^ — f Please read the notes on the back before filling this page) lr · -line-This paper size is applicable to China National Standard (CNS) A4 (210x297) Public Love) 16527 550452 A7
經濟部智慧財產局員工消費合作社印製 五、發明說明(2 ) 最常見的POST項目為主記憶體、鍵盤及磁碟機,然而以筆 記型電腦而言,一般的情況下該筆記型電腦之主記憶體、 鍵盤及磁碟機並不會時常變動,如此,若能不對未變動的 I/O設備進行檢查工作,勢必可縮減p〇ST工作的處理時 間。 因此’電腦系統開機後,如何縮減p〇ST工作的處理時 間,以提升電腦系統的運作效率,即是目前需要解決的問 題。 【發明目的及概述】 鑒於以上所述習知技術之缺點,本發明之主要目的在 於提供一種系統開機自我檢查裝置以及方法,適用於一電 腦系統’用以讓該電腦系統在每次開機時不需進行相同檢 查程序的POST工作,以縮減POST工作的處理時間。 本發明之另一目的在於提供一種系統開機自我檢查 裝置以及方法,適用於一電膘系統,用以讓電腦系統在運 作中即可測試各I/O設備的連接狀態,藉此當下次系統開機 時即可作為POST工作時的判斷依據,以由電腦系統決定是 否可進行精簡的POST工作。 根據以上所述的目的,本發明提供了一種系統開機自 我檢查裝置以及方法。該系統開機自我檢查方法,其可適 用於一電腦系統,用以判斷各I/O設備與該電腦系統的連接 狀況,以供電腦系統進行精簡的POST工作,該系統開機自 我檢查方法包括以下步騍··( 1 )執行一 I/O設備狀態偵測程 序,係依序偵測該電腦系統用以連接各I/O設備的複數個傳 7 7---·--------tr---------^ (請先閱讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS)A4規格(210χ 297公爱〉 2 16527 550452 A7 B7 五、發明說明(3 ) 輸介面之連接狀態,並根據該複數個傳輸介面所傳來的連 接結果建立一筆I/O設備狀態值,該1/0設備狀態值中包括 一更動旗標值,且將其儲存於一記憶體單元中,其中,當 電滕系統偵測到一傳輸介面所傳來的連接結果與前一次所 儲存的I/O設備狀態值不同時,即將筆該1/0設備狀態值中 的更動旗標設為1,並以該偵測到的連接結果來更辦該1/0 設備狀態值;(2 )若電臞系統開機時,則執行一 1/0設僙狀 態值讀取程序,用以將儲存於該記憶體單元中的1/0設備狀 態值讀取出來;(3 )若當讀取到的I/O設備狀態值之更動旗 標值為1時,則執行原始BIOS程序以進行POST工作,並將 執行後所產生的結果建立一筆POST結果,且將其儲存於記 憶體單元中;以及(4)若當讀取到的更動旗標值為〇時, 即自該記憶體單元中讀取前次所儲存的p〇ST結果並執行 精簡BIOS程序以進行POST工作。 本發明之系統開機自我檢查裝置,其可適用於一電滕 系統,該電腦系統具有複數個用以將I/O設備連接之傳輸介 面模組,該系統開機自我檢查裝置包括:一控制器;一選 擇電路’其有複數個輸入選擇端、複數個輸入狀態端以及 一輸出訊息端,該些輸入選擇端以及該輸出訊息端係與控 制器連接,而該些輸入狀態端分別連接至一傳輸介面模 組’當一 I/O設備與電腦系統連接時,使連接有該1/0設備 的傳輸介面模組產生一連接信號至該選擇電路的輸入狀態 端;以及一記憶體單元,其係與該控制器連接,用以儲存 供該控制器執行運作時所需讀取而包含有一原始BIOS程 •裝 (請先閱讀背面之注意事項再填寫本頁) .- .線 經濟部智慧財產局員工消費合作社印製 本紙張尺度適用中國國家標準(CNS)A4規格(210x297公芨) 3 16527 A7 550452 B7____ 五、發明說明(4 ) 式、一I/O設備狀態偵測程式、一I/O設備狀態值讀取程式 及一精簡BIOS程式的相關程式部分以及包含一 I/O設備狀 態值及一 POST結果的相關資料部分,其中,當電腦系統運 作的過程令,即由控制器讀取並執行一 I/O設備狀態偵測程 式,以由該控制器依序傳出不同的偵測信號至該選擇電路 中的輸入選擇端,使該選擇電路依序接收與該偵測信號相 對應之輸入狀態端所接收到的連接信號,並經由該輸出訊 息端依序將接收到的連接信號傳給控制器,而由控制器將 接收到的連接信號依序儲存於該記憶體單元中以建立一筆 I/O設備狀態值,且當該控制器接收到由輸出訊息端所傳來 的連接信號時’並與先前已健存於記憶體單元中的I/O設備 狀態值進行比對,若不同時,即將I/O設備狀態值中所含的 更動旗標值設為1;且在該電滕開機時,即由該控制器讀取 並執行一 I/O設備狀態值讀取程式,.以自記憶體單元中取出 I/O設備狀態值’若當讀取到的更動-旗標值為1時,即執行 原始BIOS程式,並將執行後所取得的I/O設備資料儲存於 記憶體早疋中’以建立^一筆最新的POST結果,否則若當讀 取到的更動旗標值為0時,則自記憶體單元中讀取先前所错 存的I/O設備資料,以執行精簡BIOS程式。 【圖示之簡單說明】 為讓本發明之上述和其它目的、特徵以及優點能更明 顯易懂,將與較佳實施例,並配合所附圖式,詳細說明本 發明之實施例,所附圖式之内容簡述如下: 第1圖為一方塊圖,其中顯示應用本發明之系統開機 本紙張尺度適用令國國家標準(CNS)A4規格(210 X 297公---- 4 16527 ------:----7---Aw--------訂---------線 (請先閱讀背面之沒意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 550452 經 濟 部 智 慧 財 產 局 員 X 消 费 合 作 社 印 製 A7 B7 五、發明說明(5 , 自我檢查裝置基本架構之方塊模組圖; 第2圖為表示第1圖之系統開機自我檢查裝置的$_ 流程圖,其中顯示應用本發明之系統開機自我檢查裝 夏 對電腦系統之各I/O設備進行偵測的處理流程;以及 第3圖為表示第1圖之系統開機自我檢查裝置的運作 流程圖,其中顯示應用本發明之系統開機自我檢查裝置以 供電腦系統進行POST工作的處理流程。 【較佳實施例詳細說明】 請參閱第1圖,其中顯示本發明之系統開機自我檢杳 裝置10基本架構之方塊模組圖。如圖中所示,該系統開機 自我檢查裝置10係建構於一電腦系統1内,而該電膘系統1 例如為一筆記型電腦或桌上型電腦…等等,該電腦系統J 亦具有複數個用以與各周邊設備2連接的傳輸介面11,藉由 該些傳輸介面11使電腦系統1得與各周邊設備2產生互動, 而該傳輸介面11包括例如一 IDE介面模組110、一 USB埠模 組111、一並列埠模組112、一 SCSI介面模組113、一串列埠 模組114、一 PS/2埠模組115···等等,由於此些傳輸介面u 為一般習於電滕技術者所熟知之介面,因此以下將不對其 詳細内容作進一步說明,此外,須注意的是,該電腦系統1 另亦包括其它之功能模組,為簡化圖式及說明,此處之基 本架構僅顯示與本發明有關之構件。本發明之該系統開機 自我檢查裝置10包括一控制器14、一 8對一多工器12及一記 憶體單元13。 該控制器14,用以執行記憶體單元13中各程式,其例 本紙張尺度適用中國國家標準(CNS>A4規格(210x 297公爱) 16527 «I --------訂·--------線 ί靖先閱磧背面之迖音?事項再填窵本頁> 550452Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs V. Invention Description (2) The most common POST items are main memory, keyboard, and disk drive. However, in the case of notebook computers, The main memory, keyboard, and disk drive do not change from time to time. In this way, if the I / O equipment that does not change is not checked, the processing time of p0ST work is bound to be reduced. Therefore, after the computer system is turned on, how to reduce the processing time of POST to improve the operating efficiency of the computer system is a problem that needs to be solved at present. [Objective and Summary of the Invention] In view of the shortcomings of the conventional technology described above, the main object of the present invention is to provide a system startup self-checking device and method, which is suitable for a computer system 'to make the computer system not The same inspection procedure is required to reduce the processing time of the POST job. Another object of the present invention is to provide a self-checking device and method for system startup, which is suitable for an electronic system to allow a computer system to test the connection status of each I / O device during operation, thereby enabling the next system startup It can be used as a basis for judgment during POST work, so that the computer system can decide whether to perform a streamlined POST work. According to the above-mentioned object, the present invention provides a system startup self-checking device and method. The system power-on self-check method can be applied to a computer system to determine the connection status of each I / O device and the computer system for the computer system to perform streamlined POST work. The system power-on self-check method includes the following steps骒 · (1) Execute an I / O device status detection program, which sequentially detects the multiple transmissions of the computer system used to connect to each I / O device. 7 7 --- · ------- -tr --------- ^ (Please read the precautions on the back before filling this page) This paper size applies to China National Standard (CNS) A4 (210χ 297 Public Love) 2 16527 550452 A7 B7 V. Description of the invention (3) The connection status of the input interface is established, and an I / O device status value is established based on the connection results transmitted from the plurality of transmission interfaces. The 1/0 device status value includes a change flag value, and It is stored in a memory unit. When the electrical system detects that the connection result from a transmission interface is different from the previously stored I / O device status value, it will immediately write the 1/0 device status. The change flag in the value is set to 1, and the 1/0 is changed based on the detected connection result. Device status value; (2) If the electronic system is turned on, execute a 1/0 setting status value reading program to read out the 1/0 device status value stored in the memory unit; ( 3) If the read flag value of the read I / O device status value is 1, the original BIOS program is executed to perform the POST job, and a result of the post-execution result is created as a POST result and stored. In the memory unit; and (4) if the read modification flag value is 0, the previously stored p0ST result is read from the memory unit and a streamlined BIOS program is executed for POST The system boot-up self-checking device of the present invention is applicable to an electrical system. The computer system has a plurality of transmission interface modules for connecting I / O devices. The system boot-up self-checking device includes: a control A selection circuit 'has a plurality of input selection terminals, a plurality of input status terminals, and an output message terminal. The input selection terminals and the output message terminals are connected to the controller, and the input status terminals are respectively connected to One transmission Surface module 'when an I / O device is connected to the computer system, the transmission interface module connected to the 1/0 device generates a connection signal to the input status terminal of the selection circuit; and a memory unit, which is It is connected to the controller and used to store the data needed for the controller to perform operations. It contains an original BIOS program (please read the precautions on the back before filling this page). The paper size printed by the employee consumer cooperative is applicable to the Chinese National Standard (CNS) A4 (210x297 cm) 3 16527 A7 550452 B7____ 5. Description of the invention (4) type, an I / O device status detection program, an I / O The device status value reading program and a related program part of a simplified BIOS program and the related data part including an I / O device status value and a POST result. Among them, when the computer system operates, the controller reads and An I / O device status detection program is executed to sequentially send different detection signals from the controller to the input selection terminal of the selection circuit, so that the selection circuit sequentially receives the detection signals. The connection signal received by the input status terminal transmits the received connection signal to the controller in sequence through the output message terminal, and the controller sequentially stores the received connection signal in the memory unit to Establish an I / O device status value, and when the controller receives the connection signal from the output message terminal, and compare it with the I / O device status value that has been previously stored in the memory unit, If it is not the same, the change flag value contained in the I / O device status value is set to 1; and when the power switch is turned on, the controller reads and executes an I / O device status value reading program .. Take the I / O device status value from the memory unit 'If the read change-flag value is 1, the original BIOS program is executed, and the I / O device data obtained after execution is stored In the memory early to create a newest POST result; otherwise, if the read modification flag value is 0, the previously misstored I / O device data is read from the memory unit, To run a streamlined BIOS program. [Brief description of the illustrations] In order to make the above and other objects, features, and advantages of the present invention more comprehensible, the preferred embodiments will be described in detail with the accompanying drawings to explain the embodiments of the present invention in detail. The content of the diagram is briefly described as follows: Figure 1 is a block diagram showing the system using the present invention. The paper size is applicable to the national standard (CNS) A4 specification (210 X 297) ---- 4 16527- ---- : ---- 7 --- Aw -------- Order --------- line (please read the unintentional matter on the back before filling in this page) Ministry of Economy Wisdom Printed by the Consumer Cooperative of the Property Bureau 550452 Printed by the Intellectual Property Bureau of the Ministry of Economy X Printed by the Consumer Cooperative A7 B7 V. Description of the invention (5, Block diagram of the basic structure of the self-checking device; $ _ Flow chart of the inspection device, which shows the processing flow of the system startup self-check by applying the present invention to detect each I / O device of the computer system; and FIG. 3 is the system startup self-check of FIG. 1 Flow chart of operation of the device, showing the system to which the present invention is applied The processing flow of the self-checking device for starting up for the computer system to perform POST work. [Detailed description of the preferred embodiment] Please refer to FIG. 1, which shows a block module diagram of the basic structure of the self-checking device 10 for starting up the system according to the present invention. As shown in the figure, the system self-inspection device 10 is built in a computer system 1, and the electronic system 1 is, for example, a notebook computer or a desktop computer ... etc. The computer system J also has a plurality of A transmission interface 11 for connecting with each peripheral device 2. The transmission interface 11 enables the computer system 1 to interact with each peripheral device 2. The transmission interface 11 includes, for example, an IDE interface module 110 and a USB port. Module 111, a parallel port module 112, a SCSI interface module 113, a serial port module 114, a PS / 2 port module 115 ... etc., because these transmission interfaces u are generally used in The interface familiar to those skilled in the art of electrical engineering, so its detailed content will not be further described below. In addition, it should be noted that the computer system 1 also includes other functional modules. In order to simplify the diagram and description, Base The architecture only shows the components related to the present invention. The system self-checking device 10 of the system according to the present invention includes a controller 14, an 8-to-multiplexer 12 and a memory unit 13. The controller 14 is used to execute memory Each program in the body unit 13, its example This paper size applies to the Chinese national standard (CNS > A4 size (210x 297 public love) 16527 «I -------- Order · -------- line ί Jing Jing read the sound on the back? Matters need to fill out this page> 550452
如鍵盤控制器(Keyboard Controller ; KBC ),用以提供 電腦系統1對其所外接的周邊設備2進行控制,由於該控制 器14為一般熟知之資料處理元件,因此以下將不對功能及 内部架構作進一步詳細之說明。 五、發明說明(6 經 濟 部 智 慧 財 產 局 消 費 合 作 社 印 製 該8對一多工器12,其具有3個輸入選擇端(s〇、si、 S2)、8個輸入狀態端端(1〇、η.....17)以及1個輪出訊 息端01,該些輸入選擇端(S〇、si、S2)以及該輪出訊息 端οι係與該控制器14連接,而該些輸入狀態端(10、^..... Π)分別與一傳輸介面U對應連接,因此當一周邊設備2 與電腦系統1連接時,使連接有該周邊設備2的傳輪介面η 產生一連接信號至該8對1多工器12中且與該傳輸介面^對 接的輸入狀態端(亦即10、II.....Π任一個)。若當與該 控制器14連接的輸入選擇端(s〇、S1、S2)接收到由該控 制器14所傳來的選擇偵測信號時,使該8對i多工器12即根 據該輸入選擇端(SO、S卜S2)所接收到的選擇偵測信號,而僅將8個輸入狀態端端(1〇、Π.....17)其中之一所接 收到的連接信號經由該輸出訊息端〇 1傳入控制器14中,使 控制器14根據該連接信號產生相對應的處理程序(請容後 說明)。 該記憶體單元13可為任何該控制器14得直接存取及 執行程式之記憶體,例如包含唯讀記憶體(Read Only Memory,ROM)、隨機存取記憶體(Random Access Memory,RAM)或電子式可抹除程式化唯讀記憶體 (Electrically Erasable Programmable Read-Only 本紙張尺度適用尹國國家標準(CNS)A4規格(210x 297公爱) 6 16527 (請先閱讀背面之注意事項再填寫本頁) —Aw --------訂·--------線 550452 A7 • B7 五、發明說明(7 )For example, a keyboard controller (KBC) is used to provide the computer system 1 to control the peripheral devices 2 to which it is connected. Since the controller 14 is a generally known data processing component, the functions and internal structure will not be described below. Further details. V. Description of the invention (6 The 8-to-1 multiplexer 12 is printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs, which has 3 input selection terminals (s0, si, S2), 8 input status terminals (10, η ..... 17) and a round-out message terminal 01, the input selection terminals (S0, si, S2) and the round-out message terminal are connected to the controller 14, and the input states The terminals (10, ^ .....) are respectively connected to a transmission interface U, so when a peripheral device 2 is connected to the computer system 1, the transmission interface η to which the peripheral device 2 is connected generates a connection signal. To the input state terminal of the 8-to-1 multiplexer 12 and docking with the transmission interface ^ (that is, any of 10, II,... Π). If the input selection terminal connected to the controller 14 ( s0, S1, S2) when receiving the selection detection signal transmitted from the controller 14, the 8-pair i multiplexer 12 is based on the input received by the input selection terminal (SO, S2, S2). Select the detection signal, and only connect the connection signal received by one of the eight input status terminals (10, Π ......... 17) to the control via the output message terminal 〇1 The controller 14 causes the controller 14 to generate a corresponding processing program (please explain later) according to the connection signal. The memory unit 13 can be any memory that the controller 14 can directly access and execute programs, for example, it contains Read Only Memory (ROM), Random Access Memory (RAM) or Electronically Erasable Programmable Read-Only Standard (CNS) A4 specifications (210x 297 public love) 6 16527 (Please read the precautions on the back before filling out this page) —Aw -------- Order · -------- Line 550452 A7 • B7 V. Description of Invention (7)
Memory ; EEPROM ),係用以儲存該系統開機自我檢查裝 置10在運作上所須之各個程式及資料,以提供該電腦系統! 在開機後所需進行的POST工作以及該電腦系統1在運作中 對各周邊設備所需進行的偵測工作,其儲存包括有一原始 BIOS程式130、一I/O設備狀態偵測程式131、一 I/O設備狀 態值讀取程式132及一精簡BIOS程式133的相關程式部分 以及包括有一 I/O設備狀態值134及一 POST結果135的相關 資料部分。 該原始BIOS程式130係提供該電腦系統1在第一次供 電開機或該電腦系統1之傳輸介面11的連接狀態產生更動 (即插拔周邊裝置)時,即由控制器14讀取並執行該原始 BIOS程式130,亦指一般電腦系統所進行的完整POST工 作,並將完成POST工作後所得的結果儲存於該記憶體單元 13中,以建立一筆的POST結果135。由於該原始BIOS程式 130為一般電腦系統於開機時所需執行的必要程式,亦為習 於電腦技術者所熟知之系統,因此以下將不對其功能及内 容架構作進一步詳細之說明。 ’該I/O設備狀態偵測程式13卜該I/O設備狀態值讀取程 式132、該精簡BIOS程式133及該I/O設備狀態值134即根據 本發明之系統開機自我檢查裝置以及方法所撰寫而成的程 式,其用以依序偵測電腦系統1之傳輸介面11的連接狀態, 並將偵測到的狀態結果儲存於該記憶體單元13中,以供控 制器14作為電腾系統1開機時是否執行精簡BIOS程式的參 考依據,其中之詳細流程揭露於第2、3圖中。 本紙張尺度適用中國國家標準(CNS)A4規格(210 X 297公« ) -------1--I---48^ --- (請先閱讀背面之注意事項再填寫本頁) · .線 經濟部智慧財產局員工消費合作社印製 16527 550452Memory; EEPROM), which is used to store the programs and data required for the system to start up and run the self-checking device 10 to provide the computer system! The POST work required after booting, and the detection work required by the computer system 1 for various peripheral devices during operation, the storage includes an original BIOS program 130, an I / O device status detection program 131, a The relevant program parts of the I / O device status value reading program 132 and a simplified BIOS program 133 and the relevant data parts including an I / O device status value 134 and a POST result 135. The original BIOS program 130 is provided by the controller 14 to read and execute the computer system 1 when the computer system 1 is powered on for the first time or when the connection status of the transmission interface 11 of the computer system 1 is changed (that is, the peripheral device is plugged in). The original BIOS program 130 also refers to a complete POST job performed by a general computer system, and the result obtained after completing the POST job is stored in the memory unit 13 to establish a batch of POST results 135. Since the original BIOS program 130 is a necessary program to be executed by a general computer system when it is turned on, and is a system familiar to computer technicians, its functions and content structure will not be described in further detail below. 'The I / O device status detection program 13 includes the I / O device status value reading program 132, the reduced BIOS program 133, and the I / O device status value 134, which are the system startup self-checking device and method according to the present invention. The written program is used to sequentially detect the connection status of the transmission interface 11 of the computer system 1 and store the detected status result in the memory unit 13 for the controller 14 to act as an electric The reference basis of whether to execute the simplified BIOS program when the system 1 is turned on is described in detail in Figures 2 and 3. This paper size applies to China National Standard (CNS) A4 specification (210 X 297 male «) ------- 1--I --- 48 ^ --- (Please read the precautions on the back before filling this page ) Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economic Affairs 16527 550452
五、發明說明(8 ) (請先閱讀背面之注意事項再填寫本頁) 該I/O設備狀態值134,其資料結構係例如儲存於一特 殊暫存器(未圖示)内所儲存的資料結構,用以供控制器 14執行該I/O設備狀態偵測程式13丨及該1/〇設備狀態值讀 取程式132時所需進行的資料讀取及資料儲存之處理程 序。以下將根據第1圖所示之傳輸介面丨丨以舉例說明該1/〇 設備狀態值134内所儲存的資料結構以及其所代表的訊 息,如下所示: A7 A6 A5 A4 A3 A2 A1 A0 AO:用以儲存一周邊設備更動旗標值。(當電腦系統 1中的任一個傳輸介面接收到一周邊設備之插拔動作時, 即將A0設為”1”;反之,設為 A1 :用以儲存該IDE介面模組110之狀態值。(當該IDE 介面模組110插拔一周邊設備時,即將A1設為”1”,反之設 為 ”0”) 經濟部智慧財產局員工消費合作社印製 A2 ··用以儲存該USB埠模組111之狀態值。(當該USB 槔模組111插拔一周邊設備時,即將A2設為”1”,反之設 為 ”0”) A3 :用以儲存該並列埠模組112之狀態值。(當該並列 埠模組112插拔一周邊設備時,即將A3設為”1”,反之設 為 ”0”) A4 :用以儲存該SCSI介面模組113之狀態值。(當該 SCSI介面模組113插拔一周邊設備時,即將A4設為”1”,反 本紙張尺度適用t國國家標準(CNS)A4規格(210 X 297公S ) " 經濟部智慧財產局員工消費合作社印製 550452 - A7 __B7 五、發明說明(9 ) 之設為”0”) A5 :用以儲存該串列埠模組114之狀態值。(當該串列 埠模组114插拔一周邊設備時,即將A5設為,,1,,,反之設 為 ”0”) A6 :用以儲存該PS/2埠模組115之狀態值。(當該PS/2 槔模組115插拔一周邊設備時,即將A6設為”1”,反之設 為 ”0”) A7 :為預設值。 因此,該I/O設備狀態值134係根據周邊設備2的插拔動 作而有所改變,而此些位元(AO、A1.....A7 )所代表 的參數值(即”1”或”0”)亦受控於該I/O設備狀態偵測程式 131 ’亦即,當電腦系統1中的任一個傳輸介面丨丨接收到一 插拔周邊設備之動作時,亦可將該周邊設備更動旗標位元 A0設為”〇” ;反之,設為”1”,其他位元(Al、A2、…、 > A7)亦同理可推,在此將不為文贅述。 當控制器14執行I/O設備狀態偵測程式131後,即由控 >制器14依序產生不同的選擇偵測信號並傳至該8對1多工器 12之輸入選擇端(SO、S1、S2),以令8對1多工器12依序 將其複數個輸入狀態端(10、II.....Π )所接收到的連 接信號分別由輸出訊息端01傳入控制器14,得以更新或維 持原先已儲存在該記憶體單元130中的I/O設備狀態值 134。以下將根據第1圖所示之控制器14及8對1多工器12舉 例說明該控制器14及該8對1多工器12間的資料傳輸控制動 --------^---------線 (請先閲讀背面之注意事項再填寫本頁) 本紙張尺度適用中國國家標準(CNS〉A4規格(210x 297公釐) 550452V. Description of the invention (8) (Please read the precautions on the back before filling out this page) The I / O device status value is 134, and its data structure is, for example, stored in a special register (not shown) The data structure is used for the controller 14 to perform the data reading and data storage processing procedures required when the I / O device status detection program 13 丨 and the 1/0 device status value reading program 132 are executed. The following describes the data structure stored in the 1 / 〇 device status value 134 and the messages it represents based on the transmission interface shown in Figure 1 as follows: A7 A6 A5 A4 A3 A2 A1 A0 AO : Used to store a peripheral device change flag value. (When any transmission interface in computer system 1 receives a plug-in action of a peripheral device, that is, A0 is set to "1"; otherwise, it is set to A1: to store the status value of the IDE interface module 110. When the IDE interface module 110 is plugged in or out of a peripheral device, A1 is set to "1", otherwise it is set to "0") The Intellectual Property Bureau employee consumer cooperative of the Ministry of Economic Affairs printed A2 to store the USB port module State value of 111. (When the USB / module 111 is plugged into a peripheral device, A2 is set to "1", otherwise it is set to "0") A3: It is used to store the state value of the parallel port module 112. (When the parallel port module 112 is connected to a peripheral device, that is, A3 is set to "1", otherwise it is set to "0") A4: used to store the state value of the SCSI interface module 113. (When the SCSI interface When module 113 is plugged in or out of a peripheral device, A4 is set to "1", and the paper size applies to the national standard (CNS) A4 specification (210 X 297 male S) " Printed by the Intellectual Property Bureau of the Ministry of Economic Affairs, Consumer Consumption Cooperative System 550452-A7 __B7 V. The description of the invention (9) is set to "0") A5: used to store the string Status value of the port module 114. (When the serial port module 114 is plugged in or out of a peripheral device, that is, A5 is set to, 1 ,, and vice versa is set to "0") A6: used to store the PS / 2 Status value of port module 115. (When the PS / 2 槔 module 115 is plugged into a peripheral device, that is, A6 is set to "1", otherwise it is set to "0") A7: is the default value. Therefore, this The I / O device status value 134 is changed according to the insertion and removal action of the peripheral device 2. The parameter values represented by these bits (AO, A1 ..... A7) (that is, "1" or "0" ") Is also controlled by the I / O device status detection program 131 ', that is, when any one of the transmission interfaces in the computer system 1 receives a movement of a peripheral device, it can also change the peripheral device. The flag bit A0 is set to "0"; otherwise, it is set to "1", the other bits (Al, A2, ..., > A7) can be similarly pushed, which will not be described in detail here. When the controller 14 After the I / O device status detection program 131 is executed, the controller 14 sequentially generates different selection detection signals and sends them to the input selection terminal (SO, S1, 8 of the 1-to-1 multiplexer 12). S2), so that The 8-to-1 multiplexer 12 sequentially sends the connection signals received by its multiple input status terminals (10, II ..... Π) to the controller 14 through the output message terminal 01, which can be updated or maintained. The I / O device status value 134 that has been stored in the memory unit 130. The controller 14 and the 8-to-1 multiplexer 12 will be described below as an example based on the controller 14 and the 8-to-1 multiplexer 12 shown in FIG. The data transmission control between the 12 tools -------- ^ --------- line (please read the precautions on the back before filling this page) This paper size applies to Chinese national standards (CNS 〉 A4 size (210x 297 mm) 550452
五、發明說明(10 作,如下所示· 輸入選擇端 SO 、 SI 、 S2 8對1多工器將輸入狀態端(10、11.....17)其 中之一所接收到的連接信號經由輸出訊息端Oi ^ 給控制器14 000 將輸入狀態端10所接收到的連接信號傳給控制器14 001 將輸入狀態端11所接收到的連接信號傳給控制器14 010 將輸入狀態端12所接收到的連接信號傳給控制器14 Oil 將輸入狀態端13所接收到的連接信號傳給控制器14 100 將輸入狀態端14所接收到的連接信號傳給控制器14 101 將輸入狀態端15所接收到的連接信號傳給控制器14 110 預備 111 預備 (請先閱讀背面之注意事項再填寫本頁) 經濟部智慧財產局員工消費合作社印製 請首先參閱第2圖,其用以顯示應用本發明之系統開 機自我檢查裝置10對電膘系統1之各周邊設備2進行偵測的 處理程序。於此程序中,首先,該電腦系統1須已開機並完 成原始BIOS程式所執行的POST工作,隨即進行步驟S1, 由控制器14自記憶體單~元13中讀取I/O設備狀態偵測程式 131以執行對電腦系統1之傳輪介面11插拔動作之偵測’接 著進行步驟S2。 於步驟S2中,由控制器14依序傳送不同的偵測信號至 該8對1多工器12中的輸入選擇端(SO、SI、S2),使該8對 1多工器12根據不同的偵測信號逐一將各輸入狀態端(1〇、 II.....17)與電腦系統1之傳輸介面11與周邊設備2間之 連接信號由輸出訊息端01傳入控制器14,接著進行步驟 本紙張瓦度適用中國國家標準(CNS)A4規格(210 X 297公爱) 10 16527 550452 A7 B7 五、發明說明(11 ) S3 〇 於步驟S3中,由控制器14自記憶體單元13 _讀取I/O δ又備狀態值134,並與由該8對1多工器12所傳來的連接信號 進行比對,接著進行步驟S4。 於步驟S4中,判斷該8對1多工器12所傳來的連接信號 是否與該I/O設備狀態值134中用以儲存該連接信號的位元 信號相同,若相同時,即進行步驟S6 ;否則進行步驟S5。 於步驟S5中’將I/O設備狀態值134中的更動旗標值設 為”1”,並更新該I/O設備狀態值134中用以儲存該8對1多工 器12所傳來且連接信號比對不同的位元值,接著進行步驟 S6 〇 於步驟S6中,由控制器14判斷各I/O設備狀態值是否皆 已比對過,若是時,即結束I/O設備狀態偵測程式;否則返 回該步驟S3。 、 請首先參閱第3圖,其用以顯示應用本發明之系統開 機自我檢查裝置10以在電腦系統開機後之P〇STi作的處 理流程。首先,執行步驟S10,由控制器14判斷該電腦系 統1疋否為第一次供電使用,若是時,即進行步驟$13,若 則進行步驟S11。 於步驟S11中,由控制器14自記憶體單元13中讀取1/〇 設備狀態值讀取程式132,以取得I/O設備狀態值134,接著 進行步驟S12。 於步驟S12中,由控制器14判斷I/O設備狀態值丨34中的 更動旗標值是否為1 ’若為”1”時,即進行步驟否則 --------------裝--- (請先閱讀背面之注意事項再填寫本頁) 訂-' .線 經濟部智慧財產局員工消費合作社印製 本纸張尺度過用中國國家標準(CNS)A4規格(210x297公爱) 11 16527 550452 經濟部智慧財產局員工消費合作社印製 A7 B7 五、發明說明(12 ) 進行步驟S14。 於步驟S13中,由控制器14自記憶體單元13中讀取原 始BIOS程式130,使電腦系統1進行一般post工作,且將 執行POST工作的POST結果儲存於記憶體單元13中,即完 成電腦系統1開機後之POST工作的處理程序。 於步驟S14中,由控制器14自記憶體單元13中讀取先 刖的POST結果135以及精簡BIOS程式133,使電腦系統1進 行精簡POST工作,即可完成電腦系統1開機後之P〇ST工作 的處理程序。 其令,在進行上述之步驟S10前,由該控制器14預先 判斷該電腦系統1是否為第一次供電使用,而該控制器 的判斷依據係自該記憶體單元13中讀取1/0設備狀態值 134’若判斷出該I/O設備狀態值134未建立時,即進行步驟 S13,否則進行步驟sil。此外,在進行上述步驟S13後, 該控制器14並將I/O設備狀態值134中的更動旗標值設為 〇,以供該電膘系統1作為下次開機時執行一般或精簡post 工作之參考(其中,亦需進行如第2圖所示之電腦系統1對 各周邊設備2進行偵測的處理程序,以確實供該電腦系統1 下次開機時執行一般或精簡POST工作之參考)。 因此,藉由本發明之系統開機自我檢查裝置以及方 法’使電腦系統不必每次開機時皆需執行一般BI〇s程式, 而只對電滕系統之傳輸介面產生插拔動作時,才執行一般 BIOS程式,否則即執行精簡P0ST工作,如此,將可提升 POST工作的處理速度。 (請先閱讀背面之注音心事項再填寫本頁)V. Description of the invention (10 operations, as shown below: Input selection terminals SO, SI, S2 8-to-1 multiplexer will receive the connection signal received by one of the input status terminals (10, 11 .... 17) Via the output message terminal Oi ^ to the controller 14 000 The connection signal received by the input status terminal 10 is transmitted to the controller 14 001 The connection signal received by the input status terminal 11 is transmitted to the controller 14 010 The input status terminal 12 is transmitted The received connection signal is transmitted to the controller 14 Oil. The connection signal received by the input status terminal 13 is transmitted to the controller 14 100. The connection signal received by the input status terminal 14 is transmitted to the controller 14 101. The input status terminal is transmitted. 15 Received the connection signal to the controller 14 110 Preparation 111 Preparation (Please read the precautions on the back before filling this page) Printed by the Consumer Cooperatives of the Intellectual Property Bureau of the Ministry of Economics Please refer to Figure 2 first, which is used to display Applying the system startup self-inspection device 10 of the present invention to a process for detecting peripheral devices 2 of the electronic system 1. In this procedure, first, the computer system 1 must be powered on and complete the original BIOS program. The POST operation is performed, and then step S1 is performed, and the controller 14 reads the I / O device status detection program 131 from the memory unit to the element 13 to perform the detection of the plugging and unplugging action of the transmission interface 11 of the computer system 1. 'Then proceed to step S2. In step S2, the controller 14 sequentially sends different detection signals to the input selection terminals (SO, SI, S2) of the 8-to-1 multiplexer 12 to make the 8-to-1 The multiplexer 12 transmits the connection signals between the input status terminals (10, II, ..., 17) and the transmission interface 11 of the computer system 1 and the peripheral device 2 one by one according to different detection signals. Enter the controller 14 and proceed with the steps. The paper wattage is in accordance with the Chinese National Standard (CNS) A4 specification (210 X 297 public love) 10 16527 550452 A7 B7 V. Description of the invention (11) S3 〇 In step S3, the controller 14Self-memory unit 13 _Read I / O δ and prepare state value 134, and compare it with the connection signal transmitted by the 8-to-1 multiplexer 12, and then proceed to step S4. In step S4, Determine whether the connection signal sent by the 8-to-1 multiplexer 12 and the I / O device status value 134 are used to store the connection signal If the bit signals are the same, if they are the same, go to step S6; otherwise, go to step S5. In step S5, 'set the change flag value of the I / O device status value 134 to "1" and update the I / The O device status value 134 is used to store the bit values transmitted by the 8-to-1 multiplexer 12 and the connection signals are compared. Then, step S6 is performed. In step S6, the controller 14 determines each I / O. Whether the device status values have been compared. If so, the I / O device status detection program is ended; otherwise, the process returns to step S3. First, please refer to FIG. 3, which is used to show the processing flow of the POSTi operation after the computer system is turned on by applying the system startup self-checking device 10 of the present invention. First, step S10 is executed, and the controller 14 determines whether the computer system 1 is used for the first power supply. If so, step $ 13 is performed, and if step S11 is performed, then. In step S11, the controller 14 reads the 1/0 device status value reading program 132 from the memory unit 13 to obtain the I / O device status value 134, and then proceeds to step S12. In step S12, the controller 14 determines whether the change flag value in the I / O device status value 丨 34 is 1; if it is "1", the step is performed otherwise ----------- --- Install --- (Please read the precautions on the back before filling out this page) Order- '. Printed on paper by the Consumer Property Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs (China National Standards (CNS) A4 Specification) 210x297 public love) 11 16527 550452 Printed by the Consumer Cooperative of the Intellectual Property Bureau of the Ministry of Economic Affairs A7 B7 V. Description of the invention (12) Go to step S14. In step S13, the controller 14 reads the original BIOS program 130 from the memory unit 13, so that the computer system 1 performs a general post job, and stores the POST result of performing the POST job in the memory unit 13 to complete the computer. POST processing process after system 1 is powered on. In step S14, the controller 14 reads the first POST result 135 and the streamlined BIOS program 133 from the memory unit 13 so that the computer system 1 performs the streamlined POST task, and the POST after the computer system 1 is turned on can be completed. Work handler. It is ordered that the controller 14 judges in advance whether the computer system 1 is used for the first power supply before performing the above step S10, and the judgment basis of the controller is to read 1/0 from the memory unit 13 If the device status value 134 'is determined that the I / O device status value 134 has not been established, step S13 is performed; otherwise, step sil is performed. In addition, after performing the above step S13, the controller 14 sets the change flag value in the I / O device status value 134 to 0, so that the electronic system 1 can perform general or streamlined post work when it is next turned on. Reference (Among them, the computer system 1 as shown in Figure 2 also needs to carry out the detection process of each peripheral device 2 to ensure that the computer system 1 performs the general or streamlined POST job reference when the next boot) . Therefore, the system startup self-checking device and method according to the present invention make the computer system not need to execute the general BI0s program every time it is turned on, and only execute the general BIOS when the plug-in action is performed on the transmission interface of the electrical system. Program, otherwise it will perform a streamlined P0ST job. In this way, the processing speed of the POST job will be improved. (Please read the Zhuyin Heart Notice on the back before filling this page)
· n I ϋ n n n ϋ*t-reJ< *ϋ —i I I I ί I I I 本紙張尺度適用中國國家標準(CNS>A4規格(210x297公釐) 12 16527 550452 A7 B7 經濟部智慧財產局員工消費合作社印製 五、發明說明(13 ) 以上所述僅為本發明之較佳實施例而已,並非用以限 定本發明之實質技術内容之範圍,例如第1圖之系統開機自 我檢查裝置10中並非僅限於使用8對1多工器12,亦可使用 其他具有相同功能的電子元件;再者,並非僅限定該更動 旗標值為1時而執行一精簡BIOS程序,亦可設定為互補於 上述之更動旗標值時來執行一精簡BIOS程序。本發明之實 質技術内容係廣義地定義於下述之申請專利範圍中,任何 他人所完成之技術實體或方法,若是與下述之申請專利範 圍所定義者完全相同,或是為同一等效之變更,均將被視 為涵蓋於此專利範圍之中。 【元件符號說明】 -------------裝.-------訂--------*線 (請先閱讀背面之注意事項再填寫本頁) 1 電腦系統 2 周邊設備 10 系統開機自我檢查裝置 14 控制器 11 傳輸介面 12 8對1多工器 13 記憶體單元 110 IDE介面模組 111 USB埠模組 112 並列埠模組 113 SCSI介面模組 114 串列埠模組 115 PS/2埠模組 130 原始BIOS程式 131 I/O設備狀態偵測程式 132 I/O設備狀態值讀取程式 133 精簡BIOS程式 134 I/O設備狀態值 135 POST結果 10、η、 …、17輸入狀態端 01 輸出訊息端 SO、S1 、S2輸入選擇端 本紙張尺度適用中國國家標準(CNS)A4規格(210x297公芨) 13 16527· N I ϋ nnn ϋ * t-reJ < * ϋ —i III ί III This paper size applies to Chinese National Standards (CNS > A4 size (210x297 mm) 12 16527 550452 A7 B7 Printed by the Consumer Cooperative of Intellectual Property Bureau of the Ministry of Economic Affairs V. Description of the Invention (13) The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the essential technical content of the present invention. For example, the system boot-up self-checking device 10 in FIG. 1 is not limited to use. The 8-to-1 multiplexer 12 can also use other electronic components with the same function. Moreover, it is not limited to execute a streamlined BIOS program when the change flag value is 1, and it can also be set to complement the change flag described above. A simplified BIOS program is executed when the value is marked. The essential technical content of the present invention is broadly defined in the scope of the patent application described below. Any technical entity or method completed by anyone else is defined by the scope of the patent application described below. Exactly the same, or the same equivalent change, will be considered to be covered by this patent. [Element Symbol Description] ------------- 装 .----- --Order -------- * (Please read the precautions on the back before filling this page) 1 Computer system 2 Peripheral equipment 10 System startup self-check device 14 Controller 11 Transmission interface 12 8-to-1 multiplexer 13 Memory unit 110 IDE interface module 111 USB port Module 112 Parallel port module 113 SCSI interface module 114 Serial port module 115 PS / 2 port module 130 Original BIOS program 131 I / O device status detection program 132 I / O device status value reading program 133 Streamlined BIOS program 134 I / O device status value 135 POST result 10, η,…, 17 input status terminal 01 output message terminal SO, S1, S2 input selection terminal This paper size is applicable to China National Standard (CNS) A4 specification (210x297 cm) ) 13 16527