TW201928669A - Computer apparatus, diagnostic method and non-transitory computer-readable storage medium - Google Patents

Computer apparatus, diagnostic method and non-transitory computer-readable storage medium Download PDF

Info

Publication number
TW201928669A
TW201928669A TW106143661A TW106143661A TW201928669A TW 201928669 A TW201928669 A TW 201928669A TW 106143661 A TW106143661 A TW 106143661A TW 106143661 A TW106143661 A TW 106143661A TW 201928669 A TW201928669 A TW 201928669A
Authority
TW
Taiwan
Prior art keywords
diagnostic
log data
module
computer device
hardware devices
Prior art date
Application number
TW106143661A
Other languages
Chinese (zh)
Other versions
TWI662407B (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 TW106143661A priority Critical patent/TWI662407B/en
Priority to CN201810004322.1A priority patent/CN109918239B/en
Application granted granted Critical
Publication of TWI662407B publication Critical patent/TWI662407B/en
Publication of TW201928669A publication Critical patent/TW201928669A/en

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)
  • Debugging And Monitoring (AREA)
  • Stored Programmes (AREA)

Abstract

A computer apparatus having a plurality of hardware devices is provided. The computer apparatus includes a storage device and a processing device. The storage device stores a plurality of diagnostic modules corresponding to the hardware devices. The processing device executes a launcher module, so that the launcher module executes the diagnostic modules to diagnose the hardware devices. The diagnostic modules generate a plurality of diagnostic log data. The launcher module writes the diagnostic log data to a specific location on the storage device according to a default path. In addition, a diagnostic method and a non-transitory computer-readable storage medium are also provided.

Description

電腦設備、診斷方法以及非暫時性電腦可讀儲存媒體Computer equipment, diagnostic methods, and non-transitory computer readable storage media

本發明是有關於一種診斷技術,且特別是有關於一種具有自動診斷功能的電腦設備、診斷方法以及非暫時性電腦可讀儲存媒體。The present invention relates to a diagnostic technique, and more particularly to a computer device having an automatic diagnostic function, a diagnostic method, and a non-transitory computer readable storage medium.

一般的電腦設備診斷技術需要跑分別執行多個診斷程式來確保各個硬體裝置的功能正常。然而,這些測試診斷程式產生的診斷結果和診斷資訊會依據不同的儲存路徑而分散儲存在電腦設備的儲存裝置中,造成電腦設備的測試者需要手動蒐集這些診斷結果和診斷資訊。並且,若電腦設備的鍵盤發生故障、螢幕無法顯示畫面、儲存裝置故障或是電腦設備完全死當,則電腦設備的測試者將無法取回已經完成的診斷結果和診斷資訊,以使電腦設備的測試者需要花費更多的時間檢測電腦設備的故障原因。有鑑於此,本發明將在以下提出幾個解決方案。General computer equipment diagnostic techniques need to run separate diagnostic programs to ensure that each hardware device functions properly. However, the diagnostic results and diagnostic information generated by these test diagnostic programs are stored in the storage device of the computer device according to different storage paths, so that the testers of the computer device need to manually collect the diagnosis results and diagnostic information. Moreover, if the keyboard of the computer device fails, the screen cannot display the screen, the storage device is faulty, or the computer device is completely dead, the tester of the computer device cannot retrieve the completed diagnosis result and diagnostic information to make the computer device Testers need to spend more time detecting the cause of the malfunction of the computer equipment. In view of this, the present invention will propose several solutions below.

本發明提供一種電腦設備、診斷方法以及非暫時性電腦可讀儲存媒體,可有效診斷電腦設備的多個硬體裝置,以儲存多個診斷日誌資料至儲存裝置的特定位置。因此,本發明的電腦設備可提供使用者便利且有效的電腦設備診斷功能,並且安全地記錄電腦設備的診斷日誌資料。The invention provides a computer device, a diagnosis method and a non-transitory computer readable storage medium, which can effectively diagnose a plurality of hardware devices of a computer device to store a plurality of diagnostic log data to a specific location of the storage device. Therefore, the computer device of the present invention can provide a user's convenient and effective computer device diagnostic function, and safely record the diagnostic log data of the computer device.

本發明的電腦設備具有多個硬體裝置。電腦設備包括儲存裝置以及處理裝置。儲存裝置用以儲存對應於這些硬體裝置的多個診斷模組。這些診斷模組用以診斷這些硬體裝置。處理裝置耦接儲存裝置。處理裝置用以執行啟動模組,以使啟動模組執行這些診斷模組來診斷這些硬體裝置。這些診斷模組產生多個診斷日誌資料,其中這些硬體裝置包括儲存裝置以及處理裝置。啟動模組依據預設路徑將這些診斷日誌資料寫入至儲存裝置的特定位置。The computer device of the present invention has a plurality of hardware devices. The computer device includes a storage device and a processing device. The storage device is configured to store a plurality of diagnostic modules corresponding to the hardware devices. These diagnostic modules are used to diagnose these hardware devices. The processing device is coupled to the storage device. The processing device is configured to execute the startup module, so that the startup module executes the diagnostic modules to diagnose the hardware devices. These diagnostic modules generate a plurality of diagnostic log data, wherein the hardware devices include storage devices and processing devices. The startup module writes the diagnostic log data to a specific location of the storage device according to a preset path.

本發明的診斷方法適用於電腦設備。電腦設備具有多個硬體裝置。電腦設備包括儲存裝置以及處理裝置。診斷方法包括以下步驟:藉由儲存裝置儲存對應於這些硬體裝置的多個診斷模組,並且這些診斷模組用以診斷這些硬體裝置;藉由處理裝置執行啟動模組,以使啟動模組執行這些診斷模組來診斷這些硬體裝置。這些診斷模組產生多個診斷日誌資料;以及藉由啟動模組依據預設路徑將這些診斷日誌資料寫入至儲存裝置的特定位置。The diagnostic method of the present invention is applicable to computer equipment. Computer equipment has multiple hardware devices. The computer device includes a storage device and a processing device. The diagnostic method includes the following steps: storing, by the storage device, a plurality of diagnostic modules corresponding to the hardware devices, and the diagnostic modules are used for diagnosing the hardware devices; and the starting module is executed by the processing device to enable the startup module The group executes these diagnostic modules to diagnose these hardware devices. The diagnostic modules generate a plurality of diagnostic log data; and the diagnostic modules write the diagnostic log data to a specific location of the storage device according to a preset path by the startup module.

本發明的非暫時性電腦可讀儲存媒體用以儲存啟動模組以載入電腦設備。電腦設備具有多個硬體裝置,電腦設備包括儲存裝置以及處理裝置。儲存裝置儲存對應於這些硬體裝置的多個診斷模組,並且這些診斷模組用以診斷這些硬體裝置。電腦設備執行以下步驟:藉由處理裝置執行啟動模組,以使啟動模組執行這些診斷模組來診斷這些硬體裝置,並且這些診斷模組產生多個診斷日誌資料;以及藉由啟動模組依據預設路徑將這些診斷日誌資料寫入至儲存裝置的特定位置。The non-transitory computer readable storage medium of the present invention is used to store a boot module to load a computer device. The computer device has a plurality of hardware devices, and the computer device includes a storage device and a processing device. The storage device stores a plurality of diagnostic modules corresponding to the hardware devices, and the diagnostic modules are used to diagnose the hardware devices. The computer device performs the following steps: executing a startup module by the processing device, so that the startup module executes the diagnostic modules to diagnose the hardware devices, and the diagnostic modules generate a plurality of diagnostic log data; and These diagnostic log data are written to a specific location of the storage device according to a preset path.

基於上述,本發明的電腦設備以及診斷方法可有效率地執行多個診斷模組,以有效率地診斷電腦設備,並且可將這些診斷日誌資料儲存至電腦設備的儲存裝置的相同的一個特定位置,以讓使用者可便利且快速的掌握電腦設備的診斷結果。Based on the above, the computer device and the diagnostic method of the present invention can efficiently execute a plurality of diagnostic modules to efficiently diagnose computer devices, and can store the diagnostic log data to the same specific location of the storage device of the computer device. In order to allow users to easily and quickly grasp the diagnosis results of computer equipment.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

為了使本發明之內容可以被更容易明瞭,以下特舉實施例做為本發明確實能夠據以實施的範例。另外,凡可能之處,在圖式及實施方式中使用相同標號的元件/構件/步驟,係代表相同或類似部件。In order to make the content of the present invention easier to understand, the following specific embodiments are examples of the invention that can be implemented. In addition, wherever possible, the same elements, components, and steps in the drawings and embodiments are used to represent the same or similar components.

