Communication module interface testing method, device, computer equipment and storage medium

By receiving loopback test instructions in the wireless communication module, configuring and short-circuiting signal resources, and directly receiving training results, it solves the problem of long PCIE interface test time in the traditional method, improves test efficiency and accuracy, and is suitable for different packaging types. communication module.

CN112231155BActive Publication Date: 2024-08-30FIBOCOM WIRELESS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010897601.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2024-08-30
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

In the traditional method, the complex timing circuit matching between the host end and the peer device results in a long test time for the PCIE interface of the wireless communication module, which reduces the test efficiency and is difficult to be suitable for mass production line testing.

Method used

By receiving the loopback test command, enter the host mode, configure the signal resources, and enter the loopback test mode after the host mode initialization is completed, send the signal resources to the physical link of the PCIE interface, short-circuit the differential signal by the fixture, and directly receive and retrain As a result, the test result of the PCIE interface of the communication module is determined.

Benefits of technology

It avoids complex signal enumeration matching between the host and the peer device, improves test efficiency, reduces cost and test difficulty, enhances the accuracy and convenience of test results, and is suitable for communication modules of different packaging types.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112231155B
    Figure CN112231155B
Patent Text Reader

Abstract

The present application relates to a communication module interface test method, device, computer equipment and storage medium. The method is applied to a communication module with a high-speed serial computer expansion bus standard PCIE interface; the method includes: receiving a loopback test instruction; responding to the loopback test instruction, entering the host mode and configuring the signal resources; after the host mode initialization is completed, entering the loopback test mode; sending the signal resources to the physical link of the PCIE interface; receiving the retraining result of the differential signal in the signal resource returned by the physical link; the physical link for transmitting the differential signal is short-circuited by a fixture; according to the retraining result, determining the test result of the PCIE interface on the communication module. The use of this method can improve the test efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology and communication technology, and in particular to a communication module interface testing method, device, computer equipment and storage medium. Background Art

[0002] With the rapid development of science and technology, especially with the popularization of 5G communication technology, the network has an increasingly high demand for the speed of large data transmission. The PCIE (peripheral component interconnect express) interface can achieve high-speed data transmission. Therefore, many wireless communication modules use the PCIE interface to achieve high-speed communication. Testing the PCIE interface of the wireless communication module to ensure the integrity and validity of the physical signal transmitted by the PCIE interface is an important test link of the wireless communication module.

[0003] In the traditional method, it is generally necessary to connect a wireless communication module with a PCIE interface as a peer device to a terminal device as a host, and the host side judges the integrity and validity of the physical signal of the PCIE interface according to the handshake message with the peer device at different communication stages. However, the enumeration matching of the signal between the host side and the peer device requires complex timing circuit matching, which makes the entire test process very long, reduces the test efficiency, and is not conducive to mass testing on the production line. Summary of the invention

[0004] Based on this, it is necessary to provide a communication module interface testing method, device, computer equipment and storage medium that can improve testing efficiency in response to the above technical problems.

[0005] A communication module interface testing method is applied to a communication module with a high-speed serial computer expansion bus standard PCIE interface; the method comprises:

[0006] Receive loopback test instructions;

[0007] In response to the loopback test instruction, entering a host mode and configuring signal resources;

[0008] After the host mode initialization is completed, enter the loopback test mode;

[0009] Sending the signal resource to the physical link of the PCIE interface;

[0010] receiving a retraining result of retraining the differential signal in the signal resource returned by the physical link; the physical link used for transmitting the differential signal is short-circuited by a fixture;

[0011] According to the retraining result, a test result of the PCIE interface on the communication module is determined.

[0012] In one of the embodiments, the loopback test instruction includes a preset number of differential signals;

[0013] The step of sending the signal resource to the physical link of the PCIE interface includes:

[0014] Sending differential signals that meet the preset differential signal quantity to the physical link of the PCIE interface, so that the physical link retrains the differential signals;

[0015] Determining the test result of the PCIE interface on the communication module according to the retraining result includes:

[0016] Comparing the number of differential signals that have completed training in the retraining result with the preset number of differential signals;

[0017] When the comparison result is consistent, it is determined that the test result of the PCIE interface on the communication module is normal.

[0018] In one embodiment, the method further comprises:

[0019] When any one of the following conditions is met, the test result of the PCIE interface on the communication module is determined to be abnormal:

[0020] The host mode initialization fails;

[0021] The physical link retraining process is abnormal;

[0022] A comparison result between the number of differential signals that have completed training in the retraining result and the preset number of differential signals is inconsistent.

[0023] In one of the embodiments, the signal resource includes a clock signal;

[0024] The physical link of sending the signal resource to the PCIE interface also includes:

[0025] The clock signal is sent to the physical link of the PCIE interface, so that the fixture converts the clock signal into a voltage value and displays it after receiving the clock signal.

[0026] In one of the embodiments, the fixture includes a differential signal shorting module;

[0027] The differential signal short-circuiting module is used to short-circuit the physical link used for transmitting differential signals in the PCIE interface.

[0028] In one of the embodiments, the fixture includes a clock signal detection module;

[0029] The clock signal detection module is used to convert the clock signal transmitted by the communication module through the PCIE interface into a voltage value and display it.

[0030] A communication module interface testing device, the device is arranged in a communication module with a high-speed serial computer expansion bus standard PCIE interface; the device comprises:

[0031] An instruction receiving unit, used for receiving a loopback test instruction;

[0032] A host mode initialization unit, configured to enter the host mode and configure signal resources in response to the loopback test instruction;

[0033] A loopback test initialization unit, used for entering a loopback test mode after the host mode initialization is completed;

[0034] A sending unit, used for sending the signal resource to the physical link of the PCIE interface;

[0035] A receiving unit, used for receiving a retraining result of the differential signal in the signal resource returned by the physical link; the physical link for transmitting the differential signal is short-circuited by a fixture;

[0036] A test result determination unit is used to determine a test result of the PCIE interface on the communication module according to the retraining result.

[0037] In one of the embodiments, the loopback test instruction includes a preset number of differential signals;

[0038] The sending unit is further used to send the differential signals satisfying the preset number of differential signals to the physical link of the PCIE interface, so that the physical link retrains the differential signals;

[0039] The test result determination unit is further used to compare the number of differential signals that have completed training in the retraining result with the preset number of differential signals; when the comparison result is consistent, it is determined that the test result of the PCIE interface on the communication module is normal.

[0040] A computer device comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor executes the steps in the communication module interface testing method described in each embodiment of the present application.

[0041] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor executes the steps in the communication module interface testing method described in each embodiment of the present application.

[0042] The communication module interface test method, device, computer equipment and storage medium described above, after receiving the loopback test instruction, the communication module with the PCIE interface responds to the loopback test instruction, enters the host mode, configures the signal resources, enters the loopback test mode after the host mode initialization is completed, and sends the signal resources to the physical link of the PCIE interface. Because the physical link for transmitting the differential signal is short-circuited by the fixture, the communication module can directly receive the retraining result of the differential signal in the signal resource returned by the physical link, and then determine the test result of the PCIE interface on the communication module according to the retraining result. In this way, the communication module sends and receives the differential signal autonomously, and quickly determines the integrity and validity of the physical signal transmitted by the PCIE interface through the retraining process, avoiding the complex enumeration matching of the signal between the host end and the opposite end device, and improving the test efficiency of the PCIE interface of the communication module. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 An application environment diagram of a communication module interface testing method in one embodiment;

[0044] Figure 2 A flow chart of a communication module interface testing method according to an embodiment;

[0045] Figure 3 A schematic diagram of the overall flow of a communication module interface testing method in one embodiment;

[0046] Figure 4 Schematic diagram of the operation of a differential signal short-circuit module in one embodiment;

[0047] Figure 5 is a schematic diagram of the operation of a clock signal detection module in one embodiment;

[0048] Figure 6 A schematic diagram of a communication module in an embodiment performing a loopback test as a host end;

[0049] Figure 7 A schematic diagram of a loopback test in which the terminal acts as a host and the communication module acts as a peer device in a traditional method;

[0050] Figure 8 is a structural block diagram of a communication module interface testing device in one embodiment;

