Cable testing methods, apparatus, computer equipment, and storage media

By working together with data exchange equipment and diagnostic terminals, cable path diagrams are obtained and test data is matched, which solves the problem of low efficiency in cable fault detection in complex networks, enables rapid location of abnormal cable locations, improves fault diagnosis efficiency and reduces maintenance costs.

CN116708232BActive Publication Date: 2026-05-26CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA ELECTRONICS RELIABILITY AND ENVIRONMENTAL TESTING INSTITUTE ((THE FIFTH INSTITUTE OF ELECTRONICS MINISTRY OF INDUSTRY AND INFORMATION TECHNOLOGY) (CHINA SAIBAO LABORATORY)
Filing Date
2023-06-07
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing technologies are inefficient in detecting network cable faults, especially for cables in complex networks, where each cable needs to be tested individually, resulting in low testing efficiency.

Method used

By using data exchange devices and diagnostic terminals in the network device group, the cable path diagram is obtained, the diagnostic terminal is matched and test data is sent, the abnormal cable location is determined based on the test results, the diagnostic terminal is rematched and further tests are conducted to shorten the abnormal cable length, and the specific location is determined using time domain reflection testing.

Benefits of technology

It improves troubleshooting efficiency, enabling rapid location of cable fault nodes in complex interconnected networks and reducing maintenance costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116708232B_ABST
    Figure CN116708232B_ABST
Patent Text Reader

Abstract

This application relates to a cable testing method, apparatus, computer equipment, storage medium, and computer program product. The method includes: acquiring a cable path diagram of a data exchange device and a diagnostic terminal; matching at least two diagnostic terminals through the data exchange device to obtain a first matching result; controlling one diagnostic terminal in the first matching result to send first test data to the other diagnostic terminal to obtain a first test result; if the first test result indicates a cable abnormality, then re-selecting a diagnostic terminal from other diagnostic terminals besides the first matching result for matching to obtain a second matching result; controlling one diagnostic terminal in the second matching result to send second test data to the other diagnostic terminal to obtain a second test result; and determining the abnormal location information of the cable based on the first and second test results. This method, by obtaining the abnormal location information of the cable based on the first and second test results, improves the efficiency of fault diagnosis.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication testing technology, and in particular to a cable testing method, apparatus, computer equipment, storage medium, and computer program product. Background Technology

[0002] Network cables are often damaged or have loose connections due to improper maintenance, installation, or operation, which can cause network communication interruptions or instability, affecting the normal operation of the business. If not handled promptly, the fault can escalate, increasing the company's maintenance costs.

[0003] In existing methods, the bridge method is used to detect and locate resistive faults in cables. The principle of the bridge method is to build a bridge circuit, with the cable to be tested connected to one end of each arm of the bridge and a normal conductor connected to the other end. By adjusting the variable resistor in the bridge to make the voltage between the two arms equal, the ammeter will point to the zero mark. The resistance value of the cable under test can then be calculated using the bridge formula, thereby locating the fault.

[0004] This method requires testing each cable individually for complex network cables, resulting in low testing efficiency. Summary of the Invention

[0005] Therefore, it is necessary to provide a cable testing method, apparatus, computer equipment, computer-readable storage medium, and computer program product that can improve the efficiency of cable testing, addressing the aforementioned technical problems.

[0006] Firstly, this application provides a method for testing cables. The method includes:

[0007] The cable testing method utilizes a network device group, which includes a data switching device and a diagnostic terminal. The data switching device and the diagnostic terminal are communicatively connected. The method includes:

[0008] Obtain the cable path diagram of the data exchange device and the diagnostic terminal;

[0009] The data exchange device is used to match at least two diagnostic terminals to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cable between the two diagnostic terminals.

[0010] Control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result;

[0011] If the first test result indicates a cable abnormality, then a diagnostic terminal is selected from other diagnostic terminals besides the first matching result, and matched with a diagnostic terminal from the first matching result to obtain a second matching result;

[0012] The system controls one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result.

[0013] Based on the first test result and the second test result, the abnormal location information of the cable is determined.

[0014] Secondly, this application also provides a cable testing apparatus. The apparatus includes:

[0015] The acquisition module is used to acquire the cable path diagram of the data exchange device and the diagnostic terminal;

[0016] The first matching module is used to match at least two diagnostic terminals through the data exchange device to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cables of the two diagnostic terminals.

[0017] The first test module is used to control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result;

[0018] The second matching module is used to select a diagnostic terminal from other diagnostic terminals besides the first matching result and match it with a diagnostic terminal from the first matching result if the first test result indicates that the cable is abnormal, so as to obtain a second matching result.

[0019] The second testing module is used to control one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result;

[0020] The prediction module is used to determine the abnormal location information of the cable based on the first test result and the second test result.

[0021] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps:

[0022] Obtain the cable path diagram of the data exchange device and the diagnostic terminal;

[0023] The data exchange device is used to match at least two diagnostic terminals to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cable between the two diagnostic terminals.

[0024] Control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result;

[0025] If the first test result indicates a cable abnormality, then a diagnostic terminal is selected from other diagnostic terminals besides the first matching result, and matched with a diagnostic terminal from the first matching result to obtain a second matching result;

[0026] The system controls one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result.

[0027] Based on the first test result and the second test result, the abnormal location information of the cable is determined.

[0028] Fourthly, this application also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program thereon, which, when executed by a processor, performs the following steps:

[0029] Obtain the cable path diagram of the data exchange device and the diagnostic terminal;

[0030] The data exchange device is used to match at least two diagnostic terminals to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cable between the two diagnostic terminals.

[0031] Control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result;

[0032] If the first test result indicates a cable abnormality, then a diagnostic terminal is selected from other diagnostic terminals besides the first matching result, and matched with a diagnostic terminal from the first matching result to obtain a second matching result;

[0033] The system controls one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result.

[0034] Based on the first test result and the second test result, the abnormal location information of the cable is determined.

[0035] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, performs the following steps:

[0036] Obtain the cable path diagram of the data exchange device and the diagnostic terminal;

[0037] The data exchange device is used to match at least two diagnostic terminals to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cable between the two diagnostic terminals.

[0038] Control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result;

[0039] If the first test result indicates a cable abnormality, then a diagnostic terminal is selected from other diagnostic terminals besides the first matching result, and matched with a diagnostic terminal from the first matching result to obtain a second matching result;

[0040] The system controls one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result.

[0041] Based on the first test result and the second test result, the abnormal location information of the cable is determined.

[0042] The aforementioned testing method, apparatus, computer equipment, storage medium, and computer program products for network device group cables obtain cable path diagrams from data exchange equipment and diagnostic terminals, directly yielding a connection diagram of the cable path for the device group. By matching two diagnostic terminals through the data exchange equipment to obtain a first matching result, one diagnostic terminal in the first matching result is controlled to send first test data to the other diagnostic terminal, obtaining a first test result. If a cable anomaly is found in the first test result, the diagnostic terminals are re-matched to obtain a second matching result. Then, one diagnostic terminal in the second matching result is controlled to send second test data to the other diagnostic terminal, obtaining a second test result. Based on the two test results, the length of the cable anomaly can be shortened, further locating the position of the cable anomaly. This method, based on the first and second test results, obtains cable anomaly location information, quickly identifying cable fault nodes on the path in a complex interconnected network, greatly improving the efficiency of fault diagnosis. Attached Figure Description

[0043] Figure 1 This is a diagram illustrating the application environment of a cable testing method in one embodiment.

[0044] Figure 2 This is a flowchart illustrating a cable testing method in one embodiment;

[0045] Figure 3 This is a first cable path diagram between the data exchange device and the diagnostic terminal in one embodiment;

[0046] Figure 4 This is a second cable path diagram between the data exchange device and the diagnostic terminal in one embodiment;

[0047] Figure 5 This is a schematic diagram of the first matching result in one embodiment;

[0048] Figure 6This is a flowchart illustrating a method for determining the cable fault level in one embodiment;

[0049] Figure 7 This is a schematic diagram of the network device group in one embodiment;

[0050] Figure 8 This is a schematic diagram of the fault injection device in one embodiment;

[0051] Figure 9 This is a flowchart illustrating a cable fault diagnosis method in one embodiment;

[0052] Figure 10 This is a schematic diagram of the service architecture of the main control unit in one embodiment;

[0053] Figure 11 This is a schematic diagram of the structure of a diagnostic terminal in one embodiment;

[0054] Figure 12 This is a structural block diagram of a cable testing device in one embodiment;

[0055] Figure 13 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0056] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0057] The cable testing method provided in this application embodiment can be applied to, for example, Figure 1In the application environment shown, terminal 102 communicates with data exchange device 104 and diagnostic terminal 106 via a network. Diagnostic terminals 106 can be directly connected to each other or indirectly connected through data exchange device 104. The main control device 102 acquires the cable path diagram of the data exchange device 104 and the diagnostic terminal 106; the main control device 102 matches at least two diagnostic terminals 106 through the data exchange device 104 to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals 106 and the connecting cable of the two diagnostic terminals 106; the main control device 102 controls one diagnostic terminal 106 in the first matching result to send first test data to the other diagnostic terminal 106 to obtain a first test result; if the first test result indicates a cable abnormality, the main control device 102 reselects a diagnostic terminal 106 from other diagnostic terminals 106 besides the first matching result and matches it with the diagnostic terminal 106 in the first matching result to obtain a second matching result; the main control device 102 controls one diagnostic terminal 106 in the second matching result to send second test data to the other diagnostic terminal 106 to obtain a second test result; the main control device 102 determines the abnormal location information of the cable based on the first test result and the second test result.