圖1繪示本發明的一實施例的電腦設備的示意圖。參考圖1,電腦設備100包括處理裝置110、儲存裝置120以及顯示裝置130。處理裝置110耦接儲存裝置120以及顯示裝置130。在本實施例中,儲存裝置120用以儲存對應於電腦設備100的多個硬體裝置的多個診斷模組,並且這些診斷模組用以診斷這些硬體裝置。在本實施例中,這些硬體裝置可例如包括處理裝置110、儲存裝置120以及顯示裝置130,但本發明並不限於此。在一實施例中,這些硬體裝置例如包括處理器(Processor)、記憶體(Memory)、主機板(Motherboard)、顯示卡(Video Graphics Array)、硬碟(Hard disk)、光碟機(CD player)、聲音播放裝置(audio player)、藍芽(Bluetooth)、網路卡(Network card)、USB介面卡、鍵盤(Keyboard)、滑鼠(Mouse)或觸控板(Touch pad)等。FIG. 1 is a schematic diagram of a computer device according to an embodiment of the present invention. Referring to FIG. 1, the computer device 100 includes a processing device 110, a storage device 120, and a display device 130. The processing device 110 is coupled to the storage device 120 and the display device 130. In this embodiment, the storage device 120 is configured to store a plurality of diagnostic modules corresponding to the plurality of hardware devices of the computer device 100, and the diagnostic modules are used to diagnose the hardware devices. In the present embodiment, these hardware devices may include, for example, the processing device 110, the storage device 120, and the display device 130, but the present invention is not limited thereto. In an embodiment, the hardware device includes, for example, a processor, a memory, a Motherboard, a Video Graphics Array, a Hard disk, and a CD player. ), audio player, Bluetooth, network card, USB interface card, keyboard, mouse, or touch pad.

在本實施例中,處理裝置110執行啟動模組,以使啟動模組依序、不依序、依使用者指定或隨機的方式執行這些診斷模組,本發明並不加以限制。在一實施例中,這些診斷模組的執行方式亦可視實際設備情況而定。來診斷這些硬體裝置,以產生多個診斷日誌(log)資料。在本實施例中,啟動模組依據預設路徑將這些診斷日誌資料寫入至儲存裝置120的特定位置,其中預設路徑例如是指在硬碟的特定磁碟區域中的特定儲存空間的位址。換句話說,使用者可透過作業系統(Operating system, OS)檔案管理功能於一個特定資料夾當中來取得這些不同的診斷模組所各自產生的這些診斷日誌資料。並且,在本實施例中,處理裝置110依據這些診斷日誌資料使顯示裝置130顯示對應的診斷資訊。也就是說,本實施例的啟動模組可將這些診斷模組各自產生的分散的診斷日誌資料依序整合並且儲存至儲存裝置120的特定位置,以利於電腦設備製造者或使用者可有效地且快速地掌握電腦設備的診斷結果。In this embodiment, the processing device 110 executes the startup module to enable the startup module to execute the diagnostic modules sequentially, sequentially, in a user-specified or random manner, and the invention is not limited thereto. In an embodiment, the manner in which these diagnostic modules are implemented may also depend on actual device conditions. To diagnose these hardware devices to generate multiple diagnostic log data. In this embodiment, the startup module writes the diagnostic log data to a specific location of the storage device 120 according to a preset path, where the preset path refers to, for example, a bit of a specific storage space in a specific disk region of the hard disk. site. In other words, the user can obtain the diagnostic log data generated by each of the different diagnostic modules in a specific folder through the operating system (OS) file management function. Moreover, in the present embodiment, the processing device 110 causes the display device 130 to display corresponding diagnostic information based on the diagnostic log data. In other words, the startup module of the embodiment can sequentially integrate and store the distributed diagnostic log data generated by the diagnostic modules to a specific location of the storage device 120, so that the computer device manufacturer or user can effectively And quickly grasp the diagnosis results of computer equipment.

在本實施例中,處理裝置110例如是中央處理單元(Central Processing Unit, CPU)、系統單晶片(System on Chip, SOC)或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(Digital Signal Processor, DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits, ASIC)、可程式化邏輯裝置(Programmable Logic Device, PLD)、其他類似處理裝置或這些裝置的組合。In this embodiment, the processing device 110 is, for example, a central processing unit (CPU), a system on chip (SOC), or other programmable general purpose or special purpose microprocessor (microprocessor). ), Digital Signal Processor (DSP), programmable controller, Application Specific Integrated Circuits (ASIC), Programmable Logic Device (PLD), and other similar processing A device or a combination of these devices.

在本實施例中,儲存裝置120例如是軟碟機(Floppy Drive)、硬碟機(Hard Drive)、唯讀光碟機(CD-ROM)或光碟機(Optical Drive)等。在本實施例中,儲存裝置120預先儲存這些診斷模組。這些診斷模組例如是由各硬體裝置製造商提供的檢測軟體。處理裝置110可用以讀取並執行儲存裝置120的這些診斷模組。在本實施例中,啟動模組為一種log啟動器(log launcher),啟動模組可儲存在儲存裝置120或另一外接儲存裝置。在一實施例中,啟動模組亦可儲存在一個非暫時性電腦可讀儲存媒體(Non-transitory Computer-readable Storage Medium)當中,以透過載入電腦設備100來實現本發明各實施例所述的診斷方法。In the present embodiment, the storage device 120 is, for example, a floppy disk drive, a hard disk drive, a CD-ROM drive, or an optical drive. In this embodiment, the storage device 120 stores these diagnostic modules in advance. These diagnostic modules are, for example, detection software provided by the respective hardware device manufacturers. Processing device 110 can be used to read and execute these diagnostic modules of storage device 120. In this embodiment, the startup module is a log launcher, and the startup module can be stored in the storage device 120 or another external storage device. In an embodiment, the booting module can also be stored in a non-transitory computer-readable storage medium (Non-transitory Computer-readable Storage Medium) to implement the embodiments of the present invention by loading the computer device 100. Diagnostic method.

在本實施例中,啟動模組可有效整合這些診斷模組,並且執行之。並且,當使用者欲新增其他硬體裝置的診斷模組時,使用者只需透過設定啟動模組的設定檔,以將新增的診斷模組加入啟動模組的執行順序中。因此,電腦設備100可便利地載入新增的診斷模組,而無須進行額外設定或另外執行新增的診斷模組。In this embodiment, the startup module can effectively integrate these diagnostic modules and execute them. Moreover, when the user wants to add a diagnostic module of another hardware device, the user only needs to add the newly created diagnostic module to the execution sequence of the startup module by setting the configuration file of the startup module. Therefore, the computer device 100 can conveniently load the newly added diagnostic module without additional settings or additional execution of the new diagnostic module.

在本實施例中,電腦設備100可例如是筆記型電腦、個人平板、桌上型電腦等,並且顯示裝置130可裝設在電腦設備100上或是外接於電腦設備100。在本實施例中,處理裝置110執行啟動模組以產生這些診斷日誌資料,並且處理裝置110可依據這些診斷模組產生的這些診斷日誌資料驅動顯示裝置130,以透過顯示裝置130顯示診斷資訊。在本實施例中,顯示裝置130可顯示這些診斷日誌資料的重點部分,以讓使用者可透過顯示裝置130即時掌握電腦設備100的這些硬體裝置的診斷結果。In this embodiment, the computer device 100 can be, for example, a notebook computer, a personal tablet, a desktop computer, etc., and the display device 130 can be installed on the computer device 100 or externally connected to the computer device 100. In this embodiment, the processing device 110 executes the startup module to generate the diagnostic log data, and the processing device 110 can drive the display device 130 according to the diagnostic log data generated by the diagnostic modules to display the diagnostic information through the display device 130. In this embodiment, the display device 130 can display the key parts of the diagnostic log data so that the user can immediately grasp the diagnosis results of the hardware devices of the computer device 100 through the display device 130.

