[go: up one dir, main page]

CN115454748A - Test board, node selection method and component - Google Patents

Test board, node selection method and component Download PDF

Info

Publication number
CN115454748A
CN115454748A CN202211128324.4A CN202211128324A CN115454748A CN 115454748 A CN115454748 A CN 115454748A CN 202211128324 A CN202211128324 A CN 202211128324A CN 115454748 A CN115454748 A CN 115454748A
Authority
CN
China
Prior art keywords
usb
node
selection
test board
control circuit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211128324.4A
Other languages
Chinese (zh)
Inventor
夏雪琴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202211128324.4A priority Critical patent/CN115454748A/en
Publication of CN115454748A publication Critical patent/CN115454748A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test buses, lines or interfaces, e.g. stuck-at or open line faults
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/273Tester hardware, i.e. output processing circuits
    • G06F11/2733Test interface between tester and unit under test

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

本申请公开了计算机技术领域内的一种测试板卡,一种节点选择方法及组件。本申请提供的测试板卡能够同时连通同一服务器中的至少两个计算节点,因此可以同时测试同一服务器中的至少两个计算节点的USB功能,如此可节约测试时间,降低时间成本和人力成本,从而提高多节点服务器的USB功能的测试效率。其中,该方案所提供测试板卡与同一服务器中各计算节点的PCIe接口直连,而没有直连各计算节点的USB接口,由此既能实现节点USB功能的测试,又可降低测试过程中的通信损耗,还提升了测试板卡的通用性。相应地,本申请提供的一种节点选择方法及组件,也同样具有上述技术效果。

Figure 202211128324

The application discloses a test board in the technical field of computers, a node selection method and components. The test board provided by this application can be connected to at least two computing nodes in the same server at the same time, so the USB functions of at least two computing nodes in the same server can be tested at the same time, which can save test time, reduce time costs and labor costs, Therefore, the test efficiency of the USB function of the multi-node server is improved. Among them, the test board provided by this solution is directly connected to the PCIe interface of each computing node in the same server, but not directly connected to the USB interface of each computing node, so that the test of the USB function of the node can be realized, and the test process can be reduced. communication loss, and also improves the versatility of the test board. Correspondingly, a node selection method and components provided in the present application also have the above-mentioned technical effects.

Figure 202211128324

Description

一种测试板卡,一种节点选择方法及组件A test board, a node selection method and components

技术领域technical field

本申请涉及计算机技术领域,特别涉及一种测试板卡,一种节点选择方法及组件。The present application relates to the field of computer technology, in particular to a test board, a node selection method and components.

背景技术Background technique

目前,测试多节点服务器中的各节点的USB(Universal Serial Bus,通用串行总线)功能时,需要对服务器中的每个节点依次分别测试,即:单次连通并测试一个节点的USB功能,如此会增加多倍的测试时间,增加时间成本和人力成本。At present, when testing the USB (Universal Serial Bus, Universal Serial Bus) function of each node in the multi-node server, each node in the server needs to be tested separately in turn, that is: a single connection and test the USB function of a node, This will increase the testing time multiple times, increasing time cost and labor cost.

因此,如何提高多节点服务器的USB功能的测试效率,是本领域技术人员需要解决的问题。Therefore, how to improve the test efficiency of the USB function of the multi-node server is a problem to be solved by those skilled in the art.

发明内容Contents of the invention

有鉴于此,本申请的目的在于提供一种测试板卡,一种节点选择方法及组件,以提高多节点服务器的USB功能的测试效率。其具体方案如下:In view of this, the purpose of this application is to provide a test board, a node selection method and components, so as to improve the test efficiency of the USB function of the multi-node server. The specific plan is as follows:

第一方面,本申请提供了一种测试板卡,包括:控制电路、与所述控制电路连接的USB选择芯片、与所述USB选择芯片连接的USB连接器和N个USB HUB芯片(USB集线器);In a first aspect, the application provides a test board, comprising: a control circuit, a USB selection chip connected to the control circuit, a USB connector connected to the USB selection chip, and N USB HUB chips (USB hub );

其中,所述N个USB HUB芯片连接N个计算节点的PCIe(Peripheral ComponentInterconnect express,一种高速串行计算机扩展总线标准)接口;所述N个计算节点设于同一服务器中;Wherein, the N USB HUB chips are connected to the PCIe (Peripheral Component Interconnect express, a high-speed serial computer expansion bus standard) interface of N computing nodes; the N computing nodes are arranged in the same server;

其中,所述控制电路用于:向所述USB选择芯片发送至少两个计算节点的选择信号;Wherein, the control circuit is configured to: send selection signals of at least two computing nodes to the USB selection chip;

相应地,所述USB选择芯片用于:按照所述选择信号连通当前所选计算节点的PCIe接口至所述USB连接器之间的链路,以将所述USB连接器作为当前所选计算节点的外设连接器。Correspondingly, the USB selection chip is used to: communicate the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal, so as to use the USB connector as the currently selected computing node peripheral connectors.

可选地,所述控制电路包括:信号输入器件;Optionally, the control circuit includes: a signal input device;

相应地,所述控制电路还用于:通过所述信号输入器件获取所述选择信号。Correspondingly, the control circuit is further configured to: acquire the selection signal through the signal input device.

可选地,所述信号输入器件为:物理按键或触摸屏。Optionally, the signal input device is: a physical button or a touch screen.

可选地,所述N个USB HUB芯片还连接N个计算节点的BMC(Baseboard ManagementController,基板管理控制器)。Optionally, the N USB HUB chips are also connected to BMCs (Baseboard Management Controller, Baseboard Management Controller) of N computing nodes.

可选地,所述USB连接器设有N个USB输入口和N个USB输出口。Optionally, the USB connector is provided with N USB input ports and N USB output ports.

可选地,所述USB选择芯片有多个。Optionally, there are multiple USB selection chips.

可选地,所述测试板卡还包括:多个使能开关,每个使能开关连接于所述控制电路和所述USB选择芯片之间。Optionally, the test board further includes: a plurality of enabling switches, each enabling switch is connected between the control circuit and the USB selection chip.

可选地,所述控制电路基于CPLD(Complex Programmable Logic Device)复杂可编程逻辑器件)或FPGA(Field Programmable Gate Array,现场可编程逻辑门阵列)实现。Optionally, the control circuit is implemented based on CPLD (Complex Programmable Logic Device) or FPGA (Field Programmable Gate Array, field programmable logic gate array).

可选地,所述USB连接器的任意USB输出口连接USB设备后,当前所选计算节点对所述USB设备进行管理操作。Optionally, after any USB output port of the USB connector is connected to a USB device, the currently selected computing node performs a management operation on the USB device.

第二方面,本申请提供了一种节点选择方法,应用于上述任一项所述的测试板卡,所述测试板卡包括:控制电路、与所述控制电路连接的USB选择芯片、与所述USB选择芯片连接的USB连接器和N个USB HUB芯片;所述N个USB HUB芯片连接N个计算节点的PCIe接口;所述N个计算节点设于同一服务器中;In the second aspect, the present application provides a node selection method, which is applied to the test board described in any one of the above, and the test board includes: a control circuit, a USB selection chip connected to the control circuit, and the The USB connector connected to the USB selection chip and N USB HUB chips; the N USB HUB chips are connected to the PCIe interfaces of N computing nodes; the N computing nodes are located in the same server;

其中,该方法包括:Among them, the method includes:

所述控制电路向所述USB选择芯片发送至少两个计算节点的选择信号;The control circuit sends selection signals of at least two computing nodes to the USB selection chip;

所述USB选择芯片按照所述选择信号连通当前所选计算节点的PCIe接口至所述USB连接器之间的链路,以将所述USB连接器作为当前所选计算节点的外设连接器。The USB selection chip connects the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal, so as to use the USB connector as a peripheral connector of the currently selected computing node.

可选地,所述控制电路包括:信号输入器件;Optionally, the control circuit includes: a signal input device;

相应地,所述控制电路还用于:通过所述信号输入器件获取所述选择信号。Correspondingly, the control circuit is further configured to: acquire the selection signal through the signal input device.

