Link loss compensation method, device and equipment and loss compensation device

By obtaining the actual loss value and preset loss value of the link to be tested, determining the loss difference value, and determining the target compensation cable from multiple compensation cables of different lengths, the problem of poor flexibility in the link loss compensation method in the prior art is solved, and high-precision and flexible loss compensation are achieved.

CN120144511APending Publication Date: 2025-06-13INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510344423.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, the link loss compensation method based on the ISI loss board is difficult to meet the compensation needs of small losses or high-precision losses, and has poor flexibility.

Method used

By obtaining the actual loss value and preset loss value of the link to be tested, the loss difference value is determined, and the target compensation cable is determined from multiple compensation cables of different lengths, thereby compensating for the loss difference of the link to be tested.

Benefits of technology

The accuracy and flexibility of link loss compensation are improved, and the loss can be adjusted dynamically to adapt to link loss, meeting the loss conditions of the link to be tested.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144511A_ABST
    Figure CN120144511A_ABST
Patent Text Reader

Abstract

The invention provides a link loss compensation method, device and equipment and a loss compensation device, which can be applied to the technical field of servers. The method comprises the following steps: acquiring an actual loss value of a to-be-detected link; determining a loss difference value according to the actual loss value and a preset loss value; determining a target compensation cable from the plurality of compensation cables with different lengths according to the loss difference value; the target compensation cable is connected to the to-be-measured link, and the loss difference value of the to-be-measured link is compensated, so that the loss condition of the to-be-measured link is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of servers, and specifically relates to a link loss compensation method, device, equipment, and loss compensation device. Background Art

[0002] With the development of computer technology, servers or storage devices have increasingly higher requirements for the computing speed of the central processing unit. More device controllers adopt high-speed signals based on the 5th generation of the Peripheral Component Interconnect Express (PCIE5.0) technology. Due to the high rate of this high-speed signal, higher requirements are imposed on the loss of signal transmission. In order to avoid an excessive error rate during signal transmission, it is necessary to compensate for the loss of the link.

[0003] In the process of implementing this application, the inventors found that in the related art, the loss of the link is mainly compensated by an Intersymbol Interference (ISI) loss board. However, since the routing length arranged in the ISI loss board is fixed, it is difficult to meet the compensation requirements for smaller losses or high-precision losses, resulting in poor flexibility of the loss compensation based on the ISI loss board. Summary of the Invention

[0004] In view of the above problems, this application provides a link loss compensation method, device, equipment, and loss compensation device.

[0005] According to the first aspect of this application, a link loss compensation method is provided, including: obtaining the actual loss value of the link to be measured; determining the loss difference according to the actual loss value and the preset loss value; determining the target compensation cable from multiple compensation cables with different lengths according to the loss difference; and compensating for the loss difference of the link to be measured by connecting the target compensation cable to the link to be measured to meet the loss condition of the link to be measured.

[0006] The second aspect of this application provides a link loss compensation device, including: an obtaining module, a first determination module, a second determination module, and a compensation module.

[0007] The obtaining module is used to obtain the actual loss value of the link to be measured.

[0008] The first determination module is used to determine the loss difference according to the actual loss value and the preset loss value.

[0009] The second determination module is used to determine the target compensation cable from multiple compensation cables with different lengths according to the loss difference.

[0010] A compensation module, which is used to compensate for the loss difference of a to-be-tested link by connecting a target compensation cable to the to-be-tested link, so as to meet the loss condition of the to-be-tested link.

[0011] The third aspect of the present application provides an electronic device, including: one or more processors; a memory for storing one or more computer programs, wherein the above one or more processors execute the above one or more computer programs to implement the steps of the above method.

[0012] The fourth aspect of the present application provides a loss compensation device. The loss compensation device is electrically connected to a first device and a second device. The loss compensation device includes: an intelligent loss compensation board provided with a plurality of compensation cables of different lengths; a gear output control circuit for determining a loss difference according to the actual loss value and the preset loss value of a to-be-tested link between the first device and the second device, and determining a target compensation cable from the plurality of compensation cables of different lengths according to the loss difference; a watchdog circuit for monitoring the gear output control circuit; a single-chip microcomputer control circuit for controlling the gear output control circuit, and compensating for the loss difference of the to-be-tested link by electrically connecting the first device and the second device via the target compensation cable, so as to meet the loss condition of the to-be-tested link.

[0013] According to the link loss compensation method provided by the present application, by subtracting the preset loss value from the obtained actual loss value of the to-be-tested link, a loss difference can be obtained, and then a target compensation cable can be determined from the lengths of a plurality of compensation cables of different lengths. When the target compensation cable is determined, compensating for the loss difference can meet the loss condition of the to-be-tested link. Since the loss difference in the to-be-tested link is dynamic, a target compensation cable corresponding thereto can be dynamically determined based on the loss difference for compensation, so as to meet the loss condition of the to-be-tested link, that is, the loss limit value of the to-be-tested link, thereby improving the accuracy and flexibility of the loss compensation of the to-be-tested link. Description of the Drawings

