COMMUNICATION METHOD, APPARATUS AND SYSTEM

The communication method using FEC code blocks in asymmetric transmission scenarios addresses the challenge of BER testing in transmission chips, improving testing efficiency and accuracy in scenarios like automotive high-definition cameras.

JP2024541527AActive Publication Date: 2024-11-08YINWANG INTELLIGENT TECHNOLOGIES CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2024531397
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-11-25
Publication Date
2024-11-08
Estimated Expiration
2041-11-25

AI Technical Summary

Technical Problem

Existing methods fail to effectively design Bit Error Rate (BER) tests for transmission chips in asymmetric transmission scenarios, where uplink and downlink rates significantly differ, such as in automotive high-definition cameras.

Method used

A communication method involving a second device that transmits separate or simultaneous sequences to a first device, utilizing Forward Error Correction (FEC) code blocks as the smallest repeating units, allowing for flexible construction of sequences to adapt to asymmetric scenarios, thereby simplifying and accelerating the BER testing process.

Benefits of technology

This method enhances the accuracy and efficiency of BER testing in asymmetric transmission scenarios by reducing complexity and shortening testing time, ensuring reliable and accurate results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024541527000001_ABST
    Figure 2024541527000001_ABST
Patent Text Reader

Abstract

The present application discloses a communication method, an apparatus and a system, which may be used for autonomous driving, assisted driving or intelligent driving. The method includes the steps of: transmitting a first sequence including P subsequences A to a first device, where the first sequence is used by the first device to count a first bit error rate BER, and the subsequence A is composed of one or more forward error correction FEC code blocks; and transmitting a second sequence including Q subsequences B to the first device, where the second sequence is used by the first device to count a second BER, and the subsequence B is composed of one or more FEC code blocks, the length of the second sequence is greater than or equal to the length of the first sequence, and P and Q are positive integers. In this method, the FEC code block is used as a minimum repeating unit to flexibly construct functional and performance test sequences. This simplifies the complexity of BER testing. Furthermore, the method may be applied to Internet of Vehicles, such as Vehicle-to-Everything V2X, Long Term Evolution-Vehicle LTE-V, and Vehicle-to-Vehicle V2V.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] TECHNICAL FIELD Embodiments of the present application relate to the field of communication technologies, and in particular to communication methods, devices and systems. [Background technology]

[0002] The performance of the transmission chip is important for the data transmission rate. Therefore, the performance of the transmission chip needs to be tested frequently. Bit error rate (BER) is an important index of the transmission chip. A BER test can be performed on the transmission chip to verify whether the transmission chip reaches a specified BER index.

[0003] In practical application, there are often asymmetric transmission scenarios in which the uplink rate is not equal to the downlink rate. For example, in an in-vehicle high-definition camera, the uplink rate of the transmission chip (in the output direction of the camera image data) usually reaches 1Gbps to 10Gbps, while the downlink rate is usually only 1Mbps to 100Mbps.

[0004] Therefore, how to design a BER test method for the transmission chip in an asymmetric transmission scenario is an urgent problem to be solved. Summary of the Invention

[0005] The present application provides a communication method, apparatus and system for performing BER testing on transmit chips in an asymmetric transmission scenario.

[0006] The communication method provided in the present application may be performed by a second device. The second device may be used as Test Equipment (TE). The second device may be abstracted as a computer system. The second device may be an entire system or may be a part of a component in the entire system, such as a system chip or a processing chip. The system chip may also include a system on chip (SoC) or SoC chip. In particular, the second device may be an independent device configured to perform a BER test on a device under test, or the second device may be a component configured to perform a BER test on a device under test in the entire system. For example, the second device may be a terminal device or an in-vehicle device such as an in-vehicle computer or head unit having a BER test function, or may be a system chip, decision processing chip, or another type of chip having a BER test function that may be located in the computer system of the vehicle or in-vehicle device.

[0007] According to a first aspect, an embodiment of the present application provides a communication method, the method comprising: transmitting a first sequence to a first device, where the first sequence is used by the first device to count a first bit error rate BER, the first sequence including P subsequences A, where the subsequence A is composed of one or more forward error correction FEC code blocks; and transmitting a second sequence to the first device, where the second sequence is used by the first device to count a second BER, the second sequence including Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks, a length of the second sequence is greater than or equal to a length of the first sequence, and P and Q are positive integers.

[0008] In one example, in an asymmetric transmission scenario, when the method is performed by a second device, the first sequence and the second sequence may be transmitted separately, e.g., the second device may first transmit the first sequence to the first device and then transmit the second sequence to the first device.

[0009] In another example, in an asymmetric transmission scenario, when the method is performed by a second device, the first sequence and the second sequence may be transmitted simultaneously, e.g., the second device transmits first information to the first device, where the first information includes the first sequence and the second sequence.

[0010] According to the method, in the BER test in the present application, the FEC code block used by the device for transmission is effectively used as the minimum repeating unit of the first sequence and the second sequence, so that the complexity of the device constructing the test sequence is reduced and the robustness of the test process is improved. Furthermore, when the length of the second sequence is greater than the length of the first sequence, the time of the functional test based on the first sequence can be effectively shortened and the test speed can be improved. In an asymmetric transmission scenario, the method can be used to perform a one-way BER test, which can simplify the test process and test time and improve the test efficiency. It can be understood that the test method can also be applied to a symmetric transmission scenario.

[0011] In a possible design, the second sequence is transmitted to the first device if the first BER meets a first preset BER.

[0012] In one example, the first preset BER may be a specific value. If the first preset BER is a specific value and the first BER is equal to the first preset BER, it is determined that the first BER meets the first preset BER. Alternatively, if the first preset BER is a specific value and the first BER is within a variation range based on the first preset BER, it is determined that the first BER meets the first preset BER. For example, the left boundary of the variation range based on the first preset BER may be obtained by subtracting the first value from the first preset BER, and the right boundary of the variation range based on the first preset BER may be obtained by adding the second value to the first preset BER. The first value and the second value may be equal or unequal, and both are positive numbers. For another example, a left boundary of a fluctuation range based on a first preset BER may be obtained by multiplying the first preset BER by a first ratio, and a right boundary of the fluctuation range based on the first preset BER may be obtained by multiplying the first preset BER by a second ratio, the second ratio being greater than the first ratio and both being positive numbers.

[0013] In one example, the first preset BER may alternatively be a value range. If the first preset BER is a value range and the first BER is within the value range of the first preset BER, it is determined that the first BER meets the first preset BER.

[0014] It can be understood that the method provides an instance in which the second device is triggered to send the second sequence to the first device in an asymmetric transmission scenario. For example, if it is determined that the first BER obtained by the first device through counting based on the received first sequence meets the first preset BER, it is deemed that the first device has accurate error detection and counting capability, so that the result of the subsequence performance test performed by the first device based on the second sequence can be better guaranteed to be accurate and reliable. Therefore, the second device can be triggered to send the second sequence to the first device.

[0015] In the present application, when it is determined whether the first BER counted by the first device based on the received first sequence meets the first preset BER, the tester may manually determine whether the first BER counted by the first device based on the received first sequence meets the first preset BER. If the tester determines that the first BER meets the first preset BER, the tester manually triggers the second device to transmit the second sequence to the first device. Alternatively, in the present application, when it is determined whether the first BER counted by the first device based on the received first sequence meets the first preset BER, after the first device obtains the first BER through counting based on the received first sequence, the first device may transmit the first BER back to the second device, so that the second device determines whether the received first BER meets the first preset BER. If the second device determines that the first BER meets the first preset BER, it is triggered to transmit the second sequence to the first device. In a possible design, the subsequence A includes N bits; the subsequence A includes M abnormal bits; and M, or a ratio of M to N, corresponds to the first preset BER, where N and M are positive integers, and N is greater than or equal to M. Thus, the present application provides a configuration scheme for subsequence A.

[0016] It can be understood that in this embodiment of the present application, M corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the value of M in subsequence A. For example, if the value of M in subsequence A is M1, the corresponding first preset BER is BER1; if the value of M in subsequence A is M2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of M in subsequence A can be adjusted to M1.

[0017] In this embodiment of the present application, the ratio of M to N corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the ratio of M to N in subsequence A. For example, when the ratio of M to N in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of M to N in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of M to N in subsequence A can be adjusted to the first ratio.

[0018] According to the method, in the present application, when a BER test is performed in an asymmetric transmission scenario, for example, in a scenario where a BER test is performed on a transmission chip in a vehicle-mounted high-definition camera, the second device may generate the first sequence based on one or more stored FEC units without requiring additional circuitry to perform encoding and generate the first sequence, so that the case where the FEC code block is used for transmission in the asymmetric transmission scenario can be better adapted. In the present application, when the first preset BER needs to be adjusted, in one manner, the value of the number M of abnormal bits in the subsequence A can be adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in the present application, when a new first sequence needs to be set, the value of the number M of abnormal bits in the subsequence A can be adjusted to obtain a new first sequence. In this application, when the first preset BER needs to be adjusted, in another manner, the ratio of M to N in the subsequence A is adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the ratio of M to N in the subsequence A can be adjusted to obtain a new first sequence.

[0019] In possible designs, the N bits are bits comprised within a valid sequence in the subsequence A and the M bits are abnormal bits comprised within the valid sequence in the subsequence A; or the N bits are bits comprised within a valid sequence and a redundant sequence in the subsequence A and the M bits are abnormal bits comprised within the valid sequence and the redundant sequence in the subsequence A. Each of the one or more FEC code blocks includes a data element sequence and a redundant element sequence, the valid sequence in the subsequence A includes the data element sequence of the one or more FEC code blocks, and the redundant sequence in the subsequence A includes the redundant element sequence of the one or more FEC code blocks.

[0020] It can be understood that the bits contained in a valid sequence in subsequence A in this application are the bits contained in the data element sequences in all FEC code blocks that make up subsequence A. The bits contained in a redundant sequence in subsequence A in this application are the bits contained in the redundant element sequences in all FEC code blocks that make up subsequence A.

[0021] In one example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may only count the data element sequence in the FEC code block that constitutes the first sequence. Therefore, when the first preset BER is designed, only the data element sequence in the FEC code block that constitutes the first sequence may be considered. For example, in this case, the N bits corresponding to the first preset BER are bits included in the valid sequence in the subsequence A, and the M bits are abnormal bits included in the valid sequence in the subsequence A.

[0022] In another example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may alternatively consider all elements in the FEC code block that constitutes the first sequence, i.e., the data element sequence and the redundant element sequence. Thus, when the first preset BER is designed, all elements in the FEC code block that constitutes the first sequence may be considered. For example, in this case, the N bits corresponding to the first preset BER are the bits that are included in the valid sequence and the redundant sequence in the subsequence A, and the M bits are the abnormal bits that are included in the valid sequence and the redundant sequence in the subsequence A.

[0023] In a possible design, the subsequence A includes X first FEC code blocks and Y second FEC code blocks; all bits included in the data element sequence of the first FEC code blocks are normal bits; the data element sequence of the second FEC code block includes a fixed number or a fixed ratio of erroneous bits; and Y or a ratio between Y and (X+Y) corresponds to the first preset BER, where X and Y are positive integers. Thus, the present application provides another configuration scheme of the subsequence A.

[0024] It can be understood that in this embodiment of the present application, Y corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the value of Y in subsequence A. For example, if the value of Y in subsequence A is Y1, the corresponding first preset BER is BER1; if the value of Y in subsequence A is Y2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of Y in subsequence A can be adjusted to Y1.

[0025] In this embodiment of the present application, the ratio of Y to (X+Y) corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the ratio of Y to (X+Y) in subsequence A. For example, when the ratio of Y to (X+Y) in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of Y to (X+Y) in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of Y to (X+Y) in subsequence A can be adjusted to the first ratio.

[0026] According to the method, in the present application, when a BER test is performed in an asymmetric transmission scenario, for example, in a scenario where a BER test is performed on a transmission chip in a vehicle-mounted high-definition camera, the second device may generate the first sequence based on one or more stored FEC units without requiring additional circuitry to perform encoding and generate the first sequence, so that the case where the FEC code block is used for transmission in the asymmetric transmission scenario can be better adapted. In the present application, when the first preset BER needs to be adjusted, in one manner, the value of Y in the subsequence A can be adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in the present application, when a new first sequence needs to be set, the value of Y in the subsequence A can be adjusted to obtain a new first sequence. In this application, when the first preset BER needs to be adjusted, in another manner, the ratio of Y to (X+Y) in subsequence A is adjusted to flexibly construct a first sequence used for performing a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the ratio of Y to (X+Y) in subsequence A can be adjusted to obtain a new first sequence.

[0027] In one possible design, all bits included in the data element sequence of the second FEC code block are abnormal bits. Therefore, the present application provides another construction scheme for subsequence A.

[0028] According to the method, in the present application, all bits included in the second FEC code block are set to abnormal bits, so that the first preset BER can be adjusted more conveniently and the calculation process of determining the first preset BER is simplified when a BER test is performed in an asymmetric transmission scenario.

[0029] In a possible design, all bits included in the redundant element sequence of the first FEC code block are normal bits, and all bits included in the redundant element sequence of the second FEC code block are abnormal bits.