可选地,所述信号输入器件为:物理按键或触摸屏。Optionally, the signal input device is: a physical button or a touch screen.

可选地,所述N个USB HUB芯片还连接N个计算节点的BMC。Optionally, the N USB HUB chips are also connected to BMCs of N computing nodes.

可选地,所述USB连接器设有N个USB输入口和N个USB输出口。Optionally, the USB connector is provided with N USB input ports and N USB output ports.

可选地,所述USB选择芯片有多个。Optionally, there are multiple USB selection chips.

可选地,所述测试板卡还包括:多个使能开关,每个使能开关连接于所述控制电路和所述USB选择芯片之间。Optionally, the test board further includes: a plurality of enabling switches, each enabling switch is connected between the control circuit and the USB selection chip.

可选地,所述控制电路基于CPLD或FPGA实现。Optionally, the control circuit is implemented based on CPLD or FPGA.

可选地,所述USB连接器的任意USB输出口连接USB设备后,当前所选计算节点对所述USB设备进行管理操作。Optionally, after any USB output port of the USB connector is connected to a USB device, the currently selected computing node performs a management operation on the USB device.

第三方面,本申请提供了一种电子设备,包括:In a third aspect, the present application provides an electronic device, including:

存储器,用于存储计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现前述公开的节点选择方法。A processor, configured to execute the computer program, so as to implement the node selection method disclosed above.

第四方面,本申请提供了一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述公开的节点选择方法。In a fourth aspect, the present application provides a readable storage medium for storing a computer program, wherein the computer program implements the node selection method disclosed above when executed by a processor.

通过以上方案可知,本申请提供了一种测试板卡,包括:控制电路、与所述控制电路连接的USB选择芯片、与所述USB选择芯片连接的USB连接器和N个USB HUB芯片;其中,所述N个USB HUB芯片连接N个计算节点的PCIe接口;所述N个计算节点设于同一服务器中;其中,所述控制电路用于:向所述USB选择芯片发送至少两个计算节点的选择信号;相应地,所述USB选择芯片用于:按照所述选择信号连通当前所选计算节点的PCIe接口至所述USB连接器之间的链路,以将所述USB连接器作为当前所选计算节点的外设连接器。It can be seen from the above scheme that the present application provides a test board, including: a control circuit, a USB selection chip connected to the control circuit, a USB connector connected to the USB selection chip, and N USB HUB chips; wherein , the N USB HUB chips are connected to the PCIe interfaces of N computing nodes; the N computing nodes are set in the same server; wherein the control circuit is used to: send at least two computing nodes to the USB selection chip correspondingly, the USB selection chip is used to: communicate the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal, so as to use the USB connector as the current Peripheral connectors for selected compute nodes.

可见,本申请提供的测试板卡能够同时连通同一服务器中的至少两个计算节点,因此可以同时测试同一服务器中的至少两个计算节点的USB功能,也即:单次连通并测试至少两个计算节点的USB功能,如此可节约测试时间,降低时间成本和人力成本,从而提高多节点服务器的USB功能的测试效率。其中,PCIe链路比USB链路的通信损耗小,因此该方案所提供测试板卡与同一服务器中各计算节点的PCIe接口直连,而没有直连各计算节点的USB接口,由此既能实现节点USB功能的测试,又可降低测试过程中的通信损耗,还提升了测试板卡的通用性。It can be seen that the test board provided by this application can be connected to at least two computing nodes in the same server at the same time, so the USB function of at least two computing nodes in the same server can be tested at the same time, that is: a single connection and test at least two The USB function of the calculation node can save test time, reduce time cost and labor cost, thereby improving the test efficiency of the USB function of the multi-node server. Among them, the communication loss of the PCIe link is smaller than that of the USB link, so the test board provided by this solution is directly connected to the PCIe interface of each computing node in the same server, but not directly connected to the USB interface of each computing node. Realizing the test of the USB function of the node can reduce the communication loss in the test process and improve the versatility of the test board.

相应地,本申请提供的一种节点选择方法及组件,也同样具有上述技术效果。组件为:装置、设备或可读存储介质。Correspondingly, a node selection method and components provided in the present application also have the above-mentioned technical effects. A component is: a device, a device, or a readable storage medium.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.

图1为本申请公开的一种测试板卡示意图;Fig. 1 is a kind of test board schematic diagram disclosed in the present application;

图2为本申请公开的另一种测试板卡示意图;Fig. 2 is another kind of test board schematic diagram disclosed by the present application;

图3为本申请公开的测试板卡中的个别模块的电路连接示意图。FIG. 3 is a schematic diagram of circuit connections of individual modules in the test board disclosed in the present application.

具体实施方式detailed description

下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the application with reference to the drawings in the embodiments of the application. Apparently, the described embodiments are only some of the embodiments of the application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.

目前,测试多节点服务器中的各节点的USB功能时,需要对服务器中的每个节点依次分别测试,即:单次连通并测试一个节点的USB功能,如此会增加多倍的测试时间,增加时间成本和人力成本。为此,本申请提供了一种测试板卡,能够同时测试同一服务器中的至少两个计算节点的USB功能,提高多节点服务器的USB功能的测试效率。At present, when testing the USB function of each node in a multi-node server, it is necessary to test each node in the server in turn, that is, to test the USB function of a node in a single connection, which will increase the test time multiple times and increase the time and labor costs. Therefore, the present application provides a test board, which can simultaneously test the USB functions of at least two computing nodes in the same server, and improve the test efficiency of the USB functions of the multi-node server.

参见图1所示,本申请实施例公开了一种测试板卡,包括:控制电路、与控制电路连接的USB选择芯片、与USB选择芯片连接的USB连接器和N个USB HUB芯片;其中,N个USB HUB芯片连接N个计算节点的PCIe接口;N个计算节点设于同一服务器中。可见,该服务器为多节点服务器。Referring to Fig. 1, the embodiment of the present application discloses a test board, including: a control circuit, a USB selection chip connected to the control circuit, a USB connector connected to the USB selection chip, and N USB HUB chips; wherein, N USB HUB chips are connected to the PCIe interfaces of N computing nodes; N computing nodes are set in the same server. It can be seen that the server is a multi-node server.

其中,控制电路用于:向USB选择芯片发送至少两个计算节点的选择信号;相应地,USB选择芯片用于:按照选择信号连通当前所选计算节点的PCIe接口至USB连接器之间的链路,以将USB连接器作为当前所选计算节点的外设连接器。当前所选计算节点即:需要进行USB功能测试的计算节点。选择信号中可以携带当前所选计算节点的对应标识信息,使得USB选择芯片据此标识信息确定需要连通的链路,同时确定需要断开连接的链路。Wherein, the control circuit is used to: send selection signals of at least two computing nodes to the USB selection chip; correspondingly, the USB selection chip is used to: connect the PCIe interface of the currently selected computing node to the USB connector according to the selection signal. to use the USB connector as a peripheral connector for the currently selected compute node. The currently selected computing node is: the computing node that needs to perform the USB function test. The selection signal may carry corresponding identification information of the currently selected computing node, so that the USB selection chip determines the link to be connected and the link to be disconnected according to the identification information.

如图1所示,计算节点的PCIe接口为PCIe Gen2标准。当然,计算节点的PCIe接口也可以是其他规格的PCIe标准。As shown in Figure 1, the PCIe interface of the computing node is PCIe Gen2 standard. Certainly, the PCIe interface of the computing node may also be a PCIe standard of other specifications.

其中,USB HUB芯片和USB选择芯片可以有多通道,如:USB HUB芯片为四通道的UPD720201,USB选择芯片为四通道的HD3SS3412。其中,四通道芯片表示:该芯片可传输四路信号。Among them, the USB HUB chip and the USB selection chip can have multiple channels, for example, the USB HUB chip is UPD720201 with four channels, and the USB selection chip is HD3SS3412 with four channels. Among them, the four-channel chip means: the chip can transmit four channels of signals.

