Cable test method and device, client device, system and storage medium
By combining active and passive testing methods in transmission cable testing, screening and reviewing fault status and uploading the results to the server, the problem of difficult to balance testing costs and effectiveness in the existing technology is solved, and the overall reliability of transmission cable testing is improved.
Patent Information
- Application Number
- CN202411718244.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-27
- Publication Date
- 2025-03-11
- Estimated Expiration
- 2044-11-27
AI Technical Summary
The prior art is difficult to effectively balance the cost and effectiveness of transmission cable testing, and transmission cable testing is usually carried out on a stand-alone machine, which is not conducive to batch analysis of fault conditions and leads to low overall reliability.
Active testing is performed using a retimer to initially filter the fault status of the transmission cable, and mark the suspected faulty cable as being pending review. Then, passive tests are conducted to review the fault status, and finally the test results are uploaded to the server for data statistics.
It effectively balances the cost and effectiveness of transmission cable testing, improves the ability to batch analyze fault conditions, and thus improves the overall reliability of transmission cable testing.
Smart Images

Figure CN119603129A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of cable testing, and in particular to a cable testing method, device, client equipment, system and storage medium. Background Art
[0002] In the server, the transmission cable is an important component to achieve the interconnection between high-speed signal boards. Therefore, effective testing of the transmission cable is of great significance to ensure the speed and reliability of data transmission inside the server.
[0003] In the related art, it is difficult to effectively balance the test cost and test effectiveness for transmission cable testing; moreover, transmission cable testing is usually performed on a single machine, which is not conducive to batch analysis of transmission cable fault conditions. Summary of the invention
[0004] The object of the present invention is to provide a cable testing method, apparatus, client device, system and storage medium, which can effectively balance the testing cost and testing effectiveness of transmission cables, and facilitate batch analysis of transmission cable fault conditions, thereby improving the overall reliability of transmission cable testing.
[0005] In order to solve the above technical problems, the present invention provides a cable testing method, comprising:
[0006] Performing an active test on the transmission cable using a retimer to obtain an active test result, determining a fault state of the transmission cable according to the active test result, and marking the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed;
[0007] Receiving a passive test result of the transmission cable to be reviewed, and reviewing the fault state of the transmission cable to be reviewed according to the passive test result;
[0008] The fault status, active test results, and passive test results of the transmission cable are uploaded to the server, so that the server can collect statistics on cable fault data corresponding to the transmission cable.
[0009] Optionally, it also includes:
[0010] Acquire cable information of each of the transmission cables, establish a correspondence between the cable information and the fault state, the active test result, and the passive test result, and save the correspondence;
[0011] Receiving a query instruction, and extracting the cable information to be queried in the query instruction;
[0012] Find a target corresponding relationship that includes the cable information to be queried, and output the target corresponding relationship.
[0013] Optionally, it also includes:
[0014] Obtain the production batch and manufacturer of the transmission cable;
[0015] The production batch and manufacturer of the transmission cable are uploaded to the server, so that the server can count the cable fault data corresponding to different production batches and different manufacturers.
[0016] Optionally, it also includes:
[0017] The retimer type and retimer driver version corresponding to the retimer are uploaded to the server, so that the server can count the misjudgment data corresponding to different retimer types and different retimer driver versions based on the retimer type, retimer driver version, the fault status, active test results, and passive test results.
[0018] Optionally, performing an active test on the transmission cable by using a retimer to obtain an active test result, and determining a fault state of the transmission cable according to the active test result includes:
[0019] Obtaining a cable part number corresponding to the transmission cable, and querying preset test parameters, preset reference parameters, and a retimer type corresponding to the cable part number;
[0020] Searching for a corresponding retimer driver in a preset retimer driver library according to the retimer type;
[0021] Obtaining a preset number of parallel tests corresponding to the retimer driver, creating a number of driver instances corresponding to the preset number of parallel tests based on the retimer driver, and establishing a corresponding relationship between the retimer and the driver instance;
[0022] When it is detected that the transmission cable is connected to the retimer, calling each of the driver instances according to preset test parameters to perform parallel tests on the transmission cables connected to each of the retimers to obtain active test results of each of the transmission cables;
[0023] Verifying the active test result using the preset reference parameter, and determining whether the active test result passes the verification;
[0024] If the active test result passes the verification, it is determined that the fault state of the corresponding transmission cable is that the cable is not faulty;
[0025] If the active test result fails the verification, it is determined that the fault state of the corresponding transmission cable is a cable fault.
[0026] Optionally, calling each of the driver instances according to preset test parameters to perform parallel testing on the transmission cables connected to each of the retimers includes:
[0027] According to preset test parameters, each driver instance is called through a preset retimer driver interface to perform parallel testing on the transmission cables connected to each retimer; the preset retimer driver interface is compatible with different retimer drivers in the preset retimer driver library.
[0028] Optionally, calling each of the driver instances to perform parallel testing on the transmission cables connected to each of the retimers according to preset test parameters includes:
[0029] According to preset test parameters, the driver instance is called to control the retimer to send a test signal to the transmission cable, control the retimer to receive the test signal returned by the transmission cable, and control the retimer to determine the bit error information corresponding to the test signal, and use the bit error information as the active test result of the transmission cable.
[0030] The present invention also provides a cable testing device, comprising:
[0031] An active test module, used for performing an active test on the transmission cable using a retimer to obtain an active test result, determining a fault state of the transmission cable according to the active test result, and marking the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed;
[0032] A passive test module, used for receiving the passive test result of the transmission cable to be reviewed, and reviewing the fault state of the transmission cable to be reviewed according to the passive test result;
[0033] The uploading module is used to upload the fault status, active test results, and passive test results of the transmission cable to the server, so that the server can collect statistics of cable fault data corresponding to the transmission cable.
[0034] The present invention also provides a client device, comprising:
[0035] Memory for storing computer programs;
[0036] A processor is used to implement the cable testing method as described above when executing the computer program.
[0037] The present invention also provides a cable testing system, comprising:
[0038] A client device, used to perform the cable testing method as described above;
[0039] The server device is used to receive the fault status, active test results, and passive test results of the transmission cable uploaded by the client device, and to collect statistics of cable fault data corresponding to the transmission cable according to the fault status, active test results, and passive test results.
[0040] The present invention also provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are loaded and executed by a processor, the cable testing method as described above is implemented.
[0041] The present invention provides a cable testing method, comprising: using a retimer to perform an active test on a transmission cable to obtain an active test result, determining a fault state of the transmission cable according to the active test result, and marking the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed; receiving a passive test result of the transmission cable to be reviewed, and reviewing the fault state of the transmission cable to be reviewed according to the passive test result; uploading the fault state, active test result, and passive test result of the transmission cable to the server, so that the server can count the cable fault data corresponding to the transmission cable.
[0042] It can be seen that the present invention can firstly use the retimer to perform active testing on the transmission cable to obtain active test results, determine the fault state of the transmission cable according to the active test results, and mark the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed. Subsequently, the passive test results of the transmission cable to be reviewed can be received, and the fault state of the transmission cable to be reviewed can be reviewed according to the passive test results. That is, the present invention can firstly perform a first round of testing on the transmission cable based on an active test method with low test cost and high test efficiency, and for a small number of transmission cables determined to be cable faults by active testing, in order to further improve the test reliability, the present invention can mark this batch of transmission cables as transmission cables to be reviewed, and perform a secondary test on the transmission cable to be reviewed based on a passive test method with a higher test cost than the active test method but a higher test accuracy than the active test method, so as to review the fault state of the transmission cable to be reviewed. Finally, the present invention can upload the fault state, active test results, and passive test results of the transmission cable to the server, so that the server can count the cable fault data corresponding to the transmission cable. In this way, the test cost and test effectiveness of the transmission cable can be effectively balanced, and it is beneficial to batch analyze the fault conditions of the transmission cable, thereby improving the overall reliability of the transmission cable test. The present invention also provides a cable test device, client equipment, system and medium, which have the above-mentioned beneficial effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0044] Figure 1 A flow chart of a cable testing method provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a cable testing system provided by an embodiment of the present invention;
[0046] Figure 3 A structural block diagram of a cable testing device provided by an embodiment of the present invention;
[0047] Figure 4 A structural block diagram of a client device provided by an embodiment of the present invention;
[0048] Figure 5 This is a structural block diagram of a cable testing system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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.
[0050] In the server, transmission cables are important components for interconnecting high-speed signal boards. Common transmission cables include PCIe cables (Peripheral component interconnect express, a high-speed serial computer expansion bus standard), which have gradually become the mainstream solution for interconnecting high-speed signal boards in server systems due to their strong versatility, good SI performance (Signal Integrity), and customizability. In order to effectively ensure the transmission rate and transmission reliability of data transmission inside the server, it is necessary to effectively test each transmission cable inside the server when the server is mass-produced.
[0051] In the related art, it is difficult to effectively balance the test cost and test effectiveness for transmission cable testing. Moreover, transmission cable testing is usually performed on a single test platform, which is not conducive to batch analysis of transmission cable fault conditions, thereby reducing the overall test reliability of the transmission cable. In view of this, the present embodiment can provide a cable testing method, which can effectively balance the test cost and test effectiveness of the transmission cable by first performing an active test on the transmission cable, then performing a passive test on the transmission cable suspected of having a fault, and finally summarizing the active test results and the passive test results, and is conducive to batch analysis of transmission cable fault conditions, thereby improving the overall reliability of the transmission cable test.
[0052] For easier understanding, please refer to Figure 1 , Figure 1 The present invention provides a flow chart of a cable testing method according to an embodiment of the present invention. It should be noted that the device executing the present method may be referred to as a client device. The method may include:
[0053] S101. Perform an active test on a transmission cable using a retimer to obtain an active test result, determine a fault state of the transmission cable according to the active test result, and mark the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed.
[0054] In this embodiment, first, a retimer can be used to perform active testing on the transmission cable. Among them, the core principle of the active test method is to send a test signal to the transmission cable through the retimer, and read the signal to be tested output by the transmission cable, and then determine whether the transmission cable is faulty according to the quality of the signal to be tested. Since the requirements for the test device of the active test are not high, a retimer is generally used as a test device, an insertion loss board (ISI board, Inter-Symbol Interference, symbol interference) is used as a signal transmission device, and a cable fixture board of a cable connector is used; and there are fewer items for active testing, so the cable test can be performed at low cost and high efficiency. However, the active test method also has shortcomings, that is, the "cable is not faulty" conclusion made by this method has a high accuracy rate, but the "cable fault" conclusion made by this method has a low reliability, which is because this method has a weak control ability for the fault judgment boundary. In other words, when using the active test method to determine that a transmission cable has a fault, this fault conclusion may not be reliable, that is, the transmission cable may not have a fault. Therefore, this embodiment can use the active test method to quickly perform a first round of inspection on the transmission cables based on the advantages of low cost and high efficiency. Subsequently, the fault status of each transmission cable can be determined according to the active test results, and the transmission cables with a cable fault status (i.e., suspected faulty transmission cables) can be marked as transmission cables to be reviewed.
[0055] It should be noted that during the active test process, different types of transmission cables can be tested using different preset test parameters, different preset reference parameters and different retimers. Among them, the preset test parameters are used to test the transmission cables, and the preset reference parameters are used to verify the active test results of the transmission cables. The types of transmission cables can generally be distinguished by the cable part number (PN number, Part Number). For the convenience of management, the client device can pre-store preset test parameters, preset reference parameters and retimer types corresponding to various cable part numbers. It should be noted that the present embodiment does not limit the specific preset test parameters and preset reference parameters, which can be set according to actual application requirements.
[0056] In addition, since different retimers need to be controlled by different retimer drivers, in order to facilitate the access of different types of retimers, this client can also include a preset retimer driver library for storing different types of retimer drivers. After determining the retimer type corresponding to the cable part number, you can find the corresponding retimer driver in the preset retimer driver library.
[0057] In addition, in order to improve the test efficiency of transmission cables and realize the use of multiple retimers to test multiple transmission cables in parallel, the present embodiment can also set a corresponding number of parallel tests for the retimer driver, and can create a number of driver instances corresponding to the preset number of parallel tests based on the retimer driver to allocate a corresponding driver instance to each retimer. In this way, the present embodiment can test multiple transmission cables in parallel by calling multiple driver instances, thereby effectively improving the active test efficiency. It should be noted that the present embodiment does not limit the specific preset number of parallel tests and can be set according to actual application requirements. For example, it can be 4, which means that 4 transmission cables can be tested at the same time.
[0058] In the actual test process, the present embodiment can first obtain the cable part number corresponding to the transmission cable, and query the preset test parameters, preset reference parameters, and retimer type corresponding to the cable part number. Subsequently, the corresponding retimer driver can be found in the preset retimer driver library according to the retimer type, and the preset parallel test number corresponding to the retimer driver can be obtained, and the driver instance corresponding to the preset parallel test number can be created based on the retimer driver, and the corresponding relationship between the retimer and the driver instance is established. Subsequently, the tester can be prompted to connect the transmission cable to the retimer, and when the transmission cable is detected to be connected to the retimer, each driver instance can be called according to the preset test parameters to perform parallel tests on the transmission cables connected to each retimer, and the active test results of each transmission cable can be obtained. Finally, the active test results can be verified using the preset reference parameters, and it can be determined whether the active test results pass the verification. If the active test result passes the verification, it is determined that the fault state of the corresponding transmission cable is that the cable is not faulty; conversely, if the active test result fails to pass the verification, it is determined that the fault state of the corresponding transmission cable is a cable fault.
[0059] Based on this, the step of performing an active test on the transmission cable by using a retimer to obtain an active test result, and determining the fault state of the transmission cable according to the active test result may include:
[0060] Step 11: Obtain the cable part number corresponding to the transmission cable, and query the preset test parameters, preset reference parameters, and retimer type corresponding to the cable part number.
[0061] Step 12: Search for a corresponding retimer driver in a preset retimer driver library according to the retimer type.
[0062] Step 13: Obtain a preset number of parallel tests corresponding to the retimer driver, create a number of driver instances corresponding to the preset number of parallel tests based on the retimer driver, and establish a corresponding relationship between the retimer and the driver instance.
[0063] Step 14: When it is detected that the transmission cable is connected to the retimer, each of the driver instances is called according to preset test parameters to perform parallel tests on the transmission cables connected to each of the retimers to obtain active test results of each of the transmission cables.
[0064] It should be noted that in order to effectively record the active test results corresponding to each cable, after determining that the transmission cable is connected to the retimer, the cable identification (QID) of the transmission cable can be obtained, for example, the barcode attached to the surface of the transmission cable can be scanned by a barcode scanner to obtain the cable identification. Subsequently, when the active test results are obtained, a corresponding relationship can be established between the cable identification and the active test results.
[0065] Step 15: Verify the active test result using the preset reference parameter, and determine whether the active test result passes the verification.
[0066] Step 16: If the active test result passes the verification, it is determined that the fault state of the corresponding transmission cable is that the cable is not faulty.
[0067] Step 17: If the active test result fails the verification, determining that the fault state of the corresponding transmission cable is a cable fault.
[0068] Furthermore, in order to improve the access standardization of the retimer driver, this client may also include a unified preset timer driver interface, which standardizes the input and output interface of the retimer driver tool, thereby effectively improving the scalability of the retimer driver.
[0069] Based on this, calling each of the driver instances according to preset test parameters to perform parallel testing on the transmission cables connected to each of the retimers may include:
[0070] Step 21: According to preset test parameters, each driver instance is called through a preset retimer driver interface to perform parallel testing on the transmission cables connected to each retimer; the preset retimer driver interface is compatible with different retimer drivers in the preset retimer driver library.
[0071] Furthermore, when calling each driver instance to perform active testing on the transmission cable, the driver instance can be called to control the retimer to send a test signal to the transmission cable, control the retimer to receive the test signal returned by the transmission cable, and control the retimer to determine the bit error information corresponding to the test signal, and use the bit error information as the active test result of the transmission cable. The bit error information may include the number of bit errors, the bit error rate, etc.
[0072] Based on this, calling each of the driver instances according to preset test parameters to perform parallel testing on the transmission cables connected to each of the retimers includes:
[0073] Step 31: According to preset test parameters, call the driver instance to control the retimer to send a test signal to the transmission cable, control the retimer to receive the test signal returned by the transmission cable, and control the retimer to determine the bit error information corresponding to the test signal, and use the bit error information as the active test result of the transmission cable.
[0074] It should be noted that the present embodiment does not limit the specific form of the test signal, which can be set according to actual application requirements.
[0075] S102: Receive a passive test result of the transmission cable to be reviewed, and review the fault status of the transmission cable to be reviewed according to the passive test result.
[0076] In this embodiment, after screening out the transmission cables to be reviewed, the transmission cables to be reviewed can be further subjected to passive testing, and the fault status of the transmission cables to be reviewed can be reviewed according to the passive test results. Among them, the passive test is to use a cable tester to verify the passive parameters of the cable through testing, such as insertion loss, return loss, crosstalk, etc. There are many test parameters, and all lanes need to be tested for each cable. The passive test has higher test accuracy and higher verification reliability. However, the passive test needs to test all lanes (Lane) of each cable, such as an X8 PCIE cable needs to test its Lane0~7 TX and RX, and a total of 16 sets of passive parameters are obtained. For a large number of cables, the amount of test data is very large. At the same time, the passive test requires the use of high-end test instruments, and the test cost is high. Therefore, in this embodiment, the transmission cable determined to have a cable fault in the active test can be re-inspected through passive testing to improve the reliability of cable detection. At the same time, since active testing has screened out a large number of normal transmission cables, leaving only a small number of transmission cables suspected of faults to be reviewed, the workload of passive testing can be effectively reduced, thereby effectively improving test efficiency.
[0077] It should be noted that since the passive test needs to be performed in dedicated equipment, this client only needs to receive the passive test results and review the fault status of the transmission cables to be reviewed based on the passive test results. After review, the fault status can include three types, namely: cable not faulty, cable faulty, and cable correction passed.
[0078] S103: Upload the fault status, active test results, and passive test results of the transmission cable to the server, so that the server can collect statistics of cable fault data corresponding to the transmission cable.
[0079] After testing the transmission cable, this embodiment can upload the fault status, active test results, and passive test results of the transmission cable to the server, so that the server can count the cable fault data corresponding to the transmission cable. In this way, the fault conditions of multiple transmission cables can be batch analyzed based on the server, thereby improving the comprehensiveness of the cable test.
[0080] It should be noted that the present embodiment is not limited to specific cable fault data, for example, it may be a cable failure rate, a test pass rate, etc.
[0081] Of course, in addition to uploading fault status, active test results, and passive test results, in order to facilitate the control of the cable production quality of the manufacturer, the production batch and manufacturer of the transmission cable can also be obtained, and the production batch and manufacturer can also be uploaded to the server. In this way, the cable fault data corresponding to different production batches and different manufacturers can also be counted on the server.
[0082] Based on this, the method may further include:
[0083] Step 41: Obtain the production batch and manufacturer of the transmission cable;
[0084] Step 42: Upload the production batch and manufacturer of the transmission cable to the server, so that the server can count the cable fault data corresponding to different production batches and different manufacturers.
[0085] Furthermore, since the reliability of active testing is lower than that of passive testing, and the reliability of active testing is affected by the type of retimer and the driver of the retimer, in order to optimize the active test items and improve the reliability of active testing, the present embodiment may also upload the retimer type and the retimer driver version corresponding to the retimer of the test transmission cable to the server, so that the server can count the misjudgment data corresponding to different retimer types and different retimer driver versions based on the retimer type, retimer driver version, fault status, active test results, and passive test results, so as to analyze the deficiencies of active testing based on the misjudgment data.
[0086] Based on this, the method may further include:
[0087] Step 51: Upload the retimer type and retimer driver version corresponding to the retimer to the server, so that the server can count the misjudgment data corresponding to different retimer types and different retimer driver versions based on the retimer type, retimer driver version, the fault status, active test results, and passive test results.
[0088] Furthermore, in addition to uploading the fault status, active test results, and passive test results to the server, the client can also save the above three types of data. For the convenience of query, the cable information of the transmission cable (such as cable material number, cable identification, cable production batch, cable manufacturer, etc.) can be obtained, and the cable information can be established with the fault status, active test results, and passive test results of the transmission cable. The corresponding relationship is saved. When querying, the query instruction can be received, and the cable information to be queried in the query instruction can be extracted, and then the target corresponding relationship containing the cable information to be queried can be found, and the target corresponding relationship can be output.
[0089] Based on this, the method may further include:
[0090] Step 61: Acquire cable information of each transmission cable, establish a correspondence between the cable information and the fault state, the active test result, and the passive test result, and save the correspondence;
[0091] Step 62: receiving a query instruction, and extracting the cable information to be queried in the query instruction;
[0092] Step 63: searching for a target correspondence relationship including the cable information to be queried, and outputting the target correspondence relationship.
[0093] Based on the above embodiments, the present invention can firstly use the retimer to perform active testing on the transmission cable to obtain active test results, determine the fault state of the transmission cable according to the active test results, and mark the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed. Subsequently, the passive test results of the transmission cable to be reviewed can be received, and the fault state of the transmission cable to be reviewed can be reviewed according to the passive test results. That is, the present invention can firstly perform a first round of testing on the transmission cable based on an active test method with low test cost and high test efficiency, and for a small number of transmission cables determined to be cable faults by active testing, in order to further improve the test reliability, the present invention can mark this batch of transmission cables as transmission cables to be reviewed, and perform a secondary test on the transmission cable to be reviewed based on a passive test method with a higher test cost than the active test method but a higher test accuracy than the active test method, so as to review the fault state of the transmission cable to be reviewed. Finally, the present invention can upload the fault state, active test results, and passive test results of the transmission cable to the server, so that the server can count the cable fault data corresponding to the transmission cable. In this way, the test cost and test effectiveness of the transmission cable can be effectively balanced, and it is conducive to batch analysis of transmission cable fault conditions, thereby improving the overall reliability of transmission cable testing.
[0094] The cable testing method is fully introduced below based on a specific system structure diagram. The present invention proposes a server cable testing system, such as Figure 2 The specific implementation process is as follows:
[0095] Design the client test setup module. This module classifies all parameters required for the active test process according to the nature of the parameters, including PN type parameters, retimer driver tool type parameters, parallel test type parameters, test benchmark type parameters and working directory type parameters. The following is an introduction to the various parameters:
[0096] PN parameters: Cables are uniquely identified by PN and QID. PN is a specific cable, and QID is a different number under PN. Once the cable PN number is determined, its corresponding test parameters can be determined. Each PN parameter is recorded in an Excel format template, and users can manage the parameters by editing the document and importing in batches.
[0097] Retimer driver tool parameters: Each retimer has a corresponding retiming chip (which may be produced by different manufacturers), and the chip corresponds to the driver tool. You can refer to the description in the tool manual and run the tool to operate the retimer for testing. As long as the driver tool input and output meet the system specifications, it can be flexibly connected for active testing.
[0098] Parallel test parameters: In active testing, the host computer generally communicates with multiple retimers through a standardized communication protocol interface (such as USB-I2C). In order to perform parallel testing, it is necessary to set the test parameters of each retimer. The number of parallel tests at one time is affected by many factors, such as the number of addresses specified by the communication protocol, the number of retimers in the actual environment, and the number of concurrent runs limited by each retimer driver tool.
[0099] Test benchmark parameters: The indicator threshold used to determine whether the test succeeds or fails, which needs to be set according to the actual design indicators.
[0100] Working directory parameters: used for related directories required for system operation.
[0101] Design the client active test management module. This module manages the active test process, which requires the cooperation of hardware, including the retimer card as the test equipment, the insertion loss board (ISI board) as the signal transmission equipment, and the cable fixture board as the cable connector. Through the above test setting module, the relevant parameters have been set for each physically connected retimer. When starting the active test, enter the PN number of the cable to be tested in this round, match the relevant parameters of the cable test, and activate the corresponding number of test sub-items according to the number of parallel tests that have been configured (for example, start 4 test sub-items). The test sub-item is the retimer. Then for each cable to be tested, scan and identify the QID of the cable through a barcode scanner and start the test. According to the settings, this test system will call and run the corresponding retiming driver tool, parse the test results output by the driver tool, and determine whether the cable has problems based on the judgment criteria.
[0102] Design client active record management module. This module manages active test history data and retrieves target test data through search conditions such as test start time, cable PN, and cable QID. The retrieved data is exported as a test report in file format.
[0103] Design client active data upload management module. This module is used to upload active test data to the server. For easy management, according to the different states of data upload, it is divided into windows such as pending upload, uploaded and cancelled. When the user confirms that the network is connected, the upload is started. The system will identify the local data that has not been uploaded, automatically package and upload it to the server, and update the local upload status.
[0104] Design a client passive test management module. The advantages of active testing are high test efficiency and low test cost, but the accuracy of test results, especially the identification of test failures, is relatively low. Therefore, for cables that are identified as problematic in active testing, in order to ensure accuracy and reduce the chance of misjudgment, after inspecting and repairing the cables, secondary verification is performed through passive testing. The passive test data is imported and uploaded through this module, and a comprehensive judgment is made on the tested cables based on this. When making a judgment, the reference priority of the passive test result is higher than the active test result. All tested cables will be divided into cables that passed the test, cables with test problems, and cables that passed the correction according to the final judgment results.
[0105] Design a client-side problem cable management module. Compared with cables that have passed the test, users (cable manufacturers and server design units) are more concerned about testing problematic cables and correcting cables that have passed the test. This module centrally records and manages such cables. Users can retrieve target cable information based on search conditions such as cable type, cable PN, and cable QID.
[0106] Design a server-side data receiving module. This module communicates with the data upload unit in the client data management module through the general Http protocol, and is used to receive the cable test data file uploaded by the client, and then parse the file and store the cable test data in the database.
[0107] Design a server-side data retrieval module. This module is used to check the target test data according to the user's screening conditions. The screening conditions are related to our own data storage logic. For example, it can be searched by internal project name, cable manufacturer name, internal material number name, technical platform, etc.
[0108] Design a server-side data analysis module. This module sets analysis indicators, periodically performs statistical analysis on the cable test data uploaded by each client, and presents it in the form of charts. For example, compare the test pass rates of different batches from the same cable factory to monitor cable quality fluctuations; compare the test pass rates of the same batch from different cable factories to compare the quality; compare the results of active and passive tests through a large amount of test data, reversely optimize the active test process, improve the reliability of active test results, and reduce the chance of misjudgment.
[0109] The cable testing device, client device, cable testing system, computer program product, and computer-readable storage medium provided in the embodiments of the present invention are introduced below. The cable testing device, client device, cable testing system, computer program product, and computer-readable storage medium described below can be referenced to the cable testing method described above.
[0110] Please refer to Figure 3 , Figure 3A structural block diagram of a cable testing device provided by an embodiment of the present invention, the device may include:
[0111] The active test module 301 is used to perform an active test on the transmission cable using a retimer to obtain an active test result, determine the fault state of the transmission cable according to the active test result, and mark the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed;
[0112] A passive test module 302, used for receiving the passive test result of the transmission cable to be reviewed, and reviewing the fault state of the transmission cable to be reviewed according to the passive test result;
[0113] The uploading module 303 is used to upload the fault status, active test results, and passive test results of the transmission cable to the server, so that the server can collect statistics of cable fault data corresponding to the transmission cable.
[0114] Optionally, the device may further include:
[0115] A saving module, used for acquiring the cable information of each transmission cable, establishing a corresponding relationship between the cable information and the fault state, the active test result, and the passive test result, and saving the corresponding relationship;
[0116] A query instruction receiving module, used for receiving a query instruction and extracting the cable information to be queried in the query instruction;
[0117] The query module is used to search for a target correspondence relationship including the cable information to be queried, and output the target correspondence relationship.
[0118] Optionally, the device may further include:
[0119] An acquisition module, used to acquire the production batch and manufacturer of the transmission cable;
[0120] The uploading module 303 may also be used to upload the production batch and manufacturer of the transmission cable to the server, so that the server can count the cable fault data corresponding to different production batches and different manufacturers.
[0121] Optionally, the device may further include:
[0122] The upload module 303 can also be used to upload the retimer type and retimer driver version corresponding to the retimer to the server, so that the server can count the misjudgment data corresponding to different retimer types and different retimer driver versions based on the retimer type, retimer driver version, the fault status, active test results, and passive test results.
[0123] Optionally, the active test module 301 includes:
[0124] A parameter acquisition submodule, used to obtain the cable part number corresponding to the transmission cable, and query the preset test parameters, preset reference parameters, and retimer type corresponding to the cable part number;
[0125] A driver acquisition submodule, used for searching a corresponding retimer driver in a preset retimer driver library according to the retimer type;
[0126] A driver instance creation submodule, used for obtaining a preset number of parallel tests corresponding to the retimer driver, creating a number of driver instances corresponding to the preset number of parallel tests based on the retimer driver, and establishing a corresponding relationship between the retimer and the driver instance;
[0127] The active test submodule is used to call each of the driving instances according to preset test parameters to perform parallel tests on the transmission cables connected to each of the retimers when detecting that the transmission cable is connected to the retimer, so as to obtain active test results of each of the transmission cables;
[0128] A verification submodule is used to verify the active test result using the preset reference parameter and determine whether the active test result passes the verification; if the active test result passes the verification, the fault state of the corresponding transmission cable is determined to be that the cable is not faulty; if the active test result does not pass the verification, the fault state of the corresponding transmission cable is determined to be a cable fault.
[0129] Optionally, the active test submodule may be used to:
[0130] According to preset test parameters, each driver instance is called through a preset retimer driver interface to perform parallel testing on the transmission cables connected to each retimer; the preset retimer driver interface is compatible with different retimer drivers in the preset retimer driver library.
[0131] Optionally, the active test submodule may be used to:
[0132] According to preset test parameters, the driver instance is called to control the retimer to send a test signal to the transmission cable, control the retimer to receive the test signal returned by the transmission cable, and control the retimer to determine the bit error information corresponding to the test signal, and use the bit error information as the active test result of the transmission cable.
[0133] Please refer to Figure 4 , Figure 4This is a structural block diagram of a client device provided in an embodiment of the present invention. The embodiment of the present invention provides a client device 10, including a processor 11 and a memory 12; wherein the memory 12 is used to store a computer program; and the processor 11 is used to execute the cable testing method provided in the aforementioned embodiment when executing the computer program.
[0134] For the specific process of the above-mentioned cable testing method, reference may be made to the corresponding contents provided in the aforementioned embodiments, which will not be repeated here.
[0135] Furthermore, the memory 12 as a carrier for storing resources may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., and the storage method may be temporary storage or permanent storage.
[0136] In addition, the client device 10 also includes a power supply 13, a communication interface 14, an input / output interface 15 and a communication bus 16; wherein the power supply 13 is used to provide working voltage for each hardware device on the client device 10; the communication interface 14 can create a data transmission channel between the client device 10 and an external device, and the communication protocol it follows is any communication protocol that can be applied to the technical solution of the present invention, and is not specifically limited here; the input / output interface 15 is used to obtain external input data or output data to the outside world, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.
[0137] Please refer to Figure 5 , Figure 5 This is a structural block diagram of a cable testing system provided by an embodiment of the present invention. The cable testing system may include:
[0138] At least one client device 10, configured to execute the cable testing method as described above;
[0139] The server device 20 is used to receive the fault status, active test results, and passive test results of the transmission cable uploaded by the client device, and to collect statistics of cable fault data corresponding to the transmission cable according to the fault status, active test results, and passive test results.
[0140] Since the embodiments of the cable testing system part correspond to the embodiments of the cable testing method part, the embodiments of the cable testing system part refer to the description of the embodiments of the cable testing method part, which will not be repeated here.
[0141] An embodiment of the present invention further provides a computer program product, including a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the cable testing method described in the above embodiment is implemented.
[0142] Since the embodiments of the computer program product part correspond to the embodiments of the cable testing method part, please refer to the description of the embodiments of the cable testing method part for the embodiments of the computer program product part, and will not be repeated here.
[0143] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the cable testing method described in the above embodiment is implemented.
[0144] Since the embodiments of the computer-readable storage medium part correspond to the embodiments of the cable testing method part, the embodiments of the storage medium part refer to the description of the embodiments of the cable testing method part, which will not be repeated here.
[0145] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0146] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0147] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0148] The above is a detailed introduction to a cable testing method, device, client device, system and storage medium provided by the present invention. This article uses specific examples to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of the present invention, the present invention can also be improved and modified, and these improvements and modifications also fall within the scope of protection of the present invention.
Claims
1. A cable testing method, characterized in that: include: Performing an active test on the transmission cable using a retimer to obtain an active test result, determining a fault state of the transmission cable according to the active test result, and marking the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed; Receiving a passive test result of the transmission cable to be reviewed, and reviewing the fault state of the transmission cable to be reviewed according to the passive test result; The fault status, active test results, and passive test results of the transmission cable are uploaded to the server, so that the server can collect statistics on cable fault data corresponding to the transmission cable.
2. The cable testing method according to claim 1, characterized in that: Also includes: Acquire cable information of each of the transmission cables, establish a correspondence between the cable information and the fault state, the active test result, and the passive test result, and save the correspondence; Receiving a query instruction, and extracting the cable information to be queried in the query instruction; Find a target corresponding relationship that includes the cable information to be queried, and output the target corresponding relationship.
3. The cable testing method according to claim 1, characterized in that: Also includes: Obtain the production batch and manufacturer of the transmission cable; The production batch and manufacturer of the transmission cable are uploaded to the server, so that the server can count the cable fault data corresponding to different production batches and different manufacturers.
4. The cable testing method according to any one of claims 1 to 3, characterized in that: The method of performing an active test on the transmission cable by using a retimer to obtain an active test result, and determining a fault state of the transmission cable according to the active test result, comprises: Obtaining a cable part number corresponding to the transmission cable, and querying preset test parameters, preset reference parameters, and a retimer type corresponding to the cable part number; Searching for a corresponding retimer driver in a preset retimer driver library according to the retimer type; Obtaining a preset number of parallel tests corresponding to the retimer driver, creating a number of driver instances corresponding to the preset number of parallel tests based on the retimer driver, and establishing a corresponding relationship between the retimer and the driver instance; When it is detected that the transmission cable is connected to the retimer, calling each of the driver instances according to preset test parameters to perform parallel tests on the transmission cables connected to each of the retimers to obtain active test results of each of the transmission cables; Verifying the active test result using the preset reference parameter, and determining whether the active test result passes the verification; If the active test result passes the verification, it is determined that the fault state of the corresponding transmission cable is that the cable is not faulty; If the active test result fails the verification, it is determined that the fault state of the corresponding transmission cable is a cable fault.
5. The cable testing method according to claim 4, characterized in that: The calling of each of the driver instances according to the preset test parameters to perform parallel testing on the transmission cables connected to each of the retimers includes: According to preset test parameters, each driver instance is called through a preset retimer driver interface to perform parallel testing on the transmission cables connected to each retimer; the preset retimer driver interface is compatible with different retimer drivers in the preset retimer driver library.
6. The cable testing method according to claim 4, characterized in that: Calling each of the driver instances according to preset test parameters to perform parallel testing on the transmission cables connected to each of the retimers includes: According to preset test parameters, the driver instance is called to control the retimer to send a test signal to the transmission cable, control the retimer to receive the test signal returned by the transmission cable, and control the retimer to determine the bit error information corresponding to the test signal, and use the bit error information as the active test result of the transmission cable.
7. A cable testing device, characterized in that: include: An active test module, used for performing an active test on the transmission cable using a retimer to obtain an active test result, determining a fault state of the transmission cable according to the active test result, and marking the transmission cable whose fault state is a cable fault as a transmission cable to be reviewed; A passive test module, used for receiving the passive test result of the transmission cable to be reviewed, and reviewing the fault state of the transmission cable to be reviewed according to the passive test result; The uploading module is used to upload the fault status, active test results, and passive test results of the transmission cable to the server, so that the server can collect statistics of cable fault data corresponding to the transmission cable.
8. A client device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the cable testing method according to any one of claims 1 to 6 when executing the computer program.
9. A cable testing system, characterized in that: include: A client device, configured to execute the cable testing method according to any one of claims 1 to 6; The server device is used to receive the fault status, active test results, and passive test results of the transmission cable uploaded by the client device, and to collect statistics of cable fault data corresponding to the transmission cable according to the fault status, active test results, and passive test results.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the cable testing method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Cable test method and device, computer equipment and storage medium
CN116708232A
Method, device and equipment for detecting fault line of power distribution network and storage medium
CN117554748A
Efficient integrated test method and tester for communication cable
CN118573273A
Matched filter testing of data transmission cables
US20120016618A1
Active cable testing
US20160124034A1