圖2繪示本發明的一實施例的應用程式模組的示意圖。參考圖1以及圖2,處理裝置110執行應用程式模組200,其中應用程式模組200包括啟動模組210、診斷模組220以及日誌收集伺服器230。在本實施例中,日誌收集伺服器230為一種檔案伺服器的電腦軟體,並且日誌收集伺服器230用以提供檔案管理服務。在本實施例中,在應用程式模組200中的這些模組以及伺服器可各別儲存於儲存裝置120或外部的儲存裝置中,以使處理裝置110讀取並執行之。圖2的示意圖為呈現處理裝置110執行應用程式模組200中的這些模組以及伺服器後,這些模組以及伺服器所對應產生的診斷日誌資料F1、F2的各種可能的儲存目的地。本發明的診斷日誌資料F1、F2的儲存方式不限於圖2所示,診斷日誌資料F1、F2的具體儲存方式可例如以下圖3至圖6的各實施例的診斷方法來對應調整或變形。2 is a schematic diagram of an application module according to an embodiment of the invention. Referring to FIG. 1 and FIG. 2, the processing device 110 executes an application module 200. The application module 200 includes a startup module 210, a diagnostic module 220, and a log collection server 230. In this embodiment, the log collection server 230 is a computer software of a file server, and the log collection server 230 is used to provide a file management service. In this embodiment, the modules and the servers in the application module 200 can be separately stored in the storage device 120 or an external storage device, so that the processing device 110 reads and executes the same. The schematic diagram of FIG. 2 is a representation of various possible storage destinations of the diagnostic log data F1, F2 generated by the processing device 110 after executing the modules and servers in the application module 200. The storage manner of the diagnostic log data F1 and F2 of the present invention is not limited to that shown in FIG. 2, and the specific storage manner of the diagnostic log data F1 and F2 may be adjusted or modified correspondingly, for example, in the diagnostic methods of the respective embodiments of FIGS. 3 to 6 below.

在本實施例中,處理裝置110執行啟動模組210,以使啟動模組210驅動診斷模組220。診斷模組220藉由重新定向(redirect)機制將具有診斷日誌資料內容的標準輸出串流(standard output, stdout)以及標準錯誤輸出串流(standard error, stderr)提供至啟動模組210,以使啟動模組210可依據預設的預設路徑將診斷日誌資料F1寫入至儲存裝置120的特定位置。In the embodiment, the processing device 110 executes the startup module 210 to enable the startup module 210 to drive the diagnostic module 220. The diagnostic module 220 provides a standard output (stdout) with a diagnostic log data content and a standard error output (stderr) to the boot module 210 by a redirect mechanism. The startup module 210 can write the diagnostic log data F1 to a specific location of the storage device 120 according to a preset preset path.

在本實施例中,診斷日誌資料F1的其中一部分可顯示於顯示裝置130,以使顯示裝置130顯示相關重要診斷資訊或診斷結果。舉例而言,顯示裝置130可顯示硬體裝置的診斷結果,例如裝置正常、裝置故障、裝置效能或裝置型號等診斷資訊。在一實施例中,顯示裝置130亦可顯示全部的診斷日誌資料F1的內容。此外,啟動模組210可進一步將診斷日誌資料F1寫入至外部儲存裝置310,以將診斷日誌資料F1備份至外部儲存裝置310。也就是說,若儲存裝置120發生損壞,則使用者可藉由讀取外部儲存裝置310來取得備份的診斷日誌資料F1。In this embodiment, a portion of the diagnostic log data F1 may be displayed on the display device 130 to cause the display device 130 to display relevant important diagnostic information or diagnostic results. For example, the display device 130 can display diagnostic results of the hardware device, such as diagnostic information such as device normality, device failure, device performance, or device model. In an embodiment, display device 130 may also display the contents of all diagnostic log data F1. In addition, the startup module 210 can further write the diagnostic log data F1 to the external storage device 310 to back up the diagnostic log data F1 to the external storage device 310. That is to say, if the storage device 120 is damaged, the user can obtain the backup diagnostic log data F1 by reading the external storage device 310.

在本實施例中,日誌收集伺服器230用以收集診斷模組220以及日誌收集伺服器230產生的日誌文件(log file)。啟動模組210可將顯示於顯示裝置130的相關重要診斷資訊或診斷結果提供至日誌收集伺服器230,以使日誌收集伺服器230可整理這些診斷資訊或診斷結果,以藉由電腦設備100的資料傳輸模組來提供診斷日誌資料F2至外部伺服器320。日誌收集伺服器230用於有效率地備份診斷日誌資料F2。也就是說,若儲存裝置120發生損壞,則使用者可透過外部伺服器320來取得相關重要診斷資訊或診斷結果。此外,日誌收集伺服器230可進一步將診斷日誌資料F2依序寫入至記憶體330。也就是說,若儲存裝置120發生損壞或日誌收集伺服器230無法將診斷日誌資料F2提供至外部伺服器320,則使用者可藉由讀取記憶體330來取得備份的診斷日誌資料F2。值得注意的是,在本實施例中,若由多個診斷模組產生的多筆診斷日誌資料的資料量大於記憶體330的儲存空間,則日誌收集伺服器230以循環複寫的方式將多筆診斷日誌資料依序寫入至記憶體330,以使記憶體330儲存診斷日誌資料F2的最新部分。In this embodiment, the log collection server 230 is configured to collect the log file generated by the diagnostic module 220 and the log collection server 230. The startup module 210 can provide related important diagnostic information or diagnosis results displayed on the display device 130 to the log collection server 230, so that the log collection server 230 can sort the diagnostic information or the diagnosis result by the computer device 100. The data transmission module provides diagnostic log data F2 to the external server 320. The log collection server 230 is used to efficiently back up the diagnostic log data F2. That is to say, if the storage device 120 is damaged, the user can obtain relevant important diagnostic information or diagnosis result through the external server 320. In addition, the log collection server 230 can further write the diagnostic log data F2 to the memory 330 in sequence. That is, if the storage device 120 is damaged or the log collection server 230 cannot provide the diagnostic log data F2 to the external server 320, the user can obtain the backup diagnostic log data F2 by reading the memory 330. It should be noted that, in this embodiment, if the data volume of the plurality of diagnostic log data generated by the plurality of diagnostic modules is larger than the storage space of the memory 330, the log collection server 230 may multiple times by cyclically rewriting. The diagnostic log data is sequentially written to the memory 330 so that the memory 330 stores the latest portion of the diagnostic log data F2.

在本實施例中,診斷日誌資料F1與診斷日誌資料F2的資料量不同。診斷日誌資料F1為診斷模組220所產生的一部分或全部的診斷資料以及內容,並且顯示於顯示裝置130。診斷日誌資料F2為取自診斷日誌資料F1當中較為重要的資料內容,但本發明並不限於此。在一實施例中,診斷日誌資料F1與診斷日誌資料F2也可以是具有相同內容的日誌資料。In the present embodiment, the amount of data of the diagnostic log data F1 and the diagnostic log data F2 are different. The diagnostic log data F1 is part or all of the diagnostic data and content generated by the diagnostic module 220, and is displayed on the display device 130. The diagnostic log data F2 is a more important data content taken from the diagnostic log data F1, but the present invention is not limited thereto. In an embodiment, the diagnostic log data F1 and the diagnostic log data F2 may also be log data having the same content.

在本實施例中,日誌收集伺服器230可儲存於儲存裝置120中,以使處理裝置110可同時執行啟動模組210以及日誌收集伺服器230。在本實施例中,記憶體330例如是動態隨機存取記憶體(Dynamic Random Access Memory, DRAM)、快閃記憶體(Flash memory)或非揮發性隨機存取記憶體(Non-Volatile Random Access Memory, NVRAM)等,其中記憶體330可屬於電腦設備100的硬體裝置。也就是說,日誌收集伺服器230可將診斷日誌資料F2儲存至本機的記憶體330中,但本發明並不限於此。在一實施例中,日誌收集伺服器230也可藉由資料傳輸模組來儲存於另一電腦設備的儲存裝置中,以讓使用者可藉由另一電腦設備來接收啟動模組210提供的診斷日誌資料F2。並且,記憶體330也可屬於此另一電腦設備的硬體裝置。也就是說,使用者可透過此另一電腦設備來備份診斷日誌資料F2。In this embodiment, the log collection server 230 can be stored in the storage device 120 so that the processing device 110 can simultaneously execute the startup module 210 and the log collection server 230. In this embodiment, the memory 330 is, for example, a dynamic random access memory (DRAM), a flash memory, or a non-volatile random access memory (Non-Volatile Random Access Memory). , NVRAM), etc., wherein the memory 330 can belong to a hardware device of the computer device 100. That is, the log collection server 230 can store the diagnostic log data F2 in the memory 330 of the local machine, but the present invention is not limited thereto. In an embodiment, the log collection server 230 can also be stored in the storage device of another computer device by using the data transmission module, so that the user can receive the startup module 210 by using another computer device. Diagnostic log data F2. Moreover, the memory 330 can also belong to the hardware device of the other computer device. In other words, the user can back up the diagnostic log data F2 through the other computer device.