[0058] The main control device 102 can be, but is not limited to, various personal computers, laptops, smartphones, and tablets.

[0059] The data switching device 104 may be, but is not limited to, a switch with at least two network nodes, or other devices with data switching capabilities.

[0060] The diagnostic terminal 106 may be, but is not limited to, a device capable of sending and receiving test data.

[0061] In one embodiment, such as Figure 2 As shown, a cable testing method is provided, which is applied to... Figure 1 Taking the main control device in the example, the explanation includes:

[0062] S202, Obtain the cable path diagram of the data exchange equipment and diagnostic terminal.

[0063] The data switching device can be a switch with at least two network nodes. The data switching device is connected to at least one diagnostic terminal. The network device group generally includes at least two data switching devices.

[0064] The diagnostic terminal can be the processing terminal of each device in the network device group. Specifically, the devices in the network device group are connected by cables, and the diagnostic terminal and the data exchange equipment together constitute the cable path of the network device group.

[0065] Specifically, such as Figure 3 The diagram shows a first type of cable path between the data exchange devices and diagnostic terminals. The data exchange devices are interconnected, and each data exchange device has at least two diagnostic terminals connected to it. It should be noted that a diagnostic terminal can be directly connected to other diagnostic terminals, or it can be connected to other diagnostic terminals through data exchange devices. Connecting to other diagnostic terminals through data exchange devices includes: connecting to other diagnostic terminals through one data exchange device (e.g., diagnostic terminal 1 can be directly connected to diagnostic terminal 2), or connecting to other diagnostic terminals through at least two data exchange devices (e.g., diagnostic terminal 1 is connected to diagnostic terminal 2 through data exchange device 1, and diagnostic terminal 1 is connected to diagnostic terminal 11 through data exchange devices 1 and 3).

[0066] The cable path diagram can be converted into an undirected cable path graph to provide a basis for matching between various diagnostic terminals and optimizing matching paths.