[0030] In one example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may count only the valid sequence in the FEC code block constituting the first sequence. Therefore, when the first preset BER is designed, only the data element sequence in the FEC code block constituting the first sequence may be considered. For example, in this case, all the bits included in the data element sequence of the first FEC code block corresponding to the first preset BER are normal bits, and all the bits included in the data element sequence of the second FEC code block are abnormal bits.

[0031] In another example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may alternatively consider all elements in the FEC code block constituting the first sequence, i.e., the data element sequence and the redundant element sequence. Thus, when the first preset BER is designed, all elements in the FEC code block constituting the first sequence may be considered. For example, in this case, all bits included in the data element sequence and the redundant element sequence of the first FEC code block corresponding to the first preset BER are normal bits, and all bits included in the data element sequence and the redundant element sequence of the second FEC code block are abnormal bits.

[0032] In one possible design, the length of the subsequence A is equal to the length of the subsequence B.

[0033] In a possible design, in an optional scheme, if the value of the normal bit is 0, then the value of the abnormal bit is 1; or if the value of the normal bit is 1, then the value of the abnormal bit is 0.

[0034] In one example, the normal bits in this embodiment of the present application can be understood as bits that match the expected value. For example, if the sequence transmitted by the test equipment to the device under test is 10111, the expected bits received by the device under test should be 10111. If the sequence received by the device under test is 11011, the bits corresponding to the first position, the fourth position and the fifth position of the sequence received by the device under test match the expected value and are normal bits, and the bits corresponding to the second position and the third position of the sequence received by the device under test do not match the expected value and are abnormal bits.

[0035] According to the method, in the present application, the value of the normally received bit is set to 0, and the value of the abnormal bit is set to 1; or the value of the normally received bit is set to 1, and the value of the abnormal bit is set to 0. In this way, when performing a BER test based on the first sequence or the second sequence, the device under test may perform a BER count by recording the number of bits whose value is 1 or 0. The counting method is more simplified and helps to determine the first BER more quickly and efficiently.

[0036] In a possible design, if the value of the normal bit is 0, then all bits included in the first FEC code block may be 0 and all bits included in the second FEC code block may be 1; or, if the value of the normal bit is 1, then all bits included in the first FEC code block may be 1 and all bits included in the second FEC code block may be 0.

[0037] According to the method, in the present application, if the value of the normal bit is 0, all bits included in the first FEC code block are set to 0, and all bits included in the second FEC code block are set to 1. Alternatively, if the value of the normal bit is 1, all bits included in the first FEC code block are set to 1, and all bits included in the second FEC code block are set to 0. Thus, in an asymmetric transmission scenario, when the device under test performs a BER test based on the first sequence or the second sequence, it may perform a BER count by recording the number of the first FEC code block and / or the number of the second FEC code block. The counting method is more simplified and helps to determine the first BER more quickly and efficiently.

[0038] In a possible design, before the second device transmits the first sequence to the first device, the second device performs link training with the first device.

[0039] According to the method, before the actual test is performed, link training is first performed, so that the receiving parameters of the second device (i.e., the device under test) can be effectively converged, the actual test process is more stable, and the test results obtained are more accurate.

[0040] The communication method provided in the present application may be performed by a first device. The first device may be used as a device under test (DUT). The first device may be abstracted as a computer system. The first device may be an entire system, or may be a part of a component in the entire system, such as a system chip or a processing chip. The system chip may also include a system on chip (SoC) or a SoC chip. Specifically, the first device may be an independent device for performing a BER test, or the first device may be a component for performing a BER test in the entire system. For example, the first device may be a terminal device or an in-vehicle device such as an in-vehicle camera or an in-vehicle display that requires a BER test, or may be a system chip, a decision processing chip, or another type of chip in a camera or display that requires a BER test, configured to perform data transmission with a Meta Data Controller (MDC).

[0041] According to a second aspect, an embodiment of the present application provides a communication method, the method comprising: receiving a first sequence transmitted by a second device, the first sequence including P subsequences A, the subsequence A being composed of one or more forward error correction FEC code blocks; counting a first bit error rate BER of the received first sequence; receiving a second sequence transmitted by the second device, the second sequence including Q subsequences B, the subsequence B being composed of one or more forward error correction FEC code blocks; and counting a second BER of the received second sequence, the length of the second sequence being greater than or equal to the length of the first sequence, and P and Q being positive integers.

[0042] In one example, when a BER test is performed in an asymmetric transmission scenario, the first device may receive the first sequence and the second sequence separately, e.g., the first device receives the first sequence that is first transmitted by the second device, and then receives the second sequence that is subsequently transmitted by the second device.

[0043] In another example, when a BER test is performed in an asymmetric transmission scenario, the first device may receive the first sequence and the second sequence simultaneously. For example, the first device may receive first information transmitted by the second device, where the first information includes the first sequence and the second sequence.

[0044] According to the method, in the BER test in the present application, the FEC code block used by the device for transmission is effectively used as the minimum repeating unit of the first sequence and the second sequence, so that the complexity of the device constructing the test sequence is reduced and the robustness of the test process is improved. Furthermore, when the length of the second sequence is greater than the length of the first sequence, the time of the functional test based on the first sequence can be effectively shortened and the test speed can be improved. In an asymmetric transmission scenario, the method can be used to perform a one-way BER test, which can simplify the test process and test time and improve the test efficiency. It can be understood that the test method can also be applied to a symmetric transmission scenario.

[0045] In a possible design, the number of anomalous bits in the received first sequence is counted; or the ratio of the number of anomalous bits in the received first sequence to the total number of bits in the received first sequence is counted.

[0046] According to the method, a manner of determining a first BER is provided. For example, the number of abnormal bits in the first sequence is recorded to determine the first BER. In addition, in this way, when the first device determines the first BER of the first sequence, the first device may directly count the abnormal bits without comparing the abnormal bits one by one, so that the speed at which the first device counts the first BER can be effectively increased.

[0047] In a possible design, the number of anomalous bits in the received second sequence is counted; or the ratio of the number of anomalous bits in the received second sequence to the total number of bits in the received second sequence is counted.

[0048] According to the method, a manner of determining the second BER is provided. For example, the number of abnormal bits in the second sequence is recorded to determine the second BER. In addition, in this way, when the first device determines the second BER of the second sequence, it may directly count the abnormal bits without comparing the abnormal bits one by one, so that the speed at which the first device counts the second BER can be effectively increased. In a possible design, if the first BER meets the first preset BER, the second BER of the received second sequence is counted.

[0049] In one example, the first preset BER may be a specific value. If the first preset BER is a specific value and the first BER is equal to the first preset BER, it is determined that the first BER meets the first preset BER. Alternatively, if the first preset BER is a specific value and the first BER is within a variation range based on the first preset BER, it is determined that the first BER meets the first preset BER. For example, the left boundary of the variation range based on the first preset BER may be obtained by subtracting the first value from the first preset BER, and the right boundary of the variation range based on the first preset BER may be obtained by adding the second value to the first preset BER. The first value and the second value may be equal or unequal, and both are positive numbers. For another example, a left boundary of a fluctuation range based on a first preset BER may be obtained by multiplying the first preset BER by a first ratio, and a right boundary of the fluctuation range based on the first preset BER may be obtained by multiplying the first preset BER by a second ratio, the second ratio being greater than the first ratio and both being positive numbers.

[0050] In one example, the first preset BER may alternatively be a value range. If the first preset BER is a value range and the first BER is within the value range of the first preset BER, it is determined that the first BER meets the first preset BER.

[0051] It can be understood that the method provides an instance in which the first device is triggered to count the second BER of the second sequence in an asymmetric transmission scenario. For example, if the first BER counted by the first device based on the first sequence meets a first preset BER, it is considered that the first device has accurate error detection and counting capability, so that the result of the subsequence performance test performed by the first device can be better guaranteed to be accurate and reliable. Therefore, a BER test performed on the first device based on the second sequence can be triggered.

[0052] In the present application, when it is determined whether the first BER counted by the first device based on the received first sequence meets the first preset BER, the tester may manually determine whether the first BER counted by the first device based on the received first sequence meets the first preset BER. If the tester determines that the first BER meets the first preset BER, the tester manually triggers the first device to count the second BER of the second sequence. Alternatively, in the present application, when it is determined whether the first BER counted by the first device based on the received first sequence meets the first preset BER, the first device may further transmit the first BER back to the second device, so that the second device determines whether the received first BER meets the first preset BER. If the first BER meets the first preset BER, the second device transmits a second sequence to the first device, such that the first device is triggered to count a second BER of the second sequence after the second sequence is received.

[0053] In a possible design, the subsequence A includes N bits; the subsequence A includes M abnormal bits; and M, or a ratio of M and N, corresponds to the first preset BER, where N and M are positive integers, and N is greater than or equal to M. Thus, this application provides a configuration scheme for subsequence A.

[0054] It can be understood that in this embodiment of the present application, M corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the value of M in subsequence A. For example, if the value of M in subsequence A is M1, the corresponding first preset BER is BER1; if the value of M in subsequence A is M2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of M in subsequence A can be adjusted to M1.

[0055] In this embodiment of the present application, the ratio of M to N corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the ratio of M to N in subsequence A. For example, when the ratio of M to N in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of M to N in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of M to N in subsequence A can be adjusted to the first ratio.

[0056] According to the method, in the present application, in an asymmetric transmission scenario, for example, when a BER test is performed in an asymmetric transmission scenario, for example, when a first device is a transmission chip in a vehicle-mounted high-definition camera and a second device performs a BER test on the transmission chip in the vehicle-mounted high-definition camera, the second device does not need additional circuitry to perform encoding to generate a first sequence, and may generate the first sequence based on one or more stored FEC units, so that the case in which the FEC code block is used for transmission in the asymmetric transmission scenario can be better adapted. In the present application, when the first preset BER needs to be adjusted, in one manner, the value of the number M of abnormal bits in the subsequence A can be adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in the present application, when a new first sequence needs to be set, the value of the number M of abnormal bits in the subsequence A can be adjusted to obtain a new first sequence. In this application, when the first preset BER needs to be adjusted, in another manner, the ratio of M to N in the subsequence A is adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the ratio of M to N in the subsequence A can be adjusted to obtain a new first sequence.

[0057] In possible designs, the N bits are bits comprised within a valid sequence in the subsequence A and the M bits are abnormal bits comprised within the valid sequence in the subsequence A; or the N bits are bits comprised within a valid sequence and a redundant sequence in the subsequence A and the M bits are abnormal bits comprised within the valid sequence and the redundant sequence in the subsequence A. Each of the one or more FEC code blocks includes a data element sequence and a redundant element sequence, the valid sequence in the subsequence A includes the data element sequence of the one or more FEC code blocks, and the redundant sequence in the subsequence A includes the redundant element sequence of the one or more FEC code blocks.

[0058] It can be understood that the bits contained in a valid sequence in subsequence A in this application are the bits contained in the data element sequences in all FEC code blocks that make up subsequence A. The bits contained in a redundant sequence in subsequence A in this application are the bits contained in the redundant element sequences in all FEC code blocks that make up subsequence A.

[0059] In one example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may only count the data element sequence in the FEC code block that constitutes the first sequence. Therefore, when the first preset BER is designed, only the data element sequence in the FEC code block that constitutes the first sequence may be considered. For example, in this case, the N bits corresponding to the first preset BER are bits included in the valid sequence in the subsequence A, and the M bits are abnormal bits included in the valid sequence in the subsequence A.

[0060] In another example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may alternatively consider all elements in the FEC code block that constitutes the first sequence, i.e., the data element sequence and the redundant element sequence. Thus, when the first preset BER is designed, all elements in the FEC code block that constitutes the first sequence may be considered. For example, in this case, the N bits corresponding to the first preset BER are the bits that are included in the valid sequence and the redundant sequence in the subsequence A, and the M bits are the abnormal bits that are included in the valid sequence and the redundant sequence in the subsequence A.

[0061] In a possible design, the subsequence A includes X first FEC code blocks and Y second FEC code blocks; all bits included in the data element sequence of the first FEC code blocks are normal bits; the data element sequence of the second FEC code block includes a fixed number or a fixed ratio of erroneous bits; and Y or a ratio between Y and (X+Y) corresponds to the first preset BER, where X and Y are positive integers. Thus, the present application provides another configuration scheme of the subsequence A.

[0062] It can be understood that in this embodiment of the present application, Y corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the value of Y in subsequence A. For example, if the value of Y in subsequence A is Y1, the corresponding first preset BER is BER1; if the value of Y in subsequence A is Y2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of Y in subsequence A can be adjusted to Y1.

[0063] In this embodiment of the present application, the ratio of Y to (X+Y) corresponds to the first preset BER, which means that when a different first preset BER needs to be met, the test equipment can flexibly set the first preset BER by adjusting the ratio of Y to (X+Y) in subsequence A. For example, when the ratio of Y to (X+Y) in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of Y to (X+Y) in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of Y to (X+Y) in subsequence A can be adjusted to the first ratio.

