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 PDFInfo
- 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
Links
Images
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
技术领域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
在本实施例中,处理装置110执行启动模块,以使启动模块依序、不依序、依使用者指定或随机的方式执行这些诊断模块,本发明并不加以限制。在一实施例中,这些诊断模块的执行方式亦可视实际设备情况而定。来诊断这些硬件装置,以产生多个诊断日志(log)数据。在本实施例中,启动模块依据预设路径将这些诊断日志数据写入至储存装置120的特定位置,其中预设路径例如是指在硬盘的特定磁碟区域中的特定储存空间的地址。换句话说,使用者可通过作业系统(Operating system,OS)文件管理功能于一个特定数据夹当中来取得这些不同的诊断模块所各自产生的这些诊断日志数据。并且,在本实施例中,处理装置110依据这些诊断日志数据使显示装置130显示对应的诊断信息。也就是说,本实施例的启动模块可将这些诊断模块各自产生的分散的诊断日志数据依序整合并且储存至储存装置120的特定位置,以利于电脑设备制造者或使用者可有效地且快速地掌握电脑设备的诊断结果。In this embodiment, the
在本实施例中,处理装置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
在本实施例中,储存装置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
在本实施例中,启动模块可有效整合这些诊断模块,并且执行之。并且,当使用者欲新增其他硬件装置的诊断模块时,使用者只需通过设定启动模块的设定档,以将新增的诊断模块加入启动模块的执行顺序中。因此,电脑设备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
在本实施例中,电脑设备100可例如是笔记本电脑、个人平板、台式电脑等,并且显示装置130可装设在电脑设备100上或是外接于电脑设备100。在本实施例中,处理装置110执行启动模块以产生这些诊断日志数据,并且处理装置110可依据这些诊断模块产生的这些诊断日志数据驱动显示装置130,以通过显示装置130显示诊断信息。在本实施例中,显示装置130可显示这些诊断日志数据的重点部分,以让使用者可通过显示装置130即时掌握电脑设备100的这些硬件装置的诊断结果。In this embodiment, the
图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
在本实施例中,处理装置110执行启动模块210,以使启动模块210驱动诊断模块220。诊断模块220通过重新定向(redirect)机制将具有诊断日志数据内容的标准输出串流(standard output,stdout)以及标准错误输出串流(standard error,stderr)提供至启动模块210,以使启动模块210可依据预设的预设路径将诊断日志数据F1写入至储存装置120的特定位置。In this embodiment, the
在本实施例中,诊断日志数据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
在本实施例中,日志收集服务器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
在本实施例中,诊断日志数据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
在本实施例中,日志收集服务器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
在本实施例中,上述的数据传输模块可例如是包括有线或无线的传输介面,例如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
图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
在步骤S305中,处理装置110判断电脑设备100是否具有数据传输模块。若是,则处理装置110执行步骤S306。若否,则处理装置110执行步骤S310,以结束诊断。在步骤S306中,日志收集服务器230通过数据传输模块将诊断日志数据F2提供至外部服务器320,并且处理装置110执行步骤S310,以结束诊断。In step S305, the
在步骤S307中,处理装置110判断诊断模块220是否完成诊断。若诊断模块220尚未完成诊断,则处理装置110重新执行步骤S304直到诊断模块220完成诊断。若诊断模块220完成诊断,则处理装置110执行步骤S308。在步骤S308中,启动模块210将诊断日志数据F1写入至储存装置120的特定位置,并且处理装置110执行步骤S309。在一实施例中,启动模块210也可将诊断日志数据F1写入至电脑设备100的存储器330中。In step S307, the
在步骤S309中,处理装置110判断是否没有其他诊断模块需执行。若是,则处理装置110执行步骤S310,以结束诊断。若否,则处理装置110重新执行步骤S302,以使启动模块210接续执行下一个诊断模块。也就是说,本实施例的诊断方法可将诊断日志数据F1储存至储存装置120的特定位置,并且可通过数据传输模块备份诊断日志数据F2至外部服务器320以及本机的存储器330。因此,若电脑设备100发生故障,使用者仍可通过外部服务器320以及本机的存储器330来取得电脑设备100的最新的诊断日志数据F2。In step S309, the
图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
在步骤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
在步骤S408中,处理装置110判断是否没有其他诊断模块需执行。若是,则处理装置110执行步骤409,以结束诊断。若否,则处理装置110重新执行步骤S402,以使启动模块210接续执行下一个诊断模块。也就是说,本实施例的诊断方法可将诊断日志数据F1储存至储存装置120的特定位置,并且可通过数据传输模块备份诊断日志数据F2至外部服务器320以及另一电脑设备的存储器。因此,相较于图3实施例,若电脑设备100发生故障,使用者仍可通过外部服务器320以及此另一电脑设备的存储器来取得电脑设备100的最新的诊断日志数据F2。换句话说,此另一电脑设备可例如是电脑设备制造者的检测系统或设备。当使用者诊断电脑设备100时,可操作此检测系统或设备来诊断电脑设备100,以在电脑设备100出厂前可有效诊断电脑设备100的硬件装置是否正常。In step S408, the
图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
在步骤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
在步骤S509中,处理装置110判断诊断模块220是否完成诊断。若诊断模块220尚未完成诊断,则处理装置110重新执行步骤S504直到诊断模块220完成诊断。若诊断模块220完成诊断,则处理装置110执行步骤S510。在步骤S510中,启动模块210将诊断日志数据F1写入至储存装置120的特定位置,并且处理装置110执行步骤S511。In step S509, the
在步骤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
图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
另外,关于本实施例的电脑设备100的其他装置特征、实施细节以及技术手段可参照上述图1至图5实施例而获致足够的教示、建议以及实施说明,因此不再赘述。In addition, regarding other device features, implementation details and technical means of the
综上所述,本发明的电脑设备以及诊断方法可有效率地执行多个诊断模块,以产生多个诊断日志数据,并且安全地记录电脑设备的诊断日志数据。本发明的电脑设备以及诊断方法可将这些诊断日志数据储存至电脑设备的储存装置的相同的一个特定位置,以让使用者可便利且快速的掌握电脑设备的诊断结果。此外,本案发明的电脑设备以及诊断方法还可进一步将这些诊断日志数据备份至本机的存储器、外部的存储器、外部的储存装置或外部的服务器等,以安全地记录电脑设备的诊断日志数据。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)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI724742B (en) * | 2020-01-09 | 2021-04-11 | 華碩電腦股份有限公司 | Diagnostic system |
Citations (3)
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)
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 |
-
2017
- 2017-12-13 TW TW106143661A patent/TWI662407B/en active
-
2018
- 2018-01-03 CN CN201810004322.1A patent/CN109918239B/en active Active
Patent Citations (3)
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 |