[0014] Through the following description of the embodiments of the present application with reference to the drawings, the above content and other objects, features and advantages of the present application will be clearer. In the drawings:

[0015] Figure 1 Schematically shows an application scenario diagram of the link loss compensation method according to an embodiment of the present application;

[0016] Figure 2 Schematically shows a flowchart of the link loss compensation method according to an embodiment of the present application;

[0017] Figure 3 Schematically shows a schematic diagram of the use position of the intelligent loss compensation board according to an embodiment of the present application;

[0018] Figure 4 Schematically shows a schematic diagram of a loss compensation device according to an embodiment of the present application;

[0019] Figure 5 Schematically shows the working principle diagram of a loss compensation device according to an embodiment of the present application;

[0020] Figure 6 Schematically shows a schematic diagram of a gear position output control circuit according to an embodiment of the present application;

[0021] Figure 7 Schematically shows a structural block diagram of a link loss compensation device according to an embodiment of the present application; and

[0022] Figure 8 Schematically shows a block diagram of an electronic device suitable for implementing a link loss compensation method according to an embodiment of the present application. Detailed implementation manners

[0023] Hereinafter, embodiments of the present application will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present application. In the following detailed description, for the sake of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present application. However, obviously, one or more embodiments can also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessarily confusing the concepts of the present application.

[0024] The terms used herein are merely for describing specific embodiments and are not intended to limit the present application. The terms "including", "comprising", etc. used herein indicate the presence of the described features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0025] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0026] In the case of using expressions such as "at least one of A, B, and C, etc.", generally, it should be interpreted according to the meaning commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include, but is not limited to, a system having only A, only B, only C, having A and B, having A and C, having B and C, and / or having A, B, and C, etc.).

[0027] In the process of implementing this application, it is found that as the computing speed requirements of servers or storage devices for the Central Processing Unit (CPU) become higher and higher, more device controllers adopt high-speed signals based on PCIE 5.0 technology. The data transmission speed of PCIe 5.0 technology is twice that of PCIe 4.0 technology and four times that of PCIe 3.0 technology, and it has downward compatibility. PCIe 5.0 technology can support data link speed operations of 32 GT / second and can capture larger volumes of upstream and downstream traffic. The increase in data transmission rate brings a greater risk of errors occurring during data transmission. In practical applications, especially in the storage industry, the tolerance for errors is relatively small. The occurrence of errors means that the data accuracy is unreliable.

[0028] In addition, due to the transmission characteristics of high-speed signals, the signal quality is poor during long-distance transmission. Coupled with the influence of Flame Retardant type 4 (FR4) boards on high-frequency and high-speed signals, among the two communicating parties, for example, if the transmitted signal is 1010 and the received signal by the receiving party is 1011, comparing 1010 and 1011, the last digit changes from 0 to 1. Then the last digit 1 is the incorrect digit, that is, the error code. The generation of error codes is due to the decay changing the voltage of the signal during signal transmission, resulting in the signal being damaged during transmission and causing error codes to be generated. Error codes based on PCIE technology are classified into two types in terms of severity: Correctable Errors and Uncorrectable Errors. The error codes of correctable errors have a relatively small impact and belong to correctable errors. They may affect the actual performance, but have a relatively small impact on the entire system. In theory, the error codes of correctable errors only need to be recorded and the information on the link quality provided to the user, without further processing; uncorrectable errors can be divided into Fatal Errors and Non-fatal Errors according to the impact they cause. Fatal errors will cause the entire data link to malfunction and lead to problems with the link connection. Non-fatal errors will cause a certain data frame to be sent failed, but there will be no link failure, and the link connection of the entire link remains in a normal state.

[0029] It is possible to test the error situation of the signal transmission link under the condition of meeting the total link loss to evaluate the stability of the link data transmission based on PCIE 5.0 technology. It is possible to use an error detector to simulate external peripherals with Open Compute Project (OCP) interfaces or PCIE interface peripherals, and use an ISI loss board for loss compensation to meet the requirement of the 36 dB total link loss required by the PCIE 5.0 protocol.

[0030] However, in the related art, an ISI loss board is mainly used to compensate for the loss of the link to be tested. The ISI loss board is a printed circuit board (PCB) with traces of different lengths distributed on it. Different losses are provided according to the different lengths of the traces to meet the requirements of the total link loss. However, due to the limited space of the ISI loss board, not too many traces and test interfaces can be placed. In addition, since the traces are fixed, the loss values are also fixed and cannot be replaced, and the available loss value range is relatively limited, resulting in the inability to meet the requirements of smaller losses or high-precision losses, and also unable to quickly and dynamically adjust the loss to adapt to the link loss. In addition, due to the increase in the use time of the ISI loss board, the increase in temperature, and the wear of the test connectors, etc., the loss accuracy will be reduced, affecting the test results, resulting in unstable loss accuracy provided by the ISI loss board.

[0031] In view of this, an embodiment of the present application provides a link loss compensation method, including obtaining the actual loss value of the link to be tested; determining the loss difference according to the actual loss value and the preset loss value; determining the target compensation cable from multiple compensation cables with different lengths arranged on the intelligent loss compensation board according to the loss difference; and compensating for the loss difference of the link to be tested based on the target compensation cable to meet the loss condition of the link to be tested.