[0051] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The communication module interface testing method provided in this application can be applied to Figure 1 In the application environment shown. Among them, the communication module 102 is connected to the terminal 104 through the serial port, the communication module 102 is placed on the fixture 106, and is connected to the circuit of the fixture 106 through the high-speed serial computer expansion bus standard (PCIE, peripheral component interconnect express) interface. The terminal 104 can send a loopback test instruction to the communication module 102, and the communication module 102 can respond to the loopback test instruction, perform a loopback test, and send the signal resource to the physical link of the PCIE interface. The fixture 106 can short-circuit the physical link for transmitting the differential signal, so that the communication module 102 can receive the retraining result of the differential signal in the signal resource returned by the physical link, and then determine the test result of the PCIE interface on the communication module according to the retraining result, and the terminal 104 can receive the test result of the communication module 102 and display it. Among them, the communication module 102 is a hardware module for realizing a communication function with a PCIE interface. In one embodiment, the communication module 102 can be a wireless communication module. The terminal 104 may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The fixture 106 may be a device used to fix a processing object on a production line, and the fixture contains a circuit.

[0054] In one embodiment, Figure 2 As shown, a communication module interface testing method is provided, which is applied to Figure 1 The communication module in the example is used to illustrate the following steps:

[0055] S202, receiving a loopback test instruction.

[0056] Among them, the loopback test is a test method that sends a physical signal to the physical link of the PCIE interface and tests the PCIE interface through the physical signal returned by the received PCIE interface to determine whether the physical signal transmitted by the PCIE interface is complete and valid. The loopback test instruction is an instruction that triggers the communication module to perform a loopback test on the PCIE interface.

[0057] In one embodiment, the communication module can be connected to the terminal through a serial port, and the user can send a loopback test instruction to the communication module through the terminal. The communication module can receive the loopback test instruction sent by the terminal.

[0058] In one embodiment, the user may first place the communication module on the fixture, and then power on the communication module. At any time point after powering on, the user may send a loopback test instruction to the communication module through the terminal.

[0059] S204, in response to the loopback test instruction, entering the host mode and configuring signal resources.

[0060] The host mode, namely the root complex mode (RC mode), is a mode in which the communication module acts as a host end to send physical signals. The signal resources are the resources of the physical signals to be sent by the communication module in the RC mode.

[0061] Specifically, after receiving the loopback test instruction, the communication module may respond to the loopback test instruction, initialize the RC mode through the PCIE driver, and configure the signal resources.

[0062] In one embodiment, the signal resources include differential signals and clock signals. The differential signals may be in the form of a TX and RX differential signal pair. TX stands for transmission, RX stands for reception, and TX and RX appear in pairs.

[0063] S206, after the host mode initialization is completed, enter the loopback test mode.

[0064] The loopback test mode is a mode in which the communication module keeps sending and receiving physical signals to perform a loopback test.

[0065] Specifically, after the host mode initialization is completed, the communication module can initialize the loopback test mode through the PCIE driver, thereby entering the loopback test mode.

[0066] S208, sending the signal resource to the physical link of the PCIE interface.

[0067] Among them, the physical link is the line used to transmit signals in the PCIE interface.

[0068] In one embodiment, the communication module may send the configured differential signal and clock signal to corresponding physical links in the PCIE interface respectively.

[0069] S210, receiving a retraining result of retraining the differential signal in the signal resource returned by the physical link; the physical link used for transmitting the differential signal is short-circuited by a fixture.

[0070] Retraining is the physical process of training the differential signal to be transmitted in the physical link. The retraining result is the result of the physical link receiving the communication module retraining the differential signal. During the process of retraining the differential signal, the physical link will mark the trained differential signal (i.e., the differential signal that has completely passed through the physical link), and the retraining result is the marking result. The fixture is a device used to fix the processing object on the production line. The fixture contains circuits.

[0071] In one embodiment, the fixture connected to the communication module can short-circuit the physical link used to transmit the differential signal in the PCIE interface, so that the communication module can receive the transmitted differential signal and realize the self-transmission and self-reception of the differential signal.

[0072] Specifically, after the differential signal is sent to the physical link of the PCIE interface, the differential signal is retrained in the physical link. Because the physical link used to transmit the differential signal is short-circuited by the clamp, the communication module can receive the retraining result of the differential signal returned by the physical link.

[0073] S212: Determine the test result of the PCIE interface on the communication module according to the retraining result.

[0074] The test result refers to whether the PCIE interface is normal, that is, whether the physical signal transmitted in the PCIE interface is complete and valid.