在本實施例中,上述的資料傳輸模組可例如是包括有線或無線的傳輸介面,例如Wi-Fi介面、藍芽(Bluetooth) 介面、近場通訊(Near Field Communication,NFC)介面、同軸電纜(Coaxial cable)介面、光纖(Optical fiber)介面或通用序列匯流排(Universal Serial Bus, USB)介面等,本發明並不加以限制。In this embodiment, the data transmission module may include, for example, a wired or wireless transmission interface, such as a Wi-Fi interface, a Bluetooth interface, a Near Field Communication (NFC) interface, and a coaxial cable. (Coaxial cable) interface, optical fiber interface or Universal Serial Bus (USB) interface, etc., and the invention is not limited.

值得注意的是,圖2所示的外部儲存裝置310、外部伺服器320以及記憶體330是分別用於提供多種資料備份方案,但本發明的電腦設備以及診斷方法並不限於此。也就是說,本發明的電腦設備以及診斷方法可選擇性設置外部儲存裝置310、外部伺服器320以及記憶體330的至少其中之一。換句話說,本發明的電腦設備以及診斷方法可依據不同診斷需求或診斷環境來決定是否設置外部儲存裝置310、外部伺服器320以及記憶體330的至少其中之一。並且,為了使本領域技術人員可進一步了解本發明的電腦設備以及診斷方法的多個實施態樣,以下提出圖3至圖6的多個診斷方法的流程圖來分別說明之。It should be noted that the external storage device 310, the external server 320, and the memory 330 shown in FIG. 2 are respectively used to provide a plurality of data backup schemes, but the computer device and the diagnosis method of the present invention are not limited thereto. That is, the computer device and the diagnostic method of the present invention can selectively set at least one of the external storage device 310, the external server 320, and the memory 330. In other words, the computer device and the diagnostic method of the present invention can determine whether to set at least one of the external storage device 310, the external server 320, and the memory 330 according to different diagnostic needs or diagnostic environments. Further, in order to enable those skilled in the art to further understand various embodiments of the computer apparatus and diagnostic method of the present invention, a flow chart of a plurality of diagnostic methods of FIGS. 3 to 6 will be separately described below.

圖3繪示本發明的一實施例的診斷方法的流程圖。參考圖1、圖2以及圖3,本實施例的診斷方法可適用於圖1實施例的電腦設備100以及圖2的應用程式模組200。在步驟S301中,電腦設備100的處理裝置110執行啟動模組210。在步驟S302中,啟動模組210執行診斷模組220,以診斷電腦設備100的多個硬體裝置的其中之一。在步驟S303中,啟動模組210將顯示於顯示裝置130的相關重要診斷資訊或診斷結果(尚未整理的診斷日誌資料)提供至日誌收集伺服器230,並且日誌收集伺服器230將診斷日誌資料F2寫入至電腦設備100的記憶體330。在步驟S304中,處理裝置110判斷這些硬體裝置的當前診斷目標是否發生異常,例如無法正常運作、損壞或特定功能無法執行等。若是,則處理裝置110執行步驟S305。若否,則處理裝置110執行步驟S307。3 is a flow chart of a diagnostic method in accordance with an embodiment of the present invention. Referring to FIG. 1, FIG. 2 and FIG. 3, the diagnostic method of the present embodiment can be applied to the computer device 100 of the embodiment of FIG. 1 and the application module 200 of FIG. In step S301, the processing device 110 of the computer device 100 executes the startup module 210. In step S302, the startup module 210 executes the diagnostic module 220 to diagnose one of the plurality of hardware devices of the computer device 100. In step S303, the startup module 210 provides relevant important diagnostic information or diagnosis results (diagnostic log data that has not been collated) displayed on the display device 130 to the log collection server 230, and the log collection server 230 will diagnose the log data F2. It is written to the memory 330 of the computer device 100. In step S304, the processing device 110 determines whether an abnormality has occurred in the current diagnostic target of the hardware device, such as failure to operate normally, damage, or failure to perform a specific function. If so, the processing device 110 performs step S305. If not, the processing device 110 performs step S307.

在步驟S305中,處理裝置110判斷電腦設備100是否具有資料傳輸模組。若是,則處理裝置110執行步驟S306。若否,則處理裝置110執行步驟S310,以結束診斷。在步驟S306中,日誌收集伺服器230透過資料傳輸模組將診斷日誌資料F2提供至外部伺服器320,並且處理裝置110執行步驟S310,以結束診斷。In step S305, the processing device 110 determines whether the computer device 100 has a data transmission module. If so, the processing device 110 performs step S306. If not, the processing device 110 performs step S310 to end the diagnosis. In step S306, the log collection server 230 provides the diagnostic log data F2 to the external server 320 through the data transmission module, and the processing device 110 performs step S310 to end the diagnosis.

在步驟S307中,處理裝置110判斷診斷模組220是否完成診斷。若診斷模組220尚未完成診斷,則處理裝置110重新執行步驟S304直到診斷模組220完成診斷。若診斷模組220完成診斷,則處理裝置110執行步驟S308。在步驟S308中,啟動模組210將診斷日誌資料F1寫入至儲存裝置120的特定位置,並且處理裝置110執行步驟S309。在一實施例中,啟動模組210也可將診斷日誌資料F1寫入至電腦設備100的記憶體330中。In step S307, the processing device 110 determines whether the diagnostic module 220 has completed the diagnosis. If the diagnostic module 220 has not completed the diagnosis, the processing device 110 re-executes step S304 until the diagnostic module 220 completes the diagnosis. If the diagnostic module 220 completes the diagnosis, the processing device 110 performs step S308. In step S308, the startup module 210 writes the diagnostic log data F1 to a specific location of the storage device 120, and the processing device 110 performs step S309. In an embodiment, the startup module 210 can also write the diagnostic log data F1 into the memory 330 of the computer device 100.

在步驟S309中,處理裝置110判斷是否沒有其他診斷模組需執行。若是,則處理裝置110執行步驟S310,以結束診斷。若否,則處理裝置110重新執行步驟S302,以使啟動模組210接續執行下一個診斷模組。也就是說,本實施例的診斷方法可將診斷日誌資料F1儲存至儲存裝置120的特定位置,並且可藉由資料傳輸模組備份診斷日誌資料F2至外部伺服器320以及本機的記憶體330。因此,若電腦設備100發生故障,使用者仍可透過外部伺服器320以及本機的記憶體330來取得電腦設備100的最新的診斷日誌資料F2。In step S309, the processing device 110 determines whether there is no other diagnostic module to execute. If so, the processing device 110 performs step S310 to end the diagnosis. If not, the processing device 110 re-executes step S302 to cause the startup module 210 to continue to execute the next diagnostic module. That is, the diagnostic method of the present embodiment can store the diagnostic log data F1 to a specific location of the storage device 120, and can back up the diagnostic log data F2 to the external server 320 and the memory 330 of the local device by the data transmission module. . Therefore, if the computer device 100 fails, the user can obtain the latest diagnostic log data F2 of the computer device 100 through the external server 320 and the memory 330 of the local device.

圖4繪示本發明的另一實施例的診斷方法的示意圖。參考圖1、圖2以及圖4,本實施例的診斷方法可適用於圖1實施例的電腦設備100以及圖2的應用程式模組200。在步驟S401中,電腦設備100的處理裝置110執行啟動模組210。在步驟S402中,啟動模組210執行診斷模組220,以診斷電腦設備100的多個硬體裝置的其中之一。在步驟S403中,啟動模組210將顯示於顯示裝置130的相關重要診斷資訊或診斷結果(尚未整理的診斷日誌資料)提供至另一電腦設備的日誌收集伺服器230,並且日誌收集伺服器230將診斷日誌資料F2寫入至此另一電腦設備的記憶體。在步驟S404中,處理裝置110判斷這些硬體裝置的當前診斷目標是否發生異常。若是,則處理裝置110執行步驟S405。若否,則處理裝置110執行步驟S406。4 is a schematic diagram of a diagnostic method according to another embodiment of the present invention. Referring to FIG. 1, FIG. 2 and FIG. 4, the diagnostic method of the present embodiment is applicable to the computer device 100 of the embodiment of FIG. 1 and the application module 200 of FIG. In step S401, the processing device 110 of the computer device 100 executes the startup module 210. In step S402, the startup module 210 executes the diagnostic module 220 to diagnose one of the plurality of hardware devices of the computer device 100. In step S403, the startup module 210 provides relevant important diagnostic information or diagnosis results (diagnostic log data not yet collated) displayed on the display device 130 to the log collection server 230 of another computer device, and the log collection server 230 Write diagnostic log data F2 to the memory of this other computer device. In step S404, the processing device 110 determines whether an abnormality has occurred in the current diagnosis target of the hardware devices. If so, the processing device 110 performs step S405. If not, the processing device 110 performs step S406.