[0032] Figure 1 FIG. schematically shows an application scenario diagram of the link loss compensation method according to an embodiment of the present application.

[0033] As Figure 1 shown, the application scenario according to this embodiment may include a first device 110, a second device 120, and an intelligent loss compensation board 130. The intelligent loss compensation board 130 is located between the first device 110 and the second device 120, and is used to connect the output end of the first device 110 and the input end of the second device, so as to realize the second device 120 transmitting data to the first device 110 through the intelligent loss compensation board 130. The intelligent loss compensation board 130 can compensate for the loss of the link for transmitting data between the first device 110 and the second device 120 to meet the budget condition of the link.

[0034] Figure 2 FIG. schematically shows a flowchart of the link loss compensation method according to an embodiment of the present application.

[0035] As Figure 2 shown, the link loss compensation method 200 of this embodiment includes operations S210 to S240.

[0036] In operation S210, obtain the actual loss value of the link to be tested.

[0037] In operation S220, a loss difference is determined based on the actual loss value and the preset loss value.

[0038] In operation S230, a target compensation cable is determined from multiple compensation cables of different lengths according to the loss difference.

[0039] In operation S240, the loss difference of the link under test is compensated by connecting the target compensation cable to the link under test to meet the loss condition of the link under test.

[0040] According to an embodiment of the present application, the link under test can represent a link for data transmission between a first device and a second device. The data transmission in the link under test can adopt the PCIE5.0 technology. The PCle5.0 technology can support data link speed operations of 32 GT / second and can capture larger-capacity upstream and downstream traffic. The first device can represent the device under test in the link under test. For example, the first device can be a network interface card. The second device can represent a device for error code testing in the link under test. For example, the second device can be an error code tester. The error code tester can include two modules: an error code generation module and an error code reception module. The error code generation module is responsible for generating test patterns, and the error code reception module receives the data sent by the first device. The error code tester determines whether an error code is generated by comparing the sent and received data.

[0041] According to an embodiment of the present application, multiple compensation cables of different lengths can be arranged on the intelligent loss compensation board.

[0042] Figure 3 Schematically shows a schematic diagram of the use position of the intelligent loss compensation board according to an embodiment of the present application.

[0043] As Figure 3As shown, the first device 310 is the device under test, and the second device 320 is the error code tester. Both the device under test and the error code tester have two input ports and two output ports. The existence of the two input / output ports can provide differential signal pairs. The intelligent loss compensation board position 330 is between the first device 310 and the second device 320 and is used to connect the output end of the first device 310 and the input end of the second device 320. The device under test (DUT) can be an OCP test fixture specifically used to test open computing project interface devices. The OCP test fixture can include a configurable logic block (CLB). The link for the first device 310 to send data to the second device 320 via the re-driver 340 can be called the link under test for transmission. The link for the first device 310 to receive data transmitted by the second device 320 via the intelligent loss compensation board 330 can be called the link under test for reception. In addition, there is a re-driver 340 between the first device 310 and the second device 320. The existence of the re-driver 340 can make the target transmission loss value of the link under test for transmission meet the loss condition of the link under test for transmission. The connections between the first device 310, the second device 320, the intelligent loss compensation board 330, and the re-driver 340 can adopt a micro-miniature push-on connector (abbreviated as MMPX connector). The direct connection link between the first device 310 and the second device 320 can be used to transmit a clock signal (abbreviated as CLK) and differential signal pairs (abbreviated as P / N) to determine the accuracy of data transmission. The error code generation module of the error code tester is used to generate a test pattern. The test pattern passes through the intelligent loss compensation board 330 to the device under test, and the data sent by the device under test is transmitted to the error code reception module of the error code tester via the re-driver 340.

[0044] According to an embodiment of the present application, the preset loss value can be set according to experience or requirements. For example, the preset loss value can be 2 dB. The preset loss value and the actual loss value of the link under test obtained can be subtracted to obtain a loss difference. For example, when the preset loss value is 2 dB and the actual loss value is 1.9 dB, the loss difference can be obtained as 0.1 dB.

[0045] According to an embodiment of the present application, the intelligent loss compensation board can represent a PCB board with multiple compensation cables of different lengths arranged. When the loss difference is determined, the target compensation cable can be determined from the multiple compensation cables of different lengths.

[0046] According to an embodiment of the present application, compensation cables of different lengths may have different loss values, so that based on the target compensation cable, the loss difference of the link under test can be compensated, and the loss condition of the link under test can be satisfied. The loss condition may be the condition that the loss of the link under test reaches the limit. For example, in the link under test based on PCIE5.0 technology, the limit value of the loss may be 36 dB.

[0047] According to an embodiment of the present application, by subtracting the preset loss value from the actual loss value of the link under test obtained, the loss difference can be obtained. Furthermore, the target compensation cable can be determined from multiple compensation cable lengths of different lengths. When the target compensation cable is determined, compensating the loss difference can meet the loss condition of the link under test. Since the loss difference in the link under test is dynamic, the corresponding target compensation cable can be dynamically determined based on the loss difference for compensation, so as to meet the loss condition of the link under test, that is, the loss limit value of the link under test, thereby improving the accuracy and flexibility of the loss compensation of the link under test.