[0075] In one embodiment, the communication module may determine the number of received differential signals that have completed retraining according to the retraining result, and then compare the number with the number of sent differential signals, and determine the test result according to the comparison result.

[0076] In one embodiment, after determining the test result, the communication module may send the test result to the terminal. The user may know whether the PCIE interface of the communication module is normal according to the test result received by the terminal.

[0077] In one embodiment, the test result determined by the communication module and sent to the terminal may be ok (ie, normal) or err (ie, abnormal).

[0078] In the above communication module interface testing method, after receiving the loopback test instruction, the communication module with the PCIE interface responds to the loopback test instruction, enters the host mode, configures the signal resources, and enters the loopback test mode after the host mode initialization is completed, and sends the signal resources to the physical link of the PCIE interface. Because the physical link for transmitting the differential signal is short-circuited by the clamp, the communication module can directly receive the retraining result of the differential signal in the signal resource returned by the physical link, and then determine the test result of the PCIE interface on the communication module according to the retraining result. In this way, the communication module sends and receives the differential signal autonomously, and quickly determines the integrity and validity of the physical signal transmitted by the PCIE interface through the retraining process, avoiding the complex enumeration matching of the signal between the host end and the opposite end device, and improving the test efficiency of the PCIE interface of the communication module.

[0079] In addition, because the communication module itself performs loopback testing as the host end, there is no need to connect to the terminal through the PCIE interface, and the terminal performs loopback testing as the host end. Therefore, it not only reduces the cost, but also improves the compatibility of the communication module interface testing method, and can be applied to LGA packaged and M.2 packaged communication modules respectively. And the communication module sends and receives differential signals autonomously, and does not require complex timing circuit matching, which reduces the difficulty of testing, thereby improving the accuracy of the test results. In addition, the test can be performed at any time after the communication module is powered on, without the need for strict power-on time synchronization between the host end and the opposite end device, which improves the convenience of the test. In addition, the fixture is easy to make, the function is single, and it is stable and reliable.

[0080] In one embodiment, the loopback test instruction includes a preset number of differential signals. The step of sending signal resources to the physical link of the PCIE interface includes: sending differential signals that meet the preset number of differential signals to the physical link of the PCIE interface, so that the physical link retrains the differential signals. According to the retraining result, the step of determining the test result of the PCIE interface on the communication module includes: comparing the number of differential signals that have completed training in the retraining result with the preset number of differential signals; when the comparison result is consistent, determining that the test result of the PCIE interface on the communication module is normal.

[0081] The preset number of differential signals is the number of differential signal pairs that the preset communication module needs to send.

[0082] Specifically, the communication module can configure differential signal resources that meet the preset number of differential signals according to the preset number of differential signals in the loopback test instruction, and after entering the loopback test mode, send the differential signals that meet the preset number of differential signals to the physical link of the PCIE interface, so that the physical link retrains the differential signals.

[0083] The communication module can receive the retraining result and determine the number of differential signals that have completed the training according to the retraining result. The communication module can compare the number of differential signals that have completed the training with the preset number of differential signals. When the comparison result is consistent, the communication module can determine that the test result of the PCIE interface on the communication module is normal.

[0084] In one embodiment, when the comparison result is inconsistent, the communication module may determine that the test result of the PCIE interface on the communication module is abnormal.

[0085] In this embodiment, the test result of the PCIE interface can be determined by comparing the preset number of differential signals with the number of differential signals that have completed training, so that the test result can be obtained quickly, thereby improving the test efficiency of the PCIE interface of the communication module.

[0086] In one embodiment, the method further includes: when any one of the following conditions is met, determining that the test result of the PCIE interface on the communication module is abnormal: host mode initialization fails; the physical link retraining process is abnormal; the comparison result of the number of differential signals that have completed training in the retraining result and the preset number of differential signals is inconsistent.

[0087] In one embodiment, when the host mode (ie, RC mode) fails to initialize, the communication module may determine that the test result of the PCIE interface is abnormal. The communication module may send the determined abnormal test result to the terminal.

[0088] In one embodiment, when the physical link retraining process is abnormal, the communication module may determine that the test result of the PCIE interface is abnormal. The communication module may send the determined abnormal test result to the terminal.

[0089] In one embodiment, when the comparison result of the number of differential signals that have completed training in the retraining result is inconsistent with the preset number of differential signals, the communication module can determine that the test result of the PCIE interface is abnormal. The communication module can send the determined abnormal test result to the terminal.

