[go: up one dir, main page]

CN109918239B - Computer device, diagnostic method, and non-transitory computer-readable storage medium - Google Patents

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

Info

Publication number
CN109918239B
CN109918239B CN201810004322.1A CN201810004322A CN109918239B CN 109918239 B CN109918239 B CN 109918239B CN 201810004322 A CN201810004322 A CN 201810004322A CN 109918239 B CN109918239 B CN 109918239B
Authority
CN
China
Prior art keywords
diagnostic
diagnosis
log data
modules
module
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201810004322.1A
Other languages
Chinese (zh)
Other versions
CN109918239A (en
Inventor
廖文旭
林淳智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wistron Corp
Original Assignee
Wistron Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wistron Corp filed Critical Wistron Corp
Publication of CN109918239A publication Critical patent/CN109918239A/en
Application granted granted Critical
Publication of CN109918239B publication Critical patent/CN109918239B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The invention provides a computer device, a diagnosis method and a non-transitory computer readable storage medium. The computer equipment comprises 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 the startup module to cause the startup module to execute the diagnostic modules to diagnose the hardware devices. The diagnostic modules generate a plurality of diagnostic log data. The starting module writes the diagnostic log data into a specific position of the storage device according to a preset path. In addition, a diagnostic method and a non-transitory computer readable storage medium are also provided.

Description

电脑设备、诊断方法以及非暂时性电脑可读储存媒体Computer device, diagnostic method, and non-transitory computer-readable storage medium

技术领域technical field

本发明是有关于一种诊断技术,且特别是有关于一种具有自动诊断功能的电脑设备、诊断方法以及非暂时性电脑可读储存媒体。The present invention relates to a diagnosis technology, and in particular to a computer device with automatic diagnosis function, a diagnosis method and a non-transitory computer-readable storage medium.

背景技术Background technique

一般的电脑设备诊断技术需要跑分别执行多个诊断程序来确保各个硬件装置的功能正常。然而,这些测试诊断程序产生的诊断结果和诊断信息会依据不同的储存路径而分散储存在电脑设备的储存装置中,造成电脑设备的测试者需要手动搜集这些诊断结果和诊断信息。并且,若电脑设备的键盘发生故障、屏幕无法显示画面、储存装置故障或是电脑设备完全死当,则电脑设备的测试者将无法取回已经完成的诊断结果和诊断信息,以使电脑设备的测试者需要花费更多的时间检测电脑设备的故障原因。有鉴于此,本发明将在以下提出几个解决方案。The general computer equipment diagnosis technology needs to run and execute a plurality of diagnosis programs respectively to ensure that the functions of each hardware device are normal. However, the diagnostic results and diagnostic information generated by these test diagnostic programs are scattered and stored in the storage device of the computer equipment according to different storage paths, causing the testers of the computer equipment to manually collect the diagnostic results and diagnostic information. Moreover, if the keyboard of the computer equipment fails, the screen cannot display images, the storage device fails or the computer equipment is completely dead, the tester of the computer equipment will not be able to retrieve the completed diagnosis results and diagnostic information, so that the computer equipment Testers need to spend more time to detect the cause of failure of computer equipment. In view of this, the present invention will propose several solutions below.

发明内容Contents of the invention

本发明提供一种电脑设备、诊断方法以及非暂时性电脑可读储存媒体,可有效诊断电脑设备的多个硬件装置,以储存多个诊断日志数据至储存装置的特定位置。因此,本发明的电脑设备可提供使用者便利且有效的电脑设备诊断功能,并且安全地记录电脑设备的诊断日志数据。The invention provides a computer device, a diagnosis method and a non-transitory computer-readable storage medium, which can effectively diagnose multiple hardware devices of the computer device, and store multiple diagnostic log data to a specific location of the storage device. Therefore, the computer device of the present invention can provide users with a convenient and effective computer device diagnosis function, and safely record the diagnosis log data of the computer device.

本发明的电脑设备具有多个硬件装置。电脑设备包括储存装置以及处理装置。储存装置用以储存对应于这些硬件装置的多个诊断模块。这些诊断模块用以诊断这些硬件装置。处理装置耦接储存装置。处理装置用以执行启动模块,以使启动模块执行这些诊断模块来诊断这些硬件装置。这些诊断模块产生多个诊断日志数据,其中这些硬件装置包括储存装置以及处理装置。启动模块依据预设路径将这些诊断日志数据写入至储存装置的特定位置。The computer equipment of the present invention has a plurality of hardware devices. Computer equipment includes storage devices and processing devices. The storage device is used for storing a plurality of diagnostic modules corresponding to the hardware devices. The diagnosis modules are used for diagnosing the hardware devices. The processing device is coupled to the storage device. The processing device is used for executing the startup module, so that the startup module executes the diagnostic modules to diagnose the hardware devices. The 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 into 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. Computer equipment includes storage devices and processing devices. The diagnostic method includes the following steps: store a plurality of diagnostic modules corresponding to these hardware devices through a storage device, and these diagnostic modules are used to diagnose these hardware devices; execute the startup module through a processing device, so that the startup module executes these diagnostic modules to diagnose these hardware devices hardware device. These diagnostic modules generate a plurality of diagnostic log data; and write the diagnostic log data to a specific location of the storage device through the startup module according to a preset path.

本发明的非暂时性电脑可读储存媒体用以储存启动模块以载入电脑设备。电脑设备具有多个硬件装置,电脑设备包括储存装置以及处理装置。储存装置储存对应于这些硬件装置的多个诊断模块,并且这些诊断模块用以诊断这些硬件装置。电脑设备执行以下步骤:通过处理装置执行启动模块,以使启动模块执行这些诊断模块来诊断这些硬件装置,并且这些诊断模块产生多个诊断日志数据;以及通过启动模块依据预设路径将这些诊断日志数据写入至储存装置的特定位置。The non-transitory computer-readable storage medium of the present invention is used for storing the startup module to be loaded into the computer device. The computer equipment has multiple hardware devices, and the computer equipment 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 equipment performs the following steps: execute the startup module through the processing device, so that the startup module executes these diagnostic modules to diagnose these hardware devices, and these diagnostic modules generate a plurality of diagnostic log data; Data is written to a specific location on the storage device.

基于上述,本发明的电脑设备以及诊断方法可有效率地执行多个诊断模块,以有效率地诊断电脑设备,并且可将这些诊断日志数据储存至电脑设备的储存装置的相同的一个特定位置,以让使用者可便利且快速的掌握电脑设备的诊断结果。Based on the above, the computer equipment and the diagnostic method of the present invention can efficiently execute multiple diagnostic modules to efficiently diagnose the computer equipment, and can store these diagnostic log data to the same specific location of the storage device of the computer equipment, In order to allow the user to grasp the diagnosis result of the computer equipment conveniently and quickly.

为让本发明的上述特征和优点能更明显易懂,下文特举实施例,并配合所附图式作详细说明如下。In order to make the above-mentioned features and advantages of the present invention more comprehensible, the following specific embodiments are described in detail together with the accompanying drawings.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are only some embodiments of the present invention, and those skilled in the art can also obtain other drawings based on these drawings without any creative effort.

图1绘示本发明的一实施例的电脑设备的示意图。FIG. 1 is a schematic diagram of a computer device according to an embodiment of the present invention.

图2绘示本发明的一实施例的应用程序模块的示意图。FIG. 2 is a schematic diagram of an application module according to an embodiment of the present invention.

图3绘示本发明的一实施例的诊断方法的流程图。FIG. 3 is a flowchart of a diagnostic method according to an embodiment of the present invention.

图4绘示本发明的另一实施例的诊断方法的流程图。FIG. 4 is a flowchart of a diagnosis method according to another embodiment of the present invention.

图5绘示本发明的另一实施例的诊断方法的流程图。FIG. 5 is a flowchart of a diagnosis method according to another embodiment of the present invention.

图6绘示本发明的另一实施例的诊断方法的流程图。FIG. 6 is a flowchart of a diagnosis method according to another embodiment of the present invention.

附图标号:Figure number:

100:电脑设备100: computer equipment

110:处理装置110: Processing device

120:储存装置120: storage device

130:显示装置130: display device

200:应用程序模块200: Application Module

210:启动模块210: start 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:步骤S301~S310, S401~S409, S501~S512, S610, S620, S630: steps

具体实施方式Detailed ways

为了使本发明的内容可以被更容易明了,以下特举实施例做为本发明确实能够据以实施的范例。另外,凡可能之处,在图式及实施方式中使用相同标号的元件/构件/步骤,代表相同或类似部件。In order to make the content of the present invention more comprehensible, the following specific embodiments are taken as examples in which the present invention can indeed be implemented. In addition, wherever possible, elements/components/steps with the same reference numerals are used in the drawings and embodiments to represent the same or similar parts.

图1绘示本发明的一实施例的电脑设备的示意图。参考图1,电脑设备100包括处理装置110、储存装置120以及显示装置130。处理装置110耦接储存装置120以及显示装置130。在本实施例中,储存装置120用以储存对应于电脑设备100的多个硬件装置的多个诊断模块,并且这些诊断模块用以诊断这些硬件装置。在本实施例中,这些硬件装置可例如包括处理装置110、储存装置120以及显示装置130,但本发明并不限于此。在一实施例中,这些硬件装置例如包括处理器(Processor)、存储器(Memory)、主机板(Motherboard)、显示卡(VideoGraphics 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 , a 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 used to store a plurality of diagnostic modules corresponding to a plurality of hardware devices of the computer device 100 , and the diagnostic modules are used to diagnose the hardware devices. In this embodiment, these hardware devices may include, for example, the processing device 110 , the storage device 120 and the display device 130 , but the invention is not limited thereto. In one embodiment, these hardware devices include, for example, a processor (Processor), a memory (Memory), a motherboard (Motherboard), a display card (VideoGraphics Array), a hard disk (Hard disk), a CD player (CD player), a sound player Device (audio player), Bluetooth (Bluetooth), network card (Network card), USB interface card, keyboard (Keyboard), mouse (Mouse) or touch pad (Touch pad), etc.

在本实施例中,处理装置110执行启动模块,以使启动模块依序、不依序、依使用者指定或随机的方式执行这些诊断模块,本发明并不加以限制。在一实施例中,这些诊断模块的执行方式亦可视实际设备情况而定。来诊断这些硬件装置,以产生多个诊断日志(log)数据。在本实施例中,启动模块依据预设路径将这些诊断日志数据写入至储存装置120的特定位置,其中预设路径例如是指在硬盘的特定磁碟区域中的特定储存空间的地址。换句话说,使用者可通过作业系统(Operating system,OS)文件管理功能于一个特定数据夹当中来取得这些不同的诊断模块所各自产生的这些诊断日志数据。并且,在本实施例中,处理装置110依据这些诊断日志数据使显示装置130显示对应的诊断信息。也就是说,本实施例的启动模块可将这些诊断模块各自产生的分散的诊断日志数据依序整合并且储存至储存装置120的特定位置,以利于电脑设备制造者或使用者可有效地且快速地掌握电脑设备的诊断结果。In this embodiment, the processing device 110 executes the start-up module, so that the start-up module executes these diagnostic modules sequentially, non-sequentially, as specified by the user, or randomly, which is not limited by the present invention. In an embodiment, the execution methods of these diagnostic modules may also depend on actual equipment conditions. To diagnose these hardware devices to generate a plurality of diagnostic log (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, wherein the preset path refers to an address of a specific storage space in a specific disk area of the hard disk, for example. In other words, the user can obtain the diagnostic log data generated by the different diagnostic modules in a specific folder through the file management function of the operating system (OS). Moreover, in this embodiment, the processing device 110 causes the display device 130 to display corresponding diagnostic information according to the diagnostic log data. That is to say, the start-up module of this embodiment can sequentially integrate and store the scattered diagnostic log data generated by each of these diagnostic modules into a specific location of the storage device 120, so that computer equipment manufacturers or users can effectively and quickly Accurately grasp the diagnostic 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 (Central Processing Unit, CPU), a system single chip (System on Chip, SOC) or other programmable general purpose or special purpose microprocessor (microprocessor ), digital signal processor (Digital Signal Processor, DSP), programmable controller, application specific integrated circuit (Application Specific Integrated Circuits, ASIC), programmable logic device (Programmable Logic Device, PLD), other similar processing devices or a combination of these devices.

在本实施例中,储存装置120例如是软盘机(Floppy Drive)、硬盘机(HardDrive)、只读光碟机(CD-ROM)或光碟机(Optical Drive)等。在本实施例中,储存装置120预先储存这些诊断模块。这些诊断模块例如是由各硬件装置制造商提供的检测软件。处理装置110可用以读取并执行储存装置120的这些诊断模块。在本实施例中,启动模块为一种log启动器(log launcher),启动模块可储存在储存装置120或另一外接储存装置。在一实施例中,启动模块亦可储存在一个非暂时性电脑可读储存媒体(Non-transitory Computer-readable Storage Medium)当中,以通过载入电脑设备100来实现本发明各实施例所述的诊断方法。In this embodiment, the storage device 120 is, for example, a Floppy Drive, a Hard Drive, a CD-ROM, 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 various hardware device manufacturers. The processing device 110 can be used to read and execute the diagnostic modules of the 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 one embodiment, the startup module can also be stored in a non-transitory computer-readable storage medium (Non-transitory Computer-readable Storage Medium), so as to realize the described in each embodiment of the present invention by loading the computer device 100 diagnosis 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 other hardware devices, the user only needs to set the configuration file of the startup module to add the new diagnostic module to the execution sequence of the startup module. Therefore, the computer device 100 can conveniently load the newly added diagnostic module without performing additional settings or additionally executing the newly added 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 connected externally 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, so as to display 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 grasp the diagnostic results of the hardware devices of the computer device 100 instantly 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的各实施例的诊断方法来对应调整或变形。FIG. 2 is a schematic diagram of an application module according to an embodiment of the present invention. Referring to FIG. 1 and FIG. 2 , the processing device 110 executes the application program module 200 , wherein the application program module 200 includes a startup module 210 , a diagnosis module 220 and a log collection server 230 . In this embodiment, the log collection server 230 is computer software for a file server, and the log collection server 230 is used to provide file management services. In this embodiment, these modules and servers in the application module 200 can be respectively stored in the storage device 120 or an external storage device, so that the processing device 110 can read and execute them. 2 shows various possible storage destinations of diagnostic log data F1 and F2 generated by these modules and servers after the processing device 110 executes these modules and servers in the application program module 200 . The storage method of the diagnostic log data F1, F2 of the present invention is not limited to that shown in FIG. 2, and the specific storage method of the diagnostic log data F1, F2 can be correspondingly adjusted or modified, for example, according to the diagnostic methods of the embodiments shown in FIG. 3 to FIG. 6 below.

在本实施例中,处理装置110执行启动模块210,以使启动模块210驱动诊断模块220。诊断模块220通过重新定向(redirect)机制将具有诊断日志数据内容的标准输出串流(standard output,stdout)以及标准错误输出串流(standard error,stderr)提供至启动模块210,以使启动模块210可依据预设的预设路径将诊断日志数据F1写入至储存装置120的特定位置。In this embodiment, the processing device 110 executes the startup module 210 so that the startup module 210 drives the diagnosis module 220 . The diagnostic module 220 provides a standard output stream (standard output, stdout) and a standard error output stream (standard error, stderr) with diagnostic log data content to the startup module 210 through a redirection (redirect) mechanism, so that the startup module 210 The diagnostic log data F1 can be written to a specific location of the storage device 120 according to a preset path.

在本实施例中,诊断日志数据F1的其中一部分可显示于显示装置130,以使显示装置130显示相关重要诊断信息或诊断结果。举例而言,显示装置130可显示硬件装置的诊断结果,例如装置正常、装置故障、装置效能或装置型号等诊断信息。在一实施例中,显示装置130亦可显示全部的诊断日志数据F1的内容。此外,启动模块210可进一步将诊断日志数据F1写入至外部储存装置310,以将诊断日志数据F1备份至外部储存装置310。也就是说,若储存装置120发生损坏,则使用者可通过读取外部储存装置310来取得备份的诊断日志数据F1。In this embodiment, a part of the diagnostic log data F1 can be displayed on the display device 130 , so that the display device 130 can display relevant important diagnostic information or diagnostic results. For example, the display device 130 can display diagnostic results of hardware devices, such as diagnostic information such as device normality, device failure, device performance, or device model. In an embodiment, the display device 130 can also display the contents of all diagnostic log data F1. In addition, the startup module 210 can further write the diagnostic log data F1 into the external storage device 310 , so as 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 diagnosis 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 used to collect log files (log files) generated by the diagnosis module 220 and the log collection server 230 . The startup module 210 can provide relevant important diagnostic information or diagnostic results displayed on the display device 130 to the log collection server 230, so that the log collection server 230 can sort out these diagnostic information or diagnostic results, so that the data transmission module of the computer equipment 100 can send The diagnostic log data F2 is provided to the external server 320 . The log collection server 230 is used for efficiently backing 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 diagnostic results through the external server 320 . In addition, the log collection server 230 can further write the diagnostic log data F2 into the memory 330 sequentially. 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 is worth noting that, in this embodiment, if the data volume of multiple pieces of diagnostic log data generated by multiple diagnostic modules is greater than the storage space of the memory 330, the log collection server 230 will rewrite the multiple pieces of diagnostic log data in a circular way. Write to the memory 330 sequentially, so that the memory 330 stores the latest part of the diagnostic log data F2.

在本实施例中,诊断日志数据F1与诊断日志数据F2的数据量不同。诊断日志数据F1为诊断模块220所产生的一部分或全部的诊断数据以及内容,并且显示于显示装置130。诊断日志数据F2为取自诊断日志数据F1当中较为重要的数据内容,但本发明并不限于此。在一实施例中,诊断日志数据F1与诊断日志数据F2也可以是具有相同内容的日志数据。In this embodiment, the diagnostic log data F1 and the diagnostic log data F2 differ in data size. The diagnosis log data F1 is part or all of the diagnosis data and content generated by the diagnosis module 220 and displayed on the display device 130 . The diagnosis log data F2 is the more important data content obtained from the diagnosis 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 with 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 (Dynamic Random Access Memory, DRAM), a flash memory (Flash memory) or a non-volatile random access memory (Non-Volatile Random Access Memory, NVRAM), etc., wherein The memory 330 may belong to a hardware device of the computer device 100 . That is to say, the log collection server 230 can store the diagnosis log data F2 in the local memory 330 , 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 through the data transmission module, so that the user can receive the diagnostic log data F2 provided by the startup module 210 through another computer device. Moreover, the memory 330 may also belong to the hardware device of this other computer device. That is to say, the user can back up the diagnosis log data F2 through this other computer device.

在本实施例中,上述的数据传输模块可例如是包括有线或无线的传输介面,例如Wi-Fi介面、蓝牙(Bluetooth)介面、近场通信(Near Field Communication,NFC)介面、同轴电缆(Coaxial cable)介面、光纤(Optical fiber)介面或通用序列总线(UniversalSerial Bus,USB)介面等,本发明并不加以限制。In this embodiment, the above-mentioned data transmission module may, for example, include a wired or wireless transmission interface, such as a Wi-Fi interface, a Bluetooth (Bluetooth) interface, a Near Field Communication (Near Field Communication, NFC) interface, a coaxial cable ( Coaxial cable) interface, optical fiber (Optical fiber) interface or universal serial bus (Universal Serial Bus, USB) interface, etc., the present 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 various data backup solutions, but the computer equipment and the diagnosis method of the present invention are not limited thereto. That is to say, at least one of the external storage device 310 , the external server 320 and the memory 330 can be selectively configured in the computer equipment and the diagnosis method of the present invention. In other words, the computer equipment and the diagnosis 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 diagnosis requirements or diagnosis environments. Moreover, in order to enable those skilled in the art to further understand the multiple implementation aspects of the computer device and the diagnostic method of the present invention, the flow charts of multiple diagnostic methods in FIG. 3 to FIG. 6 are presented below to illustrate them respectively.

图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。FIG. 3 is a flowchart of a diagnostic method according to an embodiment of the present invention. Referring to FIG. 1 , FIG. 2 and FIG. 3 , the diagnostic method of this embodiment is applicable to the computer device 100 in the embodiment of FIG. 1 and the application program module 200 in FIG. 2 . 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 diagnosis module 220 to diagnose one of the multiple hardware devices of the computer device 100 . In step S303, the startup module 210 provides relevant important diagnostic information or diagnostic results (diagnostic log data that has not been organized) displayed on the display device 130 to the log collection server 230, and the log collection server 230 writes the diagnostic log data F2 into The memory 330 of the computer device 100 . In step S304 , the processing device 110 determines whether the current diagnosis target of these hardware devices is abnormal, for example, cannot operate normally, is damaged, or cannot execute a specific function. If yes, the processing device 110 executes step S305. If not, the processing device 110 executes 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 yes, the processing device 110 executes step S306. If not, the processing device 110 executes step S310 to end the diagnosis. In step S306, the log collection server 230 provides the diagnosis log data F2 to the external server 320 through the data transmission module, and the processing device 110 executes 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 diagnosis module 220 completes the diagnosis. If the diagnosis module 220 has not completed the diagnosis, the processing device 110 re-executes step S304 until the diagnosis module 220 completes the diagnosis. If the diagnosis module 220 completes the diagnosis, the processing device 110 executes step S308. In step S308 , the startup module 210 writes the diagnostic log data F1 into a specific location of the storage device 120 , and the processing device 110 executes 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 be executed. If yes, the processing device 110 executes step S310 to end the diagnosis. If not, the processing device 110 executes step S302 again, so that the startup module 210 continues to execute the next diagnosis module. That is to say, the diagnostic method of this embodiment can store the diagnostic log data F1 in a specific location of the storage device 120 , and can back up the diagnostic log data F2 to the external server 320 and the local memory 330 through the data transmission module. Therefore, if the computer device 100 fails, the user can still obtain the latest diagnostic log data F2 of the computer device 100 through the external server 320 and the local memory 330 .

图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。FIG. 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 this embodiment is applicable to the computer device 100 in the embodiment of FIG. 1 and the application program module 200 in FIG. 2 . 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 diagnosis module 220 to diagnose one of the multiple hardware devices of the computer device 100 . In step S403, the startup module 210 provides relevant important diagnostic information or diagnostic results (diagnostic log data that has not been organized) displayed on the display device 130 to the log collection server 230 of another computer device, and the log collection server 230 sends the diagnostic log Data F2 is written to the memory of this other computer device. In step S404, the processing device 110 judges whether the current diagnosis target of these hardware devices is abnormal. If yes, the processing device 110 executes step S405. If not, the processing device 110 executes 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 provides the diagnosis log data F2 to the external server 320, and the processing device 110 executes step S409 to end the diagnosis. In step S306, the processing device 110 determines whether the diagnosis module 220 completes the diagnosis. If the diagnosis module 220 has not completed the diagnosis, the processing device 110 re-executes step S404 until the diagnosis module 220 completes the diagnosis. If the diagnosis module 220 completes the diagnosis, the processing device 110 executes step S407. In step S407 , the startup module 210 writes the diagnosis log data F1 into a specific location of the storage device 120 , and the processing device 110 executes 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 diagnosis module to be executed. If yes, the processing device 110 executes step 409 to end the diagnosis. If not, the processing device 110 executes step S402 again, so that the startup module 210 continues to execute the next diagnosis module. That is to say, the diagnostic method of this embodiment can store the diagnostic log data F1 in 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 through the data transmission module. Therefore, compared with the embodiment in FIG. 3 , if the computer device 100 fails, the user can still obtain the latest diagnostic log data F2 of the computer device 100 through the external server 320 and the storage of the other computer device. In other words, this other computer device may be, for example, a testing system or device of a computer device manufacturer. When the user diagnoses the computer equipment 100 , the detection system or device can be operated to diagnose the computer equipment 100 , so as to effectively diagnose whether the hardware device of the computer equipment 100 is normal before the computer equipment 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 this embodiment is applicable to the computer device 100 in the embodiment of FIG. 1 and the application program module 200 in FIG. 2 . In step S501 , the processing device 110 of the computer device 100 executes the startup module 210 . In step S502 , the startup module 210 executes the diagnosis module 220 to diagnose one of the multiple hardware devices of the computer device 100 . In step S503, the startup module 210 provides relevant important diagnostic information or diagnostic results (diagnostic log data that has not been organized) 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 The server 230 writes the diagnostic log data F2 to the memory of the other computer device. In step S504, the processing device 110 judges whether the current diagnosis target of these hardware devices is abnormal. If yes, the processing device 110 executes step S505. If not, the processing device 110 executes 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 yes, the processing device 110 executes step S508. If not, the processing device 110 executes 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 executes 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 executes 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 diagnosis module 220 completes the diagnosis. If the diagnosis module 220 has not completed the diagnosis, the processing device 110 re-executes step S504 until the diagnosis module 220 completes the diagnosis. If the diagnosis module 220 completes the diagnosis, the processing device 110 executes step S510. In step S510 , the startup module 210 writes the diagnostic log data F1 into a specific location of the storage device 120 , and the processing device 110 executes 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 diagnosis module to be executed. If yes, the processing device 110 executes step 512 to end the diagnosis. If not, the processing device 110 executes step S502 again, so that the startup module 210 continues to execute the next diagnosis module. That is to say, compared with the embodiments shown in FIG. 3 and FIG. 4 , the diagnosis method of this embodiment can store the diagnosis log data F1 in a specific location of the storage device 120 and the external storage device 310 , and can back up the diagnosis log through the data transmission module. Data F2 to the memory of the external server 320 and another computer device. Therefore, if the computer device 100 fails, the user can still 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 equipment also fail, the user can also connect the external storage device 310 through another computer equipment to obtain the diagnostic log data F1.

图6绘示本发明的另一实施例的诊断方法的示意图。参考图1以及图6,本实施例的诊断方法可适用于图1实施例的电脑设备100。在步骤S610中,电脑设备100通过储存装置120储存对应于多个硬件装置的多个诊断模块,并且这些诊断模块用以诊断这些硬件装置。在步骤S620中,电脑设备100通过处理装置110执行启动模块,以使启动模块执行这些诊断模块来诊断这些硬件装置,并且这些诊断模块产生多个诊断日志数据。在步骤S630中,电脑设备100通过启动模块依据预设路径将这些诊断日志数据写入至储存装置120的特定位置。因此,本实施例的诊断方法可有效率地执行这些诊断模块,并且整合这些诊断日志数据,以让使用者可快速掌握并取得这些诊断日志数据。FIG. 6 is a schematic diagram of a diagnostic method according to another embodiment of the present invention. Referring to FIG. 1 and FIG. 6 , the diagnostic method of this embodiment can be applied to the computer device 100 in the embodiment of FIG. 1 . In step S610 , the computer device 100 stores a plurality of diagnostic modules corresponding to a plurality of hardware devices through the storage device 120 , and these diagnostic modules are used to diagnose the hardware devices. In step S620, the computer device 100 executes the startup module through 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 into a specific location of the storage device 120 through the startup module according to a preset path. Therefore, the diagnostic method of this 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, regarding other device features, implementation details and technical means of the computer device 100 of this embodiment, sufficient teachings, suggestions and implementation descriptions can be obtained by referring to the above-mentioned embodiments in FIGS.

综上所述,本发明的电脑设备以及诊断方法可有效率地执行多个诊断模块,以产生多个诊断日志数据,并且安全地记录电脑设备的诊断日志数据。本发明的电脑设备以及诊断方法可将这些诊断日志数据储存至电脑设备的储存装置的相同的一个特定位置,以让使用者可便利且快速的掌握电脑设备的诊断结果。此外,本案发明的电脑设备以及诊断方法还可进一步将这些诊断日志数据备份至本机的存储器、外部的存储器、外部的储存装置或外部的服务器等,以安全地记录电脑设备的诊断日志数据。To sum up, the computer device and the diagnostic method of the present invention can efficiently execute multiple diagnostic modules to generate multiple diagnostic log data, and securely record the diagnostic log data of the computer device. The computer equipment and the diagnostic method of the present invention can store the diagnostic log data in the same specific location of the storage device of the computer equipment, so that the user can conveniently and quickly grasp the diagnosis results of the computer equipment. In addition, the computer equipment and diagnostic method of the present invention can further back up the diagnostic log data to the local memory, external memory, external storage device or external server, etc., so as to safely record the diagnostic log data of the computer equipment.

虽然本发明已以实施例揭露如上,然其并非用以限定本发明,任何所属技术领域中相关技术人员,在不脱离本发明的精神和范围内,当可作些许的更动与润饰,故本发明的保护范围当视权利要求所界定者为准。Although the present invention has been disclosed as above with the embodiments, it is not intended to limit the present invention. Anyone skilled in the art can make some modifications and modifications without departing from the spirit and scope of the present invention. The scope of protection of the present invention should be defined by the claims.

Claims (22)

1. A computer apparatus having a plurality of hardware devices, the computer apparatus comprising:
the storage device is used for storing a plurality of diagnosis modules corresponding to the hardware devices, and the diagnosis modules are used for diagnosing the hardware devices; and
a processing device coupled to the storage device for executing a start module to make the start module execute the diagnosis modules to diagnose the hardware devices, and the diagnosis modules generate a plurality of diagnosis log data,
the starting module writes the diagnostic log data into a specific position of the storage device according to a preset path; the preset path comprises the address of a specific storage space in a specific disk area of the hard disk;
the writing the diagnostic log data into the specific location of the storage device through the starting module according to the preset path includes:
the starting module stores the scattered diagnostic log data generated by the diagnostic modules to the specific position of the storage device according to the preset path.
2. 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 display a key portion of the diagnostic log data, and the hardware device further includes the display device.
3. The computer apparatus of claim 1, wherein the boot 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 data volume of the diagnostic log data is larger than the storage space of the memory, the log collection server writes the diagnostic log data into the memory in a cyclic duplication mode in sequence so that the memory stores a latest part of the diagnostic log data.
4. The computer apparatus of claim 3, wherein the memory is disposed in the computer apparatus, and the hardware devices further comprise the memory.
5. The computer device as claimed in claim 3, wherein the memory is provided in another computer device externally, and the another computer device includes the log collecting server.
6. The computer apparatus of claim 3, wherein the log collection server provides the diagnostic log data to an external server via wired or wireless data transmission.
7. The computer apparatus of claim 3, wherein during the diagnosis of the hardware devices by the diagnosis modules, when a current diagnosis target of the hardware devices is abnormal, the start module determines whether one of the diagnosis modules corresponding to the current diagnosis target completes the diagnosis,
wherein if one of the diagnostic modules corresponding to the current diagnostic target completes diagnosis, the start module continues to execute the diagnostic modules,
wherein if one of the diagnostic modules corresponding to the current diagnostic target does not complete diagnosis, the start module provides a piece of diagnostic log data generated by the one of the diagnostic modules corresponding to the current diagnostic target to the log collection server, and the start module stops executing the diagnostic modules.
8. The computer apparatus of claim 1, wherein the boot module further writes the diagnostic log data to an external storage device.
9. A diagnosis method for a computer device having a plurality of hardware devices, the computer device including a storage device and a processing device, the diagnosis method comprising:
storing a plurality of diagnostic modules corresponding to the hardware devices through the storage device, wherein the diagnostic modules are used for diagnosing the hardware devices;
executing a starting module through the processing device so that the starting module executes the diagnosis modules to diagnose the hardware devices, and the diagnosis modules generate a plurality of diagnosis log data; and
writing the diagnostic log data into a specific position of the storage device through the starting module according to a preset path, wherein the preset path comprises an address of a specific storage space in a specific disk area of a hard disk;
wherein, writing the diagnostic log data into the specific location of the storage device according to the predetermined path through the start module includes:
the starting module stores the scattered diagnostic log data generated by the diagnostic modules to the specific position of the storage device according to the preset path.
10. The method of claim 9, wherein the computer device further comprises a display device, and the method further comprises:
the display device is driven by the processing device so as to display a key part of the diagnosis log data.
11. The diagnostic method of claim 9, further comprising:
providing the diagnostic log data to a log collection server through the starting module, and writing the diagnostic log data into a memory through the log collection server; and
if the data volume of the diagnostic log data is larger than the storage space of the memory, the diagnostic log data are sequentially written into the memory in a cyclic duplication mode through the log collection server, so that the memory stores a latest part of the diagnostic log data.
12. The method of claim 11, wherein the memory is disposed in the computer device, and the hardware devices further comprise the memory.
13. The method as claimed in claim 11, wherein the memory is provided in another computer device which is external, and the another computer device includes the log collecting server.
14. The diagnostic method of claim 11, further comprising:
the diagnostic log data is provided to an external server through the log collection server in a wired or wireless data transmission manner.
15. The method as claimed in claim 11, wherein the step of executing the boot module by the processing device to make the boot module execute the diagnostic modules to diagnose the hardware devices to generate a plurality of diagnostic log data comprises:
in the process of diagnosing the hardware devices by the diagnosis modules, when a current diagnosis target of the hardware devices is abnormal, judging whether one of the diagnosis modules corresponding to the current diagnosis target completes diagnosis or not by the starting module;
if one of the diagnosis modules corresponding to the current diagnosis target completes diagnosis, the starting module continues to execute the diagnosis modules; and
if one of the diagnostic modules corresponding to the current diagnostic target does not complete diagnosis, providing a piece of diagnostic log data generated by one of the diagnostic modules corresponding to the current diagnostic target to the log collection server through the starting module, and stopping executing the diagnostic modules by the starting module.
16. The diagnostic method of claim 9, further comprising:
the diagnostic log data is further written into an external storage device through the starting module.
17. A non-transitory computer readable storage medium storing a boot module for loading into a computer apparatus, wherein the computer apparatus has a plurality of hardware devices, and the computer apparatus comprises a storage device and a processing device, wherein the storage device stores a plurality of diagnostic modules corresponding to the hardware devices, and the diagnostic modules are configured to diagnose the hardware devices, wherein the computer apparatus performs the following steps:
executing the startup module through 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
writing the diagnostic log data into a specific position of the storage device through the starting module according to a preset path; the preset path comprises the address of a specific storage space in a specific disk area of the hard disk;
the writing the diagnostic log data into the specific location of the storage device through the starting module according to the preset path includes:
the starting module stores the scattered diagnostic log data generated by the diagnostic modules to the specific position of the storage device according to the preset path.
18. The non-transitory computer readable storage medium of claim 17, wherein the computing device further comprises a display device, and the computing device further performs the steps of:
the display device is driven by the processing device so as to display a key part of the diagnosis log data.
19. The non-transitory computer readable storage medium of claim 17, wherein the computing device further performs the steps of:
providing the diagnostic log data to a log collection server through the starting module, and writing the diagnostic log data into a memory through the log collection server; and
if the data volume of the diagnostic log data is larger than the storage space of the memory, the diagnostic log data are sequentially written into the memory in a cyclic duplication mode through the log collection server, so that the memory stores a latest part of the diagnostic log data.
20. The non-transitory computer readable storage medium of claim 19, wherein the computing device further performs the steps of:
the diagnostic log data is provided to an external server through the log collection server in a wired or wireless data transmission manner.
21. The non-transitory computer readable storage medium of claim 19, wherein the step of generating a plurality of diagnostic log data by the processing device executing the boot module to cause the boot module to execute the diagnostic modules to diagnose the hardware devices comprises:
in the process of diagnosing the hardware devices by the diagnosis modules, when a current diagnosis target of the hardware devices is abnormal, judging whether one of the diagnosis modules corresponding to the current diagnosis target completes diagnosis or not by the starting module;
if one of the diagnosis modules corresponding to the current diagnosis target completes diagnosis, the starting module continues to execute the diagnosis modules; and
if one of the diagnostic modules corresponding to the current diagnostic target does not complete diagnosis, providing a piece of diagnostic log data generated by one of the diagnostic modules corresponding to the current diagnostic target to the log collection server through the starting module, and stopping executing the diagnostic modules by the starting module.
22. The non-transitory computer readable storage medium of claim 19, wherein the computing device further performs the steps of:
the diagnostic log data is further written into an external storage device through the starting module.
CN201810004322.1A 2017-12-13 2018-01-03 Computer device, diagnostic method, and non-transitory computer-readable storage medium Active CN109918239B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
TW106143661 2017-12-13
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
CN109918239A CN109918239A (en) 2019-06-21
CN109918239B true CN109918239B (en) 2023-04-14

Family

ID=66959532

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810004322.1A Active CN109918239B (en) 2017-12-13 2018-01-03 Computer device, 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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737724A (en) * 2011-04-07 2012-10-17 鸿富锦精密工业(深圳)有限公司 System and method for testing nonvolatile random access memory (NVRAM)
CN105824730A (en) * 2016-03-16 2016-08-03 北京珠穆朗玛移动通信有限公司 Method and device for diagnosing and repairing hardware
CN106909468A (en) * 2015-12-22 2017-06-30 中电科技(北京)有限公司 A kind of computer fault diagnosis method based on UEFI firmwares

Family Cites Families (3)

* 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
US9389941B2 (en) * 2014-02-18 2016-07-12 Netapp, Inc. Methods for diagnosing hardware component failure and devices thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102737724A (en) * 2011-04-07 2012-10-17 鸿富锦精密工业(深圳)有限公司 System and method for testing nonvolatile random access memory (NVRAM)
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
CN109918239A (en) 2019-06-21
TWI662407B (en) 2019-06-11
TW201928669A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
KR102773346B1 (en) Traffic capture and debugging tools for identifying root causes of device failure during automated testing
CN100524241C (en) Multi-operating system platform integration test method
US20130268744A1 (en) Method for detecting hardware
US10802847B1 (en) System and method for reproducing and resolving application errors
JP2014501997A (en) Storage location selection for data storage based on storage location attributes and data usage statistics
KR101240634B1 (en) Apparatus for fail detecting in solid state drive tester
CN113742153A (en) Equipment testing method and device, readable medium and electronic equipment
CN103455397A (en) System self-test method, equipment and system
CN116340076B (en) Hard disk performance test method, device and medium
US20210111967A1 (en) Graphical user interface for traffic capture and debugging tool
US20140164845A1 (en) Host computer and method for testing sas expanders
CN109918239B (en) Computer device, diagnostic method, and non-transitory computer-readable storage medium
CN111858116A (en) An information recording method, apparatus, device and readable storage medium
US8516311B2 (en) System and method for testing peripheral component interconnect express switch
CN111190791A (en) Application exception reporting method and device and electronic equipment
CN118155698A (en) Data testing method, electronic equipment and storage medium
KR20130019432A (en) Replaying architectural execution with a probeless trace capture
KR101938202B1 (en) A method of collectively managing the occurrence of errors in the hardware included in the computer system and performing backup and recovery to inform the external terminal
KR101941105B1 (en) A method of collectively managing the occurrence of errors in the hardware included in the computer system and performing backup and recovery to inform the external terminal
US9373153B2 (en) Diagnosing graphics display problems
US10811115B1 (en) Test method for built-in memory in computer device
TWI446177B (en) System and method for testing sas hard disks under efi environment
CN110825572A (en) Method, device and system for detecting I2C equipment address and electronic equipment
CN117369905B (en) Starting method and system of flash memory platform, electronic equipment and storage medium
US8645774B2 (en) Expedited memory drive self test

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant