Expansion module, fault positioning method, terminal device, medium and product

By expanding the signal acquisition and processing module in the module, the problem of low fault positioning accuracy in the prior art is solved, and efficient fault positioning is achieved without changing the link topology and signal environment.

CN120387197AActive Publication Date: 2025-07-29INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510887545.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-07-29
Estimated Expiration
2045-06-30

AI Technical Summary

Technical Problem

The fault positioning method in the prior art needs to destroy the original link topology and signal transmission environment, resulting in low fault positioning accuracy.

Method used

The extended module is adopted, including a signal acquisition module and a signal processing module, and consists of an expander. Multiple link signals are collected through the acquisition components in the signal acquisition module, and analyzed by the signal processing module to realize the detection and analysis of link signals.

Benefits of technology

Without destroying the original topological structure and signal transmission environment, the detection accuracy of link signals is improved, thereby improving the accuracy of fault location.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120387197A_ABST
    Figure CN120387197A_ABST
Patent Text Reader

Abstract

The invention discloses an expansion module, a fault positioning method, terminal equipment, a medium and a product. The expansion module comprises an expander, a signal acquisition module and a signal processing module; the signal acquisition module comprises a plurality of acquisition parts; the expansion module belongs to computing equipment; the signal processing module is respectively connected with the expander and the signal acquisition module; aiming at any acquisition part in the signal acquisition module, a host controller in the computing equipment is connected with the expander through the acquisition part; or, the hard disk in the computing equipment is connected with the expander through the acquisition component. Based on the above structure, the expansion module can detect and analyze the link signal, and the detection accuracy of the link signal is improved, so that the accuracy of obtaining the link characteristic based on the link signal is improved, and the accuracy of fault positioning (fault cause determination) is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of computing devices, and particularly to an expansion module, a fault location method, a terminal device, a medium, and a product. Background Art

[0002] In a computing device, a host controller can be connected to multiple hard disks through an expander. To ensure the storage reliability of the computing device, it is necessary to monitor the link in real time and locate faults.

[0003] In the related art, it is necessary to disconnect the link (the link between the hard disk and the expander, or the link between the expander and the host controller), and connect an analyzer to the link to locate faults based on the monitored link signal.

[0004] However, in the related art, the method of accessing the analyzer by destroying the original link, on the one hand, will change the original topology structure and signal transmission environment of the link, and on the other hand, can only detect the link signal of one link, resulting in a low accuracy rate of fault location in the method of the related art. Summary of the Invention

[0005] This application provides an expansion module, a fault location method, a terminal device, a medium, and a product to at least solve the problem of low accuracy rate of fault location in the related art.

[0006] This application provides an expansion module, including an expander, a signal acquisition module, and a signal processing module; the signal acquisition module includes multiple acquisition components; the expansion module belongs to a computing device;

[0007] The signal processing module is respectively connected to the expander and the signal acquisition module;

[0008] For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component.

[0009] This application also provides a fault location method, and the method includes:

[0010] Obtain an acquisition start instruction through the expander in the expansion module, and send the acquisition start instruction to the signal acquisition module in the expansion module;

[0011] Through the signal acquisition module, determine at least one target acquisition component from multiple acquisition components according to the acquisition start instruction, and collect the link signals of at least one link based on the at least one target acquisition component;

[0012] Obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module;

[0013] The link signals of at least one link are analyzed by a signal processing module to obtain the signal characteristics of at least one link; the signal characteristics of at least one link are used for the terminal device to determine the cause of the fault.

[0014] This application also provides a fault location method, including:

[0015] Obtain the signal characteristics of at least one link; wherein, the signal characteristics of at least one link are obtained by the expansion module through the expander in the expansion module to obtain a collection start instruction, send the collection start instruction to the signal analysis module in the expansion module, and according to the collection start instruction through the signal analysis module, determine at least one target collection component from multiple collection components, and based on at least one target collection component, collect the link signals of at least one link, obtain the link signals of at least one link sent by the signal collection module through the signal processing module in the expansion module, and analyze the link signals of at least one link through the signal processing module to obtain;

[0016] Determine the cause of the fault according to the signal characteristics of at least one link.

[0017] This application also provides a fault location method, including:

[0018] The expansion module obtains a collection start instruction through the expander in the expansion module and sends the collection start instruction to the signal analysis module in the expansion module;

[0019] The expansion module determines at least one target collection component from multiple collection components according to the collection start instruction through the signal analysis module, and collects the link signals of at least one link based on at least one target collection component;

[0020] The expansion module obtains the link signals of at least one link sent by the signal collection module through the signal processing module in the expansion module;

[0021] The expansion module analyzes the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link;

[0022] The terminal device obtains the signal characteristics of at least one link;

[0023] The terminal device determines the cause of the fault according to the signal characteristics of at least one link.

[0024] This application also provides a terminal device, including:

[0025] A memory for storing a computer program;

[0026] A processor for implementing the steps of the fault location method as described above when executing the computer program.

[0027] The present application also provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the steps of the foregoing fault location method are implemented.

[0028] The present application also provides a computer program product including a computer program, wherein when the computer program is executed by a processor, the steps of the foregoing fault location method are implemented.

[0029] Through the present application, a signal acquisition module with the ability to detect link signals (including a plurality of acquisition components (each acquisition component can acquire the link signals of the link)), a signal processing module with the ability to process link signals, and an expander are combined to form an expansion module. Then, the acquisition components are arranged between the host controller and the expander, or between the hard disk and the expander, so that the expansion module can acquire the link signals of multiple links and analyze them without destroying the original topology structure and signal transmission environment of the link, improving the accuracy of detecting link signals, thereby improving the accuracy of obtaining link characteristics, and further improving the accuracy of fault location (determining the cause of the fault). BRIEF DESCRIPTION OF THE DRAWINGS

[0030] To more clearly illustrate the embodiments of the present application, the following will briefly introduce the drawings required for the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

[0031] Figure 1 It is a schematic diagram of a fault location scenario in the related art;

[0032] Figure 2 It is a schematic structural diagram of a computing device provided by an embodiment of the present application Figure 1 ;

[0033] Figure 3 It is a schematic structural diagram of a computing device provided by an embodiment of the present application Figure 2 ;

[0034] Figure 4 It is a schematic structural diagram of a computing device provided by an embodiment of the present application Figure 3 ;

[0035] Figure 5 It is a schematic flowchart of a fault location method provided by an embodiment of the present application Figure 1 ;

[0036] Figure 6 It is a schematic flowchart of a fault location method provided by an embodiment of the present application Figure 2 ;

[0037] Figure 7 Schematic flow of a fault location method provided by an embodiment of the present application Figure 3 ;

[0038] Figure 8 Schematic flow of a fault location method provided by an embodiment of the present application Figure 4 ;

[0039] Figure 9 Schematic structural diagram of a fault location device provided by an embodiment of the present application;

[0040] Figure 10 Schematic structural diagram of a terminal device provided by the present application. Detailed implementation manners

[0041] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the protection scope of the present application.

[0042] It should be noted that in the description of the present application, the terms "include", "comprise" or any other variant thereof are intended to cover a non-exclusive inclusion, such that a process, method, article or device including a series of elements not only includes those elements but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. The terms "first", "second", etc. in the present application are used to distinguish similar objects and not to describe a specific order or sequence.

[0043] Exemplarily, Figure 1 is a schematic diagram of a fault location scenario in the related art. As Figure 1 shown, this scenario includes a computing device 10 and an analyzer 30. In the computing device 10, a host controller 101 can be connected to a plurality of hard disks through an expander 102. Exemplarily, Figure 1 shows three hard disks, namely hard disk 103, hard disk 104, and hard disk 105.

[0044] To ensure the storage reliability of the computing device, it is necessary to perform real-time monitoring and fault location on the link.

[0045] In the related art, it is necessary to disconnect a link (a link between a hard disk and an expander, or a link between an expander and a host controller), and connect an analyzer 30 to the link (such as a link between a hard disk and an expander) to perform fault location based on the monitored link signal.

[0046] However, in the related art, the method of breaking the original link to access the analyzer, on the one hand, will change the original topology and signal transmission environment of the link, and on the other hand, can only detect the link signal of one link, resulting in the problem of low accuracy of fault location in the method of the related art.

[0047] Therefore, in view of the above technical problems in the related art, it is found in the research process that if a signal acquisition module with the ability to detect link signals (including multiple acquisition components (each acquisition component can acquire the link signal of the link)), a signal processing module with the ability to process link signals, and an expander are combined into an expansion module, and then the acquisition components are set between the host controller and the expander, or between the hard disk and the expander, the expansion module can acquire the link signals of multiple links and perform analysis without destroying the original topology and signal transmission environment of the link. Therefore, the present application proposes an expansion module, a fault location method, a terminal device, a medium and a product. Specifically, the expansion module includes an expander, a signal acquisition module and a signal processing module; the signal acquisition module includes multiple acquisition components; the expansion module belongs to a computing device; the signal processing module is respectively connected to the expander and the signal acquisition module; for any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component.

[0048] In order to enable those skilled in the art of the present technology to better understand the solution of the present application, the present application will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0049] Figure 2 Structural schematic of a computing device provided by an embodiment of the present application Figure 1 。

[0050] As Figure 2 shown, the computing device 20 includes a host controller 201, an expansion module 202 and multiple hard disks.

[0051] Exemplarily, Figure 2 three hard disks are shown, which are hard disk 0, hard disk 1 and hard disk 2 respectively. In addition, as Figure 2 shown, in one implementation, the computing device 20 may further include a processor 203 and a memory 204.

[0052] The expansion module 202 includes a signal acquisition module 2021, an expander 2022, and a signal processing module 2023.

[0053] The signal acquisition module 2021 may include a plurality of acquisition components. Exemplarily, Figure 2 it is shown that the signal acquisition module 2021 includes seven acquisition components, namely acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5, and acquisition component 6.

[0054] It should be noted that the signal processing module 2023 is respectively connected to the expander 2022 and the signal acquisition module 2021.

[0055] For any acquisition component in the signal acquisition module 2021, the host controller 201 in the computing device 20 is connected to the expander 2022 through this acquisition component; or, the hard disk in the computing device 10 is connected to the expander 2022 through this acquisition component.

[0056] Exemplarily, as Figure 2 shown, in the case where the signal acquisition module 2021 includes acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5, and acquisition component 6:

[0057] For acquisition component 0, the host controller 201 is connected to the expander 2022 through this acquisition component 0.

[0058] For acquisition component 1, the host controller 201 is connected to the expander 2022 through this acquisition component 1.

[0059] For acquisition component 2, the host controller 201 is connected to the expander 2022 through this acquisition component 2.

[0060] For acquisition component 3, the host controller 201 is connected to the expander 2022 through this acquisition component 3.

[0061] For acquisition component 4, the hard disk 0 is connected to the expander 2022 through this acquisition component 4.

[0062] For acquisition component 5, the hard disk 1 is connected to the expander 2022 through this acquisition component 5.

[0063] For acquisition component 6, the hard disk 1 is connected to the expander 2022 through this acquisition component 6.

[0064] In addition, it should be noted that in the case where the computing device 20 includes a processor 203 and a memory 204, the processor 203 may be respectively connected to the host controller 201 and the memory 204.

[0065] It should be noted that the host controller 201 can be a Host Bus Adapter (HBA) card, a Redundant Array of Independent Disks (RAID) card, or other types of host controllers. The embodiments of the present application do not limit this.

[0066] The hard disk can be a solid-state drive, a mechanical hard disk, or other types of hard disks. The embodiments of the present application do not limit this.

[0067] Beneficial effects of this embodiment: A signal acquisition module (including multiple acquisition components) with the ability to detect link signals, a signal processing module with the ability to process link signals, and an expander are combined into an expansion module. Then, by using the expansion module connected between the host controller and the hard disk, it is possible to detect and analyze link signals without damaging the original topology structure and signal transmission environment of the link, so as to obtain the signal characteristics of at least one link, improve the accuracy of link signal detection, thereby improving the accuracy of obtaining link characteristics, and further improving the accuracy of fault location (determining the cause of the fault).

[0068] Figure 3 Structural schematic of a computing device provided by an embodiment of the present application Figure 2 。

[0069] In this embodiment, the expander 2022 can include multiple ports.

[0070] For any acquisition component in the signal acquisition module 2021:

[0071] The host controller 201 can be connected to a port of the expander 2022 through this acquisition component;

[0072] Or,

[0073] The hard disk can be connected to a port of the expander 2022 through this acquisition component.

[0074] Exemplarily, as Figure 3 shown, when the signal acquisition module 2021 includes acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5, and acquisition component 6:

[0075] For acquisition component 0, the host controller 201 is connected to port 0 of the expander 2022 through this acquisition component 0. It should be noted that the link through which the host controller 201 is connected to port 0 of the expander 2022 through this acquisition component 0 can be a link through which the signal acquisition module 2021 can acquire link signals based on acquisition component 0.

[0076] For the acquisition component 1, the host controller 201 is connected to port 1 of the expander 2022 through this acquisition component 1. It should be noted that the link through which the host controller 201 is connected to port 1 of the expander 2022 through this acquisition component 1 can be a link through which the signal acquisition module 2021 can acquire link signals based on the acquisition component 1.

[0077] For the acquisition component 2, the host controller 201 is connected to port 2 of the expander 2022 through this acquisition component 2. It should be noted that the link through which the host controller 201 is connected to port 2 of the expander 2022 through this acquisition component 2 can be a link through which the signal acquisition module 2021 can acquire link signals based on the acquisition component 2.

[0078] For the acquisition component 3, the host controller 201 is connected to port 3 of the expander 2022 through this acquisition component 3. It should be noted that the link through which the host controller 201 is connected to port 3 of the expander 2022 through this acquisition component 3 can be a link through which the signal acquisition module 2021 can acquire link signals based on the acquisition component 3.

[0079] For the acquisition component 4, the hard disk 0 is connected to port 4 of the expander 2022 through this acquisition component 4. It should be noted that the link through which the hard disk 0 is connected to port 4 of the expander 2022 through this acquisition component 4 can be a link through which the signal acquisition module 2021 can acquire link signals based on the acquisition component 4.

[0080] For the acquisition component 5, the hard disk 1 is connected to port 5 of the expander 2022 through this acquisition component 5. It should be noted that the link through which the hard disk 1 is connected to port 5 of the expander 2022 through this acquisition component 5 can be a link through which the signal acquisition module 2021 can acquire link signals based on the acquisition component 5.

[0081] For the acquisition component 6, the hard disk 1 is connected to port 6 of the expander 2022 through this acquisition component 6. It should be noted that the link through which the hard disk 2 is connected to port 6 of the expander 2022 through this acquisition component 6 can be a link through which the signal acquisition module 2021 can acquire link signals based on the acquisition component 6.

[0082] Advantages of this embodiment: In this embodiment, the expander may include multiple ports. For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to a port of the expander through the acquisition component; or, the hard disk in the computing device is connected to a port of the expander through the acquisition component. Based on the above structure, the signal acquisition module can use each acquisition component to independently acquire the signals of each link. That is to say, based on the above structure, the signal analysis module supports the independent acquisition and processing of the link signals of a single link, and also supports the parallel acquisition and processing of the link signals of multiple links, improving the efficiency and accuracy of the acquisition and processing of link signals, and further improving the efficiency and accuracy of fault location.

[0083] Figure 4 Schematic structure of a computing device provided by an embodiment of the present application Figure 3 As Figure 4 shown, the computing device 20 may include multiple control boards and multiple hard disks. Exemplarily, Figure 4 three hard disks are shown, namely hard disk 1, hard disk 2, and hard disk 3.

[0084] For each control board, the control board includes a host controller, an expansion module, a processor, and a memory.

[0085] The expansion module includes a signal acquisition module, a signal processing module, and an expander.

[0086] The processor is respectively connected to the host controller and the memory.

[0087] The signal processing module is respectively connected to the expander and the signal acquisition module.

[0088] For any acquisition component in the signal acquisition module, the host controller is connected to the expander through the acquisition component; or, the hard disk is connected to the expander through the acquisition component.

[0089] Exemplarily, Figure 4 it is shown that the computing device 20 includes two control boards, namely control board 1 and control board 2.

[0090] Control board 1 includes a host controller 201, an expansion module 202, a processor 203, and a memory 204.

[0091] The expansion module 202 includes a signal acquisition module 2021, a signal processing module 2023, and an expander 2022.

[0092] The signal acquisition module 2021 includes multiple acquisition components. Exemplarily, Figure 4It is shown that the signal acquisition module 2021 includes 7 acquisition components, namely acquisition component 0, acquisition component 1, acquisition component 2, acquisition component 3, acquisition component 4, acquisition component 5, and acquisition component 6.

[0093] The processor 203 is respectively connected to the host controller 201 and the memory 204.

[0094] The signal processing module 2023 is respectively connected to the expander 2022 and the signal acquisition module 2021.

[0095] For any acquisition component in the signal acquisition module 2021, the host controller 201 is connected to the expander 2022 through this acquisition component; or, the hard disk is connected to the expander 2022 through this acquisition component.

[0096] The control board 2 includes a host controller 205, an expansion module 206, a processor 207, and a memory 208.

[0097] The expansion module 206 includes a signal acquisition module 2061, a signal processing module 2063, and an expander 2062.

[0098] The signal acquisition module 2061 includes a plurality of acquisition components. Exemplarily, Figure 4 It is shown that the signal acquisition module 2061 includes 7 acquisition components, namely acquisition component 7, acquisition component 8, acquisition component 9, acquisition component 10, acquisition component 11, acquisition component 12, and acquisition component 13.

[0099] The signal processing module 2063 is respectively connected to the expander 2062 and the signal acquisition module 2061.

[0100] For any acquisition component in the signal acquisition module 2061, the host controller 205 is connected to the expander 2062 through this acquisition component; or, the hard disk is connected to the expander 2062 through this acquisition component.

[0101] As Figure 4 shown:

[0102] For acquisition component 0, the host controller 201 is connected to the expander 2022 through this acquisition component 0.

[0103] For acquisition component 1, the host controller 201 is connected to the expander 2022 through this acquisition component 1.

[0104] For acquisition component 2, the host controller 201 is connected to the expander 2022 through this acquisition component 2.

[0105] For acquisition component 3, the host controller 201 is connected to the expander 2022 through this acquisition component 3.

[0106] For the acquisition component 4, the hard disk 0 is connected to the expander 2022 through the acquisition component 4.

[0107] For the acquisition component 5, the hard disk 1 is connected to the expander 2022 through the acquisition component 5.

[0108] For the acquisition component 6, the hard disk 1 is connected to the expander 2022 through the acquisition component 6.

[0109] For the acquisition component 7, the host controller 205 is connected to the expander 2062 through the acquisition component 7.

[0110] For the acquisition component 8, the host controller 205 is connected to the expander 2062 through the acquisition component 8.

[0111] For the acquisition component 9, the host controller 205 is connected to the expander 2062 through the acquisition component 9.

[0112] For the acquisition component 10, the host controller 205 is connected to the expander 2062 through the acquisition component 10.

[0113] For the acquisition component 11, the hard disk 0 is connected to the expander 2062 through the acquisition component 11.

[0114] For the acquisition component 12, the hard disk 1 is connected to the expander 2062 through the acquisition component 12.

[0115] For the acquisition component 13, the hard disk 1 is connected to the expander 2062 through the acquisition component 13.

[0116] Advantageous effects of this embodiment : In this embodiment, the computing device includes a plurality of control boards and a plurality of hard disks. For each control board, the control board includes a host controller, an expansion module, a processor, and a memory. The expansion module includes an expander, a signal acquisition module, and a signal processing module; the signal acquisition module includes a plurality of acquisition components. The signal processing module is respectively connected to the expander and the signal acquisition module. For any acquisition component in the signal acquisition module, the host controller in the control board is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component. With the above structure, the terminal device can determine the cause of the fault based on the signal characteristics of at least one link collected and analyzed by the expansion module in each control board, improving the efficiency and accuracy of determining the cause of the fault and reducing the cost of fault location.

[0117] Figure 5 Schematic flow of a fault location method provided by an embodiment of the present application Figure 1 , see Figure 5, the method specifically includes the following steps:

[0118] S501: Obtain a collection start instruction through the expander in the expansion module, and send the collection start instruction to the signal collection module in the expansion module.

[0119] In this embodiment, the expansion module includes an expander, a signal collection module, and a signal processing module; the signal collection module includes a plurality of collection components; the expansion module belongs to a computing device. The signal processing module is respectively connected to the expander and the signal collection module. For any collection component in the signal collection module, the host controller in the computing device is connected to the expander through the collection component; or, the hard disk in the computing device is connected to the expander through the collection component.

[0120] In one implementation, the expander includes a plurality of ports. For any collection component in the signal collection module, the host controller in the computing device is connected to a port of the expander through the collection component; or, the hard disk in the computing device is connected to a port of the expander through the collection component.

[0121] The expansion module can obtain a collection start instruction through the expander and send the collection start instruction to the signal collection module.

[0122] Next, the process of the expansion module obtaining a collection start instruction through the expander will be described.

[0123] In one implementation:

[0124] Each link includes a plurality of protocol layers. Among them, the plurality of protocol layers include a physical layer, a link layer, a port layer, a transport layer, and an application layer.

[0125] It should be noted that the link is the link where the host controller is connected to a port of the expander through a collection component. Or, the link is the link where the hard disk is connected to a port of the expander through a collection component.

[0126] The expansion module can determine whether there is a protocol layer in a fault state among the multiple protocol layers of the multiple links through the expander.

[0127] Next, the process of the expander determining whether there is a protocol layer in a fault state among the multiple protocol layers of the multiple links will be described.

[0128] In one implementation:

[0129] For any protocol layer of any link, the expansion module can obtain the value of the status register corresponding to the protocol layer through the expander. Among them,

[0130] The value of the status register is the first value or the second value. The first value indicates that the status of the protocol layer is a fault state, and the second value indicates that the status of the protocol layer is a normal state.

[0131] The expansion module can determine, through the expander, that among the multiple protocol layers of multiple links, if the value of the status register corresponding to at least one protocol layer is the first value, there is a protocol layer with a fault state among the multiple protocol layers of the multiple links.

[0132] The expansion module can determine, through the expander, that among the multiple protocol layers of multiple links, if the value of the status register corresponding to each protocol layer is the second value, there is no protocol layer with a fault state among the multiple protocol layers of the multiple links.

[0133] The expansion module can generate a collection start instruction in the case of a protocol layer with a fault state among the multiple protocol layers of multiple links through the expander.

[0134] In one implementation:

[0135] The expansion module can obtain the collection start instruction sent by the processor through the host controller through the expander.

[0136] Next, the process of the processor generating the collection start instruction will be described.

[0137] In one implementation, the collection start instruction is generated by the processor when it detects a protocol layer with a fault state among the multiple protocol layers of multiple links. In one implementation, the host controller can generate an alarm indication message when it identifies a protocol layer with a fault state among the multiple protocol layers of multiple links. When the processor obtains the alarm indication message sent by the host controller, it determines that there is a protocol layer with a fault state among the multiple protocol layers of multiple links. It should be noted that each link includes multiple protocol layers; the link is the first link or the second link.

[0138] In one implementation, the collection start instruction is generated by the processor when it detects an input / output (Input / Output, abbreviated as IO) error. For example, the collection start instruction can be generated by the processor when it detects an input / output error in hard disk 0.

[0139] In one implementation:

[0140] When the extender is connected to the terminal device, the expansion module can obtain the acquisition start instruction sent by the terminal device through the extender.

[0141] It should be noted that in one implementation, the terminal device can obtain the acquisition start request input by the user. Understandably, the terminal device can obtain the acquisition start request input by the user through the human-computer interaction interface of the terminal device. The terminal device can generate an acquisition start instruction according to the acquisition start request. In one implementation, the acquisition start request may include an analysis method. In one implementation, the analysis method may include the identifier of the target port. In addition, in one implementation, the analysis method may also include the identifier of the target protocol layer. In addition, in one implementation, the analysis method may also include the identifier of the signal feature.

[0142] S502: Through the signal acquisition module, according to the acquisition start instruction, determine at least one target acquisition component from multiple acquisition components, and based on at least one target acquisition component, acquire the link signals of at least one link.

[0143] In this embodiment, the expansion module can determine at least one target acquisition component from multiple acquisition components through the signal acquisition module according to the acquisition start instruction.

[0144] Next, the process of the expansion module determining at least one target acquisition component from multiple acquisition components through the signal acquisition module according to the acquisition start instruction will be described in detail.

[0145] In one implementation:

[0146] The acquisition start instruction does not include the identifier of at least one target port. In addition, in one implementation, the acquisition start instruction may include the identifier of the target protocol layer and / or the identifier of the signal feature.

[0147] When the expansion module determines through the signal acquisition module that the acquisition start instruction does not include the identifier of at least one target port, the expansion module can determine all ports as target ports.

[0148] The expansion module can determine the acquisition components connected to the target ports as target acquisition components through the signal acquisition module.

[0149] In one implementation:

[0150] The acquisition start instruction includes the identifier of at least one target port.

[0151] The expansion module can obtain the identifier of at least one target port in the acquisition start instruction through the signal acquisition module.

[0152] The expansion module can, through the signal acquisition module, determine at least one target port from multiple ports according to the identifier of at least one target port.

[0153] The expansion module can, through the signal acquisition module, determine the acquisition component connected to the target port as the target acquisition component.

[0154] In addition, after the expansion module determines at least one target acquisition component through the signal acquisition module, based on the at least one target acquisition component, the expansion module acquires the link signals of at least one link.

[0155] It should be noted that when the host controller in the computing device is connected to a port of the expander through the target acquisition component, the link is the link where the host controller is connected to the port of the expander through the target acquisition component. When the hard disk in the computing device is connected to a port of the expander through the target acquisition component, the link is the link where the hard disk is connected to the port of the expander through the target acquisition component.

[0156] In addition, in one implementation, during the process of the expansion module acquiring the link signals of at least one link through the signal acquisition module, the expansion module can obtain an acquisition stop instruction through the expander. The expansion module sends the acquisition stop instruction to the signal acquisition module through the expander. The expansion module, through the signal acquisition module, stops acquiring the link signals of at least one link based on the at least one target acquisition component according to the acquisition stop instruction.

[0157] S503: Obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module.

[0158] In this embodiment, the expansion module can obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module.

[0159] S504: Analyze the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0160] In this embodiment, the expansion module can analyze the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0161] Next, the process of the expansion module analyzing the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link will be described.

[0162] In one implementation:

[0163] For the link signal of any link, the expansion module can perform filtering processing on the link signal through the signal processing module to obtain the filtered link signal.

[0164] The expansion module can extract the features of the filtered link signal through the signal processing module to obtain the physical layer signal features in the signal features of the link. It should be noted that, in one implementation, the physical layer signal features may include at least one or more of the following: physical layer features, including signal amplitude, jitter (random jitter or deterministic jitter), eye opening, signal-to-noise ratio, rise time, and fall time.

[0165] The expansion module can perform decoding processing on the filtered link signal through the signal processing module to obtain the decoded link signal.

[0166] The expansion module can extract the features of the decoded link signal through the signal processing module to obtain the link layer signal features, port layer signal features, transport layer signal features, and application layer signal features in the signal features of the link.

[0167] It should be noted that, in one implementation, the link layer signal features may include at least one or more of the following: bit error rate, frame error rate, retransmission rate, link training status, and clock recovery quality information.

[0168] In one implementation, the port layer signal features may include at least one or more of the following: port type, port connection status, and physical layer utilization.

[0169] In one implementation, the transport layer signal features may include at least one or more of the following: instruction type distribution, response timeout rate, command completion time distribution, and queue depth.

[0170] In one implementation, the application layer signal features may include at least one or more of the following: the number of input / output operations per second (Input / Output Operations Per Second, abbreviated as IOPS), throughput, average response time, and input / output (Input / Output, abbreviated as IO) size distribution.

[0171] It should be noted that the signal features of at least one link are used for the terminal device to determine the cause of the fault.

[0172] Advantages of this embodiment: In this embodiment, the expansion module can obtain a collection start instruction through the expander in the expansion module and send the collection start instruction to the signal collection module in the expansion module. The expansion module can, through the signal collection module, determine at least one target collection component from multiple collection components according to the collection start instruction, and collect link signals of at least one link based on the at least one target collection component. The expansion module can obtain the link signals of at least one link sent by the signal collection module through the signal processing module in the expansion module. The expansion module can analyze the link signals of at least one link through the signal processing module to obtain signal characteristics of at least one link; the signal characteristics of at least one link are used for the terminal device to determine the cause of the fault. Through the above method of collecting and analyzing link signals based on the expansion module, the accuracy of detecting link signals is improved, thereby improving the accuracy of analyzing link signals, and further improving the accuracy of fault location (determining the cause of the fault).

[0173] Figure 6 Schematic flow of a fault location method provided by an embodiment of this application Figure 2 , see Figure 6 , the method specifically includes the following steps:

[0174] S601: Obtain a collection start instruction through the expander in the expansion module and send the collection start instruction to the signal collection module in the expansion module.

[0175] In this embodiment, the expansion module can obtain a collection start instruction through the expander in the expansion module and send the collection start instruction to the signal collection module in the expansion module.

[0176] Its specific implementation process is the same as that of S501 and will not be elaborated here.

[0177] S602: Obtain the identifier of at least one target port in the collection start instruction through the signal collection module.

[0178] In this embodiment, the collection start instruction includes the identifier of at least one target port.

[0179] The expansion module can obtain the identifier of at least one target port in the collection start instruction through the signal collection module.

[0180] For example, when the processor has an IO error based on hard disk 0, a collection start instruction can be generated. Among them, the collection start instruction can include the identifier of port 4, the identifier of port 0, the identifier of port 1, the identifier of port 2, and the identifier of port 3.

[0181] S603: Determine at least one target port from multiple ports according to the identifier of at least one target port through the signal collection module.

[0182] In this embodiment, the signal acquisition module of the expansion module can record the identifiers of each port.

[0183] The expansion module can determine at least one target port through the signal acquisition module according to the identifiers of at least one target port. It should be noted that the target port is a port among multiple ports.

[0184] S604: Determine the acquisition component connected to the target port as the target acquisition component through the signal acquisition module.

[0185] In this embodiment, the signal acquisition module can record the acquisition components connected to each port.

[0186] The expansion module can determine the acquisition component connected to the target port as the target acquisition component through the signal acquisition module.

[0187] S605: Acquire the link signals of at least one link through the signal acquisition module based on at least one target acquisition component.

[0188] In this embodiment, the expansion module can acquire the link signals of at least one link through the signal acquisition module based on at least one target acquisition component.

[0189] S606: Obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module.

[0190] In this embodiment, the expansion module can obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module.

[0191] S607: Analyze the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0192] In this embodiment, the expansion module can analyze the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0193] Advantages of this embodiment: In this embodiment, the expansion module can, through the signal acquisition module, determine at least one target port from multiple ports according to the identifiers of at least one target port, and then determine at least one target acquisition component, so as to use at least one target acquisition component to acquire the link signals of at least one link. Through the above method, it is realized that the expansion module can independently acquire and analyze the signals of any one or more links among multiple links, improving the accuracy of link signal acquisition and processing, and further improving the accuracy of fault location. In addition, through the above method, the link signals can be monitored during the test phase of the product (components in the computing device, such as hard disks), that is, when the link has not failed, reducing the complexity of product testing.

[0194] Figure 7 Schematic flow of a fault location method provided by an embodiment of this application Figure 3 , see Figure 7 , the method specifically includes the following steps:

[0195] S701: Obtain a collection start instruction through the expander in the expansion module, and send the collection start instruction to the signal acquisition module in the expansion module.

[0196] In this embodiment, the expansion module can obtain a collection start instruction through the expander in the expansion module and send the collection start instruction to the signal acquisition module in the expansion module.

[0197] S702: Through the signal acquisition module, according to the collection start instruction, determine at least one target acquisition component from multiple acquisition components, and based on at least one target acquisition component, acquire the link signals of at least one link.

[0198] In this embodiment, the expansion module can, through the signal acquisition module, according to the collection start instruction, determine at least one target acquisition component from multiple acquisition components, and based on at least one target acquisition component, acquire the link signals of at least one link.

[0199] S703: Obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module.

[0200] In this embodiment, the expansion module can obtain the link signals of at least one link sent by the signal acquisition module through the signal processing module in the expansion module.

[0201] S704: Analyze the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0202] In this embodiment, the expansion module can analyze the link signals of at least one link through the signal processing module to obtain the signal characteristics of at least one link.

[0203] S705: Send the signal characteristics of at least one link to the expander through the signal processing module.

[0204] S706: Determine whether the expander is connected to the terminal device through the expander.

[0205] In this embodiment, the expansion module can determine whether the expander is connected to the terminal device through the expander.

[0206] If so, execute S707;

[0207] If not, execute S708.

[0208] S707: Send the signal characteristics of at least one link to the terminal device through the expander.

[0209] In this embodiment, the expansion module can send the signal characteristics of at least one link to the terminal device through the expander when it is determined that the expander is connected to the terminal device.

[0210] It should be noted that the signal characteristics of at least one link are used for the terminal device to determine the cause of the fault.

[0211] S708: Send the signal characteristics of at least one link to the processor in the computing device through the expander via the host controller, so that the processor stores the signal characteristics of at least one link in the memory in the computing device.

[0212] In this embodiment, the expansion module can send the signal characteristics of at least one link to the processor in the computing device through the expander via the host controller when it is determined that the expander is not connected to the terminal device.

[0213] Next, the process by which the expansion module can send the signal characteristics of at least one link to the processor through the expander via the host controller will be described.

[0214] In one implementation:

[0215] The expansion module can store and process the signal characteristics of at least one link as new log data through the expander.

[0216] The expansion module can update the value of the log status register in the expander through the expander to indicate that log update has occurred.

[0217] The expansion module can generate status update information through the expander.

[0218] The processor can obtain the status update information sent by the expander.

[0219] The processor can, in response to the status update information, read the value of the log status register, and when it is recognized that the value of the log status register indicates a log update, send a read request to the expander through the host controller.

[0220] The expansion module can, in response to the read request through the expander, send the signal characteristics of at least one link to the processor through the host controller.

[0221] In addition, it should be noted that after receiving the signal characteristics of at least one link, the processor can store the signal characteristics of at least one link in the memory of the computing device.

[0222] It should be noted that the signal characteristics of at least one link stored in the memory are used for the terminal device to perform a read process when connected to the computing device.

[0223] It should be noted that the signal characteristics of at least one link are used for the terminal device to determine the cause of the failure.

[0224] Advantageous effects of this embodiment: When the terminal device is connected to the expander, after the expander obtains the signal characteristics of at least one link sent by the signal analysis module, it directly sends the signal characteristics of at least one link to the terminal device for the terminal device to perform online analysis, avoiding the computing device storing the signal characteristics of at least one link and improving the storage resource utilization rate of the computing device. When the terminal device is not connected to the expander, after the expander obtains the signal characteristics of at least one link sent by the signal analysis module, it sends the signal characteristics of at least one link to the processor through the host controller for the processor to store the signal characteristics of at least one link in the memory; wherein, the signal characteristics of at least one link stored in the memory are used for the terminal device to perform a read process when connected to the computing device. Through the above method, offline analysis of the signal characteristics of at least one link by the terminal device can be realized, avoiding the problem of high cost caused by equipping each computing device with a terminal device.

[0225] Figure 8 Schematic flow of a fault location method provided by an embodiment of the present application Figure 4 , see Figure 8 , the method specifically includes the following steps:

[0226] S801: Obtain the signal characteristics of at least one link.

[0227] In this embodiment, the terminal device can obtain the signal characteristics of at least one link.

[0228] Among them, the signal characteristics of at least one link are obtained by the expansion module through the expander in the expansion module to obtain a collection start instruction, and send the collection start instruction to the signal analysis module in the expansion module. According to the collection start instruction, the signal analysis module determines at least one target collection component from multiple collection components, and based on the at least one target collection component, collects the link signals of at least one link. The link signals of at least one link sent by the signal collection module are obtained by the signal processing module in the expansion module, and the link signals of at least one link are analyzed by the signal processing module.

[0229] In addition, it should be noted that the terminal device can be a terminal device equipped with a Linux operating system, or a terminal device equipped with an Android operating system, or a terminal device equipped with other operating systems. The embodiments of the present application do not limit this.

[0230] In addition, in one implementation, the terminal device can perform display processing on the signal characteristics of at least one link.

[0231] S802: Determine the cause of the fault according to the signal characteristics of at least one link.

[0232] In this embodiment, the terminal device can determine the cause of the fault according to the signal characteristics of at least one link.

[0233] In one implementation:

[0234] The terminal device can obtain link topology structure information.

[0235] The terminal device can determine the cause of the fault according to the signal characteristics of at least one link and the link topology structure information. In one implementation, the terminal device can obtain a first correspondence relationship; wherein, the first correspondence relationship indicates the correspondence relationship between the signal characteristics of the link, the link topology structure information and the cause of the fault. The terminal device can query the first correspondence relationship according to the signal characteristics of at least one link and the link topology structure information to determine the cause of the fault.

[0236] In addition, in one implementation:

[0237] The terminal device can obtain a second correspondence relationship; wherein, the second correspondence relationship indicates the correspondence relationship between the cause of the fault and the fault repair method.

[0238] The terminal device can query the second correspondence relationship according to the cause of the fault to determine the fault repair method. For example, the fault repair method can be to replace the line between a port of the expander and the hard disk.

[0239] The terminal device can perform display processing on the fault repair method, so that the user can view the fault repair method through the human-computer interaction interface of the terminal device, and perform link repair according to the fault repair method.

[0240] In addition, in one implementation:

[0241] The terminal device can obtain the signal characteristics of the link stored in the memory of multiple control boards.

[0242] The terminal device can determine the cause of the fault according to the signal characteristics of the link stored in the memory of multiple control boards.

[0243] Advantages of this embodiment: In this embodiment, the terminal device can obtain the signal characteristics of at least one link. Among them, the signal characteristics of at least one link are obtained by the expansion module obtaining a collection start instruction through the expander in the expansion module, sending the collection start instruction to the signal analysis module in the expansion module, and the signal analysis module determining at least one target collection component from multiple collection components according to the collection start instruction, and collecting the link signals of at least one link based on at least one target collection component, and the signal processing module in the expansion module obtaining the link signals of at least one link sent by the signal collection module, and analyzing the link signals of at least one link through the signal processing module. The terminal device can determine the cause of the fault according to the signal characteristics of at least one link. Through the above method, there is no need to use an expensive analyzer, and the terminal device can be used to analyze the signal characteristics of at least one link to determine the cause of the fault, reducing the cost of fault location. In addition, compared with the related technology, the analyzer can only detect and analyze one link, and then determine the cause of the fault based on the signal characteristics of one link, resulting in a low accuracy rate of fault location. In this application, the terminal device can determine the cause of the fault for the signal characteristics of one or more links, improving the accuracy rate of fault location.

[0244] The following is an apparatus embodiment of the present application, which can be used to execute the method embodiment of the present application. For details not disclosed in the apparatus embodiment of the present application, please refer to the method embodiment of the present application.

[0245] The embodiment of the present application further provides an expansion module, including an expander, a signal processing module, and a signal collection module. Among them,

[0246] The expander is used to obtain a collection start instruction and send the collection start instruction to the signal collection module in the expansion module;

[0247] The signal collection module is used to determine at least one target collection component from multiple collection components according to the collection start instruction, and collect the link signals of at least one link based on at least one target collection component;

[0248] A signal processing module, configured to obtain link signals of at least one link sent by a signal acquisition module;

[0249] A signal processing module, configured to analyze the link signals of at least one link to obtain signal characteristics of at least one link; the signal characteristics of at least one link are used for a terminal device to determine a fault cause.

[0250] The expansion module provided in the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, and will not be elaborated here.

[0251] In one implementation, the expansion module belongs to a computing device;

[0252] When a host controller in a computing device is connected to a port of an expander through a target acquisition component, the link is a link in which the host controller is connected to the port of the expander through the target acquisition component; or,

[0253] When a hard disk in a computing device is connected to a port of an expander through a target acquisition component, the link is a link in which the hard disk is connected to the port of the expander through the target acquisition component.

[0254] The expansion module provided in the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, and will not be elaborated here.

[0255] In one implementation, when the signal acquisition module determines at least one target acquisition component from multiple acquisition components according to an acquisition start instruction, it is specifically configured to:

[0256] Obtain the identifier of at least one target port in the acquisition start instruction;

[0257] Determine at least one target port from multiple ports according to the identifier of at least one target port;

[0258] Determine the acquisition component connected to the target port as the target acquisition component.

[0259] The expansion module provided in the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principles and beneficial effects are similar, and will not be elaborated here.

[0260] In one implementation, when the signal processing module analyzes the link signals of at least one link to obtain the signal characteristics of at least one link, it is specifically configured to:

[0261] For the link signal of any link, perform filtering processing on the link signal to obtain a filtered link signal;

[0262] Extract features from the filtered link signal to obtain the physical layer signal features in the link signal features of the link.

[0263] Perform decoding processing on the filtered link signal to obtain the decoded link signal.

[0264] Extract features from the decoded link signal to obtain the link layer signal features, port layer signal features, transport layer signal features, and application layer signal features in the link signal features of the link.

[0265] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, so details are not described here again.

[0266] In one implementation,

[0267] The signal processing module is further configured to send the signal features of at least one link to the expander.

[0268] The expander is further configured to determine whether the expander is connected to the terminal device.

[0269] The expander is further configured to, when it is determined that the expander is connected to the terminal device, send the signal features of at least one link to the terminal device.