在一种具体实施方式中,控制电路包括:信号输入器件。用户可通过信号输入器件输入想选择的计算节点。相应地,控制电路还用于:通过信号输入器件获取选择信号。其中,信号输入器件为:物理按键或触摸屏。In a specific implementation manner, the control circuit includes: a signal input device. The user can input the desired computing node through the signal input device. Correspondingly, the control circuit is also used for: obtaining the selection signal through the signal input device. Wherein, the signal input device is: a physical button or a touch screen.

在一种示例中,用户可以通过物理按键或触摸屏选择需要测试USB功能的计算节点,此时物理按键或触摸屏获得选择信号,而控制电路将该选择信号传递给USB选择芯片,使得USB选择芯片按照此选择信号连通用户所选计算节点的PCIe接口至USB连接器之间的链路,从而将测试板卡中的USB连接器作为用户所选计算节点的外设连接器。当然,信号输入器件也可以是:终端。该终端具体可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。In one example, the user can select a computing node that needs to test the USB function through a physical button or a touch screen. At this time, the physical button or the touch screen obtains a selection signal, and the control circuit transmits the selection signal to the USB selection chip, so that the USB selection chip follows the This selection signal connects the link between the PCIe interface of the computing node selected by the user and the USB connector, so that the USB connector in the test board is used as the peripheral connector of the computing node selected by the user. Of course, the signal input device can also be: a terminal. The terminal specifically may include, but is not limited to, a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like.

其中,测试板卡的N个USB HUB芯片还连接N个计算节点的BMC,从而可基于计算节点的BMC实现KVM功能。Among them, the N USB HUB chips of the test board are also connected to the BMCs of N computing nodes, so that the KVM function can be realized based on the BMCs of the computing nodes.

在一种具体实施方式中,测试板卡的USB连接器设有N个USB输入口和N个USB输出口。其中,测试板卡的USB选择芯片有多个。相应地,测试板卡还包括:多个使能开关(如图3所示的EFUSE),每个使能开关连接于控制电路和USB选择芯片之间。其中,USB连接器的USB输入口如图2所示双USB连接器的两个USB3.0,USB连接器的USB输出口在USB输入口的对侧,如图2所示的A和B。USB连接器的USB输入口和USB输出口所采用的USB标准相同。In a specific implementation manner, the USB connector of the test board is provided with N USB input ports and N USB output ports. Among them, there are multiple USB selection chips of the test board. Correspondingly, the test board further includes: a plurality of enabling switches (EFUSE as shown in FIG. 3 ), each enabling switch is connected between the control circuit and the USB selection chip. Among them, the USB input port of the USB connector is shown in Figure 2 as two USB3.0 of the dual USB connector, and the USB output port of the USB connector is on the opposite side of the USB input port, as shown in Figure 2 A and B. The USB input port and the USB output port of the USB connector adopt the same USB standard.

在一种具体实施方式中,测试板卡的控制电路基于CPLD或FPGA实现。当控制电路为CPLD时,CPLD与USB选择芯片、USB选择芯片与USB HUB芯片和USB连接器的连接关系可参照图3。如图3所示,USB HUB芯片将节点传输过来的PCIe Gen2 x1信号转为USB信号,此USB信号后续接入USB选择芯片。USB Switch芯片可以切换一对USB3.0 TX信号、一对USB3.0 RX信号和一对USB2.0信号。USB连接器用于连接USB设备。CPLD间接通过使能开关EFUSE控制USB选择芯片的VCC供电,相当于输出启用(OE)功能,当不选择节点时,断开相应链路连接。若选择某一节点时,直接控制USB选择芯片的公共选择引脚SEL选择USB信号来自某一节点。当OE不使能时,芯片无供电,所有开关都处于高阻抗断开状态,与引脚SEL无关。当OE使能EFUSE时,引脚SEL选择两个接入信号中的一个(低阻抗接通状态)。In a specific implementation manner, the control circuit of the test board is implemented based on CPLD or FPGA. When the control circuit is a CPLD, the connection relationship between the CPLD and the USB selection chip, the USB selection chip, the USB HUB chip, and the USB connector can be referred to in FIG. 3 . As shown in Figure 3, the USB HUB chip converts the PCIe Gen2 x1 signal transmitted by the node into a USB signal, and the USB signal is subsequently connected to the USB selection chip. The USB Switch chip can switch a pair of USB3.0 TX signals, a pair of USB3.0 RX signals and a pair of USB2.0 signals. The USB connector is used to connect USB devices. The CPLD indirectly controls the VCC power supply of the USB selection chip through the enable switch EFUSE, which is equivalent to the output enable (OE) function. When the node is not selected, the corresponding link connection is disconnected. If a certain node is selected, the public selection pin SEL of the USB selection chip is directly controlled to select that the USB signal comes from a certain node. When OE is not enabled, the chip has no power supply, and all switches are in a high-impedance off state, which has nothing to do with the pin SEL. When OE enables EFUSE, pin SEL selects one of the two access signals (low impedance on state).

在一种示例中,USB连接器的任意USB输出口连接USB设备后,当前所选计算节点可对USB设备进行管理操作,如:对USB设备进行安全配置(如:设置密钥)、读取USB设备中的数据、往USB设备中写入数据等,当USB设备为存储设备时,可对USB设备进行分区等管理操作。由此可测试当前所选计算节点的USB功能。其中,测试计算节点的USB功能的具体实现步骤可参照现有相关技术,本实施例在此不再赘述。In one example, after any USB output port of the USB connector is connected to the USB device, the currently selected computing node can perform management operations on the USB device, such as: performing security configuration on the USB device (such as: setting a key), reading Data in the USB device, writing data to the USB device, etc. When the USB device is a storage device, management operations such as partitioning can be performed on the USB device. In this way, the USB function of the currently selected computing node can be tested. Wherein, for specific implementation steps of testing the USB function of the computing node, reference may be made to existing related technologies, which will not be repeated in this embodiment.

可见,本实施例提供的测试板卡能够同时连通同一服务器中的至少两个计算节点,因此可以同时测试同一服务器中的至少两个计算节点的USB功能,也即:单次连通并测试至少两个计算节点的USB功能,如此可节约测试时间,降低时间成本和人力成本,从而提高多节点服务器的USB功能的测试效率。其中,PCIe链路比USB链路的通信损耗小,因此该方案所提供测试板卡与同一服务器中各计算节点的PCIe接口直连,而没有直连各计算节点的USB接口,由此既能实现节点USB功能的测试,又可降低测试过程中的通信损耗,还提升了测试板卡的通用性。It can be seen that the test board provided by this embodiment can connect at least two computing nodes in the same server at the same time, so the USB functions of at least two computing nodes in the same server can be tested at the same time, that is: a single connection and test at least two The USB function of a computing node can save test time, reduce time cost and labor cost, thereby improving the test efficiency of the USB function of a multi-node server. Among them, the communication loss of the PCIe link is smaller than that of the USB link, so the test board provided by this solution is directly connected to the PCIe interface of each computing node in the same server, but not directly connected to the USB interface of each computing node. Realizing the test of the USB function of the node can reduce the communication loss in the test process and improve the versatility of the test board.

请参见图2,如果N取2,那么服务器为双节点服务器。此时在测试板卡中设置2个USB选择芯片,那么可使USB连接器实现:输出口A和B分别供节点1和2使用,或输出口A和B都作为节点1的USB接口,或输出口A和B都作为节点1的USB接口。Please refer to Figure 2, if N is 2, then the server is a dual-node server. At this time, two USB selection chips are set in the test board, so that the USB connector can be realized: the output ports A and B are used for nodes 1 and 2 respectively, or both output ports A and B are used as the USB interface of node 1, or Both output ports A and B are used as USB ports of node 1.

如图2所示,在双节点服务器架构内,两个节点传输PCIe Gen2 x1到测试板卡上,通过UPD720201(一种USB HUB芯片)实现PCIe转USB3.0,然后经HD3SS3412(一种USB选择芯片)选通,使得USB连接器支持两个USB3.0接口,用于连接USB设备。节点CPU与测试板卡通过通用的PCIe进行连接,便于实现:同一测试板卡对不同节点进行测试。As shown in Figure 2, in the dual-node server architecture, the two nodes transmit PCIe Gen2 x1 to the test board, and implement PCIe to USB3.0 through UPD720201 (a USB HUB chip), and then transfer it to USB3. Chip) strobe, so that the USB connector supports two USB3.0 interfaces for connecting USB devices. The node CPU and the test board are connected through a common PCIe, which is convenient for realization: the same test board can test different nodes.