[0067] Specifically, taking a cable path that includes m diagnostic terminals and n data exchange devices as an example, the connection relationship between the data exchange devices and the diagnostic terminals is described as the undirected boundary of the cable path graph:

[0068]

[0069] i and j can represent node information of diagnostic terminals and data exchange equipment in the cable path diagram.

[0070] The node information can be represented as a node set V. Specifically, the undirected graph is composed of the node set V and the undirected edge set E. The connectivity relationships of an undirected graph G can be represented using an adjacency matrix A. The adjacency matrix A is expressed as follows:

[0071]

[0072] Where there is a direct connection between node i and node j, that is, at the physical level, there is a cable connection between the data exchange device and the diagnostic terminal, a ij When the value is 1, and there is no direct communication link, a ij The value is 0. It should be noted that when i equals j, for the same node, a... ij The value is 0. Nodes i and j do not necessarily represent specific diagnostic terminals and data exchange devices, but only the connection relationship between nodes. Using an undirected graph, the direction of test data and received data between the diagnostic terminal and the data exchange device can be ignored, so that subsequent processes can better optimize the path.

[0073] Among them, such as Figure 4The diagram shows a second cable path between the data exchange equipment and the diagnostic terminal. White hollow circles represent the diagnostic terminal, black solid circles represent the data exchange equipment, and line segments represent cables. This cable path diagram can be used according to... Figure 3 It is obtained by merging nodes.

[0074] S204, at least two diagnostic terminals are matched through a data exchange device to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cables between the two diagnostic terminals.

[0075] In this context, "matching" means associating diagnostic terminals pairwise in the path diagram. This pairwise association can be achieved through data exchange devices, such as... Figure 5 The diagram showing the first matching result illustrates that at least two diagnostic terminals are matched through a data exchange device. For example, diagnostic terminal 1 and diagnostic terminal 2 are matched, and diagnostic terminal 3 and diagnostic terminal 4 are matched to obtain the first matching result.

[0076] In the first matching result, the connecting cable between the two diagnostic terminals can be a path in the cable path diagram. Specifically, the first matching result in the cable path diagram represents two matched diagnostic terminals, and the cable / path between the two matched diagnostic terminals.

[0077] S206, control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result.

[0078] The diagnostic terminal is capable of sending, receiving, and processing test data. The test data should be as large as possible, and its content needs to change continuously; a format like 01010101… is suitable. The test terminal can pre-obtain the total size of all test data from the information provided by the main control unit, then compare the received data with normal test data, identify abnormal data, and compare the abnormal data with all test data to obtain the initial test result.

[0079] The first test result includes normal test results and abnormal test results.

[0080] A normal test result means that the cable between the two test terminals can communicate normally. In this case, the cable / path between the two test terminals is marked in green (green indicates that the cable on the path is normal). An abnormal test result means that the cable between the two test terminals cannot communicate normally due to cable damage or other abnormalities. In this case, the cable / path between the two test terminals is marked in red (red indicates that there is an abnormality at one or more points on the cable on the path).

[0081] Specifically, cable abnormalities may include: insulation layer cracks, wire core conductivity not meeting standards, poor cable contact, etc.

[0082] Before generating the first matching result, the process includes: the main control unit sending a communication establishment command to each diagnostic terminal, and each diagnostic terminal receiving and responding to the command. If some diagnostic terminals do not respond, the cable / path on the path between that diagnostic terminal and the main control unit is marked in red (red indicates that there is a cable fault on that path).

[0083] S208, if the first test result indicates a cable abnormality, then select a diagnostic terminal from the other diagnostic terminals besides the first matching result and match it with a diagnostic terminal from the first matching result to obtain a second matching result.

[0084] The first test result also includes whether there are any cable abnormalities between the diagnostic terminals. If the first test result indicates a cable abnormality, the cable is usually quite long, and the first test result can only indicate the presence of an abnormal cable within that segment. However, to pinpoint the specific location of the abnormality, the diagnostic terminals need to be reassigned. Specifically, the first test result can be used to mark normal or abnormal cables in green or red on the cable path diagram.

[0085] Specifically, such as Figure 5 As shown, if the first test result between diagnostic terminal 1 and diagnostic terminal 2 indicates a cable abnormality, a diagnostic terminal (e.g., diagnostic terminal 3) is selected from other diagnostic terminals (diagnostic terminal 3 or diagnostic terminal 4) besides the first matching result, and then matched with a diagnostic terminal (e.g., diagnostic terminal 1) from the first matching result (diagnostic terminal 1 or diagnostic terminal 2) to obtain a second matching result. This reallocation of diagnostic terminals facilitates subsequent secondary testing, shortens the length of the abnormal cable, and reduces cable maintenance costs.

[0086] S210, control one diagnostic terminal in the second matching result to send the second test data to another diagnostic terminal to obtain the second test result.

[0087] The diagnostic terminal is capable of sending, receiving, and processing test data. Specifically, the second test result can be used to mark normal or abnormal cables in green or red on the cable path diagram.

[0088] S212, Based on the first test result and the second test result, determine the abnormal location information of the cable.

[0089] Specifically, the first test result and the second test result can be superimposed, and the cable with the overlapping red and green parts can be marked as green, the cable with the overlapping red parts can be marked as red, and the cable with the overlapping green parts can be marked as green.

[0090] In the aforementioned cable testing method, the cable path diagrams of the data exchange equipment and diagnostic terminals are obtained, directly yielding the connection diagram of the cable paths of the device group. Two diagnostic terminals are matched using the data exchange equipment to obtain a first matching result. One diagnostic terminal in the first matching result is then controlled to send first test data to the other diagnostic terminal, resulting in a first test result. If a cable anomaly is detected in the first test result, the diagnostic terminals are re-matched to obtain a second matching result. Subsequently, one diagnostic terminal in the second matching result is controlled to send second test data to the other diagnostic terminal, resulting in a second test result. Based on the two test results, the length of the cable anomaly can be shortened, further locating the position of the cable anomaly. This method, based on the first and second test results, obtains cable anomaly location information, quickly identifying cable fault nodes on the path in a complex interconnected network, significantly improving the efficiency of fault diagnosis.