[0048] According to an embodiment of the present application, by connecting the target compensation cable to the link under test to compensate the loss difference of the link under test to meet the loss condition of the link under test, it includes: connecting the target compensation cable to the link under test to compensate the link under test receiving link to obtain the target receiving loss value; obtaining the target loss value according to the target receiving loss value and the target sending loss value.

[0049] According to an embodiment of the present application, the link under test may include a link under test sending link and a link under test receiving link. The link under test sending link may represent the link for sending data from the first device to the second device, and the link under test receiving link may represent the link for sending data from the second device to the first device, that is, the link for the first device to receive the data sent by the second device.

[0050] According to an embodiment of the present application, the target receiving loss value meets the loss condition of the link under test receiving link. The target sending loss value meets the loss condition of the link under test sending link. The target loss value meets the loss condition of the link under test. In the link under test based on PCIE5.0 technology, the limit value of the loss may be 36 dB, that is, the loss condition of the link under test is to reach 36 dB, so that the target sending loss value can be determined to be 18 dB, and the target receiving loss value can also be 18 dB.

[0051] According to an embodiment of the present application, since the target sending loss value meets the loss condition of the link under test sending link, that is, the target sending link may not need to be compensated, and the target receiving link needs to be compensated to meet the loss condition of the link under test.

[0052] According to an embodiment of the present application, when the target compensation cable is determined, that is, when the length of the target compensation cable is determined, the corresponding compensation loss value is also determined. By connecting the target compensation cable to the receiving link under test, the receiving link under test can be compensated based on the compensation loss value, and the target receiving loss value that meets the loss condition of the receiving link under test can be obtained.

[0053] According to an embodiment of the present application, since the target transmission loss value meets the transmitting link under test, by compensating the receiving link under test, the target loss value that meets the loss condition of the link under test can be obtained, and the receiving link under test is compensated based on the target compensation cable, and the target compensation cable is determined according to the dynamic loss difference, thereby improving the accuracy and flexibility of the compensation of the link under test.

[0054] According to an embodiment of the present application, by connecting the target compensation cable to the receiving link under test and compensating the receiving link under test to obtain the target receiving loss value, it includes: determining the compensation loss value according to the length of the target compensation cable; compensating the receiving link under test according to the compensation loss value to obtain the target receiving loss value.

[0055] According to an embodiment of the present application, when the target compensation cable is determined, the length of the target compensation cable can be determined, and thus the corresponding compensation loss value can be determined.

[0056] According to an embodiment of the present application, since the receiving link under test does not meet the loss condition, the receiving link under test needs to be compensated. When the loss compensation value is determined, the receiving link under test can be compensated based on the loss compensation value, and thus the target receiving loss value can be obtained, where the target receiving loss value meets the loss condition of the receiving link under test. For example, when the loss value of the receiving link under test is 17.5 dB and does not reach the loss condition of 18 dB of the receiving link under test, the receiving link under test needs to be compensated. Therefore, when the compensation loss value determined according to the length of the target compensation cable is 0.5 dB, the compensation of the receiving link under test can be realized, that is, the target receiving loss value of 18 dB that meets the receiving link under test is obtained.

[0057] According to an embodiment of the present application, by determining the length of the target compensation cable, the compensation loss value can be determined, and the receiving link under test can be compensated based on the compensation loss value, so that the receiving link under test can meet the loss condition, that is, the target receiving loss value is obtained, and the compensation accuracy of the receiving link under test is improved.

[0058] According to an embodiment of the present application, determining a target compensation cable from a plurality of compensation cables with different lengths according to a loss difference includes: determining a compensation cable length selection gear according to the loss difference and a preset mapping relationship, including: based on the loss difference, determining a target gear loss value corresponding to the loss difference; based on the preset mapping relationship, determining the gear corresponding to the target gear loss value as the compensation cable length selection gear; and determining the target compensation cable from the plurality of compensation cables with different lengths according to the compensation cable length selection gear.

[0059] According to an embodiment of the present application, the preset mapping relationship may represent the mapping relationship between the loss difference and the compensation cable length selection gear. The compensation cable length selection gear may include a plurality of gears. For example, the length of the compensation cable corresponding to each 0.1 dB loss difference magnitude may be set as a compensation cable length selection gear, so that the loss difference range of 0.1 dB to 10 dB may be divided into 100 compensation cable length selection gears.

[0060] According to an embodiment of the present application, in the case where the loss difference is determined, the compensation cable length selection gear may be determined based on the preset mapping relationship.

[0061] According to an embodiment of the present application, the loss difference may also have gears. The loss difference gears may include a plurality of gears. Each loss difference gear may correspond to a range of loss differences. For example, in the case where a 0.05 dB loss difference magnitude is set as a loss difference gear, a loss difference of 0.052 dB and a loss difference of 0.054 dB belong to the same loss difference gear. Each loss difference gear may correspond to a compensation cable length selection gear, and a plurality of loss difference gears may also correspond to a compensation cable length selection gear. For example, a 0.05 dB loss difference gear and a 0.10 dB loss difference gear may correspond to the same compensation cable length selection gear.