其中,由于UPD720201是四通道的USB HUB芯片,因此还有两路USB信号连接到相应计算节点的BMC上,由此可实现KVM功能,如图2所示。而图2中的任一个HD3SS3412可以选择使节点1所对应链路连通,还是使节点2所对应链路连通,从而可以使双USB连接器的两个USB接口A和B供相应节点使用。如图2所示,一条链路上的信号可以包括:一对USB3.0 TX、一对USB3.0 RX和一对USB2.0信号。Among them, since UPD720201 is a four-channel USB HUB chip, there are two USB signals connected to the BMC of the corresponding computing node, thereby realizing the KVM function, as shown in Figure 2. Any HD3SS3412 in Figure 2 can choose to connect the link corresponding to node 1 or connect the link corresponding to node 2, so that the two USB interfaces A and B of the dual USB connector can be used by the corresponding node. As shown in FIG. 2 , the signals on one link may include: a pair of USB3.0 TX, a pair of USB3.0 RX and a pair of USB2.0 signals.

具体的,当图2所示控制电路为CPLD时,CPLD与HD3SS3412、HD3SS3412与UPD720201和双USB连接器的具体连接关系可参照图3。如图3所示,PCIe转USB3.0芯片UPD720201将节点传输过来的PCIe Gen2 x1信号转为USB信号,此USB信号后续接入两个HD3SS3412。USBSwitch芯片HD3SS3412是四通道的选择器,可以切换一对USB3.0 TX信号、一对USB3.0 RX信号和一对USB2.0信号。双USB连接器分为上下接口,各由一个HD3SS3412控制,且支持两个USB3.0接口,故可以向下兼容USB2.0,用于连接USB设备。Specifically, when the control circuit shown in FIG. 2 is a CPLD, refer to FIG. 3 for the specific connection relationship between the CPLD and HD3SS3412, HD3SS3412, UPD720201 and dual USB connectors. As shown in Figure 3, the PCIe to USB3.0 chip UPD720201 converts the PCIe Gen2 x1 signal transmitted by the node into a USB signal, and the USB signal is subsequently connected to two HD3SS3412. The USBSwitch chip HD3SS3412 is a four-channel selector, which can switch a pair of USB3.0 TX signals, a pair of USB3.0 RX signals and a pair of USB2.0 signals. The dual USB connectors are divided into upper and lower interfaces, each controlled by one HD3SS3412, and supports two USB3.0 interfaces, so it can be backward compatible with USB2.0 for connecting USB devices.

CPLD间接通过使能开关EFUSE控制HD3SS3412的VCC供电,相当于输出启用(OE)功能,当两个节点都不选择时,断开相应链路连接。若选择某一节点时,直接控制HD3SS3412的公共选择引脚SEL选择USB信号来自节点1或节点2。当OE不使能时,芯片无供电,所有开关都处于高阻抗断开状态,与引脚SEL无关。当OE使能EFUSE时,引脚SEL选择两个接入信号中的一个(低阻抗接通状态)。CPLD indirectly controls the VCC power supply of HD3SS3412 through the enable switch EFUSE, which is equivalent to the output enable (OE) function. When neither node is selected, the corresponding link connection is disconnected. If a certain node is selected, directly control the public selection pin SEL of HD3SS3412 to select the USB signal from node 1 or node 2. When OE is not enabled, the chip has no power supply, and all switches are in a high-impedance off state, which has nothing to do with the pin SEL. When OE enables EFUSE, pin SEL selects one of the two access signals (low impedance on state).

可见,本实施例使用2颗USB Switch芯片分别进行节点选择,当两个SEL设置为相同电平时,切换为USB常规模式(两个USB口同时属于同一个节点),当两个SEL设置为不同电平时,切换为USB装备模式(各节点对应一个USB口),具体可参照表1。It can be seen that this embodiment uses two USB Switch chips to select nodes respectively. When the two SELs are set to the same level, they switch to USB normal mode (two USB ports belong to the same node at the same time). When the two SELs are set to different When the level is low, switch to the USB device mode (each node corresponds to a USB port), see Table 1 for details.

表1Table 1

Figure BDA0003849888180000081
Figure BDA0003849888180000081

如表1所示,装备模式下,两个节点对应USB连接器中的不同USB口,因此可以同时对这两个节点进行测试,减少了测试时间,降低了测试成本及运维难度。如图2所示的双节点、双USB设计,可以有效实现:同一USB设备插接于不同节点上,提高了多节点服务器的测试效率。As shown in Table 1, in the equipment mode, the two nodes correspond to different USB ports in the USB connector, so the two nodes can be tested at the same time, which reduces the test time, test cost and operation and maintenance difficulty. The dual-node, dual-USB design shown in Figure 2 can effectively realize that the same USB device is plugged into different nodes, which improves the test efficiency of the multi-node server.

可见,本实施例能够根据需求选择测试单个或多个节点,同一测试板卡既可以对应到单个节点,也可以同时对应到不同节点,节约了测试时间,提升了测试灵活性,也可以降低生产成本和后期板卡维修维护成本。It can be seen that this embodiment can select a single or multiple nodes for testing according to the requirements. The same test board can correspond to a single node or to different nodes at the same time, which saves test time, improves test flexibility, and can also reduce production. Cost and post-board repair and maintenance costs.

下面对本申请实施例提供的一种节点选择方法进行介绍,下文描述的一种节点选择方法与上文描述的一种测试板卡可以相互参照。A node selection method provided in the embodiment of the present application is introduced below, and a node selection method described below and a test board described above may refer to each other.

本申请实施例公开了一种节点选择方法,应用于上述任一实施例所述的测试板卡,测试板卡包括:控制电路、与控制电路连接的USB选择芯片、与USB选择芯片连接的USB连接器和N个USB HUB芯片;N个USB HUB芯片连接N个计算节点的PCIe接口;N个计算节点设于同一服务器中。其中,USB HUB芯片和USB选择芯片可以有多通道,如:USB HUB芯片为四通道的UPD720201,USB选择芯片为四通道的HD3SS3412。其中,四通道芯片表示:该芯片可传输四路信号。The embodiment of the present application discloses a node selection method, which is applied to the test board described in any of the above embodiments. The test board includes: a control circuit, a USB selection chip connected to the control circuit, and a USB selection chip connected to the USB selection chip. Connector and N USB HUB chips; N USB HUB chips are connected to PCIe interfaces of N computing nodes; N computing nodes are set in the same server. Among them, the USB HUB chip and the USB selection chip can have multiple channels, for example, the USB HUB chip is UPD720201 with four channels, and the USB selection chip is HD3SS3412 with four channels. Among them, the four-channel chip means: the chip can transmit four channels of signals.

其中,本申请实施例提供的节点选择方法包括:控制电路向USB选择芯片发送至少两个计算节点的选择信号;USB选择芯片按照选择信号连通当前所选计算节点的PCIe接口至USB连接器之间的链路,以将USB连接器作为当前所选计算节点的外设连接器。当前所选计算节点即:需要进行USB功能测试的计算节点。选择信号中可以携带当前所选计算节点的对应标识信息,使得USB选择芯片据此标识信息确定需要连通的链路,同时确定需要断开连接的链路。Among them, the node selection method provided by the embodiment of the present application includes: the control circuit sends selection signals of at least two computing nodes to the USB selection chip; the USB selection chip connects the PCIe interface of the currently selected computing node to the USB connector according to the selection signal link to use the USB connector as a peripheral connector for the currently selected compute node. The currently selected computing node is: the computing node that needs to perform the USB function test. The selection signal may carry corresponding identification information of the currently selected computing node, so that the USB selection chip determines the link to be connected and the link to be disconnected according to the identification information.

在一种具体实施方式中,控制电路包括:信号输入器件;控制电路还用于:通过信号输入器件获取选择信号。In a specific implementation manner, the control circuit includes: a signal input device; the control circuit is further configured to: acquire a selection signal through the signal input device.