在步驟S405中,日誌收集伺服器230將診斷日誌資料F2提供至外部伺服器320,並且處理裝置110執行步驟S409,以結束診斷。在步驟S306中,處理裝置110判斷診斷模組220是否完成診斷。若診斷模組220尚未完成診斷,則處理裝置110重新執行步驟S404直到診斷模組220完成診斷。若診斷模組220完成診斷,則處理裝置110執行步驟S407。在步驟S407中,啟動模組210將診斷日誌資料F1寫入至儲存裝置120的特定位置,並且處理裝置110執行步驟S408。In step S405, the log collection server 230 supplies the diagnostic log data F2 to the external server 320, and the processing device 110 performs step S409 to end the diagnosis. In step S306, the processing device 110 determines whether the diagnostic module 220 has completed the diagnosis. If the diagnostic module 220 has not completed the diagnosis, the processing device 110 re-executes step S404 until the diagnostic module 220 completes the diagnosis. If the diagnostic module 220 completes the diagnosis, the processing device 110 performs step S407. In step S407, the startup module 210 writes the diagnostic log data F1 to a specific location of the storage device 120, and the processing device 110 performs step S408.

在步驟S408中,處理裝置110判斷是否沒有其他診斷模組需執行。若是,則處理裝置110執行步驟409,以結束診斷。若否,則處理裝置110重新執行步驟S402,以使啟動模組210接續執行下一個診斷模組。也就是說,本實施例的診斷方法可將診斷日誌資料F1儲存至儲存裝置120的特定位置,並且可藉由資料傳輸模組備份診斷日誌資料F2至外部伺服器320以及另一電腦設備的記憶體。因此,相較於圖3實施例,若電腦設備100發生故障,使用者仍可透過外部伺服器320以及此另一電腦設備的記憶體來取得電腦設備100的最新的診斷日誌資料F2。換句話說,此另一電腦設備可例如是電腦設備製造者的檢測系統或設備。當使用者診斷電腦設備100時,可操作此檢測系統或設備來診斷電腦設備100,以在電腦設備100出廠前可有效診斷電腦設備100的硬體裝置是否正常。In step S408, the processing device 110 determines whether there is no other diagnostic module to execute. If so, the processing device 110 performs step 409 to end the diagnosis. If not, the processing device 110 re-executes step S402 to cause the startup module 210 to continue to execute the next diagnostic module. That is, the diagnostic method of the present embodiment can store the diagnostic log data F1 to a specific location of the storage device 120, and can back up the diagnostic log data F2 to the external server 320 and the memory of another computer device by the data transmission module. body. Therefore, compared with the embodiment of FIG. 3, if the computer device 100 fails, the user can obtain the latest diagnostic log data F2 of the computer device 100 through the external server 320 and the memory of the other computer device. In other words, this other computer device can be, for example, a detection system or device of a computer device manufacturer. When the user diagnoses the computer device 100, the detection system or device can be operated to diagnose the computer device 100 to effectively diagnose whether the hardware device of the computer device 100 is normal before the computer device 100 leaves the factory.

圖5繪示本發明的另一實施例的診斷方法的示意圖。參考圖1、圖2以及圖5,本實施例的診斷方法可適用於圖1實施例的電腦設備100以及圖2的應用程式模組200。在步驟S501中,電腦設備100的處理裝置110執行啟動模組210。在步驟S502中,啟動模組210執行診斷模組220,以診斷電腦設備100的多個硬體裝置的其中之一。在步驟S503中,啟動模組210將顯示於顯示裝置130的相關重要診斷資訊或診斷結果(尚未整理的診斷日誌資料)提供至另一電腦設備的日誌收集伺服器230以及外部儲存裝置310,並且日誌收集伺服器230將診斷日誌資料F2寫入至此另一電腦設備的記憶體。在步驟S504中,處理裝置110判斷這些硬體裝置的當前診斷目標是否發生異常。若是,則處理裝置110執行步驟S505。若否,則處理裝置110執行步驟S509。FIG. 5 is a schematic diagram of a diagnostic method according to another embodiment of the present invention. Referring to FIG. 1, FIG. 2 and FIG. 5, the diagnostic method of the present embodiment can be applied to the computer device 100 of the embodiment of FIG. 1 and the application module 200 of FIG. In step S501, the processing device 110 of the computer device 100 executes the boot module 210. In step S502, the startup module 210 executes the diagnostic module 220 to diagnose one of the plurality of hardware devices of the computer device 100. In step S503, the startup module 210 provides relevant important diagnostic information or diagnosis results (diagnostic log data that has not been collated) displayed on the display device 130 to the log collection server 230 and the external storage device 310 of another computer device, and The log collection server 230 writes the diagnostic log data F2 to the memory of this other computer device. In step S504, the processing device 110 determines whether an abnormality has occurred in the current diagnosis target of the hardware devices. If so, the processing device 110 performs step S505. If not, the processing device 110 performs step S509.

在步驟S505中,處理裝置110判斷電腦設備100是否具有資料傳輸模組。若是,則處理裝置110執行步驟S508。若否,則處理裝置110執行步驟S506。在步驟S508中,日誌收集伺服器230將診斷日誌資料F2提供至外部伺服器320。在步驟S506中,處理裝置110移除外部儲存裝置310,並且執行步驟S507。在步驟S507中,使用者將外部儲存裝置310連接至又一電腦設備,以透過又一電腦設備來取得儲存在外部儲存裝置310的診斷日誌資料F2,並且處理裝置110執行步驟S512,以結束診斷。In step S505, the processing device 110 determines whether the computer device 100 has a data transmission module. If so, the processing device 110 performs step S508. If not, the processing device 110 performs step S506. In step S508, the log collection server 230 provides the diagnostic log data F2 to the external server 320. In step S506, the processing device 110 removes the external storage device 310 and performs step S507. In step S507, the user connects the external storage device 310 to another computer device to obtain the diagnostic log data F2 stored in the external storage device 310 through another computer device, and the processing device 110 performs step S512 to end the diagnosis. .

在步驟S509中,處理裝置110判斷診斷模組220是否完成診斷。若診斷模組220尚未完成診斷,則處理裝置110重新執行步驟S504直到診斷模組220完成診斷。若診斷模組220完成診斷,則處理裝置110執行步驟S510。在步驟S510中,啟動模組210將診斷日誌資料F1寫入至儲存裝置120的特定位置,並且處理裝置110執行步驟S511。In step S509, the processing device 110 determines whether the diagnostic module 220 has completed the diagnosis. If the diagnostic module 220 has not completed the diagnosis, the processing device 110 re-executes step S504 until the diagnostic module 220 completes the diagnosis. If the diagnostic module 220 completes the diagnosis, the processing device 110 performs step S510. In step S510, the startup module 210 writes the diagnostic log data F1 to a specific location of the storage device 120, and the processing device 110 performs step S511.

