CN109697144B - Hard disk detection method of electronic equipment and electronic equipment - Google Patents

Hard disk detection method of electronic equipment and electronic equipment Download PDF

Info

Publication number
CN109697144B
CN109697144B CN201811399861.6A CN201811399861A CN109697144B CN 109697144 B CN109697144 B CN 109697144B CN 201811399861 A CN201811399861 A CN 201811399861A CN 109697144 B CN109697144 B CN 109697144B
Authority
CN
China
Prior art keywords
hard disk
communication data
preset
data
electronic device
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
CN201811399861.6A
Other languages
Chinese (zh)
Other versions
CN109697144A (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.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
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 Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN201811399861.6A priority Critical patent/CN109697144B/en
Publication of CN109697144A publication Critical patent/CN109697144A/en
Application granted granted Critical
Publication of CN109697144B publication Critical patent/CN109697144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3485Performance evaluation by tracing or monitoring for I/O devices

Abstract

The invention discloses a hard disk detection method of electronic equipment and the electronic equipment, wherein the method comprises the following steps: detecting a communication protocol between the hard disk and the body of the electronic equipment to judge whether at least one preset address in the communication protocol meets a preset condition; when the preset condition is met, capturing communication data between the hard disk and the body, and storing the communication data in a specific storage area in the hard disk; the communication data is acquired and analyzed to determine errors associated with the hard disk that occur with the electronic device. The method can conveniently acquire the communication data between the hard disk and the mainboard in the original operating environment, further quickly analyze the reason of the error, and effectively improve the detection efficiency while controlling the lower cost.

Description

Hard disk detection method of electronic equipment and electronic equipment
Technical Field
The present invention relates to the field of information processing, and in particular, to a hard disk detection method for an electronic device and an electronic device.
Background
In the using process of the electronic equipment such as the computer and the like, various errors can occur to cause phenomena such as a dead halt blue screen and the like, but specific reasons for the errors are difficult to find, particularly, the errors are generated due to a hard disk of the electronic equipment such as the computer and the like, and the root cause of the errors is difficult to find, for example, the electronic equipment is dead halt or the blue screen is caused due to the data transmission problem of the hard disk, the root cause of the data transmission problem is difficult to analyze, and even the dead halt or the blue screen caused by the data transmission problem cannot be analyzed. In the prior art, the error reasons can be obtained only by connecting the logic analyzer between the hard disk and the mainboard with the help of an expensive logic analyzer and analyzing a large amount of data, but the method has high manufacturing cost and complex operation and destroys the original operating environment of electronic equipment such as computers and the like.
Disclosure of Invention
The embodiment of the invention aims to provide a hard disk detection method of electronic equipment and the electronic equipment.
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme: a hard disk detection method of an electronic device comprises the following steps:
detecting a communication protocol between the hard disk and the body of the electronic equipment to judge whether at least one preset address in the communication protocol meets a preset condition;
when the preset condition is met, capturing communication data between the hard disk and the body, and storing the communication data in a specific storage area in the hard disk;
the communication data is acquired and analyzed to determine errors associated with the hard disk that occur with the electronic device.
Preferably, the storing the communication protocol in a first register in the electronic device, and the detecting the communication protocol between the hard disk and the body of the electronic device to determine whether at least one preset address in the communication protocol satisfies a preset condition includes:
detecting the first register and reading the preset address;
and judging whether the numerical values of a plurality of address bits in the preset address meet the preset condition or not, wherein the first register is connected with the body or arranged on the body so that the body can modify the communication protocol in the first register.
Preferably, when the preset condition is met, the capturing communication data between the hard disk and the body includes:
and when the preset address meets the preset condition, a recording command is sent by a hard disk controller on the body, so that the hard disk starts a recording mode, and the communication data is captured.
Preferably, the storing the communication data in a specific storage area in the hard disk includes:
and when the specific storage area has no residual space, overwriting the current communication data to be stored with the historical communication data according to a preset rule, or storing the current communication data in a standby storage area in the hard disk.
Preferably, the method further comprises:
deriving the communication data from the particular memory area;
the communication data is divided into a plurality of data blocks, and the data blocks are respectively sent to a plurality of standby electronic devices, so that the standby electronic devices can simultaneously analyze the data blocks corresponding to the standby electronic devices.
An embodiment of the present invention further provides an electronic device, including:
the detection module is configured to detect a communication protocol between a hard disk of the electronic equipment and a body of the electronic equipment so as to judge whether at least one preset address in the communication protocol meets a preset condition;
the grabbing module is configured to grab communication data between the hard disk and the body when the preset condition is met, and store the communication data in a specific storage area in the hard disk;
a processing module configured to obtain and analyze the communication data to determine an error associated with a hard disk occurring with the electronic device.
Preferably, the communication protocol is stored in a first register in the electronic device, and the detecting module is further configured to:
detecting the first register and reading the preset address;
and judging whether the numerical values of a plurality of address bits in the preset address meet the preset condition or not, wherein the first register is connected with the body or is arranged on the body, so that the body can modify the communication protocol in the first register.
Preferably, the grasping module is further configured to: and when the preset address meets the preset condition, starting a recording mode of the hard disk through a recording command sent by a hard disk controller on the body, and further capturing the communication data.
Preferably, the grasping module is further configured to: and when the specific storage area has no residual space, overwriting the current communication data to be stored with the historical communication data according to a preset rule, or storing the current communication data in a standby storage area in the hard disk.
Preferably, the electronic device further comprises an assignment module configured to:
deriving the communication data from the particular memory area;
the communication data is divided into a plurality of data blocks, and the data blocks are respectively sent to a plurality of standby electronic devices, so that the standby electronic devices can simultaneously analyze the data blocks corresponding to the standby electronic devices.
The embodiment of the invention has the beneficial effects that: the method can conveniently acquire the communication data between the hard disk and the mainboard in the original operating environment, further quickly analyze the reason of the error, and effectively improve the detection efficiency while controlling the lower cost.
Drawings
Fig. 1 is a flowchart of a hard disk detection method of an electronic device according to an embodiment of the present invention;
FIG. 2 is a flowchart of step S1 of FIG. 1 according to an embodiment of the present invention;
FIG. 3 is a flowchart of an embodiment of a hard disk detection method according to the present invention;
FIG. 4 is a flowchart of another embodiment of a hard disk detection method according to the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Various aspects and features of the present invention are described herein with reference to the drawings.
It will be understood that various modifications may be made to the embodiments of the invention herein. Accordingly, the foregoing description should not be considered as limiting, but merely as exemplifications of embodiments. Other modifications within the scope and spirit of the invention will occur to those skilled in the art.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with a general description of the invention given above, and the detailed description of the embodiments given below, serve to explain the principles of the invention.
These and other characteristics of the invention will become apparent from the following description of a preferred form of embodiment, given as a non-limiting example, with reference to the accompanying drawings.
It should also be understood that although the present invention has been described with reference to some specific examples, a person of skill in the art shall certainly be able to achieve many other equivalent forms of the invention, having the characteristics as set forth in the claims and hence all coming within the field of protection defined thereby.
The above and other aspects, features and advantages of the present invention will become more apparent in view of the following detailed description when taken in conjunction with the accompanying drawings.
Specific embodiments of the present invention are described hereinafter with reference to the accompanying drawings; however, it is to be understood that the disclosed embodiments are merely exemplary of the invention, which can be embodied in various forms. Well-known and/or repeated functions and constructions are not described in detail to avoid obscuring the invention in unnecessary or unnecessary detail. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a basis for the claims and as a representative basis for teaching one skilled in the art to variously employ the present invention in virtually any appropriately detailed structure.
The specification may use the phrases "in one embodiment," "in another embodiment," "in yet another embodiment," or "in other embodiments," which may each refer to one or more of the same or different embodiments in accordance with the invention.
In an embodiment of the present invention, an electronic device may be a computer or other device, where the electronic device has a hard disk for storing data by a user, as shown in fig. 1 and combined with fig. 4, and the method includes the following steps:
s1, detecting a communication protocol between the hard disk and the electronic device body to determine whether at least one predetermined address in the communication protocol satisfies a predetermined condition. The body of the electronic device is a main component of the electronic device, such as a motherboard of the electronic device, which is connected to the hard disk and can perform data interaction with the hard disk, a communication protocol is provided between the hard disk and the body, and the hard disk and the body perform data interaction based on the communication protocol, for example, a communication protocol (communication mechanism) based on FIS (frame Information protocol) is used between the motherboard and the hard disk to perform data transmission, the FIS is a communication protocol used for performing data interaction between a master device and a slave device of a user, the motherboard can be used as the master device, the hard disk can be used as the slave device, the FIS includes a plurality of address data, and the motherboard and the hard disk can perform data interaction by using the address data. In one embodiment, the detection process of the data is started by using at least one preset address in the communication protocol, for example, the preset address is changed, and after the electronic device is powered on, whether the preset address meets a preset condition can be detected, where the preset condition can be defined according to actual use needs, and if the preset address changes, the preset address is considered to meet the preset condition.
And S2, capturing communication data between the hard disk and the body when a preset condition is met, and storing the communication data in a specific storage area in the hard disk. The communication data includes data transmitted between the hard disk and the body, such as a control instruction sent by the body to the hard disk, corresponding return data made by the hard disk, and the like. When the preset condition is not met, the communication data does not need to be analyzed, and then the body and the hard disk normally work without other reactions, if the preset condition is met, the communication data can be captured, for example, the communication data is captured through the hard disk, and the communication data is stored in a specific storage area in the hard disk, the specific storage area can be an independent area opened in the hard disk and is only used for storing the communication data without storing other data, the size of the specific storage area can be set according to the actual use condition without limitation, and the specific storage area is an area in the hard disk, so that the hard disk is very convenient and efficient in the process of obtaining the communication data, and other external equipment does not need to be utilized.
S3, communication data is obtained and analyzed to determine errors which occur in the electronic equipment and are associated with the hard disk. Since the communication data is stored in the hard disk, it is convenient to obtain and analyze the communication data, for example, the communication data can be directly analyzed by using the electronic device, or can be exported to be analyzed by using other standby electronic devices. In addition, the communication data records the data interaction process between the whole hard disk and the body, so that the error reasons associated with the hard disk can be quickly analyzed from the communication data, and the error is further improved. In addition, it should be noted that the hard disk detection method can maintain the original operating environment (hardware and connection relationship thereof do not change), so that the obtained communication data is real and reliable, and the communication data is easy to store and use, so that the reason why the electronic device has errors can be quickly analyzed, and the detection efficiency can be effectively improved at a lower cost.
In an embodiment of the application, the communication protocol is stored in a first register in the electronic device, and as shown in fig. 2, the step of detecting the communication protocol between the hard disk and the body of the electronic device to determine whether at least one preset address in the communication protocol satisfies a preset condition includes the following steps:
s11, detecting the first register, and reading the predetermined address.
And S12, determining whether the values of a plurality of address bits in the preset address meet preset conditions, wherein the first register is connected with the body or arranged on the body, so that the body can modify the communication protocol in the first register.
The first register may be disposed in multiple locations of the electronic device, such as on a motherboard of the electronic device, or in a memory of the electronic device, and the first register stores the communication protocol, so that at least one preset address in the communication protocol may be read by reading the first register, and the communication protocol may be read by reading the first register, for example, by a hard disk. In this embodiment, the main body can communicate with the first register to further operate the communication protocol, including modifying the communication protocol, for example, when the electronic device is a computer, the BIOS on the main board may communicate with the first register and modify, add, or delete the communication protocol in the first register. In this embodiment, the preset address may be customized by a user, each preset address has a plurality of address bits, and the user may modify the address bits, for example, modify at least one address bit through the BIOS, so that the value of the modified address bit meets the preset condition, and when the hard disk detects the preset address, it may be determined that the corresponding address bit meets the preset condition, and then the operation of capturing the communication data is started.
In an embodiment of the present application, the step of capturing the communication data between the hard disk and the main body when the preset condition is satisfied includes the following steps: when the preset address meets the preset condition, a recording command is sent by a hard disk controller on the body, so that the hard disk starts a recording mode, and then communication data is captured. Specifically, in combination with fig. 4, the body may be a motherboard of the electronic device, and the hard disk controller may be disposed on the motherboard and configured to control the hard disk, in this embodiment, when it is determined that at least one preset address in the communication protocol satisfies the preset condition, if a value of an address bit in the preset address satisfies the preset condition, the hard disk controller may send a recording command to the hard disk, and the hard disk starts a recording mode according to the recording command to capture and store the communication data, and certainly if the hard disk does not receive the recording command, the hard disk does not capture the communication data, which saves system resources.
In an embodiment of the present application, the step of storing the communication data in a specific storage area in the hard disk includes the steps of: when the specific storage area has no residual space, the current communication data to be stored is covered by the historical communication data according to a preset rule, or the current communication data is stored in a standby storage area in the hard disk.
Specifically, the capacity of the specific storage area is limited, when the specific storage area has a remaining space, the hard disk always records the communication data in a blank area of the specific storage area, but when the specific storage area has no remaining space, the current communication data to be stored can be overwritten by the historical communication data according to a preset rule, in one embodiment, a plurality of historical communication data have priorities, the historical communication data closer to the current time have higher priorities, and the preset rule can be that the historical communication data with lower priorities are overwritten first; in another embodiment, the priority may be set according to the specific content of the historical communication data, for example, the priority of the control command sent by the motherboard to the hard disk in the historical communication data is set to be higher, so that in the process of overwriting the current communication data with the historical communication data, data except the control command may be overwritten first. Of course, the preset rule may also be other rules made according to actual needs, and will not be described herein again.
In addition, when the specific storage area has no remaining space, the current communication data can also be stored in a spare storage area in the hard disk. The spare storage area may be different from the specific storage area, the current communication data may be stored in the spare storage area to avoid loss of the communication data, in an embodiment, a prompt message may be sent when the spare storage area is enabled to prompt a user, and the user may perform an operation on the data in the specific storage area after receiving the prompt, such as actively deleting a part of the data in the specific storage area, or performing other operations on the data in the spare storage area.
In one embodiment of the present application, as shown in fig. 3, the method further comprises the steps of:
s4, communication data is derived from the specific storage area.
And S5, dividing the communication data into a plurality of data blocks, and respectively transmitting the data blocks to a plurality of standby electronic devices so that the plurality of standby electronic devices can simultaneously analyze the corresponding data blocks.
Specifically, the communication data is derived from a specific storage area, and the derived communication data can be subjected to customized operation to flexibly process the communication data. In the present embodiment, the communication data is divided into a plurality of data blocks, and the division may be based on the specific content of the communication data or divided according to the size of the data amount, for example, the communication data is divided according to the generation time thereof to generate a plurality of data blocks. The data blocks are respectively sent to a plurality of standby electronic devices for processing, the standby electronic devices may be the same as or different from the electronic devices, for example, the electronic devices and the standby electronic devices may be computers. In this embodiment, each standby electronic device may process a part of the data blocks, so that the data blocks processed by the standby electronic devices can be analyzed simultaneously, and all analysis results are summarized, so as to obtain a final analysis result and determine an error that occurs in the electronic device and is associated with the hard disk.
An embodiment of the present invention further provides an electronic device, where the electronic device may be a computer or other device, the electronic device has a hard disk for storing data by a user, as shown in fig. 5 and combined with fig. 4, and the electronic device includes:
the detection module is configured to detect a communication protocol between a hard disk of the electronic device and a body of the electronic device so as to judge whether at least one preset address in the communication protocol meets a preset condition. The body of the electronic device is a main component of the electronic device, such as a motherboard of the electronic device, which is connected to the hard disk and can perform data interaction with the hard disk, a communication protocol is provided between the hard disk and the body, and the hard disk and the body perform data interaction based on the communication protocol, for example, a communication protocol (communication mechanism) based on FIS (frameinformation device) performs data transmission between the motherboard and the hard disk, the FIS is a communication protocol for performing data interaction between a user master device and a slave device, the motherboard can be used as the master device, the hard disk can be used as the slave device, the FIS includes a plurality of address data, and the motherboard and the hard disk can perform data interaction by using the address data. In one embodiment, the detection process of the data is started by using at least one preset address in the communication protocol, for example, the preset address is changed, and after the electronic device is powered on, the detection module can detect whether the preset address meets a preset condition, where the preset condition may be defined according to actual usage needs, and if the preset address changes, the preset address is considered to meet the preset condition.
And the grabbing module is configured to grab the communication data between the hard disk and the body when a preset condition is met, and store the communication data in a specific storage area in the hard disk. The communication data includes data transmitted between the hard disk and the body, such as a control instruction sent by the body to the hard disk, corresponding return data made by the hard disk, and the like. When the preset condition is not met, the communication data does not need to be analyzed, and then the body and the hard disk normally work without other reactions, if the preset condition is met, the grabbing module can grab the communication data, for example, the grabbing module grabs the communication data through the hard disk and stores the communication data in a specific storage area in the hard disk, the specific storage area can be an independent area opened up in the hard disk and is only used for storing the communication data but not storing other data, the size of the specific storage area can be set according to actual use conditions without limitation, and the specific storage area is an area in the hard disk, so that the hard disk is very convenient and efficient in obtaining the communication data, and the operation can be achieved without utilizing other external equipment.
A processing module configured to acquire and analyze the communication data to determine an error associated with the hard disk occurring with the electronic device. Since the communication data is stored in the hard disk essentially, it is very convenient to obtain and analyze the communication data, for example, the processing module may use the electronic device to directly analyze the communication data, or export the communication data to use other standby electronic devices to analyze the communication data. In addition, the communication data records the data interaction process between the whole hard disk and the body, so that the processing module can quickly analyze the error reason associated with the hard disk from the communication data, and further improve the error. In addition, it should be noted that the electronic device can maintain the original operating environment (the hardware and the connection relationship thereof do not change), so that the obtained communication data is real and reliable, and the communication data is easy to store and use, so that the reason for the error of the electronic device can be rapidly analyzed, and the detection efficiency can be effectively improved at a lower cost.
In one embodiment of the present application, the communication protocol is stored in a first register in the electronic device, and the detection module is further configured to:
detecting a first register and reading a preset address;
and judging whether the numerical values of a plurality of address bits in the preset address meet the preset condition or not, wherein the first register is connected with the body or arranged on the body, so that the body can modify the communication protocol in the first register.
Specifically, the first register may be disposed at a plurality of locations of the electronic device, such as on a motherboard of the electronic device, or in a memory of the electronic device, and the first register stores a communication protocol, so that the detecting module may read at least one preset address in the communication protocol by reading the first register, for example, the detecting module may read the communication protocol by reading the first register through a hard disk. In this embodiment, the detecting module can communicate with the first register through the body, and further operate the communication protocol, including modifying the communication protocol, for example, when the electronic device is a computer, the BIOS on the motherboard can communicate with the first register and modify, add, or delete the communication protocol in the first register. In this embodiment, the preset address may be customized by a user, each preset address has a plurality of address bits, and the user may modify the address bits, for example, modify at least one address bit through the BIOS, so that the value of the modified address bit meets the preset condition, and when the detection module detects the preset address through the hard disk, it may be determined that the corresponding address bit meets the preset condition, and then the operation of capturing the communication data is started.
In one embodiment of the present application, the grasping module is further configured to: when the preset address meets the preset condition, the hard disk starts a recording mode through a recording command sent by a hard disk controller on the body, and then communication data is captured. Specifically, in combination with fig. 4, the body may be a motherboard of the electronic device, and the hard disk controller may be disposed on the motherboard and configured to control the hard disk, in this embodiment, when the capture module determines that at least one preset address in the communication protocol satisfies the preset condition, if the value of the address bit in the preset address satisfies the preset condition, the capture module enables the hard disk controller to send a record command to the hard disk, the hard disk starts a record mode according to the record command to capture and store the communication data, and if the hard disk does not receive the record command, the hard disk controller does not capture the communication data, which saves system resources.
In one embodiment of the present application, the grasping module is further configured to: when the specific storage area has no residual space, the current communication data to be stored is covered by the historical communication data according to a preset rule, or the current communication data is stored in a standby storage area in the hard disk.
Specifically, the capacity of the specific storage area is limited, when the specific storage area has remaining space, the hard disk always records the communication data in a blank area of the specific storage area, but when the specific storage area has no remaining space, the capture module may overwrite current communication data to be stored with historical communication data according to a preset rule, in one embodiment, a plurality of historical communication data have priorities, the historical communication data closer to the current time have higher priorities, and the preset rule may be to overwrite the historical communication data with lower priorities first; in another embodiment, the priority may be set according to the specific content of the historical communication data, for example, the priority of the control command sent by the motherboard to the hard disk in the historical communication data is set to be higher, so that the capture module may first overwrite data except for the control command in the process of overwriting the current communication data with the historical communication data. Of course, the preset rule may also be other rules made according to actual needs, and will not be described herein again.
In addition, when the specific storage area has no remaining space, the grabbing module can also store the current communication data in a standby storage area in the hard disk. The spare storage area may be different from the specific storage area, the capture module stores the current communication data in the spare storage area, so that loss of the communication data may be avoided, in one embodiment, a prompt message may be sent when the spare storage area is enabled to prompt a user, and the user may operate the data in the specific storage area after receiving the prompt, for example, actively delete part of the data in the specific storage area, or perform other operations on the data in the spare storage area, and the like.
In an embodiment of the present application, the electronic device further includes an allocation module, and the allocation module is configured to: deriving communication data from the specific memory area; the communication data is divided into a plurality of data blocks, and the data blocks are respectively sent to a plurality of standby electronic devices, so that the standby electronic devices can simultaneously analyze the data blocks corresponding to the standby electronic devices.
In particular, the allocation module exports the communication data from a specific storage area, and the exported communication data can be customized to flexibly process the communication data. In this embodiment, the allocating module divides the communication data into a plurality of data blocks, and the division may be based on the specific content of the communication data or divided according to the size of the data amount, for example, the communication data is divided according to the generation time of the communication data to generate a plurality of data blocks. The allocation module sends the data blocks to a plurality of standby electronic devices for processing, and the standby electronic devices may be the same as or different from the electronic devices described above, for example, both the electronic devices and the standby electronic devices may be computers. In this embodiment, each standby electronic device may process a part of the data blocks, so that the data blocks processed by the standby electronic devices can be analyzed simultaneously, and the processing module can summarize all analysis results to obtain a final analysis result and determine an error that occurs in the electronic device and is associated with the hard disk.
The above embodiments are only exemplary embodiments of the present invention, and are not intended to limit the present invention, the scope of the present invention is defined by the claims. Various modifications and equivalents may be made by those skilled in the art within the spirit and scope of the present invention, and such modifications and equivalents should also be considered as falling within the scope of the present invention.

Claims (8)

1. A hard disk detection method of an electronic device comprises the following steps:
detecting a communication protocol between the hard disk and the body of the electronic equipment to judge whether at least one preset address in the communication protocol meets a preset condition, wherein when the preset address changes, the preset address is determined to meet the preset condition;
when the preset condition is met, capturing communication data between the hard disk and the body, and storing the communication data in a specific storage area in the hard disk;
acquiring and analyzing the communication data to determine errors which occur in the electronic equipment and are associated with a hard disk; wherein, the first and the second end of the pipe are connected with each other,
the communication protocol is stored in a first register in the electronic device, and the detecting the communication protocol between the hard disk and the body of the electronic device to determine whether at least one preset address in the communication protocol satisfies a preset condition includes:
detecting the first register and reading the preset address;
and judging whether the numerical values of a plurality of address bits in the preset address meet the preset condition or not, wherein the first register is connected with the body or is arranged on the body, so that the body can modify the communication protocol in the first register.
2. The method of claim 1, wherein when the preset condition is met, capturing communication data between the hard disk and the body comprises:
and when the preset address meets the preset condition, a hard disk controller on the body sends a recording command to enable the hard disk to start a recording mode, and then the communication data is captured.
3. The method of claim 1, wherein the storing the communication data in a specific storage area in the hard disk comprises:
and when the specific storage area has no residual space, overwriting the current communication data to be stored with the historical communication data according to a preset rule, or storing the current communication data in a standby storage area in the hard disk.
4. The method of claim 1, further comprising:
deriving the communication data from the particular memory area;
the communication data are divided into a plurality of data blocks, and the data blocks are respectively sent to a plurality of standby electronic devices, so that the standby electronic devices can simultaneously analyze the data blocks corresponding to the standby electronic devices.
5. An electronic device, comprising:
the detection module is configured to detect a communication protocol between a hard disk of the electronic equipment and a body of the electronic equipment so as to judge whether at least one preset address in the communication protocol meets a preset condition, wherein when the preset address changes, the preset address is determined to meet the preset condition;
the grabbing module is configured to grab communication data between the hard disk and the body when the preset condition is met, and store the communication data in a specific storage area in the hard disk;
a processing module configured to acquire and analyze the communication data to determine an error associated with a hard disk occurring with the electronic device; wherein the content of the first and second substances,
the communication protocol is stored in a first register in the electronic device, and the detection module is further configured to:
detecting the first register and reading the preset address;
and judging whether the numerical values of a plurality of address bits in the preset address meet the preset condition or not, wherein the first register is connected with the body or arranged on the body so that the body can modify the communication protocol in the first register.
6. The electronic device of claim 5, the grip module further configured to: and when the preset address meets the preset condition, sending a recording command through a hard disk controller on the body so as to enable the hard disk to start a recording mode and further capture the communication data.
7. The electronic device of claim 5, the grip module further configured to: and when the specific storage area has no residual space, overwriting the current communication data to be stored with the historical communication data according to a preset rule, or storing the current communication data in a standby storage area in the hard disk.
8. The electronic device of claim 5, further comprising an assignment module configured to:
deriving the communication data from the particular memory area;
the communication data is divided into a plurality of data blocks, and the data blocks are respectively sent to a plurality of standby electronic devices, so that the standby electronic devices can simultaneously analyze the data blocks corresponding to the standby electronic devices.
CN201811399861.6A 2018-11-22 2018-11-22 Hard disk detection method of electronic equipment and electronic equipment Active CN109697144B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811399861.6A CN109697144B (en) 2018-11-22 2018-11-22 Hard disk detection method of electronic equipment and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811399861.6A CN109697144B (en) 2018-11-22 2018-11-22 Hard disk detection method of electronic equipment and electronic equipment

Publications (2)

Publication Number Publication Date
CN109697144A CN109697144A (en) 2019-04-30
CN109697144B true CN109697144B (en) 2022-09-23

Family

ID=66230163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811399861.6A Active CN109697144B (en) 2018-11-22 2018-11-22 Hard disk detection method of electronic equipment and electronic equipment

Country Status (1)

Country Link
CN (1) CN109697144B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261599A (en) * 2007-03-08 2008-09-10 英华达(上海)科技有限公司 Method for reading hard disk monitoring information
CN103729221B (en) * 2013-12-30 2017-07-18 合肥联宝信息技术有限公司 A kind of method and device that BIOS Debugging message is put into hard disk
CN106598790A (en) * 2015-10-16 2017-04-26 中兴通讯股份有限公司 Server hardware failure detection method, apparatus of server, and server
US10310749B2 (en) * 2016-09-16 2019-06-04 Netscout Systems Texas, Llc System and method for predicting disk failure
CN106951354B (en) * 2017-03-20 2020-08-18 湖南磐石科技有限公司 Solid state disk and fault detection device and method thereof
CN107590017B (en) * 2017-09-21 2021-05-18 联想(北京)有限公司 Detection method and device for electronic equipment
CN107590040A (en) * 2017-09-22 2018-01-16 郑州云海信息技术有限公司 A kind of hard disk backboard and computer installation, hard disk fault detection method and memory

Also Published As

Publication number Publication date
CN109697144A (en) 2019-04-30

Similar Documents

Publication Publication Date Title
US8843663B2 (en) Data transmission device and method for merging multiple commands
US8909822B2 (en) Output device, log collecting method for output device, and storage medium
CN102866961A (en) Memory transfer with extended data and user privacy protection
KR20120102664A (en) Allocating storage memory based on future use estimates
CN104111870B (en) Interrupt processing device and method
US11500707B2 (en) Controller, memory controller, storage device, and method of operating the controller
CN103823771B (en) Remote communication method and remote communication system
CN101819550A (en) Interface testing system for serial connecting small computer system
EP3274839B1 (en) Technologies for root cause identification of use-after-free memory corruption bugs
JP5401903B2 (en) Failure information monitoring apparatus and failure information monitoring method
US20060069821A1 (en) Capture of data in a computer network
CN111240879A (en) SAS card firmware log collection method, system, device and storage medium
CN108628760A (en) The method and apparatus of atom write order
CN109697144B (en) Hard disk detection method of electronic equipment and electronic equipment
JP2003318996A (en) Communication device for vehicle
CN108628761A (en) Atomic commands execute method and apparatus
CN107391036A (en) The VPD information access method and system of a kind of storage
CN111258765A (en) Load balancing method and device, computing equipment and storage medium
CN113076233B (en) IO performance detection method, device, equipment and storage medium
CN115495406A (en) Message transmission method, device, equipment and storage medium based on PCIe
CN111176568B (en) Data analysis method and device
JP2009529722A (en) Apparatus, method and computer program product for generating tracking data
KR100615694B1 (en) Control system for controlling plural function block
US20040039971A1 (en) Dumping using limited system address space
CN110704370B (en) File system performance monitoring method, device, equipment and readable storage medium

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