[0064] According to the method, in the present application, when a BER test is performed in an asymmetric transmission scenario, for example, in a scenario where a BER test is performed on a transmission chip in a vehicle-mounted high-definition camera, the second device may generate the first sequence based on one or more stored FEC units without requiring additional circuitry to perform encoding and generate the first sequence, so that the case where the FEC code block is used for transmission in the asymmetric transmission scenario can be better adapted. In the present application, when the first preset BER needs to be adjusted, in one manner, the value of Y in the subsequence A can be adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in the present application, when a new first sequence needs to be set, the value of Y in the subsequence A can be adjusted to obtain a new first sequence. In this application, when the first preset BER needs to be adjusted, in another manner, the ratio of Y to (X+Y) in subsequence A is adjusted to flexibly construct a first sequence used for performing a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the ratio of Y to (X+Y) in subsequence A can be adjusted to obtain a new first sequence.

[0065] In one possible design, all bits included in the data element sequence of the second FEC code block are abnormal bits. Therefore, the present application provides another construction scheme for subsequence A.

[0066] According to the method, in the present application, all bits included in the second FEC code block are set to abnormal bits, so that the first preset BER can be adjusted more conveniently and the calculation process of determining the first preset BER is simplified when a BER test is performed in an asymmetric transmission scenario.

[0067] In a possible design, all bits included in the redundant element sequence of the first FEC code block are normal bits, and all bits included in the redundant element sequence of the second FEC code block are abnormal bits.

[0068] In one example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may count only the valid sequence in the FEC code block constituting the first sequence. Therefore, when the first preset BER is designed, only the data element sequence in the FEC code block constituting the first sequence may be considered. For example, in this case, all the bits included in the data element sequence of the first FEC code block corresponding to the first preset BER are normal bits, and all the bits included in the data element sequence of the second FEC code block are abnormal bits.

[0069] In another example, in the asymmetric transmission scenario in this application, when the first device counts the first BER based on the first sequence, it may alternatively consider all elements in the FEC code block constituting the first sequence, i.e., the data element sequence and the redundant element sequence. Thus, when the first preset BER is designed, all elements in the FEC code block constituting the first sequence may be considered. For example, in this case, all bits included in the data element sequence and the redundant element sequence of the first FEC code block corresponding to the first preset BER are normal bits, and all bits included in the data element sequence and the redundant element sequence of the second FEC code block are abnormal bits.

[0070] In one possible design, the length of the subsequence A is equal to the length of the subsequence B.

[0071] In a possible design, in an optional scheme, if the value of the normal bit is 0, then the value of the abnormal bit is 1; or if the value of the normal bit is 1, then the value of the abnormal bit is 0.

[0072] In one example, the normal bits in this embodiment of the present application can be understood as bits that match the expected value. For example, if the sequence transmitted by the test equipment to the device under test is 10111, the expected bits received by the device under test should be 10111. If the sequence received by the device under test is 11011, the bits corresponding to the first position, the fourth position and the fifth position of the sequence received by the device under test match the expected value and are normal bits, and the bits corresponding to the second position and the third position of the sequence received by the device under test do not match the expected value and are abnormal bits.

[0073] According to the method, in the present application, the value of a normally received bit is set to 0, and the value of an abnormal bit is set to 1; or the value of a normally received bit is set to 1, and the value of an abnormal bit is set to 0. In this way, when performing a BER test based on the first sequence or the second sequence in an asymmetric transmission scenario, the device under test may perform a BER count by recording the number of bits whose value is 1 or 0. The counting method is more simplified and helps to determine the first BER more quickly and efficiently.

[0074] In a possible design, if the value of the normal bit is 0, then all bits included in the first FEC code block may be 0 and all bits included in the second FEC code block may be 1; or, if the value of the normal bit is 1, then all bits included in the first FEC code block may be 1 and all bits included in the second FEC code block may be 0.

[0075] In a possible design, if the value of the normal bit is 0, then all bits in the data element sequences of all FEC code blocks in subsequence B are 0; or if the value of the normal bit is 1, then all bits in the data element sequences of all FEC code blocks in subsequence B are 1.

[0076] According to the method, in the present application, if the value of the normal bit is 0, all bits included in the first FEC code block are set to 0, and all bits included in the second FEC code block are set to 1. Alternatively, if the value of the normal bit is 1, all bits included in the first FEC code block are set to 1, and all bits included in the second FEC code block are set to 0. Thus, in an asymmetric transmission scenario, when the device under test performs a BER test based on the first sequence or the second sequence, it may perform a BER count by recording the number of the first FEC code block and / or the number of the second FEC code block. The counting method is more simplified and helps to determine the first BER more quickly and efficiently.

[0077] In a possible design, the first device further performs link training with the second device before the first device receives the first sequence transmitted by the second device.

[0078] According to the method, before the actual test is performed, link training is first performed, so that the receiving parameters of the first device (i.e., the device under test) can be effectively converged, the actual test process is more stable, and the test results obtained are more accurate.

[0079] According to a third aspect, an embodiment of the present application provides a communication device. The device is configured to implement the first aspect or any method in the first aspect, each including corresponding functional modules or units configured to implement steps in the method in the first aspect. The functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to this function.

[0080] According to a fourth aspect, an embodiment of the present application provides a communication device. The device is configured to implement the second aspect or any method in the second aspect, and includes corresponding functional modules or units configured to implement steps of the method in the second aspect, respectively. The functions may be implemented by hardware or by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to this function.

[0081] According to a fifth aspect, a communication device is provided. The device includes a processor and a memory. The memory is configured to store a computing program or instruction, and the processor is coupled to the memory. When the processor executes the computer program or instruction, the device is capable of performing the first aspect or any method in the first aspect. The communication device may be a second device or a device, such as a chip system, capable of supporting the second device in implementing the functions required in the method provided in the first aspect. For example, the communication device may be a terminal device or a part of a component (e.g., a chip) in a terminal device. The terminal device may be, for example, an intelligent mobile terminal, a smart home device, an intelligent vehicle, or a smart wearable device. The intelligent mobile terminal may be, for example, a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA). The smart home device may be, for example, a smart refrigerator, a smart washing machine, a smart TV, or a speaker. The smart vehicle wearable device may be, for example, a smart headset, smart glasses, or smart clothing or shoes.

[0082] According to a sixth aspect, a communication device is provided. The device includes a processor and a memory. The memory is configured to store a computing program or instruction, and the processor is coupled to the memory. When the processor executes the computer program or instruction, the device is capable of performing the second aspect or any method in the second aspect. The communication device may be a first device or a device, such as a chip system, capable of supporting the first device in implementing the functions required in the method provided in the second aspect. For example, the communication device may be a terminal device or a part of a component (e.g., a chip) in a terminal device. The terminal device may be, for example, an intelligent mobile terminal, a smart home device, an intelligent vehicle, or a smart wearable device. The intelligent mobile terminal may be, for example, a mobile phone, a tablet computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA). The smart home device may be, for example, a smart refrigerator, a smart washing machine, a smart TV, or a speaker. The smart vehicle wearable device may be, for example, a smart headset, smart glasses, or smart clothing or shoes.

[0083] According to a seventh aspect, a terminal is provided. The terminal may include an apparatus according to any one of the third to sixth aspects. Optionally, the apparatus may be a smart home device, an intelligent manufacturing device, or an intelligent transportation device, such as a vehicle, an unmanned aerial vehicle, an unmanned transport vehicle, an automobile, or a robot, etc.

[0084] According to an eighth aspect, the present application provides a chip, connected to a memory and configured to read and execute computer programs or instructions stored in the memory to implement the method of the first aspect or any one of its possible implementations, or to implement the method of the second aspect or any one of its possible implementations.

[0085] According to a ninth aspect, there is provided a computer readable storage medium, the computer readable storage medium storing a computer program or instructions, which when executed by a communication device, enables the device to perform the method of the first aspect or any one of the possible implementations of the first aspect, or enables the device to perform the method of the second aspect or any one of the possible implementations of the second aspect.

[0086] According to a tenth aspect, the present application provides a computer program product, the computer program product comprising computer programs or instructions, which when executed by a communication device enable the device to perform the method of the first aspect or any one of the possible implementations of the first aspect, or enable the device to perform the method of the second aspect or any one of the possible implementations of the second aspect.

[0087] According to an eleventh aspect, the present application provides a communication system. The system includes a first device and a second device.

[0088] The second device is configured to transmit the first sequence to the first device and to transmit the second sequence to the first device.

[0089] The first device is configured to receive a first sequence transmitted by the second device and count a first bit error rate BER of the received first sequence; and is further configured to receive a second sequence transmitted by the second device and count a second BER of the received second sequence.

[0090] The first sequence includes P subsequences A, where subsequence A is composed of one or more forward error correction FEC code blocks, and the second sequence includes Q subsequences B, where subsequence B is composed of one or more forward error correction FEC code blocks, the length of the second sequence being greater than or equal to the length of the first sequence, and P and Q being positive integers.

[0091] It should be understood that based on the technical solutions provided in the present application, BER testing in asymmetric transmission scenarios, BER testing applicable to mass-produced chips, or BER testing applicable to chip products can be implemented more flexibly and efficiently. [Brief description of the drawings]

[0092] [Figure 1] FIG. 1 is an exemplary diagram of the structure of a test system according to the present application.

[0093] [Diagram 2] 2 is an exemplary diagram of a connection between a testing device and a device under test according to the present application.

[0094] [Diagram 3] 1 is a schematic flowchart of a first communication method according to the present application.

[0095] [Figure 4] FIG. 2 is a schematic diagram of an FEC code block according to the present application;

[0096] [Diagram 5]FIG. 2 is an exemplary diagram of a structure of a first sequence according to the present application.

[0097] [Figure 6] FIG. 13 is an exemplary diagram of a structure of a second first sequence according to the present application.

[0098] [Figure 7] FIG. 13 is an exemplary diagram of a structure of a second first sequence according to the present application.

[0099] [Figure 8] 4 is a schematic flowchart of a second communication method according to the present application.

[0100] [Figure 9] 4 is a schematic flowchart of a third communication method according to the present application.

[0101] [Figure 10] FIG. 1 is a schematic diagram of the structure of a first device according to the present application.

[0102] [Figure 11] FIG. 2 is a schematic diagram of the structure of a second device according to the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0103] The present application provides a communication method, an apparatus and a system to improve the flexibility of BER testing and effectively shorten the test time. The communication method and the communication apparatus in the embodiments of the present application are based on the same technical concept. The communication method and the communication apparatus in the embodiments of the present application have similar principles for solving problems. Therefore, the implementation of the communication apparatus and the communication method in the embodiments of the present application should be mutually referenced. The details of the repeated parts will not be described.

[0104] The following further describes in detail the embodiments of the present application with reference to the accompanying drawings.

[0105] A communication system in an embodiment of the present application will be described first. As shown in FIG. 1(a), the communication system in an embodiment of the present application may include a first device 101 and a second device 102. The communication system in an embodiment of the present application may be applied to an asymmetric transmission scenario, and may also be applied to a symmetric transmission scenario. In addition, the communication system in an embodiment of the present application may be applied to a wired transmission scenario and a wireless transmission scenario.

[0106] The first device 101 in the embodiment of the present application may be an electronic device having a transmitting and receiving function, or a component in an electronic device. For example, the first device 101 may be an electronic device including a transmitter (TX) and a receiver (RX).

[0107] The second device 102 in the embodiment of the present application may be an electronic device having a transmitting and receiving function, or a component within an electronic device. For example, the second device 102 may be an electronic device including a TX and a RX.

[0108] For example, as shown in (b) of Fig. 1, the first device may be an in-vehicle display on which a BER test needs to be performed, or a chip in the in-vehicle display on which a BER test needs to be performed, and the second device may be an external terminal device configured to perform a BER test on the first device. As shown in (c) of Fig. 1, the first device may alternatively be an in-vehicle camera on which a BER test needs to be performed, or a chip in the in-vehicle camera on which a BER test needs to be performed, and the second device may be an external terminal device configured to perform a BER test on the first device.

[0109] Optionally, the first device 101 and the second device 102 in the embodiment of the present application may be connected through a cable.

[0110] In an embodiment of the present application, when the communication method is performed based on a communication system, the second device mainly transmits a first sequence and a second sequence to the first device, and then determines whether the first device passes the test based on the first BER output by the first device based on the first sequence and the second BER output by the first device based on the second sequence.

[0111] The first device 101 shown in Fig. 1 may be understood as a device that needs to be tested, i.e., a device under test, and has a BER count function. The second device 102 shown in Fig. 1 may be understood as a device that tests the device under test, i.e., a testing device, and has a sequence transmission function.

[0112] In addition, the test device in the embodiment of the present application may further have a sequence generation function or a sequence adjustment function.

[0113] Optionally, the first device 101 may further have a display function. For example, the first device 101 may include a display configured to display a BER obtained when a BER test is performed based on different sequences. Alternatively, the first device 101 may further have an audio broadcast function. For example, the first device 101 may include an audio broadcasting device configured to broadcast a BER obtained when a test is performed based on different sequences.

[0114] Optionally, the number of cables connected between the first device 101 and the second device 102 is not limited in the embodiment of the present application.