[0090] In this embodiment, when any one of the conditions is met, it is determined that the test result of the PCIE interface is abnormal, so that the test result can be obtained quickly, thereby improving the test efficiency of the PCIE interface of the communication module.

[0091] like Figure 3As shown, it is an overall flow chart of the communication module interface test method in each embodiment of the present application. First, the communication module receives a loopback test instruction, responds to the loopback test instruction, configures the RC mode through the PCIE driver, and applies for signal resources. After the RC mode initialization is completed, the PCIE driver configures the loopback test mode, that is, enters the state of sending and receiving signals, thereby triggering the physical link to retrain the differential signal. When the physical link retraining is normal, the retraining result is received, and the number of differential signals received after the retraining is completed is determined according to the retraining result, and then the number of differential signals received after the retraining is completed is compared with the number of differential signals sent. When the comparison is consistent (that is, the number of differential signals received after the training is completed is correct), the test result is determined to be normal, and the test result is output. When RC initialization fails, or the physical link retraining process is abnormal, or the number of differential signals is incorrect, the test result is determined to be abnormal, and the test result is output.

[0092] In one embodiment, the signal resource includes a clock signal. The step of sending the signal resource to the physical link of the PCIE interface also includes: sending the clock signal to the physical link of the PCIE interface, so that the fixture converts the clock signal into a voltage value and displays it after receiving the clock signal.

[0093] Specifically, after entering the loopback test mode, the communication module can send a clock signal to the physical link of the PCIE interface. After receiving the clock signal, the fixture connected to the communication module can convert the clock signal into a voltage value and display the voltage value, and the user can view the voltage value displayed on the fixture.

[0094] In this embodiment, the fixture can convert the clock signal sent by the communication module into a voltage value and display it, so as to facilitate the user to check the integrity and validity of the clock signal transmitted by the PCIE interface.

[0095] In one embodiment, the fixture includes a differential signal short-circuiting module, which is used to short-circuit a physical link in a PCIE interface for transmitting differential signals.

[0096] Among them, the differential signal short-circuiting module is a circuit module in the fixture, which is used to short-circuit the physical link used to transmit differential signals in the PCIE interface.

[0097] Specifically, after the communication module is connected to the fixture, the differential signal short-circuiting module in the fixture can short-circuit the physical link used to transmit the differential signal in the PCIE interface of the communication module, so that the communication module can self-send and self-receive differential signals (i.e., send and receive by itself) in the loopback test mode.

[0098] like Figure 4As shown, after the differential signal pair is transmitted to the differential signal short-circuiting module on the fixture, the differential signal is short-circuited, thereby realizing the self-transmission and self-reception of the differential signal pair by the communication module.

[0099] In this embodiment, the physical link for transmitting differential signals in the PCIE interface can be short-circuited by the differential signal short-circuiting module in the fixture, thereby realizing the communication module's self-transmission and self-reception of differential signals. Thus, the communication module can quickly determine the test results based on the differential signals sent and received, thereby improving the test efficiency of the PCIE interface of the communication module.

[0100] In one embodiment, the fixture includes a clock signal detection module, which is used to convert the clock signal transmitted by the communication module through the PCIE interface into a voltage value and display it.

[0101] Among them, the clock signal detection module is a circuit module in the fixture, which is used to convert the clock signal transmitted by the communication module through the PCIE interface into a voltage value and display it.

[0102] Specifically, after entering the loopback test mode, the communication module can send a clock signal to the physical link of the PCIE interface. The fixture can receive the clock signal and then convert the clock signal into a voltage value through the clock signal detection module and display the voltage value on the display screen of the fixture.

[0103] like Figure 5 As shown, after the clock signal is transmitted to the clock signal detection module on the fixture, the clock signal detection module can rectify, filter and convert the clock signal, thereby converting the clock signal into a stable voltage value. For example, if the clock signal is 100 MHz, the clock signal detection module can convert the 100 MHz clock signal into a stable voltage value.

[0104] In this embodiment, the fixture can convert the clock signal sent by the communication module into a voltage value through the clock signal detection module and display it, so as to facilitate the user to check the integrity and validity of the clock signal transmitted by the PCIE interface.