[0062] According to an embodiment of the present application, based on the loss difference, the loss difference gear corresponding to the loss difference may be determined, and then the target gear loss value may be determined. Then, based on the mapping relationship, the gear corresponding to the target loss value may be determined as the compensation cable length selection gear, further improving the accuracy of the determined compensation cable length selection gear.

[0063] According to an embodiment of the present application, each compensation cable length selection gear corresponds to the length of a compensation cable. Therefore, the target compensation cable may be determined from the plurality of compensation cables with different lengths according to the compensation cable length selection gear.

[0064] According to an embodiment of the present application, since there is a mapping relationship between the loss difference and the compensation cable length selection gear, the compensation cable length selection gear can be determined based on the loss difference, and different compensation cable length selection gears correspond to different compensation cable lengths, so that the target compensation cable can be determined, and then the loss difference of the link under test can be compensated based on the target compensation cable, further improving the compensation accuracy of the link under test.

[0065] According to an embodiment of the present application, determining a target compensation cable from multiple compensation cables with different lengths according to the compensation cable length selection gear includes: modifying the register value according to the compensation cable length selection gear to obtain a target register value, including: determining the switch state according to the compensation cable length selection gear; modifying the register value according to the switch state to obtain a target register value; and determining the target compensation cable from multiple compensation cables with different lengths according to the target register value.

[0066] According to an embodiment of the present application, the intelligent loss compensation board has registers, and different register values correspond to different compensation cable length selection gears. Therefore, when the compensation cable length selection gear is determined, the register value of the intelligent loss compensation board can be modified to obtain a target register value.

[0067] According to an embodiment of the present application, the switch state can represent the state of the switch for controlling the compensation loss value in the receiving link under test. There can be multiple switches for controlling the compensation loss value, and different combinations of the states of the multiple switches for controlling the compensation loss value can obtain different register values.

[0068] According to an embodiment of the present application, by controlling multiple switch states, the modification of the register value can be realized. Thus, when the compensation cable length selection gear is determined, the switch state is determined, and then the register value is modified according to the switch state to obtain a target register value.

[0069] According to an embodiment of the present application, the target compensation cable can be determined from multiple compensation cables with different lengths according to the magnitude of the target register value.

[0070] According to an embodiment of the present application, the switch state can be determined according to the compensation cable length selection gear, and then the register value of the intelligent loss compensation board is modified to obtain a target register value. According to the target register value, the target compensation cable is determined from multiple compensation cables with different lengths arranged on the intelligent loss compensation board, improving the accuracy of determining the target compensation cable, and further improving the compensation accuracy of the link under test.

[0071] Figure 4 A schematic diagram of a loss compensation device according to an embodiment of the present application is schematically shown.

[0072] AsFigure 4 As shown, the loss compensation device is electrically connected to the first device and the second device. The loss compensation device includes: an intelligent loss compensation board 470, a gear position output control circuit 440, a watchdog circuit 450, and a single-chip microcomputer control circuit 430.

[0073] According to an embodiment of the present application, the loss compensation device may further include a first display screen 410, a second display screen 420, a reset circuit 460, and a plurality of MMPX connectors.

[0074] According to an embodiment of the present application, the intelligent loss compensation board 470 may be provided with a plurality of compensation cables of different lengths. Both the first display screen 410 and the second display screen 420 may adopt a capacitive touch type organic light-emitting diode (OLED) display screen. The first display screen 410 is used to input a preset loss value, and the second display screen 420 is used to display the actual loss value. The preset loss value set through the first display screen 410 can be input into the control chip of the single-chip microcomputer control circuit 430. The gear position output control circuit 440 may be used to determine the loss difference according to the actual loss value and the preset loss value of the link to be measured between the first device and the second device, and determine the target compensation cable from a plurality of compensation cables of different lengths according to the loss difference. The watchdog circuit 450 may be used to monitor whether the gear position output control circuit 440 is working properly. The single-chip microcomputer control circuit 430 may be used to control the gear position output control circuit 440, and electrically connect the first device and the second device through the target compensation cable to compensate for the loss difference of the link to be measured to meet the loss condition of the link to be measured. The single-chip microcomputer control circuit 430 is also used to detect the watchdog circuit 450. The watchdog circuit 450 has an internal timer. After counting to 255, the control chip in the gear position output control circuit 440 will write a flag bit into the corresponding pin of the control chip of the single-chip microcomputer control circuit 430. After the control chip in the gear position output control circuit 440 runs abnormally or fails, the counting stops. At this time, the reset circuit 460 is used to reset the gear position output control circuit 440. Therefore, the watchdog circuit 450 is also used to monitor whether the gear position output control circuit 440 is working properly. The MMPX connectors may include 4 connectors, namely connector MMPX "A", connector MMPX "B", connector MMPX "C", and connector MMPX "D". There are a plurality of compensation cables of different lengths on the intelligent loss compensation board 470 between connector MMPX "A" and connector MMPX "C", and there are also a plurality of compensation cables of different lengths on the intelligent loss compensation board 470 between connector MMPX "B" and connector MMPX "D".