[0270] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, so details are not described here again.

[0271] In one implementation,

[0272] The expander is further configured to, when it is determined that the expander is not connected to the terminal device, send the signal features of at least one link to the processor in the computing device through the host controller for the processor to store the signal features of at least one link in the memory in the computing device; wherein, the signal features of at least one link stored in the memory are used for the terminal device to perform reading processing when the terminal device is connected to the computing device.

[0273] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, so details are not described here again.

[0274] In one implementation, each link includes multiple protocol layers; when the expander obtains the acquisition start instruction, it is specifically configured to:

[0275] Determine whether there is a protocol layer in a fault state among the multiple protocol layers of the multiple links.

[0276] When there is a protocol layer in a fault state among the multiple protocol layers of multiple links, a collection start instruction is generated.

[0277] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and their implementation principles and beneficial effects are similar, so they will not be elaborated here.

[0278] In one implementation, when determining whether there is a protocol layer in a fault state among the multiple protocol layers of multiple links, the expander is specifically configured to:

[0279] For any protocol layer of any link, obtain the value of the status register corresponding to the protocol layer; the value of the status register is a first value or a second value, the first value indicates that the status of the protocol layer is a fault state, and the second value indicates that the status of the protocol layer is a normal state;

[0280] When it is determined that among the multiple protocol layers of multiple links, there is at least one protocol layer whose status register value is the first value, it is determined that there is a protocol layer in a fault state among the multiple protocol layers of multiple links; or,

[0281] When it is determined that the values of the status registers corresponding to the protocol layers of each link are all the second value, it is determined that there is no protocol layer in a fault state among the multiple protocol layers of multiple links.

[0282] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and their implementation principles and beneficial effects are similar, so they will not be elaborated here.

[0283] In one implementation, when obtaining the collection start instruction, the expander is specifically configured to:

[0284] Obtain the collection start instruction sent by the processor in the computing device through the host controller in the computing device.

[0285] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and their implementation principles and beneficial effects are similar, so they will not be elaborated here.

[0286] In one implementation, when obtaining the collection start instruction, the expander is specifically configured to:

[0287] When the expander is connected to the terminal device, obtain the collection start instruction sent by the terminal device.

[0288] The expansion module provided by the embodiments of the present application can execute the technical solutions shown in the above method embodiments, and their implementation principles and beneficial effects are similar, so they will not be elaborated here.

[0289] Figure 9The structural schematic diagram of a fault location device provided by an embodiment of the present application. As Figure 9 shown, the fault location device 90 includes an acquisition module 91, a processing module 92, and a display module 93.

[0290] The acquisition module 91 is configured to acquire the signal characteristics of at least one link; wherein, the signal characteristics of the at least one link are obtained by the expansion module through the expander in the expansion module to obtain a collection start instruction, send the collection start instruction to the signal analysis module in the expansion module, and according to the collection start instruction by the signal analysis module, determine at least one target collection component from a plurality of collection components, and based on the at least one target collection component, collect the link signals of the at least one link, and obtain the link signals of the at least one link sent by the signal collection module through the signal processing module in the expansion module, and analyzing the link signals of the at least one link through the signal processing module.

[0291] The processing module 92 is configured to determine the cause of the fault according to the signal characteristics of at least one link.

[0292] The fault location device provided by the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be elaborated here.

[0293] In one implementation, the processing module 92 is specifically configured to:

[0294] Obtain the link topology structure information;

[0295] Determine the cause of the fault according to the signal characteristics of at least one link and the link topology structure information.

[0296] The fault location device provided by the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be elaborated here.

[0297] In one implementation, the processing module 92 is specifically configured to:

[0298] Obtain a first correspondence; wherein, the first correspondence indicates the correspondence between the signal characteristics of the link, the link topology structure information, and the cause of the fault;

[0299] Query the first correspondence according to the signal characteristics of at least one link and the link topology structure information, and determine the cause of the fault.

[0300] The fault location device provided by the embodiment of the present application can execute the technical solution shown in the above method embodiment, and its implementation principle and beneficial effects are similar, which will not be elaborated here.

[0301] In one implementation,

[0302] The processing module 92 is further configured to obtain a second correspondence relationship, where the second correspondence relationship indicates the correspondence relationship between the fault cause and the fault repair method.

[0303] The processing module 92 is further configured to query the second correspondence relationship according to the fault cause and determine the fault repair method.

[0304] The display module 93 is configured to perform display processing on the fault repair method.

[0305] The fault location device provided by the embodiment of the present application can execute the technical solutions shown in the above method embodiments, and its implementation principle and beneficial effects are similar, which will not be elaborated here.

[0306] Figure 10 It is a schematic structural diagram of the terminal device provided by the present application. As Figure 10 shown, the terminal device 100 provided in this embodiment includes at least one processor 110 and a memory 120. Optionally, the terminal device 100 further includes a communication component 130. Among them, the processor 110, the memory 120, and the communication component 130 are connected through a bus 140.

[0307] In a specific implementation process, at least one processor 110 executes the computer execution instructions stored in the memory 120, so that at least one processor 110 executes the above-mentioned fault location method embodiment.

[0308] For the specific implementation process of the processor 110, reference can be made to the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here in this embodiment.

[0309] In the above embodiment, it should be understood that the processor may be a central processing unit (Central Processing Unit, abbreviated as: CPU), and may also be other general-purpose processors, digital signal processors (Digital Signal Processor, abbreviated as: DSP), application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the application can be directly implemented by the hardware processor or completed by the combination of hardware and software modules in the processor.

[0310] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0311] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the buses in the drawings of this application are not limited to only one bus or one type of bus.

[0312] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. Wherein, the computer program is configured to execute the steps in any of the above-described embodiments of the fault location method when running.

[0313] In an exemplary embodiment, the above computer-readable storage medium may include, but is not limited to: various media such as a USB flash drive, a read-only memory (ROM for short), a random access memory (RAM for short), a mobile hard disk, a magnetic disk, or an optical disc, which can store computer programs.

[0314] An embodiment of the present application also provides a computer program product. The above computer program product includes a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described embodiments of the fault location method.

[0315] An embodiment of the present application also provides another computer program product, including a non-volatile computer-readable storage medium. The non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it implements the steps in any of the above-described embodiments of the fault location method.

[0316] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been generally described according to their functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.

[0317] The above is an expansion module, a fault location method, a terminal device, a medium and a product provided by the present application. Specific examples are used herein to elaborate on the principle and implementation manner of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the protection scope of the claims of the present application.

Claims

1. An expansion module, characterized in that It includes an expander, a signal acquisition module, and a signal processing module; the signal acquisition module includes multiple acquisition components; the expansion module belongs to a computing device; The signal processing module is respectively connected to the expander and the signal acquisition module; For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to the expander through the acquisition component; or, the hard disk in the computing device is connected to the expander through the acquisition component.

2. The expansion module according to claim 1, wherein The expander includes multiple ports; For any acquisition component in the signal acquisition module, the host controller in the computing device is connected to a port of the expander through the acquisition component; Or, the hard disk in the computing device is connected to a port of the expander through the acquisition component.

