CN109918239B - 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
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)
  • Stored Programmes (AREA)
  • Debugging And Monitoring (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 apparatus, diagnostic method and non-transitory computer-readable storage medium
Technical Field
The present invention relates to a diagnostic technique, and more particularly, to a computer apparatus with an automatic diagnostic function, a diagnostic method and a non-transitory computer readable storage medium.
Background
A general computer equipment diagnosis technology needs to run a plurality of diagnostic programs to ensure that each hardware device functions normally. However, the diagnostic results and diagnostic information generated by the test diagnostic procedures are stored in the storage device of the computer device according to different storage paths, so that the tester of the computer device needs to manually collect the diagnostic results and diagnostic information. Moreover, if the keyboard of the computer device fails, the screen cannot display the screen, the storage device fails, or the computer device is completely dead, the tester of the computer device cannot retrieve the completed diagnosis result and the diagnosis information, so that the tester of the computer device needs to spend more time detecting the cause of the failure of the computer device. In view of this, the present invention will propose several solutions in the following.
Disclosure of Invention
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 the computer device so as to store a plurality of diagnosis log data to a specific position of a storage device. Therefore, the computer equipment of the invention can provide the convenient and effective computer equipment diagnosis function for users, and safely record the diagnosis log data of the computer equipment.
The computer equipment of the invention is provided with a plurality of hardware devices. The computer equipment comprises a storage device and a processing device. The storage device is used for storing a plurality of diagnosis 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 starting module so that the starting module executes the diagnosis modules to diagnose the hardware devices. The diagnostic modules generate a plurality of diagnostic log data, wherein the hardware devices comprise a storage device and a processing device. The starting module writes the diagnostic log data into a specific position of the storage device according to a preset path.
The diagnosis method is suitable for computer equipment. The computer equipment is provided with a plurality of hardware devices. The computer equipment comprises a storage device and a processing device. The diagnostic method comprises the following steps: storing a plurality of diagnosis modules corresponding to the hardware devices through a storage device, wherein the diagnosis modules are used for diagnosing the hardware devices; the startup module is executed by the processing device 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; and writing the diagnosis log data into a specific position of the storage device through the starting module according to a preset path.
The non-transitory computer readable storage medium of the present invention is used for storing a boot module to load into a computer device. The computer equipment is provided with a plurality of hardware devices and comprises a storage device and a processing device. The storage device stores a plurality of diagnosis modules corresponding to the hardware devices, and the diagnosis modules are used for diagnosing the hardware devices. The computer equipment executes the following steps: executing, by the processing device, the startup module to cause the startup module to execute the diagnostic modules to diagnose the hardware devices, and the diagnostic modules to generate a plurality of diagnostic log data; and writing the diagnosis log data into a specific position of the storage device through the starting module 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 the computer device, and 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 rapidly grasp the diagnostic result of the computer device.
In order to make the aforementioned and other features and advantages of the invention more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a computer apparatus according to an embodiment of the invention.
FIG. 2 is a schematic diagram of an application module according to an embodiment of the invention.
FIG. 3 is a flow chart of a diagnostic method according to an embodiment of the invention.
FIG. 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.
FIG. 6 is a flow chart of a diagnostic method according to another embodiment of the invention.
Reference numerals:
100: computer equipment
110: processing apparatus
120: storage device
130: display device
200: application program module
210: start module
220: diagnostic module
230: log collection server
310: external storage device
320: external server
330: memory device
F1, F2: diagnostic log data
S301 to S310, S401 to S409, S501 to S512, S610, S620, S630: step (ii) of
Detailed Description
In order that the present invention may be more readily understood, the following detailed description is provided as an illustration of specific embodiments of the invention. Further, wherever possible, the same reference numbers are used in the drawings and the description to refer to the same or like parts.
FIG. 1 is a schematic diagram of a computer apparatus according to an embodiment of the invention. Referring to fig. 1, the computer apparatus 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 the embodiment, the storage device 120 is used for storing a plurality of diagnostic modules corresponding to a plurality of hardware devices of the computer apparatus 100, and the diagnostic modules are used for diagnosing the hardware devices. In the embodiment, the 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, the hardware devices include, for example, a Processor (Processor), a Memory (Memory), a Motherboard (Motherboard), a Video Graphics Array (Video Graphics Array), a Hard disk (Hard disk), a compact disc (CD player), an audio player (audio player), bluetooth (Bluetooth), a Network card (Network card), a USB interface card (USB interface card), a Keyboard (Keyboard), a Mouse (Mouse), or a Touch pad (Touch pad).
In the embodiment, the processing device 110 executes the start module, so that the start module executes the diagnosis modules sequentially, non-sequentially, in a manner specified by a user or randomly, which is not limited by the invention. In one embodiment, the execution of the diagnostic modules may also depend on the actual equipment. To diagnose the hardware devices to produce a plurality of diagnostic log (log) data. In this embodiment, the start module writes the diagnostic log data to a specific location of the storage device 120 according to a predetermined path, wherein the predetermined 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 through an Operating System (OS) file management function in a specific folder. Also, in the present embodiment, the processing device 110 causes the display device 130 to display the corresponding diagnosis information according to the diagnosis log data. That is to say, the start module of the present 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 a computer device manufacturer or a user can effectively and quickly grasp the diagnostic result of the computer device.
In the 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), a Digital Signal Processor (DSP), a Programmable controller, an Application Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD), other similar Processing devices, or a combination thereof.
In the present embodiment, the storage device 120 is, for example, a Floppy Drive (Floppy Drive), hard disk Drive (Hard Drive), compact disk read only memory (CD-ROM), optical Drive (Optical Drive), or the like. In the present embodiment, the storage device 120 stores the diagnosis modules in advance. These diagnostic modules are, for example, detection software provided by the respective 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 start module is a log launcher (log launcher), and the start module can be stored in the storage device 120 or another external storage device. In one embodiment, the start module can also be stored in a Non-transitory Computer-readable Storage Medium (Non-transitory Computer-readable Storage Medium) to implement the diagnosis method according to the embodiments of the present invention by loading the Computer apparatus 100.
In this embodiment, the start module can effectively integrate and execute the diagnosis modules. When the user wants to add a diagnostic module of another hardware device, the user only needs to set the setting file of the starting module to add the added diagnostic module into the execution sequence of the starting module. Therefore, the computer apparatus 100 can conveniently load the newly added diagnostic module without performing additional settings or otherwise executing the newly added diagnostic module.
In the embodiment, the computer apparatus 100 may be, for example, a notebook computer, a personal tablet, a desktop computer, etc., and the display device 130 may be installed on the computer apparatus 100 or externally connected to the computer apparatus 100. In the present embodiment, the processing device 110 executes the start 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 important parts of the diagnostic log data, so that the user can immediately grasp the diagnostic results of the hardware devices of the computer apparatus 100 through the display device 130.
FIG. 2 is a schematic diagram of an application module according to an embodiment of the invention. Referring to fig. 1 and 2, the processing device 110 executes an application module 200, wherein the application module 200 includes a start module 210, a diagnosis 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 for providing a file management service. In the present embodiment, the modules and the server in the application module 200 can be stored in the storage device 120 or an external storage device respectively, so that the processing device 110 can read and execute the modules. Fig. 2 is a schematic diagram showing various possible storage destinations of the diagnostic log data F1 and F2 generated by the modules and the servers after the processing device 110 executes the modules and the servers in the application module 200. The storage manner of the diagnostic log data F1, F2 according to the present invention is not limited to that shown in fig. 2, and the specific storage manner of the diagnostic log data F1, F2 may be adjusted or modified according to the diagnostic method of each embodiment of fig. 3 to 6, for example.
In the present embodiment, the processing device 110 executes the start module 210, so that the start module 210 drives the diagnosis module 220. The diagnostic module 220 provides a standard output stream (stdout) and a standard error output stream (stderr) with diagnostic log data content to the start module 210 through a redirect mechanism, so that the start module 210 can write the diagnostic log data F1 to a specific location of the storage device 120 according to a preset path.
In the present embodiment, a part of the diagnosis log data F1 can be displayed on the display device 130, so that the display device 130 displays relevant important diagnosis information or diagnosis results. For example, the display device 130 may display the diagnosis result of the hardware device, such as the diagnosis information of device health, device failure, device performance or device model. In an embodiment, the display device 130 may also display the contents of all the diagnostic log data F1. In addition, the start module 210 may further write the diagnostic log data F1 into the external storage device 310 to backup the diagnostic log data F1 to the external storage device 310. That is, if the storage device 120 is damaged, the user can read the external storage device 310 to obtain the backup diagnostic log data F1.
In the present 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 start module 210 can provide the relevant important diagnosis information or diagnosis result displayed on the display device 130 to the log collection server 230, so that the log collection server 230 can arrange the diagnosis information or diagnosis result to provide the diagnosis log data F2 to the external server 320 through the data transmission module of the computer apparatus 100. The log collection server 230 is used to efficiently backup the diagnostic log data F2. That is, 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 may further sequentially write the diagnostic log data F2 to the memory 330. 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 read the memory 330 to obtain the backup diagnostic log data F2. It should be noted that, in the embodiment, if the data amount 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 writes the plurality of diagnostic log data into the memory 330 in a cyclic duplication manner, so that the memory 330 stores the latest part of the diagnostic log data F2.
In the present embodiment, the diagnostic log data F1 and the diagnostic log data F2 are different in data amount. The diagnostic log data F1 is a part or all of the diagnostic data and contents generated by the diagnostic module 220 and is displayed on the display device 130. The diagnostic log data F2 is the more important data content taken from the diagnostic log data F1, but the present invention is not limited thereto. In an embodiment, the diagnosis log data F1 and the diagnosis log data F2 may also be log data having the same content.
In this embodiment, the log collection server 230 can be stored in the storage device 120, so that the processing device 110 can execute the start module 210 and the log collection server 230 simultaneously. In the embodiment, the Memory 330 is, for example, a Dynamic Random Access Memory (DRAM), a Flash Memory (Flash Memory), a Non-Volatile Random Access Memory (NVRAM), or the like, wherein the Memory 330 may belong to a hardware device of the computer apparatus 100. That is, the log collection server 230 may store the diagnostic log data F2 in the local memory 330, but the invention is not limited thereto. In an embodiment, the log collection server 230 may also be stored in a storage device of another computer device through a data transmission module, so that a user can receive the diagnostic log data F2 provided by the start module 210 through another computer device. Moreover, the memory 330 may also belong to a hardware device of the other computer apparatus. That is, the user can back up the diagnostic log data F2 through the other computer device.
In this embodiment, the data transmission module may include a wired or wireless transmission interface, such as a Wi-Fi interface, a Bluetooth (Bluetooth) interface, a Near Field Communication (NFC) interface, a Coaxial cable (Coaxial cable) interface, an Optical fiber (Optical fiber) interface, or a Universal Serial Bus (USB) interface, for example, and the invention is not limited thereto.
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 for providing a plurality of data backup schemes, but the computer apparatus and the diagnostic method of the present invention are not limited thereto. That is, the computer apparatus and the diagnostic method of the present invention may selectively configure at least one of the external storage device 310, the external server 320 and the memory 330. In other words, the computer apparatus and the diagnostic method of the present invention can determine whether to configure at least one of the external storage device 310, the external server 320 and the memory 330 according to different diagnostic requirements or diagnostic environments. In order to further understand various embodiments of the computer device and the diagnostic method of the present invention, the following provides flowcharts of the diagnostic methods of fig. 3 to 6 for explanation.
FIG. 3 is a flow chart of a diagnostic method according to an embodiment of the invention. Referring to fig. 1, fig. 2 and fig. 3, the diagnosis 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. 2. In step S301, the processing device 110 of the computer apparatus 100 executes the start module 210. In step S302, the start module 210 executes the diagnosis module 220 to diagnose one of the hardware devices of the computer apparatus 100. In step S303, the start module 210 provides the relevant important diagnosis information or diagnosis result (the diagnosis log data not yet sorted) displayed on the display device 130 to the log collection server 230, and the log collection server 230 writes the diagnosis log data F2 into the memory 330 of the computer apparatus 100. In step S304, the processing device 110 determines whether the current diagnosis targets of the hardware devices are abnormal, such as failing to operate normally, being damaged, or failing to execute a specific function. If yes, the processing device 110 executes step S305. If not, the processing device 110 executes step S307.
In step S305, the processing device 110 determines whether the computer apparatus 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 diagnostic 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.
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 start module 210 writes the diagnostic log data F1 to a specific location of the storage device 120, and the processing device 110 executes step S309. In one embodiment, the start module 210 can also write the diagnostic log data F1 into the memory 330 of the computer apparatus 100.
In step S309, the processing device 110 determines whether there is no other diagnostic module to execute. If yes, the processing device 110 executes step S310 to end the diagnosis. If not, the processing device 110 re-executes step S302 to make the start module 210 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 backup the diagnostic log data F2 to the external server 320 and the local memory 330 through the data transmission module. Therefore, if the computer apparatus 100 fails, the user can still obtain the latest diagnostic log data F2 of the computer apparatus 100 through the external server 320 and the local memory 330.
FIG. 4 is a schematic diagram of a diagnostic method according to another embodiment of the invention. Referring to fig. 1, fig. 2 and fig. 4, the diagnosis 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. 2. In step S401, the processing device 110 of the computer apparatus 100 executes the start module 210. In step S402, the start module 210 executes the diagnosis module 220 to diagnose one of the hardware devices of the computer apparatus 100. In step S403, the start module 210 provides the relevant important diagnosis information or diagnosis result (diagnosis log data not yet collated) displayed on the display device 130 to the log collection server 230 of another computer apparatus, and the log collection server 230 writes the diagnosis log data F2 into the memory of this another computer apparatus. In step S404, the processing device 110 determines whether or not the current diagnosis target of the hardware devices is abnormal. If yes, the processing device 110 executes step S405. If not, the processing device 110 executes step S406.
In step S405, the log collection server 230 provides the diagnostic 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 diagnostic 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 start module 210 writes the diagnostic log data F1 to a specific location of the storage device 120, and the processing device 110 executes step S408.
In step S408, the processing device 110 determines whether there is no other diagnostic module to execute. If yes, the processing device 110 executes step 409 to end the diagnosis. If not, the processing device 110 re-executes step S402 to make the starting module 210 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 backup the diagnostic log data F2 to the external server 320 and the memory of another computer device through the data transmission module. Therefore, compared to the embodiment shown in fig. 3, if the computer apparatus 100 fails, the user can still obtain the latest diagnostic log data F2 of the computer apparatus 100 through the external server 320 and the memory of the other computer apparatus. In other words, the other computer device may be, for example, a detection system or device of a computer device manufacturer. When the user diagnoses the computer apparatus 100, the detection system or apparatus can be operated to diagnose the computer apparatus 100, so as to effectively diagnose whether the hardware devices of the computer apparatus 100 are normal before the computer apparatus 100 is shipped.
FIG. 5 is a schematic diagram of a diagnostic method according to another embodiment of the invention. Referring to fig. 1, fig. 2 and fig. 5, the diagnosis 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. 2. In step S501, the processing device 110 of the computer apparatus 100 executes the start module 210. In step S502, the start module 210 executes the diagnosis module 220 to diagnose one of the hardware devices of the computer apparatus 100. In step S503, the start module 210 provides the relevant important diagnostic information or diagnostic result (the not-finished diagnostic log data) displayed on the display device 130 to the log collection server 230 and the external storage device 310 of another computer apparatus, and the log collection server 230 writes the diagnostic log data F2 into the memory of this another computer apparatus. In step S504, the processing device 110 determines whether or not the current diagnosis targets of the hardware devices are abnormal. If yes, the processing device 110 executes step S505. If not, the processing device 110 executes step S509.
In step S505, the processing device 110 determines whether the computer apparatus 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 performs step S507. In step S507, the user connects the external storage device 310 to another computer apparatus to obtain the diagnosis log data F2 stored in the external storage device 310 through the another computer apparatus, and the processing device 110 executes step S512 to end the diagnosis.
In step S509, the processing device 110 determines whether the diagnostic 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 start module 210 writes the diagnostic log data F1 to a specific location of the storage device 120, and the processing device 110 executes step S511.
In step S511, the processing device 110 determines whether there is no other diagnostic module to be executed. If yes, the processing device 110 executes step 512 to end the diagnosis. If not, the processing device 110 re-executes step S502 to make the starting module 210 execute the next diagnostic module. That is, compared to the embodiments shown in fig. 3 and 4, the diagnostic method of the present embodiment can store the diagnostic log data F1 to the specific locations of the storage device 120 and the external storage device 310, and can backup the diagnostic log data F2 to the external server 320 and the memory of another computer device through the data transmission module. Therefore, if the computer apparatus 100 fails, the user can still obtain the latest diagnostic log data F2 of the computer apparatus 100 through the external server 320 and the memory of the other computer apparatus. Even if the external server 320 and the other computer device are also failed, the user can also connect to the external storage device 310 through the other computer device to obtain the diagnostic log data F1.
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 diagnosis method of the present embodiment can be applied to the computer apparatus 100 of the embodiment of fig. 1. In step S610, the computer apparatus 100 stores a plurality of diagnostic modules corresponding to a plurality of hardware devices via the storage device 120, and the diagnostic modules are used for diagnosing the hardware devices. In step S620, the computer apparatus 100 executes the startup module through the processing device 110, so that the startup module executes the diagnosis modules to diagnose the hardware devices, and the diagnosis modules generate a plurality of diagnosis log data. In step S630, the computer apparatus 100 writes the diagnostic log data into the specific location of the storage device 120 through the start module according to the predetermined path. Therefore, the diagnosis method of the embodiment can efficiently execute the diagnosis modules and integrate the diagnosis log data so that a user can quickly master and obtain the diagnosis log data.
In addition, other device features, implementation details and technical means of the computer apparatus 100 of the present embodiment may refer to the embodiments of fig. 1 to 5 to obtain sufficient teaching, suggestion and implementation description, and thus are not repeated herein.
In summary, the computer device and the diagnostic method of the present invention can efficiently execute a plurality of diagnostic modules to generate a plurality of diagnostic log data and safely record the diagnostic log data of the computer device. The computer equipment and the diagnosis method can store the diagnosis log data to the same specific position of the storage device of the computer equipment so that a user can conveniently and quickly master the diagnosis result of the computer equipment. In addition, the computer device and the diagnostic method of the present invention can further backup the diagnostic log data to a local memory, an external storage device, an external server, or the like, so as to safely record the diagnostic log data of the computer device.
Although the present invention has been described with reference to the above embodiments, it should be understood that various changes and modifications can be made therein by those skilled in the art without departing from the spirit and scope of the invention.

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 apparatus, diagnostic method, and non-transitory computer-readable storage medium Active CN109918239B (en)