在步驟S511中,處理裝置110判斷是否沒有其他診斷模組需執行。若是,則處理裝置110執行步驟512,以結束診斷。若否,則處理裝置110重新執行步驟S502,以使啟動模組210接續執行下一個診斷模組。也就是說,相較於圖3以及圖4實施例,本實施例的診斷方法可將診斷日誌資料F1儲存至儲存裝置120以及外部儲存裝置310的特定位置,並且可藉由資料傳輸模組備份診斷日誌資料F2至外部伺服器320以及另一電腦設備的記憶體。因此,若電腦設備100發生故障,使用者仍可透過外部伺服器320以及此另一電腦設備的記憶體來取得電腦設備100的最新的診斷日誌資料F2。甚至,若外部伺服器320以及此另一電腦設備也發生故障,則使用者還可透過又一電腦設備來連接外部儲存裝置310,以取得診斷日誌資料F1。In step S511, the processing device 110 determines whether there is no other diagnostic module to execute. If so, processing device 110 performs step 512 to end the diagnosis. If not, the processing device 110 re-executes step S502 to cause the startup module 210 to continue to execute the next diagnostic module. That is to say, compared with the embodiment of FIG. 3 and FIG. 4, the diagnostic method of the present embodiment can store the diagnostic log data F1 to a specific location of the storage device 120 and the external storage device 310, and can be backed up by the data transmission module. Diagnose log data F2 to external server 320 and the memory of another computer device. Therefore, if the computer device 100 fails, the user can obtain the latest diagnostic log data F2 of the computer device 100 through the external server 320 and the memory of the other computer device. Even if the external server 320 and the other computer device also fail, the user can connect the external storage device 310 through another computer device to obtain the diagnostic log data F1.

圖6繪示本發明的另一實施例的診斷方法的示意圖。參考圖1以及圖6,本實施例的診斷方法可適用於圖1實施例的電腦設備100。在步驟S610中,電腦設備100藉由儲存裝置120儲存對應於多個硬體裝置的多個診斷模組,並且這些診斷模組用以診斷這些硬體裝置。在步驟S620中,電腦設備100藉由處理裝置110執行啟動模組,以使啟動模組執行這些診斷模組來診斷這些硬體裝置,並且這些診斷模組產生多個診斷日誌資料。在步驟S630中,電腦設備100藉由啟動模組依據預設路徑將這些診斷日誌資料寫入至儲存裝置120的特定位置。因此,本實施例的診斷方法可有效率地執行這些診斷模組,並且整合這些診斷日誌資料,以讓使用者可快速掌握並取得這些診斷日誌資料。6 is a schematic diagram of a diagnostic method according to another embodiment of the present invention. Referring to Figures 1 and 6, the diagnostic method of the present embodiment is applicable to the computer device 100 of the embodiment of Figure 1. In step S610, the computer device 100 stores a plurality of diagnostic modules corresponding to the plurality of hardware devices by using the storage device 120, and the diagnostic modules are used to diagnose the hardware devices. In step S620, the computer device 100 executes the startup module by the processing device 110, so that the startup module executes the diagnostic modules to diagnose the hardware devices, and the diagnostic modules generate a plurality of diagnostic log data. In step S630, the computer device 100 writes the diagnostic log data to a specific location of the storage device 120 according to a preset path by the startup module. Therefore, the diagnostic method of the embodiment can efficiently execute the diagnostic modules and integrate the diagnostic log data so that the user can quickly grasp and obtain the diagnostic log data.

另外,關於本實施例的電腦設備100的其他裝置特徵、實施細節以及技術手段可參照上述圖1至圖5實施例而獲致足夠的教示、建議以及實施說明,因此不再贅述。In addition, other device features, implementation details, and technical means of the computer device 100 of the present embodiment can be referred to the above-described embodiments of FIG. 1 to FIG. 5 to obtain sufficient teachings, suggestions, and implementation descriptions, and thus are not described again.

綜上所述,本發明的電腦設備以及診斷方法可有效率地執行多個診斷模組,以產生多個診斷日誌資料,並且安全地記錄電腦設備的診斷日誌資料。本發明的電腦設備以及診斷方法可將這些診斷日誌資料儲存至電腦設備的儲存裝置的相同的一個特定位置,以讓使用者可便利且快速的掌握電腦設備的診斷結果。此外,本案發明的電腦設備以及診斷方法還可進一步將這些診斷日誌資料備份至本機的記憶體、外部的記憶體、外部的儲存裝置或外部的伺服器等,以安全地記錄電腦設備的診斷日誌資料。In summary, the computer apparatus and diagnostic method of the present invention can efficiently execute a plurality of diagnostic modules to generate a plurality of diagnostic log data and securely record diagnostic log data of the computer device. The computer device and the diagnostic method of the present invention can store the diagnostic log data to the same specific location of the storage device of the computer device, so that the user can conveniently and quickly grasp the diagnosis result of the computer device. In addition, the computer device and the diagnostic method of the present invention can further back up the diagnostic log data to the memory of the machine, the external memory, the external storage device, or an external server to safely record the diagnosis of the computer device. Log data.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

100‧‧‧電腦設備100‧‧‧Computer equipment

110‧‧‧處理裝置110‧‧‧Processing device

120‧‧‧儲存裝置120‧‧‧Storage device

130‧‧‧顯示裝置130‧‧‧Display device

200‧‧‧應用程式模組200‧‧‧Application Module

210‧‧‧啟動模組210‧‧‧Starting module

220‧‧‧診斷模組220‧‧‧Diagnostic Module

230‧‧‧日誌收集伺服器230‧‧‧Log collection server

310‧‧‧外部儲存裝置310‧‧‧External storage device

320‧‧‧外部伺服器320‧‧‧External Server

330‧‧‧記憶體330‧‧‧ memory

F1、F2‧‧‧診斷日誌資料F1, F2‧‧‧Diagnostic log data

S301~S310、S401~S409、S501~S512、S610、S620、S630‧‧‧步驟Steps S301~S310, S401~S409, S501~S512, S610, S620, S630‧‧

圖1繪示本發明的一實施例的電腦設備的示意圖。 圖2繪示本發明的一實施例的應用程式模組的示意圖。 圖3繪示本發明的一實施例的診斷方法的流程圖。 圖4繪示本發明的另一實施例的診斷方法的流程圖。 圖5繪示本發明的另一實施例的診斷方法的流程圖。 圖6繪示本發明的另一實施例的診斷方法的流程圖。FIG. 1 is a schematic diagram of a computer device according to an embodiment of the present invention. 2 is a schematic diagram of an application module according to an embodiment of the invention. 3 is a flow chart of a diagnostic method in accordance with an embodiment of the present invention. 4 is a flow chart of a diagnostic method according to another embodiment of the present invention. FIG. 5 is a flow chart of a diagnostic method according to another embodiment of the present invention. 6 is a flow chart of a diagnostic method according to another embodiment of the present invention.

Claims (22)

