Port fault detection method and device for FC long-line bus network
By using periodic pulse signals and detection circuits in FC long-line bus networks, combined with DC blocking capacitors and preset conditions, port faults can be accurately detected, which solves the problem of signal delay and improves detection accuracy and circuit simplicity.
Patent Information
- Application Number
- CN202410869314.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2044-07-01
AI Technical Summary
In long-line bus networks, signal delays affect the accuracy of port test results, making it difficult to accurately detect port faults with existing technology.
By generating periodic pulse signals in the FC long-line bus network, calling the detection circuit to connect to the node port to be detected, multiple reference levels are obtained, and the interference level is isolated through DC blocking capacitors, and the fault type is determined using preset conditions and mapping tables , reducing the number of comparators to reduce the complexity of the detection circuit.
It achieves accurate detection of FC long-line bus network port faults, eliminates the effects of signal delay and duty cycle, and improves detection accuracy and circuit simplicity.
Smart Images

Figure CN118433063B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of port fault detection, and in particular to a port fault detection method and device for an FC long-line bus network. Background Art
[0002] A bus network is a network where all nodes are connected to a bus. It is easy to implement, low cost, flexible in wiring, and has good scalability. For a bus network, if a node port has an open link, short circuit, or grounding, it will directly affect signal transmission.
[0003] It is known from the related art that when a remote bus test is performed based on a bus-type network, a long cable is connected between the bus-type network and the bus to be tested. In this case, the bus-type network can be called a long-line bus-type network. Since a long cable is connected between the long-line bus-type network and the bus to be tested, signal delay will occur, thus affecting the accuracy of the port test result due to the signal delay.
[0004] Therefore, finding a method that can accurately detect port failures in long-line bus networks has become a research hotspot. Summary of the invention
[0005] The present invention provides a method and device for detecting port faults of an FC long-line bus type network, which can accurately detect port faults of the long-line bus type network.
[0006] The present invention provides a port fault detection method for an FC long-line bus network, the method comprising: when the FC long-line bus network generates a periodic pulse signal, calling a detection circuit to connect with a matching node of a node port to be detected of the FC long-line bus network, and obtaining a plurality of first reference levels corresponding to the detection circuit and a node level of the matching node, and using the node level of the matching node as the port level of the node port to be detected, wherein DC isolation capacitors are respectively connected to both sides of the port of the matching node, and the first reference level is used for comparison with the port level to determine the fault type of the node port to be detected and / or a coupled access port; obtaining a second reference level corresponding to the FC long-line bus network, wherein the second reference level is a reference level for the FC long-line bus network; obtaining a preset condition, wherein the preset condition is determined according to the second reference level; and when the port level meets the preset condition, determining the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level, wherein the coupled access port is an access port connected to the FC long-line bus network.
[0007] According to a port fault detection method for an FC long-line bus network provided by the present invention, the method of determining the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level specifically includes: comparing the first reference level and the port level to obtain a comparison result; and determining the fault type of the node port to be detected and / or the coupled access port based on the comparison result and a pre-set mapping table, wherein the mapping table includes a correspondence between different comparison results and different fault types.
[0008] According to a port fault detection method for an FC long-line bus network provided by the present invention, the detection circuit is obtained by connecting at least five comparators in parallel, wherein the negative ports of the comparators are respectively connected to their respective first reference levels; the first reference level corresponding to the detection circuit is determined in the following manner: obtaining a matching circuit load resistance corresponding to the FC long-line bus network; obtaining a reference voltage based on a current value of a tail current source of an output circuit of a transceiver of the FC long-line bus network and the matching circuit load resistance; and determining a first reference level corresponding to the detection circuit based on the second reference level and the reference voltage.
[0009] According to a port fault detection method for an FC long-line bus network provided by the present invention, the method of determining the fault type of the node port to be detected and / or the coupled access port based on the comparison result and a preset mapping table specifically includes: when the port level meets the first preset condition and the comparison result is the first comparison result, determining based on the mapping table that the node port to be detected and the coupled access port are both normal, wherein the port level meets the first preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the second reference level; the first comparison result includes: the high level of the port level and / or the The low level of the port level is less than the maximum value reference level of the first reference levels connected to the negative port of the comparator, and is greater than the other first reference levels connected to the negative port of the comparator; when the port level meets the first preset condition, the comparison result is the first comparison result, and a delayed signal is detected, the fault type of the coupled access port is determined to be an open circuit fault type based on the mapping table, wherein the delayed signal is used to characterize a signal formed by a return signal of the periodic pulse signal under a delay; when the port level meets the second preset condition and the comparison result is the second comparison result, the fault type of the node port to be detected is determined to be an open circuit fault type based on the mapping table, wherein the The port level satisfies the second preset condition, including: the high level of the port level is the sum of the second reference level and the reference voltage of the preset multiple, or the low level of the port level is the second reference level; the second comparison result includes: the high level of the port level and\or the low level of the port level are greater than the first reference level connected to the negative port of the comparator; when the port level satisfies the third preset condition and the comparison result is the third comparison result, it is determined based on the mapping table that the fault type of the node port to be detected is a short circuit fault type, wherein the port level satisfies the third preset condition, including: the high level of the port level is the second reference level, or the low level of the port level is greater than the first reference level connected to the negative port of the comparator. The level is the second reference level; the third comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level of the first reference levels connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator; when the port level meets the fourth preset condition and the comparison result is the fourth comparison result, it is determined based on the mapping table that the fault type of the coupled access port is a short circuit fault type, wherein the port level meets the fourth preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the difference between the second reference level and the reference voltage;The fourth comparison result includes: the high level of the port level and / or the low level of the port level are both less than the first reference level connected to the negative port of the comparator. ;
[0010] According to a port fault detection method for an FC long-line bus network provided by the present invention, the short-circuit fault types of the node port to be detected include a short-circuit fault type of the node port to be detected and suspended, and a short-circuit fault type of the node port to be detected; the determination that the fault type of the node port to be detected is a short-circuit fault type specifically includes: controlling the FC long-line bus network to be converted from a differential output mode to a single-ended output mode, and calling a detection circuit to connect the node port to be detected that operates in a single-ended output mode to obtain a port level in a single-ended output mode scenario; when the port level meets the first preset condition and the comparison result is the first comparison result, determining that the fault type of the node port to be detected is a short-circuit fault type of the node port to be detected; when the port level meets the third preset condition and the comparison result is the third comparison result, determining that the fault type of the node port to be detected is a short-circuit fault type of the node port to be detected.
[0011] According to a port fault detection method for an FC long-line bus network provided by the present invention, the short-circuit fault types of the coupled access ports include a coupled access port short-circuit and suspended fault type, a coupled access port short-circuit and to one end of the termination fault type, a coupled access port short-circuit and to both ends of the termination fault type, and a coupled access port short-circuit to ground fault type; the determination that the fault type of the coupled access port is a short-circuit fault type specifically includes: controlling the FC long-line bus network to be converted from a differential output mode to a single-ended output mode, and calling a detection circuit to connect to a node port to be detected that operates in a single-ended output mode, to obtain a port level in a single-ended output mode scenario; when the port level satisfies a fourth preset condition and the comparison result is In the case of the first comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit and suspended fault type, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the first auxiliary reference voltage, or the low level of the port level is the second reference level, and the difference between the reference voltage and the first auxiliary reference voltage is less than or equal to the preset value; in the case where the port level satisfies the fifth preset condition and the comparison result is the fourth comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit and to one end fault type, wherein the port level satisfies the fifth preset condition including: the port level The high level is the sum of the second reference level and the second auxiliary reference voltage, or the low level of the port level is the second reference level, and the second auxiliary reference voltage is less than the first auxiliary reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level is less than the maximum reference level and the second maximum reference level in the first reference level connected to the negative port of the comparator, and is greater than other first reference levels connected to the negative port of the comparator; when the port level meets the sixth preset condition and the comparison result is the fifth comparison result, it is determined that the short-circuit fault type of the coupled access port is the coupled access port short-circuit fault type to both ends of the termination, wherein the port level meets the first preset condition. The six preset conditions include: the high level of the port level is the sum of the second reference level and the third auxiliary reference voltage, or the low level of the port level is the second reference level, and the third auxiliary reference voltage is less than the second auxiliary reference voltage; the fifth comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level and the second minimum reference level of the first reference levels connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator; when the port level satisfies the third preset condition and the comparison result is the third comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-to-ground fault type.
[0012] The present invention also provides a port fault detection device for an FC long-line bus network, the device comprising: a calling module, for calling a detection circuit to connect with a matching node of a node port to be detected in the FC long-line bus network when the FC long-line bus network generates a periodic pulse signal, and obtaining a plurality of first reference levels corresponding to the detection circuit and a node level of the matching node, and using the node level of the matching node as the port level of the node port to be detected, wherein a DC blocking capacitor is connected to both sides of the port of the matching node, and the first reference level is used to compare with the port level to determine whether the node port to be detected is faulty. A fault type of a node port and / or a coupled access port to be detected; an acquisition module, used to acquire a second reference level corresponding to the FC long-line bus network, wherein the second reference level is a reference level about the FC long-line bus network; a determination module, used to acquire a preset condition, wherein the preset condition is determined according to the second reference level shown; a detection module, used to determine the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level when the port level meets the preset condition, wherein the coupled access port is an access port connected to the FC long-line bus network.
[0013] The present invention also provides an electronic device, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a port fault detection method for a FC long-line bus network as described above is implemented.
[0014] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the port fault detection method of the FC long-line bus network as described in any one of the above is implemented.
[0015] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the port fault detection method for the FC long-line bus network as described above is implemented.
[0016] The present invention provides a port fault detection method and device for an FC long-line bus network. When the FC long-line bus network generates a periodic pulse signal, a detection circuit is called to connect with a matching node of a node port to be detected in the FC long-line bus network, and multiple first reference levels corresponding to the detection circuit and a node level of a matching node are obtained, and the node level of the matching node is used as the port level of the node port to be detected. Since a DC isolation capacitor is connected to both sides of the matching node port, other interference levels flowing into the detection circuit can be effectively isolated, laying a foundation for subsequent port detection; a second reference level corresponding to the FC long-line bus network is obtained, and based on the second reference level, a preset condition corresponding to the port level of the node port to be detected is determined; when the port level meets the preset condition, the fault type of the node port to be detected and / or the coupled access port is determined based on the first reference level and the port level. The port fault of the FC long-line bus network can be accurately detected. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 This is one of the flow charts of the port fault detection method for the FC long-line bus network provided by the present invention.
[0019] Figure 2 It is a structural schematic diagram of the FC long-line bus network provided by the present invention.
[0020] Figure 3 It is a structural schematic diagram of the detection circuit provided by the present invention.
[0021] Figure 4 It is a schematic diagram of a flow chart of determining a first reference level corresponding to a detection circuit provided by the present invention.
[0022] Figure 5 It is a structural schematic diagram of a port fault detection device for a FC long-line bus network provided by the present invention.
[0023] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention.
[0024] Reference numerals:
[0025] 210: high-speed node; 220: first directional coupler; 230: second directional coupler. DETAILED DESCRIPTION
[0026] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] It is known from the related art that FC bus refers to a fiber optic bus. The present invention can provide a method for detecting near and far ports of a long-line high-speed bus-type node (also known as a FC long-line bus-type network) based on the FC bus, wherein, when performing a far-end bus test based on the bus-type network, a long cable is connected between the bus-type network and the bus to be tested. In this case, the delay caused by the long cable will change the shape of the test signal and cause changes in the judgment result. It should be noted that in the present invention, the near-end node can refer to the node port to be detected of the FC long-line bus-type network; the far-end node can refer to the coupled access port, wherein the coupled access port is an access port connected to the FC long-line bus-type network.
[0028] In the port fault detection method for FC long-line bus network provided by the present invention, in order to prevent the cable delay signal from overlapping with the original signal and thus causing test influence, the excitation signal cannot use the working pseudo-random code signal but must use a periodic pulse signal.
[0029] Furthermore, since the average level of the excitation periodic pulse signal is related to the duty cycle, for the same port state, when the duty cycle of the excitation signal changes, the average level of the excitation signal will change, and at the same time, the average level of the test signal will change, thereby causing the change of the high level and low level of the test signal. In order to prevent the change of the high level and low level of the test signal from causing the judgment result to be wrong, it is necessary to increase the number of comparators in large quantities, which increases the complexity of the circuit. In the present invention, in order to reduce the complexity of the test circuit, that is, to reduce the number of comparators, the second reference level Vref corresponding to the long-line bus type network is not provided by the circuit output stage, but is independently adjustable by self-biasing. By adopting a periodic pulse signal, different duty cycles of the signal can lead to different vref, that is, vref is independently adjustable by self-biasing, and the judgment range of the comparator can be controlled within a fixed range, thereby reducing the number of comparators and reducing the complexity of the detection circuit.
[0030] It should be noted that the present invention can be applied to FC long-line bus networks. FC long-line bus networks can generate excitation periodic pulse signals, wherein the parameters of the excitation periodic pulse signal are period T0; the duration of the high level of the pulse is T1; and the duration of the low level of the pulse is T0-T1. In order to ensure that the delay time Td of the return signal of the excitation periodic pulse signal does not overlap with the next periodic signal T0, T0 can be made much larger than T1, for example, T0=10 T1. When a fault occurs at the far end, the test signal needs to consider the signal delay Td caused by the line length. When Td is greater than T1, the FC bus network can be defined as a FC long-line bus network, that is, when the delay time Td of the return signal of the excitation cycle pulse signal produced by the bus network is greater than the duration T1 of the high level of the pulse signal, the FC bus network is determined to be a FC long-line bus network. Figure 1 This is one of the flow charts of the port fault detection method for the FC long-line bus network provided by the present invention.
[0031] In an exemplary embodiment of the present invention, Figure 1 It can be seen that the port fault detection method of the FC long-line bus network may include steps 110 to 140, and each step will be introduced below.
[0032] In step 110, when the FC long-line bus network generates a periodic pulse signal, a detection circuit is called to connect with a matching node of a node port to be detected of the FC long-line bus network, and a plurality of first reference levels corresponding to the detection circuit and a node level of the matching node are obtained, and the node level of the matching node is used as the port level of the node port to be detected.
[0033] In one embodiment, a detection circuit can be called to connect with a matching node of a node port to be detected in a running FC long-line bus network, and a first reference level corresponding to the detection circuit can be obtained, as well as a node level of the matching node. Wherein, a DC-isolating capacitor is connected on both sides of the port of the matching node. The first reference level is used to compare with the port level to determine the fault type of the node port to be detected and / or the coupled access port. It should be noted that connecting a DC-isolating capacitor on both sides of the port of the matching node can ensure that the level value flowing into the detection circuit is generated locally, rather than being interfered by other signals, thereby laying a foundation for accurately determining the fault type of the remote port based on the first reference level and the port level.
[0034] Figure 2 This is a schematic diagram of the structure of the FC long-line bus network provided by the present invention. Figure 2The structure of the FC long-line bus network is described as an example. The high-speed node 210 is connected to the first directional coupler 220 and the second directional coupler 230 through the differential cable Lp / Ln, and finally connected to the differential bus network (corresponding to the bus P and bus n in the figure). Among them, the high-speed node 210 adopts time division multiplexing, that is, the working type of the transceiver (also known as high-speed serial transceiver) of the bus network is the time division multiplexing type. For the differential port p / n, the reception is always connected, and the transmission is selected by the switch T11 / T12 according to the instruction to connect or disconnect.
[0035] For high-speed serial transceivers, port 27 and port 28 are receiving, both have high-impedance input, C11 / C12 isolates input bias, and uses R11 / R12 for input matching. Port 25 and port 26 are transmitting, both have open-drain output, and use R11 / R12 for output matching. R11 and R12 are connected through VDD to provide power for port 25 and port 26.
[0036] C13 / C14 are connected to the ports p / n through a DC blocking capacitor. The ports p / n are connected to the ports of the first directional coupler D1 and the second directional coupler through a differential cable Lp / Ln.
[0037] C15 / C16 is connected to the signal end of R11 / R12 through a DC blocking capacitor. So far, C13 / C14 and C15 / C16 isolate the DC for the test point vp / vn, and the DC of vp / vn is provided by Vref (corresponding to the second reference level corresponding to the long-line bus type network) through the bias resistor R15 / R16. It can be understood that vp / vn can correspond to the matching nodes of the node ports p and n to be detected.
[0038] in, Figure 2 Two detection circuits are shown, namely, port detection circuit 1 and port detection circuit 2. In one example, the detection circuit is connected to the matching node of the node port to be detected in the running FC long-line bus network, for example, port 1 of port detection circuit 1 is connected to the common point of C13 and C15, and port 1 of port detection circuit 2 is connected to the common point of C14 and C16, and the first reference level corresponding to the detection circuit and the node level of the matching node are obtained.
[0039] In step 120, a second reference level corresponding to the FC long-line bus network is obtained.
[0040] In one embodiment, in order to ensure that the test result is not affected by the duty cycle of the test signal and the cable length, the excitation signal cannot use a working pseudo-random code signal, but a periodic pulse signal. In one example, when the FC long-line bus network generates a periodic pulse signal, a second reference level corresponding to the FC long-line bus network can be obtained. The second reference level is a reference level about the FC long-line bus network. It should be noted that when the FC long-line bus network generates a periodic pulse signal, obtaining the second reference level corresponding to the FC long-line bus network can ensure that the second reference level Vref is not provided by the circuit output stage, but is self-biased and independently adjustable, which greatly reduces the number of comparators and reduces the complexity of the test circuit.
[0041] In step 130, a preset condition is obtained, wherein the preset condition is determined according to a second reference level.
[0042] In step 140, when the port level meets a preset condition, the fault type of the node port to be detected and / or the coupled access port is determined based on the first reference level and the port level.
[0043] In one embodiment, a preset condition corresponding to the port level of the node port to be detected can be determined based on the second reference level. The port level can include a high level of the port and a low level of the port. Furthermore, when the port level meets the preset condition, the fault type of the node port to be detected and / or the coupled access port can be determined based on the first reference level and the port level. In other words, in this embodiment, in the process of determining the fault type of the node port to be detected and / or the coupled access port, two conditions need to be met at the same time: the port level meets the preset condition and the first reference level and the port level also meet the corresponding preset condition. The coupled access port is an access port connected to a FC long-line bus network. Corresponding to Figure 2 It can be known that the coupling access port may be an access port corresponding to the first directional coupler, or an access port corresponding to the second directional coupler.
[0044] It should be noted that if the excitation signal is a working signal, it is a pseudo-random signal, so the output signal vref of ports 25 and 26 is fixed. In the present invention, the delay of the long line is taken into consideration, so a pseudo-random signal cannot be used, and a periodic pulse signal is used, so that the duty cycle of the signal is different and vref is different. For example, this time the high level is 1V and the low level is 0V. The duty cycle is changed, the high level is 3V and the low level is 2V. Although the pulse signal amplitude V0 is 1 (1-0=3-2), the comparator needs to judge such a large range of 0V to 3V, so the number of comparators is increased.
[0045] In order to reduce the number of comparators, Figure 2In the circuit, C15 / C16 are added to separate the potential of nodes 25 and 26, and Vref is provided through R15 and R16, so that Vp and Vn will not be affected by the duty cycle signal. For example, the low level is Vref in normal conditions, which is fixed. In this way, the judgment range of the comparator is fixed.
[0046] The port fault detection method of the FC long-line bus network provided by the present invention, when the FC long-line bus network generates a periodic pulse signal, calls the detection circuit to connect with the matching node of the node port to be detected of the FC long-line bus network, and obtains multiple first reference levels corresponding to the detection circuit and the node level of the matching node, and uses the node level of the matching node as the port level of the node port to be detected. Since the DC isolation capacitors are respectively connected on both sides of the matching node port, other interference levels flowing into the detection circuit can be effectively isolated, laying a foundation for subsequent port detection; obtains the second reference level corresponding to the FC long-line bus network, and determines the preset condition corresponding to the port level of the node port to be detected based on the second reference level; when the port level meets the preset condition, determines the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level. It is realized that the port fault of the FC long-line bus network can be accurately detected.
[0047] In an exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example for description. Based on the first reference level and the port level, determining the fault type of the node port to be detected and / or the coupled access port may include the following steps:
[0048] Comparing the first reference level with the port level to obtain a comparison result;
[0049] Based on the comparison result and the preset mapping table, the fault type of the node port to be detected and / or the coupled access port is determined.
[0050] In one embodiment, when it is determined that the output port level meets the preset conditions, the first reference level and the port level are further compared to obtain a comparison result, and based on the comparison result and a pre-set mapping table, the fault type of the node port to be detected and / or the coupled access port is determined. The mapping table includes a correspondence between different comparison results and different fault types. Tables 1 and 2 below may correspond to mapping tables. In this embodiment, the fault type of the node port to be detected and / or the coupled access port is determined based on whether the port level meets the preset conditions and the comparison result between the first reference level and the port level, thereby improving the accuracy of determining the fault type.
[0051] Figure 4 It is a schematic diagram of a flow chart of determining a first reference level corresponding to a detection circuit provided by the present invention.
[0052] The following will be combined Figure 4 The process of determining the first reference level corresponding to the detection circuit is described.
[0053] In an exemplary embodiment of the present invention, the detection circuit can be obtained by connecting at least five comparators in parallel, wherein the negative ports of the comparators are respectively connected to their respective first reference levels, wherein the positive port of each comparator is connected to a matching node of the node port to be detected; and the output end of the comparator is used to output the comparison result. Figure 3 Schematic diagram of the structure of the detection circuit provided by the present invention. Figure 3 It can be seen that the detection circuit can be composed of 5 comparators. The number of comparators can be determined according to the number of fault types of node ports and coupling access ports to be distinguished, and the number of comparators is positively correlated with the number of fault types of node ports and coupling access ports to be distinguished.
[0054] Combination Figure 3 It can be seen that the negative terminals of the five comparators (corresponding to the negative ports) are connected to the reference levels ref1, ref2, ref3, ref4 and ref5 respectively, and the positive terminal of the comparator (corresponding to the positive port, which is port 1 of the comparator in the diagram) is connected to the matching node of the port of the node to be detected, that is, the signal input terminal (which may include the obtained port level of the node to be detected), and the output terminals of comparator 1, comparator 2, comparator 3, comparator 4 and comparator 5 (corresponding to port 2, port 3, port 4, port 5 and port 6 in the diagram) are used to output the comparison results. It should be noted that Vref can also flow into the detection circuit through R15. Among them, the comparison result of the detection circuit can be composed according to the five-bit potential values output by port 2, port 3, port 4, port 5 and port 6 respectively. It can be understood that in Figure 2 In the embodiment, ports 1 to 6 in the port detection circuit 1 or the port detection circuit 2 may correspond to the aforementioned ports 1 to 6 respectively.
[0055] Combination Figure 4 It can be known that determining the first reference level corresponding to the detection circuit may include steps 410 to 430, and each step will be described below.
[0056] In step 410, a matching circuit load resistance corresponding to the FC long-line bus network is obtained.
[0057] In step 420, a reference voltage is obtained based on the current value of the tail current source of the transceiver output circuit of the FC long-line bus network and the matching circuit load resistance.
[0058] In step 430, a first reference level corresponding to the detection circuit is determined based on the second reference level and the reference voltage.
[0059] In one embodiment, a matching circuit load resistance corresponding to the FC long - line bus - type network can be obtained. Among them, the matching circuit load resistance R can be equal to Figure 2 R11, R12, R13, and R14 in
[0060] That is, R11 = R12 = R13 = R14 = R. I.
[0061] In yet another embodiment, the first reference levels ref1 - ref5 corresponding to the detection circuit can also be determined based on the second reference level Vref and the reference voltage V0. In one example, ref1 = Vref - 0.25 V0; ref2 = Vref + v3; ref3 = Vref + v2; ref4 = Vref + v1; ref5 = Vref + 1.5 V0. Where 0 < v3 < V03 < v2 < V02 < v1 < V01 < V0. Among them, V01 is also called the first auxiliary reference voltage; V02 is also called the second auxiliary reference voltage; V03 is also called the third auxiliary reference voltage. According to the previous analysis, from ref1 to ref5, their corresponding values increase.
[0062] To further introduce the port fault detection method for the FC long - line bus - type network provided by the present invention, the process of determining the fault types of the to - be - detected node port and / or the coupled access port based on the comparison result will be described below in combination with the following embodiments.
[0063] In yet another exemplary embodiment of the present invention, determining the fault types of the to - be - detected node port and / or the coupled access port based on the comparison result and a pre - set mapping table may include the following steps:
[0064] When the port level meets the first preset condition and the comparison result is the first comparison result, it is determined based on the mapping table that both the to - be - detected node port and the coupled access port are normal. Among them, the port level meets the first preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the second reference level; the first comparison result including: the high level of the port level and / or the low level of the port level is less than the maximum reference level among the first reference levels connected to the negative port of the comparator and greater than the other first reference levels connected to the negative port of the comparator;
[0065] When the port level satisfies the first preset condition, the comparison result is the first comparison result, and a delayed signal is detected, determining based on the mapping table that the fault type of the coupled access port is an open circuit fault type, wherein the delayed signal is used to characterize a signal formed by a return signal of a periodic pulse signal under a delay;
[0066] In the case where the port level satisfies the second preset condition and the comparison result is the second comparison result, it is determined based on the mapping table that the fault type of the node port to be detected is an open circuit fault type, wherein the port level satisfies the second preset condition including: the high level of the port level is the sum of the second reference level and a reference voltage of a preset multiple, or the low level of the port level is the second reference level; the second comparison result includes: the high level of the port level and\or the low level of the port level are both greater than the first reference level connected to the negative port of the comparator;
[0067] In the case where the port level satisfies the third preset condition and the comparison result is the third comparison result, determining the fault type of the node port to be detected as a short circuit fault type based on the mapping table, wherein the port level satisfies the third preset condition including: the high level of the port level is the second reference level, or the low level of the port level is the second reference level; the third comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level of the first reference levels connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator;
[0068] When the port level satisfies the fourth preset condition and the comparison result is the fourth comparison result, the fault type of the coupled access port is determined to be a short circuit fault type based on the mapping table, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the difference between the second reference level and the reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level are both less than the first reference level connected to the negative port of the comparator.
[0069] In one embodiment, first, when it is detected that the port level satisfies the first preset condition, that is, the high level of the port level is the sum of the second reference level Vref and the reference voltage V0, that is, (Vref+V0), or the low level of the port level is the second reference level Vref, the fault type can be further determined according to the comparison result.
[0070] In one example, when the comparison result is the first comparison result, that is, the high level (Vref+V0) of the port level and the low level Vref of the port level are less than the maximum reference level of the first reference level connected to the negative port of the comparator, and are greater than other first reference levels connected to the negative port of the comparator, it is determined that the node port to be detected and the coupled access port are both normal. Among them, the node port to be detected can be called the near end, and the coupled access port can be called the far end. For example, for a detection circuit including 5 comparators, where the high level (Vref+V0) of the port level and the low level Vref of the port level are less than the maximum reference level of the reference level connected to the negative port of the comparator, that is, ref5, and are greater than other reference levels connected to the negative port of the comparator, that is, ref4-ref1, it can be determined that the node port to be detected and the coupled access port are both normal.
[0071] In another embodiment, first, when it is detected that the port level satisfies the first preset condition, that is, the high level of the port level is the sum of the second reference level Vref and the reference voltage V0, that is, (Vref+V0), or the low level of the port level is the second reference level Vref, the fault type can be further determined based on the comparison result and whether a delayed signal is detected.
[0072] In one example, when the comparison result is the first comparison result and a delayed signal is detected, that is, the high level (Vref+V0) of the port level and / or the low level Vref of the port level is less than the maximum reference level of the first reference level connected to the negative port of the comparator, and is greater than other first reference levels connected to the negative port of the comparator, and the delayed signal is also detected, it can be determined that the fault type of the coupled access port is an open circuit fault type. The delayed signal is used to characterize a signal formed by the return signal of the periodic pulse signal under the generation of a delay.
[0073] In another embodiment, first, when it is detected that the port level satisfies the second preset condition, that is, the high level of the port level is the sum of the second reference level and the preset multiple of the reference voltage (Vref+K V0, where K may be 2, K may be a non-zero constant), or when the low level of the port level is the second reference level Vref, the fault type may be further determined according to the comparison result.
[0074] In one example, when the comparison result is the second comparison result, that is, the high level of the port level (Vref+2 When the low level Vref of the port level is greater than the first reference level (ref1-ref5) connected to the negative port of the comparator, it can be determined that the fault type of the node port to be detected is an open circuit fault type.
[0075] In another embodiment, first, when it is detected that the port level satisfies the third preset condition, that is, the high level of the port level is the second reference level Vref, or the low level of the port level is the second reference level Vref, the fault type can be further determined according to the comparison result.
[0076] In one example, when the comparison result is the third comparison result, that is, the high level (Vref) of the port level and\or the low level (Vref) of the port level is greater than the minimum reference level (ref1) of the first reference levels connected to the negative port of the comparator, and is less than other first reference levels (ref1-ref4) connected to the negative port of the comparator, it can be determined that the fault type of the node port to be detected is a short circuit fault type.
[0077] It should be noted that the fault type of the node port to be detected is a short-circuit fault type, which can be further divided into a short-circuit fault type of the node port to be detected and a mutual short fault type of the node port to be detected. In the following text, it will be further introduced how to distinguish the short-circuit fault type of the node port to be detected and the mutual short fault type of the node port to be detected.
[0078] In another embodiment, first, when it is detected that the port level satisfies the fourth preset condition, that is, the high level of the port level is the sum of the second reference level and the reference voltage (Vref+V0), or the low level of the port level is the difference between the second reference level and the reference voltage (Vref-V0), the fault type can be further determined based on the comparison result.
[0079] In one example, when the comparison result is the fourth comparison result, that is, the high level of the port level and / or the low level of the port level are both less than the first reference level (ref1-ref5) connected to the negative port of the comparator, it can be determined that the fault type of the coupled access port is a short circuit fault type.
[0080] It should be noted that the fault type of the coupled access port is a short circuit fault type, which can be further divided into a coupled access port short circuit fault type and a coupled access port mutual short fault type. In the following text, it will be further introduced how to distinguish the coupled access port short circuit fault type and the coupled access port mutual short fault type.
[0081] Table 1 Fault type determination table 1 of the node port to be detected and / or the coupled access port
[0082]
[0083] The result of the comparator is obtained by op5 op4 op3 op2 op1 / on5 on4 on3 on2 on1 (where op5 op4 op3 op2 op1 is the result of the comparator corresponding to port p, and on5 on4 on3 on2 on1 is the result of the comparator corresponding to port n). Taking op5 op4 op3 op2 op1 as an example, they are obtained by comparing ref5-ref1 with the port level, respectively. When the port level is greater than the first reference level (corresponding to ref5-ref1), the corresponding value is 1, and when the port level is less than the first reference level, the corresponding value is 0. For example, in a normal state, the output result is 01111, that is, the high level of the port level and / or the low level of the port level are less than the maximum value reference level of the first reference level connected to the negative port of the comparator, and are greater than other first reference levels connected to the negative port of the comparator. It can be understood that when a delayed signal is detected, it can also be determined that a remote node has a fault, but the specific fault type cannot be determined based on this.
[0084] The process of further distinguishing the to-be-detected node port short circuit fault type and the to-be-detected node port mutual short circuit fault type will be described below in conjunction with the following embodiments.
[0085] In an exemplary embodiment of the present invention, the short-circuit fault type of the node port to be detected includes a fault type in which the node ports to be detected are shorted to each other and suspended, and a fault type in which the node ports to be detected are shorted to the ground; wherein determining that the fault type of the node port to be detected is a short-circuit fault type may include the following steps:
[0086] Control the long-line bus network to convert from a differential output mode to a single-ended output mode, and call the detection circuit to connect with the port of the node to be detected that operates in the single-ended output mode to obtain the port level in the single-ended output mode scenario;
[0087] When the port level meets the first preset condition and the comparison result is the first comparison result, determining that the fault type of the node port to be detected is a short fault and a suspended fault type of the node port to be detected;
[0088] When the port level meets the third preset condition and the comparison result is the third comparison result, it is determined that the fault type of the to-be-detected node port is a to-be-detected node port short-to-ground fault type.
[0089] In one embodiment, when it is determined that the two ports are short-circuited, the output circuit of the chip selects a single tube to be valid, and selects the p-way (25-port) output to be valid.
[0090] When it is determined that the two ports are short-circuited, the switch T11 can be turned on and the switch T12 can be turned off, so that the current of the tail current source of the transceiver output circuit only enters and exits from the 25 port.
[0091] In another embodiment, the control bus network can be converted from a differential output mode to a single-ended output mode by the aforementioned method. That is, the current of the tail current source of the transceiver output circuit only enters and exits from port 25. In this scenario, the port detection circuit can be called to connect the port of the node to be detected at the target end (port 25) operating in a single-ended output mode to obtain the port level in the single-ended output mode scenario. It can be understood that the port level in the single-ended output mode scenario can be that the FC long-line bus network is adjusted from the original operation in a single-ended mode to the operation in a single-ended output mode, and in this scenario, the node level of the matching node is obtained, and the node level of the matching node is used as the port level of the node port to be detected.
[0092] Further, when the port level meets the first preset condition and the comparison result is the first comparison result, it is determined that the fault type of the to-be-detected node port is a short-circuit and suspended fault type of the to-be-detected node port.
[0093] In an embodiment, when the port level meets the first preset condition and the comparison result is the first comparison result, it can be determined that the fault type of the node port to be detected is a short-circuit and suspended fault type of the node port to be detected.
[0094] In yet another embodiment, when the port level satisfies the third preset condition and the comparison result is the third comparison result, it can be determined that the fault type of the to-be-detected node port is a to-be-detected node port short-to-ground fault type.
[0095] It should be noted that the above-mentioned judgments are all based on the premise that the short-circuit fault type of the node port to be detected is determined, and then the next step of re-differentiation is carried out.
[0096] The process of distinguishing the coupling access port short circuit fault type and the coupling access port mutual short circuit fault type will be described below in conjunction with the following embodiments.
[0097] In an exemplary embodiment of the present invention, the short circuit fault types of the coupled access ports may include a coupled access port short circuit and hanging fault type, a coupled access port short circuit and to one end of the termination fault type, a coupled access port short circuit and to both ends of the termination fault type, and a coupled access port short circuit to ground fault type. The aforementioned fault types will be further distinguished below.
[0098] The determination that the fault type of the coupled access port is a short circuit fault type may be implemented in the following manner:
[0099] Control the FC long-line bus network to convert from differential output mode to single-ended output mode, and call the detection circuit to connect with the port of the node to be detected that operates in single-ended output mode to obtain the port level in the single-ended output mode scenario;
[0100] When the port level satisfies the fourth preset condition and the comparison result is the first comparison result, determining that the short-circuit fault type of the coupled access port is a coupled access port short-circuit and suspended fault type, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the first auxiliary reference voltage, or the low level of the port level is the second reference level, and the difference between the reference voltage and the first auxiliary reference voltage is less than or equal to the preset value;
[0101] When the port level satisfies the fifth preset condition and the comparison result is the fourth comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit fault type to one end of the termination, wherein the port level satisfies the fifth preset condition including: the high level of the port level is the sum of the second reference level and the second auxiliary reference voltage, or the low level of the port level is the second reference level, and the second auxiliary reference voltage is less than the first auxiliary reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level is less than the maximum value reference level and the second maximum value reference level of the first reference level connected to the negative port of the comparator, and is greater than other first reference levels connected to the negative port of the comparator;
[0102] When the port level satisfies the sixth preset condition and the comparison result is the fifth comparison result, the short-circuit fault type of the coupled access port is determined to be a fault type in which the coupled access ports are shorted to each other and to both ends of the termination, wherein the port level satisfies the sixth preset condition including: the high level of the port level is the sum of the second reference level and the third auxiliary reference voltage, or the low level of the port level is the second reference level, and the third auxiliary reference voltage is less than the second auxiliary reference voltage; the fifth comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level and the second minimum reference level of the first reference level connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator;
[0103] When the port level meets the third preset condition and the comparison result is the third comparison result, it is determined that the short circuit fault type of the coupled access port is a coupled access port short-to-ground fault type.
[0104] In one embodiment, the FC long-line bus network can be controlled to convert from a differential output mode to a single-ended output mode, and a detection circuit is called to connect to the port of the node to be detected that operates in a single-ended output mode to obtain the port level in the single-ended output mode scenario.
[0105] Further, in another embodiment, when the port level satisfies the fourth preset condition, that is, the high level of the port level is the sum of the second reference level and the first auxiliary reference voltage (Vref+V01), or the low level of the port level is the second reference level (Vref), the short-circuit fault type of the coupled access port is further determined according to the comparison result. In one example, when the comparison result is the first comparison result, it can be determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit and suspended fault type. Among them, the difference between the reference voltage and the auxiliary reference voltage is less than or equal to the preset value, wherein the preset value can be adjusted according to actual conditions, and the preset value is not specifically limited in this embodiment. In one example, the reference voltage V0 can be slightly greater than the auxiliary reference voltage V01, or the reference voltage V0 can be equal to the auxiliary reference voltage V01.
[0106] In another embodiment, when the port level satisfies the fifth preset condition, that is, the high level of the port level is the sum of the second reference level and the second auxiliary reference voltage (Vref+V02), or the low level of the port level is the second reference level (Vref), the short-circuit fault type of the coupled access port is further determined according to the comparison result. Wherein, the second reference voltage V02 is less than the first auxiliary reference voltage V01. In one example, when the comparison result is the fourth comparison result, that is, the high level of the port level and\or the low level of the port level is less than the maximum value reference level (ref5) and the second maximum value reference level (ref4) of the first reference level connected to the negative port of the comparator, and is greater than the other first reference levels (ref1-ref3) connected to the negative port of the comparator, it can be determined that the short-circuit fault type of the coupled access port is a fault type in which the coupled access ports are shorted to each other and terminated at one end.
[0107] In another embodiment, when the port level satisfies the sixth preset condition, that is, the high level of the port level is the sum of the second reference level and the third auxiliary reference voltage (Vref+V03), or the low level of the port level is the second reference level (Vref), the short-circuit fault type of the coupled access port is further determined according to the comparison result. Among them, the third auxiliary reference voltage (V03) is less than the second auxiliary reference voltage (V02). In one example, when the comparison result is the fifth comparison result, that is, the high level of the port level and\or the low level of the port level is greater than the minimum reference level (ref1) and the second minimum reference level (ref2) of the first reference level connected to the negative port of the comparator, and is less than the other first reference levels (ref3-ref5) connected to the negative port of the comparator, it can be determined that the short-circuit fault type of the coupled access port is a fault type in which the coupled access ports are shorted to each other and terminated at both ends.
[0108] In yet another embodiment, when the port level meets the third preset condition and the comparison result is the third comparison result, it can be determined that the short circuit fault type of the coupled access port is a coupled access port short-to-ground fault type.
[0109] Table 2 Fault type determination table 2 of the node port to be detected and / or the coupled access port
[0110]
[0111] Among them, Table 2 gives the detection results of further distinguishing the coupling access port short circuit fault type and the coupling access port mutual short circuit fault type, and the to-be-detected node port short circuit fault type and the to-be-detected node port mutual short circuit fault type.
[0112] The port fault detection method for the FC long-line bus network provided by the present invention has comprehensive test items, and can further distinguish the far end or the near end, whether the short-circuit point is grounded or suspended, and other details when a differential short circuit occurs, so as to accurately locate the fault. In addition, the second reference level Vref is not provided by the circuit output stage, but is independently adjustable by self-biasing, so as to reduce the number of comparators, and the test result eliminates the influence of the duty cycle of the test signal and the cable delay.
[0113] According to the foregoing description, the port fault detection method of the FC long-line bus network provided by the present invention, when the FC long-line bus network generates a periodic pulse signal, calls the detection circuit to connect with the matching node of the node port to be detected of the FC long-line bus network, and obtains multiple first reference levels corresponding to the detection circuit, and the node level of the matching node, and uses the node level of the matching node as the port level of the node port to be detected. Since the DC isolation capacitors are connected on both sides of the matching node port, other interference levels flowing into the detection circuit can be effectively isolated, laying a foundation for subsequent port detection; when the long-line bus network generates a periodic pulse signal, obtain the second reference level corresponding to the FC long-line bus network, and; based on the second reference level, determine the preset condition corresponding to the port level of the node port to be detected; when the port level meets the preset condition, determine the fault type of the node port to be detected and\or the coupled access port based on the first reference level and the port level. It is realized that the port fault of the FC long-line bus network can be accurately detected.
[0114] The port fault detection device for the FC long line bus type network provided by the present invention is described below. The port fault detection device for the FC long line bus type network described below and the port fault detection method for the FC long line bus type network described above can be referred to each other.
[0115] Figure 5It is a structural schematic diagram of a port fault detection device for a FC long-line bus network provided by the present invention.
[0116] In an exemplary embodiment of the present invention, Figure 5 It can be seen that the port fault detection device for the FC long-line bus network may include a calling module 510, an acquisition module 520, a determination module 530, and a detection module 540. Each module will be introduced below.
[0117] The calling module 510 may be configured to call the detection circuit to connect with the matching node of the node port to be detected of the FC long-line bus type network when the FC long-line bus type network generates a periodic pulse signal, and obtain a plurality of first reference levels corresponding to the detection circuit and the node level of the matching node, and use the node level of the matching node as the port level of the node port to be detected, wherein DC isolation capacitors are connected to both sides of the port of the matching node, respectively, and the first reference level is used to compare with the port level to determine the fault type of the node port to be detected and / or the coupled access port;
[0118] The acquisition module 520 may be configured to acquire a second reference level corresponding to the long-line bus network, wherein the second reference level is a reference level about the FC long-line bus network;
[0119] The determination module 530 may be configured to obtain a preset condition, wherein the preset condition is determined according to the second reference level;
[0120] The detection module 540 can be configured to determine the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level when the port level meets the preset conditions, wherein the coupled access port is an access port connected to the FC long-line bus network.
[0121] In an exemplary embodiment of the present invention, the detection module 540 may determine the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level in the following manner:
[0122] Comparing the first reference level with the port level to obtain a comparison result;
[0123] Based on the comparison result and a preset mapping table, the fault type of the node port to be detected and / or the coupled access port is determined, wherein the mapping table includes a correspondence between different comparison results and different fault types.
[0124] In an exemplary embodiment of the present invention, the detection circuit is obtained by connecting at least five comparators in parallel, wherein the negative ports of the comparators are respectively connected to respective first reference levels; the detection module 540 can determine the first reference level corresponding to the detection circuit in the following manner:
[0125] Obtaining a matching circuit load resistance corresponding to the FC long-line bus network;
[0126] Based on the current value of the tail current source of the transceiver output circuit of the FC long-line bus network and the matching circuit load resistance, a reference voltage is obtained;
[0127] Based on the second reference level and the reference voltage, a first reference level corresponding to the detection circuit is determined.
[0128] In an exemplary embodiment of the present invention, the detection module 540 may determine the fault type of the node port to be detected and / or the coupled access port based on the comparison result and a preset mapping table in the following manner:
[0129] In the case where the port level satisfies the first preset condition and the comparison result is the first comparison result, it is determined based on the mapping table that the node port to be detected and the coupled access port are both normal, wherein the port level satisfies the first preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the second reference level; the first comparison result includes: the high level of the port level and\or the low level of the port level is less than the maximum value reference level of the first reference level connected to the negative port of the comparator, and greater than other first reference levels connected to the negative port of the comparator;
[0130] In the case where the port level satisfies the first preset condition, the comparison result is the first comparison result, and a delay signal is detected, determining based on the mapping table that the fault type of the coupled access port is an open circuit fault type, wherein the delay signal is used to characterize a signal formed by a return signal of the periodic pulse signal under a delay;
[0131] In the case where the port level satisfies the second preset condition and the comparison result is the second comparison result, determining that the fault type of the node port to be detected is an open circuit fault type based on the mapping table, wherein the port level satisfies the second preset condition includes: the high level of the port level is the sum of the second reference level and the reference voltage of a preset multiple, or the low level of the port level is the second reference level; the second comparison result includes: the high level of the port level and\or the low level of the port level are both greater than the first reference level connected to the negative port of the comparator;
[0132] In the case where the port level satisfies the third preset condition and the comparison result is the third comparison result, determining that the fault type of the node port to be detected is a short circuit fault type based on the mapping table, wherein the port level satisfies the third preset condition including: the high level of the port level is the second reference level, or the low level of the port level is the second reference level; the third comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level of the first reference levels connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator;
[0133] When the port level satisfies the fourth preset condition and the comparison result is the fourth comparison result, the fault type of the coupled access port is determined to be a short circuit fault type based on the mapping table, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the difference between the second reference level and the reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level are both less than the first reference level connected to the negative port of the comparator.
[0134] In an exemplary embodiment of the present invention, the short-circuit fault type of the node port to be detected includes a fault type in which the node ports to be detected are shorted to each other and suspended, and a fault type in which the node ports to be detected are shorted to the ground; the detection module 540 may determine that the fault type of the node port to be detected is a short-circuit fault type in the following manner:
[0135] Control the FC long-line bus network to convert from differential output mode to single-ended output mode, and call the detection circuit to connect with the port of the node to be detected that operates in single-ended output mode to obtain the port level in the single-ended output mode scenario;
[0136] When the port level satisfies the first preset condition and the comparison result is the first comparison result, determining that the fault type of the to-be-detected node port is a to-be-detected node port short-circuit and hanging fault type;
[0137] When the port level satisfies the third preset condition and the comparison result is the third comparison result, it is determined that the fault type of the to-be-detected node port is a to-be-detected node port short-to-ground fault type.
[0138] In an exemplary embodiment of the present invention, the short-circuit fault type of the coupled access port includes a coupled access port short-to-each-other and suspended fault type, a coupled access port short-to-each-other and to one end of the termination fault type, a coupled access port short-to-each-other and to both ends of the termination fault type, and a coupled access port short-to-ground fault type; the detection module 540 may determine that the fault type of the coupled access port is a short-circuit fault type in the following manner:
[0139] Control the FC long-line bus network to convert from differential output mode to single-ended output mode, and call the detection circuit to connect with the port of the node to be detected that operates in single-ended output mode to obtain the port level in the single-ended output mode scenario;
[0140] In the case where the port level satisfies the fourth preset condition and the comparison result is the first comparison result, determining that the short-circuit fault type of the coupled access port is a coupled access port short-circuit and suspended fault type, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the first auxiliary reference voltage, or the low level of the port level is the second reference level, and the difference between the reference voltage and the first auxiliary reference voltage is less than or equal to a preset value;
[0141] In the case where the port level satisfies the fifth preset condition and the comparison result is the fourth comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit fault type to one end of the termination, wherein the port level satisfies the fifth preset condition including: the high level of the port level is the sum of the second reference level and the second auxiliary reference voltage, or the low level of the port level is the second reference level, and the second auxiliary reference voltage is less than the first auxiliary reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level is less than the maximum value reference level and the second maximum value reference level of the first reference level connected to the negative port of the comparator, and is greater than other first reference levels connected to the negative port of the comparator;
[0142] In the case where the port level satisfies the sixth preset condition and the comparison result is the fifth comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit fault type to both ends of the termination, wherein the port level satisfies the sixth preset condition including: the high level of the port level is the sum of the second reference level and the third auxiliary reference voltage, or the low level of the port level is the second reference level, and the third auxiliary reference voltage is less than the second auxiliary reference voltage; the fifth comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level and the second minimum reference level of the first reference level connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator;
[0143] When the port level satisfies the third preset condition and the comparison result is the third comparison result, it is determined that the short circuit fault type of the coupling access port is a coupling access port short-to-ground fault type.
[0144] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the port fault detection method of the FC long-line bus type network, the method comprising: when the FC long-line bus type network generates a periodic pulse signal, calling the detection circuit to connect with the matching node of the node port to be detected of the FC long-line bus type network, and obtaining a plurality of first reference levels corresponding to the detection circuit and the node level of the matching node, and using the node level of the matching node as the port level of the node port to be detected, wherein DC blocking capacitors are connected to both sides of the matching node port, and the first reference level is used to connect with the port voltage. The first reference level and the second reference level are compared to determine the fault type of the node port to be detected and / or the coupled access port; obtain a second reference level corresponding to the FC long-line bus network, wherein the second reference level is a reference level about the FC long-line bus network; obtain a pre-set preset condition, wherein the preset condition is determined according to the second reference level; when the port level satisfies the preset condition, determine the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level, wherein the coupled access port is an access port connected to the FC long-line bus network.
[0145] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0146] On the other hand, the present invention further provides a computer program product, the computer program product includes a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the computer can execute the port fault detection method of the FC long-line bus type network provided by the above methods, the method comprising: when the FC long-line bus type network generates a periodic pulse signal, calling a detection circuit to connect with a matching node of a node port to be detected of the FC long-line bus type network, and obtaining a plurality of first reference levels corresponding to the detection circuit, and a node level of the matching node, and using the node level of the matching node as the port level of the node port to be detected, wherein, in the matching node A DC blocking capacitor is connected to both sides of the node port, respectively; the first reference level is used to compare with the port level to determine the fault type of the node port to be detected and / or the coupled access port; a second reference level corresponding to the FC long-line bus network is obtained, wherein the second reference level is a reference level about the FC long-line bus network; a pre-set preset condition is obtained, wherein the preset condition is determined according to the second reference level; when the port level meets the preset condition, the fault type of the node port to be detected and / or the coupled access port is determined based on the first reference level and the port level, wherein the coupled access port is an access port connected to the FC long-line bus network.
[0147] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the method for detecting a port fault of a FC long-line bus network provided by the above-mentioned methods is implemented, the method comprising: when the FC long-line bus network generates a periodic pulse signal, calling a detection circuit to connect with a matching node of a node port to be detected of the FC long-line bus network, and obtaining a plurality of first reference levels corresponding to the detection circuit and a node level of the matching node, and using the node level of the matching node as the port level of the node port to be detected, wherein a DC isolation circuit is connected to both sides of the matching node port, The first reference level is used to compare with the port level to determine the fault type of the node port to be detected and / or the coupled access port; obtain a second reference level corresponding to the FC long-line bus network, wherein the second reference level is a reference level about the FC long-line bus network; obtain a pre-set preset condition, wherein the preset condition is determined according to the second reference level; when the port level meets the preset condition, determine the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level, wherein the coupled access port is an access port connected to the FC long-line bus network.
[0148] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0149] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0150] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A port fault detection method for a FC long-line bus network, It is characterized in that The method comprises: In the case where the FC long-line bus network generates a periodic pulse signal, a detection circuit is called to connect with a matching node of a node port to be detected of the FC long-line bus network, and a plurality of first reference levels corresponding to the detection circuit and a node level of the matching node are obtained, and the node level of the matching node is used as a port level of the node port to be detected, wherein DC isolation capacitors are connected to both sides of the port of the matching node, and the first reference level is used to compare with the port level to determine the fault type of the node port to be detected and / or the coupled access port; Acquire a second reference level corresponding to the FC long-line bus network, wherein the second reference level is a reference level about the FC long-line bus network; Acquiring a preset condition, wherein the preset condition is determined according to the second reference level; In the case where the port level meets the preset condition, the fault type of the node port to be detected and / or the coupled access port is determined based on the first reference level and the port level, wherein the coupled access port is an access port connected to the FC long-line bus network, wherein: The determining, based on the first reference level and the port level, the fault type of the node port to be detected and / or the coupled access port specifically includes: Comparing the first reference level with the port level to obtain a comparison result; Based on the comparison result and a preset mapping table, the fault type of the node port to be detected and / or the coupled access port is determined, wherein the mapping table includes a correspondence between different comparison results and different fault types; wherein, The detection circuit is obtained by connecting at least five comparators in parallel, wherein the negative ports of the comparators are respectively connected to respective first reference levels; The first reference level corresponding to the detection circuit is determined in the following manner; Obtaining a matching circuit load resistance corresponding to the FC long-line bus network; Based on the current value of the tail current source of the transceiver output circuit of the FC long-line bus network and the matching circuit load resistance, a reference voltage is obtained; Based on the second reference level and the reference voltage, a first reference level corresponding to the detection circuit is determined.
2. The port fault detection method of the FC long-line bus network according to claim 1, It is characterized in that The determining, based on the comparison result and a preset mapping table, the fault type of the node port to be detected and / or the coupled access port specifically includes: In the case where the port level satisfies the first preset condition and the comparison result is the first comparison result, it is determined based on the mapping table that the node port to be detected and the coupled access port are both normal, wherein the port level satisfies the first preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the second reference level; the first comparison result includes: the high level of the port level and\or the low level of the port level is less than the maximum value reference level of the first reference level connected to the negative port of the comparator, and greater than other first reference levels connected to the negative port of the comparator; In the case where the port level satisfies the first preset condition, the comparison result is the first comparison result, and a delay signal is detected, determining based on the mapping table that the fault type of the coupled access port is an open circuit fault type, wherein the delay signal is used to characterize a signal formed by a return signal of the periodic pulse signal under a delay; In the case where the port level satisfies the second preset condition and the comparison result is the second comparison result, determining that the fault type of the node port to be detected is an open circuit fault type based on the mapping table, wherein the port level satisfies the second preset condition includes: the high level of the port level is the sum of the second reference level and the reference voltage of a preset multiple, or the low level of the port level is the second reference level; the second comparison result includes: the high level of the port level and\or the low level of the port level are both greater than the first reference level connected to the negative port of the comparator; In the case where the port level satisfies the third preset condition and the comparison result is the third comparison result, determining that the fault type of the node port to be detected is a short circuit fault type based on the mapping table, wherein the port level satisfies the third preset condition including: the high level of the port level is the second reference level, or the low level of the port level is the second reference level; the third comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level of the first reference levels connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator; When the port level satisfies the fourth preset condition and the comparison result is the fourth comparison result, the fault type of the coupled access port is determined to be a short circuit fault type based on the mapping table, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the reference voltage, or the low level of the port level is the difference between the second reference level and the reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level are both less than the first reference level connected to the negative port of the comparator.
3. The port fault detection method of the FC long-line bus network according to claim 2, It is characterized in that The short-circuit fault types of the node ports to be detected include a short-circuit fault type of the node ports to be detected and suspended, and a short-circuit fault type of the node ports to be detected to the ground; Determining that the fault type of the to-be-detected node port is a short circuit fault type specifically includes: Control the FC long-line bus network to convert from differential output mode to single-ended output mode, and call the detection circuit to connect with the port of the node to be detected that operates in single-ended output mode to obtain the port level in the single-ended output mode scenario; When the port level satisfies the first preset condition and the comparison result is the first comparison result, determining that the fault type of the to-be-detected node port is a to-be-detected node port short-circuit and hanging fault type; When the port level satisfies the third preset condition and the comparison result is the third comparison result, it is determined that the fault type of the to-be-detected node port is a to-be-detected node port short-to-ground fault type.
4. The port fault detection method of the FC long-line bus network according to claim 2, It is characterized in that The short-circuit fault types of the coupling access ports include a coupling access port short-circuit and suspended fault type, a coupling access port short-circuit and to one end of the termination fault type, a coupling access port short-circuit and to both ends of the termination fault type, and a coupling access port short-circuit to ground fault type; Determining that the fault type of the coupling access port is a short circuit fault type specifically includes: Control the FC long-line bus network to convert from differential output mode to single-ended output mode, and call the detection circuit to connect with the port of the node to be detected that operates in single-ended output mode to obtain the port level in the single-ended output mode scenario; In the case where the port level satisfies the fourth preset condition and the comparison result is the first comparison result, determining that the short-circuit fault type of the coupled access port is a coupled access port short-circuit and suspended fault type, wherein the port level satisfies the fourth preset condition including: the high level of the port level is the sum of the second reference level and the first auxiliary reference voltage, or the low level of the port level is the second reference level, and the difference between the reference voltage and the first auxiliary reference voltage is less than or equal to a preset value; In the case where the port level satisfies the fifth preset condition and the comparison result is the fourth comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit fault type to one end of the termination, wherein the port level satisfies the fifth preset condition including: the high level of the port level is the sum of the second reference level and the second auxiliary reference voltage, or the low level of the port level is the second reference level, and the second auxiliary reference voltage is less than the first auxiliary reference voltage; the fourth comparison result includes: the high level of the port level and\or the low level of the port level is less than the maximum value reference level and the second maximum value reference level of the first reference level connected to the negative port of the comparator, and is greater than other first reference levels connected to the negative port of the comparator; In the case where the port level satisfies the sixth preset condition and the comparison result is the fifth comparison result, it is determined that the short-circuit fault type of the coupled access port is a coupled access port short-circuit fault type to both ends of the termination, wherein the port level satisfies the sixth preset condition including: the high level of the port level is the sum of the second reference level and the third auxiliary reference voltage, or the low level of the port level is the second reference level, and the third auxiliary reference voltage is less than the second auxiliary reference voltage; the fifth comparison result includes: the high level of the port level and\or the low level of the port level is greater than the minimum reference level and the second minimum reference level of the first reference level connected to the negative port of the comparator, and is less than other first reference levels connected to the negative port of the comparator; When the port level satisfies the third preset condition and the comparison result is the third comparison result, it is determined that the short circuit fault type of the coupling access port is a coupling access port short-to-ground fault type.
5. A port fault detection device for a FC long-line bus network, It is characterized in that The device comprises: A calling module, used for calling a detection circuit to connect with a matching node of a node port to be detected of the FC long-line bus type network when the FC long-line bus type network generates a periodic pulse signal, and obtaining a plurality of first reference levels corresponding to the detection circuit and a node level of the matching node, and using the node level of the matching node as a port level of the node port to be detected, wherein DC isolation capacitors are connected to both sides of the port of the matching node, respectively, and the first reference level is used for comparison with the port level to determine the fault type of the node port to be detected and / or the coupled access port; An acquisition module, used for acquiring a second reference level corresponding to the FC long-line bus network, wherein the second reference level is a reference level about the FC long-line bus network; A determination module, configured to obtain a preset condition, wherein the preset condition is determined according to the second reference level; A detection module, configured to determine the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level when the port level satisfies the preset condition, wherein the coupled access port is an access port connected to the FC long-line bus network, wherein: The detection module determines the fault type of the node port to be detected and / or the coupled access port based on the first reference level and the port level in the following manner: Comparing the first reference level with the port level to obtain a comparison result; Based on the comparison result and a preset mapping table, the fault type of the node port to be detected and / or the coupled access port is determined, wherein the mapping table includes a correspondence between different comparison results and different fault types; wherein, The detection circuit is obtained by connecting at least five comparators in parallel, wherein the negative ports of the comparators are respectively connected to their respective first reference levels; the detection module determines the first reference level corresponding to the detection circuit in the following manner: Obtaining a matching circuit load resistance corresponding to the FC long-line bus network; Based on the current value of the tail current source of the transceiver output circuit of the FC long-line bus network and the matching circuit load resistance, a reference voltage is obtained; Based on the second reference level and the reference voltage, a first reference level corresponding to the detection circuit is determined.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the port failure detection method for the FC long-line bus network as claimed in any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the port failure detection method for the FC long-line bus network as claimed in any one of claims 1 to 4 is implemented.
8. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the port failure detection method for the FC long-line bus network as claimed in any one of claims 1 to 4 is implemented.