[0115] In one example, as shown in (a) of FIG. 2, a first device and a second device are connected through one cable, and the cable connected between the first device and the second device is used by the second device to perform unidirectional communication with the first device; or, as shown in (b) of FIG. 2, the cable connected between the first device and the second device is used for bidirectional communication between the second device and the first device.

[0116] In one example, as shown in Fig. 2(c), a first device and a second device are connected through two cables, where cable 1 connected between the first device and the second device is used by the second device to perform unidirectional communication with the first device, and cable 2 connected between the first device and the second device is used by the first device to perform unidirectional communication with the second device.

[0117] Further, to better understand the communication method in the present application, Fig. 3 is an exemplary flowchart of the communication method according to the present application. It should be understood that the processes shown in Fig. 3 may be performed in various orders and / or simultaneously, and are not limited to the order of execution shown in Fig. 3.

[0118] S300: A second device transmits a first sequence to a first device.

[0119] In this embodiment of the present application, the first sequence is used by the first device to count a first BER.

[0120] In this embodiment of the present application, the first sequence sent by the second device to the first device can be understood as a functional test sequence. The functional test sequence is used to perform a functional test on the first device, and is usually sent before a performance test is performed on the first device. In addition, a small amount of data is sent in the functional test sequence, and these data are mainly used to determine whether the first device has accurate error detection and counting capabilities, so that the results of the performance test performed on the first device can be better guaranteed to be accurate and reliable, and the test time of the first device can be reduced.

[0121] Specifically, in this embodiment of the present application, the first sequence includes P subsequences A, where subsequence A is composed of one or more Forward Error Correction (FEC) code blocks, and P is a positive integer.

[0122] For example, the first sequence may be represented as {A, A, ..., A}, where P is the number of repetitions of A in the first sequence. In this embodiment of the present application, the types of FEC code blocks constituting the subsequence A and the specific structure of each type of FEC code block are not limited. Any FEC code blocks applicable to this embodiment of the present application are included in the protection scope of the embodiment of the present application.

[0123] In one example, Figure 4 is a schematic diagram of an FEC code block according to an embodiment of the present application. The FEC code block may include two parts. The first part is a data element sequence, i.e., a sequence that includes at least one data element. The second part is a redundant element sequence, i.e., a sequence that includes at least one redundant element. Each element is composed of a bit sequence of the same length.

[0124] Reed-Solomon RS-FEC(384,354,9) is used as an example, which indicates that the total number of elements is 384, the number of data elements is 354, the length of each element is 9 bits, the total length of the RS-FEC code block is 384×9=3456 bits, and the number of redundant elements generated based on the data elements through RS encoding is 30 (384−354=30).

[0125] In one example, if subsequence A consists of one FEC code block, subsequence A may be expressed as A=[data element sequence, redundant element sequence], where the data element sequence constitutes the valid sequences in subsequence A and the redundant element sequence constitutes the redundant sequences in subsequence A.

[0126] In another case, if subsequence A is composed of multiple FEC code blocks, e.g., subsequence A is composed of L (a positive integer greater than 1) FEC code blocks, then subsequence A may be expressed as A=[(data element sequence 1, redundant element sequence 1), (data element sequence 2, redundant element sequence 2), ..., (data element sequence L, redundant element sequence L)]. In this specification, (data element sequence i, redundant element sequence i) constitute one RS-FEC code block, a valid sequence in subsequence A includes data element sequence i, and a redundant sequence in subsequence A includes redundant element sequence i, where i is an integer and i=1, ..., or L.

[0127] S301: A first device receives a first sequence transmitted by a second device.

[0128] In this embodiment of the present application, the first device may acquire a first sequence transmitted by a test instrument through a cable used for communication connected between the first device and the second device.

[0129] S302: A first device counts a first BER of a received first sequence.

[0130] The present application provides a verification solution, and the specific contents may be as follows:

[0131] First, a first sequence used to perform a functional test (which may also be referred to as a functional test sequence) and a first preset BER corresponding to the first sequence are determined.

[0132] It should be noted that in this embodiment of the present application, a first sequence used to perform a functional test may be designed first, so that the first preset BER is determined based on the first sequence. In this embodiment of the present application, the value of the first preset BER may alternatively be determined first, so that the first sequence is designed based on the first preset BER.

[0133] Then, the second device transmits the first sequence to the first device, so that the first device counts the BER of the received first sequence to obtain the first BER.

[0134] Finally, whether a performance test can be effectively performed on the first device can be determined based on the first BER and the first preset BER. If the first BER obtained by the first device based on the received first sequence meets the first preset BER, it can be deemed that the performance test can be effectively performed on the first device. Otherwise, it is deemed that the performance test cannot be effectively performed on the first device.

[0135] In addition, in this embodiment of the present application, in order to better ensure that the performance test can be effectively performed on the first device, the second device may send the first sequence to the first device multiple times to perform the functional test. If the functional test is performed multiple times on the first device, and the ratio of the number of times the functional test passes to the total number of times the functional test is performed (i.e., the pass rate) meets a first threshold ratio, it may be deemed that the performance test can be effectively performed on the first device. Otherwise, it is deemed that the performance test cannot be effectively performed on the first device.

[0136] The first pre-set BER in this embodiment of the present application may be a specific value or may be a range of values.

[0137] Optionally, if the first preset BER is a specific value, and the first BER is equal to the first preset BER, it is determined that the first BER meets the first preset BER.

[0138] Optionally, if the first preset BER is a specific value and the first BER is within a variation range based on the first preset BER, it is determined that the first BER meets the first preset BER.

[0139] In one example, a left boundary of the variation range based on the first preset BER may be obtained by subtracting a first value from the first preset BER, and a right boundary of the variation range based on the first preset BER may be obtained by adding a second value to the first preset BER. The first value and the second value may be equal or unequal, and both are positive numbers.

[0140] For example, assume that both the first value and the second value are 0.05 and the first preset BER is 10.2%, in this case, the range obtained based on the first preset BER is from 5.2% to 15.2%.

[0141] In another case, a left boundary of the fluctuation range based on the first preset BER may be obtained by multiplying the first preset BER by a first ratio, and a right boundary of the fluctuation range based on the first preset BER may be obtained by multiplying the first preset BER by a second ratio, the second ratio being greater than the first ratio and both being positive numbers.

[0142] For example, assume that the first ratio is 0.95, the second ratio is 1.05, and the first preset BER is 10.2%, in this case, the range obtained based on the first preset BER is from 9.69% to 10.71%.

[0143] Optionally, if the first preset BER is a value range, and the first BER is within the value range of the first preset BER, it is determined that the first BER meets the first preset BER.

[0144] S303: The second device transmits a second sequence to the first device.

[0145] In this embodiment of the present application, the second sequence is used by the first device to count a second bit error rate BER.

[0146] In this embodiment of the present application, the second sequence sent by the second device to the first device can be understood as a performance test sequence. The performance test sequence is used to perform a performance test on the first device, and is generally sent after the first device passes the function test. In addition, a large amount of data is sent in the performance test sequence, and these data are mainly used to determine whether the performance of the first device is passed.

[0147] For example, assume that the first device is a chip, and the second device transmits a performance test sequence to the chip and determines whether the chip is a passed chip based on a BER result obtained by the chip through counting based on the received performance test sequence.

[0148] Specifically, in this embodiment of the present application, the second sequence includes Q subsequences B, where subsequence B is composed of one or more FEC code blocks, where Q is a positive integer.

[0149] For example, the second sequence may be represented as {B, B, ..., B}, where Q is the number of repetitions of B in the second sequence. In this embodiment of the present application, the types of FEC code blocks constituting the subsequence B and the specific structure of each type of FEC code block are not limited. Any FEC code blocks applicable to this embodiment of the present application are included in the protection scope of the embodiment of the present application.

[0150] In this embodiment of the application, the length of the second sequence is greater than or equal to the length of the first sequence.

[0151] Below, explanations are provided separately based on different cases of the length of the second sequence and the length of the first sequence.

[0152] Case 1: The length of the second sequence is equal to the length of the first sequence.

[0153] In one example, when the length of the second sequence in this embodiment of the present application is equal to the length of the first sequence, the length of subsequence B in the second sequence may be equal to the length of subsequence A in the first sequence, and the number of subsequences B in the second sequence may be equal to the number of subsequences A in the first sequence. Thus, the length of the second sequence is equal to the length of the first sequence.

[0154] For example, the length of subsequence B is 50 bits, the length of subsequence A is 50 bits, the number of subsequences B in the second sequence is 20, and the number of subsequences A in the first sequence is also 20. In this case, the length of the second sequence is equal to the length of the first sequence, which is 50 x 20 = 1000 bits.

[0155] In one example, when the length of the second sequence in this embodiment of the present application is equal to the length of the first sequence, the length of subsequence B in the second sequence may be smaller than the length of subsequence A in the first sequence, and the number of subsequences B in the second sequence may be larger than the number of subsequences A in the first sequence. Thus, the length of the second sequence is equal to the length of the first sequence.

[0156] For example, the length of subsequence B is 40 bits, the length of subsequence A is 50 bits, the number of subsequences B in the second sequence is 20, and the number of subsequences A in the first sequence is 16. In this case, the length of the second sequence is 800 bits (20 x 40 = 800), which is equal to the length of the first sequence, 800 bits (50 x 16 = 800).

[0157] Case 2: The length of the second sequence is greater than the length of the first sequence.

[0158] In one example, when the length of the second sequence in this embodiment of the present application is greater than the length of the first sequence, the length of subsequence B in the second sequence may be equal to the length of subsequence A in the first sequence, and the number of subsequences B in the second sequence may be greater than the number of subsequences A in the first sequence. Thus, the length of the second sequence is greater than the length of the first sequence.

[0159] For example, the length of subsequence B is 50 bits, the length of subsequence A is 50 bits, the number of subsequences B in the second sequence is 30, and the number of subsequences A in the first sequence is 20. In this case, the length of the second sequence is 1500 bits (30 x 50 = 1500), which is greater than the length of the first sequence, 1000 bits (50 x 20 = 1000).

[0160] In one example, when the length of the second sequence in this embodiment of the present application is greater than the length of the first sequence, the length of subsequence B in the second sequence may be equal to the length of subsequence A in the first sequence, and the number of subsequences B in the second sequence may be greater than the number of subsequences A in the first sequence. Thus, the length of the second sequence is greater than the length of the first sequence.

[0161] For example, the length of subsequence B is 50 bits, the length of subsequence A is 40 bits, the number of subsequences B in the second sequence is 30, and the number of subsequences A in the first sequence is also 30. In this case, the length of the second sequence is 1500 bits (30 x 50 = 1500), which is greater than the length of the first sequence, 1200 bits (40 x 30 = 1200).

[0162] In one example, when the length of the second sequence in this embodiment of the present application is greater than the length of the first sequence, the length of subsequence B in the second sequence may be greater than the length of subsequence A in the first sequence, and the number of subsequences B in the second sequence may be greater than the number of subsequences A in the first sequence. Thus, the length of the second sequence is greater than the length of the first sequence.

[0163] For example, the length of subsequence B is 50 bits, the length of subsequence A is 40 bits, the number of subsequences B in the second sequence is 30, and the number of subsequences A in the first sequence is 20. In this case, the length of the second sequence is 1500 bits (30 x 50 = 1500), which is greater than the length of the first sequence, 800 bits (40 x 20 = 800).

[0164] In addition, in this embodiment of the present application, the second device may transmit the first sequence and the second sequence to the first device together. In other words, in this embodiment of the present application, S303 and S300 may be combined into one step.

[0165] For example, in S300, the second device may transmit first information to the first device, and the first information may include a first sequence and a second sequence.

[0166] S304: The first device receives a second sequence transmitted by the second device.

[0167] S305: The first device counts a second BER of the received second sequence.

[0168] The present application provides a verification solution, and the specific contents may be as follows:

[0169] First, a second sequence used to perform a performance test (which may also be referred to as a performance test sequence) and a second preset BER corresponding to the second sequence are determined.

[0170] It should be noted that in this embodiment of the present application, the second sequence used to perform the performance test may be designed first, so that the second preset BER is determined based on the second sequence. In this embodiment of the present application, the value of the second preset BER may alternatively be determined first, so that the second sequence is designed based on the second preset BER.

[0171] Then, the second device transmits the second sequence to the first device, so that the first device counts the BER of the received second sequence to obtain the second BER.

[0172] Finally, whether the first device passes the performance test may be determined based on the second BER and the second preset BER. If the second BER obtained by the first device based on the received second sequence meets the second preset BER, the first device may be deemed to pass the performance test. Otherwise, the first device is deemed to not pass the performance test.

[0173] In addition, in this embodiment of the present application, in order to better ensure the accuracy of the results of the performance test performed on the first device, the second device may send the second sequence to the first device multiple times to perform the performance test. If the performance test is performed multiple times on the first device, and the ratio of the number of pass performance tests (i.e., pass rate) to the total number of performance tests meets a second threshold ratio, the first device may be deemed to have passed. Otherwise, the first device is deemed to have failed.

[0174] The second pre-set BER threshold in this embodiment of the present application may be a specific value or may be a range of values.

