CN109918239A - Computer equipment, diagnostic method and non-transitory computer-readable storage media - Google Patents
Computer equipment, diagnostic method and non-transitory computer-readable storage media Download PDFInfo
- Publication number
- CN109918239A CN109918239A CN201810004322.1A CN201810004322A CN109918239A CN 109918239 A CN109918239 A CN 109918239A CN 201810004322 A CN201810004322 A CN 201810004322A CN 109918239 A CN109918239 A CN 109918239A
- Authority
- CN
- China
- Prior art keywords
- diagnostic
- those
- computer equipment
- starting module
- log data
- 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.)
- Granted
Links
- 238000003860 storage Methods 0.000 title claims abstract description 102
- 238000002405 diagnostic procedure Methods 0.000 title claims abstract description 45
- 238000012545 processing Methods 0.000 claims abstract description 71
- 238000003745 diagnosis Methods 0.000 claims description 28
- 230000005540 biological transmission Effects 0.000 claims description 10
- 238000000034 method Methods 0.000 claims description 9
- 230000002159 abnormal effect Effects 0.000 claims description 6
- 238000004064 recycling Methods 0.000 claims description 4
- 230000005055 memory storage Effects 0.000 claims 3
- 238000010586 diagram Methods 0.000 description 8
- 210000004556 brain Anatomy 0.000 description 4
- 230000006870 function Effects 0.000 description 4
- 238000005138 cryopreservation Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 238000012631 diagnostic technique Methods 0.000 description 2
- 239000006185 dispersion Substances 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000014759 maintenance of location Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- VEMKTZHHVJILDY-UHFFFAOYSA-N resmethrin Chemical compound CC1(C)C(C=C(C)C)C1C(=O)OCC1=COC(CC=2C=CC=CC=2)=C1 VEMKTZHHVJILDY-UHFFFAOYSA-N 0.000 description 1
- 239000007858 starting material Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Abstract
The present invention proposes a kind of computer equipment, diagnostic method and non-transitory computer-readable storage media, which has multiple hardware devices.Computer equipment includes storage device and processing unit.Storage device storage corresponds to multiple diagnostic modules of these hardware devices.Processing unit executes starting module, so that starting module executes these diagnostic modules to diagnose these hardware devices.These diagnostic modules generate multiple diagnostic log data.These diagnostic log data are written to the specific position of storage device according to preset path for starting module.In addition, a kind of diagnostic method and non-transitory computer-readable storage media are also suggested.
Description
Technical field
The invention relates to a kind of diagnostic techniques, and set in particular to a kind of computer with automatic diagnostic function
Standby, diagnostic method and non-transitory computer-readable storage media.
Background technique
General computer equipment diagnostic techniques, which needs to run, executes multiple diagnostic programs respectively to ensure each hardware device
Function is normal.However, these testing and diagnosing programs generate diagnostic result and diagnostic message can according to different storage paths and
Dispersion be stored in the storage device of computer equipment, cause the tester of computer equipment need to collect manually these diagnostic results and
Diagnostic message.If also, the keyboard of computer equipment breaks down, screen can not show picture, storage device failure or computer
The complete overdue and unredeemable pawn of equipment, then the tester of computer equipment will be unable to fetch the diagnostic result completed and diagnostic message, so that electric
The tester of brain equipment needs to take more time the failure cause of detection computer equipment.In view of this, the present invention will with
It is lower to propose several solutions.
Summary of the invention
The present invention provides a kind of computer equipment, diagnostic method and non-transitory computer-readable storage media, can effectively examine
Multiple hardware devices of disconnected computer equipment, to store the specific position of multiple diagnostic log data to storage device.Therefore, this hair
Bright computer equipment can provide the convenient and effective computer equipment diagnostic function of user, and safely record computer equipment
Diagnostic log data.
Computer equipment of the invention has multiple hardware devices.Computer equipment includes storage device and processing unit.Storage
Cryopreservation device corresponds to multiple diagnostic modules of these hardware devices to store.These diagnostic modules are to diagnose these hardware dress
It sets.Processing unit couples storage device.Processing unit is to execute starting module, so that starting module executes these diagnostic modules
To diagnose these hardware devices.These diagnostic modules generate multiple diagnostic log data, and wherein these hardware devices include storage
Device and processing unit.These diagnostic log data are written to the certain bits of storage device according to preset path for starting module
It sets.
Diagnostic method of the invention is suitable for computer equipment.Computer equipment has multiple hardware devices.Computer equipment includes
Storage device and processing unit.Diagnostic method is the following steps are included: correspond to these hardware devices by storage device storage
Multiple diagnostic modules, and these diagnostic modules are to diagnose these hardware devices;Starting module is executed by processing unit,
So that starting module executes these diagnostic modules to diagnose these hardware devices.These diagnostic modules generate multiple diagnostic log numbers
According to;And these diagnostic log data are written to the specific position of storage device according to preset path by starting module.
Non-transitory computer-readable storage media of the invention is to store starting module to be loaded into computer equipment.Computer is set
Standby to have multiple hardware devices, computer equipment includes storage device and processing unit.It is hard that storage device storage corresponds to these
Multiple diagnostic modules of part device, and these diagnostic modules are to diagnose these hardware devices.Computer equipment executes following step
It is rapid: starting module is executed by processing unit, so that starting module executes these diagnostic modules to diagnose these hardware devices, and
And these diagnostic modules generate multiple diagnostic log data;And by starting module according to preset path by these diagnostic logs
Data are written to the specific position of storage device.
Multiple diagnostic modules can be efficiently executed based on above-mentioned, of the invention computer equipment and diagnostic method, to have
Computer equipment is efficient diagnosed, and can be by identical the one of the storage device of these diagnostic log data storages to computer equipment
A specific position, user can facilitate and quickly grasps the diagnostic result of computer equipment.
To make the foregoing features and advantages of the present invention clearer and more comprehensible, special embodiment below, and cooperate institute's accompanying drawings
It is described in detail below.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only
Some embodiments of the present invention, for those of ordinary skill in the art, without any creative labor, also
Other drawings may be obtained according to these drawings without any creative labor.
Fig. 1 is painted the schematic diagram of the computer equipment of one embodiment of the invention.
Fig. 2 is painted the schematic diagram of the application program module of one embodiment of the invention.
Fig. 3 is painted the flow chart of the diagnostic method of one embodiment of the invention.
Fig. 4 is painted the flow chart of the diagnostic method of another embodiment of the present invention.
Fig. 5 is painted the flow chart of the diagnostic method of another embodiment of the present invention.
Fig. 6 is painted the flow chart of the diagnostic method of another embodiment of the present invention.
Drawing reference numeral:
100: computer equipment
110: processing unit
120: storage device
130: display device
200: application program module
210: starting module
220: diagnostic module
230: log collecting server
310: external storage device
320: external server
330: memory
F1, F2: diagnostic log data
S301~S310, S401~S409, S501~S512, S610, S620, S630: step
Specific embodiment
In order to be illustrated that the contents of the present invention more easily, spy can actually evidence as the present invention for embodiment below
With the example of implementation.In addition, all possible places, use element/component/step of identical label in schema and embodiment,
Represent same or like component.
Fig. 1 is painted the schematic diagram of the computer equipment of one embodiment of the invention.With reference to Fig. 1, computer equipment 100 includes processing
Device 110, storage device 120 and display device 130.Processing unit 110 couples storage device 120 and display device 130.
In the present embodiment, storage device 120 is to store the multiple diagnosis moulds for corresponding to multiple hardware devices of computer equipment 100
Block, and these diagnostic modules are to diagnose these hardware devices.In the present embodiment, these hardware devices can be for example including place
Device 110, storage device 120 and display device 130 are managed, but the present invention is not limited thereto.In one embodiment, these hardware
Device is for example including processor (Processor), memory (Memory), motherboard (Motherboard), display card (Video
Graphics Array), hard disk (Hard disk), CD-ROM device (CD player), sound play device (audio player),
Bluetooth (Bluetooth), network card (Network card), USB interface card, keyboard (Keyboard), mouse (Mouse) or touching
Control plate (Touch pad) etc..
In the present embodiment, processing unit 110 execute starting module so that starting module sequentially, not sequentially, according to user
Specified or random manner executes these diagnostic modules, and the present invention is not limited thereto.In one embodiment, these diagnostic modules
Executive mode also can be depending on physical device situation.These hardware devices are diagnosed, to generate multiple diagnostic logs (log) number
According to.In the present embodiment, starting module these diagnostic log data is written according to preset path specific to storage device 120
Position, wherein preset path for example refers to the address of the dedicated storage space in the specific magnetic disk region of hard disk.In other words,
User can be taken in a specific data folder by operating system (Operating system, OS) file management facilities
Obtain these diagnostic log data that these different diagnostic modules respectively generate.Also, in the present embodiment, processing unit
110 make display device 130 show corresponding diagnostic message according to these diagnostic log data.That is, the present embodiment opens
The diagnostic log data for the dispersion that these diagnostic modules respectively generate can sequentially be integrated and be stored to storage device by dynamic model block
120 specific position, so that computer equipment producer or user can effectively and rapidly grasp the diagnosis of computer equipment
As a result.
In the present embodiment, processing unit 110 be, for example, central processing unit (Central Processing Unit,
CPU), micro- place of the general service or specific use of systemonchip (System on Chip, SOC) or other programmables
Manage device (microprocessor), digital signal processor (Digital Signal Processor, DSP), programmable control
Device processed, special application integrated circuit (Application Specific Integrated Circuits, ASIC), programmable
The combination of logic device (Programmable Logic Device, PLD), other similar processing unit or these devices.
In the present embodiment, storage device 120 is, for example, floppy drive (Floppy Drive), hard disk drive (Hard
Drive), compact disk read only memory machine (CD-ROM) or CD-ROM device (Optical Drive) etc..In the present embodiment, storage device 120 is pre-
First store these diagnostic modules.These diagnostic modules are, for example, the inspection software provided by each hardware device manufacturer.Processing dress
Setting 110 can be used to read and execute these diagnostic modules of storage device 120.In the present embodiment, starting module is a kind of log
Starter (log launcher), starting module can be stored in storage device 120 or another external storage device.In an embodiment
In, starting module can also be stored in a non-transitory computer-readable storage media (Non-transitory Computer-
Readable Storage Medium) in, to be realized described in various embodiments of the present invention by being loaded into computer equipment 100
Diagnostic method.
In the present embodiment, starting module can effectively integrate these diagnostic modules, and execute it.Also, work as user
When being intended to increase the diagnostic module of other hardware devices newly, user need to will only be increased newly by the setting shelves of setting starting module
Diagnostic module is added in the execution sequence of starting module.Therefore, computer equipment 100 can advantageously be loaded into newly-increased diagnostic module,
And extra setup need not be carried out or in addition execute newly-increased diagnostic module.
In the present embodiment, computer equipment 100 can be for example laptop, personal plate, desktop computer etc., and show
Showing device 130 can be installed on computer equipment 100 or be external in computer equipment 100.In the present embodiment, processing unit 110
Starting module is executed to generate these diagnostic log data, and processing unit 110 can be generated according to these diagnostic modules this
A little diagnostic log data-driven display devices 130, to show diagnostic message by display device 130.In this example it is shown that
Device 130 can show the intermediate portions of these diagnostic log data, to allow user that can grasp immediately electricity by display device 130
The diagnostic result of these hardware devices of brain equipment 100.
Fig. 2 is painted the schematic diagram of the application program module of one embodiment of the invention.With reference to Fig. 1 and Fig. 2, processing unit
110 executing application modules 200, wherein application program module 200 includes starting module 210, diagnostic module 220 and log
Collect server 230.In the present embodiment, log collecting server 230 is a kind of computer software of file server, and day
Will collects server 230 to provide file-management services.In the present embodiment, these moulds in application program module 200
Block and server can be distinctly stored in storage device 120 or the storage device of outside, so that processing unit 110 reads and holds
Row.The schematic diagram of Fig. 2 be present 110 executing application module 200 of processing unit in these modules and server after,
The various possible storage destinations of these modules and corresponding diagnostic log data F1, F2 generated of server.The present invention
The storing modes of diagnostic log data F1, F2 be not limited to shown in Fig. 2, the specific storing mode of diagnostic log data F1, F2 can
Such as the diagnostic method of each embodiment of following figure 3 to Fig. 6 correspond to adjustment or deformation.
In the present embodiment, processing unit 110 executes starting module 210, so that starting module 210 drives diagnostic module
220.Diagnostic module 220 is by redirecting (redirect) mechanism for the standard output crossfire with diagnostic log data content
(standard output, stdout) and standard error output tape sorting (standard error, stderr) are provided to starting
Module 210, so that starting module 210 diagnostic log data F1 can be written to storage device 120 according to preset preset path
Specific position.
In the present embodiment, a portion of diagnostic log data F1 can be shown in display device 130, so that display fills
Set 130 display correlation important diagnostic informations or diagnostic result.For example, display device 130 can viewing hardware device diagnosis
As a result, the diagnostic message normal, plant failure, device efficiency or device model such as device.In one embodiment, display device
130 can also show the content of whole diagnostic log data F1.In addition, starting module 210 can be further by diagnostic log data
F1 is written to external storage device 310, and diagnostic log data F1 is backed up to external storage device 310.That is, if storage
Cryopreservation device 120 is damaged, then user can obtain the diagnostic log data of backup by reading external storage device 310
F1。
In the present embodiment, log collecting server 230 is to collect diagnostic module 220 and log collecting server
230 journal files (log file) generated.Starting module 210 can be shown in the related important diagnostic letter of display device 130
Breath or diagnostic result be provided to log collecting server 230 so that log collecting server 230 can arrange these diagnostic messages or
Diagnostic result provides diagnostic log data F2 to external server 320 with the data transmission module by computer equipment 100.
Log collecting server 230 is for efficiently backup diagnostic log data F2.That is, if storage device 120 damages
Bad, then user can obtain related important diagnostic information or diagnostic result by external server 320.In addition, log collection
Further diagnostic log data F2 sequentially can be written to memory 330 for server 230.That is, if storage device 120 is sent out
Diagnostic log data F2 can not be provided to external server 320 by raw damage or log collecting server 230, then user can lead to
Cross the diagnostic log data F2 for reading memory 330 to obtain backup.It is worth noting that, in the present embodiment, if by multiple
The data volume for the more diagnostic log data that diagnostic module generates is greater than the storage space of memory 330, then log collection service
More diagnostic log data are sequentially written to memory 330 in a manner of recycling manifolding for device 230, so that memory 330 stores
The newest part of diagnostic log data F2.
In the present embodiment, diagnostic log data F1 is different from the data volume of diagnostic log data F2.Diagnostic log data
F1 is some or all of diagnostic data and content caused by diagnostic module 220, and is shown in display device 130.
Diagnostic log data F2 is to be derived from data content more important in diagnostic log data F1, but the present invention is not limited thereto.
In one embodiment, diagnostic log data F1 and diagnostic log data F2 are also possible to the daily record data with identical content.
In the present embodiment, log collecting server 230 can be stored in storage device 120, so that processing unit 110 can
It is performed simultaneously starting module 210 and log collecting server 230.In the present embodiment, memory 330 is, for example, dynamic random
Access memory (Dynamic Random Access Memory, DRAM), flash memory (Flash memory) or it is non-volatile with
Machine accesses memory (Non-Volatile Random Access Memory, NVRAM) etc., and wherein memory 330 can belong to electricity
The hardware device of brain equipment 100.That is, log collecting server 230 can store diagnostic log data F2 to the machine
In memory 330, but the present invention is not limited thereto.In one embodiment, log collecting server 230 can also be transmitted by data
Module is stored in the storage device of another computer equipment, to allow user that can receive starting mould by another computer equipment
The diagnostic log data F2 that block 210 provides.Also, memory 330 may belong to the hardware device of this another computer equipment.Also
It is to say, user can back up diagnostic log data F2 by this another computer equipment.
In the present embodiment, above-mentioned data transmission module can be for example including wired or wireless transmission interface, such as
It is Wi-Fi interface, bluetooth (Bluetooth) interface, near-field communication (Near Field Communication, NFC) interface, 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 thereto.
It is worth noting that, external storage device 310 shown in Fig. 2, external server 320 and memory 330 are point
A variety of data backup scenarios Yong Yu not be provided, but computer equipment and diagnostic method of the invention is not limited to this.That is,
Computer equipment of the invention and diagnostic method alternative setting external storage device 310, external server 320 and storage
At least one of device 330.In other words, computer equipment of the invention and diagnostic method can according to different diagnostic requirements or
Diagnostic environment come decide whether to be arranged external storage device 310, external server 320 and memory 330 at least within it
One.Also, in order to make those skilled in the art that can further appreciate that multiple realities of computer equipment and diagnostic method of the invention
Apply aspect, the flow charts of multiple diagnostic methods of Fig. 3 set forth below to Fig. 6 illustrates it respectively.
Fig. 3 is painted the flow chart of the diagnostic method of one embodiment of the invention.With reference to Fig. 1, Fig. 2 and Fig. 3, the present embodiment
Diagnostic method be applicable to the computer equipment 100 of Fig. 1 embodiment and the application program module 200 of Fig. 2.In step S301
In, the processing unit 110 of computer equipment 100 executes starting module 210.In step s 302, starting module 210 executes diagnosis mould
Block 220, with one of the multiple hardware devices for diagnosing computer equipment 100.In step S303, starting module 210 will be shown
The related important diagnostic information or diagnostic result (still unfinished diagnostic log data) for being shown in display device 130 are provided to log
Server 230 is collected, and diagnostic log data F2 is written to the memory of computer equipment 100 log collecting server 230
330.In step s 304, processing unit 110 judges whether the Current Diagnostic target of these hardware devices is abnormal, such as nothing
Method normal operation, damage or specific function can not execute.If so, processing unit 110 executes step S305.If it is not, then locating
It manages device 110 and executes step S307.
In step S305, processing unit 110 judges whether computer equipment 100 has data transmission module.If so, place
It manages device 110 and executes step S306.If it is not, then processing unit 110 executes step S310, to terminate to diagnose.In step S306,
Diagnostic log data F2 is provided to external server 320 by data transmission module by log collecting server 230, and is handled
Device 110 executes step S310, to terminate to diagnose.
In step S307, processing unit 110 judges whether diagnostic module 220 is completed to diagnose.If diagnostic module 220 is not yet
Diagnosis is completed, then processing unit 110 re-execute the steps S304 until diagnostic module 220 is completed to diagnose.If diagnostic module 220 is complete
At diagnosis, then processing unit 110 executes step S308.In step S308, diagnostic log data F1 is written starting module 210
To the specific position of storage device 120, and processing unit 110 executes step S309.In one embodiment, starting module 210
Diagnostic log data F1 can also be written into the memory 330 of computer equipment 100.
In step S309, processing unit 110 judges whether to need to execute without other diagnostic modules.If so, processing dress
110 execution step S310 are set, to terminate to diagnose.If it is not, then processing unit 110 re-execute the steps S302, so that starting module
210 connect the next diagnostic module of execution.That is, the diagnostic method of the present embodiment diagnostic log data F1 can be stored to
The specific position of storage device 120, and data transmission module backup diagnostic log data F2 to external server 320 can be passed through
And the memory 330 of the machine.Therefore, if computer equipment 100 breaks down, user still can by external server 320 with
And the memory 330 of the machine obtains the newest diagnostic log data F2 of computer equipment 100.
Fig. 4 is painted the schematic diagram of the diagnostic method of another embodiment of the present invention.With reference to Fig. 1, Fig. 2 and Fig. 4, this implementation
The diagnostic method of example is applicable to the computer equipment 100 of Fig. 1 embodiment and the application program module 200 of Fig. 2.In step S401
In, the processing unit 110 of computer equipment 100 executes starting module 210.In step S402, starting module 210 executes diagnosis mould
Block 220, with one of the multiple hardware devices for diagnosing computer equipment 100.In step S403, starting module 210 will be shown
The related important diagnostic information or diagnostic result (still unfinished diagnostic log data) for being shown in display device 130 are provided to another
The log collecting server 230 of computer equipment, and log collecting server 230 is so far another by diagnostic log data F2 write-in
The memory of computer equipment.In step s 404, processing unit 110 judges whether the Current Diagnostic target of these hardware devices is sent out
It is raw abnormal.If so, processing unit 110 executes step S405.If it is not, then processing unit 110 executes step S406.
In step S405, diagnostic log data F2 is provided to external server 320 by log collecting server 230, and
And processing unit 110 executes step S409, to terminate to diagnose.In step S306, processing unit 110 judges diagnostic module 220
Whether completion diagnoses.If diagnostic module 220 not yet completes diagnosis, processing unit 110 re-execute the steps S404 until diagnosis
Module 220 completes diagnosis.If diagnostic module 220 completes diagnosis, processing unit 110 executes step S407.In step S 407,
Diagnostic log data F1 is written to the specific position of storage device 120 starting module 210, and processing unit 110 executes step
Rapid S408.
In step S408, processing unit 110 judges whether to need to execute without other diagnostic modules.If so, processing dress
110 execution steps 409 are set, to terminate to diagnose.If it is not, then processing unit 110 re-execute the steps S402, so that starting module
210 connect the next diagnostic module of execution.That is, the diagnostic method of the present embodiment diagnostic log data F1 can be stored to
The specific position of storage device 120, and data transmission module backup diagnostic log data F2 to external server 320 can be passed through
And the memory of another computer equipment.Therefore, compared to Fig. 3 embodiment, if computer equipment 100 breaks down, user is still
The newest diagnosis day of computer equipment 100 can be obtained by the memory of external server 320 and this another computer equipment
Will data F2.In other words, this another computer equipment can be for example the detection system or equipment of computer equipment producer.Work as use
When person diagnoses computer equipment 100, this detection system or equipment can be operated to diagnose computer equipment 100, to go out in computer equipment 100
Before factory can efficient diagnosis computer equipment 100 hardware device it is whether normal.
Fig. 5 is painted the schematic diagram of the diagnostic method of another embodiment of the present invention.With reference to Fig. 1, Fig. 2 and Fig. 5, this implementation
The diagnostic method of example is applicable to the computer equipment 100 of Fig. 1 embodiment and the application program module 200 of Fig. 2.In step S501
In, the processing unit 110 of computer equipment 100 executes starting module 210.In step S502, starting module 210 executes diagnosis mould
Block 220, with one of the multiple hardware devices for diagnosing computer equipment 100.In step S503, starting module 210 will be shown
The related important diagnostic information or diagnostic result (still unfinished diagnostic log data) for being shown in display device 130 are provided to another
The log collecting server 230 and external storage device 310 of computer equipment, and log collecting server 230 will diagnose day
The memory of so far another computer equipment is written in will data F2.In step S504, processing unit 110 judges these hardware devices
Current Diagnostic target whether be abnormal.If so, processing unit 110 executes step S505.If it is not, then processing unit 110
Execute step S509.
In step S505, processing unit 110 judges whether computer equipment 100 has data transmission module.If so, place
It manages device 110 and executes step S508.If it is not, then processing unit 110 executes step S506.In step S508, log collection clothes
Diagnostic log data F2 is provided to external server 320 by business device 230.In step S506, processing unit 110 removes external storage
Cryopreservation device 310, and execute step S507.In step s 507, external storage device 310 is connected to another computer by user
Equipment to obtain the diagnostic log data F2 for being stored in external storage device 310 by another computer equipment, and handles dress
110 execution step S512 are set, to terminate to diagnose.
In step S509, processing unit 110 judges whether diagnostic module 220 is completed to diagnose.If diagnostic module 220 is not yet
Diagnosis is completed, then processing unit 110 re-execute the steps S504 until diagnostic module 220 is completed to diagnose.If diagnostic module 220 is complete
At diagnosis, then processing unit 110 executes step S510.In step S510, diagnostic log data F1 is written starting module 210
To the specific position of storage device 120, and processing unit 110 executes step S511.
In step S511, processing unit 110 judges whether to need to execute without other diagnostic modules.If so, processing dress
110 execution steps 512 are set, to terminate to diagnose.If it is not, then processing unit 110 re-execute the steps S502, so that starting module
210 connect the next diagnostic module of execution.That is, compared to Fig. 3 and Fig. 4 embodiment, the diagnostic method of the present embodiment
Diagnostic log data F1 can be stored to the specific position to storage device 120 and external storage device 310, and number can be passed through
According to transmission module backup diagnostic log data F2 to external server 320 and the memory of another computer equipment.Therefore, if it is electric
Brain equipment 100 breaks down, and user can still be obtained by the memory of external server 320 and this another computer equipment
The newest diagnostic log data F2 of computer equipment 100.Even, if external server 320 and this another computer equipment are also sent out
Raw failure, then user can also connect external storage device 310 by another computer equipment, to obtain diagnostic log data
F1。
Fig. 6 is painted the schematic diagram of the diagnostic method of another embodiment of the present invention.With reference to Fig. 1 and Fig. 6, the present embodiment
Diagnostic method is applicable to the computer equipment 100 of Fig. 1 embodiment.In step S610, computer equipment 100 passes through storage device
120 storages correspond to multiple diagnostic modules of multiple hardware devices, and these diagnostic modules are to diagnose these hardware devices.
In step S620, computer equipment 100 executes starting module by processing unit 110, so that starting module executes these diagnosis
Module diagnoses these hardware devices, and these diagnostic modules generate multiple diagnostic log data.In step S630, computer
These diagnostic log data are written to the specific position of storage device 120 according to preset path by starting module for equipment 100.
Therefore, the diagnostic method of the present embodiment can efficiently execute these diagnostic modules, and integrate these diagnostic log data, with
User can quickly grasp and obtains these diagnostic log data.
In addition, other device characteristics, implementation detail and the technological means of the computer equipment 100 about the present embodiment can join
Enough teachings are obtained according to above-mentioned Fig. 1 to Fig. 5 embodiment, suggests and implements explanation, therefore are repeated no more.
In conclusion computer equipment and diagnostic method of the invention can efficiently execute multiple diagnostic modules, to produce
Raw multiple diagnostic log data, and safely record the diagnostic log data of computer equipment.Computer equipment of the invention and
Diagnostic method can be by an identical specific position for the storage device of these diagnostic log data storages to computer equipment, to allow
User can facilitate and quickly grasp the diagnostic result of computer equipment.In addition, computer equipment and the diagnosis side of this case invention
Method can also be further by the memory of these diagnostic log data backups to the machine, external memory, external storage device
Or external server etc., safely to record the diagnostic log data of computer equipment.
Although the present invention has been disclosed by way of example above, it is not intended to limit the present invention., any technical field
Middle related technical personnel, without departing from the spirit and scope of the present invention, when can make some changes and embellishment, thus it is of the invention
Protection scope is subject to view as defined in claim.
Claims (22)
1. a kind of computer equipment, which is characterized in that there are multiple hardware devices, which includes:
One storage device, to store correspond to those hardware devices multiple diagnostic modules, and those diagnostic modules to
Diagnose those hardware devices;And
One processing unit couples the storage device, to execute a starting module, so that the starting module executes those diagnosis moulds
Block diagnoses those hardware devices, and those diagnostic modules generate multiple diagnostic log data,
Wherein those diagnostic log data are written to a certain bits of the storage device according to a preset path for the starting module
It sets.
2. computer equipment as described in claim 1, which is characterized in that further include:
One display device couples the processing unit, and wherein the processing unit drives the display device, so that the display device is shown
One intermediate portions of those diagnostic log data, and the hardware device further includes the display device.
3. computer equipment as described in claim 1, which is characterized in that the starting module more provides those diagnostic log data
To a log collecting server, and those diagnostic log data are written to a memory log collecting server,
If wherein a data volume of those diagnostic log data is greater than a storage space of the memory, the log collection service
Those diagnostic log data are sequentially written to the memory in a manner of recycling manifolding for device so that the memory storage those examine
One newest part of disconnected daily record data.
4. computer equipment as claimed in claim 3, which is characterized in that the memory is arranged in the computer equipment, and
Those hardware devices further include the memory.
5. computer equipment as claimed in claim 3, which is characterized in that the memory is arranged in external another computer equipment and works as
In, and another computer equipment includes the log collecting server.
6. computer equipment as claimed in claim 3, which is characterized in that the log collecting server is with wired or wireless data
Those diagnostic log data are provided to an external server by transmission mode.
7. computer equipment as claimed in claim 3, which is characterized in that diagnose the mistake of those hardware devices in those diagnostic modules
Cheng Zhong, when a Current Diagnostic target of those hardware devices is abnormal, starting module judgement corresponds to the Current Diagnostic
Whether one of those diagnostic modules of target, which are completed, diagnoses,
If wherein completing diagnosis corresponding to one of those diagnostic modules of the Current Diagnostic target, the starting module after
It is continuous to execute those diagnostic modules,
If wherein not completing diagnosis, the starting module corresponding to one of those diagnostic modules of the Current Diagnostic target
A segment diagnostic log data caused by one of those diagnostic modules for corresponding to the Current Diagnostic target are provided
To the log collecting server, and the starting module stops executing those diagnostic modules.
8. computer equipment as described in claim 1, which is characterized in that those diagnostic log data are more written the starting module
To an external storage device.
9. a kind of diagnostic method is suitable for a computer equipment, which is characterized in that the computer equipment has multiple hardware devices, and
And the computer equipment includes a storage device and a processing unit, wherein the diagnostic method includes:
Correspond to multiple diagnostic modules of those hardware devices by storage device storage, and those diagnostic modules are to examine
Break those hardware devices;
Device executes a starting module through this process, so that the starting module executes those diagnostic modules to diagnose those hardware
Device, and those diagnostic modules generate multiple diagnostic log data;And
Those diagnostic log data are written to a certain bits of the storage device according to a preset path by the starting module
It sets.
10. diagnostic method as claimed in claim 9, which is characterized in that the computer equipment further includes a display device, and should
Diagnostic method further includes:
Device drives the display device through this process, so that the display device shows an emphasis portion of those diagnostic log data
Point.
11. diagnostic method as claimed in claim 9, which is characterized in that further include:
Those diagnostic log data are more provided to a log collecting server by the starting module, and are received by the log
Those diagnostic log data are written to a memory collection server;And
If a data volume of those diagnostic log data is greater than a storage space of the memory, serviced by the log collection
Those diagnostic log data are sequentially written to the memory in a manner of recycling manifolding for device so that the memory storage those examine
One newest part of disconnected daily record data.
12. diagnostic method as claimed in claim 11, which is characterized in that the memory is arranged in the computer equipment, and
And those hardware devices further include the memory.
13. diagnostic method as claimed in claim 11, which is characterized in that external another computer equipment is arranged in the memory
In the middle, and another computer equipment includes the log collecting server.
14. diagnostic method as claimed in claim 11, which is characterized in that further include:
Those diagnostic log data are provided to one with wired or wireless data transfer mode by the log collecting server
External server.
15. diagnostic method as claimed in claim 11, which is characterized in that device executes the starting module through this process, with
The starting module is set to execute those diagnostic modules to diagnose those hardware devices, packet the step of to generate multiple diagnostic log data
It includes:
During those diagnostic modules diagnose those hardware devices, when a Current Diagnostic target of those hardware devices occurs
When abnormal, whether completed by one of those diagnostic modules that starting module judgement corresponds to the Current Diagnostic target
Diagnosis;
If one of those diagnostic modules for corresponding to the Current Diagnostic target complete diagnosis, by the starting module after
It is continuous to execute those diagnostic modules;And
If corresponding to one of those diagnostic modules of the Current Diagnostic target does not complete diagnosis, pass through the starting module
A segment diagnostic log data caused by one of those diagnostic modules for corresponding to the Current Diagnostic target are provided
To the log collecting server, and the starting module stops executing those diagnostic modules.
16. diagnostic method as claimed in claim 9, which is characterized in that further include:
Those diagnostic log data are more written to an external storage device by the starting module.
17. a kind of non-transitory computer-readable storage media, which is characterized in that store a starting module to be loaded into a computer
Equipment, wherein the computer equipment has multiple hardware devices, and the computer equipment includes a storage device and a processing dress
It sets, wherein storage device storage corresponds to multiple diagnostic modules of those hardware devices, and those diagnostic modules are to examine
Break those hardware devices, wherein the computer equipment executes following steps:
Device executes the starting module through this process, so that the starting module executes those diagnostic modules to diagnose those hardware
Device, and those diagnostic modules generate multiple diagnostic log data;And
Those diagnostic log data are written to a certain bits of the storage device according to a preset path by the starting module
It sets.
18. non-transitory computer-readable storage media as claimed in claim 17, which is characterized in that the computer equipment further includes
One display device, and the diagnostic method further includes:
Device drives the display device through this process, so that the display device shows an emphasis portion of those diagnostic log data
Point.
19. non-transitory computer-readable storage media as claimed in claim 17, which is characterized in that the computer equipment more executes
Following steps:
Those diagnostic log data are more provided to a log collecting server by the starting module, and are received by the log
Those diagnostic log data are written to a memory collection server;And
If a data volume of those diagnostic log data is greater than a storage space of the memory, serviced by the log collection
Those diagnostic log data are sequentially written to the memory in a manner of recycling manifolding for device so that the memory storage those examine
One newest part of disconnected daily record data.
20. non-transitory computer-readable storage media as claimed in claim 19, which is characterized in that the computer equipment more executes
Following steps:
Those diagnostic log data are provided to one with wired or wireless data transfer mode by the log collecting server
External server.
21. non-transitory computer-readable storage media as claimed in claim 19, which is characterized in that device is held through this process
Row starting module, so that the starting module executes those diagnostic modules to diagnose those hardware devices, to generate multiple diagnosis
The step of daily record data includes:
During those diagnostic modules diagnose those hardware devices, when a Current Diagnostic target of those hardware devices occurs
When abnormal, whether completed by one of those diagnostic modules that starting module judgement corresponds to the Current Diagnostic target
Diagnosis;
If one of those diagnostic modules for corresponding to the Current Diagnostic target complete diagnosis, by the starting module after
It is continuous to execute those diagnostic modules;And
If corresponding to one of those diagnostic modules of the Current Diagnostic target does not complete diagnosis, pass through the starting module
A segment diagnostic log data caused by one of those diagnostic modules for corresponding to the Current Diagnostic target are provided
To the log collecting server, and the starting module stops executing those diagnostic modules.
22. non-transitory computer-readable storage media as claimed in claim 19, which is characterized in that the computer equipment more executes
Following steps:
Those diagnostic log data are more written to an external storage device by the starting module.
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 true CN109918239A (en) | 2019-06-21 |
CN109918239B 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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI724742B (en) * | 2020-01-09 | 2021-04-11 | 華碩電腦股份有限公司 | Diagnostic system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020091966A1 (en) * | 1999-07-19 | 2002-07-11 | Barton James M. | Self-test electronic assembly and test system |
CN102737724A (en) * | 2011-04-07 | 2012-10-17 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing nonvolatile random access memory (NVRAM) |
US20150234698A1 (en) * | 2014-02-18 | 2015-08-20 | Netapp, Inc. | Methods for diagnosing hardware component failure and devices thereof |
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 (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW200726226A (en) * | 2005-12-30 | 2007-07-01 | Li-Kuang Chen | Last event digital recording device for a vehicle |
-
2017
- 2017-12-13 TW TW106143661A patent/TWI662407B/en active
-
2018
- 2018-01-03 CN CN201810004322.1A patent/CN109918239B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020091966A1 (en) * | 1999-07-19 | 2002-07-11 | Barton James M. | Self-test electronic assembly and test system |
CN102737724A (en) * | 2011-04-07 | 2012-10-17 | 鸿富锦精密工业(深圳)有限公司 | System and method for testing nonvolatile random access memory (NVRAM) |
US20150234698A1 (en) * | 2014-02-18 | 2015-08-20 | Netapp, Inc. | Methods for diagnosing hardware component failure and devices thereof |
CN106909468A (en) * | 2015-12-22 | 2017-06-30 | 中电科技(北京)有限公司 | A kind of computer fault diagnosis method based on UEFI firmwares |
CN105824730A (en) * | 2016-03-16 | 2016-08-03 | 北京珠穆朗玛移动通信有限公司 | Method and device for diagnosing and repairing hardware |
Also Published As
Publication number | Publication date |
---|---|
TWI662407B (en) | 2019-06-11 |
CN109918239B (en) | 2023-04-14 |
TW201928669A (en) | 2019-07-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10929260B2 (en) | Traffic capture and debugging tools for identifying root causes of device failure during automated testing | |
CN104063305B (en) | The method for testing pressure of intelligent terminal software, device and system | |
CN108959059B (en) | Test method and test platform | |
CN105074671B (en) | For detecting the method and system of concurrency programming mistake in kernel module and device driver | |
CN106326067B (en) | A kind of method and device that cpu performance is monitored under pressure test | |
CN110221983B (en) | Test method, test device, computer readable storage medium and computer equipment | |
JP4571534B2 (en) | Test apparatus, diagnostic program, and diagnostic method | |
US20180173617A1 (en) | System and method for testing program using user interaction replay | |
CN100524241C (en) | Method for integrating and testing platform of multiple operating systems | |
CN104246714A (en) | Software defect verification | |
JP5153774B2 (en) | Test apparatus, program, and recording medium | |
US10452508B2 (en) | Managing a set of tests based on other test failures | |
US20210111967A1 (en) | Graphical user interface for traffic capture and debugging tool | |
CN111464376A (en) | Website availability monitoring method and device, storage medium and computer equipment | |
CN109408361A (en) | Monkey tests restored method, device, electronic equipment and computer readable storage medium | |
CN108595332B (en) | Software testing method and device | |
CN109918239A (en) | Computer equipment, diagnostic method and non-transitory computer-readable storage media | |
CN108228611B (en) | Document information copying method and device | |
CN112817869A (en) | Test method, test device, test medium, and electronic apparatus | |
JP6531601B2 (en) | Diagnostic program, diagnostic method and diagnostic device | |
CN117149550A (en) | Solid state disk performance detection method and device and electronic equipment | |
US20130151897A1 (en) | Diagnostic handling server, diagnostic handling method, and program for the same server | |
CN114969175A (en) | Method for butting insurance platform and external system and related equipment | |
US9373153B2 (en) | Diagnosing graphics display problems | |
CN114679402A (en) | Method and device for testing communication protocol between upper computer and lower computer of medical robot |
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 |