Applications Claiming Priority (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
TW106143661 2017-12-13

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 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

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
TWI662407B (en) 2019-06-11
CN109918239A (en) 2019-06-21
TW201928669A (en) 2019-07-16

Similar Documents

Publication Publication Date Title
US20130268744A1 (en) Method for detecting hardware
US8290735B2 (en) Test apparatus and test method for universal serial bus interface
BR112015025614B1 (en) COMPUTER READable STORAGE MEDIA, COMPUTER IMPLEMENTED SYSTEM AND METHOD
US9159454B2 (en) Failure detection apparatus for solid state drive tester
US9239684B2 (en) Electronic device and method for testing redundant array of independent disks level
CN116340076B (en) Hard disk performance test method, device and medium
CN108874441B (en) Board card configuration method, device, server and storage medium
US20140164845A1 (en) Host computer and method for testing sas expanders
CN109918239B (en) Computer apparatus, diagnostic method, and non-transitory computer-readable storage medium
US8516311B2 (en) System and method for testing peripheral component interconnect express switch
CN114443442B (en) Log storage method and electronic equipment
US20190302180A1 (en) System on chip and operating method thereof
US9153345B2 (en) Error generating apparatus for solid state drive tester
US9373153B2 (en) Diagnosing graphics display problems
US9990382B1 (en) Secure erasure and repair of non-mechanical storage media
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
EP3557422A1 (en) Method for accessing code sram, and electronic device
TWI794997B (en) Method and apparatus and computer program product for debugging solid state disk devices
US20180024749A1 (en) Information processing apparatus, non-transitory computer-readable recording medium having stored therein program, and method for processing information
TWI446177B (en) System and method for testing sas hard disks under efi environment
US10379594B2 (en) Sleep-mode detection method thereof
US7072788B2 (en) System and method for testing an interconnect in a computer system
TW556071B (en) Motherboard with display device showing booting status
TW202238366A (en) Storage device for recording status of hardware component of computer system and computer implementation method thereof

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