[0105] like Figure 6 As shown, the communication module acts as a PCIE host and sends signals to the fixture. The differential signal short-circuiting module on the fixture short-circuits the physical link used to transmit the differential signal, thereby enabling the communication module to transmit and receive the differential signal. The clock signal detection circuit (i.e., the clock signal detection module) on the fixture converts the clock signal transmitted to the fixture into a voltage value. Compared to Figure 7As for the method in which the terminal acts as a PCIE host to send signals and the communication module acts as a PCIE device to receive signals in the traditional method shown, the communication module interface test method in each embodiment of the present application does not require complex timing circuit matching of signals between the host and the opposite device, does not rely on the enumeration timing requirements of PERST# and PWAKE# signals, and improves the test efficiency.

[0106] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple steps or multiple stages. These steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed in turn or alternately with other steps or at least part of the steps or stages in other steps.

[0107] In one embodiment, Figure 8 As shown, a communication module interface test device 800 is provided, which is arranged in a communication module with a high-speed serial computer expansion bus standard PCIE interface, and the device includes: an instruction receiving unit 802, a host mode initialization unit 804, a loopback test initialization unit 806, a sending unit 808, a receiving unit 810 and a test result determination unit 812, wherein:

[0108] The instruction receiving unit 802 is used to receive a loopback test instruction.

[0109] The host mode initialization unit 804 is used to enter the host mode and configure signal resources in response to the loopback test instruction.

[0110] The loopback test initialization unit 806 is used to enter the loopback test mode after the host mode initialization is completed.

[0111] The sending unit 808 is used to send the signal resource to the physical link of the PCIE interface.

[0112] The receiving unit 810 is used to receive a retraining result of the differential signal in the signal resource returned by the physical link; the physical link used to transmit the differential signal is short-circuited by the fixture.

[0113] The test result determination unit 812 is used to determine the test result of the PCIE interface on the communication module according to the retraining result.

[0114] In one embodiment, the loopback test instruction includes a preset number of differential signals. The sending unit 808 is also used to send differential signals that meet the preset number of differential signals to the physical link of the PCIE interface, so that the physical link retrains the differential signals. The test result determination unit 812 is also used to compare the number of differential signals that have completed training in the retraining result with the preset number of differential signals; when the comparison result is consistent, it is determined that the test result of the PCIE interface on the communication module is normal.

[0115] In one embodiment, the test result determination unit 812 is also used to determine that the test result of the PCIE interface on the communication module is abnormal when any one of the following conditions is met: host mode initialization fails; the physical link retraining process is abnormal; the comparison result of the number of differential signals that have completed training in the retraining result and the preset number of differential signals is inconsistent.

[0116] In one embodiment, the signal resource includes a clock signal. The sending unit 808 is further configured to send the clock signal to a physical link of the PCIE interface, so that the fixture converts the clock signal into a voltage value and displays it after receiving the clock signal.

[0117] In one embodiment, the fixture includes a differential signal short-circuiting module, which is used to short-circuit a physical link in a PCIE interface for transmitting differential signals.

[0118] In one embodiment, the fixture includes a clock signal detection module, which is used to convert the clock signal transmitted by the communication module through the PCIE interface into a voltage value and display it.

[0119] In the above communication module interface testing device, after receiving the loopback test instruction, the communication module with the PCIE interface responds to the loopback test instruction, enters the host mode, configures the signal resources, and enters the loopback test mode after the host mode initialization is completed, and sends the signal resources to the physical link of the PCIE interface. Because the physical link for transmitting the differential signal is short-circuited by the clamp, the communication module can directly receive the retraining result of the differential signal in the signal resource returned by the physical link, and then determine the test result of the PCIE interface on the communication module according to the retraining result. In this way, the communication module sends and receives the differential signal autonomously, and quickly determines the integrity and validity of the physical signal transmitted by the PCIE interface through the retraining process, avoiding the complex enumeration matching of the signal between the host end and the opposite end device, and improving the test efficiency of the PCIE interface of the communication module.

[0120] In addition, because the communication module itself performs loopback testing as the host, there is no need to connect to the terminal through the PCIE interface, and the terminal performs loopback testing as the host. Therefore, it not only reduces the cost, but also improves the compatibility of the test device, and can be applied to LGA packaged and M.2 packaged communication modules respectively. And the communication module sends and receives differential signals autonomously, without the need for complex timing circuit matching, which reduces the difficulty of testing and thus improves the accuracy of the test results. In addition, the test can be performed at any time after the communication module is powered on, without the need for strict power-on time synchronization between the host and the peer device, which improves the convenience of the test.

[0121] For the specific definition of the communication module interface testing device, please refer to the definition of the communication module interface testing method above, which will not be repeated here. Each unit in the above-mentioned communication module interface testing device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned units can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above-mentioned units.

[0122] In one embodiment, a communication module is provided, whose internal structure diagram can be as follows: Fig. 9 As shown. The communication module includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the communication module is used to provide computing and control capabilities. The memory of the communication module includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the communication module is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a communication module interface testing method is implemented.

[0123] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0124] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.

[0125] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0126] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory or optical memory, etc. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM).

[0127] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0128] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.

Claims

1. A communication module interface testing method, characterized in that: The method is applied to a communication module with a high-speed serial computer expansion bus standard PCIE interface; the method comprises: Receive loopback test instructions; In response to the loopback test instruction, entering the host mode and configuring the signal resources; the loopback test instruction includes a preset number of differential signals; After the host mode initialization is completed, enter the loopback test mode; Sending differential signals that meet the preset differential signal quantity to the physical link of the PCIE interface, so that the physical link retrains the differential signals; receiving a retraining result of retraining the differential signal in the signal resource returned by the physical link; the physical link used for transmitting the differential signal is short-circuited by a fixture; Comparing the number of differential signals that have completed training in the retraining result with the preset number of differential signals; When the comparison result is consistent, it is determined that the test result of the PCIE interface on the communication module is normal.

2. The method according to claim 1, characterized in that: The method further comprises: When any one of the following conditions is met, the test result of the PCIE interface on the communication module is determined to be abnormal: The host mode initialization fails; The physical link retraining process is abnormal; A comparison result between the number of differential signals that have completed training in the retraining result and the preset number of differential signals is inconsistent.

3. The method according to claim 1, characterized in that The signal resource includes a clock signal; The method further comprises: The clock signal is sent to the physical link of the PCIE interface, so that the fixture converts the clock signal into a voltage value and displays it after receiving the clock signal.

4. The method according to any one of claims 1 to 3, characterized in that The fixture includes a differential signal short-circuit module; The differential signal short-circuiting module is used to short-circuit the physical link used for transmitting differential signals in the PCIE interface.

5. The method according to claim 3, characterized in that: The fixture includes a clock signal detection module; The clock signal detection module is used to convert the clock signal transmitted by the communication module through the PCIE interface into a voltage value and display it.

6. A communication module interface testing device, characterized in that: The device is arranged in a communication module with a high-speed serial computer expansion bus standard PCIE interface; the device comprises: An instruction receiving unit, used for receiving a loopback test instruction; A host mode initialization unit, configured to enter the host mode and configure signal resources in response to the loopback test instruction; the loopback test instruction includes a preset number of differential signals; A loopback test initialization unit, used for entering a loopback test mode after the host mode initialization is completed; A sending unit, configured to send the differential signals satisfying the preset number of differential signals to the physical link of the PCIE interface, so that the physical link retrains the differential signals; A receiving unit, used for receiving a retraining result of the differential signal in the signal resource returned by the physical link; the physical link for transmitting the differential signal is short-circuited by a fixture; The test result determination unit is used to compare the number of differential signals that have completed training in the retraining result with the preset number of differential signals; when the comparison result is consistent, it is determined that the test result of the PCIE interface on the communication module is normal.

7. The device according to claim 6, characterized in that The test result determination unit is further used for: When any one of the following conditions is met, the test result of the PCIE interface on the communication module is determined to be abnormal: The host mode initialization fails; The physical link retraining process is abnormal; A comparison result between the number of differential signals that have completed training in the retraining result and the preset number of differential signals is inconsistent.

8. The device according to claim 6, characterized in that The signal resource includes a clock signal; the sending unit is further used for: The clock signal is sent to the physical link of the PCIE interface, so that the fixture converts the clock signal into a voltage value and displays it after receiving the clock signal.

9. A communication module, comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

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

Citation Information

Patent Citations

  • Method and apparatus for loopback self testing

    US20100153799A1

  • Universal serial bus test system

    US6343260B1