[0075] According to an embodiment of the present application, based on the loss compensation device, different loss differences required in the error code test process can be quickly realized to meet the loss conditions of the link to be tested. Compared with the very large ISI loss board used in the related art, the loss compensation device can reduce the time for replacing cables and connectors, improve the accuracy and flexibility of loss compensation, and thus improve the efficiency and accuracy of the error code test. In addition, the ISI loss board in the related art is provided with 40 pairs of MMPX connectors and can output loss differences in 20 gears. When in use, the connectors corresponding to the cable lengths need to be selected to continuously plug and unplug the cables, which will accelerate the cable loss, reduce the test accuracy, and the device needs to be powered off during the switching. The total time for restarting the device after replacement is expected to be 10 minutes, while using the loss compensation device, the switching of the target compensation cable can be completed in about 30 seconds without powering off.

[0076] Figure 5 Schematically shows the working principle diagram of the loss compensation device according to an embodiment of the present application.

[0077] As Figure 5 shown, by inputting a preset loss value on the first display screen 410, the preset loss value can be input into the control chip of the single-chip microcomputer control circuit 430 through the first display screen 410. The control chip of the single-chip microcomputer control circuit 430 controls the gear output control circuit 440 through the Inter - Integrated Circuit (IIC) bus to determine the target compensation cable from multiple compensation cables with different lengths arranged on the intelligent loss compensation board 470, so that the actual loss of the link can be displayed on the second display screen 420. The watchdog circuit 450 is an internal timer of the single-chip microcomputer control circuit 430. After the single-chip microcomputer control circuit 430 runs abnormally or fails, the single-chip microcomputer control circuit 430 will control the reset circuit 460 to reset the gear output control circuit 440.

[0078] Figure 6 Schematically shows the schematic diagram of the gear output control circuit according to an embodiment of the present application.

[0079] As Figure 6 shown, 100 compensation cables with different lengths are arranged on the intelligent loss compensation board between MMPX connector A and MMPX connector C, and 100 compensation cables with different lengths are also arranged on the intelligent loss compensation board between MMPX connector B and MMPX connector D. The first target compensation cable can be determined from 100 compensation cables according to the switch state between MMPX connector A and MMPX connector C, and the second target compensation cable can be determined from 100 compensation cables according to the switch state between MMPX connector B and MMPX connector D. Then, the target compensation cable is determined according to the first target compensation cable and the second target compensation cable.

[0080] Based on the above link loss compensation method, the present application also provides a link loss compensation device. The following will be combined with Figure 7 to describe this device in detail.

[0081] Figure 7 The structural block diagram of the link loss compensation device according to an embodiment of the present application is schematically shown.

[0082] As Figure 7 shown, the link loss compensation device 700 of this embodiment includes an acquisition module 710, a first determination module 720, a second determination module 730, and a compensation module 740.

[0083] The acquisition module 710 is configured to acquire the actual loss value of the link to be measured. In one embodiment, the acquisition module 710 may be configured to perform the operation S210 described above, which will not be elaborated here.

[0084] The first determination module 720 is configured to determine the loss difference according to the actual loss value and the preset loss value. In one embodiment, the first determination module 720 may be configured to perform the operation S220 described above, which will not be elaborated here.

[0085] The second determination module 730 is configured to determine the target compensation cable from multiple compensation cables of different lengths according to the loss difference. In one embodiment, the second determination module 730 may be configured to perform the operation S230 described above, which will not be elaborated here.

[0086] The compensation module 740 is configured to compensate for the loss difference of the link to be measured by connecting the target compensation cable to the link to be measured, so as to meet the loss condition of the link to be measured. In one embodiment, the compensation module 740 may be configured to perform the operation S240 described above, which will not be elaborated here.

[0087] According to an embodiment of the present application, the link to be measured includes a to-be-measured transmission link from the first device to the second device and a to-be-measured reception link from the second device to the first device; the compensation module 740 includes: a first compensation sub-module and a second compensation sub-module.

[0088] The first compensation sub-module is configured to compensate for the to-be-measured reception link by connecting the target compensation cable to the to-be-measured reception link, so as to obtain a target reception loss value, where the target reception loss value meets the loss condition of the to-be-measured reception link.

[0089] The second compensation sub-module is configured to obtain a target loss value according to the target reception loss value and the target transmission loss value, where the target transmission loss value meets the loss condition of the to-be-measured transmission link, and the target loss value meets the loss condition of the to-be-measured link.

[0090] According to an embodiment of the present application, the first compensation sub-module includes: a first compensation unit and a second compensation unit.

[0091] The first compensation unit is configured to determine a compensation loss value according to the length of the target compensation cable.

[0092] The second compensation unit is configured to compensate the to-be-tested receiving link according to the compensation loss value to obtain a target receiving loss value.

[0093] According to an embodiment of the present application, the second determination module 730 includes: a first determination sub-module and a second determination sub-module.