一種電腦設備,具有多個硬體裝置,該電腦設備包括: 一儲存裝置,用以儲存對應於該些硬體裝置的多個診斷模組,並且該些診斷模組用以診斷該些硬體裝置;以及 一處理裝置,耦接該儲存裝置,用以執行一啟動模組,以使該啟動模組執行該些診斷模組來診斷該些硬體裝置,並且該些診斷模組產生多個診斷日誌資料, 其中該啟動模組依據一預設路徑將該些診斷日誌資料寫入至該儲存裝置的一特定位置。A computer device having a plurality of hardware devices, the computer device comprising: a storage device for storing a plurality of diagnostic modules corresponding to the hardware devices, and the diagnostic modules for diagnosing the hardware And a processing device coupled to the storage device for executing a startup module, wherein the activation module executes the diagnostic modules to diagnose the hardware devices, and the plurality of diagnostic modules generate a plurality of Diagnostic log data, wherein the startup module writes the diagnostic log data to a specific location of the storage device according to a preset path. 如申請專利範圍第1項所述的電腦設備,更包括: 一顯示裝置,耦接該處理裝置,其中該處理裝置驅動該顯示裝置,以使該顯示裝置顯示該些診斷日誌資料的一重點部分,並且該硬體裝置更包括該顯示裝置。The computer device of claim 1, further comprising: a display device coupled to the processing device, wherein the processing device drives the display device to cause the display device to display a key portion of the diagnostic log data And the hardware device further includes the display device. 如申請專利範圍第1項所述的電腦設備,其中該啟動模組將該些診斷日誌資料更提供至一日誌收集伺服器,並且該日誌收集伺服器將該些診斷日誌資料寫入至一記憶體, 其中若該些診斷日誌資料的一資料量大於該記憶體的一儲存空間,則該日誌收集伺服器以循環複寫的方式將該些診斷日誌資料依序寫入至該記憶體,以使該記憶體儲存該些診斷日誌資料的一最新部分。The computer device of claim 1, wherein the startup module further provides the diagnostic log data to a log collection server, and the log collection server writes the diagnostic log data to a memory. If the amount of data of the diagnostic log data is greater than a storage space of the memory, the log collection server sequentially writes the diagnostic log data to the memory in a cyclically overwritten manner, so that The memory stores an up-to-date portion of the diagnostic log data. 如申請專利範圍第3項所述的電腦設備,其中該記憶體設置在該電腦設備當中,並且該些硬體裝置更包括該記憶體。The computer device of claim 3, wherein the memory is disposed in the computer device, and the hardware devices further comprise the memory. 如申請專利範圍第3項所述的電腦設備,其中該記憶體設置在外部的另一電腦設備當中,並且該另一電腦設備包括該日誌收集伺服器。The computer device of claim 3, wherein the memory is disposed in another external computer device, and the other computer device includes the log collection server. 如申請專利範圍第3項所述的電腦設備,其中該日誌收集伺服器以有線或無線的資料傳輸方式將該些診斷日誌資料提供至一外部伺服器。The computer device according to claim 3, wherein the log collection server provides the diagnostic log data to an external server by means of wired or wireless data transmission. 如申請專利範圍第3項所述的電腦設備,其中在該些診斷模組診斷該些硬體裝置的過程中,當該些硬體裝置的一當前診斷目標發生異常時,該啟動模組判斷對應於該當前診斷目標的該些診斷模組的其中之一是否完成診斷, 其中若對應於該當前診斷目標的該些診斷模組的其中之一完成診斷,則該啟動模組繼續執行該些診斷模組, 其中若對應於該當前診斷目標的該些診斷模組的其中之一未完成診斷,則該啟動模組將對應於該當前診斷目標的該些診斷模組的其中之一所產生的一片斷診斷日誌資料提供至該日誌收集伺服器,並且該啟動模組停止執行該些診斷模組。The computer device according to claim 3, wherein in the process of diagnosing the hardware devices by the diagnostic modules, when a current diagnostic target of the hardware devices is abnormal, the startup module determines Whether one of the diagnostic modules corresponding to the current diagnostic target completes the diagnosis, wherein if the one of the diagnostic modules corresponding to the current diagnostic target completes the diagnosis, the startup module continues to perform the a diagnostic module, wherein if one of the diagnostic modules corresponding to the current diagnostic target does not complete the diagnosis, the startup module generates one of the diagnostic modules corresponding to the current diagnostic target A piece of diagnostic log data is provided to the log collection server, and the startup module stops executing the diagnostic modules. 如申請專利範圍第1項所述的電腦設備,其中該啟動模組將該些診斷日誌資料更寫入至一外部儲存裝置。The computer device of claim 1, wherein the startup module further writes the diagnostic log data to an external storage device. 一種診斷方法,適用於一電腦設備,其中該電腦設備具有多個硬體裝置,並且該電腦設備包括一儲存裝置以及一處理裝置,其中該診斷方法包括: 藉由該儲存裝置儲存對應於該些硬體裝置的多個診斷模組,並且該些診斷模組用以診斷該些硬體裝置; 藉由該處理裝置執行一啟動模組,以使該啟動模組執行該些診斷模組來診斷該些硬體裝置,並且該些診斷模組產生多個診斷日誌資料;以及 藉由該啟動模組依據一預設路徑將該些診斷日誌資料寫入至該儲存裝置的一特定位置。A diagnostic method for a computer device, wherein the computer device has a plurality of hardware devices, and the computer device includes a storage device and a processing device, wherein the diagnostic method includes: storing, by the storage device, corresponding to the a plurality of diagnostic modules of the hardware device, and the diagnostic modules are configured to diagnose the hardware devices; and the processing device executes a startup module to enable the startup module to execute the diagnostic modules to diagnose The hardware devices, and the diagnostic modules generate a plurality of diagnostic log data; and the diagnostic module writes the diagnostic log data to a specific location of the storage device according to a preset path. 如申請專利範圍第9項所述的診斷方法,其中該電腦設備更包括一顯示裝置,並且該診斷方法更包括: 藉由該處理裝置驅動該顯示裝置,以使該顯示裝置顯示該些診斷日誌資料的一重點部分。The diagnostic method of claim 9, wherein the computer device further comprises a display device, and the diagnostic method further comprises: driving the display device by the processing device to cause the display device to display the diagnostic logs A key part of the information. 如申請專利範圍第9項所述的診斷方法,更包括: 藉由該啟動模組將該些診斷日誌資料更提供至一日誌收集伺服器,並且藉由該日誌收集伺服器將該些診斷日誌資料寫入至一記憶體;以及 若該些診斷日誌資料的一資料量大於該記憶體的一儲存空間,則藉由該日誌收集伺服器以循環複寫的方式將該些診斷日誌資料依序寫入至該記憶體,以使該記憶體儲存該些診斷日誌資料的一最新部分。The diagnostic method of claim 9, further comprising: providing the diagnostic log data to a log collection server by using the startup module, and using the log collection server to record the diagnostic logs The data is written to a memory; and if the amount of data of the diagnostic log data is greater than a storage space of the memory, the log collection server sequentially writes the diagnostic log data in a cyclically overwritten manner. The memory is entered such that the memory stores an up-to-date portion of the diagnostic log data. 如申請專利範圍第11項所述的診斷方法,其中該記憶體設置在該電腦設備當中,並且該些硬體裝置更包括該記憶體。The diagnostic method of claim 11, wherein the memory is disposed in the computer device, and the hardware devices further comprise the memory. 如申請專利範圍第11項所述的診斷方法,其中該記憶體設置在外部的另一電腦設備當中,並且該另一電腦設備包括該日誌收集伺服器。The diagnostic method of claim 11, wherein the memory is disposed in another computer device externally, and the other computer device includes the log collection server. 如申請專利範圍第11項所述的診斷方法,更包括: 藉由該日誌收集伺服器以有線或無線的資料傳輸方式將該些診斷日誌資料提供至一外部伺服器。The diagnostic method of claim 11, further comprising: providing the diagnostic log data to an external server by using the log collection server in a wired or wireless data transmission manner. 如申請專利範圍第11項所述的診斷方法,其中藉由該處理裝置執行該啟動模組,以使該啟動模組執行該些診斷模組來診斷該些硬體裝置,以產生多個診斷日誌資料的步驟包括: 在該些診斷模組診斷該些硬體裝置的過程中,當該些硬體裝置的一當前診斷目標發生異常時,藉由該啟動模組判斷對應於該當前診斷目標的該些診斷模組的其中之一是否完成診斷; 若對應於該當前診斷目標的該些診斷模組的其中之一完成診斷,則藉由該啟動模組繼續執行該些診斷模組;以及 若對應於該當前診斷目標的該些診斷模組的其中之一未完成診斷,則藉由該啟動模組將對應於該當前診斷目標的該些診斷模組的其中之一所產生的一片斷診斷日誌資料提供至該日誌收集伺服器,並且該啟動模組停止執行該些診斷模組。The diagnostic method of claim 11, wherein the activation module is executed by the processing device, so that the activation module executes the diagnostic modules to diagnose the hardware devices to generate a plurality of diagnostics. The step of the log data includes: when the diagnostic modules diagnose the hardware devices, when the current diagnostic target of the hardware devices is abnormal, the startup module determines that the current diagnostic target is corresponding to the current diagnostic target Whether one of the diagnostic modules completes the diagnosis; if one of the diagnostic modules corresponding to the current diagnostic target completes the diagnosis, the execution of the diagnostic module is continued by the activation module; If the one of the diagnostic modules corresponding to the current diagnostic target does not complete the diagnosis, the boot module generates a segment generated by one of the diagnostic modules corresponding to the current diagnostic target Diagnostic log data is provided to the log collection server, and the startup module stops executing the diagnostic modules. 如申請專利範圍第9項所述的診斷方法,更包括: 藉由該啟動模組將該些診斷日誌資料更寫入至一外部儲存裝置。The diagnostic method of claim 9, further comprising: writing the diagnostic log data to an external storage device by using the startup module. 一種非暫時性電腦可讀儲存媒體,用以儲存一啟動模組以載入一電腦設備,其中該電腦設備具有多個硬體裝置,並且該電腦設備包括一儲存裝置以及一處理裝置,其中該儲存裝置儲存對應於該些硬體裝置的多個診斷模組,並且該些診斷模組用以診斷該些硬體裝置,其中該電腦設備執行以下步驟: 藉由該處理裝置執行該啟動模組,以使該啟動模組執行該些診斷模組來診斷該些硬體裝置,並且該些診斷模組產生多個診斷日誌資料;以及 藉由該啟動模組依據一預設路徑將該些診斷日誌資料寫入至該儲存裝置的一特定位置。A non-transitory computer readable storage medium for storing a booting module for loading a computer device, wherein the computer device has a plurality of hardware devices, and the computer device includes a storage device and a processing device, wherein the The storage device stores a plurality of diagnostic modules corresponding to the hardware devices, and the diagnostic modules are used to diagnose the hardware devices, wherein the computer device performs the following steps: executing the startup module by the processing device The boot module executes the diagnostic modules to diagnose the hardware devices, and the diagnostic modules generate a plurality of diagnostic log data; and the diagnostic module performs the diagnostics according to a predetermined path. Log data is written to a specific location of the storage device. 如申請專利範圍第17項所述的非暫時性電腦可讀儲存媒體,其中該電腦設備更包括一顯示裝置,並且該診斷方法更包括: 藉由該處理裝置驅動該顯示裝置,以使該顯示裝置顯示該些診斷日誌資料的一重點部分。The non-transitory computer readable storage medium of claim 17, wherein the computer device further comprises a display device, and the diagnostic method further comprises: driving the display device by the processing device to cause the display The device displays a focus of the diagnostic log data. 如申請專利範圍第17項所述的非暫時性電腦可讀儲存媒體,其中該電腦設備更執行以下步驟: 藉由該啟動模組將該些診斷日誌資料更提供至一日誌收集伺服器,並且藉由該日誌收集伺服器將該些診斷日誌資料寫入至一記憶體;以及 若該些診斷日誌資料的一資料量大於該記憶體的一儲存空間,則藉由該日誌收集伺服器以循環複寫的方式將該些診斷日誌資料依序寫入至該記憶體,以使該記憶體儲存該些診斷日誌資料的一最新部分。The non-transitory computer readable storage medium of claim 17, wherein the computer device further performs the following steps: providing the diagnostic log data to the log collection server by using the startup module, and Writing, by the log collection server, the diagnostic log data to a memory; and if the amount of data of the diagnostic log data is greater than a storage space of the memory, the log collecting server is used to cycle The method of copying writes the diagnostic log data to the memory in order, so that the memory stores an up-to-date part of the diagnostic log data. 如申請專利範圍第19項所述的非暫時性電腦可讀儲存媒體,其中該電腦設備更執行以下步驟: 藉由該日誌收集伺服器以有線或無線的資料傳輸方式將該些診斷日誌資料提供至一外部伺服器。The non-transitory computer readable storage medium of claim 19, wherein the computer device further performs the following steps: providing the diagnostic log data by means of the log collection server by wired or wireless data transmission To an external server. 如申請專利範圍第19項所述的非暫時性電腦可讀儲存媒體,其中藉由該處理裝置執行該啟動模組,以使該啟動模組執行該些診斷模組來診斷該些硬體裝置,以產生多個診斷日誌資料的步驟包括: 在該些診斷模組診斷該些硬體裝置的過程中,當該些硬體裝置的一當前診斷目標發生異常時,藉由該啟動模組判斷對應於該當前診斷目標的該些診斷模組的其中之一是否完成診斷; 若對應於該當前診斷目標的該些診斷模組的其中之一完成診斷,則藉由該啟動模組繼續執行該些診斷模組;以及 若對應於該當前診斷目標的該些診斷模組的其中之一未完成診斷,則藉由該啟動模組將對應於該當前診斷目標的該些診斷模組的其中之一所產生的一片斷診斷日誌資料提供至該日誌收集伺服器,並且該啟動模組停止執行該些診斷模組。The non-transitory computer readable storage medium of claim 19, wherein the startup module is executed by the processing device, so that the startup module executes the diagnostic modules to diagnose the hardware devices. The step of generating a plurality of diagnostic log data includes: when the diagnostic modules diagnose the hardware devices, when the current diagnostic target of the hardware devices is abnormal, the startup module determines Whether one of the diagnostic modules corresponding to the current diagnostic target completes the diagnosis; if one of the diagnostic modules corresponding to the current diagnostic target completes the diagnosis, the execution module continues to execute the The diagnostic module; and if one of the diagnostic modules corresponding to the current diagnostic target does not complete the diagnosis, the activation module corresponds to the diagnostic modules corresponding to the current diagnostic target A generated piece of diagnostic log data is provided to the log collection server, and the activation module stops executing the diagnostic modules. 如申請專利範圍第19項所述的非暫時性電腦可讀儲存媒體,其中該電腦設備更執行以下步驟: 藉由該啟動模組將該些診斷日誌資料更寫入至一外部儲存裝置。The non-transitory computer readable storage medium of claim 19, wherein the computer device further performs the following steps: the diagnostic log data is further written to an external storage device by the startup module.
TW106143661A 2017-12-13 2017-12-13 Computer apparatus, diagnostic method and non-transitory computer-readable storage medium TWI662407B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
TW106143661A TWI662407B (en) 2017-12-13 2017-12-13 Computer apparatus, diagnostic method and non-transitory computer-readable storage medium
CN201810004322.1A CN109918239B (en) 2017-12-13 2018-01-03 Computer apparatus, diagnostic method, and non-transitory computer-readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106143661A TWI662407B (en) 2017-12-13 2017-12-13 Computer apparatus, diagnostic method and non-transitory computer-readable storage medium