[0091] In one embodiment, selecting a diagnostic terminal from other diagnostic terminals besides the first matching result and matching it with a diagnostic terminal from the first matching result to obtain a second matching result includes: selecting a diagnostic terminal from other diagnostic terminals besides the first matching result based on diagnostic terminals under the same data exchange device and matching it with a diagnostic terminal from the first matching result to obtain a second matching result; or, selecting a diagnostic terminal from other diagnostic terminals besides the first matching result based on diagnostic terminals under different data exchange devices and matching it with a diagnostic terminal from the first matching result to obtain a second matching result.

[0092] If the first test result is abnormal, it means that there is an abnormality in the cable / path between the two diagnostic terminals in the first matching result. The types of abnormalities may include: cable insulation layer crack, wire core conductivity not up to standard, poor cable contact, etc.

[0093] If the first test result is abnormal, it is necessary to select other diagnostic terminals from the first matching result for matching to obtain a matching result. Specifically, this includes: selecting a new diagnostic terminal from other diagnostic terminals besides those in the first matching result, based on the diagnostic terminals under the same data exchange equipment, and matching one of the diagnostic terminals in the first matching result to obtain a second matching result. Selecting a diagnostic terminal under the same data exchange equipment to obtain a second matching result is suitable for situations where the abnormal cable segment is short. By selecting other diagnostic terminals under the same data exchange equipment to obtain a second matching result, the diagnostic terminals can be quickly matched, providing a basis for subsequent second tests.

[0094] If the abnormal segment under a certain data exchange device is relatively long, a second matching result can be obtained by selecting a diagnostic terminal from other diagnostic terminals under different data exchange devices (excluding the first matching result) and matching it with a diagnostic terminal from the first matching result. That is, it enables matching and testing (communication) between diagnostic terminals across data exchange devices.

[0095] The length of the abnormal cable segment can be estimated based on the second matching performed under the same data exchange equipment. If the test result in the second matching is still that the cable is abnormal, then the abnormal cable segment between the diagnostic terminals is considered to be relatively long.

[0096] In fact, since the length of the abnormal cable segment is unknown before testing, both methods can be used simultaneously. This ensures that the subsequent processing can effectively shorten the length of the abnormal cable segment while improving testing efficiency.

[0097] In this embodiment, by selecting diagnostic terminals under the same data exchange device and under different data exchange devices, a second matching result can be obtained, which can effectively shorten the length of the abnormal cable segment and improve the efficiency of testing.

[0098] In one embodiment, based on the first test result, the number of cable segments in the initial path of the first test result is obtained; wherein, the coverage rate is used to characterize the number of cable segments in the path; if the number of cable segments in the initial path is less than the preset number of cable segments, then the initial path is expanded according to the cost-effectiveness ratio of other paths besides the initial path to obtain a second matching result, wherein, the cost-effectiveness ratio characterizes the number of diagnostic terminals connected to the data exchange device.

[0099] The number of cable segments can refer to the number of cable segments between the data exchange equipment and the diagnostic terminal. The preset number of cable segments can also refer to the number of cable segments between all data exchange equipment and all diagnostic terminals in the system. The preset number of cable segments can be used to measure the extent of system testing. If the original preset number of cable segments is X, setting the preset number of cable segments to X / 2 represents testing half of the system's cables, saving computational resources and suitable for scenarios involving small-scale cable fault diagnosis in a group of devices.

[0100] Specifically, the number of cable segments can be represented by coverage. The more segments, the higher the degree of system testing. The formula for calculating coverage M is as follows:

[0101]

[0102] Where m and n represent the number of nodes represented by the diagnostic terminal and the data exchange equipment, i and j represent nodes, and a ij This indicates whether there is a direct cable / path connection between node i and node j. If so, a ij If it equals 1, then a ij It equals 0. Understandably, the total coverage of the system test equals the sum of the coverage of each data exchange device.

[0103] If the number of cable segments in the initial path is less than the preset number of cable segments, it means that in the current test scenario, the testing of all paths has not been completed, and the initial path needs to be expanded to complete the testing of all paths.

[0104] The initial path can be expanded based on the cost-effectiveness ratio of other paths besides the initial path to obtain a second matching result, where the cost-effectiveness ratio represents the number of diagnostic terminals connected to the data exchange equipment.

[0105] Specifically, the cost-effectiveness ratio, also known as the cable cost-effectiveness ratio U, is defined as the ratio of the number of untested cables C on the newly added test path to the number of data exchange devices S occupied when diagnostic terminals on the uncovered test path are not on the same data exchange equipment.

[0106]

[0107] In this process, after calculating the cost-effectiveness ratio U of other nodes (data exchange equipment), the target node and the target path of the target node are selected as the extended path based on the cost-effectiveness ratio of each other node, and the initial path is extended to obtain the second matching result.

[0108] Specifically, other paths with the highest cost-effectiveness ratio can be selected first to expand the initial path, and then the matching can be performed again based on the expanded path to obtain a second matching result.

[0109] In this embodiment, the initial path is expanded by selecting the node with the highest cost-effectiveness on the cable, thereby maximizing the use of computing resources and improving testing efficiency.

[0110] In one embodiment, if the number of cable segments in the initial path is less than a preset number of cable segments, the initial path is expanded based on the cost-effectiveness ratio of other paths besides the initial path to obtain a second matching result. This includes: if the number of cable segments in the initial path is less than the preset number of cable segments, obtaining the cost-effectiveness ratio of other paths based on the number of data exchange devices on other paths and the number of cables on other paths, and obtaining a cost-effectiveness ratio ranking result for other paths; obtaining a cost-effectiveness ratio descending ranking result based on the descending order of the cost-effectiveness ratio ranking result for other paths; and expanding the initial path based on the cost-effectiveness ratio descending ranking result to obtain the second matching result.