[0094] The first determination sub-module is configured to determine a compensation cable length selection gear according to a loss difference and a preset mapping relationship, where the preset mapping relationship represents the mapping relationship between the loss difference and the compensation cable length selection gear.

[0095] The second determination sub-module is configured to determine a target compensation cable from a plurality of compensation cables with different lengths according to the compensation cable length selection gear.

[0096] According to an embodiment of the present application, the first determination sub-module includes: a first determination unit and a second determination unit.

[0097] The first determination unit is configured to determine a target gear loss value corresponding to the loss difference based on the loss difference.

[0098] The second determination unit is configured to determine the gear corresponding to the target gear loss value as the compensation cable length selection gear based on the preset mapping relationship.

[0099] According to an embodiment of the present application, the second determination sub-module includes: a third determination unit and a fourth determination unit.

[0100] The third determination unit is configured to modify a register value according to the compensation cable length selection gear to obtain a target register value.

[0101] The fourth determination unit is configured to determine a target compensation cable from a plurality of compensation cables with different lengths according to the target register value.

[0102] According to an embodiment of the present application, the third determination unit includes: a first determination subunit and a second determination subunit.

[0103] The first determination subunit is configured to determine a switch state according to the compensation cable length selection gear, where the switch state represents the state of a switch for controlling a compensation loss value in the to-be-tested receiving link.

[0104] The second determination subunit is configured to modify a register value according to the switch state to obtain a target register value.

[0105] According to an embodiment of the present application, any plurality of modules among the acquisition module 710, the first determination module 720, the second determination module 730, and the compensation module 740 may be combined and implemented in one module, or any one of them may be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules may be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present application, at least one of the acquisition module 710, the first determination module 720, the second determination module 730, and the compensation module 740 may be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on chip, a system on substrate, a system on package, an application specific integrated circuit (ASIC), or any other reasonable way of integrating or packaging circuits, etc., implemented by hardware or firmware, or implemented in any one of the three implementation manners of software, hardware, and firmware, or in an appropriate combination of any several of them. Alternatively, at least one of the acquisition module 710, the first determination module 720, the second determination module 730, and the compensation module 740 may be at least partially implemented as a computer program module, and when the computer program module is run, it can execute the corresponding functions.

[0106] Figure 8 A block diagram of an electronic device suitable for implementing the link loss compensation method according to an embodiment of the present application is schematically shown.

[0107] As Figure 8 shown, the electronic device 800 according to an embodiment of the present application includes a processor 801, which can perform various appropriate actions and processes according to the program stored in the read only memory (ROM) 802 or the program loaded from the storage section 808 into the random access memory (RAM) 803. The processor 801 may include, for example, a general microprocessor (such as a CPU), an instruction set processor, and / or a related chipset, and / or a dedicated microprocessor (such as an application specific integrated circuit (ASIC)), etc. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present application.

[0108] In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present application by executing the programs in the ROM 802 and / or the RAM 803. It should be noted that the programs may also be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flow according to the embodiments of the present application by executing the programs stored in the one or more memories.

[0109] According to an embodiment of the present application, the electronic device 800 may further include an input / output (I / O) interface 805, and the input / output (I / O) interface 805 is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc. and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read from it can be installed into the storage portion 808 as needed.

[0110] The present application also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist separately without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the one or more programs are executed, the method according to the embodiments of the present application is implemented.

[0111] According to an embodiment of the present application, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In the present application, the computer-readable storage medium may be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present application, the computer-readable storage medium may include the above-described ROM 802 and / or RAM 803 and / or one or more memories other than ROM 802 and RAM 803.

[0112] An embodiment of the present application also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product runs in a computer system, the program code is used to enable the computer system to implement the link loss compensation method provided by the embodiment of the present application.

[0113] When the computer program is executed by the processor 801, it executes the above functions defined in the system / apparatus of the embodiment of the present application. According to an embodiment of the present application, the above-described systems, apparatuses, modules, units, etc. can be implemented by computer program modules.

[0114] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices and magnetic storage devices. In another embodiment, the computer program may also be transmitted and distributed in the form of a signal on a network medium, and be downloaded and installed through the communication part 809, and / or be installed from the removable medium 811. The program code contained in the computer program can be transmitted by any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0115] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or be installed from the removable medium 811. When the computer program is executed by the processor 801, it executes the above functions defined in the system of the embodiment of the present application. According to an embodiment of the present application, the above-described systems, devices, apparatuses, modules, units, etc. can be implemented by computer program modules.

[0116] In accordance with embodiments of the present application, program code for executing the computer programs provided by the embodiments of the present application may be written in any combination of one or more programming languages. Specifically, these computing programs may be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, such as Java, C++, Python, the "C" language, or similar programming languages. The program code may be executed entirely on the user's computing device, partially on the user's device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user's computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or alternatively, may be connected to an external computing device (e.g., by connecting through the Internet using an Internet service provider).