[0175] Optionally, if the second preset BER is a specific value, and the second BER is equal to the second preset BER, it is determined that the second BER meets the second preset BER.

[0176] For example, if the second preset BER is 10 -12 In the case where the second BER is 10 -12 If the second BER is smaller than the second preset BER, it is determined that the second BER meets the second preset BER.

[0177] Optionally, if the second preset BER is a value range and the second BER is within the value range of the second preset BER, it is determined that the second BER meets the second preset BER.

[0178] According to the above method, each of the first sequence and the second sequence used for performing the BER test in the asymmetric transmission scenario in the present application is composed of at least one FEC code block, so that the design method in which the FEC code block sequence is used as the minimum repeating unit of the first sequence and the second sequence can better adapt to the case in which the FEC code block is used for transmission in the asymmetric transmission scenario, and can better facilitate the BER counting performed by the first device and / or the second device. In addition, the first sequence in the present application is composed of P subsequences A, and the second sequence is composed of Q subsequences B. In the present application, there is no coupling relationship between the first sequence and the second sequence, so that it can be seen that the sequence for performing the BER test in the asymmetric transmission scenario is more flexible. In addition, currently, the functional test sequence is usually obtained by changing the value of a preset bit in the performance test sequence, and the length of the second sequence in the present application is greater than or equal to the length of the first sequence. Therefore, when the length of the second sequence is greater than the length of the first sequence, the time for the functional test based on the first sequence can be effectively shortened, and the test speed can be improved.

[0179] Furthermore, in this embodiment of the present application, the values ​​of correctly received bits may be set to 0 and the values ​​of anomalous bits may be set to 1; or the values ​​of correctly received bits may be set to 1 and the values ​​of anomalous bits may be set to 0, so that during the BER test, the number of bits whose value is 1 or 0 may be recorded for counting. For example, all bits in the second sequence are set to 0, the values ​​of anomalous bits in the first sequence are set to 1, and the values ​​of normal bits in the first sequence are 0.

[0180] According to this design method, when performing a BER test based on the first sequence or the second sequence, the device under test may perform BER counting by recording the number of special values ​​1 or 0 corresponding to abnormal bits. The counting method is more simplified and helps to determine the BER more quickly and efficiently.

[0181] Furthermore, in this embodiment of the present application, there are multiple ways to construct the first sequence, including but not limited to the following ways:

[0182] Construction Scheme 1: As shown in Fig. 5(a), a first sequence includes P subsequences A, each subsequence A includes N bits, and each N bit includes M abnormal bits. P is a positive integer and represents the number of subsequences A in the first sequence.

[0183] In addition, the position of the subsequence A in the first sequence may further be represented by using 1 to P. For example, the subsequence A corresponding to 1 shown in FIG. 5(a) may represent the subsequence A in the first position in the first sequence, the subsequence A corresponding to 2 shown in FIG. 5(a) may represent the subsequence A in the second position in the first sequence, the subsequence A corresponding to (P-1) shown in FIG. 5(a) may represent the subsequence A in the (P-1)th position in the first sequence, and the subsequence A corresponding to P shown in FIG. 5(a) may represent the subsequence A in the Pth position in the first sequence. N is a positive integer and represents the total number of bits contained in one subsequence A. M is a positive integer and represents the number of abnormal bits contained in one subsequence A. It can be understood that in this embodiment of the present application, N is greater than or equal to M.

[0184] For example, assume that P is 5, N is 7, and M is 2. In this case, the first sequence in FIG. 5(a) may include 5 subsequences A, the total number of bits included in each subsequence A is 7, and there are 2 abnormal bits among the 7 bits included in each subsequence A.

[0185] For another example, assume that subsequence A is 0110111011, where 0 represents an abnormal bit and 1 represents a normal bit. In this case, the total number of bits included in subsequence A is 10 bits, i.e., N=10, and the number of abnormal bits included in subsequence A is 3 bits, i.e., M=3. Based on this, the first sequence may alternatively be represented as the sequence shown in FIG. 5B. Subsequence A(1) shown in FIG. 5B may represent subsequence A at the first position in the first sequence, subsequence A(2) shown in FIG. 5B may represent subsequence A at the second position in the first sequence, subsequence A(P-1) shown in FIG. 5B may represent subsequence A at the (P-1)th position in the first sequence, and subsequence A(P) shown in FIG. 5B may represent subsequence A at the Pth position in the first sequence.

[0186] In addition, it can be understood that the first sequence includes P subsequences A, the total number of bits in each subsequence A is N, and the number of abnormal bits is M, so that the total number of bits included in the first sequence is the sum of the total number of bits included in all subsequences A in the first sequence, that is, P×N; the number of abnormal bits included in the first sequence is the sum of the number of abnormal bits included in all subsequences A in the first sequence, that is, P×M; and the number of normal bits included in the first sequence is the sum of the number of normal bits included in all subsequences A in the first sequence, that is, (P×NP×M). Therefore, the first sequence can be further simplified as the sequence shown in (c) of FIG. 5. The first sequence includes P×N bits, and there are P×M abnormal bits in the P×N bits.

[0187] Based on Construction Scheme 1, in this embodiment of the present application, the number of abnormal bits in the first sequence can be further adjusted to correspond to different first preset BERs.

[0188] Optionally, in this embodiment of the present application, M or the ratio of M to N in the first sequence may be adjusted to correspond to a different first preset BER. For example, if the value of M in the subsequence A is M1, the corresponding first preset BER is BER1; if the value of M in the subsequence A is M2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of M in the subsequence A may be adjusted to M1.

[0189] For another example, when the ratio of M to N in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of M to N in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of M to N in subsequence A can be adjusted to the first ratio.

[0190] Optionally, in this embodiment of the present application, a first preset BER corresponding to the first sequence may be determined according to Equation 1 below: First preset BER=P×M / P×N=M / N (Equation 1)

[0191] P represents the number of subsequences A contained in the first sequence, N represents the total number of bits contained in one subsequence A, and M represents the number of abnormal bits contained in one subsequence A.

[0192] In one case, the N bits in this embodiment of the present application may be bits that are included within a valid sequence in subsequence A, and the M bits in this embodiment of the present application may be abnormal bits that are included within a valid sequence in subsequence A.

[0193] For example, assume that subsequence A in the first sequence is a bit sequence composed of an RS-FEC(384,354,9) code block, where the “9” in RS-FEC(384,354,9) indicates that each element in the RS-FEC code block is 9 bits long, the “354” in RS-FEC(384,354,9) indicates that the number of data elements contained in the RS-FEC code block is 354, and the “384” in RS-FEC(384,354,9) indicates that the total number of elements contained in the RS-FEC code block is 384. Because the total number of elements in the RS-FEC code block is the sum of the number of data elements and the number of redundant elements, a number of redundant elements of 30 can be realized based on the total number of elements, 384, and the number of data elements, 354. Since each element is 9 bits long, the total length of the RS-FEC code block is 384×9=3456 bits, the total length of the redundant element sequence is 30×9=270 bits, and the total length of the data element sequence is 354×9=3186 bits. In this example, the value of N is 3186, which is the number of bits contained in the valid sequence in subsequence A.

[0194] If the number of abnormal bits in subsequence A is set to 118, i.e., the value of M is 118, the value of M of 118 and the value of N of 3186 can be substituted into Equation 1 to realize that the first preset BER corresponding to the first sequence is 3.7% (M / N=118 / 3186=3.7%).

[0195] If the number of abnormal bits in subsequence A is set to 236, that is, the value of M is 236, the value of M of 236 and the value of N of 3186 can be substituted into Equation 1 to realize that the first preset BER corresponding to the first sequence is 7.4% (M / N=236 / 3186=7.4%).

[0196] If the number of abnormal bits in subsequence A is set to 354, i.e., the value of M is 354, the value of M of 354 and the value of N of 3186 can be substituted into Equation 1 to realize that the first preset BER corresponding to the first sequence is 11.1% (M / N=354 / 3186=11.1%).

[0197] In another case, the N bits in this embodiment of the present application may be bits contained within a valid sequence and a redundant sequence in subsequence A, and the M bits in this embodiment of the present application may be abnormal bits contained within a valid sequence and a redundant sequence in subsequence A.

[0198] For example, assume that subsequence A in the first sequence is also a bit sequence constructed by one RS-FEC (384, 354, 9) code block. Since the length of the entire RS-FEC code block is 384×9=3456 bits, the total length of the redundant element sequence is 30×9=270 bits, and the total length of the data element sequence is 354×9=3186 bits. In this case, the value of N is 3456, which is the number of bits contained in the valid sequence and the redundant sequence in subsequence A.

[0199] If the number of abnormal bits in subsequence A is set to 118, i.e., the value of M is 118, the value of M of 118 and the value of N of 3456 can be substituted into Equation 1 to realize that the first preset BER corresponding to the first sequence is 3.4% (M / N=118 / 3456=3.4%).

[0200] If the number of abnormal bits in subsequence A is set to 236, that is, the value of M is 236, the value of M of 236 and the value of N of 3456 can be substituted into Equation 1 to realize that the first preset BER corresponding to the first sequence is 6.8% (M / N=236 / 3456=6.8%).

[0201] If the number of abnormal bits in subsequence A is set to 354, i.e., the value of M is 354, the value of M of 354 and the value of N of 3456 can be substituted into Equation 1 to realize that the first preset BER corresponding to the first sequence is 10.2% (M / N=354 / 3456=10.2%).

[0202] According to construction scheme 1, in this embodiment of the present application, when the corresponding first preset BER is determined based on M, or the ratio of M to N, only the data element sequence part in the FEC code block constituting the sequence may be considered; or all bits in the FEC code block constituting the sequence, i.e., the data element sequence and the redundant element sequence, may be considered.

[0203] According to the construction method 1, in this application, when the first preset BER needs to be adjusted, in one manner, the value of the number M of abnormal bits in the subsequence A can be adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the value of the number M of abnormal bits in the subsequence A can be adjusted to obtain a new first sequence. In this application, when the first preset BER needs to be adjusted, in another manner, the ratio of M to N in the subsequence A is adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the ratio of M to N in the subsequence A can be adjusted to obtain a new first sequence.

[0204] Construction Scheme 2: As shown in Fig. 6, a first sequence includes P subsequences A, each subsequence A includes X first FEC code blocks and Y second FEC code blocks, all bits in the data element sequence of the first FEC code block are normal bits, and all bits in the data element sequence of the second FEC code block are abnormal bits. P is a positive integer and represents the number of subsequences A in the first sequence.

[0205] In addition, the position of the subsequence A in the first sequence can be further represented by using 1 to P. For a brief explanation, please refer to the contents of Construction Scheme 1. X is a positive integer and represents the number of the first FEC code blocks contained in one subsequence A. Y is a positive integer and represents the number of the second FEC code blocks contained in one subsequence A.

[0206] For example, assume that P is 5, X is 3, and Y is 2. In this case, the first sequence in Figure 6 may include five subsequences A, where each subsequence A includes three first FEC code blocks and two second FEC code blocks.

[0207] Please note that the arrangement and positions of the first sequence and the second sequence shown in Figure 6 are only an example. In this embodiment of the present application, the positions of the first FEC code block and the second FEC code block in the subsequence A are not limited, and the first FEC code block and the second FEC code block may even be arranged randomly.

[0208] In this embodiment of the present application, since the subsequence A includes X first FEC code blocks and Y second FEC code blocks, it can be understood that one first FEC code block and one second FEC code block are the minimum repeating units in the first sequence. In other words, the length of the first FEC code block in this embodiment of the present application may be the same as the length of the second FEC code block.

[0209] For example, assume that the first FEC code block and the second FEC code block each comprise an RS-FEC (384,354,9) code block having a length of 3456 bits, with 0 representing an abnormal bit and 1 representing a normal bit. In this case, all bits in the data element sequence of the first FEC code block are 1, and all bits in the data element sequence of the second FEC code block are 0.

[0210] Suppose that subsequence A includes three first FEC code blocks (abbreviated as a1 for ease of explanation) and one second FEC code block (abbreviated as a2 for ease of explanation), and subsequence A can be represented as a1, a1, a2, and a1. If the first sequence includes two subsequences A, the first sequence can be represented as a1, a1, a2, a1, a1, a1, a2, a1. Since the length of the first FEC code block and the second FEC code block is 3456 bits, and subsequence A includes three first FEC code blocks and one second FEC code block, the total number of bits included in subsequence A is 3456×4=13824, and the number of abnormal bits included in subsequence A is 3456. Because the first sequence includes two subsequences A, the total number of bits included in the first sequence is 13824×2=27648, and the number of abnormal bits included in the first sequence is 6912.

[0211] According to construction scheme 2, in this embodiment of the present application, the number of second FEC code blocks in the first sequence can be further adjusted to correspond to different first preset BERs.

[0212] Optionally, in this embodiment of the application, the value of Y or the ratio of Y to (X+Y) in the first sequence may be adjusted to correspond to different first preset BERs.

[0213] For example, if the value of Y in subsequence A is Y1, the corresponding first preset BER is BER1; if the value of Y in subsequence A is Y2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of Y in subsequence A can be adjusted to Y1.