3. A fault location method, characterized in that The method includes: Obtain an acquisition start instruction through the expander in the expansion module, and send the acquisition start instruction to the signal acquisition module in the expansion module; Through the signal acquisition module, according to the acquisition start instruction, determine at least one target acquisition component from multiple acquisition components, and based on the at least one target acquisition component, acquire link signals of at least one link; Obtain the link signals of the at least one link sent by the signal acquisition module through the signal processing module in the expansion module; Analyze the link signals of the at least one link through the signal processing module to obtain signal characteristics of the at least one link; the signal characteristics of the at least one link are used for the terminal device to determine the cause of the fault.

4. The method according to claim 3, wherein The expansion module belongs to a computing device; When the host controller in the computing device is connected to a port of the expander through the target acquisition component, the link is the link through which the host controller is connected to the port of the expander through the target acquisition component; or, When the hard disk in the computing device is connected to a port of the expander through the target acquisition component, the link is the link through which the hard disk is connected to the port of the expander through the target acquisition component.

5. The method according to claim 3, characterized in that, The determining, by the signal acquisition module according to the acquisition start instruction, of at least one target acquisition component from multiple acquisition components includes: Obtain the identifier of at least one target port in the acquisition start instruction through the signal acquisition module; Determine at least one target port from the multiple ports through the signal acquisition module according to the identifier of the at least one target port; Determine, by the signal acquisition module, the acquisition component connected to the target port as the target acquisition component.

6. The method according to claim 3, wherein The analyzing, by the signal processing module, of the link signals of the at least one link to obtain the signal characteristics of the at least one link includes: For the link signal of any link, perform filtering processing on the link signal through the signal processing module to obtain a filtered link signal; Perform feature extraction on the filtered link signal through the signal processing module to obtain the physical layer signal characteristics in the signal characteristics of the link; The filtered link signal is decoded by the signal processing module to obtain a decoded link signal; The signal processing module extracts features from the decoded link signal to obtain link layer signal features, port layer signal features, transport layer signal features, and application layer signal features in the signal features of the link.

7. The method according to claim 3, characterized in that The method further includes: The signal processing module sends the signal features of the at least one link to the expander; The expander determines whether the expander is connected to the terminal device; When the expander determines that the expander is connected to the terminal device, the expander sends the signal features of the at least one link to the terminal device.

8. The method according to claim 7, characterized in that, The method further includes: When the expander determines that the expander is not connected to the terminal device, the expander sends the signal features of the at least one link to the processor in the computing device through the host controller, so that the processor stores the signal features of the at least one link in the memory in the computing device; wherein, the signal features of the at least one link stored in the memory are used for the terminal device to perform a read process when connected to the computing device.

9. The method according to claim 3, wherein Each link includes multiple protocol layers; The step of obtaining the acquisition start instruction by the expander in the expansion module includes: The expander determines whether there is a protocol layer in a fault state among the multiple protocol layers of the multiple links; When the expander determines that there is a protocol layer in a fault state among the multiple protocol layers of the multiple links, the expander generates the acquisition start instruction.

10. The method according to claim 3, wherein The step of the expander determining whether there is a protocol layer in a fault state among the multiple protocol layers of the multiple links includes: For any protocol layer of any link, the expander obtains the value of the status register corresponding to the protocol layer; the value of the status register is a first value or a second value, the first value indicating that the state of the protocol layer is a fault state, and the second value indicating that the state of the protocol layer is a normal state; When the expander determines that there is at least one protocol layer among the multiple protocol layers of the multiple links whose status register value is the first value, the expander determines that there is a protocol layer in a fault state among the multiple protocol layers of the multiple links; or, When the expander determines that the status register values corresponding to each protocol layer of each link are all the second value, the expander determines that there is no protocol layer in a fault state among the multiple protocol layers of the multiple links.

11. The method according to claim 3, characterized in that, The step of obtaining the acquisition start instruction by the expander includes: The expander obtains the acquisition start instruction sent by the processor in the computing device through the host controller in the computing device.

12. The method according to claim 3, wherein The step of obtaining the acquisition start instruction by the expander includes: When the expander is connected to the terminal device, the expander obtains the acquisition start instruction sent by the terminal device.

13. A fault location method, characterized in that, It includes: Obtain the signal characteristics of at least one link; wherein, the signal characteristics of the at least one link are obtained by the expansion module through the expander in the expansion module to obtain a collection start instruction, send the collection start instruction to the signal analysis module in the expansion module, and according to the collection start instruction by the signal analysis module, determine at least one target collection component from multiple collection components, and based on the at least one target collection component, collect the link signals of at least one link, and obtain the link signals of the at least one link sent by the signal collection module through the signal processing module in the expansion module, and analyze the link signals of the at least one link through the signal processing module to obtain; Determine the cause of the fault according to the signal characteristics of the at least one link.

14. The method according to claim 13, wherein The determining the cause of the fault according to the signal characteristics of the at least one link includes: Obtain link topology structure information; Determine the cause of the fault according to the signal characteristics of the at least one link and the link topology structure information.

15. The method according to claim 14, characterized in that, The determining the cause of the fault according to the signal characteristics of the at least one link and the link topology structure information includes: Obtain a first correspondence; wherein, the first correspondence indicates the correspondence between the signal characteristics of the link, the link topology structure information and the cause of the fault; Query the first correspondence according to the signal characteristics of the at least one link and the link topology structure information to determine the cause of the fault.

16. The method according to claim 14, wherein The method further includes: Obtain a second correspondence; wherein, the second correspondence indicates the correspondence between the cause of the fault and the fault repair method; Query the second correspondence according to the cause of the fault to determine the fault repair method; Perform a display process on the fault repair method.

17. A fault location method, characterized in that, Includes: The expansion module obtains a collection start instruction through the expander in the expansion module and sends the collection start instruction to the signal analysis module in the expansion module; The expansion module determines at least one target collection component from multiple collection components according to the collection start instruction by the signal analysis module, and based on the at least one target collection component, collects the link signals of at least one link; The expansion module obtains the link signals of the at least one link sent by the signal collection module through the signal processing module in the expansion module; The expansion module analyzes the link signals of the at least one link through the signal processing module to obtain the signal characteristics of the at least one link; The terminal device obtains the signal characteristics of at least one link; The terminal device determines the cause of the fault according to the signal characteristics of the at least one link.

18. A terminal device, characterized in that, Includes: A memory for storing a computer program; A processor for implementing the steps of the fault location method according to any one of claims 13-16 when executing the computer program.

19. A computer-readable storage medium, characterized in that, A computer program is stored in the computer-readable storage medium, wherein the computer program implements the steps of the fault location method according to any one of claims 3-16 when executed by a processor.

20. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the fault location method according to any one of claims 3-16.

Citation Information

Patent Citations

  • SAS expander and fault detection system thereof

    CN104123206A

  • Protocol analysis device, method and system

    CN106790035A

  • Link fault processing method and system, electronic equipment and storage medium

    CN115509783A

  • Storage system fault monitoring method and device, medium and computer program product

    CN119065932A

  • Storage apparatus and failure detection method

    US20120246521A1