Method for determining cable quality, test device and test system
By sending and receiving pseudo-random binary sequences to and from the cable, the bit error rate is calculated to assess the accuracy of data transmission over the cable. This solves the problem in existing technologies where the accuracy of cable data transmission cannot be determined, and enables efficient selection of cables with high accuracy.
Patent Information
- Application Number
- CN202310323377.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-29
- Publication Date
- 2026-03-03
- Estimated Expiration
- 2043-03-29
AI Technical Summary
Existing technologies cannot effectively determine the accuracy of data transmission through cables, and passive testing alone cannot achieve reliable cable measurement.
The bit error rate is calculated by sending and receiving pseudo-random binary sequences (PRBS) to and from the cable under test to determine the accuracy of data transmission. A bit error rate within a set error range is used to determine whether the cable is qualified.
This enabled the effective assessment of the accuracy of cable data transmission, allowing for the selection of cables with high data transmission accuracy and improving the quality of cable shipments.
Smart Images

Figure CN116318468B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of cable technology, and more specifically, to a method for determining cable conformity, a testing device, a computer-readable storage medium, and a testing system. Background Technology
[0002] Currently, cable manufacturers only conduct random inspections on a small number of cables before shipping them in large quantities. The inspection method is generally to use a vector network analyzer to perform passive testing on the cables. However, passive testing can only measure the S-parameters of the cable in various dimensions, the impedance of the cable, and the loss of the cable, but it cannot measure the reliability of the cable (determine the accuracy of the cable data transmission). Summary of the Invention
[0003] This application provides a method, testing equipment, computer-readable storage medium, and testing system for determining cable qualification, to at least solve the problem in the prior art that the accuracy of cable data transmission cannot be determined.
[0004] According to one embodiment of this application, a method for determining cable qualification is provided. The output end of a testing device is communicatively connected to one end of the cable under test, and the input end of the testing device is communicatively connected to the other end of the cable under test. The method for determining cable qualification is applied to the testing device. The method includes: sending a first sequence to the cable under test, the first sequence including a plurality of first digits, each of which is 0 or 1; receiving a second sequence from the cable under test, the second sequence including a plurality of second digits, each of which is 0 or 1, and each second digit corresponds one-to-one with a first digit; determining a first bit error rate based on the first sequence and the second sequence, the first bit error rate being the ratio of a first quantity to a second quantity, where the first quantity is the number of first target digits, the first target digits are second digits in the second sequence that satisfy a first preset condition, the first preset condition being that the second digit is the same as the corresponding first digit, and the second quantity is the number of first digits in the first sequence; and determining that the cable under test is qualified if the first bit error rate is within the error range.
[0005] In an exemplary embodiment, before determining that the cable under test is qualified, the method includes: sending a first sequence to a plurality of qualified cables, wherein the qualified cables have the same model number and the model number of the qualified cables is the same as that of the cable under test; receiving a third sequence from each of the qualified cables, wherein the third sequence includes a plurality of third digits, wherein the third digits are 0 or 1, and the third sequence corresponds one-to-one with the first sequence and the third digits correspond one-to-one with the first digits; determining a plurality of second bit error rates based on each first sequence and the corresponding third sequence, wherein the second bit error rates correspond one-to-one with the third sequences, the second bit error rates being the ratio of a third quantity to a fourth quantity, wherein the third quantity is the number of second target digits, the second target digits being the third digits in the third sequence corresponding to the second bit error rate that satisfy a second preset condition, wherein the second preset condition is that the third digit is the same as the corresponding first digit, and the fourth quantity is the number of first digits in the first sequence corresponding to the second bit error rate; and determining an error range based on all the second bit error rates, wherein the upper limit of the error range is the largest second bit error rate and the lower limit of the error range is the smallest second bit error rate.
[0006] In an exemplary embodiment, the method further includes: sending a preset number of first sequences to each of the cables under test, wherein each first sequence is identical; receiving a second sequence from the cables under test, wherein the second sequence corresponds one-to-one with the first sequence; determining a plurality of first bit error rates based on the first sequence and the corresponding second sequence, wherein each first bit error rate corresponds one-to-one with the first sequence; and determining that the cables under test are qualified if each first bit error rate is within the error range.
[0007] In an exemplary embodiment, the method further includes: sending a plurality of first sequences to the cable under test, wherein any two first sequences are different from each other; receiving a fifth sequence from the cable under test, the fifth sequence including a plurality of fifth digits, wherein the fifth digits are 0 or 1, the fifth sequence and the first sequence are in one-to-one correspondence; determining a plurality of fourth bit error rates based on each first sequence and the fifth sequence, wherein the fourth bit error rates are in one-to-one correspondence with the fifth sequences, the fourth bit error rates being the ratio of a seventh quantity to an eighth quantity, wherein the seventh quantity is the number of fourth target digits, the fourth target digits being the fifth digits in the fifth sequence corresponding to the fourth bit error rate that satisfy a fourth preset condition, wherein the fourth preset condition is that the fifth digit is the same as the corresponding first digit, and the eighth quantity is the number of first digits in the first sequence corresponding to the fourth bit error rate; and determining that the cable under test is qualified when all the fourth bit error rates are within the error range.
[0008] In an exemplary embodiment, the cable under test has a first number, the testing device is communicatively connected to the display screen, and after determining that the cable under test is qualified, the method further includes: outputting the first number and the first bit error rate to the display screen.
[0009] In an exemplary embodiment, the cable under test includes multiple data channels, and the method includes: sending a first sequence to each of the data channels respectively; receiving a fourth sequence from each of the data channels, the fourth sequence including multiple fourth digits, each fourth digit being 0 or 1, the fourth sequence corresponding one-to-one with the first sequence, and each fourth digit corresponding one-to-one with the first digit; determining multiple third bit error rates based on each first sequence and the corresponding fourth sequence, the third bit error rate corresponding one-to-one with the fourth sequence, the third bit error rate being the ratio of a fifth quantity to a sixth quantity, the fifth quantity being the number of third target digits, the third target digits being the fourth digits in the fourth sequence corresponding to the third bit error rate that satisfy a third preset condition, the third preset condition being that the fourth digit is the same as the corresponding first digit, and the sixth quantity being the number of first digits in the first sequence corresponding to the third bit error rate; and determining that the cable under test is qualified if all the third bit error rates are within the error range.
[0010] In one exemplary embodiment, each of the data channels has a second number, the test device is communicatively connected to the display screen, and after determining that the cable under test is qualified, the method further includes: outputting each of the second numbers and the third bit error rate corresponding to each of the second numbers to the display screen.
[0011] According to another embodiment of this application, a testing device is provided. The output end of the testing device is communicatively connected to one end of the cable under test, and the input end of the testing device is communicatively connected to the other end of the cable under test. The testing device includes: a first transmitting module, configured to transmit a first sequence to the cable under test, the first sequence including a plurality of first digits, the first digits being 0 or 1; a first receiving module, configured to receive a second sequence from the cable under test, the second sequence including a plurality of second digits, the second digits being 0 or 1, the second digits corresponding one-to-one with the first digits; a first determining module, configured to determine a first bit error rate based on the first sequence and the second sequence, the first bit error rate being the ratio of a first quantity to a second quantity, the first quantity being the number of first target digits, the first target digits being the second digits in the second sequence that satisfy a first preset condition, the first preset condition being that the second digit is the same as the corresponding first digit, and the second quantity being the number of first digits in the first sequence; and a second determining module, configured to determine that the cable under test is qualified if the first bit error rate is within the error range.
[0012] According to another embodiment of this application, a computer-readable storage medium is provided, wherein a computer program is stored therein, wherein the computer program, when executed by a processor, implements the steps of any of the methods described above.
[0013] According to another embodiment of this application, a testing system is provided, the testing system comprising: a testing device, the output end of the testing device being communicatively connected to one end of the cable under test, the input end of the testing device being communicatively connected to the other end of the cable under test, the testing device implementing the steps of any of the methods described; and a display screen, the display screen being communicatively connected to the testing device, the display screen being used to display test results.
[0014] According to this application, the testing equipment sends a binary sequence to the cable under test and receives a binary sequence from the cable under test. Based on these two binary sequences, a first bit error rate is determined. Since the first bit error rate represents the accuracy of data transmission of the cable under test, if the first bit error rate is within the error range, it is determined that the accuracy of data transmission of the cable under test is very high. This solves the problem in the prior art that the accuracy of cable data transmission cannot be determined, and achieves the effect of screening out cables with high data transmission accuracy. Attached Figure Description
[0015] Figure 1 This is a flowchart of a method for determining the conformity of a cable according to an embodiment of this application;
[0016] Figure 2This is a structural block diagram of a test device according to an embodiment of this application. Detailed Implementation
[0017] The embodiments of this application will be described in detail below with reference to the accompanying drawings and examples.
[0018] It should be noted that the terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence.
[0019] This embodiment provides a method for determining the qualification of a cable. This method operates on the aforementioned testing equipment. The output of the testing equipment is communicatively connected to one end of the cable under test, and the input of the testing equipment is communicatively connected to the other end of the cable under test. Figure 1 This is a flowchart based on an embodiment of this application, such as... Figure 1 As shown, the process includes the following steps:
[0020] Step S102: Send a first sequence to the cable under test. The first sequence includes multiple first digits, where each first digit is 0 or 1.
[0021] Specifically, the first sequence mentioned above is a PRBS (Pseudo-Random Binary Sequence), which is sent by the test equipment to the cable under test.
[0022] Step S104: Receive a second sequence from the cable under test. The second sequence includes multiple second digits, each of which is 0 or 1, and each second digit corresponds one-to-one with the first digit.
[0023] Specifically, the second sequence mentioned above is a PRBS. After the test equipment sends a PRBS to the cable under test, the output of the test equipment receives a PRBS from the cable under test.
[0024] Step S106: Determine a first bit error rate based on the first sequence and the second sequence. The first bit error rate is the ratio of a first quantity to a second quantity. The first quantity is the number of first target digits. The first target digit is the second digit in the second sequence that satisfies a first preset condition. The first preset condition is that the second digit is the same as the corresponding first digit. The second quantity is the number of first digits in the first sequence.
[0025] Specifically, the aforementioned first bit error rate represents the accuracy of data transmission of the cable under test. The lower the first bit error rate, the higher the accuracy of data transmission of the cable under test and the higher the reliability of the cable under test. If the cable under test can transmit data completely accurately, the PRBS sent by the test device to the cable under test should be the same as the PRBS received by the input end of the test device from the cable under test, that is, the aforementioned first bit error rate should be 0.
[0026] Specifically, for example, the PRBS sent by the measuring device to the cable under test is 1011011110, and the PRBS received by the measuring device from the cable under test is 1010011110. The fourth digit of the PRBS is transmitted incorrectly. In this case, the bit error rate is 10%. It should be noted that in practice, the number of digits in a PRBS is very large.
[0027] Step S108: If the first bit error rate is within the error range, the cable under test is determined to be qualified.
[0028] Specifically, the upper limit of the error range is a value close to 0. For example, if the first bit error rate is less than 0.1%, the cable under test is determined to be qualified, so as to ensure that the data transmission accuracy of the qualified cable under test is very high.
[0029] Through the above steps, the testing equipment sends a binary sequence to the cable under test and receives a binary sequence from the cable under test. Based on these two binary sequences, a first bit error rate is determined. The first bit error rate represents the accuracy of data transmission of the cable under test. If the first bit error rate is within the error range, the accuracy of data transmission of the cable under test is determined to be very high, which solves the problem that the accuracy of cable data transmission cannot be determined in the prior art.
[0030] The entity performing the above steps can be a terminal, but is not limited to this.
[0031] To select cables with higher data transmission accuracy, in one optional embodiment, prior to step S108, the method further includes:
[0032] The first sequence is sent to multiple qualified cables respectively, and the model of each qualified cable is the same as that of the cable under test.
[0033] Specifically, the number of qualified cables is very large. These qualified cables have been used for a long time in actual application scenarios without any data transmission errors. Furthermore, since different models of cables have different impedance values, lengths, and loss rates, these parameters can affect the accuracy of cable data transmission. Therefore, qualified cables of the same model are selected to determine the error range for testing the qualification of the cable under test.
[0034] Receive a third sequence from each of the above-mentioned qualified cables. The third sequence includes multiple third digits, each of which is 0 or 1. The third sequence corresponds one-to-one with the first sequence, and the third digit corresponds one-to-one with the first digit.
[0035] Based on each of the first sequences and the corresponding third sequences, multiple second bit error rates are determined. Each second bit error rate corresponds one-to-one with the third sequence. The second bit error rate is the ratio of the third quantity to the fourth quantity. The third quantity is the number of second target digits. The second target digit is the third digit in the third sequence corresponding to the second bit error rate that satisfies the second preset condition. The second preset condition is that the third digit is the same as the corresponding first digit. The fourth quantity is the number of first digits in the first sequence corresponding to the second bit error rate.
[0036] The error range is determined based on all of the aforementioned second bit error rates, with the upper limit of the error range being the largest of the aforementioned second bit error rates and the lower limit of the error range being the smallest of the aforementioned second bit error rates.
[0037] In this embodiment, the third sequence is PRBS. The testing device sends PRBS to the qualified cable and receives PRBS from the qualified cable. Based on the sent and received PRBS, the second bit error rate is determined. The second bit error rate represents the accuracy of data transmission of the qualified cable. The error range is determined based on the second bit error rate, that is, based on the accuracy of data transmission that the qualified cable can achieve, the error range is determined, thereby ensuring the accuracy of the error range, thereby achieving the purpose of screening out cables with higher data transmission accuracy.
[0038] It should be noted that there is no limit to the number of first sequences that the testing equipment sends to qualified cables. The more first sequences used, the more accurate the determined error range will be.
[0039] To select cables with higher data transmission accuracy, another alternative approach includes the following:
[0040] A preset number of the first sequence are sent to each of the aforementioned cables under test, and all of the aforementioned first sequences are identical.
[0041] Receive the second sequence from the cable under test, wherein the second sequence corresponds one-to-one with the first sequence;
[0042] Based on the first sequence and the corresponding second sequence, multiple first bit error rates are determined, and each first bit error rate corresponds one-to-one with the first sequence.
[0043] If all of the above-mentioned first bit error rates are within the above-mentioned error range, the above-mentioned cable under test is determined to be qualified.
[0044] In this embodiment, since the number of digits contained in a PRBS is limited, the testing device sends a preset number of PRBS to the cable under test and receives a preset number of PRBS from the cable under test, determines the preset number of first bit error rates, and determines that the cable under test is qualified if the preset number of first bit error rates are all within the error range, thus avoiding randomness and further determining the accuracy of data transmission of the cable under test, thereby achieving the purpose of screening out cables with higher data transmission accuracy.
[0045] To select cables with higher data transmission accuracy, another alternative approach includes the following:
[0046] Send multiple of the first sequences mentioned above to the cable under test, wherein any two of the first sequences are different from each other;
[0047] Specifically, 10 levels of PRBS are set. The number of digits contained in different levels of PRBS is different, and the order of the digits 0 and digit 1 contained in different levels of PRBS is different. The test equipment sends PRBS of any level to the cable under test.
[0048] Receive a fifth sequence from the cable under test, the fifth sequence including multiple fifth digits, the fifth digit being 0 or 1, the fifth sequence corresponding one-to-one with the first sequence, and the fifth digit corresponding one-to-one with the first digit;
[0049] Based on the aforementioned first sequence and the aforementioned fifth sequence, multiple fourth bit error rates are determined. Each of the aforementioned fourth bit error rates corresponds one-to-one with the aforementioned fifth sequence. The aforementioned fourth bit error rate is the ratio of the seventh quantity to the eighth quantity. The aforementioned seventh quantity is the number of fourth target digits. The aforementioned fourth target digits are the aforementioned fifth digits in the aforementioned fifth sequence corresponding to the aforementioned fourth bit error rate that satisfy the fourth preset condition. The aforementioned fourth preset condition is that the aforementioned fifth digit is the same as the corresponding aforementioned first digit. The aforementioned eighth quantity is the number of the aforementioned first digits in the aforementioned first sequence corresponding to the aforementioned fourth bit error rate.
[0050] If all of the above-mentioned fourth bit error rates are within the above-mentioned error range, the above-mentioned cable under test is determined to be qualified.
[0051] In this embodiment, since it is impossible to continuously send the same binary sequence to the cable under test in real-world application scenarios, in order to better reflect real-world application scenarios, the testing device sends multiple different PRBS to the cable under test and receives PRBS from the cable under test. Based on the sent and received PRBS, multiple fourth bit error rates are determined. If all fourth bit error rates are within the error range, the cable under test is determined to be qualified, avoiding randomness, in order to further determine the accuracy of data transmission of the cable under test, thereby achieving the purpose of screening out cables with higher data transmission accuracy.
[0052] It should be noted that the cable under test has a first number, and the test equipment is connected to the display screen.
[0053] To visually demonstrate the accuracy of data transmission from a qualified cable under test, in an optional embodiment, after step S108, the method further includes:
[0054] The first number and the first bit error rate are output to the display screen.
[0055] In this embodiment, the number and bit error rate of the qualified test cable are displayed on the screen to intuitively show the accuracy of data transmission of the qualified test cable.
[0056] It should be noted that the cable under test includes multiple data channels.
[0057] To determine the accuracy of data transmission in the data channel of the cable under test, in one optional approach, the above method further includes:
[0058] Step S202: Send the first sequence to each of the aforementioned data channels respectively;
[0059] Step S204: Receive a fourth sequence from each of the above data channels. The fourth sequence includes a plurality of fourth digits, each of which is 0 or 1. The fourth sequence corresponds one-to-one with the first sequence, and the fourth digit corresponds one-to-one with the first digit.
[0060] Step S206: Based on each of the first sequences and the corresponding fourth sequences, determine multiple third bit error rates. Each third bit error rate corresponds one-to-one with the fourth sequence. The third bit error rate is the ratio of the fifth quantity to the sixth quantity. The fifth quantity is the number of third target digits. The third target digit is the fourth digit in the fourth sequence corresponding to the third bit error rate that satisfies the third preset condition. The third preset condition is that the fourth digit is the same as the corresponding first digit. The sixth quantity is the number of first digits in the first sequence corresponding to the third bit error rate.
[0061] Step S208: If all the above-mentioned third bit error rates are within the above-mentioned error range, the above-mentioned cable under test is determined to be qualified.
[0062] In this embodiment, the fourth sequence is PRBS. The test device sends PRBS to the data channel and receives PRBS from the data channel. Based on the sent and received PRBS, the third bit error rate is determined. The third bit error rate represents the accuracy of data transmission of the corresponding data channel, thereby determining the accuracy of data transmission of each data channel of the cable under test. When all third bit error rates are within the error range, it is determined that the accuracy of data transmission of the cable under test is very high, and the cable under test is determined to be qualified.
[0063] It should be noted that each of the above data channels has a second number, and the above test equipment is communicatively connected to the display screen.
[0064] To visually demonstrate the accuracy of data transmission in each data channel of a qualified cable under test, in one optional embodiment, after step S208, the method further includes:
[0065] The aforementioned second number and the aforementioned third bit error rate corresponding to each of the aforementioned second numbers are output to the aforementioned display screen.
[0066] In this embodiment, the number and bit error rate of each data channel of the qualified cable under test are displayed on the screen to intuitively show the accuracy of data transmission of each data channel of the qualified cable under test.
[0067] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0068] This embodiment also provides a testing device for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0069] Figure 2This is a structural block diagram of the test equipment according to an embodiment of this application, such as... Figure 2 As shown, the device includes:
[0070] The first transmitting module 22 is used to transmit a first sequence to the cable under test, the first sequence including a plurality of first digits, the first digits being 0 or 1;
[0071] Specifically, the first sequence mentioned above is a PRBS (Pseudo-Random Binary Sequence), which is sent by the test equipment to the cable under test.
[0072] The first receiving module 24 is used to receive a second sequence from the cable under test. The second sequence includes multiple second digits, each of which is 0 or 1, and each second digit corresponds one-to-one with the first digit.
[0073] Specifically, the second sequence mentioned above is a PRBS. After the test equipment sends a PRBS to the cable under test, the output of the test equipment receives a PRBS from the cable under test.
[0074] The first determining module 26 is used to determine a first bit error rate based on the first sequence and the second sequence. The first bit error rate is the ratio of a first quantity to a second quantity. The first quantity is the number of first target digits. The first target digit is the second digit in the second sequence that satisfies a first preset condition. The first preset condition is that the second digit is the same as the corresponding first digit. The second quantity is the number of first digits in the first sequence.
[0075] Specifically, the aforementioned first bit error rate represents the accuracy of data transmission of the cable under test. The lower the first bit error rate, the higher the accuracy of data transmission of the cable under test and the higher the reliability of the cable under test. If the cable under test can transmit data completely accurately, the PRBS sent by the test device to the cable under test should be the same as the PRBS received by the input end of the test device from the cable under test, that is, the aforementioned first bit error rate should be 0.
[0076] Specifically, for example, the PRBS sent by the measuring device to the cable under test is 1011011110, and the PRBS received by the measuring device from the cable under test is 1010011110. The fourth digit of the PRBS is transmitted incorrectly. In this case, the bit error rate is 10%. It should be noted that in practice, the number of digits in a PRBS is very large.
[0077] The second determining module 28 is used to determine that the cable under test is qualified if the first bit error rate is within the error range.
[0078] Specifically, the upper limit of the error range is a value close to 0. For example, if the first bit error rate is less than 0.1%, the cable under test is determined to be qualified, so as to ensure that the data transmission accuracy of the qualified cable under test is very high.
[0079] Through the above steps, the testing equipment sends a binary sequence to the cable under test and receives a binary sequence from the cable under test. Based on these two binary sequences, a first bit error rate is determined. The first bit error rate represents the accuracy of data transmission of the cable under test. If the first bit error rate is within the error range, the accuracy of data transmission of the cable under test is determined to be very high, which solves the problem that the accuracy of cable data transmission cannot be determined in the prior art.
[0080] The entity performing the above steps can be a terminal, but is not limited to this.
[0081] To select cables with higher data transmission accuracy, in one optional solution, the aforementioned testing equipment also includes:
[0082] The second transmitting module is used to transmit the first sequence to multiple qualified cables respectively, wherein the qualified cables have the same model and the model of the qualified cables is the same as the model of the cable under test.
[0083] Specifically, the number of qualified cables is very large. These qualified cables have been used for a long time in actual application scenarios without any data transmission errors. Furthermore, since different models of cables have different impedance values, lengths, and loss rates, these parameters can affect the accuracy of cable data transmission. Therefore, qualified cables of the same model are selected to determine the error range for testing the qualification of the cable under test.
[0084] The second receiving module is used to receive a third sequence from each of the above-mentioned qualified cables. The third sequence includes multiple third digits, each of which is 0 or 1. The third sequence corresponds one-to-one with the first sequence, and the third digit corresponds one-to-one with the first digit.
[0085] The third determining module is used to determine multiple second bit error rates based on each of the first sequences and the corresponding third sequences. The second bit error rates correspond one-to-one with the third sequences. The second bit error rate is the ratio of the third quantity to the fourth quantity. The third quantity is the number of second target digits. The second target digit is the third digit in the third sequence corresponding to the second bit error rate that satisfies the second preset condition. The second preset condition is that the third digit is the same as the corresponding first digit. The fourth quantity is the number of first digits in the first sequence corresponding to the second bit error rate.
[0086] The fourth determining module is used to determine the error range based on all the aforementioned second bit error rates, wherein the upper limit of the error range is the largest of the aforementioned second bit error rates, and the lower limit of the error range is the smallest of the aforementioned second bit error rates.
[0087] In this embodiment, the third sequence is PRBS. The testing device sends PRBS to the qualified cable and receives PRBS from the qualified cable. Based on the sent and received PRBS, the second bit error rate is determined. The second bit error rate represents the accuracy of data transmission of the qualified cable. The error range is determined based on the second bit error rate, that is, based on the accuracy of data transmission that the qualified cable can achieve, the error range is determined, thereby ensuring the accuracy of the error range, thereby achieving the purpose of screening out cables with higher data transmission accuracy.
[0088] It should be noted that there is no limit to the number of first sequences that the testing equipment sends to qualified cables. The more first sequences used, the more accurate the determined error range will be.
[0089] To select cables with higher data transmission accuracy, in another alternative approach, the aforementioned testing equipment also includes:
[0090] The third transmitting module is used to send a preset number of the first sequence to each of the above-mentioned cables under test, and all of the above-mentioned first sequences are the same.
[0091] The third receiving module is used to receive the second sequence from the cable under test, and the second sequence corresponds one-to-one with the first sequence.
[0092] The fifth determining module is used to determine multiple first bit error rates based on the first sequence and the corresponding second sequence, wherein each first bit error rate corresponds one-to-one with the first sequence.
[0093] The sixth determining module is used to determine that the cable under test is qualified when all of the above first bit error rates are within the above error range.
[0094] In this embodiment, since the number of digits contained in a PRBS is limited, the testing device sends a preset number of PRBS to the cable under test and receives a preset number of PRBS from the cable under test, determines the preset number of first bit error rates, and determines that the cable under test is qualified if the preset number of first bit error rates are all within the error range, thus avoiding randomness and further determining the accuracy of data transmission of the cable under test, thereby achieving the purpose of screening out cables with higher data transmission accuracy.
[0095] To select cables with higher data transmission accuracy, another alternative solution includes the following testing equipment:
[0096] The fourth transmitting module is used to transmit multiple of the first sequences to the cable under test, wherein any two of the first sequences are different from each other;
[0097] Specifically, 10 levels of PRBS are set. The number of digits contained in different levels of PRBS is different, and the order of the digits 0 and digit 1 contained in different levels of PRBS is different. The test equipment sends PRBS of any level to the cable under test.
[0098] The fourth receiving module is used to receive a fifth sequence from the cable under test. The fifth sequence includes multiple fifth digits, each of which is 0 or 1. The fifth sequence corresponds one-to-one with the first sequence, and the fifth digit corresponds one-to-one with the first digit.
[0099] The seventh determining module is used to determine multiple fourth bit error rates based on each of the first sequences and the fifth sequences. The fourth bit error rates correspond one-to-one with the fifth sequences. The fourth bit error rate is the ratio of the seventh quantity to the eighth quantity. The seventh quantity is the number of fourth target digits. The fourth target digits are the fifth digits in the fifth sequences corresponding to the fourth bit error rates that satisfy the fourth preset condition. The fourth preset condition is that the fifth digits are the same as the corresponding first digits. The eighth quantity is the number of first digits in the first sequences corresponding to the fourth bit error rates.
[0100] The eighth determination module is used to determine whether the cable under test is qualified when all of the above-mentioned fourth bit error rates are within the above-mentioned error range.
[0101] In this embodiment, since it is impossible to continuously send the same binary sequence to the cable under test in real-world application scenarios, in order to better reflect real-world application scenarios, the testing device sends multiple different PRBS to the cable under test and receives PRBS from the cable under test. Based on the sent and received PRBS, multiple fourth bit error rates are determined. If all fourth bit error rates are within the error range, the cable under test is determined to be qualified, avoiding randomness, in order to further determine the accuracy of data transmission of the cable under test, thereby achieving the purpose of screening out cables with higher data transmission accuracy.
[0102] It should be noted that the cable under test has a first number, and the test equipment is connected to the display screen.
[0103] To visually demonstrate the accuracy of data transmission from a qualified cable under test, in one optional embodiment, the aforementioned testing equipment further includes:
[0104] The first output module is used to output the first number and the first bit error rate to the display screen.
[0105] In this embodiment, the number and bit error rate of the qualified test cable are displayed on the screen to intuitively show the accuracy of data transmission of the qualified test cable.
[0106] It should be noted that the cable under test includes multiple data channels.
[0107] To determine the accuracy of data transmission in the data channel of the cable under test, in one optional embodiment, the aforementioned testing equipment further includes:
[0108] The fifth sending module is used to send the first sequence to each of the aforementioned data channels respectively;
[0109] The fifth receiving module is used to receive a fourth sequence from each of the above-mentioned data channels. The fourth sequence includes multiple fourth digits, each of which is 0 or 1. The fourth sequence corresponds one-to-one with the first sequence, and the fourth digit corresponds one-to-one with the first digit.
[0110] The ninth determining module is used to determine multiple third bit error rates based on each of the first sequences and the corresponding fourth sequences. The third bit error rates correspond one-to-one with the fourth sequences. The third bit error rate is the ratio of the fifth quantity to the sixth quantity. The fifth quantity is the number of third target digits. The third target digit is the fourth digit in the fourth sequence corresponding to the third bit error rate that satisfies the third preset condition. The third preset condition is that the fourth digit is the same as the corresponding first digit. The sixth quantity is the number of first digits in the first sequence corresponding to the third bit error rate.
[0111] The tenth determination module is used to determine whether the cable under test is qualified when all the above-mentioned third bit error rates are within the above-mentioned error range.
[0112] In this embodiment, the fourth sequence is PRBS. The test device sends PRBS to the data channel and receives PRBS from the data channel. Based on the sent and received PRBS, the third bit error rate is determined. The third bit error rate represents the accuracy of data transmission of the corresponding data channel, thereby determining the accuracy of data transmission of each data channel of the cable under test. When all third bit error rates are within the error range, it is determined that the accuracy of data transmission of the cable under test is very high, and the cable under test is determined to be qualified.
[0113] It should be noted that each of the above data channels has a second number, and the above test equipment is communicatively connected to the display screen.
[0114] To visually demonstrate the accuracy of data transmission in each data channel of a qualified cable under test, in one optional solution, the aforementioned testing equipment further includes:
[0115] The second output module is used to output each of the above-mentioned second numbers and the third bit error rate corresponding to each of the above-mentioned second numbers to the above-mentioned display screen.
[0116] In this embodiment, the number and bit error rate of each data channel of the qualified cable under test are displayed on the screen to intuitively show the accuracy of data transmission of each data channel of the qualified cable under test.
[0117] It should be noted that the above modules can be implemented by software or hardware. For the latter, they can be implemented in the following ways, but are not limited to: all the above modules are located in the same processor; or, the above modules are located in different processors in any combination.
[0118] Embodiments of this application also provide a computer-readable storage medium storing a computer program, wherein the computer program is configured to execute the steps in any of the above method embodiments when run.
[0119] In one exemplary embodiment, the aforementioned computer-readable storage medium may include, but is not limited to, various media capable of storing computer programs, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard disk, magnetic disk, or optical disk.
[0120] Embodiments of this application also provide a testing system, comprising: a testing device, wherein the output end of the testing device is communicatively connected to one end of the cable under test, and the input end of the testing device is communicatively connected to the other end of the cable under test, and the testing device implements the steps of any of the above-described methods; and a display screen, which is communicatively connected to the testing device and is used to display test results.
[0121] In an exemplary embodiment, the above-mentioned test equipment uses a Retimer motherboard, and the output terminal of the Retimer motherboard is connected to one end of the ISI compensation board, the other end of the ISI compensation board is connected to one end of the cable fixture board, the other end of the cable fixture board is connected to one end of the cable under test, and the other end of the cable under test is connected to the input terminal of the Retimer motherboard.
[0122] Specific examples in this embodiment can be found in the examples described in the above embodiments and exemplary implementations, and will not be repeated here.
[0123] Obviously, those skilled in the art should understand that the modules or steps of this application described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented here, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, this application is not limited to any particular combination of hardware and software.
[0124] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the principles of this application should be included within the protection scope of this application.
Claims
1. A method of determining the quality of a cable, characterized by, An output end of a test device is communicatively connected to one end of a cable to be tested, an input end of the test device is communicatively connected to the other end of the cable to be tested, and a method for determining the quality of the cable is applied to the test device, and the method comprises the following steps of: sending a first sequence to the cable to be tested, the first sequence comprising a plurality of first digits, the first digits being 0 or 1; receiving a second sequence from the cable to be tested, the second sequence comprising a plurality of second digits, the second digits being 0 or 1, and the second digits corresponding to the first digits one by one; determining a first bit error rate according to the first sequence and the second sequence, the first bit error rate being a ratio of a first quantity to a second quantity, the first quantity being a number of first target digits, the first target digits being the second digits in the second sequence satisfying a first preset condition, the first preset condition being that the second digits are the same as the corresponding first digits, and the second quantity being a number of the first digits in the first sequence; determining that the cable to be tested is qualified in a case where the first bit error rate is within an error range. Before determining that the cable to be tested is qualified, the method comprises the following steps of: sending the first sequence to a plurality of qualified cables, the qualified cables being of the same type and the type of the qualified cables being the same as the type of the cable to be tested; receiving a third sequence from each of the qualified cables, the third sequence comprising a plurality of third digits, the third digits being 0 or 1, the third sequence corresponding to the first sequence one by one, and the third digits corresponding to the first digits one by one; determining a plurality of second bit error rates according to each of the first sequences and the corresponding third sequences, the second bit error rates corresponding to the third sequences one by one, the second bit error rate being a ratio of a third quantity to a fourth quantity, the third quantity being a number of second target digits, the second target digits being the third digits in the third sequence corresponding to the second bit error rate and satisfying a second preset condition, the second preset condition being that the third digits are the same as the corresponding first digits, and the fourth quantity being a number of the first digits in the first sequence corresponding to the second bit error rate; determining the error range according to all the second bit error rates, an upper limit value of the error range being a maximum second bit error rate, and a lower limit value of the error range being a minimum second bit error rate.
2. The method of claim 1, wherein, The method further comprises the following steps of: sending a preset number of the first sequences to each of the cables to be tested, each of the first sequences being the same; receiving the second sequence from each of the cables to be tested, the second sequence corresponding to the first sequence one by one; determining a plurality of the first bit error rates according to each of the first sequences and the corresponding second sequences, the first bit error rates corresponding to the first sequences one by one; determining that the cable to be tested is qualified in a case where each of the first bit error rates is within the error range.
3. The method of claim 1, wherein, The method further comprises the following steps of: sending a plurality of the first sequences to the cable to be tested, any two of the first sequences being different from each other. receive a fifth sequence from the to-be-tested cable, the fifth sequence comprising a plurality of fifth digits, the fifth digits being 0 or 1, the fifth sequence corresponding to the first sequence one by one, the fifth digits corresponding to the first digits one by one; determine a plurality of fourth error rates according to each of the first sequence and the fifth sequence, the fourth error rate corresponding to the fifth sequence one by one, the fourth error rate being a ratio of a seventh quantity and an eighth quantity, the seventh quantity being a number of fourth target digits, the fourth target digits being the fifth digits in the fifth sequence corresponding to the fourth error rate and satisfying a fourth preset condition, the fourth preset condition being that the fifth digits are the same as the corresponding first digits, the eighth quantity being a number of the first digits in the first sequence corresponding to the fourth error rate; determine that the to-be-tested cable is qualified in a case where each of the fourth error rates is within the error range.
4. The method according to any one of claims 1 to 3, characterized in that, The to-be-tested cable has a first number, and the testing device is in communication connection with a display screen. After determining that the to-be-tested cable is qualified, the method further comprises: output the first number and the first error rate to the display screen.
5. The method of claim 1, wherein, The to-be-tested cable comprises a plurality of data channels, and the method comprises: send the first sequence to each of the data channels respectively; receive a fourth sequence from each of the data channels, the fourth sequence comprising a plurality of fourth digits, the fourth digits being 0 or 1, the fourth sequence corresponding to the first sequence one by one, the fourth digits corresponding to the first digits one by one; determine a plurality of third error rates according to each of the first sequence and the corresponding fourth sequence, the third error rate corresponding to the fourth sequence one by one, the third error rate being a ratio of a fifth quantity and a sixth quantity, the fifth quantity being a number of third target digits, the third target digits being the fourth digits in the fourth sequence corresponding to the third error rate and satisfying a third preset condition, the third preset condition being that the fourth digits are the same as the corresponding first digits, the sixth quantity being a number of the first digits in the first sequence corresponding to the third error rate; determine that the to-be-tested cable is qualified in a case where each of the third error rates is within the error range.
6. The method of claim 5, wherein, One of the data channels has a second number, and the testing device is in communication connection with a display screen. After determining that the to-be-tested cable is qualified, the method further comprises: output each of the second numbers and the third error rates corresponding to each of the second numbers to the display screen.
7. A test apparatus, characterized by, An output end of the testing device is in communication connection with one end of a to-be-tested cable, and an input end of the testing device is in communication connection with the other end of the to-be-tested cable. The testing device comprises: a first sending module configured to send a first sequence to the to-be-tested cable, the first sequence comprising a plurality of first digits, the first digits being 0 or 1; a first receiving module configured to receive a second sequence from the to-be-tested cable, the second sequence comprising a plurality of second digits, the second digits being 0 or 1, the second digits corresponding to the first digits one by one; The first determining module is configured to determine a first error rate according to the first sequence and the second sequence, the first error rate being a ratio of a first quantity to a second quantity, the first quantity being a number of first target codes, the first target code being the second code in the second sequence satisfying a first preset condition, the first preset condition being that the second code is identical to the corresponding first code, and the second quantity being a number of the first codes in the first sequence. The second determining module is configured to determine that the cable under test is qualified in a case where the first error rate is located in an error range. The test device further includes: The second sending module is configured to send the first sequence to a plurality of qualified cables respectively, the qualified cables being of the same type, and the type of the qualified cables being identical to the type of the cable under test. The second receiving module is configured to receive a third sequence from each of the qualified cables, the third sequence including a plurality of third codes, the third code being 0 or 1, the third sequence corresponding to the first sequence one by one, and the third code corresponding to the first code one by one. The third determining module is configured to determine a plurality of second error rates according to each of the first sequence and the corresponding third sequence, the second error rate corresponding to the third sequence one by one, the second error rate being a ratio of a third quantity to a fourth quantity, the third quantity being a number of second target codes, the second target code being the third code in the third sequence corresponding to the second error rate and satisfying a second preset condition, the second preset condition being that the third code is identical to the corresponding first code, and the fourth quantity being a number of the first codes in the first sequence corresponding to the second error rate. The fourth determining module is configured to determine the error range according to all the second error rates, an upper limit value of the error range being a maximum second error rate, and a lower limit value of the error range being a minimum second error rate.
8. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a computer program, and the computer program is executed by the processor to implement the steps of the method in any one of claims 1 to 6.
9. A test system, characterized by The test system includes: The test device is communicatively connected to one end of the cable under test and communicatively connected to the other end of the cable under test, and the test device implements the steps of the method in any one of claims 1 to 6. The display screen is communicatively connected to the test device and is configured to display a test result.
Citation Information
Patent Citations
Error rate test system based on Bayes theorem
CN101435329A
Cable test device and cable test method
CN112769457A