在一种具体实施方式中,信号输入器件为:物理按键或触摸屏。在一种示例中,用户可以通过物理按键或触摸屏选择需要测试USB功能的计算节点,此时物理按键或触摸屏获得选择信号,而控制电路将该选择信号传递给USB选择芯片,使得USB选择芯片按照此选择信号连通用户所选计算节点的PCIe接口至USB连接器之间的链路,从而将测试板卡中的USB连接器作为用户所选计算节点的外设连接器。In a specific implementation manner, the signal input device is: a physical button or a touch screen. In one example, the user can select a computing node that needs to test the USB function through a physical button or a touch screen. At this time, the physical button or the touch screen obtains a selection signal, and the control circuit transmits the selection signal to the USB selection chip, so that the USB selection chip follows the This selection signal connects the link between the PCIe interface of the computing node selected by the user and the USB connector, so that the USB connector in the test board is used as the peripheral connector of the computing node selected by the user.

在一种具体实施方式中,N个USB HUB芯片还连接N个计算节点的BMC。In a specific implementation manner, N USB HUB chips are also connected to BMCs of N computing nodes.

在一种具体实施方式中,USB连接器设有N个USB输入口和N个USB输出口。In a specific implementation manner, the USB connector is provided with N USB input ports and N USB output ports.

在一种具体实施方式中,USB选择芯片有多个。In a specific implementation manner, there are multiple USB selection chips.

在一种具体实施方式中,测试板卡还包括:多个使能开关,每个使能开关连接于控制电路和USB选择芯片之间。In a specific implementation manner, the test board further includes: a plurality of enabling switches, each enabling switch is connected between the control circuit and the USB selection chip.

在一种具体实施方式中,控制电路基于CPLD或FPGA实现。In a specific implementation manner, the control circuit is realized based on CPLD or FPGA.

在一种具体实施方式中,USB连接器的任意USB输出口连接USB设备后,当前所选计算节点对USB设备进行管理操作。如:对USB设备进行安全配置(如:设置密钥)、读取USB设备中的数据、往USB设备中写入数据等,由此可测试当前所选计算节点的USB功能。In a specific implementation manner, after any USB output port of the USB connector is connected to the USB device, the currently selected computing node performs management operations on the USB device. For example, perform security configuration on the USB device (such as setting a key), read data in the USB device, write data to the USB device, etc., so as to test the USB function of the currently selected computing node.

其中,关于本实施例中各个模块、单元更加具体的工作过程可以参考前述实施例中公开的相应内容,在此不再进行赘述。For the more specific working process of each module and unit in this embodiment, reference may be made to the corresponding content disclosed in the foregoing embodiments, and details are not repeated here.

如图2所示,在双节点服务器架构内,两个节点传输PCIe Gen2 x1到测试板卡上,通过UPD720201(一种USB HUB芯片)实现PCIe转USB3.0,然后经HD3SS3412(一种USB选择芯片)选通,使得USB连接器支持两个USB3.0接口,用于连接USB设备。节点CPU与测试板卡通过通用的PCIe进行连接,便于实现:同一测试板卡对不同节点进行测试。As shown in Figure 2, in the dual-node server architecture, the two nodes transmit PCIe Gen2 x1 to the test board, and implement PCIe to USB3.0 through UPD720201 (a USB HUB chip), and then transfer it to USB3. Chip) strobe, so that the USB connector supports two USB3.0 interfaces for connecting USB devices. The node CPU and the test board are connected through a common PCIe, which is convenient for realization: the same test board can test different nodes.

其中,由于UPD720201是四通道的USB HUB芯片,因此还有两路USB信号连接到相应计算节点的BMC上,由此可实现KVM功能,如图2所示。而图2中的任一个HD3SS3412可以选择使节点1所对应链路连通,还是使节点2所对应链路连通,从而可以使双USB连接器的两个USB接口A和B供相应节点使用。如表1所示,装备模式下,两个节点对应USB连接器中的不同USB口,因此可以同时对这两个节点进行测试,减少了测试时间,降低了测试成本及运维难度。如图2所示的双节点、双USB设计,可以有效实现:同一USB设备插接于不同节点上,提高了多节点服务器的测试效率。Among them, since UPD720201 is a four-channel USB HUB chip, there are two USB signals connected to the BMC of the corresponding computing node, thereby realizing the KVM function, as shown in Figure 2. Any HD3SS3412 in Figure 2 can choose to connect the link corresponding to node 1 or connect the link corresponding to node 2, so that the two USB interfaces A and B of the dual USB connector can be used by the corresponding node. As shown in Table 1, in the equipment mode, the two nodes correspond to different USB ports in the USB connector, so the two nodes can be tested at the same time, which reduces the test time, test cost and operation and maintenance difficulty. The dual-node, dual-USB design shown in Figure 2 can effectively realize that the same USB device is plugged into different nodes, which improves the test efficiency of the multi-node server.

可见,本实施例提供的测试板卡能够同时连通同一服务器中的至少两个计算节点,因此可以同时测试同一服务器中的至少两个计算节点的USB功能,也即:单次连通并测试至少两个计算节点的USB功能,如此可节约测试时间,降低时间成本和人力成本,从而提高多节点服务器的USB功能的测试效率。其中,PCIe链路比USB链路的通信损耗小,因此该方案所提供测试板卡与同一服务器中各计算节点的PCIe接口直连,而没有直连各计算节点的USB接口,由此既能实现节点USB功能的测试,又可降低测试过程中的通信损耗,还提升了测试板卡的通用性。It can be seen that the test board provided by this embodiment can connect at least two computing nodes in the same server at the same time, so the USB functions of at least two computing nodes in the same server can be tested at the same time, that is: a single connection and test at least two The USB function of a computing node can save test time, reduce time cost and labor cost, thereby improving the test efficiency of the USB function of a multi-node server. Among them, the communication loss of the PCIe link is smaller than that of the USB link, so the test board provided by this solution is directly connected to the PCIe interface of each computing node in the same server, but not directly connected to the USB interface of each computing node. Realizing the test of the USB function of the node can reduce the communication loss in the test process and improve the versatility of the test board.

下面对本申请实施例提供的一种电子设备进行介绍,下文描述的一种电子设备与上文描述的一种节点选择方法及装置可以相互参照。An electronic device provided by an embodiment of the present application is introduced below, and the electronic device described below and the method and apparatus for selecting a node described above may refer to each other.

本申请实施例公开了一种电子设备,包括:The embodiment of this application discloses an electronic device, including:

存储器,用于保存计算机程序;memory for storing computer programs;

处理器,用于执行所述计算机程序,以实现上述任意实施例公开的方法。A processor, configured to execute the computer program, so as to implement the method disclosed in any of the above embodiments.

进一步的,本申请实施例还提供了一种服务器来作为上述电子设备。该服务器,具体可以包括:至少一个处理器、至少一个存储器、电源、通信接口、输入输出接口和通信总线。其中,所述存储器用于存储计算机程序,所述计算机程序由所述处理器加载并执行,以实现前述任一实施例公开的节点选择方法中的相关步骤。Further, the embodiment of the present application also provides a server as the above-mentioned electronic device. The server may specifically include: at least one processor, at least one memory, a power supply, a communication interface, an input and output interface, and a communication bus. Wherein, the memory is used to store a computer program, and the computer program is loaded and executed by the processor, so as to implement relevant steps in the node selection method disclosed in any of the foregoing embodiments.

本实施例中,电源用于为服务器上的各硬件设备提供工作电压;通信接口能够为服务器创建与外界设备之间的数据传输通道,其所遵循的通信协议是能够适用于本申请技术方案的任意通信协议,在此不对其进行具体限定;输入输出接口,用于获取外界输入数据或向外界输出数据,其具体的接口类型可以根据具体应用需要进行选取,在此不进行具体限定。In this embodiment, the power supply is used to provide working voltage for each hardware device on the server; the communication interface can create a data transmission channel between the server and external devices, and the communication protocol it follows is applicable to the technical solution of this application Any communication protocol is not specifically limited here; the input/output interface is used to obtain external input data or output data to the external, and its specific interface type can be selected according to specific application needs, and is not specifically limited here.