[0111] Among them, such as Figure 3 As shown, a network device group typically includes multiple data switching devices. A data switching device can be considered as a node of a cable, which includes multiple paths. The end of each path is usually a diagnostic terminal.

[0112] The initial path can represent the connection relationship (cable, path) between the diagnostic terminal and the data exchange device under the same data exchange device.

[0113] The cost-effectiveness ratio of other paths is calculated based on the number of data exchange devices and cables on those paths. This cost-effectiveness ratio is then ranked. Specifically, if an other path has one data exchange device and three diagnostic terminals, its cost-effectiveness ratio is 3. This process is repeated for all other paths, and their cost-effectiveness ratios are then ranked. These rankings are then sorted in descending order to obtain a descending-order ranking. The initial paths are then expanded based on this descending-order ranking to obtain a second matching result.

[0114] In this embodiment, the initial path is expanded based on the descending sorting result to obtain the second matching result, thereby maximizing the use of computing resources and improving testing efficiency.

[0115] In one embodiment, obtaining abnormal location information of the cable based on the first test result and the second test result includes: obtaining an abnormal segment of the cable based on the first test result and the second test result; and performing a time-domain reflection test on the abnormal segment of the cable based on the diagnostic terminals at both ends of the abnormal segment to obtain the abnormal location information of the cable.

[0116] The abnormal cable segment refers to the identification of an anomaly within a specific section or several sections of the cable. For example, cable A consists of two sections, approximately 20 meters long, and an anomaly is present. Replacing the entire cable segment is costly; therefore, further location information to pinpoint the location of the anomaly is necessary.

[0117] One method is time-domain reflectometry, also known as pulse reflection or radar method. A diagnostic terminal at one end of the cable under test emits a low-voltage, high-frequency pulse signal or a step signal. When the cable encounters an impedance mismatch, the pulse signal is reflected. The diagnostic terminal calculates the impedance change at the fault location by analyzing the amplitudes of the incident and reflected signals, thus determining the type of cable fault. Furthermore, by recording the pulse signal transmission time difference, the location of the fault point can be determined.

[0118] In this embodiment, the control diagnostic terminal transmits low-voltage, high-frequency pulse signals or step signals to further determine the location of the fault point and obtain accurate abnormal location information of the cable.

[0119] In one embodiment, such as Figure 6 The diagram illustrates a method for determining the level of cable anomalies, including:

[0120] S602 controls one diagnostic terminal to send test data and receive data from another diagnostic terminal;

[0121] The diagnostic terminal is capable of sending, receiving, and processing test data. The test data should be as large as possible, and its content needs to change continuously; a format like 01010101… is suitable.

[0122] The transmission of data in a single instance is limited. Considering the need to maximize the amount of test data, the number of test data transmissions needs to be sufficient. The statistical results of the test data error rate of the diagnostic terminal should be cumulative, and the last cumulative result should be taken as the final error rate.

[0123] S604, based on the test data and the received data, obtain the bit error rate of the test data;

[0124] The bit error rate (BER) is obtained based on the deviation Y between the test data and the received data, and the test data X.

[0125]

[0126] S606, Obtain the time frame header and time frame tail of the received data;

[0127] The time frame header of the received data indicates that the diagnostic terminal records a time node T1 when it receives the frame header of the test data, and the time frame tail of the received data indicates that it records a time node T2 when it receives the frame tail of the test data.

[0128] Let n be the total number of times test data is received, then the average test data reception time T is:

[0129]

[0130] S608, based on the time frame header, time frame tail and time threshold, obtains the time deviation of the received data;

[0131] Specifically, the reception time T of the diagnostic terminals on each test path is monitored in real time. When the reception time T deviates from the reference time by more than a certain threshold θ0, it is considered that there is a problem with the reception time of the test data on that path. The reception time deviation value θ is:

[0132]

[0133] S610, obtain the first weighting coefficient of the bit error rate and the second weighting coefficient of the time deviation;

[0134] The first weighting coefficient 'a' for the bit error rate and the second weighting coefficient 'b' for the time deviation can be obtained in advance by simulating the resistance of the path using a fault injection device and by testing the cable.

[0135] S612 obtains the cable anomaly level based on the bit error rate, the first weighting coefficient, the time deviation, and the second weighting coefficient.

[0136] Among them, according to the bit error rate The cable anomaly level R is obtained by using the first weighting coefficient a, the time deviation θ, and the second weighting coefficient b.

[0137] Specifically, R is divided into different intervals according to its value: First interval [L1, L2): minor line damage. Second interval [L2, L3): moderate line damage. Interval [L3, L4]: severe line damage.

[0138] In this embodiment, by controlling the sending and receiving of test data through diagnostic control, the cable abnormality level can be accurately obtained based on the bit error rate of the test data and the time deviation between the test data and the received data.

[0139] In one embodiment, such as Figure 7The diagram shows the structure of the network device group. The network device group also includes a fault injection device. The fault injection device is connected to the data exchange device and the diagnostic terminal respectively. It obtains a first weighting coefficient of the bit error rate and a second weighting coefficient of the time deviation. The process includes obtaining at least two linear equations in two variables based on the bit error rate of the test data, the time deviation of the received data, and at least two parameter information, and obtaining the first weighting coefficient and the second weighting coefficient based on the at least two linear equations in two variables.

[0140] Among them, the fault injection device can be set between data exchange devices, between data exchange devices and diagnostic terminals, or between data exchange devices and diagnostic terminals.

[0141] Specifically, such as Figure 8 The diagram shows the structure of the fault injection device, which consists of a high-speed switching relay, a resistor, and a communication interface. Its main function is to control the on and off of the test path and adjust the parameters of the resistor on the test path.