Publications (2)

Publication Number Publication Date
TWI662407B TWI662407B (en) 2019-06-11
TW201928669A true TW201928669A (en) 2019-07-16

Family

ID=66959532

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106143661A TWI662407B (en) 2017-12-13 2017-12-13 Computer apparatus, diagnostic method and non-transitory computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN109918239B (en)
TW (1) TWI662407B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI724742B (en) * 2020-01-09 2021-04-11 華碩電腦股份有限公司 Diagnostic system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6385739B1 (en) * 1999-07-19 2002-05-07 Tivo Inc. Self-test electronic assembly and test system
TW200726226A (en) * 2005-12-30 2007-07-01 Li-Kuang Chen Last event digital recording device for a vehicle
CN102737724B (en) * 2011-04-07 2016-04-06 北京大家玩科技有限公司 Nonvolatile random access memory method of testing
US9389941B2 (en) * 2014-02-18 2016-07-12 Netapp, Inc. Methods for diagnosing hardware component failure and devices thereof
CN106909468A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of computer fault diagnosis method based on UEFI firmwares
CN105824730A (en) * 2016-03-16 2016-08-03 北京珠穆朗玛移动通信有限公司 Method and device for diagnosing and repairing hardware

Also Published As

Publication number Publication date
TWI662407B (en) 2019-06-11
CN109918239B (en) 2023-04-14
CN109918239A (en) 2019-06-21

Similar Documents

Publication Publication Date Title
US10929260B2 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
US8291379B2 (en) Runtime analysis of a computer program to identify improper memory accesses that cause further problems
US8290735B2 (en) Test apparatus and test method for universal serial bus interface
JP2014501997A (en) Storage location selection for data storage based on storage location attributes and data usage statistics
TWI759719B (en) Flash memory controller and method used in flash memory controller
CN105468482B (en) Hard disk position identification and fault diagnosis method and server equipment thereof
US20130268744A1 (en) Method for detecting hardware
US20210111967A1 (en) Graphical user interface for traffic capture and debugging tool
US8516311B2 (en) System and method for testing peripheral component interconnect express switch
TWI662407B (en) Computer apparatus, diagnostic method and non-transitory computer-readable storage medium
CN110347639B (en) System on chip and method of operation thereof
TWI802951B (en) Method, computer system and computer program product for storing state data of finite state machine
JP7426269B2 (en) Information processing equipment and information processing system
US9373153B2 (en) Diagnosing graphics display problems
US10922023B2 (en) Method for accessing code SRAM and electronic device
JP2017010431A (en) Debug system
TWI794997B (en) Method and apparatus and computer program product for debugging solid state disk devices
TWI775360B (en) Storage device for recording status of hardware component of computer system and computer implementation method thereof
TWI707229B (en) Test method for built-in memory of computer device
CN113484710B (en) Graphical user interface for traffic capture and debug tool
TWI446177B (en) System and method for testing sas hard disks under efi environment
JP2017122997A (en) Information processing unit, control method for arithmetic processing unit, and control program for arithmetic processing unit
TWI477963B (en) Method for testing client apparatus
CN117370085A (en) Test method, test device, computer equipment and storage medium
JP2005141749A (en) System and method for testing component in computer system using frequency margin