另外,存储器作为资源存储的载体,可以是只读存储器、随机存储器、磁盘或者光盘等,其上所存储的资源包括操作系统、计算机程序及数据等,存储方式可以是短暂存储或者永久存储。In addition, memory, as a resource storage carrier, can be read-only memory, random access memory, magnetic disk or optical disk, etc. The resources stored on it include operating system, computer program and data, etc., and the storage method can be temporary storage or permanent storage.

其中,操作系统用于管理与控制服务器上的各硬件设备以及计算机程序,以实现处理器对存储器中数据的运算与处理,其可以是Windows Server、Netware、Unix、Linux等。计算机程序除了包括能够用于完成前述任一实施例公开的节点选择方法的计算机程序之外,还可以进一步包括能够用于完成其他特定工作的计算机程序。数据除了可以包括虚拟机等数据外,还可以包括虚拟机的开发商信息等数据。Wherein, the operating system is used to manage and control various hardware devices and computer programs on the server, so as to realize the calculation and processing of the data in the memory by the processor, which may be Windows Server, Netware, Unix, Linux, etc. In addition to the computer program that can be used to complete the node selection method disclosed in any of the foregoing embodiments, the computer program can further include a computer program that can be used to complete other specific tasks. In addition to data such as the virtual machine, the data may also include data such as developer information of the virtual machine.

进一步的,本申请实施例还提供了一种终端来作为上述电子设备。该终端具体可以包括但不限于智能手机、平板电脑、笔记本电脑或台式电脑等。Further, the embodiment of the present application also provides a terminal as the above-mentioned electronic device. The terminal specifically may include, but is not limited to, a smart phone, a tablet computer, a notebook computer or a desktop computer, and the like.

通常,本实施例中的终端包括有:处理器和存储器。Generally, the terminal in this embodiment includes: a processor and a memory.

其中,处理器可以包括一个或多个处理核心,比如4核心处理器、8核心处理器等。处理器可以采用DSP(Digital Signal Processing,数字信号处理)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)、PLA(Programmable Logic Array,可编程逻辑阵列)中的至少一种硬件形式来实现。处理器也可以包括主处理器和协处理器,主处理器是用于对在唤醒状态下的数据进行处理的处理器,也称CPU(Central Processing Unit,中央处理器);协处理器是用于对在待机状态下的数据进行处理的低功耗处理器。在一些实施例中,处理器可以在集成有GPU(Graphics Processing Unit,图像处理器),GPU用于负责显示屏所需要显示的内容的渲染和绘制。一些实施例中,处理器还可以包括AI(ArtificialIntelligence,人工智能)处理器,该AI处理器用于处理有关机器学习的计算操作。Wherein, the processor may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor can be realized by at least one hardware form of DSP (Digital Signal Processing, digital signal processing), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array, programmable logic array) . The processor can also include a main processor and a coprocessor, the main processor is a processor for processing data in the wake-up state, also called a CPU (Central Processing Unit, central processing unit); Low-power processor for processing data in standby state. In some embodiments, the processor may be integrated with a GPU (Graphics Processing Unit, image processor), and the GPU is used for rendering and drawing content that needs to be displayed on the display screen. In some embodiments, the processor may further include an AI (Artificial Intelligence, artificial intelligence) processor, where the AI processor is configured to process computing operations related to machine learning.

存储器可以包括一个或多个计算机可读存储介质,该计算机可读存储介质可以是非暂态的。存储器还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。本实施例中,存储器至少用于存储以下计算机程序,其中,该计算机程序被处理器加载并执行之后,能够实现前述任一实施例公开的由终端侧执行的节点选择方法中的相关步骤。另外,存储器所存储的资源还可以包括操作系统和数据等,存储方式可以是短暂存储或者永久存储。其中,操作系统可以包括Windows、Unix、Linux等。数据可以包括但不限于应用程序的更新信息。The memory may include one or more computer-readable storage media, which may be non-transitory. Memory may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In this embodiment, the memory is at least used to store the following computer program, wherein, after the computer program is loaded and executed by the processor, it can implement the relevant steps in the node selection method performed by the terminal side disclosed in any of the foregoing embodiments. In addition, the resources stored in the memory may also include an operating system and data, etc., and the storage method may be temporary storage or permanent storage. Wherein, the operating system may include Windows, Unix, Linux and so on. Data may include, but is not limited to, application update information.

在一些实施例中,终端还可包括有显示屏、输入输出接口、通信接口、传感器、电源以及通信总线。In some embodiments, the terminal may further include a display screen, an input/output interface, a communication interface, a sensor, a power supply, and a communication bus.

进一步的,本申请实施例提供的服务器为多节点服务器,其中包括N个计算节点,这N个计算节点的PCIe接口连接测试板卡的N个USB HUB芯片,从而该测试板卡的USB连接器可作为N个计算节点中任意节点的外设连接器。其中,该测试板卡包括:控制电路、与控制电路连接的USB选择芯片、与USB选择芯片连接的USB连接器和N个USB HUB芯片。其中,控制电路能够向USB选择芯片发送至少两个计算节点的选择信号;相应地,USB选择芯片能够按照选择信号连通当前所选计算节点的PCIe接口至USB连接器之间的链路,以将USB连接器作为当前所选计算节点的外设连接器,也即:USB连接器可同时作为N个计算节点中至少两个计算节点的外设连接器。Further, the server provided by the embodiment of the present application is a multi-node server, which includes N computing nodes, and the PCIe interfaces of the N computing nodes are connected to N USB HUB chips of the test board, so that the USB connector of the test board It can be used as a peripheral connector for any node among N computing nodes. Wherein, the test board includes: a control circuit, a USB selection chip connected to the control circuit, a USB connector connected to the USB selection chip, and N USB HUB chips. Wherein, the control circuit can send selection signals of at least two computing nodes to the USB selection chip; correspondingly, the USB selection chip can connect the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal to The USB connector serves as the peripheral connector of the currently selected computing node, that is, the USB connector can simultaneously serve as the peripheral connector of at least two computing nodes among the N computing nodes.

在一种具体实施方式中,控制电路包括:信号输入器件;控制电路还用于:通过信号输入器件获取选择信号。In a specific implementation manner, the control circuit includes: a signal input device; the control circuit is further configured to: acquire a selection signal through the signal input device.

在一种具体实施方式中,信号输入器件为:物理按键或触摸屏。在一种示例中,用户可以通过物理按键或触摸屏选择需要测试USB功能的计算节点,此时物理按键或触摸屏获得选择信号,而控制电路将该选择信号传递给USB选择芯片,使得USB选择芯片按照此选择信号连通用户所选计算节点的PCIe接口至USB连接器之间的链路,从而将测试板卡中的USB连接器作为用户所选计算节点的外设连接器。In a specific implementation manner, the signal input device is: a physical button or a touch screen. In one example, the user can select a computing node that needs to test the USB function through a physical button or a touch screen. At this time, the physical button or the touch screen obtains a selection signal, and the control circuit transmits the selection signal to the USB selection chip, so that the USB selection chip follows the This selection signal connects the link between the PCIe interface of the computing node selected by the user and the USB connector, so that the USB connector in the test board is used as the peripheral connector of the computing node selected by the user.

在一种具体实施方式中,N个USB HUB芯片还连接N个计算节点的BMC。In a specific implementation manner, N USB HUB chips are also connected to BMCs of N computing nodes.

在一种具体实施方式中,USB连接器设有N个USB输入口和N个USB输出口。In a specific implementation manner, the USB connector is provided with N USB input ports and N USB output ports.

在一种具体实施方式中,USB选择芯片有多个。In a specific implementation manner, there are multiple USB selection chips.

在一种具体实施方式中,测试板卡还包括:多个使能开关,每个使能开关连接于控制电路和USB选择芯片之间。In a specific implementation manner, the test board further includes: a plurality of enabling switches, each enabling switch is connected between the control circuit and the USB selection chip.

在一种具体实施方式中,控制电路基于CPLD或FPGA实现。In a specific implementation manner, the control circuit is realized based on CPLD or FPGA.