[0142] The fault injection device can control the relay switches in the fault injection equipment. Controlling relays K1 and K2 to open and K3 to close enables the circuit (cable 1 and cable 2) to conduct; controlling all three relays to open shuts off the circuit; when K1 is closed and K2 and K3 are closed, a fault resistor R1 is injected into the circuit; when K2 is closed and K1 and K3 are open, a fault resistor R2 is injected. The fault injection device ensures the test path is normal during command interaction between the main control unit and each diagnostic terminal, and induces a fault in the circuit during test data transmission between diagnostic terminals, thus preventing communication between the main control unit and the test equipment from being interfered with by the fault path.

[0143] The parameter information of the fault injection device can be the resistance value simulated by the fault injection device. The two-variable linear equation can be a mapping relationship between parameter information, the bit error rate of the test data, the time deviation of the received data, the first weighting coefficient, and the second weighting coefficient, as follows:

[0144]

[0145] Where R represents the parameter information of the fault injection device, BER represents the bit error rate of the test data, θ represents the time deviation of the received data, a represents the first weighting coefficient, and b represents the second weighting coefficient.

[0146] In this embodiment, the cable resistance is simulated by a fault injection device, and the cable is tested multiple times to obtain the first weighting coefficient and the second weighting coefficient between the two diagnostic terminals, thereby improving the accuracy of the formal test.

[0147] A domestic quality inspection agency conducted a survey on the wires and cables sold in a certain region's market. The results showed that among manufacturers certified by ISO 9000, the product pass rate was below 90%, while small-scale wire and cable manufacturers without certification had a pass rate of less than 30%. According to the agency's report, the overall pass rate for wires and cables sold in specialty stores was around 70%, while smaller hardware stores had a pass rate of less than 10%. In some underdeveloped areas, 100% of the wires and cables sold in existing hardware stores were substandard. To ensure the normal operation of equipment, frequent testing of cable performance is necessary. Traditional cable testing methods mainly combine manual operation with single-item testing instruments to perform continuity, insulation, and withstand voltage tests, which suffers from low testing efficiency, poor safety, difficulty in testing complex cable networks, and difficulty in error detection. Therefore, a rapid cable detection method is needed for complex equipment groups, capable of accurately identifying faulty cables within the group, facilitating maintenance personnel in addressing the problem. In view of this, such as... Figure 9 As shown, in one embodiment, a cable fault diagnosis method is provided, which is used to illustrate the method with the host control unit:

[0148] Among them, such as Figure 10 The diagram illustrates a service architecture for a main control machine, including a test operation interface, data middleware, data analysis services, and data caching services such as Redis and data storage services such as MySQL.

[0149] 1. Middleware is used for (1) forwarding and scheduling, providing network communication services, connecting data fault diagnosis terminals and data analysis services; (2) being responsible for message encoding and decoding; and (3) receiving data sent by fault diagnosis terminals.

[0150] 2. Data analysis service, used for (1) processing data forwarded by middleware. (2) parsing terminal commands, organizing them into reasonable data objects, and persisting the data to the database. (3) analyzing device data, obtaining device status change records, and saving the status records.

[0151] 3. A MySQL database is used to store historical and routine information data. The diagnostic terminal consists of a processor chip, a bus protocol chip, connectors, and a communication interface. Its main functions are to execute control commands from the autonomous controller, send test data, receive and process test data. Diagnostic terminal structure... Figure 11 As shown, it includes:

[0152] 1. Processor chip: A solution that integrates multiple functional modules onto a single chip, including a processor, memory, input / output interfaces, clock, and other necessary electronic devices. Processor chips are commonly used in embedded systems to implement the functions of various applications.

[0153] 2. Bus protocol chip: This is a chip used to control and manage various buses in a computer system. Its function is to enable data transmission and communication between different devices, ensuring coordination and synchronization between them.

[0154] 3. Connector: A component used to connect two or more electronic devices. In diagnostic terminals, connectors are used to connect communication interfaces and bus protocol chips.

[0155] 4. Communication Interface: Typically used to connect computers, routers, data switching equipment, and other network devices. In diagnostic terminals, the communication interface is used to connect the bus protocol chip to the host computer or other diagnostic terminals.

[0156] The cable fault diagnosis methods include:

[0157] Part One, the diagnostic process, includes:

[0158] S902, Obtain the cable path diagram of the data exchange equipment and diagnostic terminal.

[0159] S904, at least two diagnostic terminals are matched through a data exchange device to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cables between the two diagnostic terminals.

[0160] S906, control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result.

[0161] S908, if the first test result indicates a cable abnormality, then select a diagnostic terminal from other diagnostic terminals besides the first matching result and match it with a diagnostic terminal from the first matching result to obtain a second matching result.

[0162] Specifically, based on diagnostic terminals under the same data exchange equipment, a second diagnostic terminal is selected from other diagnostic terminals besides the first matching result and matched with the diagnostic terminal in the first matching result to obtain a second matching result. Alternatively, based on diagnostic terminals under different data exchange equipment, a second diagnostic terminal is selected from other diagnostic terminals besides the first matching result and matched with the diagnostic terminal in the first matching result to obtain a second matching result.

[0163] The process involves several steps. First, based on the first test result, the number of cable segments in the initial path is determined. Coverage rate is used to represent the number of cable segments in the path. If the number of cable segments in the initial path is less than a preset number of segments, the cost-effectiveness ratio of other paths is calculated based on the number of data exchange devices on other paths and the number of cables on other paths, resulting in a cost-effectiveness ratio ranking. This ranking is then sorted in descending order to obtain a cost-effectiveness ratio descending order. Finally, the initial path is expanded based on this descending order to obtain a second matching result. Here, cost-effectiveness ratio represents the number of diagnostic terminals connected to the data exchange devices.

