Interface flip test equipment, method and device, program product and storage medium
By building a preset type of interface flip channel between the host device and the terminal device, the problem of the communication ability of PCIe devices in the prior art cannot be tested in the interface flip mode, and effective testing and quality improvement of PCIe devices are achieved.
Patent Information
- Application Number
- CN202510122931.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-26
- Publication Date
- 2025-04-25
AI Technical Summary
The lack of mature interface flip testing equipment in the prior art has caused the communication capabilities of PCIe devices to be unable to be effectively tested in the interface flip mode, which poses quality risks and reduces the reliability of the equipment.
The channel switching device constructs a preset type of interface flip channel between the host device and the terminal device, including positive and negative flips. The control device opens the target flip channel of the specified signal channel through the channel switching device, and determines the communication status after establishing a communication link, realizing the testing of the communication capability of the interface flip mode of the PCIe device.
It realizes effective testing of the communication capabilities of PCIe devices in interface flip mode, can promptly detect quality defects, and improves the reliability of the devices.
Smart Images

Figure CN119883987A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of interface testing, and in particular to an interface flip test device, method, apparatus, program product and storage medium. Background Art
[0002] The PCIe (Peripheral Component Interconnect Express) specification allows PCIe devices to use multiple types of interface flips (such as positive and negative flips, channel flips, etc.). The communication capability of PCIe devices in interface flip mode needs to be tested before leaving the factory. However, the related technology lacks a mature interface flip test device, which makes it impossible to test the communication capability of PCIe devices in interface flip mode, causing quality risks for PCIe devices and reducing the reliability of PCIe devices.
[0003] Therefore, how to provide a solution to the above technical problems is a problem that those skilled in the art need to solve at present. Summary of the invention
[0004] The purpose of the present invention is to provide an interface flip test device, method, apparatus, program product and storage medium. Through a channel switching device, an interface flip channel of a preset type (including positive and negative flip) is constructed for any signal channel between a host device and a terminal device. A control device can open a target flip channel (a specified single preset type of interface flip channel) of a specified signal channel through the channel switching device, and after the host device and the terminal device establish a communication link based on the target flip channel, determine the communication state of the host device and the terminal device under the target flip channel, thereby testing the communication capability of a PCIe device in an interface flip mode, timely discovering quality defects of the PCIe device in the interface flip mode, and improving the reliability of the PCIe device.
[0005] In order to solve the above technical problems, the present invention provides an interface flip test device, comprising:
[0006] A first connector having a first end connected to the host device and used to connect a high-speed serial computer expansion bus standard interface of the host device to the channel switching device;
[0007] A second connector having a first end connected to the terminal device and used to connect a high-speed serial computer expansion bus standard interface of the terminal device to the channel switching device;
[0008] A channel switching device connected to the second end of the host device and the second end of the terminal device respectively, used to construct an interface flip channel of a preset type for any signal port of any signal channel between the host device and the terminal device, wherein the preset type includes positive and negative flipping, and the signal port includes a transmitting end and a receiving end;
[0009] A control device is used to open the target flip channel of the designated signal port of the designated signal channel through the channel switching device, and after the host device and the terminal device establish a communication link, determine the communication state of the host device and the terminal device under the current communication link, wherein the target flip channel refers to: a designated single preset type of interface flip channel.
[0010] On the other hand, the preset types also include channel flipping and mixed flipping that combines positive and negative flipping with channel flipping;
[0011] The communication interface of the host device and the terminal device includes at least two signal channels.
[0012] On the other hand, the channel switching device is also used for:
[0013] Between the host device and the terminal device, a non-flip channel is constructed for any signal port of any signal channel, wherein the non-flip channel refers to a channel without positive and negative flipping and channel flipping;
[0014] The control device is also used to open the non-flip channel of the designated signal port of the designated signal channel through the channel switching device, and after the host device and the terminal device establish a communication link, determine the communication status of the host device and the terminal device under the current communication link, wherein the interface flip channel and the non-flip channel of a single signal port are mutually exclusive.
[0015] On the other hand, the channel switching device is also used for:
[0016] For any communication device, a loopback channel is established for any signal channel of the communication device, wherein the communication device includes a host device and a terminal device, and the loopback channel refers to: a channel directly connecting a transmitting end and a receiving end of a single signal channel of the communication device;
[0017] The control device is also used to open the loopback channel of the designated signal channel of the designated communication device through the channel switching device, and determine the communication state of the designated communication device under the loopback channel after the designated communication device establishes a communication link based on the loopback channel, wherein the loopback channel of a single signal channel is mutually exclusive with the interface flip channel and the non-flip channel.
[0018] On the other hand, the channel switching device includes a switch group corresponding to a single signal channel of a single connector, any of the switch groups includes a switch pair corresponding to a transmitting end and a receiving end in the signal channel, and any of the switch pairs includes a signal switching switch corresponding to a positive signal end and a negative signal end;
[0019] The first end of the signal switching switch is connected to the corresponding single-channel differential signal end, and the second end to the fifth end of the signal switching switch are connected to the port of the designated signal switching switch in a one-to-one correspondence, wherein the connector where the signal switching switch is located is different from the connector where the designated signal switching switch is located, and the connector includes a first connector and a second connector, and the second end to the fifth end of the signal switching switch are respectively connected to different designated signal switching switches.
[0020] In another aspect, the signal switching switch comprises a high frequency analog switch.
[0021] On the other hand, the control device includes a control module and a host computer;
[0022] The control module is used to parse the test instruction sent by the host computer into a control signal, and control the channel switching device through the control signal.
[0023] On the other hand, the host computer includes the host device or the network terminal.
[0024] On the other hand, the control device is also used to, when the communication status between the host device and the terminal device under the current communication link is that they cannot communicate, control the prompting device to prompt the host device and the terminal device that the communication under the current communication link is abnormal;
[0025] Wherein, the communication status includes normal communication and unable to communicate;
[0026] The interface flip test equipment also includes a prompt device.
[0027] On the other hand, the interface flip test device also includes a circuit substrate, a first connector slot and a second connector slot;
[0028] The circuit substrate is used to fix the first connector slot, the second connector slot, the channel switching device and the control device;
[0029] The first connector slot and the second connector slot are used to install a specified type of high-speed serial computer expansion bus standard connector.
[0030] On the other hand, the control device controls the channel switching device through the control signal;
[0031] The control device is also used for:
[0032] injecting a specified fault into a control signal to be sent to a channel switching device;
[0033] A control signal for injecting a specified fault is sent to the channel switching device.
[0034] In another aspect, the specified fault comprises a signal glitch.
[0035] In order to solve the above technical problems, the present invention also provides an interface flip test method, comprising:
[0036] By means of the channel switching device, a target flip channel of a designated signal port of a designated signal channel between the host device and the terminal device is opened;
[0037] The host device and the terminal device belong to high-speed serial computer expansion bus standard devices, and the channel switching device is used to construct a preset type of interface flip channel for any signal port of any signal channel between the host device and the terminal device, and the target flip channel refers to: a specified single preset type of interface flip channel, the preset type includes positive and negative flip, and the signal port includes a transmitting end and a receiving end;
[0038] After the host device and the terminal device establish a communication link based on the target flip channel, the communication state of the host device and the terminal device under the current communication link is determined.
[0039] On the other hand, the preset types also include channel flipping and mixed flipping that combines positive and negative flipping with channel flipping;
[0040] The communication interface of the host device and the terminal device includes at least two signal channels.
[0041] On the other hand, the interface flip test method also includes:
[0042] By means of the channel switching device, a non-flip channel of a designated signal port of a designated signal channel is opened;
[0043] After the host device and the terminal device establish a communication link based on the non-flip channel, determine the communication state of the host device and the terminal device under the current communication link;
[0044] Among them, the channel switching device is also used to: construct a non-flip channel for any signal channel between the host device and the terminal device. The non-flip channel refers to a channel without positive and negative flipping and channel flipping. The interface flip channel and the non-flip channel of a single signal port are mutually exclusive.
[0045] On the other hand, the interface flip test method also includes:
[0046] By means of the channel switching device, a loopback channel of a designated signal channel of a designated communication device is opened;
[0047] After the designated communication device establishes a communication link based on the loopback channel, determining a communication state of the designated communication device under the loopback channel;
[0048] Among them, the channel switching device is also used to: for any communication device, establish a loopback channel for any signal channel of the communication device, the communication device includes a host device and a terminal device, the loopback channel refers to: a channel directly connecting the transmitting end and the receiving end of a single signal channel of the communication device, the loopback channel of the single signal channel is mutually exclusive with the interface flip channel and the non-flip channel.
[0049] On the other hand, the interface flip test method also includes:
[0050] When the communication status between the host device and the terminal device under the current communication link is that they cannot communicate, the control prompting device prompts that the communication between the host device and the terminal device under the current communication link is abnormal;
[0051] The communication status includes normal communication and unable to communicate.
[0052] In order to solve the above technical problems, the present invention also provides an interface flip test device, which is applied to a control device and comprises:
[0053] A control module, used for opening a target flip channel of a designated signal port of a designated signal channel between a host device and a terminal device through a channel switching device;
[0054] The host device and the terminal device belong to high-speed serial computer expansion bus standard devices, and the channel switching device is used to construct a preset type of interface flip channel for any signal port of any signal channel between the host device and the terminal device, and the target flip channel refers to: a specified single preset type of interface flip channel, the preset type includes positive and negative flip, and the signal port includes a transmitting end and a receiving end;
[0055] The determination module is used to determine the communication state of the host device and the terminal device under the current communication link after the host device and the terminal device establish a communication link based on the target flip channel.
[0056] In order to solve the above technical problem, the present invention further provides a computer program product, including a computer program / instruction, which implements the steps of the above interface flip test method when executed by a processor.
[0057] In order to solve the above technical problem, the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the interface flip test method described above are implemented.
[0058] Beneficial effect: The present invention provides an interface flip test device. Considering that multiple signal channels can be constructed between two devices that want to communicate through a channel switching device, in this application, the PCIe signal interface of the host device is first connected through a first connector, and the PCIe signal interface of the terminal device is connected through a second connector. Then, an interface flip channel of a preset type (including positive and negative flipping) is constructed for any signal port of any signal channel between the host device and the terminal device through a channel switching device. The control device can open the target flip channel (a specified single preset type of interface flip channel) of the specified signal port of the specified signal channel through the channel switching device, and after the host device and the terminal device establish a communication link, determine the communication status of the host device and the terminal device under the current communication link, thereby realizing the communication capability test of the PCIe device in the interface flip mode, being able to timely discover the quality defects of the PCIe device in the interface flip mode, and improving the reliability of the PCIe device.
[0059] The present invention also provides an interface flip test method, device, computer program product and computer readable storage medium, which have the same beneficial effects as the above interface flip test equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the relevant technologies and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1 A structural schematic diagram of an interface flip test device provided by the present invention;
[0062] Figure 2 It is a schematic diagram of the structure of the channel direct connection of the PCIe interface;
[0063] Figure 3 It is a schematic diagram of the structure of the channel flipping of the PCIe interface;
[0064] Figure 4 It is a schematic diagram of the structure of the conventional positive and negative connections of the PCIe interface;
[0065] Figure 5 A schematic diagram of a positive-negative flip connection structure of a PCIe interface;
[0066] Figure 6 A structural diagram of a partial channel positive and negative flip connection of a PCIe interface;
[0067] Figure 7 A schematic diagram of the structure of another interface flip test device provided by the present invention;
[0068] Figure 8 A wiring diagram of a signal switching switch of a PCIe transmitting end provided by the present invention;
[0069] Fig. 9 A wiring diagram of a signal switching switch of a PCIe receiving end provided by the present invention;
[0070] Fig.10 A schematic diagram of a flow chart of an interface flip test method provided by the present invention;
[0071] Fig.11 A schematic diagram of the structure of an interface flip test device provided by the present invention;
[0072] Fig.12 A schematic diagram of the structure of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0073] The core of the present invention is to provide an interface flip test device, method, apparatus, program product and storage medium. Through a channel switching device, an interface flip channel of a preset type (including positive and negative flip) is constructed for any signal channel between a host device and a terminal device. The control device can open the target flip channel (a specified single preset type of interface flip channel) of the specified signal channel through the channel switching device, and after the host device and the terminal device establish a communication link based on the target flip channel, determine the communication state of the host device and the terminal device under the target flip channel, thereby realizing the communication capability test of the PCIe device in the interface flip mode, being able to timely discover the quality defects of the PCIe device in the interface flip mode, and improving the reliability of the PCIe device.
[0074] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0075] Please refer to Figure 1 , Figure 1A schematic diagram of the structure of an interface flip test device provided by the present invention, the interface flip test device comprises:
[0076] A first connector 1 connected to a host device at a first end, used to connect a high-speed serial computer expansion bus standard interface of the host device to a channel switching device 3;
[0077] A second connector 2 connected to the terminal device at a first end, used to connect the high-speed serial computer expansion bus standard interface of the terminal device to the channel switching device 3;
[0078] A channel switching device 3 connected to the second end of the host device and the second end of the terminal device respectively, for constructing an interface flip channel of a preset type for any signal port of any signal channel between the host device and the terminal device, wherein the preset type includes positive and negative flipping, and the signal port includes a transmitting end and a receiving end;
[0079] The control device 4 is used to open the target flip channel of the designated signal port of the designated signal channel through the channel switching device 3, and after the host device and the terminal device establish a communication link, determine the communication status of the host device and the terminal device under the current communication link, wherein the target flip channel refers to: a designated single preset type of interface flip channel.
[0080] Specifically, in consideration of the technical problems in the above background technology, and in combination with the consideration that a variety of signal channels can be constructed between two devices to communicate through the channel switching device 3, the interface flip test device in the embodiment of the present invention is provided with a channel switching device 3. The channel switching device 3 can construct an interface flip channel of a preset type (which may include positive and negative flipping) for a designated signal port of any designated signal channel between the host device and the terminal device. In order to facilitate connecting the PCIe interface of the host device and the terminal device to the channel switching device 3, the interface flip test device in the embodiment of the present invention is provided with a first connector 1 and a second connector 2. The first connector 1 can be used to connect the PCIe interface of the host device to the channel switching device 3, and the second connector 2 can be used to connect the PCIe interface of the host device to the channel switching device 3. Connector 2 can be used to connect the PCIe interface of the terminal device to the channel switching device 3. Based on this, the channel switching device 3 can be between the first connector 1 and the second connector 2, so that the control device 4 can build a preset type of interface flip channel (these interface flip channels can be selectively opened or closed) by channel switching any signal channel, and the control device 4 can also open the target flip channel of the designated signal port of the designated signal channel by controlling the channel switching, and after the host device and the terminal device establish a communication link, determine the communication status of the host device and the terminal device under the current communication link, so as to complete the test of the interface flip instance corresponding to the "target flip channel of the designated signal port of the designated signal channel".
[0081] Specifically, the first connector 1 and the second connector 2 can both be PCIe connectors, the host device and the terminal device can both refer to a host device and a terminal device that communicate based on PCIe signals, the host device can also be called an RC (Root Complex) device, and the terminal device can also be called an EP (Endpoint) device.
[0082] Specifically, in order to better illustrate the embodiments of the present invention, please refer to Figure 2 and Figure 3 , Figure 2 This is a schematic diagram of the structure of the PCIe interface channel direct connection. Figure 3 This is a schematic diagram of the PCIe interface channel flipping structure. The physical layer circuit connection of the devices at both ends of the PCIe link. Common connection methods are as follows: Figure 2 As shown in the figure, the channels are connected in sequence according to their positions. However, in the board PCB design, the channel positions of the chip or connector are often defined asymmetrically, resulting in the PCIe routing being staggered (such as Figure 3 Therefore, it is necessary to adjust the channel sequence or PN (positive signal P and negative signal N) sequence to reduce the PCIe signal PCB (Printed Circuit Board) via-layer routing and improve the PCIe signal quality.
[0083] Among them, the first connector 1 and the second connector 2 need to match the same model, for example, the first connector 1 uses PCIe gold finger (half-height half-length PCIe standard card gold finger), and the second connector 2 uses PCIe slot (half-height half-length PCIe standard card slot); the first connector 1 uses U.2 interface male connector, and the second connector 2 uses U.2 female connector; the first connector 1 uses MCIO (Mini Cool Edge IO connector) gold finger connector, and the second connector 2 uses MCIO female connector; the first connector 1 uses E3.S gold finger connector, and the second connector 2 uses E3.S female slot connector. The first connector 1 uses E1.S gold finger connector, and the second connector 2 uses E1.S female slot connector. That is, this interface flip test equipment can be embedded between PCIe Host (host device) and device (terminal) devices for use.
[0084] Specifically, the first connector 1 and the second connector 2 can be of various types, for example, they can be U.2, U.3, PCIe solt, E3.S, E1.S, M.2, MCIO, Slimline (ultra-thin), Mini SAS (Serial Attached SCSI, Small Computer System Interface) and other PCIe high-speed male and female connectors, which are not limited in the embodiments of the present invention.
[0085] The present invention provides an interface flip test device. Considering that a variety of signal channels can be constructed between two devices that want to communicate through a channel switching device, in this application, the PCIe signal interface of the host device is first connected through a first connector, and the PCIe signal interface of the terminal device is connected through a second connector. Then, an interface flip channel of a preset type (including positive and negative flipping) is constructed for any signal port of any signal channel between the host device and the terminal device through the channel switching device. The control device can open the target flip channel (a specified single preset type of interface flip channel) of the specified signal port of the specified signal channel through the channel switching device, and after the host device and the terminal device establish a communication link, determine the communication status of the host device and the terminal device under the current communication link, thereby realizing the communication capability of the PCIe device in the interface flip mode. The quality defects of the PCIe device in the interface flip mode can be discovered in time, and the reliability of the PCIe device is improved.
[0086] Based on the above embodiments:
[0087] As an optional embodiment, the preset type also includes channel flipping and mixed flipping combining positive and negative flipping and channel flipping;
[0088] The communication interface of the host device and the terminal device includes at least two signal channels.
[0089] Specifically, considering that many PCIe interfaces have more than one channel, in the case of multiple channels, the PCIe interface may also have the need for channel flipping and mixed flipping combining positive and negative flipping with channel flipping. Therefore, the preset types in the embodiments of the present invention may also include channel flipping and mixed flipping combining positive and negative flipping with channel flipping. That is, the interface flip test device in the embodiments of the present invention can also test the communication performance of the host device and the terminal device under "channel flipping or mixed flipping", thereby improving the comprehensiveness of the test.
[0090] Among them, the premise of channel flipping and mixed flipping is that the communication interface between the host device and the terminal device (that is, the PCIe interface) includes at least two signal channels. The number of signal channels of the PCIe interface can be multiple, for example, it can be X1, X2, X4, X8 and X16 (that is, 16 signal channels), etc., which is not limited in the embodiment of the present invention.
[0091] Specifically, in order to better illustrate the embodiments of the present invention, please refer to Figures 4 to 6 , Figure 4 This is a schematic diagram of the conventional positive and negative connections of the PCIe interface. Figure 5 This is a structural diagram of a positive and negative flip connection of the PCIe interface. Figure 6 This is a structural diagram of a partial channel positive and negative flip connection of the PCIe interface. The PCIe specification channel flip and polarity flip functions are optional, but most PCIe devices support flipping. It allows the channel positions to be connected in a wrong order and the polarity of the same group of differential signals to be interchanged. When the system device is powered on, the devices at both ends of the PCIe link (host device and terminal device) will perform link initialization and training to match the channel positions. One of the devices at both ends of the link will flip the channel position, so that the device's 0th channel is connected to the 0th channel of the other end device, and the device's 1st channel is connected to the 1st channel of the other end device, and subsequent channels are configured in sequence. Similarly, PCIe polarity flipping supports PN flipping in the same Lane (also known as signal channel, referred to as channel), TX (Transmit, transmission) signal, RX (Receive, reception) signal polarity flipping at the same time, or PN flipping of separate TX and RX signals.
[0092] Specifically, Figure 4 It shows that the TX signal and RX channel in the 0th channel of the host device and the terminal device have not been flipped. TXP is the P (Positive) signal of the TX signal, and TXN is the N (Negative) signal of the TX signal. Similarly, RXP and RXN are the positive and negative signals of RX respectively. Figure 5 It shows that the TX signal and RX signal in channel 0 are both flipped positive and negative, that is, the TXP of the host device is connected to the TXN of the terminal device, the TXN of the host device is connected to the TXP of the terminal device, the RXP of the host device is connected to the RXN of the terminal device, and the RXN of the host device is connected to the RXP of the terminal device; Figure 6 It shows that the TX signal of channel 0 is flipped, while the RX signal is not flipped.
[0093] As an optional embodiment, the channel switching device 3 is further used for:
[0094] Between the host device and the terminal device, a non-flip channel is constructed for any signal port of any signal channel, wherein the non-flip channel refers to a channel without positive and negative flipping and channel flipping;
[0095] The control device 4 is also used to open the non-flip channel of the designated signal port of the designated signal channel through the channel switching device 3, and after the host device and the terminal device establish a communication link based on the non-flip channel, determine the communication status of the host device and the terminal device under the current communication link, wherein the interface flip channel and the non-flip channel of a single signal port are mutually exclusive.
[0096] Specifically, considering that in some flipping situations, only some interfaces in the channel may be flipped, e.g. Figure 6 As shown, only the TX signal of the 0th channel is flipped, and the RX signal of the 0th channel is not flipped. Therefore, in order to facilitate the realization of this flipping situation, the channel switching device 3 in the embodiment of the present invention can also construct a non-flipping channel for any signal channel between the host device and the terminal device. Specifically, a non-flipping channel can be constructed for any signal port (transmitting end TX and receiving end RX) of any signal channel between the host device and the terminal device. The above-mentioned "constructing a preset type of interface flipping channel for any signal channel"
[0097] Among them, it is worth mentioning that for any signal port (transmitter and receiver), each signal port can be independently configured with an open channel (such as a target flip channel or a non-flip channel), that is, a single signal port has only one open channel at the same time, and the opened channels of two signal ports belonging to the same signal channel can be different.
[0098] As an optional embodiment, the channel switching device 3 is further used for:
[0099] For any communication device, a loopback channel is established for any signal channel of the communication device, wherein the communication device includes a host device and a terminal device, and the loopback channel refers to: a channel directly connecting a transmitting end and a receiving end of a single signal channel of the communication device;
[0100] The control device 4 is also used to open the loopback channel of the designated signal channel of the designated communication device through the channel switching device 3, and after the designated communication device establishes a communication link based on the loopback channel, determine the communication state of the designated communication device under the loopback channel, wherein the loopback channel of a single signal channel is mutually exclusive with the interface flip channel and the non-flip channel.
[0101] Specifically, considering that the staff may have a test requirement for "a loopback channel for a PCIe signal of a PCIe device", the channel switching device 3 in the embodiment of the present invention can also establish a loopback channel (a channel in which the transmitting end and the receiving end of a single signal channel of a communication device are directly connected) for any signal channel of the communication device for any communication device. In this case, the control device 4 can also open the loopback channel of the specified signal channel of the specified communication device through the channel switching device 3, and after the specified communication device establishes a communication link based on the loopback channel, determine the communication state of the specified communication device under the loopback channel, for example Figure 4 The TXP and RXP of the 0th channel of the host device are connected, and the TXN and RXN are connected.
[0102] In addition, it is worth mentioning that the loopback channel of a single signal channel is mutually exclusive with the interface flip channel and the non-flip channel, that is, when the loopback channel of a single signal channel is opened, the target flip channel and the non-flip channel cannot be opened.
[0103] As an optional embodiment, the channel switching device 3 includes a switch group corresponding to a single signal channel of a single connector, any switch group includes a switch pair corresponding to a transmitting end and a receiving end in the signal channel, and any switch pair includes a signal switching switch corresponding to a positive signal end and a negative signal end;
[0104] The first end of the signal switching switch is connected to the corresponding single-channel differential signal end, and the second end to the fifth end of the signal switching switch are connected to the ports of the designated signal switching switch in a one-to-one correspondence, wherein the connector where the signal switching switch is located is different from the connector where the designated signal switching switch is located, and the connector includes a first connector 1 and a second connector 2, and the second end to the fifth end of the signal switching switch are respectively connected to different designated signal switching switches.
[0105] Specifically, in order to better illustrate the embodiments of the present invention, please refer to Figures 7 to 9 , Figure 7 A schematic diagram of the structure of another interface flip test device provided by the present invention, Figure 8 A wiring diagram of a signal switching switch of a PCIe transmitting end provided by the present invention, Fig. 9 A wiring diagram of a signal switching switch of a PCIe receiving end provided by the present invention, Figure 7 The first connector 1 in the embodiment can be connected to the host device through the host device port, and the second connector 2 can be connected to the terminal device through the terminal device port. Figure 7The figure shows the connection relationship diagram of the switch groups corresponding to the single signal channels of the first connector 1 and the second connector 2. The two signal switching switches directly connected to the first connector 1 constitute the "switch group corresponding to the single signal channel of the first connector 1", and the two signal switching switches directly connected to the second connector 2 constitute the "switch group corresponding to the single signal channel of the second connector 2". The intersecting dotted line between the two switch groups is used to indicate that the two switch groups can provide a collection of various communication channels (including a flip channel, a non-flip channel and a loopback channel) between the single signal channels of the two communication devices. Figure 7 The control module can be connected to the host computer through the host computer interface, receive power supply through the power supply interface, and can be connected to each signal switching switch respectively to independently control each signal switching switch to operate, so as to build various communication channels.
[0106] For details, see Figure 8 It can be seen that each signal switching switch in the embodiment of the present invention is a "one-input multiple-output" or "multiple-input one-output" switch. Figure 8 and Fig. 9 The forms of "one input and four outputs" and "four inputs and one output" are taken as examples. If you want to add a "loopback channel", you can set the signal switching switch to the forms of "one input and five outputs" and "five inputs and one output". The embodiments of the present invention are not limited here.
[0107] Specifically, Figure 8 A wiring diagram of a signal switching switch of a PCIe transmitting end provided by the present invention, Fig. 9 A wiring diagram of a signal switching switch of a PCIe receiving end provided by the present invention. The difference between the two figures is that the signal ports are the transmitting end and the receiving end, and the other parts are the same. Figure 8 TX0 to TX3 in the figure are the 0th to 3rd transmitters respectively. Fig. 9 RX0 to RX3 in the figure are the 0th to 3rd receiving ends respectively. Figure 8 Taking the structure of the channel switching device 3 as an example, for the first connector 1 and the second connector 2, any differential signal end (including the positive signal end and the negative signal end) of any signal port is correspondingly connected to a signal switching switch, wherein the first end of the signal switching switch connected to the positive signal end is represented by P, and the second end to the fifth end are represented by P0 to P3 respectively, and the first end of the signal switching switch connected to the negative signal end is represented by N, and the second end to the fifth end are represented by N0 to N3 respectively. Figure 8 and Fig. 9In the figure, various signal channels (including flip channels and non-flip channels) are constructed for each signal port through a preset connection relationship between the signal switching switch connected to the first connector 1 and the signal switching switch connected to the second connector 2. The various signal channels are represented by line segments in different forms (including conventional (i.e., non-flip), positive and negative flip, channel flip, and mixed flip).
[0108] It is worth mentioning that in your country Figure 8 and Fig. 9 Only various signal channels between the first signal channel and the third signal channel are marked, and the second signal channel and the third signal channel may also have various connection relationships such as “between the first signal channel and the fourth signal channel”, which will not be repeated in the embodiments of the present invention.
[0109] As an optional embodiment, the signal switching switch includes a high-frequency analog switch.
[0110] Specifically, high-frequency analog switches have the advantages of small size, low cost and long life.
[0111] Of course, in addition to the high-frequency analog switch, the signal switching switch may also be of other types, which is not limited in the embodiment of the present invention.
[0112] Among them, the signal switching switch can be of various types, for example, it can be a non-reflective high-frequency analog switch. The S parameters of this non-reflective high-frequency analog switch need to meet the requirements of the PCIe Gen5 protocol specification, select non-reflective devices with low insertion loss and high isolation indicators, and enable the signal to control the selection of the switch path through the IO (Input / Output) signal. The embodiment of the present invention is not limited here.
[0113] As an optional embodiment, the control device 4 includes a control module and a host computer;
[0114] The control module is used to parse the test instruction sent by the host computer into a control signal, and control the channel switching device 3 through the control signal.
[0115] Specifically, the control module can receive the test instructions (control commands or scripts) of the host computer, obtain the control signal after parsing, and then control the channel switching device 3 through the control signal. The combination of the control module and the host computer in the embodiment of the present invention has the advantages of strong flexibility and clear division of labor.
[0116] Of course, in addition to this specific form, the control device 4 may also be in other forms, which is not limited in the embodiment of the present invention.
[0117] The control module may be of various types, for example, a CPLD (Complex Programmable Logic Device), etc., which is not limited in the embodiment of the present invention.
[0118] As an optional embodiment, the host computer includes a host device or a network terminal.
[0119] Specifically, the host device itself can save costs as the upper computer, while the network terminal can improve the flexibility of control as the upper computer.
[0120] Of course, in addition to the above-mentioned forms, the host computer may also be of other types, which is not limited in the embodiments of the present invention.
[0121] As an optional embodiment, the control device 4 is further used to, when the communication status between the host device and the terminal device under the current communication link is that the communication cannot be communicated, control the prompting device to prompt the host device and the terminal device that the communication under the current communication link is abnormal;
[0122] The communication status includes normal communication and failure to communicate;
[0123] The interface flip test equipment also includes a prompt device.
[0124] Specifically, in order to facilitate the staff to obtain the "communication status of the host device and the terminal device under the current communication link" in a timely manner, the interface flip test equipment in the embodiment of the present invention also includes a prompt device. When the communication status of the host device and the terminal device under the current communication link is that they cannot communicate, the control device 4 can control the prompt device to prompt that the host device and the terminal device have abnormal communication under the current communication link, so that the staff can obtain the information in time and perform maintenance.
[0125] The prompt device may be of various types, such as a voice announcer or a display, etc., which is not limited in the embodiment of the present invention.
[0126] As an optional embodiment, the interface flip test device further includes a circuit substrate, a first connector 1 slot and a second connector 2 slot;
[0127] The circuit substrate is used to fix the first connector 1 slot, the second connector 2 slot, the channel switching device 3 and the control device 4;
[0128] The first connector 1 slot and the second connector 2 slot are used to install a specified type of high-speed serial computer expansion bus standard connector.
[0129] Specifically, taking into account that different communication devices are adapted to different types of PCIe connectors, in order to make the interface flip test device in the embodiment of the present invention adapt to a variety of different communication devices, the first connector 1 and the second connector 2 in the embodiment of the present invention are configured to be replaceable. In order to facilitate the replacement of the PCIe connector, the embodiment of the present invention provides a first connector 1 slot and a second connector 2 slot fixed to the circuit substrate. Based on the first connector 1 slot and the second connector 2 slot, the PCIe connector can be replaced efficiently and accurately, which is conducive to improving work efficiency and test reliability.
[0130] As an optional embodiment, the control device 4 controls the channel switching device 3 through a control signal;
[0131] The control device 4 is also used for:
[0132] Injecting a specified fault into a control signal to be sent to the channel switching device 3;
[0133] The control signal for injecting the designated fault is sent to the channel switching device 3 .
[0134] Specifically, considering that there are differences in the resistance of PCIe devices to signal failures, there is also a test requirement for the "resistance of PCIe devices to signal failures". Therefore, the control device 4 in the embodiment of the present invention can also inject a specified fault into the control signal to be sent to the channel switching device 3, and then send the control signal injected with the specified fault to the channel switching device 3, so as to perform channel selection through the channel switching device 3.
[0135] The specified fault may be of various types, which are not limited in the embodiment of the present invention.
[0136] As an optional embodiment, the specified fault includes a signal glitch.
[0137] Specifically, considering that in the actual PCIe communication process, the probability of signal glitches in the control signal is relatively high, it is particularly important to test the ability of PCIe devices to resist signal glitches. Therefore, the specified faults in the embodiment of the present invention include signal glitches, and the control device 4 can simulate the generation of control signals of various specified periods and specified ratios of PRBS (Pseudo-Random Binary Sequence) to control the corresponding signal switching switches.
[0138] Among them, by controlling the opening and closing of the signal switching switch, a control signal with signal glitches of different amplitude strengths can be generated, that is, a switching signal with different periodic frequencies. The higher the switching frequency, the greater the amplitude of the signal glitches.
[0139] Of course, in addition to the signal burr, the specified fault may also be of other types, which are not limited in the embodiment of the present invention.
[0140] In addition, it is worth mentioning that the process of switching the channel switching device 3 in the embodiment of the present invention can actually be regarded as a hot-plug process for the terminal device, so the test process is equivalent to synchronously performing a hot-plug test of the terminal device.
[0141] Please refer to Fig.10 , Fig.10 The present invention provides a flow chart of an interface flip test method, the interface flip test method comprising:
[0142] S101: opening a target flip channel of a designated signal port of a designated signal channel between a host device and a terminal device through a channel switching device 3;
[0143] The host device and the terminal device belong to high-speed serial computer expansion bus standard devices, and the channel switching device 3 is used to construct a preset type of interface flip channel for any signal port of any signal channel between the host device and the terminal device, and the target flip channel refers to: a specified single preset type of interface flip channel, the preset type includes positive and negative flip, and the signal port includes a sending end and a receiving end;
[0144] S102: After the host device and the terminal device establish a communication link based on the target flip channel, determine the communication state of the host device and the terminal device under the current communication link.
[0145] As an optional embodiment, the preset type also includes channel flipping and mixed flipping combining positive and negative flipping and channel flipping;
[0146] The communication interface of the host device and the terminal device includes at least two signal channels.
[0147] As an optional embodiment, the interface flip test method further includes:
[0148] Through the channel switching device 3, the non-flip channel of the designated signal port of the designated signal channel is opened;
[0149] After the host device and the terminal device establish a communication link based on the non-flip channel, determine the communication state of the host device and the terminal device under the current communication link;
[0150] Among them, the channel switching device 3 is also used to: construct a non-flip channel for any signal channel between the host device and the terminal device. The non-flip channel refers to a channel without positive and negative flipping and channel flipping. The interface flip channel and the non-flip channel of a single signal port are mutually exclusive.
[0151] As an optional embodiment, the interface flip test method further includes:
[0152] By means of the channel switching device 3, a loopback channel of a designated signal channel of a designated communication device is opened;
[0153] After the designated communication device establishes a communication link based on the loopback channel, determining a communication state of the designated communication device under the loopback channel;
[0154] Among them, the channel switching device 3 is also used to: for any communication device, establish a loopback channel for any signal channel of the communication device, the communication device includes a host device and a terminal device, the loopback channel refers to: the channel directly connecting the transmitting end and the receiving end of a single signal channel of the communication device, the loopback channel of a single signal channel and the interface flip channel and the non-flip channel are mutually exclusive.
[0155] As an optional embodiment, the interface flip test method further includes:
[0156] When the communication status between the host device and the terminal device under the current communication link is that they cannot communicate, the control prompting device prompts that the communication between the host device and the terminal device under the current communication link is abnormal;
[0157] The communication status includes normal communication and unable to communicate.
[0158] For an introduction to the interface flip test method provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the interface flip test device, and the embodiment of the present invention will not be described in detail here.
[0159] Please refer to Fig.11 , Fig.11 This is a structural schematic diagram of an interface flip test device provided by the present invention, and the interface flip test device is applied to a control device 4, comprising:
[0160] The control module 111 is used to open the target flip channel of the designated signal port of the designated signal channel between the host device and the terminal device through the channel switching device 3;
[0161] The host device and the terminal device belong to high-speed serial computer expansion bus standard devices, and the channel switching device 3 is used to construct a preset type of interface flip channel for any signal port of any signal channel between the host device and the terminal device, and the target flip channel refers to: a specified single preset type of interface flip channel, the preset type includes positive and negative flip, and the signal port includes a sending end and a receiving end;
[0162] The determination module 112 is used to determine the communication state between the host device and the terminal device under the current communication link after the host device and the terminal device establish a communication link based on the target flip channel.
[0163] As an optional embodiment, the interface flip test device further includes:
[0164] The first action module is used to open the non-flip channel of the designated signal port of the designated signal channel through the channel switching device 3;
[0165] A second action module is used to determine the communication state of the host device and the terminal device under the current communication link after the host device and the terminal device establish a communication link based on the non-flip channel;
[0166] Among them, the channel switching device 3 is also used to: construct a non-flip channel for any signal channel between the host device and the terminal device. The non-flip channel refers to a channel without positive and negative flipping and channel flipping. The interface flip channel and the non-flip channel of a single signal port are mutually exclusive.
[0167] As an optional embodiment, the interface flip test device further includes:
[0168] The third action module is used to open the loopback channel of the designated signal channel of the designated communication device through the channel switching device 3;
[0169] A fourth action module, configured to determine a communication state of the designated communication device under the loopback channel after the designated communication device establishes a communication link based on the loopback channel;
[0170] Among them, the channel switching device 3 is also used to: for any communication device, establish a loopback channel for any signal channel of the communication device, the communication device includes a host device and a terminal device, the loopback channel refers to: the channel directly connecting the transmitting end and the receiving end of a single signal channel of the communication device, the loopback channel of the single signal channel and the flip channel of the second connector 2 interface and the non-flip channel are mutually exclusive.
[0171] As an optional embodiment, the interface flip test device further includes:
[0172] A fifth action module is used for controlling the prompting device to prompt the host device and the terminal device that the communication is abnormal under the current communication link when the communication status between the host device and the terminal device under the current communication link is that the communication is unable to communicate;
[0173] The communication status of the second connector 2 includes normal communication and unable to communicate.
[0174] For an introduction to the interface flip test device provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the interface flip test device, and the embodiment of the present invention will not be described in detail here.
[0175] The present invention also provides a computer program product, including a computer program / instruction, which implements the steps of the interface flip test method in the above embodiment when executed by a processor.
[0176] For an introduction to the computer program product provided by the embodiment of the present invention, please refer to the aforementioned embodiment of the interface flip test device, and the embodiment of the present invention will not be described in detail here.
[0177] Please refer to Fig.12 , Fig.12 This is a schematic diagram of the structure of a computer-readable storage medium provided by the present invention. A computer program 122 is stored on the computer-readable storage medium 121. When the computer program 122 is executed by the processor, the steps of the interface flip test method in the aforementioned embodiment are implemented.
[0178] For an introduction to the computer-readable storage medium provided in an embodiment of the present invention, please refer to the aforementioned embodiment of the interface flip test device, and the embodiment of the present invention will not be described in detail here.
[0179] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same and similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should also be noted that in this specification, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply that there is any such actual relationship or order between these entities or operations. Moreover, the term "include", "comprise" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or equipment. In the absence of more restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or equipment including the element.
[0180] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An interface flip test device, characterized in that: include: A first connector having a first end connected to the host device and used to connect a high-speed serial computer expansion bus standard interface of the host device to the channel switching device; A second connector having a first end connected to the terminal device and used to connect a high-speed serial computer expansion bus standard interface of the terminal device to the channel switching device; A channel switching device connected to the second end of the host device and the second end of the terminal device respectively, used to construct an interface flip channel of a preset type for any signal port of any signal channel between the host device and the terminal device, wherein the preset type includes positive and negative flipping, and the signal port includes a transmitting end and a receiving end; A control device is used to open the target flip channel of the designated signal port of the designated signal channel through the channel switching device, and after the host device and the terminal device establish a communication link, determine the communication state of the host device and the terminal device under the current communication link, wherein the target flip channel refers to: a designated single preset type of interface flip channel.
2. The interface flip test device according to claim 1, characterized in that: Preset types also include channel flipping and mixed flipping that combines positive and negative flipping with channel flipping; The communication interface of the host device and the terminal device includes at least two signal channels.
3. The interface flip test device according to claim 2, characterized in that: The channel switching device is also used for: Between the host device and the terminal device, a non-flip channel is constructed for any signal port of any signal channel, wherein the non-flip channel refers to a channel without positive and negative flipping and channel flipping; The control device is also used to open the non-flip channel of the designated signal port of the designated signal channel through the channel switching device, and after the host device and the terminal device establish a communication link, determine the communication status of the host device and the terminal device under the current communication link, wherein the interface flip channel and the non-flip channel of a single signal port are mutually exclusive.
4. The interface flip test device according to claim 3, characterized in that: The channel switching device is also used for: For any communication device, a loopback channel is established for any signal channel of the communication device, wherein the communication device includes a host device and a terminal device, and the loopback channel refers to: a channel directly connecting a transmitting end and a receiving end of a single signal channel of the communication device; The control device is also used to open the loopback channel of the designated signal channel of the designated communication device through the channel switching device, and determine the communication state of the designated communication device under the loopback channel after the designated communication device establishes a communication link based on the loopback channel, wherein the loopback channel of a single signal channel is mutually exclusive with the interface flip channel and the non-flip channel.
5. The interface flip test device according to claim 3, characterized in that: The channel switching device includes a switch group corresponding to a single signal channel of a single connector, any of the switch groups includes a switch pair corresponding to a transmitting end and a receiving end in the signal channel, and any of the switch pairs includes a signal switching switch corresponding to a positive signal end and a negative signal end; The first end of the signal switching switch is connected to the corresponding single-channel differential signal end, and the second end to the fifth end of the signal switching switch are connected to the port of the designated signal switching switch in a one-to-one correspondence, wherein the connector where the signal switching switch is located is different from the connector where the designated signal switching switch is located, and the connector includes a first connector and a second connector, and the second end to the fifth end of the signal switching switch are respectively connected to different designated signal switching switches.
6. The interface flip test device according to claim 5, characterized in that: The signal switching switch includes a high-frequency analog switch.
7. The interface flip test device according to claim 1, characterized in that: The control device includes a control module and a host computer; The control module is used to parse the test instruction sent by the host computer into a control signal, and control the channel switching device through the control signal.
8. The interface flip test device according to claim 7, characterized in that: The host computer includes the host device or the network terminal.
9. The interface flip test device according to claim 1, characterized in that: The control device is also used to, when the communication status between the host device and the terminal device under the current communication link is that the communication cannot be communicated, control the prompting device to prompt the host device and the terminal device that the communication under the current communication link is abnormal; Wherein, the communication status includes normal communication and unable to communicate; The interface flip test equipment also includes a prompt device.
10. The interface flip test device according to claim 1, characterized in that: The interface flip test device also includes a circuit substrate, a first connector slot and a second connector slot; The circuit substrate is used to fix the first connector slot, the second connector slot, the channel switching device and the control device; The first connector slot and the second connector slot are used to install a specified type of high-speed serial computer expansion bus standard connector.
11. The interface flip test device according to any one of claims 1 to 10, characterized in that: The control device controls the channel switching device through a control signal; The control device is also used for: injecting a specified fault into a control signal to be sent to a channel switching device; A control signal for injecting a specified fault is sent to the channel switching device.
12. The interface flip test device according to claim 11, characterized in that: The specified fault includes a signal glitch.
13. An interface flip test method, characterized in that: include: By means of the channel switching device, a target flip channel of a designated signal port of a designated signal channel between the host device and the terminal device is opened; The host device and the terminal device belong to high-speed serial computer expansion bus standard devices, and the channel switching device is used to construct a preset type of interface flip channel for any signal port of any signal channel between the host device and the terminal device, and the target flip channel refers to: a specified single preset type of interface flip channel, the preset type includes positive and negative flip, and the signal port includes a transmitting end and a receiving end; After the host device and the terminal device establish a communication link based on the target flip channel, the communication state of the host device and the terminal device under the current communication link is determined.
14. The interface flip test method according to claim 13, characterized in that: Preset types also include channel flipping and mixed flipping that combines positive and negative flipping with channel flipping; The communication interface of the host device and the terminal device includes at least two signal channels.
15. The interface flip test method according to claim 14, characterized in that: The interface flip test method also includes: By means of the channel switching device, a non-flip channel of a designated signal port of a designated signal channel is opened; After the host device and the terminal device establish a communication link based on the non-flip channel, determine the communication state of the host device and the terminal device under the current communication link; Among them, the channel switching device is also used to: construct a non-flip channel for any signal channel between the host device and the terminal device. The non-flip channel refers to a channel without positive and negative flipping and channel flipping. The interface flip channel and non-flip channel of a single signal port are mutually exclusive.
16. The interface flip test method according to claim 15, characterized in that: The interface flip test method also includes: By means of the channel switching device, a loopback channel of a designated signal channel of a designated communication device is opened; After the designated communication device establishes a communication link based on the loopback channel, determining a communication state of the designated communication device under the loopback channel; Among them, the channel switching device is also used to: for any communication device, establish a loopback channel for any signal channel of the communication device, the communication device includes a host device and a terminal device, the loopback channel refers to: a channel directly connecting the transmitting end and the receiving end of a single signal channel of the communication device, the loopback channel of the single signal channel is mutually exclusive with the interface flip channel and the non-flip channel.
17. The interface flip test method according to claim 13, characterized in that: The interface flip test method also includes: When the communication status between the host device and the terminal device under the current communication link is that they cannot communicate, the control prompting device prompts that the communication between the host device and the terminal device under the current communication link is abnormal; The communication status includes normal communication and unable to communicate.
18. An interface flip test device, characterized in that: Applicable to control devices, including: A control module, used for opening a target flip channel of a designated signal port of a designated signal channel between a host device and a terminal device through a channel switching device; The host device and the terminal device belong to high-speed serial computer expansion bus standard devices, and the channel switching device is used to construct a preset type of interface flip channel for any signal port of any signal channel between the host device and the terminal device, and the target flip channel refers to: a specified single preset type of interface flip channel, the preset type includes positive and negative flip, and the signal port includes a transmitting end and a receiving end; The determination module is used to determine the communication state of the host device and the terminal device under the current communication link after the host device and the terminal device establish a communication link based on the target flip channel.
19. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instruction is executed by a processor, the steps of the interface flip test method as described in any one of claims 13 to 17 are implemented.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the interface flip test method according to any one of claims 13 to 17 are implemented.
Citation Information
Patent Citations
Display driving device and display device including same
CN110609633A
Loopback test method, device, circuit and equipment of communication equipment network port and medium
CN111669255A
NVME SSD interface fault signal injection method, device and equipment and readable medium
CN114996159A
Master and slave frame cascade system in cut-in device
CN1859244A
Apparatuses and methods for determining configuration of SAS and SATA cables
US20100057393A1
Cited By
Burr test method, device and system and computer equipment
CN120142911A