Node port fault detection method, device and electronic equipment for bus network
Through the combination of parallel comparators and mapping tables, it is possible to efficiently and accurately detect node port fault types without interrupting the operation of the bus network, solving the problem of low fault detection efficiency in the existing technology and improving detection efficiency and accuracy. sex.
Patent Information
- Application Number
- CN202410869454.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-01
AI Technical Summary
The existing technology is inefficient in detecting bus network node port faults and needs to interrupt normal work, making it impossible to identify fault types efficiently and accurately.
Multiple comparators connected in parallel are used to detect node port faults. By comparing the reference level and the node port level, the target output result of the port detection circuit is determined, and the fault type is determined using a pre-maintained mapping table to achieve non-interruption Efficient and accurate fault detection when bus network is working.
It realizes the rapid and accurate detection of node port fault types without interrupting the operation of the bus network, improves the efficiency and accuracy of fault detection, and can make secondary judgments when the node port level changes to accurately locate the fault. .
Smart Images

Figure CN118413461B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of serial data transmission, and in particular to a method, device and electronic equipment for detecting node port faults in a bus network. Background Art
[0002] The bus network structure is to connect all nodes to a bus, which is easy to implement, low cost, flexible in wiring, and good in scalability. For a bus network, if the node port has an open link, short circuit, or grounding, it will directly affect the signal transmission.
[0003] From the relevant technology, it is known that the current node port fault detection methods include thermal detection and online automatic detection. Among them, manual detection is inefficient; online automatic detection uses digital data to judge the results after sampling through analog-to-digital converter (ADC), which requires special allocation of time for port detection, interrupting normal work, and has the disadvantage of long detection time.
[0004] Therefore, currently, finding a node port fault detection method that can efficiently and accurately detect the fault type of the node port without interrupting the operation of the bus network has become a research hotspot. Summary of the invention
[0005] The present invention provides a method, device and electronic equipment for detecting node port faults of a bus type network, which can efficiently and accurately detect the fault type of the node port without interrupting the operation of the bus type network.
[0006] The present invention provides a method for detecting node port faults of a bus type network, the method comprising: calling a port detection circuit to connect with a node port to be detected of the running bus type network, and obtaining a reference level corresponding to the port detection circuit; obtaining a node port level of the node port to be detected of the bus type network; determining a target output result of the port detection circuit according to the reference level and the node port level, and determining a node port fault type of the node port to be detected based on the target output result.
[0007] According to a node port fault detection method for a bus network provided by the present invention, the port detection circuit is obtained by connecting a plurality of comparators in parallel, wherein the positive port of each of the comparators is connected to the node port to be detected; the negative ports of the comparators are respectively connected to respective reference levels; the output end of the comparator is used to output the target output result of the port detection circuit; the determining the target output result of the port detection circuit according to the reference level and the node port level specifically includes: determining the target output result of the port detection circuit outputted by the output end of the comparator according to the comparison between the reference level connected to the negative port of each of the comparators and the node port level; before determining the node port fault type of the node port to be detected based on the target output result, the method further includes: pre-maintaining a first mapping table, wherein the first mapping table includes the correspondence between different output results of the port detection circuit and different node port fault types; the determining the node port fault type of the node port to be detected based on the target output result specifically includes: determining the node port fault type of the node port to be detected corresponding to the target output result based on the target output result and the first mapping table.
[0008] According to a node port fault detection method for a bus network provided by the present invention, the target output result of the port detection circuit outputted by the output end of the comparator is determined based on the comparison between the reference level connected to the negative port of each comparator and the node port level, specifically including: when the node port level is less than the maximum reference level of the reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining the target output result of the port detection circuit to be the first target output result; when the node port levels are all greater than the reference level connected to the negative port of the comparator, determining the target output result of the port detection circuit to be the second target output result; when the node port levels are all less than the reference level connected to the negative port of the comparator, determining the target output result of the port detection circuit to be the third target output result; in the first mapping table, the first target The first target output result corresponds to the normal type of the node port; the second target output result corresponds to the open circuit fault type of the node port; the third target output result corresponds to the short circuit fault type of the node port; the determining, based on the target output result and the first mapping table, the node port fault type of the node port to be detected corresponding to the target output result, specifically includes: when the target output result is the first target output result, based on the target output result and the first mapping table, determining that the node port to be detected is the normal type of the node port; when the target output result is the second target output result, based on the target output result and the first mapping table, determining that the node port to be detected is the open circuit fault type of the node port; when the target output result is the third target output result, based on the target output result and the first mapping table, determining that the node port to be detected is the short circuit fault type of the node port.
[0009] According to a node port fault detection method for a bus type network provided by the present invention, when the target output result is the third target output result, after determining that the node port to be detected is a node port short circuit fault type based on the target output result and the first mapping table, the method also includes: controlling the bus type network to be converted from a differential output mode to a single-ended output mode, and calling a port detection circuit to connect with the node port to be detected of the target end operating in the single-ended output mode, and obtaining a reference level corresponding to the port detection circuit; obtaining the single-ended node port level of the node to be detected at the target end; determining the target output result of the port detection circuit according to the reference level and the single-ended node port level, and determining the node port short circuit fault type of the node port to be detected based on the target output result.
[0010] According to a node port fault detection method for a bus network provided by the present invention, the fault type of the node port short circuit of the node port to be detected is determined based on the target output result, specifically comprising: when the single-ended node port level is less than the maximum reference level of the reference levels connected to the negative port of the comparator, and is greater than other reference levels connected to the negative port of the comparator, determining that the target output result is a fourth target output result; when the single-ended node port level is less than the maximum reference level and the second maximum reference level of the reference levels connected to the negative port of the comparator, and is greater than the minimum reference level and the second minimum reference level of the reference levels connected to the negative port of the comparator, determining that the target output result is a fifth target output result; when the single-ended node port level is greater than the minimum reference level of the reference levels connected to the negative port of the comparator, and is less than other reference levels connected to the negative port of the comparator, determining that the target output result is a sixth target output result; when the single-ended node port level is less than the comparator In the case where the negative port of the comparator is connected to the reference level, the target output result is determined to be the seventh target output result; in the first mapping table, the fourth target output result corresponds to the node port short and suspended fault type; the fifth target output result corresponds to the node port short and to one end of the termination fault type; the sixth target output result corresponds to the node port short and to both ends of the termination fault type; the seventh target output result corresponds to the node port short to ground fault type; the method also includes: when the target output result is the fourth target output result, determining that the node port is a node port short and suspended fault type; when the target output result is the fifth target output result, determining that the node port to be detected is a node port short and to one end of the termination fault type; when the target output result is the sixth target output result, determining that the node port to be detected is a node port short and to both ends of the termination fault type; when the target output result is the seventh target output result, determining that the node port to be detected is a node port short to ground fault type.
[0011] According to a node port fault detection method for a bus type network provided by the present invention, a reference level corresponding to the port detection circuit is determined in the following manner: respectively obtaining a circuit power supply voltage of the bus type network, a current value of a tail current source of a transceiver output circuit of the bus type network, and a matching circuit load resistance corresponding to the bus type network; obtaining a first voltage based on the current value of the tail current source of the transceiver output circuit of the bus type network and the matching circuit load resistance corresponding to the bus type network; and determining a reference level corresponding to the port detection circuit according to the circuit power supply voltage of the bus type network and the first voltage.
[0012] The present invention also provides a node port fault detection device for a bus type network, the device comprising: a calling module, used to call a port detection circuit to connect with a node port to be detected in a running bus type network, and obtain a reference level corresponding to the port detection circuit; an obtaining module, used to obtain a node port level of the node port to be detected in the bus type network; a determining module, used to determine a target output result of the port detection circuit according to the reference level and the node port level, and determine the node port fault type of the node port to be detected based on the target output result.
[0013] According to a node port fault detection device for a bus network provided by the present invention, the port detection circuit is obtained by connecting a plurality of comparators in parallel, wherein the positive port of each comparator is connected to the node port to be detected; the negative ports of the comparators are respectively connected to respective reference levels; the output end of the comparator is used to output the target output result of the port detection circuit; the determination module adopts the following method to determine the target output result of the port detection circuit according to the reference level and the node port level: according to the comparison between the reference level connected to the negative port of each comparator and the node port level, the target output result of the port detection circuit output by the output end of the comparator is determined; the determination module is also configured to: pre-maintain a first mapping table, wherein the first mapping table includes the correspondence between different output results of the port detection circuit and different node port fault types; the determination module adopts the following method to determine the node port fault type of the node port to be detected based on the target output result: based on the target output result and the first mapping table, the node port fault type of the node port to be detected corresponding to the target output result is determined.
[0014] 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 node port fault detection method for a bus-type network as described in any one of the above is implemented.
[0015] 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 node port fault detection method for a bus-type network as described in any one of the above is implemented.
[0016] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method for detecting node port failure in a bus type network as described in any one of the above is implemented.
[0017] The node port fault detection method, device and electronic device of the bus type network provided by the present invention are connected with the node port to be detected of the running bus type network by calling the port detection circuit, and obtaining the reference level corresponding to the port detection circuit; obtaining the node port level of the node port to be detected of the bus type network; and determining the target output result of the port detection circuit according to the reference level and the node port level, and determining the node port fault type of the node port to be detected based on the target output result. The port detection circuit can realize efficient and accurate detection of the fault type of the node port without interrupting the operation of the bus type network. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] 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.
[0019] Figure 1 This is one of the flow charts of the node port fault detection method of the bus type network provided by the present invention.
[0020] Figure 2 It is a structural schematic diagram of the high-speed serial bus structure provided by the present invention.
[0021] Figure 3 It is a structural schematic diagram of the port detection circuit provided by the present invention.
[0022] Figure 4 It is a flow chart of determining the node port fault type based on the target output result provided by the present invention.
[0023] Figure 5 It is a structural schematic diagram of the output current of the serial interface transceiver of the high-speed serial bus structure provided by the present invention.
[0024] Figure 6 This is the second flow chart of the node port fault detection method of the bus type network provided by the present invention.
[0025] Figure 7 It is a structural schematic diagram of a node port fault detection device for a bus type network provided by the present invention.
[0026] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention.
[0027] Reference numerals:
[0028] 210: high-speed node; 220: first directional coupler; 230: second directional coupler. DETAILED DESCRIPTION
[0029] 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.
[0030] The node port fault detection method of the bus network provided by the present invention can monitor the port status at any time without interrupting the operation of the bus network by calling the port detection circuit, and give the test result by using the port detection circuit, which is fast and concise. The test items are comprehensive, and for the short circuit situation, the output signal control is used to make a secondary judgment to accurately locate the fault.
[0031] Figure 1 This is one of the flow charts of the node port fault detection method of the bus type network provided by the present invention.
[0032] The following will be combined Figure 1 The process of the node port fault detection method of the bus type network provided by the present invention is described.
[0033] In an exemplary embodiment of the present invention, the operation type of the transceiver of the bus network may be a time division multiplexing type. The bus network may be a high-speed bus network. For ease of description, the present invention will be described as follows: Figure 2 The high-speed serial bus structure (corresponding to the high-speed bus network) shown in the figure is used as an example for explanation.
[0034] In step 110, a port detection circuit is called to connect to a port of a node to be detected in a running bus network, and a reference level corresponding to the port detection circuit is obtained.
[0035] In one embodiment, a port detection circuit may be called to connect to a port of a node to be detected in a running bus network, and a reference level corresponding to the port detection circuit may be obtained.
[0036] by Figure 2The high-speed serial bus structure shown in the figure is used as an example to illustrate that 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 the 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.
[0037] 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.
[0038] in, Figure 2 Two port detection circuits are shown, namely, port detection circuit 1 and port detection circuit 2. In one example, the port detection circuit is connected to the node port to be detected of the bus network in operation, for example, port 1 of port detection circuit 1 is connected to the common point of C13 and R11, and port 1 of port detection circuit 2 is connected to the common point of C14 and R12, and a reference level corresponding to the port detection circuit is obtained.
[0039] In step 120, the node port level of the node port to be detected in the bus network is obtained.
[0040] In step 130 , a target output result of the port detection circuit is determined according to the reference level and the node port level, and a node port fault type of the node port to be detected is determined based on the target output result.
[0041] In another embodiment, the node port level of the node port to be detected of the bus type network can be obtained, and the target output result of the port detection circuit can be determined according to the reference level and the node port level, and then the node port fault type can be determined based on the target output result. In another example, for a high-speed serial bus type structure, the node port level is divided into two categories, one of which is a high level of the port signal and the other is a low level of the port signal. In the application process, any type of node port level can be used to determine the target output result of the port detection circuit, and the node port fault type can be determined based on the target output result. In this embodiment, the port detection circuit can be used to efficiently and accurately detect the fault type of the node port without interrupting the operation of the bus type network.
[0042] The node port fault detection method of the bus type network provided by the present invention is to call a port detection circuit to connect with the node port to be detected of the running bus type network, and obtain a reference level corresponding to the port detection circuit; obtain the node port level of the node port to be detected of the bus type network; and determine the target output result of the port detection circuit according to the reference level and the node port level, and determine the node port fault type of the node port to be detected based on the target output result. The port detection circuit can realize efficient and accurate detection of the fault type of the node port without interrupting the operation of the bus type network.
[0043] Figure 4 It is a flow chart of determining the node port fault type based on the target output result provided by the present invention.
[0044] The following will be combined Figure 4 The process of determining the node port fault type based on the target output result provided by the present invention is described.
[0045] In an exemplary embodiment of the present invention, the port detection circuit is obtained by connecting multiple comparators in parallel. The positive port of each comparator is connected to the port of the node to be detected; the negative port of the comparator is respectively connected to the respective reference level; and the output end of the comparator is used to output the target output result of the port detection circuit. Figure 3 The port detection circuit shown is described.
[0046] In one example, a port detection circuit composed of four comparators is used for illustration, wherein the number of comparators can be determined according to the number of fault types of node ports to be distinguished, and the number of comparators is positively correlated with the number of fault types of node ports to be distinguished.
[0047] Combination Figure 3 It can be seen that the negative terminals of the four comparators (corresponding to the negative ports) are connected to the reference levels ref1, ref2, ref3, and ref4 respectively, and the positive terminals of the comparators (corresponding to the positive ports, which are port 1 of the comparator in the diagram) are connected to the port of the node to be detected, that is, the signal input terminal. The output terminals of comparator 1, comparator 2, comparator 3, and comparator 4 (corresponding to port 2, port 3, port 4, and port 5 in the diagram) are used to output the target output result of the port detection circuit. Among them, the target output result of the port detection circuit can be composed of the four-bit potential values output by port 2, port 3, port 4, and port 5 respectively. It can be understood that in Figure 2 In the embodiment, ports 1 to 5 in the port detection circuit 1 or the port detection circuit 2 may correspond to the aforementioned ports 1 to 5 respectively.
[0048] Combination Figure 4It can be seen that determining the node port fault type of the node port to be detected based on the target output result may include steps 410 to 430, and each step will be introduced below.
[0049] In step 410, according to the comparison between the reference level connected to the negative port of each comparator and the node port level, the target output result of the port detection circuit outputted from the output terminal of the comparator is determined.
[0050] In step 420, a first mapping table is maintained in advance, wherein the first mapping table includes a correspondence between output results of different port detection circuits and different node port fault types.
[0051] In step 430 , based on the target output result and the first mapping table, the node port fault type of the to-be-detected node port corresponding to the target output result is determined.
[0052] In one embodiment, the target output result of the port detection circuit outputted from the output end of the comparator can be determined based on the comparison between the reference levels (including ref1, ref2, ref3, ref4) connected to the negative ports of each comparator and the node port levels.
[0053] Furthermore, by maintaining the first mapping table, since the first mapping table includes the correspondence between the output results of different port detection circuits and different node port fault types, the node port fault type corresponding to the target output result can be determined based on the correspondence between the target output result and the first mapping table, thereby quickly and accurately determining the fault type of the port node without interrupting work.
[0054] In another exemplary embodiment of the present invention, the reference level corresponding to the port detection circuit can be determined in the following manner:
[0055] Respectively obtaining a circuit power supply voltage of the bus type network, a current value of a tail current source of a transceiver output circuit of the bus type network, and a matching circuit load resistance corresponding to the bus type network;
[0056] Obtaining a first voltage based on a current value of a tail current source of a transceiver output circuit of a bus-type network and a matching circuit load resistance corresponding to the bus-type network;
[0057] A reference level corresponding to the port detection circuit is determined according to the circuit power supply voltage of the bus network and the first voltage.
[0058] In one embodiment, the circuit power supply voltage of the bus network can be obtained respectively, wherein the circuit power supply voltage can correspond to Figure 2 VDD in; obtain the current value of the tail current source of the transceiver output circuit of the bus network, where the tail current source can correspond to Figure 5 M1 in; and obtaining a matching circuit load resistance corresponding to the bus type network, wherein the matching circuit load resistance R can be Figure 2 R11, R12, R13, and R14 are all equal, that is, R11=R12=R13=R14=R.
[0059] Further, the first voltage can be obtained based on the current value I of the tail current source of the transceiver output circuit of the bus network and the matching circuit load resistance R corresponding to the bus network. In one example, the first voltage V0=R I.
[0060] In another embodiment, the reference level corresponding to the port detection circuit can be determined according to the circuit power supply voltage VDD of the bus network and the first voltage V0. V0 / 16; ref2 = VDD-17 V0 / 48; ref3 = VDD-7 V0 / 24; ref4 = VDD-V0 / 8, that is, from ref1 to ref4, the corresponding values become larger and larger.
[0061] In an exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example for explanation. According to the comparison between the reference level connected to the negative port of each comparator and the node port level, the target output result of the port detection circuit outputted by the output terminal of the comparator is determined, which can be implemented in the following manner:
[0062] When the node port level is less than the maximum reference level among the reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result of the port detection circuit is the first target output result;
[0063] When the node port levels are all greater than the reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is the second target output result;
[0064] When the node port levels are all less than the reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is the third target output result;
[0065] Further, in the first mapping table, the first target output result corresponds to the normal type of the node port; the second target output result corresponds to the open circuit fault type of the node port; and the third target output result corresponds to the short circuit fault type of the node port; wherein, based on the target output result and the first mapping table, determining the node port fault type of the node port to be detected corresponding to the target output result can be implemented in the following manner:
[0066] When the target output result is the first target output result, based on the target output result and the first mapping table, determining that the node port to be detected is a normal type of node port;
[0067] When the target output result is the second target output result, determining that the node port to be detected is a node port open circuit fault type based on the target output result and the first mapping table;
[0068] When the target output result is the third target output result, based on the target output result and the first mapping table, it is determined that the node port to be detected is a node port short circuit fault type.
[0069] In one embodiment, when it is detected that the node port level V is less than the maximum reference level among the reference levels connected to the negative port of the comparator, and is greater than other reference levels connected to the negative port of the comparator, the target output result of the port detection circuit is determined to be the first target output result. For example, for a port detection circuit including four comparators, where the node port level V is less than the maximum reference level among the reference levels connected to the negative port of the comparator, that is, ref4, and is greater than other reference levels connected to the negative port of the comparator, that is, ref3-ref1, the target output result of the port detection circuit can be determined to be the first target output result.
[0070] In another embodiment, when the node port levels V are all greater than the reference level connected to the negative port of the comparator, the target output result of the port detection circuit can be determined to be the second target output result. For example, for a port detection circuit including four comparators, where the node port levels V are all greater than the reference level connected to the negative port of the comparator, that is, ref4-ref1, the target output result of the port detection circuit can be determined to be the second target output result.
[0071] In another embodiment, when the node port levels V are all less than the reference level connected to the negative port of the comparator, the target output result of the port detection circuit can be determined to be the third target output result. For example, for a port detection circuit including four comparators, where the node port levels V are all less than the reference level connected to the negative port of the comparator, that is, ref4-ref1, the target output result of the port detection circuit can be determined to be the third target output result.
[0072] Furthermore, since the first mapping table includes the following corresponding relationships, wherein the first target output result corresponds to the normal type of the node port; the second target output result corresponds to the open circuit fault type of the node port; and the third target output result corresponds to the short circuit fault type of the node port. Then, when the target output result is the first target output result, the node port can be determined to be the normal type of the node port based on the target output result and the first mapping table; when the target output result is the second target output result, the node port can be determined to be the open circuit fault type of the node port based on the target output result and the first mapping table; when the target output result is the third target output result, the node port can be determined to be the short circuit fault type of the node port based on the target output result and the first mapping table.
[0073] Table 1: One of the first mapping tables of node port detection results
[0074]
[0075] Among them, the result of the comparator is obtained by op4 op3 op2 op1 / on4 on3 on2 on1 (where op4, op3, op2, op1 are the results of the comparator corresponding to port p, and on4, on3, on2, on1 are the results of the comparator corresponding to port n). Taking op4, op3, op2, and op1 as examples, they are obtained by comparing ref4-ref1 with the node port level. When the node port level is greater than the reference level, the corresponding value is 1, and when the node port level is less than the reference level, the corresponding value is 0. After multiple rounds of verification and testing, it is found that when the node port level is the high level of the port signal, if the node port level V= VDD-V0 / 4, the corresponding comparator result is 0111 (that is, the first target output result), and the corresponding port state is normal. Among them, the comparator result of 1111 corresponds to the second target output result; the comparator result of 0000 corresponds to the third target output result.
[0076] In another example, for a high-speed bus network, the node port level can be a port signal high level or a port signal low level. In the application process, the port signal high level or the port signal low level can be compared with the reference level connected to the negative port of the comparator to obtain the target output result of the port detection circuit.
[0077] According to the above analysis, when p and n are both 0000, it is a mutual short circuit situation, but it is impossible to determine where the mutual short circuit is. That is, for a differential short circuit, the specific situation of the mutual short circuit can be further distinguished and the fault can be accurately located.
[0078] Figure 6This is the second flow chart of the node port fault detection method of the bus type network provided by the present invention.
[0079] The following will be combined Figure 6 The process of further distinguishing the specific situation of the mutual short circuit and accurately locating the fault is explained.
[0080] In an exemplary embodiment of the present invention, Figure 6 It can be seen that when the target output result is the third target output result, based on the target output result and the first mapping table, after determining that the node port to be detected is a node port short circuit fault type, the node port fault detection method of the bus type network can also include steps 610 to 630, and each step will be introduced below.
[0081] In step 610, the bus network is controlled to be converted from a differential output mode to a single-ended output mode, and a port detection circuit is called to connect to the port of the node to be detected of the target end operating in the single-ended output mode, and a reference level corresponding to the port detection circuit is obtained.
[0082] Figure 5 This is a schematic diagram of the output current structure of the serial interface transceiver of the high-speed serial bus structure provided by the present invention. When it is determined that the two ports are short-circuited, the chip must be communicating abnormally. At this time, the output circuit of the chip selects a single tube to be effective, and can select the p-way (25-port) output to be effective. Figure 5 This is the output circuit of the serial interface transceiver. M1 is the tail current tube, vb is the bias voltage, which ensures that M1 works in the saturation region. M2 and M3 are differential input tubes of the same size. Vin and vip are input signals. M4 and M5 are output tubes of the same size. vc1 and vc2 are control voltages. vc1 ensures that M4 works in the saturation region. During normal operation, switch T2 is turned on and switch T1 is turned off. At this time, vc2=vc1, which ensures that M4 and M5 are turned on. All of the above are NMOS tubes.
[0083] When it is determined that the two ports are short-circuited, switch T1 can be turned on and switch T2 can be turned off. At this time, vc2 = GND and M5 is turned off. Figure 2 It can be seen that the current of M1 only enters and exits from port 25.
[0084] 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 M1 only enters and exits from port 25. In this scenario, the port detection circuit can be called to connect to the node port to be detected of the target end (port 25) operating in a single-ended output mode, and obtain the reference levels ref1-ref4 corresponding to the port detection circuit.
[0085] In step 620, the single-end node port level of the node to be detected at the target end is obtained.
[0086] In step 630 , a target output result of the port detection circuit is determined according to the reference level and the single-ended node port level, and a node port short circuit fault type of the node port to be detected is determined based on the target output result.
[0087] In another embodiment, the single-ended node port level V of the node to be detected at the target end in the single-ended output mode can be obtained, and the target output result of the port detection circuit can be determined based on the reference level and the single-ended node port level, and then the node port short circuit fault type of the node port can be determined based on the target output result.
[0088] In another exemplary embodiment of the present invention, the above-mentioned embodiment is continued to be used as an example for explanation, and the fault type of the node port short circuit of the node port to be detected is determined based on the target output result, which can be implemented in the following manner:
[0089] When the single-ended node port level is less than a maximum reference level among reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result is a fourth target output result;
[0090] When the single-ended node port level is less than the maximum reference level and the second maximum reference level among the reference levels connected to the negative port of the comparator, and is greater than the minimum reference level and the second minimum reference level among the reference levels connected to the negative port of the comparator, determining that the target output result is the fifth target output result;
[0091] When the single-ended node port level is greater than the minimum reference level among the reference levels connected to the negative port of the comparator and less than other reference levels connected to the negative port of the comparator, determining that the target output result is a sixth target output result;
[0092] When the single-ended node port level is less than the reference level connected to the negative port of the comparator, determining the target output result to be the seventh target output result;
[0093] Further, in the first mapping table, the fourth target output result corresponds to the node port short and suspended fault type; the fifth target output result corresponds to the node port short and to one end of the termination fault type; the sixth target output result corresponds to the node port short and to both ends of the termination fault type; the seventh target output result corresponds to the node port short to ground fault type; the node port fault detection method of the bus network also includes:
[0094] When the target output result is the fourth target output result, determining that the node port to be detected is a node port short and hanging fault type;
[0095] When the target output result is the fifth target output result, determining that the node port to be detected is a node port short fault type to a termination end;
[0096] When the target output result is the sixth target output result, determining that the node port to be detected is a node port short fault type to both ends of the termination;
[0097] When the target output result is the seventh target output result, it is determined that the node port to be detected is a node port short-to-ground fault type.
[0098] In one embodiment, when it is detected that the single-ended node port level V is less than the maximum reference level among the reference levels connected to the negative port of the comparator, and is greater than other reference levels connected to the negative port of the comparator, the target output result of the port detection circuit can be determined to be the fourth target output result. For example, for a port detection circuit including four comparators, where the single-ended node port level V is less than the maximum reference level among the reference levels connected to the negative port of the comparator, that is, ref4, and is greater than other reference levels connected to the negative port of the comparator, that is, ref3-ref1, the target output result of the port detection circuit can be determined to be the fourth target output result.
[0099] In another embodiment, when the single-ended node port level V is less than the maximum reference level and the second maximum reference level among the reference levels connected to the negative port of the comparator, and is greater than the minimum reference level and the second minimum reference level among the reference levels connected to the negative port of the comparator, the target output result of the port detection circuit can be determined to be the fifth target output result. For example, for a port detection circuit including four comparators, where the single-ended node port level V is less than ref4 and ref3, and greater than ref2 and ref1, the target output result of the port detection circuit can be determined to be the fifth target output result.
[0100] In another embodiment, when the single-ended node port level V is greater than the minimum reference level among the reference levels connected to the negative port of the comparator and less than other reference levels connected to the negative port of the comparator, the target output result of the port detection circuit can be determined to be the sixth target output result. For example, for a port detection circuit including four comparators, where the single-ended node port level V is less than ref4 to ref2 and greater than ref1, the target output result of the port detection circuit can be determined to be the sixth target output result.
[0101] In another embodiment, when the single-ended node port levels V are all less than the reference level connected to the negative port of the comparator, the target output result of the port detection circuit can be determined to be the seventh target output result. For example, for a port detection circuit including four comparators, where the single-ended node port levels V are all less than ref4 to ref1, the target output result of the port detection circuit can be determined to be the seventh target output result.
[0102] Further, since the first mapping table includes the following corresponding relationships, wherein the fourth target output result corresponds to the node port short to each other and suspended fault type; the fifth target output result corresponds to the node port short to each other and to one end of the termination fault type; the sixth target output result corresponds to the node port short to each other and to both ends of the termination fault type; and the seventh target output result corresponds to the node port short to ground fault type; then, when the target output result is the fourth target output result, it can be determined based on the target output result and the first mapping table that the node port is a node port short to each other and suspended fault type; when the target output result is the fifth target output result, it can be determined based on the target output result and the first mapping table that the node port is a node port short to each other and to one end of the termination fault type; when the target output result is the sixth target output result, it can be determined based on the target output result and the first mapping table that the node port is a node port short to each other and to both ends of the termination fault type; when the target output result is the seventh target output result, it can be determined based on the target output result and the first mapping table that the node port is a node port short to ground fault type.
[0103] Table 2 The first mapping table 2 of the node port detection results
[0104]
[0105] Among them, the result of the comparator is obtained by op4 op3 op2 op1 / on4 on3 on2 on1, among which, taking op4, op3, op2, and op1 as examples, they are obtained by comparing ref4-ref1 with the node port level, among which, when the single-ended node port level is greater than the reference level, the corresponding value is 1, and when the single-ended node port level is less than the reference level, the corresponding value is 0. After multiple rounds of verification and testing, it is found that when the single-ended node port level is the port signal high level, if the single-ended node port level V= VDD-V0 / 4, the corresponding comparator result is 0111 (that is, the fourth target output result), and the corresponding port state is shorted and suspended. Among them, in the scenario where the control bus network is converted from differential output mode to single-ended output mode, the comparator result of 0011 corresponds to the fifth target output result; the comparator result of 0001 corresponds to the sixth target output result; the comparator result of 0000 corresponds to the seventh target output result.
[0106] According to the above description, the node port fault detection method of the bus type network provided by the present invention is connected to the node port to be detected of the running bus type network by calling the port detection circuit, and obtaining the reference level corresponding to the port detection circuit; obtaining the node port level of the node port to be detected of the bus type network; and determining the target output result of the port detection circuit according to the reference level and the node port level, and determining the node port fault type based on the target output result. The port detection circuit can realize the efficient and accurate detection of the node port fault type without interrupting the operation of the bus type network.
[0107] Based on the same concept, the present invention also provides a node port fault detection device for a bus type network.
[0108] The node port fault detection device for a bus type network provided by the present invention is described below. The node port fault detection device for a bus type network described below and the node port fault detection method for a bus type network described above can be referenced to each other.
[0109] Figure 7 It is a structural schematic diagram of a node port fault detection device for a bus type network provided by the present invention.
[0110] In an exemplary embodiment of the present invention, the working type of the transceiver of the bus network is a time division multiplexing type, combined with Figure 7 It can be seen that the node port fault detection device of the bus type network may include a calling module 710, an acquisition module 720, and a determination module 730, and each module will be introduced below.
[0111] The calling module 710 may be configured to call a port detection circuit to connect to a node port to be detected of the bus network in operation, and obtain a reference level corresponding to the port detection circuit;
[0112] The acquisition module 720 may be configured to acquire the node port level of the node port to be detected of the bus network;
[0113] The determination module 730 may be configured to determine a target output result of the port detection circuit according to the reference level and the node port level, and determine a node port fault type of the node port to be detected based on the target output result.
[0114] In an exemplary embodiment of the present invention, the port detection circuit is obtained by connecting a plurality of comparators in parallel, wherein the positive port of each comparator is connected to the port of the node to be detected; the negative ports of the comparators are respectively connected to respective reference levels; and the output end of the comparator is used to output the target output result of the port detection circuit;
[0115] The determination module 730 may determine the target output result of the port detection circuit according to the reference level and the node port level in the following manner:
[0116] Determining a target output result of the port detection circuit outputted from the output end of the comparator according to a comparison between a reference level connected to the negative port of each comparator and the node port level;
[0117] The determination module 730 may also be configured to:
[0118] Maintaining a first mapping table in advance, wherein the first mapping table includes a correspondence between output results of different port detection circuits and different node port fault types;
[0119] The determination module 730 may determine the node port fault type of the node port to be detected based on the target output result in the following manner:
[0120] Based on the target output result and the first mapping table, a node port fault type of the to-be-detected node port corresponding to the target output result is determined.
[0121] In an exemplary embodiment of the present invention, the determination module 730 may determine the target output result of the port detection circuit outputted by the output terminal of the comparator according to the comparison between the reference level connected to the negative port of each comparator and the node port level in the following manner:
[0122] When the node port level is less than a maximum reference level among reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a first target output result;
[0123] In a case where the node port levels are all greater than a reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a second target output result;
[0124] When the node port levels are all lower than the reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a third target output result;
[0125] In the first mapping table, the first target output result corresponds to the normal type of the node port; the second target output result corresponds to the open circuit fault type of the node port; and the third target output result corresponds to the short circuit fault type of the node port; wherein the determination module 730 may determine the node port fault type of the node port to be detected corresponding to the target output result based on the target output result and the first mapping table in the following manner:
[0126] In a case where the target output result is the first target output result, determining that the node port to be detected is a normal type of node port based on the target output result and the first mapping table;
[0127] When the target output result is the second target output result, determining that the node port to be detected is a node port open circuit fault type based on the target output result and the first mapping table;
[0128] When the target output result is the third target output result, based on the target output result and the first mapping table, it is determined that the node port to be detected is a node port short circuit fault type.
[0129] In an exemplary embodiment of the present invention, the determining module 730 may also be configured to:
[0130] Controlling the bus network to be converted from a differential output mode to a single-ended output mode, calling a port detection circuit to connect to a port of a node to be detected at a target end operating in a single-ended output mode, and obtaining a reference level corresponding to the port detection circuit;
[0131] Obtaining a single-ended node port level of the node to be detected at the target end;
[0132] According to the reference level and the single-ended node port level, a target output result of the port detection circuit is determined, and based on the target output result, a fault type of a node port short circuit of the node port to be detected is determined.
[0133] In an exemplary embodiment of the present invention, the determination module 730 uses the following method to determine the fault type of the node port short circuit of the node port to be detected based on the target output result:
[0134] When the single-ended node port level is less than a maximum reference level among reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result is a fourth target output result;
[0135] In the case where the single-ended node port level is less than a maximum reference level and a second maximum reference level among the reference levels connected to the negative port of the comparator, and is greater than a minimum reference level and a second minimum reference level among the reference levels connected to the negative port of the comparator, determining that the target output result is a fifth target output result;
[0136] When the single-ended node port level is greater than a minimum reference level among reference levels connected to the negative port of the comparator and less than other reference levels connected to the negative port of the comparator, determining that the target output result is a sixth target output result;
[0137] In a case where the single-ended node port levels are all less than a reference level connected to the negative port of the comparator, determining that the target output result is a seventh target output result;
[0138] In the first mapping table, the fourth target output result corresponds to the node port short and suspended fault type; the fifth target output result corresponds to the node port short and to one end of the termination fault type; the sixth target output result corresponds to the node port short and to both ends of the termination fault type; the seventh target output result corresponds to the node port short to ground fault type; the determination module 730 can also be configured to:
[0139] When the target output result is the fourth target output result, determining that the node port to be detected is a node port short and hanging fault type;
[0140] When the target output result is the fifth target output result, determining that the node port to be detected is a node port short fault type to a termination end;
[0141] When the target output result is the sixth target output result, determining that the node port to be detected is a node port short fault type to both ends of the termination;
[0142] When the target output result is the seventh target output result, it is determined that the node port to be detected is a node port short-to-ground fault type.
[0143] In an exemplary embodiment of the present invention, the calling module 710 may determine the reference level corresponding to the port detection circuit in the following manner:
[0144] Respectively obtaining a circuit power supply voltage of the bus network, a current value of a tail current source of a transceiver output circuit of the bus network, and a matching circuit load resistance corresponding to the bus network;
[0145] Obtaining a first voltage based on a current value of a tail current source of a transceiver output circuit of the bus network and a matching circuit load resistance corresponding to the bus network;
[0146] A reference level corresponding to the port detection circuit is determined according to a circuit power supply voltage of the bus network and the first voltage.
[0147] Figure 8 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 810, a communication interface 820, a memory 830 and a communication bus 840, wherein the processor 810, the communication interface 820 and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute a node port fault detection method for a bus type network, wherein the working type of the transceiver of the bus type network is a time division multiplexing type, and the method includes: calling a port detection circuit to connect with a node port to be detected of the running bus type network, and obtaining a reference level corresponding to the port detection circuit; obtaining a node port level of a node port to be detected of the bus type network; determining a target output result of the port detection circuit according to the reference level and the node port level, and determining a node port fault type of the node port to be detected based on the target output result.
[0148] In addition, the logic instructions in the above-mentioned memory 830 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 this understanding, the technical solution of the present invention is essentially 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 to enable 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 and other media that can store program codes.
[0149] On the other hand, the present invention also provides a computer program product, which includes a computer program, and 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 node port fault detection method of the bus-type network provided by the above-mentioned methods. The working type of the transceiver of the bus-type network is a time division multiplexing type. The method includes: calling a port detection circuit to connect with the node port to be detected of the bus-type network in operation, and obtaining a reference level corresponding to the port detection circuit; obtaining the node port level of the node port to be detected of the bus-type network; determining the target output result of the port detection circuit according to the reference level and the node port level, and determining the node port fault type of the node port to be detected based on the target output result.
[0150] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to execute the node port fault detection method of the bus-type network provided by the above-mentioned methods. The working type of the transceiver of the bus-type network is a time division multiplexing type. The method includes: calling a port detection circuit to connect with the node port to be detected of the bus-type network in operation, and obtaining a reference level corresponding to the port detection circuit; obtaining the node port level of the node port to be detected of the bus-type network; determining the target output result of the port detection circuit according to the reference level and the node port level, and determining the node port fault type of the node port to be detected based on the target output result.
[0151] 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.
[0152] 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.
[0153] It is further understood that, although the operations are described in a specific order in the accompanying drawings in the embodiments of the present invention, it should not be understood as requiring the operations to be performed in the specific order or serial order shown, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0154] 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 method for detecting node port failure in a bus network, characterized in that: The method comprises: Calling a port detection circuit to connect to a port of a node to be detected in a running bus network, and obtaining a reference level corresponding to the port detection circuit; Acquiring a node port level of a node port to be detected of the bus network; According to the reference level and the node port level, a target output result of the port detection circuit is determined, and based on the target output result, a node port fault type of the node port to be detected is determined, wherein the port detection circuit is obtained by connecting a plurality of comparators in parallel, wherein the positive port of each comparator is connected to the node port to be detected; the negative ports of the comparators are respectively connected to their respective reference levels; and the output end of the comparator is used to output the target output result of the port detection circuit; Determining a target output result of the port detection circuit according to the reference level and the node port level specifically includes: Determining a target output result of the port detection circuit outputted from the output end of the comparator according to a comparison between a reference level connected to the negative port of each comparator and the node port level; Before determining the node port fault type of the node port to be detected based on the target output result, the method further includes: Maintaining a first mapping table in advance, wherein the first mapping table includes correspondences between output results of different port detection circuits and different node port fault types; The determining the node port fault type of the node port to be detected based on the target output result specifically includes: Determine, based on the target output result and the first mapping table, a node port fault type of the node port to be detected corresponding to the target output result; The step of determining the target output result of the port detection circuit outputted from the output end of the comparator according to the comparison between the reference level connected to the negative port of each comparator and the node port level specifically includes: When the node port level is less than a maximum reference level among reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a first target output result; In a case where the node port levels are all greater than a reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a second target output result; When the node port levels are all lower than the reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a third target output result; In the first mapping table, the first target output result corresponds to the normal type of the node port; the second target output result corresponds to the open circuit fault type of the node port; and the third target output result corresponds to the short circuit fault type of the node port; and the determining, based on the target output result and the first mapping table, the node port fault type of the node port to be detected corresponding to the target output result specifically includes: In a case where the target output result is the first target output result, determining that the node port to be detected is a normal type of node port based on the target output result and the first mapping table; When the target output result is the second target output result, determining that the node port to be detected is a node port open circuit fault type based on the target output result and the first mapping table; When the target output result is the third target output result, based on the target output result and the first mapping table, it is determined that the node port to be detected is a node port short circuit fault type.
2. The node port fault detection method of a bus type network according to claim 1, characterized in that: In a case where the target output result is the third target output result, after determining that the node port to be detected is a node port short circuit fault type based on the target output result and the first mapping table, the method further includes: Controlling the bus network to be converted from a differential output mode to a single-ended output mode, calling a port detection circuit to connect to a port of a node to be detected at a target end operating in a single-ended output mode, and obtaining a reference level corresponding to the port detection circuit; Obtaining a single-ended node port level of the node to be detected at the target end; According to the reference level and the single-ended node port level, a target output result of the port detection circuit is determined, and based on the target output result, a fault type of a node port short circuit of the node port to be detected is determined.
3. The node port fault detection method of a bus type network according to claim 2, characterized in that: The determining the fault type of the node port short circuit of the node port to be detected based on the target output result specifically includes: When the single-ended node port level is less than a maximum reference level among reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result is a fourth target output result; In the case where the single-ended node port level is less than a maximum reference level and a second maximum reference level among the reference levels connected to the negative port of the comparator, and is greater than a minimum reference level and a second minimum reference level among the reference levels connected to the negative port of the comparator, determining that the target output result is a fifth target output result; When the single-ended node port level is greater than a minimum reference level among reference levels connected to the negative port of the comparator and less than other reference levels connected to the negative port of the comparator, determining that the target output result is a sixth target output result; In a case where the single-ended node port levels are all less than a reference level connected to the negative port of the comparator, determining that the target output result is a seventh target output result; In the first mapping table, the fourth target output result corresponds to the node port short and suspended fault type; the fifth target output result corresponds to the node port short and to one end of the termination fault type; the sixth target output result corresponds to the node port short and to both ends of the termination fault type; the seventh target output result corresponds to the node port short to ground fault type; the method further includes: When the target output result is the fourth target output result, determining that the node port to be detected is a node port short and hanging fault type; When the target output result is the fifth target output result, determining that the node port to be detected is a node port short fault type to a termination end; When the target output result is the sixth target output result, determining that the node port to be detected is a node port short fault type to both ends of the termination; When the target output result is the seventh target output result, it is determined that the node port to be detected is a node port short-to-ground fault type.
4. The method for detecting node port failure in a bus network according to any one of claims 1 to 3, characterized in that: The reference level corresponding to the port detection circuit is determined in the following manner: Respectively obtaining a circuit power supply voltage of the bus network, a current value of a tail current source of a transceiver output circuit of the bus network, and a matching circuit load resistance corresponding to the bus network; Obtaining a first voltage based on a current value of a tail current source of a transceiver output circuit of the bus network and a matching circuit load resistance corresponding to the bus network; A reference level corresponding to the port detection circuit is determined according to a circuit power supply voltage of the bus network and the first voltage.
5. A node port fault detection device for a bus type network, characterized in that: The device comprises: A calling module, used for calling a port detection circuit to connect with a port of a node to be detected in a running bus network, and obtaining a reference level corresponding to the port detection circuit; An acquisition module, used for acquiring a node port level of a node port to be detected in the bus network; A determination module, used to determine the target output result of the port detection circuit according to the reference level and the node port level, and determine the node port fault type of the node port to be detected based on the target output result, wherein the port detection circuit is obtained by connecting a plurality of comparators in parallel, wherein the positive port of each comparator is connected to the node port to be detected; the negative ports of the comparators are respectively connected to their respective reference levels; and the output end of the comparator is used to output the target output result of the port detection circuit; The determination module determines the target output result of the port detection circuit according to the reference level and the node port level in the following manner: Determining a target output result of the port detection circuit outputted from the output end of the comparator according to a comparison between a reference level connected to the negative port of each comparator and the node port level; The determination module is further configured to: Maintaining a first mapping table in advance, wherein the first mapping table includes correspondences between output results of different port detection circuits and different node port fault types; The determination module determines the node port fault type of the node port to be detected based on the target output result in the following manner: Determine, based on the target output result and the first mapping table, a node port fault type of the node port to be detected corresponding to the target output result; The determination module adopts the following method to achieve the target output result of the port detection circuit outputted by the output end of the comparator according to the comparison between the reference level connected to the negative port of each comparator and the node port level: When the node port level is less than a maximum reference level among reference levels connected to the negative port of the comparator and greater than other reference levels connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a first target output result; In a case where the node port levels are all greater than a reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a second target output result; When the node port levels are all lower than the reference level connected to the negative port of the comparator, determining that the target output result of the port detection circuit is a third target output result; In the first mapping table, the first target output result corresponds to the normal type of the node port; the second target output result corresponds to the open circuit fault type of the node port; and the third target output result corresponds to the short circuit fault type of the node port; wherein the determination module determines the node port fault type of the node port to be detected corresponding to the target output result based on the target output result and the first mapping table in the following manner: In a case where the target output result is the first target output result, determining that the node port to be detected is a normal type of node port based on the target output result and the first mapping table; When the target output result is the second target output result, determining that the node port to be detected is a node port open circuit fault type based on the target output result and the first mapping table; When the target output result is the third target output result, based on the target output result and the first mapping table, it is determined that the node port to be detected is a node port short circuit fault type.
6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the node port failure detection method for a bus type network as described in any one of claims 1 to 4 is implemented.
7. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for detecting node port failure in a bus type network according to any one of claims 1 to 4 is implemented.