[0164] Specifically, the initial path is expanded based on the cost-effectiveness ratio in descending order until the expanded path reaches the coverage metric. This expanded path is then used as the test path, and the second matching result is obtained based on the test path.

[0165] S910, control one diagnostic terminal in the second matching result to send the second test data to another diagnostic terminal to obtain the second test result.

[0166] S912, based on the first test result and the second test result, the abnormal cable segment is obtained.

[0167] S914 uses diagnostic terminals at both ends of the abnormal cable segment to perform time-domain reflection testing on the abnormal segment and obtain the abnormal location information of the cable.

[0168] The second part determines the cable anomaly level, including:

[0169] S916 controls one diagnostic terminal to send test data and receive data from another diagnostic terminal.

[0170] S918 calculates the bit error rate of the test data based on the test data and the received data.

[0171] S920, acquire the time frame header and time frame tail of the received data.

[0172] S922 obtains the time deviation of the received data based on the time frame header, time frame tail, and time threshold.

[0173] S924, acquire parameter information sent to the diagnostic terminal by the fault injection device at least twice.

[0174] S926, based on the bit error rate of the test data, the time deviation of the received data, and at least two parameter information, obtain at least two linear equations in two variables, and obtain a first weighting coefficient and a second weighting coefficient based on the at least two linear equations in two variables.

[0175] S928 determines the cable anomaly level based on the bit error rate, the first weighting factor, the time deviation, and the second weighting factor.

[0176] In this embodiment, the cable path diagrams of the data exchange device and the diagnostic terminal are obtained, directly yielding the connection diagram of the cable path of the device group. Two diagnostic terminals are matched using the data exchange device to obtain a first matching result. One diagnostic terminal in the first matching result is controlled to send first test data to the other diagnostic terminal, obtaining a first test result. If a cable anomaly is found in the first test result, the diagnostic terminals are re-matched to obtain a second matching result. Then, one diagnostic terminal in the second matching result is controlled to send second test data to the other diagnostic terminal, obtaining a second test result. Based on the two test results, the length of the cable anomaly can be shortened, further locating the position of the cable anomaly. This method, based on the first and second test results, obtains cable anomaly location information, quickly identifying cable fault nodes on the path in a complex interconnected network, greatly improving the efficiency of fault diagnosis.

[0177] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0178] Based on the same inventive concept, this application also provides a cable testing apparatus for implementing the cable testing method described above. The solution provided by this apparatus is similar to the implementation described in the above method; therefore, the specific limitations of one or more cable testing apparatus embodiments provided below can be found in the limitations of the cable testing method described above, and will not be repeated here.

[0179] In one embodiment, such as Figure 12 As shown, a cable testing device is provided, comprising: an acquisition module 1202, a first matching module 1204, a first testing module 1206, a second matching module 1208, a second testing module 1210, and a prediction module 1212, wherein:

[0180] The acquisition module 1202 is used to acquire the cable path diagram of the data exchange equipment and the diagnostic terminal;

[0181] The first matching module 1204 is used to match at least two diagnostic terminals through a data exchange device to obtain a first matching result, wherein the first matching result includes two diagnostic terminals and a connection cable between the two diagnostic terminals.

[0182] The first test module 1206 is used to control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result;

[0183] The second matching module 1208 is used to select a diagnostic terminal from other diagnostic terminals besides the first matching result and match it with a diagnostic terminal from the first matching result if the first test result indicates that the cable is abnormal, so as to obtain a second matching result.

[0184] The second test module 1210 is used to control one diagnostic terminal in the second matching result to send the second test data to another diagnostic terminal to obtain the second test result;

[0185] The prediction module 1212 is used to determine the abnormal location information of the cable based on the first test result and the second test result.

[0186] In one embodiment, the second matching module 1208 is further configured to, based on the diagnostic terminals under the same data exchange device, reselect a diagnostic terminal from other diagnostic terminals besides the first matching result, and match it with a diagnostic terminal from the first matching result to obtain a second matching result; or, based on the diagnostic terminals under different data exchange devices, reselect a diagnostic terminal from other diagnostic terminals besides the first matching result, and match it with a diagnostic terminal from the first matching result to obtain a second matching result.

[0187] In one embodiment, the second matching module 1208 is further configured to obtain the number of cable segments in the initial path of the first test result based on the first test result; wherein the coverage rate is used to characterize the number of cable segments in the path; if the number of cable segments in the initial path is less than a preset coverage index, the initial path is expanded according to the cost-effectiveness ratio of other paths besides the initial path to obtain a second matching result, wherein the cost-effectiveness ratio characterizes the number of diagnostic terminals connected to the data exchange equipment.

[0188] In one embodiment, the second matching module 1208 is further configured to, if the number of cable segments in the initial path is less than a preset coverage index, obtain the cost-effectiveness ratio of other paths based on the number of data exchange devices on other paths and the number of cables on other paths, and obtain a cost-effectiveness ratio ranking result for other paths; obtain a cost-effectiveness ratio descending ranking result based on the descending order of the cost-effectiveness ratio ranking result for other paths; and expand the initial path based on the cost-effectiveness ratio descending ranking result to obtain a second matching result.

[0189] In one embodiment, the prediction module 1212 is further configured to obtain the abnormal cable segment based on the first test result and the second test result; and to perform a time-domain reflection test on the abnormal cable segment based on the diagnostic terminals at both ends of the abnormal cable segment to obtain the abnormal cable location information.

[0190] In one embodiment, the cable testing apparatus further includes: a processing module for controlling a diagnostic terminal to send test data and obtain received data from another diagnostic terminal; obtaining the bit error rate of the test data based on the test data and the received data; acquiring the time frame header and the time frame tail of the received data; obtaining the time deviation of the received data based on the time frame header, the time frame tail, and a time threshold; acquiring a first weighting coefficient of the bit error rate and a second weighting coefficient of the time deviation; and obtaining the cable anomaly level based on the bit error rate, the first weighting coefficient, the time deviation, and the second weighting coefficient.