[0117] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of systems, methods, and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagram may represent a module, a program segment, or a part of code that contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the blocks may occur in a different order than marked in the accompanying drawings. For example, two consecutive blocks shown may actually be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending on the functions involved. It should also be noted that each block in the block diagram or flowchart, and combinations of blocks in the block diagram or flowchart, may be implemented by a dedicated hardware-based system for performing the specified functions or operations, or may be implemented by a combination of dedicated hardware and computer instructions.

[0118] Those skilled in the art can understand that the features described in the various embodiments of the present application can be combined and / or combined in various ways, even if such combinations or combinations are not explicitly described in the present application. In particular, without departing from the spirit and teachings of the present application, the features described in the various embodiments of the present application can be combined and / or combined in various ways. All such combinations and / or combinations fall within the scope of the present application.

[0119] The above describes the embodiments of the present application. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present application. Although the embodiments are described separately above, this does not mean that the measures in the respective embodiments cannot be used advantageously in combination. Without departing from the scope of the present application, those skilled in the art can make various substitutions and modifications, and all such substitutions and modifications should fall within the scope of the present application.

Claims

1. A link loss compensation method, characterized in that: The method comprises: Obtain the actual loss value of the link to be tested; Determining a loss difference according to the actual loss value and the preset loss value; Determining a target compensating cable from a plurality of compensating cables of different lengths according to the loss difference; By connecting the target compensation cable to the link to be tested, the loss difference of the link to be tested is compensated to meet the loss condition of the link to be tested.

2. The method according to claim 1, characterized in that The link to be tested includes a sending link to be tested from the first device to the second device and a receiving link to be tested from the second device to the first device; and the compensation for the loss difference of the link to be tested by connecting the target compensation cable to the link to be tested to meet the loss condition of the link to be tested includes: By connecting the target compensation cable to the receiving link to be tested, the receiving link to be tested is compensated to obtain a target receiving loss value, wherein the target receiving loss value satisfies the loss condition of the receiving link to be tested; The target loss value is obtained according to the target receiving loss value and the target sending loss value, wherein the target sending loss value satisfies the loss condition of the sending link to be tested, and the target loss value satisfies the loss condition of the link to be tested.

3. The method according to claim 2, characterized in that The method of connecting the target compensation cable to the receiving link to be tested to compensate the receiving link to be tested to obtain a target receiving loss value includes: Determining a compensation loss value according to the length of the target compensation cable; The receiving link to be tested is compensated according to the compensation loss value to obtain the target receiving loss value.

4. The method according to claim 1, characterized in that The step of determining a target compensating cable from a plurality of compensating cables of different lengths according to the loss difference comprises: Determine the compensation cable length selection gear according to the loss difference and a preset mapping relationship, wherein the preset mapping relationship represents the mapping relationship between the loss difference and the compensation cable length selection gear; A gear is selected according to the length of the compensating cable, and a target compensating cable is determined from the multiple compensating cables of different lengths.

5. The method according to claim 4, characterized in that The step of determining the compensation cable length selection position according to the loss difference and the preset mapping relationship includes: Based on the loss difference, determining a target gear loss value corresponding to the loss difference; Based on the preset mapping relationship, the gear corresponding to the target gear loss value is determined as the compensation cable length selection gear.

6. The method according to claim 4, characterized in that The step of selecting a gear according to the length of the compensating cable and determining a target compensating cable from the plurality of compensating cables with different lengths includes: Selecting a gear position according to the length of the compensation cable, modifying the register value, and obtaining a target register value; A target compensating cable is determined from the plurality of compensating cables of different lengths according to the target register value.

7. The method according to claim 6, characterized in that The step of selecting a gear according to the length of the compensation cable and modifying the register value to obtain a target register value includes: Selecting a gear position according to the length of the compensation cable and determining a switch state, wherein the switch state represents a state of a switch controlling a compensation loss value in the receiving link to be tested; According to the switch state, the register value is modified to obtain a target register value.

8. A link loss compensation device, characterized in that: The device comprises: An acquisition module is used to obtain the actual loss value of the link to be tested; A first determining module, configured to determine a loss difference according to the actual loss value and a preset loss value; A second determining module, configured to determine a target compensating cable from a plurality of compensating cables of different lengths according to the loss difference; The compensation module is used to compensate for the loss difference of the link to be tested by connecting the target compensation cable to the link to be tested, so as to meet the loss condition of the link to be tested.

9. An electronic device, comprising: one or more processors; a memory for storing one or more computer programs, It is characterized in that the one or more processors execute the one or more computer programs to implement the steps of the method according to any one of claims 1 to 7.

10. A loss compensation device, characterized in that: The loss compensation device is electrically connected to the first device and the second device, and the loss compensation device includes: Intelligent loss compensation board, equipped with multiple compensation cables of different lengths; a gear output control circuit, configured to determine a loss difference according to an actual loss value and a preset loss value of the link to be tested between the first device and the second device, and determine a target compensating cable from the plurality of compensating cables of different lengths according to the loss difference; A watchdog circuit, used for monitoring the gear output control circuit; The single-chip control circuit is used to control the gear output control circuit and compensate for the loss difference of the link to be tested by electrically connecting the first device and the second device via the target compensation cable to meet the loss condition of the link to be tested.