[0214] For another example, when the ratio of Y to (X+Y) in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of Y to (X+Y) in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of Y to (X+Y) in subsequence A can be adjusted to the first ratio.

[0215] Optionally, in this embodiment of the present application, a first preset BER corresponding to the first sequence may be determined according to the following Equation 2: First preset BER=Y / (X+Y) (Equation 2)

[0216] X represents the number of first FEC code blocks contained in one subsequence A, and Y represents the number of second FEC code blocks contained in one subsequence A.

[0217] In one case, in this embodiment of the present application, all bits included in the data element sequence of the first FEC code block may be set to normal bits and all bits included in the data element sequence of the second FEC code block may be set to abnormal bits.

[0218] For example, assume that subsequence A in the first sequence includes 963 first FEC code blocks, i.e., X has a value of 963 and all bits in the data element sequence in the first FEC code block are normal bits; and subsequence A includes 37 second FEC code blocks, i.e., Y has a value of 37 and all bits in the data element sequence in the second FEC code block are abnormal bits. The length of the data element sequence of the first FEC code block matches the length of the data element sequence of the second FEC code block.

[0219] In this example, the value of X being 963 and the value of Y being 37 can be substituted into Equation 2 to realize that the first preset BER corresponding to the first sequence is 3.7% (Y / (X+Y)=37 / (37+963)=3.7%).

[0220] In another case, in this embodiment of the present application, all bits included in the data element sequence and redundant element sequence of the first FEC code block may be set to normal bits, and all bits included in the data element sequence and redundant element sequence of the second FEC code block may be set to abnormal bits.

[0221] For example, assume that a subsequence A in a first sequence includes 963 first FEC code blocks, i.e., the value of X is 963, and all bits in the data element sequence and redundancy element sequence in the first FEC code block are normal bits; and that subsequence A includes 37 second FEC code blocks, i.e., the value of Y is 37, and all bits in the data element sequence and redundancy element sequence in the second FEC code block are abnormal bits.

[0222] In this example, the value of X being 963 and the value of Y being 37 can be substituted into Equation 2 to realize that the first preset BER corresponding to the first sequence is 3.7% (Y / (X+Y)=37 / (37+963)=3.7%).

[0223] According to construction method 2, in the present application, it can be realized that all bits included in the second FEC code block are set to abnormal bits, the first preset BER can be adjusted more conveniently, and the calculation process of determining the first preset BER is simplified.

[0224] Construction Scheme 3: As shown in Fig. 7, a first sequence includes P subsequences A, and each subsequence A includes X first FEC code blocks and Y second FEC code blocks. All bits in the data element sequence of the first FEC code block are normal bits; there is a fixed number of abnormal bits in the data element sequence of the second FEC code block, or there is a fixed proportion of abnormal bits in the data element sequence of the second FEC code block.

[0225] For example, assume that the first FEC code block and the second FEC code block each consist of an RS-FEC (384,354,9) code block with a length of 3456 bits, where 0 represents an anomalous bit and 1 represents a normal bit, and all bits in the data element sequence of the first FEC code block are 1, and there is a fixed number of 5 anomalous bits in the data element sequence of the second FEC code block. In this case, the second FEC code blocks may be 111...1000001, 111...1010000, 111...0001001, etc. In other words, the number of anomalous bits in the data element sequence of the second FEC code block is guaranteed to be 5.

[0226] Assume that subsequence A includes three first FEC code blocks (abbreviated as a1 for ease of explanation) and one second FEC code block (abbreviated as a3 for ease of explanation), and subsequence A can be represented as a1, a3, a1, and a1. If the first sequence includes two subsequences A, the first sequence can be represented as a1, a3, a1, a1, a1, a3, a1, a1. Since the length of the first FEC code block and the second FEC code block is 3456 bits, and subsequence A includes three first FEC code blocks and one second FEC code block, the total number of bits included in subsequence A is 3456×4=13824. Since all bits in the data element sequence of the first FEC code block are 1, and there is a fixed number of 5 abnormal bits in the data element sequence of the second FEC code block, the number of abnormal bits included in subsequence A is 5. Because the first sequence includes two subsequences A, the total number of bits included in the first sequence is 13824×2=27648, and the number of abnormal bits included in the first sequence is 10.

[0227] According to construction scheme 3, in this embodiment of the present application, the number of second FEC code blocks in the first sequence can be further adjusted to correspond to different first preset BERs.

[0228] Optionally, in this embodiment of the application, the value of Y or the ratio of Y to (X+Y) in the first sequence may be adjusted to correspond to different first preset BERs.

[0229] For example, if the value of Y in subsequence A is Y1, the corresponding first preset BER is BER1; if the value of Y in subsequence A is Y2, the corresponding first preset BER is BER2. If the test equipment wants to set the first preset BER to BER1, the value of Y in subsequence A can be adjusted to Y1.

[0230] For another example, when the ratio of Y to (X+Y) in subsequence A is a first ratio, the corresponding first preset BER is BER3; when the ratio of Y to (X+Y) in subsequence A is a second ratio, the corresponding first preset BER is BER4. When the test equipment wants to set the first preset BER to BER3, the ratio of Y to (X+Y) in subsequence A can be adjusted to the first ratio.

[0231] Optionally, in this embodiment of the present application, a first preset BER corresponding to the first sequence may be determined according to the following Equation 3: First preset BER=T×Y / (X+Y) (Equation 3)

[0232] X represents the number of first FEC code blocks contained in one subsequence A, T represents the ratio of abnormal bits in the first FEC code blocks, and Y represents the number of second FEC code blocks contained in one subsequence A.

[0233] In one case, in this embodiment of the present application, all bits included in the data element sequence of a first FEC code block may be set to normal bits, and a fixed number or fixed proportion of bits included in the data element sequence of a second FEC code block may be set to abnormal bits.

[0234] For example, assume that subsequence A in the first sequence includes 963 first FEC code blocks, i.e., X has a value of 963, and all bits in the data element sequence in the first FEC code block are normal bits; and subsequence A includes 74 second FEC code blocks, i.e., Y has a value of 74, and 50% of the bits in the data element sequence in the second FEC code block are abnormal bits. The length of the data element sequence of the first FEC code block matches the length of the data element sequence of the second FEC code block.

[0235] In this example, the value of X being 963, the value of Y being 74, and the value of T being 50% can be substituted into Equation 3 to realize that the first preset BER corresponding to the first sequence is 3.5% (T×Y / (X+Y)=74×50% / (74+963)=3.5%).

[0236] In another case, in this embodiment of the present application, all bits included in the data element sequence and redundant element sequence of the first FEC code block may be set to normal bits, and a fixed number or fixed proportion of bits included in the data element sequence and redundant element sequence of the second FEC code block may be set to abnormal bits.

[0237] For example, assume that a subsequence A in a first sequence includes 963 first FEC code blocks, i.e., the value of X is 963, and all bits in the data element sequence and redundant element sequence in the first FEC code block are normal bits; and that subsequence A includes 74 second FEC code blocks, i.e., the value of Y is 74, and the number of abnormal bits in the second FEC code block accounts for 50% of the total number of bits in the data element sequence and redundant element sequence.

[0238] In this example, the value of X being 963, the value of Y being 74, and the value of T being 50% can be substituted into Equation 3 to realize that the first preset BER corresponding to the first sequence is 3.5% (T×Y / (X+Y)=74×50% / (74+963)=3.5%).

[0239] According to the construction method 3, in this application, when the first preset BER needs to be adjusted, in one manner, the value of Y in the subsequence A can be adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the value of Y in the subsequence A can be adjusted to obtain a new first sequence. In this application, when the first preset BER needs to be adjusted, in another manner, the ratio of Y to (X+Y) in the subsequence A is adjusted to flexibly construct a first sequence used to perform a functional test that matches the first preset BER. Alternatively, in this application, when a new first sequence needs to be set, the ratio of Y to (X+Y) in the subsequence A can be adjusted to obtain a new first sequence.

[0240] Furthermore, the second FEC code block in construction scheme 3 may also be referred to as an uncorrectable FEC code block, which is a sequence having a length equal to the length of the first FEC code block, and the number of error elements in the second FEC code block exceeds the upper limit of the error correctable elements of the FEC code block.

[0241] For example, assume that RS-FEC(384,354,9) is used as an FEC code block. Normally, an RS-FEC code block contains 354 data elements, and 30 corresponding redundant elements are generated according to the encoding rule. More than 15 elements, i.e., half of the redundant elements ((384-354) / 2=15) generated according to the normal encoding rule, can be selected from the 354 data elements of the RS-FEC code block to replace the error elements (i.e., abnormal bits) to obtain a new RS-FEC code block.

[0242] In this case, the 354 correct valid data elements cannot be recovered through RS-FEC decoding correction. For example, all bits in the RS-FEC code block are replaced with error elements, and 1 represents the error element. In this case, the new RS-FEC code block is an all--1 sequence with a length of 3456 (i.e., 384×9=3456). In this way, an error RS-FEC code block that cannot be corrected through decoding is constructed.

[0243] Note that in theory there are many other non-all-1 sequences that satisfy the condition, and this is not limiting in this embodiment of the application.

[0244] In order to better explain the communication method provided in this application, based on the contents shown in FIG. 3, the following two scenarios are described in further detail.

[0245] Some steps in the following scenarios may be optional, and the order of steps does not represent the actual order of execution. Therefore, the present application is not limited to performing the following steps and orders completely.

[0246] Scenario 1: A second device transmits both a first sequence and a second sequence to the first device.

[0247] See Figure 8. The following steps may be performed in a communication method corresponding to scenario 1.

[0248] S800: A second device transmits a first sequence and a second sequence to a first device.

[0249] S801: A first device receives a first sequence and a second sequence from a second device.

[0250] S802: A first device counts a first BER of a received first sequence.

[0251] S803: The first device determines whether the first BER meets a first preset BER, and if the first BER meets the first preset BER, S804 is executed; or if the first BER does not meet the first preset BER, S805 is executed.

[0252] It should be noted that in this embodiment of the present application, the tester may determine whether the first BER obtained by the first device meets the first preset BER based on the first BER output by the first device; or the first device may transmit the first BER back to the second device, and the second device determines whether the first BER meets the first preset BER, and then notifies the first device or the tester of the determination result.

[0253] The content of S803 in this embodiment of the present application is merely used as an example for explanation and does not constitute a limitation on this embodiment of the present application.

[0254] S804: The first device counts a second BER of the received second sequence.

[0255] Furthermore, the first device may output a second BER, so that the tester determines whether the first device passes the performance test based on the second BER.

[0256] For example, if the tester determines that the second BER does not meet the second preset BER, it is determined that the first device does not pass the performance test; or, if the tester determines that the second BER meets the second preset BER, it is determined that the first device passes the performance test.

[0257] S805: The first device completes the subsequence test performed based on the received second sequence.

[0258] Optionally, if the first device determines that the first BER does not meet the first preset BER, it may indicate to the tester by using an audio signal that the first device has not passed the functional test.

[0259] Scenario 2: After the first BER meets a first preset BER, the second device is triggered to transmit a second sequence to the first device.

[0260] See Figure 9. The following steps may be performed in a communication method corresponding to scenario 2.

[0261] S900 The second device transmits the first sequence to the first device.

[0262] S901: A first device receives a first sequence from a second device.

[0263] S902: A first device counts a first BER of a received first sequence.

[0264] S903: The first device transmits the first BER back to the second device.

[0265] S904: The second device determines whether the first BER meets the first preset BER, and if the first BER meets the first preset BER, S905 is executed; or if the first BER does not meet the first preset BER, S906 is executed.

[0266] It should be noted that in this embodiment of the present application, alternatively, the tester may determine whether the first BER obtained by the first device meets the first preset BER based on the first BER output by the first device.

[0267] The contents of S903 and S904 in this embodiment of the present application are only used as an example for explanation, and S903 and S904 may be optional steps and do not constitute limitations on this embodiment of the present application. For example, after the first device obtains a first BER through counting based on the received first sequence, in this embodiment of the present application, the tester can determine whether the first BER obtained by the first device meets a first preset BER based on the first BER output by the first device. In this case, steps S903 and S904 can be omitted.

[0268] S905: The second device sends the second sequence to the first device, and continues executing S907.

[0269] Optionally, in this embodiment of the present application, the tester may trigger the second device to send the second sequence to the first device. For example, after the first device obtains a first BER through counting based on the received first sequence, in this embodiment of the present application, the tester may determine whether the first BER obtained by the first device meets a first preset BER based on the first BER output by the first device, and if it is determined that the first BER meets the first preset BER, trigger the second device to send the second sequence to the first device.

[0270] Optionally, in this embodiment of the present application, alternatively, the second device may automatically trigger the transmission of the second sequence to the first device. For example, the first device transmits the first BER back to the second device, and the second device determines whether the first BER meets the first preset BER, and if it determines that the first BER meets the first preset BER, the second device triggers the second device to transmit the second sequence to the first device. In addition, in this embodiment of the present application, if the second device determines that the first BER meets the first preset BER, it may indicate to the tester that the device under test (i.e., the first device) has passed the functional test by using audio.

[0271] S906: The second device determines to terminate the sub-sequence test performed based on the second sequence.