[0191] In one embodiment, the processing module is further configured to acquire parameter information sent by the fault injection device to the diagnostic terminal at least twice; obtain at least two linear equations in two variables based on the bit error rate of the test data, the time deviation of the received data, and at least two parameter information; and obtain a first weighting coefficient and a second weighting coefficient based on the at least two linear equations in two variables.

[0192] Each module in the aforementioned cable testing device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0193] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 13 As shown, this computer device includes a processor, memory, input / output (I / O) interfaces, and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is also connected to the system bus via the I / O interfaces. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides the environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The database stores abnormal cable location information. The I / O interfaces are used for exchanging information between the processor and external devices. The communication interface is used for communication with external terminals via a network connection. When executed by the processor, the computer program implements a cable testing method.

[0194] Those skilled in the art will understand that Figure 13 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0195] In one embodiment, a computer device is provided, including a memory and a processor, the memory storing a computer program, the processor executing the computer program to implement the steps of the cable testing method as described in any of the above embodiments.

[0196] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0197] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0198] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method of testing a cable, characterized by, The cable testing method utilizes a network device group, which includes a data switching device and a diagnostic terminal. The data switching device and the diagnostic terminal are communicatively connected. The method includes: Obtain the cable path diagram of the data exchange device and the diagnostic terminal; The data exchange device is used to match at least two diagnostic terminals to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cable between the two diagnostic terminals. Control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result; If the first test result indicates a cable abnormality, then a diagnostic terminal is selected from other diagnostic terminals besides the first matching result, and matched with a diagnostic terminal from the first matching result to obtain a second matching result; The system controls one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result. Based on the first test result and the second test result, the abnormal location information of the cable is determined.

2. The method of claim 1, wherein, The step of reselecting a diagnostic terminal from other diagnostic terminals besides the first matching result, and matching it with a diagnostic terminal from the first matching result to obtain a second matching result includes: Based on the diagnostic terminal under the same data exchange device, a diagnostic terminal is selected again from other diagnostic terminals besides the first matching result, and matched with a diagnostic terminal in the first matching result to obtain a second matching result; or, Based on the diagnostic terminals under different data exchange devices, a second matching result is obtained by selecting a diagnostic terminal from the other diagnostic terminals besides the first matching result and matching it with a diagnostic terminal from the first matching result.

3. The method of claim 2, wherein, The method further includes: Based on the first test result, obtain the number of cable segments in the initial path in the first test result; If the number of cable segments in the initial path is less than the preset number of cable segments, the initial path is expanded according to the cost-effectiveness ratio of other paths besides the initial path to obtain a second matching result, wherein the cost-effectiveness ratio represents the number of diagnostic terminals connected to the data exchange device.

4. The method of claim 3, wherein, If the number of cable segments in the initial path is less than the preset number of cable segments, then the initial path is expanded based on the cost-effectiveness ratio of other paths besides the initial path to obtain a second matching result, including: If the number of cable segments in the initial path is less than the preset number of cable segments, the cost-effectiveness ratio of the other paths is obtained based on the number of data exchange devices on the other paths and the number of cables on the other paths, and the cost-effectiveness ratio ranking result of the other paths is obtained. Based on the descending order of the cost-effectiveness ranking results of the other paths, the cost-effectiveness ranking results are obtained in descending order. The initial path is expanded based on the cost-effectiveness ratio descending sorting result to obtain the second matching result.

5. The method of claim 1, wherein, The step of obtaining abnormal cable location information based on the first test result and the second test result includes: Based on the first test result and the second test result, the abnormal cable segment is obtained; Based on the diagnostic terminals at both ends of the abnormal cable segment, a time-domain reflection test is performed on the abnormal cable segment to determine the abnormal location information of the cable.

6. The method of claim 1, wherein, The method further includes: Control one diagnostic terminal to send test data and receive data from another diagnostic terminal; The bit error rate of the test data is obtained based on the test data and the received data. Obtain the time frame header and the time frame tail of the received data; The time deviation of the received data is obtained based on the time frame header, the time frame tail, and the time threshold. Obtain the first weighting coefficient of the bit error rate and the second weighting coefficient of the time deviation; The cable anomaly level is obtained based on the bit error rate, the first weighting coefficient, the time deviation, and the second weighting coefficient.

7. The method of claim 6, wherein, The network device group also includes a fault injection device, which is communicatively connected to the data exchange device and the diagnostic terminal. The process of obtaining the first weighting coefficient of the bit error rate and the second weighting coefficient of the time deviation includes: Obtain parameter information sent to the diagnostic terminal by the fault injection device at least twice; Based on the bit error rate of the test data, the time deviation of the received data, and at least two parameter information, at least two linear equations in two variables are obtained, and the first weighting coefficient and the second weighting coefficient are obtained based on the at least two linear equations in two variables.

8. A testing device for a cable, characterized by The device includes: The acquisition module is used to acquire the cable path diagram of the data exchange equipment and the diagnostic terminal; The first matching module is used to match at least two diagnostic terminals through the data exchange device to obtain a first matching result, wherein the first matching result includes the two diagnostic terminals and the connecting cables of the two diagnostic terminals. The first test module is used to control one diagnostic terminal in the first matching result to send the first test data to another diagnostic terminal to obtain the first test result; The second matching module is used to select a diagnostic terminal from other diagnostic terminals besides the first matching result and match it with a diagnostic terminal from the first matching result if the first test result indicates that the cable is abnormal, so as to obtain a second matching result. The second testing module is used to control one diagnostic terminal in the second matching result to send second test data to another diagnostic terminal to obtain the second test result; The prediction module is used to determine the abnormal location information of the cable based on the first test result and the second test result. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having stored thereon a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 7.