在一种具体实施方式中,USB连接器的任意USB输出口连接USB设备后,当前所选计算节点对USB设备进行管理操作。如:对USB设备进行安全配置(如:设置密钥)、读取USB设备中的数据、往USB设备中写入数据等,由此可测试当前所选计算节点的USB功能。In a specific implementation manner, after any USB output port of the USB connector is connected to the USB device, the currently selected computing node performs management operations on the USB device. For example, perform security configuration on the USB device (such as setting a key), read data in the USB device, write data to the USB device, etc., so as to test the USB function of the currently selected computing node.

在一种示例中,如果N取2,那么服务器为双节点服务器。如图2所示,在双节点服务器架构内,两个节点传输PCIe Gen2 x1到测试板卡上,通过UPD720201(一种USB HUB芯片)实现PCIe转USB3.0,然后经HD3SS3412(一种USB选择芯片)选通,使得USB连接器支持两个USB3.0接口,用于连接USB设备。节点CPU与测试板卡通过通用的PCIe进行连接,便于实现:同一测试板卡对不同节点进行测试。In an example, if N is 2, then the server is a dual-node server. As shown in Figure 2, in the dual-node server architecture, the two nodes transmit PCIe Gen2 x1 to the test board, and implement PCIe to USB3.0 through UPD720201 (a USB HUB chip), and then transfer it to USB3. Chip) strobe, so that the USB connector supports two USB3.0 interfaces for connecting USB devices. The node CPU and the test board are connected through a common PCIe, which is convenient for realization: the same test board can test different nodes.

其中,由于UPD720201是四通道的USB HUB芯片,因此还有两路USB信号连接到相应计算节点的BMC上,由此可实现KVM功能,如图2所示。而图2中的任一个HD3SS3412可以选择使节点1所对应链路连通,还是使节点2所对应链路连通,从而可以使双USB连接器的两个USB接口A和B供相应节点使用。如表1所示,装备模式下,两个节点对应USB连接器中的不同USB口,因此可以同时对这两个节点进行测试,减少了测试时间,降低了测试成本及运维难度。如图2所示的双节点、双USB设计,可以有效实现:同一USB设备插接于不同节点上,提高了多节点服务器的测试效率。Among them, since UPD720201 is a four-channel USB HUB chip, there are two USB signals connected to the BMC of the corresponding computing node, thereby realizing the KVM function, as shown in Figure 2. Any HD3SS3412 in Figure 2 can choose to connect the link corresponding to node 1 or connect the link corresponding to node 2, so that the two USB interfaces A and B of the dual USB connector can be used by the corresponding node. As shown in Table 1, in the equipment mode, the two nodes correspond to different USB ports in the USB connector, so the two nodes can be tested at the same time, which reduces the test time, test cost and operation and maintenance difficulty. The dual-node, dual-USB design shown in Figure 2 can effectively realize that the same USB device is plugged into different nodes, which improves the test efficiency of the multi-node server.

下面对本申请实施例提供的一种可读存储介质进行介绍,下文描述的一种可读存储介质与上文描述的一种节点选择方法、装置及设备可以相互参照。A readable storage medium provided by an embodiment of the present application is introduced below. The readable storage medium described below and the node selection method, device, and device described above may refer to each other.

一种可读存储介质,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现前述实施例公开的节点选择方法。其中,可读存储介质可以是非暂态的。存储器还可包括高速随机存取存储器,以及非易失性存储器,比如一个或多个磁盘存储设备、闪存存储设备。A readable storage medium is used to store a computer program, wherein, when the computer program is executed by a processor, the node selection method disclosed in the foregoing embodiments is implemented. Wherein, the readable storage medium may be non-transitory. Memory may also include high-speed random access memory, and non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices.

在本实施例中,该可读存储介质可以是测试板卡中的一个存储器。该测试板卡包括:控制电路、与控制电路连接的USB选择芯片、与USB选择芯片连接的USB连接器和N个USBHUB芯片。多节点服务器中的N个计算节点的PCIe接口连接测试板卡的N个USB HUB芯片,从而该测试板卡的USB连接器可作为N个计算节点中任意节点的外设连接器。In this embodiment, the readable storage medium may be a memory in the test board. The test board includes: a control circuit, a USB selection chip connected to the control circuit, a USB connector connected to the USB selection chip, and N USBHUB chips. The PCIe interfaces of the N computing nodes in the multi-node server are connected to the N USB HUB chips of the test board, so that the USB connector of the test board can be used as a peripheral connector of any node in the N computing nodes.

具体的,控制电路能够向USB选择芯片发送至少两个计算节点的选择信号;相应地,USB选择芯片能够按照选择信号连通当前所选计算节点的PCIe接口至USB连接器之间的链路,以将USB连接器作为当前所选计算节点的外设连接器,也即:USB连接器可同时作为N个计算节点中至少两个计算节点的外设连接器。Specifically, the control circuit can send selection signals of at least two computing nodes to the USB selection chip; correspondingly, the USB selection chip can connect the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal to The USB connector is used as the peripheral connector of the currently selected computing node, that is, the USB connector can be used as the peripheral connector of at least two computing nodes among the N computing nodes at the same time.

在一种具体实施方式中,控制电路包括:信号输入器件;控制电路还用于:通过信号输入器件获取选择信号。In a specific implementation manner, the control circuit includes: a signal input device; the control circuit is further configured to: acquire a selection signal through the signal input device.

在一种具体实施方式中,信号输入器件为:物理按键或触摸屏。在一种示例中,用户可以通过物理按键或触摸屏选择需要测试USB功能的计算节点,此时物理按键或触摸屏获得选择信号,而控制电路将该选择信号传递给USB选择芯片,使得USB选择芯片按照此选择信号连通用户所选计算节点的PCIe接口至USB连接器之间的链路,从而将测试板卡中的USB连接器作为用户所选计算节点的外设连接器。In a specific implementation manner, the signal input device is: a physical button or a touch screen. In one example, the user can select a computing node that needs to test the USB function through a physical button or a touch screen. At this time, the physical button or the touch screen obtains a selection signal, and the control circuit transmits the selection signal to the USB selection chip, so that the USB selection chip follows the This selection signal connects the link between the PCIe interface of the computing node selected by the user and the USB connector, so that the USB connector in the test board is used as the peripheral connector of the computing node selected by the user.

在一种具体实施方式中,N个USB HUB芯片还连接N个计算节点的BMC。In a specific implementation manner, N USB HUB chips are also connected to BMCs of N computing nodes.

在一种具体实施方式中,USB连接器设有N个USB输入口和N个USB输出口。In a specific implementation manner, the USB connector is provided with N USB input ports and N USB output ports.

在一种具体实施方式中,USB选择芯片有多个。In a specific implementation manner, there are multiple USB selection chips.

在一种具体实施方式中,测试板卡还包括:多个使能开关,每个使能开关连接于控制电路和USB选择芯片之间。In a specific implementation manner, the test board further includes: a plurality of enabling switches, each enabling switch is connected between the control circuit and the USB selection chip.

在一种具体实施方式中,控制电路基于CPLD或FPGA实现。In a specific implementation manner, the control circuit is realized based on CPLD or FPGA.

在一种具体实施方式中,USB连接器的任意USB输出口连接USB设备后,当前所选计算节点对USB设备进行管理操作。如:对USB设备进行安全配置(如:设置密钥)、读取USB设备中的数据、往USB设备中写入数据等,由此可测试当前所选计算节点的USB功能。In a specific implementation manner, after any USB output port of the USB connector is connected to the USB device, the currently selected computing node performs management operations on the USB device. For example, perform security configuration on the USB device (such as setting a key), read data in the USB device, write data to the USB device, etc., so as to test the USB function of the currently selected computing node.

本申请涉及的“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法或设备固有的其它步骤或单元。"First", "second", "third", "fourth" and the like referred to in the present application, if any, are used to distinguish similar objects and not necessarily to describe a specific order or sequence. It is to be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments described herein can be practiced in sequences other than those illustrated or described herein. Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion, e.g. a process, method or apparatus comprising a series of steps or elements is not necessarily limited to those steps or elements explicitly listed , but may include other steps or elements not explicitly listed or inherent to the process, method or apparatus.