[0272] Optionally, in this embodiment of the present application, the tester may trigger the second device to terminate the sub-sequence test performed based on the second sequence. For example, after the first device obtains a first BER through counting based on the received first sequence, in this embodiment of the present application, the tester may determine whether the first BER obtained by the first device meets a first preset BER based on the first BER output by the first device, and if it is determined that the first BER does not meet the first preset BER, the tester may trigger the second device to terminate the sub-sequence test performed based on the second sequence.

[0273] Optionally, in this embodiment of the present application, alternatively, the second device may automatically trigger the end of the sub-sequence test performed based on the second sequence. For example, the first device transmits the first BER back to the second device, and the second device determines whether the first BER meets a first preset BER, and if it determines that the first BER does not meet the first preset BER, the second device triggers the end of the sub-sequence test performed based on the second sequence.

[0274] Additionally, in this embodiment of the present application, if the second device determines that the first BER does not meet the first preset BER, it may indicate to the tester by using audio that the device under test (i.e., the first device) has not passed the functional test.

[0275] S907: The first device counts a second BER of the received second sequence.

[0276] Furthermore, the first device may output a second BER, so that the tester determines whether the first device passes the performance test based on the second BER.

[0277] For example, if the tester determines that the second BER does not meet the second preset BER, it is determined that the first device does not pass the performance test; or, if the tester determines that the second BER meets the second preset BER, it is determined that the first device passes the performance test.

[0278] In addition, in this embodiment of the present application, in order to effectively ensure that the test results obtained by the first device are accurate and reliable, before the second sequence test is performed, the first sequence can be sent to the first device multiple times to perform the test. In other words, the function test is performed on the first device multiple times. The first sequence sent each time can be the same or different. This is not particularly limited in this embodiment of the present application.

[0279] The functional test is run multiple times on the first device, and if a ratio of the number of passes of the functional test (i.e., the pass rate) to the total number of runs of the functional test meets a threshold ratio, a second sequence test is run on the first device. In other words, a performance test is run on the first device.

[0280] For example, assume that the threshold ratio is 80%, the total number of times the functional tests are performed on the first device is 10, the number of times the first device passes the functional tests is 9, and the pass rate is 90%, which is greater than the threshold ratio of 80%. In this case, the test results obtained by the first device may be determined to be accurate and reliable, and a sub-sequence performance test may be performed.

[0281] In addition, in this embodiment of the present application, before executing the contents of scenario 1 or scenario 2, the second device may further send at least one training sequence to the first device, and perform receiving link training with the first device by using the training sequence, so that the receiving parameters of the first device converge. In this way, in the sub-sequence testing process, the testing process is smoother and more stable.

[0282] The method and the apparatus are conceived based on the same or similar technical concept. The method and the apparatus have similar principles for solving problems. Therefore, the implementation of the apparatus and the method should be referred to each other. The details of the repeated parts will not be described.

[0283] The terms "apparatus" and "device" may be used interchangeably in embodiments of the present application. In the description of the embodiments of the present application, the term "and / or" describes a correspondence between related objects and indicates that three relationships may exist. For example, A and / or B may indicate three cases: only A exists, both A and B exist, and only B exists. The character " / " generally represents an "or" relationship between related objects. In the present application, "at least one" means one or more, and "multiple" means two or more.

[0284] In addition, it should be understood that in the description of this application, terms such as "first", "second" and "third" are used for distinction and explanation only, and should not be understood as indicating or suggesting relative importance or ordering. References to "one embodiment" or "some embodiments" and the like described herein indicate that one or more embodiments of this application include the particular features, structures or characteristics described with reference to the embodiment. Thus, statements such as "in one embodiment", "in some embodiments", "in some other embodiments", and "in other embodiments" appearing in different places in this specification do not necessarily mean to refer to the same embodiment. Instead, these statements mean "one or more, but not all of the embodiments", unless otherwise specifically emphasized in another manner. The terms "include", "contain", "having", and variations thereof all mean "including but not limited to", unless otherwise specifically emphasized in another manner.

[0285] The device provided in the embodiment of the present application is described in detail below with reference to Figures 10 and 11. It should be understood that the description of the device embodiment corresponds to the description of the method embodiment. Therefore, for the contents that are not described in detail, please refer to each other.

[0286] 10 is a schematic block diagram of an apparatus 1000 according to an embodiment of the present application. The apparatus 1000 is configured to implement the functions of the first device or the second device in the embodiment of the method. For example, the apparatus may be a software module or a chip system. The chip system may include a chip, or may include a chip and another discrete component. The apparatus 1000 includes a processing unit 1001 and a communication unit 1002. The communication unit 1002 is configured to communicate with another device, and may also be referred to as a communication interface, a transceiver unit, an input / output interface, etc.

[0287] In some embodiments, the apparatus 1000 may be a first device, or a chip or circuit configured in the first device, etc. The processing unit 1001 may be configured to perform processing-related operations of the first device in the method embodiment. The communication unit 1002 is configured to perform reception- and transmission-related operations of the first device in the method embodiment. For example, the communication unit 1002 in this embodiment of the present application may be a receiving unit.

[0288] For example, the communication unit 1002 is configured to receive a first sequence transmitted by a second device, the first sequence including P subsequences A, where subsequence A is composed of one or more forward error correction FEC code blocks; the processing unit 1001 is configured to count a first BER of the received first sequence; the communication unit 1002 is configured to receive a second sequence transmitted by the second device, the second sequence including Q subsequences B, where subsequence B is composed of one or more forward error correction FEC code blocks; and the processing unit 1001 is configured to count a second BER of the received second sequence, where the length of the second sequence is greater than or equal to the length of the first sequence, and P and Q are positive integers.

[0289] In an optional manner, the processing unit 1001 is further configured to count a second BER of the received second sequence if the first BER meets a first preset BER.

[0290] In an optional manner, the processing unit 1001 is specifically configured to count the number of anomalous bits in the received first sequence, or count the ratio of the number of anomalous bits in the received first sequence to the total number of bits in the received first sequence.

[0291] In an optional manner, the processing unit 1001 is specifically configured to count the number of anomalous bits in the received second sequence, or count the ratio of the number of anomalous bits in the received second sequence to the total number of bits in the received second sequence.

[0292] In an optional scheme, the subsequence A includes N bits; the subsequence A includes M abnormal bits; and M, or a ratio of M to N, corresponds to the first preset BER, where N and M are positive integers and N is greater than or equal to M.

[0293] In an optional scheme, the N bits are bits comprised within a valid sequence in the subsequence A and the M bits are anomalous bits comprised within the valid sequence in the subsequence A; or the N bits are bits comprised within a valid sequence and a redundant sequence in the subsequence A and the M bits are anomalous bits comprised within the valid sequence and the redundant sequence in the subsequence A. Each of the one or more FEC code blocks comprises a data element sequence and a redundant element sequence, the valid sequence in the subsequence A comprises the data element sequence of the one or more FEC code blocks, and the redundant sequence in the subsequence A comprises the redundant element sequence of the one or more FEC code blocks.

[0294] In an optional scheme, the subsequence A includes X first FEC code blocks and Y second FEC code blocks; all bits included in the data element sequence of the first FEC code blocks are normal bits; the data element sequence of the second FEC code blocks includes a fixed number or ratio of anomalous bits; and Y, or a ratio of Y to (X+Y), corresponds to the first preset BER, where X and Y are positive integers.

[0295] In an optional scheme, all bits included in said sequence of data elements of said second FEC code block are anomalous bits.

[0296] In an optional scheme, all bits included in the redundant element sequence of the first FEC code block are normal bits and all bits included in the redundant element sequence of the second FEC code block are abnormal bits.

[0297] In an optional manner, the length of said subsequence A is equal to the length of said subsequence B.

[0298] In an optional scheme, if the value of the normal bit is 0, then the value of the abnormal bit is 1; or if the value of the normal bit is 1, then the value of the abnormal bit is 0.

[0299] In an optional scheme, all bits included in the first FEC code block may be 0, a fixed number or a fixed proportion of all abnormal bits in the second FEC code block are 1, and all remaining bits are 0.

[0300] In an optional manner, if the value of the good bit is 0, then all bits included in the data element sequences of all FEC code blocks in subsequence B are 0; or if the value of the good bit is 1, then all bits included in the data element sequences of all FEC code blocks in subsequence B are 1.

[0301] In an optional manner, before transmitting the first sequence to the first device, the processing unit 1001 is further configured to perform link training with the first device.

[0302] In some other embodiments, the apparatus 1000 may be a second device, or a chip or circuit configured in a second device, etc. The processing unit 1001 may be configured to perform processing-related operations of the second device in the method embodiment. The communication unit 1002 may be configured to perform reception- and transmission-related operations of the second device in the method embodiment. For example, the communication unit 1002 in this embodiment of the present application may be a transmission unit.

[0303] For example, the communication unit 1002 includes a transceiver module configured to transmit a first sequence to a first device, where the first sequence is used by the first device to count a first bit error rate BER, the first sequence including P subsequences A, where the subsequence A is composed of one or more forward error correction FEC code blocks; and configured to transmit a second sequence to the first device, where the second sequence is used by the first device to count a second BER, where the second sequence includes Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks, where a length of the second sequence is greater than or equal to a length of the first sequence, where P and Q are positive integers.

[0304] In an optional scheme, a first BER is obtained by recording the number of anomalous bits in a first sequence, and a second BER is obtained by recording the number of anomalous bits in a second sequence.

[0305] In an optional manner, the communication unit 1002 is specifically configured to transmit the second sequence to the first device if the first BER meets a first preset BER.

[0306] In an optional scheme, the subsequence A includes N bits; the subsequence A includes M abnormal bits; and M, or a ratio of M to N, corresponds to the first preset BER, where N and M are positive integers and N is greater than or equal to M.

[0307] In an optional scheme, the N bits are bits comprised within a valid sequence in the subsequence A and the M bits are anomalous bits comprised within the valid sequence in the subsequence A; or the N bits are bits comprised within a valid sequence and a redundant sequence in the subsequence A and the M bits are anomalous bits comprised within the valid sequence and the redundant sequence in the subsequence A. Each of the one or more FEC code blocks comprises a data element sequence and a redundant element sequence, the valid sequence in the subsequence A comprises the data element sequence of the one or more FEC code blocks, and the redundant sequence in the subsequence A comprises the redundant element sequence of the one or more FEC code blocks.

[0308] In an optional scheme, the subsequence A includes X first FEC code blocks and Y second FEC code blocks; all bits included in the data element sequence of the first FEC code blocks are normal bits; the data element sequence of the second FEC code blocks includes a fixed number or ratio of anomalous bits; and Y, or a ratio of Y to (X+Y), corresponds to the first preset BER, where X and Y are positive integers.

[0309] In an optional scheme, all bits included in said sequence of data elements of said second FEC code block are anomalous bits.

[0310] In an optional scheme, all bits included in the redundant element sequence of the first FEC code block are normal bits and all bits included in the redundant element sequence of the second FEC code block are abnormal bits.

[0311] In an optional manner, the length of said subsequence A is equal to the length of said subsequence B.

[0312] In an optional scheme, if the value of the normal bit is 0, then the value of the abnormal bit is 1; or if the value of the normal bit is 1, then the value of the abnormal bit is 0.

[0313] In an optional scheme, all bits included in the first FEC code block may be 0, a fixed number or a fixed proportion of all abnormal bits in the second FEC code block are 1, and all remaining bits are 0.

[0314] In an optional manner, if the value of the good bit is 0, then all bits contained in all FEC code blocks in subsequence B are 0; or if the value of the good bit is 1, then all bits contained in the data element sequences of all FEC code blocks in subsequence B are 1.

[0315] In an optional manner, before transmitting the first sequence to the first device, the processing unit 1001 is further configured to perform link training with the first device.

[0316] In this embodiment of the present application, the division into these units is an example and is merely a logical division of functions. In actual implementation, other division methods may be used. In addition, the functional units in this embodiment of the present application may be integrated into one processor, or each of these units may exist physically alone, or two or more units may be integrated into one unit. The integrated units may be implemented in the form of hardware or in the form of software functional units.

[0317] 11 is a schematic diagram of an apparatus 1100 according to an embodiment of the present application. The apparatus 1100 may be an electronic device or a component in an electronic device, such as a chip or an integrated circuit. The apparatus 1100 may include at least one processor 1102 and a communication interface 1104. Furthermore, optionally, the apparatus may further include at least one memory 1101. Furthermore, optionally, a bus 1103 may further be included. The memory 1101, the processor 1102 and the communication interface 1104 are connected through the bus 1103.

[0318] The memory 1101 is configured to provide a storage space, which may store data such as an operating system and computer programs. The memory 1101 referred to in this embodiment of the present application may be a volatile memory or a non-volatile memory, or may include a volatile memory and a non-volatile memory. The non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM) and is used as an external cache. Many forms of RAM may be used, such as, for example and without limitation, static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synchlink DRAM, SLDRAM), and direct rambus dynamic random access memory (direct rambus RAM, DR RAM).

[0319] It should be noted that memory as described herein is intended to include, but is not limited to, these and any other suitable types of memory. The processor 1102 is a module for performing arithmetic and / or logical operations, and may be one or a combination of multiple processing modules, such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor unit (MPU), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a synergistic processing unit (which helps the central processing unit complete corresponding processes and applications), and a microcontroller unit (MCU).

[0320] It should be noted that where the processor is a general purpose processor, an ASIC, an FPGA or another programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (storage module) may be integrated into the processor.

[0321] The communication interface 1104 may be configured to provide information input or output for at least one processor, and / or the communication interface may be configured to receive data transmitted from the outside and / or transmit data to the outside, and may be a wired link interface including an Ethernet cable or the like, or may be a wireless link (such as Wi-Fi, Bluetooth, universal wireless transmission or in-vehicle short-range communication technology) interface. Optionally, the communication interface 1104 may further include a transmitter (e.g., a radio frequency transmitter or antenna) or a receiver or the like coupled thereto.

[0322] In some embodiments, the apparatus 1100 may be a first device or a component in the first device, e.g., a chip or an integrated circuit, in an embodiment of the method. The processor 1102 in the apparatus 1100 is configured to read a computer program stored in the memory 1101 to control the first device to perform the following operations: transmitting a first sequence to the first device, where the first sequence is used by the first device to count a first BER, the first sequence including P subsequences A, where the subsequence A is composed of one or more forward error correction FEC code blocks; and transmitting a second sequence to the first device, where the second sequence is used by the first device to count a second BER, where the second sequence includes Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks, where the length of the second sequence is greater than or equal to the length of the first sequence, where P and Q are positive integers.

[0323] Optionally, the processor 1102 in the first device may be further configured to read the program in the memory 1101 and perform the steps of the method performed by the test equipment at S300 to S305 shown in FIG. 3; or may be further configured to read the program in the memory 1101 and perform the steps of the method performed by the test equipment at S800 to S805 shown in FIG. 8; or may be further configured to read the program in the memory 1101 and perform the steps of the method performed by the test equipment at S900 to S907 shown in FIG. 9.

[0324] For specific details, please refer to the description in the method embodiment, and the details will not be described again here.

[0325] In some other embodiments, the apparatus 1100 may be a second device or a component in the second device, e.g., a chip or an integrated circuit, in an embodiment of the method. The processor 1102 in the apparatus 1100 is configured to read a computer program stored in the memory 1101 to control the second device to perform the following operations: receiving a first sequence transmitted by a second device, where the first sequence includes P subsequences A, where the subsequence A is composed of one or more forward error correction FEC code blocks; counting a first bit error rate BER of the received first sequence; receiving a second sequence transmitted by the second device, where the second sequence includes Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks; and counting a second BER of the received second sequence, where a length of the second sequence is greater than or equal to a length of the first sequence, and P and Q are positive integers.

[0326] Optionally, the processor 1102 in the second device may be further configured to read the program in the memory 1101 and perform the steps of the method performed by the device under test at S300 to S305 shown in FIG. 3; or may be further configured to read the program in the memory 1101 and perform the steps of the method performed by the device under test at S800 to S805 shown in FIG. 8; or may be further configured to read the program in the memory 1101 and perform the steps of the method performed by the device under test at S900 to S907 shown in FIG. 9.

[0327] For specific details, please refer to the description in the method embodiment, and the details will not be described again here.

[0328] An embodiment of the present application further provides a computer-readable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory, etc.) containing instructions, which when executed on a computer, enable the computer to perform the method described in the above embodiment.

[0329] An embodiment of the present application further provides a chip system. The chip system includes at least one processor and an interface circuit. Optionally, the chip system may further include a memory or an external memory. The processor is configured to execute instructions and / or data interactions through the interface circuit to implement the method in the above method embodiment. The chip system may include a chip, or may include a chip and another discrete component.

[0330] An embodiment of the present application further provides a computer program product including instructions, which, when executed on a computer, enable the computer to perform the methods described in the above embodiments.

[0331] All or some of the methods in the embodiments of the present application may be implemented by using software, hardware, firmware, or any combination thereof. When software is used to implement the embodiments, all or some of the embodiments may be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part.

[0332] For convenience and simplicity of description, those skilled in the art can clearly understand that the detailed operation processes of the above-mentioned systems, devices and units should refer to the corresponding processes in the above-mentioned method embodiments, and the details will not be described again here.

[0333] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, and may be located in one place or distributed among multiple network units. Some or all of these units may be selected based on actual requirements to realize the objectives of the solutions of the embodiments.

[0334] It is obvious that a person skilled in the art may make various modifications and variations to the present application without departing from the scope of the present application. The present application is intended to cover these modifications and variations of the present application only if they fall within the scope of protection defined by the following claims and their equivalent technologies.

Claims

1. 1. A communication method comprising: transmitting a first sequence to a first device, where the first sequence is used by the first device to count a first bit error rate BER, the first sequence including P subsequences A, the subsequence A consisting of one or more forward error correction FEC code blocks; and transmitting a second sequence to the first device, where the second sequence is used by the first device to count a second BER, the second sequence including Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks, where a length of the second sequence is greater than or equal to a length of the first sequence, and P and Q are positive integers. A method comprising:

2. transmitting the second sequence to the first device if the first BER meets a first preset BER. The method of claim 1 further comprising:

3. The subsequence A comprises N bits; The subsequence A includes M anomalous bits; and M, or a ratio of M and N, corresponds to a first preset BER, where N and M are positive integers and N is greater than or equal to M; The method according to claim 1 or 2.

4. the N bits are bits contained within a valid sequence in the subsequence A, and the M bits are anomalous bits contained within the valid sequence in the subsequence A; or The N bits are bits contained in valid and redundant sequences in the subsequence A, and the M bits are abnormal bits contained in the valid and redundant sequences in the subsequence A. wherein each of the one or more FEC code blocks comprises a data element sequence and a redundant element sequence, the valid sequence within the subsequence A comprises the data element sequence of the one or more FEC code blocks, and the redundant sequence within the subsequence A comprises the redundant element sequence of the one or more FEC code blocks. The method according to claim 3.

5. The subsequence A includes X first FEC code blocks and Y second FEC code blocks; all bits included in the sequence of data elements of the first FEC code block are normal bits; the sequence of data elements of the second FEC code block includes a fixed number or a fixed proportion of erroneous bits; and Y, or the ratio of Y to (X+Y), corresponds to a first preset BER, where X and Y are positive integers. The method according to claim 1 or 2.

6. The method of claim 5 , wherein all bits included in the sequence of data elements of the second FEC code block are anomalous bits.

7. 7. The method of claim 6, wherein all bits included in a redundant element sequence of the first FEC code block are normal bits and all bits included in a redundant element sequence of the second FEC code block are abnormal bits.

8. The method of claim 1 , wherein the length of the subsequence A is equal to the length of the subsequence B.

9. If the value of the normal bit is 0, then the value of the abnormal bit is 1; or If the value of the normal bit is 1, the value of the abnormal bit is 0.

9. The method according to any one of claims 1 to 8.

10. if the value of the normal bit is 0, then all bits included in the first FEC code block are 0, a fixed number or a fixed proportion of all abnormal bits in the second FEC code block are 1, and all remaining bits are 0.

10. The method of claim 9.

11. If the value of the normal bit is 0, then all bits contained in the data element sequences of all the FEC code blocks in the subsequence B are 0; or If the value of the normal bit is 1, then all bits contained in the data element sequences of all the FEC code blocks in the subsequence B are 1.

10. The method of claim 9.

12. Prior to the step of transmitting the first sequence to the first device, performing link training with the first device. The method of claim 1 , further comprising:

13. 1. A communication method comprising: receiving a first sequence transmitted by a second device, where the first sequence includes P subsequences A, where the subsequence A is composed of one or more forward error correction FEC code blocks; counting a first bit error rate BER of the received first sequence; receiving a second sequence transmitted by the second device, where the second sequence includes Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks; and counting a second BER of the received second sequence, where the length of the second sequence is greater than or equal to the length of the first sequence, and P and Q are positive integers. A method comprising:

14. counting the second BER of the received second sequence if the first BER meets a first preset BER. The method of claim 13 further comprising:

15. The subsequence A comprises N bits; The subsequence A includes M anomalous bits; and M or M / N corresponds to a first preset BER, where N and M are positive integers and N is greater than or equal to M; 15. The method according to claim 13 or 14.

16. the N bits are bits contained within a valid sequence in the subsequence A, and the M bits are anomalous bits contained within the valid sequence in the subsequence A; or The N bits are bits contained in valid and redundant sequences in the subsequence A, and the M bits are abnormal bits contained in the valid and redundant sequences in the subsequence A. wherein each of the one or more FEC code blocks comprises a data element sequence and a redundant element sequence, the valid sequence within the subsequence A comprises the data element sequence of the one or more FEC code blocks, and the redundant sequence within the subsequence A comprises the redundant element sequence of the one or more FEC code blocks. The method of claim 15.

17. The subsequence A includes X first FEC code blocks and Y second FEC code blocks; all bits included in the sequence of data elements of the first FEC code block are normal bits; the sequence of data elements of the second FEC code block includes a fixed number or a fixed proportion of erroneous bits; and Y, or the ratio of Y to (X+Y), corresponds to a first preset BER, where X and Y are positive integers.

15. The method according to claim 13 or 14.

18. 20. The method of claim 17, wherein all bits included in the sequence of data elements of the second FEC code block are anomalous bits.

19. 20. The method of claim 18, wherein all bits included in a redundant element sequence of the first FEC code block are normal bits and all bits included in a redundant element sequence of the second FEC code block are abnormal bits.

20. 20. The method of claim 13, wherein the length of the subsequence A is equal to the length of the subsequence B.

21. If the value of the normal bit is 0, then the value of the abnormal bit is 1; or If the value of the normal bit is 1, the value of the abnormal bit is 0.

21. The method according to any one of claims 13 to 20.

22. if the value of the normal bit is 0, then all bits included in the first FEC code block are 0, a fixed number or a fixed proportion of all abnormal bits in the second FEC code block are 1, and all remaining bits are 0.

22. The method of claim 21.

23. If the value of the normal bit is 0, then all bits contained in all the FEC code blocks in the subsequence B are 0; or If the value of the normal bit is 1, then all bits contained in the data element sequences of all the FEC code blocks in the subsequence B are 1.

22. The method of claim 21.

24. The step of counting a first bit error rate BER of the received first sequence comprises: counting the number of anomalous bits in the received first sequence; or counting a ratio of the number of erroneous bits in the received first sequence to the total number of bits in the received first sequence. and The step of counting a second BER of the received second sequence comprises: counting the number of anomalous bits in the received second sequence; or counting a ratio of the number of anomalous bits in the received second sequence to the total number of bits in the received second sequence. have 24. The method according to any one of claims 13 to 23.

25. 25. The method of claim 13, further comprising the step of performing link training with the second device prior to the step of receiving a first sequence transmitted by the second device.

26. A transceiver module is provided. the transceiver module is configured to transmit a first sequence to a first device, where the first sequence is used by the first device to count a first bit error rate BER, the first sequence comprising P subsequences A, where the subsequence A is comprised of one or more forward error correction FEC code blocks; and configured to transmit a second sequence to the first device, where the second sequence is used by the first device to count a second BER, the second sequence comprising Q subsequences B, where the subsequence B is comprised of one or more forward error correction FEC code blocks, a length of the second sequence being greater than or equal to a length of the first sequence, where P and Q are positive integers. Test equipment.

27. A transceiver module is provided. The transceiver module is configured to receive a first sequence transmitted by a second device; and to count a first bit error rate BER of the first sequence, where the first sequence includes P subsequences A, where the subsequence A is composed of one or more forward error correction FEC code blocks; to receive a second sequence transmitted by the second device; and to count a second BER of the second sequence, where the second sequence includes Q subsequences B, where the subsequence B is composed of one or more forward error correction FEC code blocks, where a length of the second sequence is greater than or equal to a length of the first sequence, where P and Q are positive integers. Test equipment.

28. one or more processors; and A memory configured to store one or more programs. Equipped with wherein the one or more programs, when executed by the one or more processors, implement a method according to any one of claims 1 to 12. Test equipment.

29. one or more processors; and A memory configured to store one or more programs. Equipped with wherein the one or more programs, when executed by the one or more processors, implement a method according to any one of claims 13 to 25. Test equipment.

30. A test chip comprising a processor and a communication interface, wherein the processor is configured to call instructions from the communication interface and execute the instructions, and when the processor executes the instructions, a method according to any one of claims 1 to 12 is implemented, or a method according to any one of claims 13 to 25 is implemented.

31. A computer program product for causing a processor to carry out the method according to any one of claims 1 to 12 or the method according to any one of claims 13 to 25.

Citation Information

Patent Citations

  • Bit error rate measurement device and data segment display method

    CN113497674A

  • Function test method and system for test algorithm in communication equipment

    JP2002544731A

  • Station-side termination device, subscriber-side termination device, optical communication system, communication method, and program for devices

    JP2010028629A

  • FEC error adding device, test signal generating device using the same, and FEC error adding method

    JP2020120249A

  • Methods, systems, and computer readable media for testing of hardened forward error correction (FEC) implementations

    US11050527B1