需要说明的是,在本申请中涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。另外,各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本申请要求的保护范围之内。It should be noted that the descriptions in this application involving "first", "second" and so on are for descriptive purposes only, and should not be understood as indicating or implying their relative importance or implicitly indicating the number of indicated technical features . Thus, the features defined as "first" and "second" may explicitly or implicitly include at least one of these features. In addition, the technical solutions of the various embodiments can be combined with each other, but it must be based on the realization of those skilled in the art. When the combination of technical solutions is contradictory or cannot be realized, it should be considered that the combination of technical solutions does not exist , nor within the scope of protection required by the present application.

本说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其它实施例的不同之处,各个实施例之间相同或相似部分互相参见即可。Each embodiment in this specification is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same or similar parts of each embodiment can be referred to each other.

结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的可读存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known readable storage medium.

本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本申请的限制。In this paper, specific examples are used to illustrate the principles and implementation methods of the application. The descriptions of the above embodiments are only used to help understand the method and core idea of the application; meanwhile, for those of ordinary skill in the art, according to the application There will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be construed as limiting the application.

Claims (10)

1.一种测试板卡,其特征在于,包括:控制电路、与所述控制电路连接的USB选择芯片、与所述USB选择芯片连接的USB连接器和N个USB HUB芯片;1. a test board, is characterized in that, comprises: control circuit, the USB selection chip that is connected with described control circuit, the USB connector that is connected with described USB selection chip and N USB HUB chips; 其中,所述N个USB HUB芯片连接N个计算节点的PCIe接口;所述N个计算节点设于同一服务器中;Wherein, the N USB HUB chips are connected to the PCIe interfaces of N computing nodes; the N computing nodes are arranged in the same server; 其中,所述控制电路用于:向所述USB选择芯片发送至少两个计算节点的选择信号;Wherein, the control circuit is configured to: send selection signals of at least two computing nodes to the USB selection chip; 相应地,所述USB选择芯片用于:按照所述选择信号连通当前所选计算节点的PCIe接口至所述USB连接器之间的链路,以将所述USB连接器作为当前所选计算节点的外设连接器。Correspondingly, the USB selection chip is used to: connect the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal, so as to use the USB connector as the currently selected computing node peripheral connectors. 2.根据权利要求1所述的测试板卡,其特征在于,2. test board according to claim 1, is characterized in that, 所述控制电路包括:信号输入器件;The control circuit includes: a signal input device; 相应地,所述控制电路还用于:通过所述信号输入器件获取所述选择信号。Correspondingly, the control circuit is further configured to: acquire the selection signal through the signal input device. 3.根据权利要求2所述的测试板卡,其特征在于,所述信号输入器件为:物理按键或触摸屏。3. The test board according to claim 2, wherein the signal input device is: a physical button or a touch screen. 4.根据权利要求1所述的测试板卡,其特征在于,所述N个USB HUB芯片还连接N个计算节点的BMC。4. The test board according to claim 1, wherein the N USB HUB chips are also connected to BMCs of N computing nodes. 5.根据权利要求1所述的测试板卡,其特征在于,所述USB连接器设有N个USB输入口和N个USB输出口。5. The test board according to claim 1, wherein the USB connector is provided with N USB input ports and N USB output ports. 6.根据权利要求1-5任意一项所述的测试板卡,其特征在于,所述USB选择芯片有多个。6. The test board according to any one of claims 1-5, wherein there are multiple USB selection chips. 7.根据权利要求6所述的测试板卡,其特征在于,所述测试板卡还包括:多个使能开关,每个使能开关连接于所述控制电路和所述USB选择芯片之间。7. The test board according to claim 6, wherein the test board further comprises: a plurality of enabling switches, each enabling switch being connected between the control circuit and the USB selection chip . 8.一种节点选择方法,其特征在于,应用于如权利要求1至7任一项所述的测试板卡,所述测试板卡包括:控制电路、与所述控制电路连接的USB选择芯片、与所述USB选择芯片连接的USB连接器和N个USB HUB芯片;所述N个USB HUB芯片连接N个计算节点的PCIe接口;所述N个计算节点设于同一服务器中;8. A node selection method, characterized in that it is applied to the test board as claimed in any one of claims 1 to 7, and the test board comprises: a control circuit, a USB selection chip connected to the control circuit , a USB connector connected to the USB selection chip and N USB HUB chips; the N USB HUB chips are connected to the PCIe interfaces of N computing nodes; the N computing nodes are located in the same server; 其中,该方法包括:Among them, the method includes: 所述控制电路向所述USB选择芯片发送至少两个计算节点的选择信号;The control circuit sends selection signals of at least two computing nodes to the USB selection chip; 所述USB选择芯片按照所述选择信号连通当前所选计算节点的PCIe接口至所述USB连接器之间的链路,以将所述USB连接器作为当前所选计算节点的外设连接器。The USB selection chip connects the link between the PCIe interface of the currently selected computing node and the USB connector according to the selection signal, so as to use the USB connector as a peripheral connector of the currently selected computing node. 9.一种电子设备,其特征在于,包括:9. An electronic device, characterized in that it comprises: 存储器,用于存储计算机程序;memory for storing computer programs; 处理器,用于执行所述计算机程序,以实现如权利要求8所述的方法。A processor configured to execute the computer program to implement the method as claimed in claim 8. 10.一种可读存储介质,其特征在于,用于保存计算机程序,其中,所述计算机程序被处理器执行时实现如权利要求8所述的方法。10. A readable storage medium, characterized by being used to store a computer program, wherein the computer program implements the method according to claim 8 when executed by a processor.
CN202211128324.4A 2022-09-16 2022-09-16 Test board, node selection method and component Pending CN115454748A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211128324.4A CN115454748A (en) 2022-09-16 2022-09-16 Test board, node selection method and component

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211128324.4A CN115454748A (en) 2022-09-16 2022-09-16 Test board, node selection method and component

Publications (1)

Publication Number Publication Date
CN115454748A true CN115454748A (en) 2022-12-09

Family

ID=84305813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211128324.4A Pending CN115454748A (en) 2022-09-16 2022-09-16 Test board, node selection method and component

Country Status (1)

Country Link
CN (1) CN115454748A (en)

Similar Documents

Publication Publication Date Title
US7895386B2 (en) USB interface provided with host/device function and its control method
US7093033B2 (en) Integrated circuit capable of communicating using different communication protocols
US20080034122A1 (en) Apparatus and Method to Detect Miscabling in a Storage Area Network
CN115562738B (en) Port configuration method, component and hard disk expansion device
CN103870429A (en) High-speed-signal processing board based on embedded GPU
CN112799985B (en) USB interface control method, USB control circuit and intelligent networking equipment mainboard
WO2024082671A1 (en) Method and apparatus for using pcie interface compatibly with yinshan card, non-volatile readable storage medium, and device
CN111417034A (en) Switch and hot plug method, device and system for switch board card thereof
CN213365381U (en) Main board
WO2024108938A1 (en) Hard drive control apparatus and method, device, nonvolatile readable storage medium, and server
CN115454748A (en) Test board, node selection method and component
CN216388068U (en) PCIE interface verification board and test system
CN114185720B (en) Method, device, equipment and storage medium for dynamic hot backup of server
CN206741445U (en) A kind of production domesticization thin client system with KVM functions
WO2023016379A1 (en) Computer system, control method based on pcie device, and related device
CN216352292U (en) Server mainboard and server
CN112069109B (en) Extension adapter plate, adapter device and adapter method
CN110955629B (en) Computing device
CN104123257A (en) Universal serial bus device, communication method, and computer-readable storage medium
CN114265731A (en) PCIE interface verification board, test system and test method
CN112000189A (en) Server mainboard based on S2500 processor
CN102568118A (en) USB (Universal Serial Bus) data download interface based on embedded POS (Point of Sales) machine
CN101201759A (en) Method and system for identifying type of vertical adapter card
CN115422110B (en) Port configuration method of electronic equipment and PCIE Switch chip
CN115834369A (en) Server network configuration method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination