Test method and device of switch board, storage medium and electronic equipment

Through the combination of test adapter board and switch board test module, multiple switch board simultaneous testing is realized, solving the problem of low test efficiency of switch board, reducing costs and improving testing efficiency.

CN118945084APending Publication Date: 2024-11-12INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411045618.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the field of server production, the testing efficiency of switching boards is low, mainly due to the frequent use of high-cost GPU boards for functional testing, and traditional methods can only test one switching board at a time, resulting in long test time and high cost.

Method used

By designing test adapter board and switch board test module, multiple switch board signals can be received at the same time and converted into different types of signals. Functional testing is performed using corresponding test components, avoiding dependence on GPU and achieving multiple signals. Simultaneous test of the swap board.

Benefits of technology

It improves the testing efficiency of the exchange board, reduces the testing cost, solves the problem of low testing efficiency, and realizes fast, cost-effective testing of multiple exchange boards.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945084A_ABST
    Figure CN118945084A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a test method and device of a switch board, a storage medium and electronic equipment, and relates to the field of computers.The test method of the switch board comprises the steps that signals of N switch boards are sent to a switch board test module through a test adapter board, the N switch boards are arranged on the test adapter board, and the test adapter board is connected with the switch board test module; n is a positive integer greater than or equal to 2; under the condition that the signal of the ith switching board is obtained through the switching board testing module, signal conversion is carried out on the signal of the ith switching board, and i is 1, 2,... N; under the condition that M types of signals are obtained after signal conversion is conducted on the signals of the i-th switch board, the j-th type of signals are tested through a test assembly of the j-th type in the M types so that function testing can be conducted on the i-th switch board, M is a positive integer larger than or equal to 2, and j is 1, 2,... M.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computers, and in particular, to a test method and device for a switch board, a storage medium, and an electronic device. Background Art

[0002] With the advancement of science and technology, various intelligent fields are also developing rapidly. At present, in the field of artificial intelligence (AI) servers, heterogeneous system architecture is gradually becoming the mainstream, which emphasizes the heterogeneous computing of the central processing unit (CPU) plus the graphics processing unit (GPU). The CPU and GPU are connected and work together through the peripheral component interconnect express (PCle) bus. The location of the CPU is called the host, and the location of the GPU is called the device. The host and device are connected through high-speed cables. There is a switch board in the device. The cable leading from the host is connected to the switch board in the device, and the switch board is connected to the GPU board through a high-density port.

[0003] In the field of server production, the switch board in each server must undergo a variety of tests and verifications before leaving the factory, including functional testing (Functiona1 Circuit Test, referred to as FCT), etc. However, in the related art, when performing functional testing on the switch board, the GPU board and GPU connected to it will be needed, but the cost of the GPU is relatively high, and the GPU and GPU board need to be frequently plugged and unplugged during the FCT test, resulting in low test efficiency. In addition, the overall time spent on the switch board test is divided into boot time and test time. In the related art, only a single card test can be performed on the switch board, that is, only one switch board to be tested can be tested at one boot, and the test efficiency is low. In summary, there is currently no effective solution to the problem of low test efficiency for testing switch boards in the related art. Summary of the invention

[0004] The embodiments of the present application provide a test method and device for a switch board, a storage medium, and an electronic device to at least solve the problem of low test efficiency for testing a switch board.

[0005] According to one embodiment of the present application, a test method for a switch board is provided, which is applied to a test fixture, wherein the test fixture comprises: a test adapter board, a switch board test module, and multiple test components, including: sending signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2; when the signal of the i-th switch board is obtained through the switch board test module, performing signal conversion on the signal of the i-th switch board, wherein i is 1, 2, ...N; when M types of signals are obtained after performing signal conversion on the signal of the i-th switch board, testing the j-th type of signal through a test component of the j-th type among the M types, so as to perform a functional test on the i-th switch board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

[0006] In an exemplary embodiment, the signal conversion of the signal of the i-th switch board includes: when P signals of the i-th switch board are obtained, the P signals are converted to obtain P converted signals, wherein the P converted signals include: peripheral component interconnect bus PCIe signal, interconnect integrated circuit I2C signal, serial bus USB signal, advanced interconnect bus HIB signal.

[0007] In an exemplary embodiment, before sending the signals of N switch boards to the switch board test module through the test adapter board, the method also includes: determining the switch board information of the i-th switch board among the N switch boards; determining whether the test fixture allows testing of the i-th switch board according to the switch board information of the i-th switch board; in the case where it is determined according to the switch board information of the i-th switch board that the test fixture does not allow testing of the i-th switch board, displaying an alarm message, wherein the alarm message is used to indicate that the test fixture cannot test the i-th switch board; and / or in the case where it is determined according to the switch board information of the i-th switch board that the test fixture allows testing of the i-th switch board. When conducting a test, a first request instruction is sent to a server according to the switch board information of the i-th switch board, and a test program of the i-th switch board sent by the server in response to the first request instruction is obtained; wherein the test program of the i-th switch board is used to indicate that the signal of the i-th switch board is sent to the switch board test module through the test adapter board, and the signal of the i-th switch board is converted through the switch board test module; when M types of signals are obtained after the signal of the i-th switch board is converted, the j-th type of signal is tested through the j-th type of test component among the M types, so as to perform a functional test on the i-th switch board.

[0008] In an exemplary embodiment, the test fixture also includes: a scanning module, and determining the switch board information of the i-th switch board among the N switch boards includes: scanning the identification code of the i-th switch board by the scanning module; and determining the switch board information of the i-th switch board according to the identification code of the i-th switch board.

[0009] In an exemplary embodiment, determining whether the test jig allows testing of the i-th switch board based on the switch board information of the i-th switch board includes: determining the hardware test environment of the i-th switch board based on the switch board information of the i-th switch board; if the test jig has the hardware test environment of the i-th switch board, determining that the test jig allows testing of the i-th switch board; and if the test jig does not have the hardware test environment of the i-th switch board, determining that the test jig does not allow testing of the i-th switch board.

[0010] In an exemplary embodiment, determining the hardware test environment of the i-th switch board based on the switch board information of the i-th switch board includes: sending a second request instruction to a server based on the switch board information of the i-th switch board; and obtaining the description information of the hardware test environment of the i-th switch board sent by the server in response to the second request instruction.

[0011] In an exemplary embodiment, the test fixture also includes: a color analyzer, and the method also includes: determining whether to detect the status light of the i-th switch board based on the switch board information of the i-th switch board; when it is determined to detect the status light of the i-th switch board, sending the status light information of the i-th switch board to the color analyzer via the test adapter board using optical fiber.

[0012] According to another embodiment of the embodiment of the present application, a test device for a switch board is also provided, which is applied to a test fixture, wherein the test fixture includes: a test adapter board, a switch board test module, and multiple test components, including: a sending module, used to send signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2; a conversion module, used to perform signal conversion on the signal of the i-th switch board when the signal of the i-th switch board is obtained through the switch board test module, wherein i is 1, 2, ...N; a test module, used to test the j-th type of signal through a test component of the j-th type among the M types when M types of signals are obtained after signal conversion of the signal of the i-th switch board, so as to perform a functional test on the i-th switch board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

[0013] According to another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when run.

[0014] According to another embodiment of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0015] According to another embodiment of the present application, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0016] In the present application, N switch boards can be mounted on a test adapter board, and then the test adapter board can be used to send the signals of the N switch boards to the switch board test module, so as to detect the N switch boards at the same time, thereby improving the test efficiency of the switch boards. In addition, the switch board test module converts the signals of the switch boards to obtain different types of signals, and then uses different types of test components to test different types of signals to implement functional testing of the switch boards, avoiding the use of GPUs to test the switch boards, improving test efficiency, saving test costs, and solving the problem of low test efficiency in testing the switch boards. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0018] Figure 1 The hardware structure frame of the server device of a switch board testing method according to the embodiment of the present application is Figure 2

[0019] Figure 2 The following is a flow chart of a test method for a switching board according to an embodiment of the present application. Figure 2

[0020] Figure 3 This is a schematic diagram of an optional switch board signal conversion according to an embodiment of the present application. Figure 2

[0021] Figure 4 This is a flow chart of an optional switch board testing method according to an embodiment of the present application. Figure 2

[0022] Figure 5 Schematic diagram of an optional switch board test fixture architecture according to an embodiment of the present application Figure 2

[0023] Figure 6 An optional switch board test tool according to an embodiment of the present application is shown in FIG. Figure 2

[0024] Figure 7 This is a schematic diagram of an optional hardware structure of a code scanning module according to an embodiment of the present application. Figure 2

[0025] Figure 8 The hardware structure of an optional color analyzer according to an embodiment of the present application is shown in FIG. Figure 2

[0026] Fig. 9 The present invention is a structural frame of a test device for a switching board according to an embodiment of the present application. Figure 2

[0027] Fig.10 It is a schematic diagram of the structure of an optional electronic device according to an embodiment of the present application. DETAILED DESCRIPTION

[0028] The embodiments of the present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0030] The test method embodiment of the switch board provided in the embodiment of the present application can be executed in a server device or a similar computing device. Taking running on a server device as an example, Figure 1 1 is a hardware structure block diagram of a server device of a switch board testing method according to an embodiment of the present application. Figure 1 As shown, the server device may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the server device may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above server device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0031] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the test method of the switch board in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the server device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] In order to solve the above problems existing in the related art, a test method for a switch board is provided in this embodiment, and its execution subject includes but is not limited to a test fixture, wherein the test fixture includes: a test adapter board, a switch board test module, and multiple test components, such as Figure 2 As shown, the process includes the following steps S202-S206:

[0034] Step S202: Sending signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2;

[0035] Optionally, Figure 5 An optional switch board test fixture architecture is illustrated, wherein the test fixture includes a test adapter board having multiple switch board slots, and N switch boards connected to the host end can be set at the same time, and the signals of the N switch boards are sent to the switch board test module, so that the N switch boards are tested at the same time, which greatly improves the test efficiency of the switch board and significantly reduces the economic cost.

[0036] In an exemplary embodiment, before the above step S202, the method further includes the following steps S11-S14:

[0037] Step S11: Determine the switch board information of the i-th switch board among the N switch boards;

[0038] In an exemplary embodiment, the test fixture further includes: a scanning module, and the above step S11 can be implemented by the following steps S111-S112:

[0039] Step S111: Scanning the identification code of the i-th switch board by the scanning module, where i is 1, 2, ..., N;

[0040] Step S112: Determine the switch board information of the i-th switch board according to the identification code of the i-th switch board.

[0041] Optionally, Figure 7 The hardware structure of a scanning module is illustrated, which is used to scan identification codes, including but not limited to: bar codes, QR codes, etc.

[0042] It should be noted that when testing N switch boards at the same time, due to the large size of the switch boards themselves, after the N switch boards are connected to the test adapter board, the identification code will be blocked between the switch boards, resulting in difficulty in scanning the code during the test. Therefore, in the embodiment of the present application, it is necessary to use the scanning module in the test fixture. Before testing the switch board, scan the identification code of the switch board first, and input the obtained identification code information into the scanning module for storage. When the test program runs to the corresponding test item, the system will send an instruction to the scanning module and call the corresponding identification code information to determine the corresponding switch board information.

[0043] It should be noted that the identification code information can be obtained by scanning the identification code of the i-th switch board through the scanning module, and the switch board information and / or the type of the switch board can be directly read through the identification code information. The switch board information is determined according to the type of the switch board through the configuration file, wherein the configuration file is stored in the central server of the system and is used to query the mapping relationship between the switch board type and the corresponding switch board information.

[0044] It should be noted that, through the above steps, the switch board information of the i-th switch board can be determined, and subsequent processes are performed according to the switch board information, which simplifies the test process of the switch board, makes the test of the switch board more accurate and convenient, and greatly improves the test efficiency of the switch board.

[0045] Step S12: determining whether the test fixture allows testing of the i-th switch board according to the switch board information of the i-th switch board;

[0046] In an exemplary embodiment, the above step S12 can be implemented by the following steps S121 to S123:

[0047] Step S121: determining a hardware test environment of the i-th switch board according to the switch board information of the i-th switch board;

[0048] In an exemplary embodiment, the above step S121 can be implemented by the following steps S1211-S1212:

[0049] Step S1211: sending a second request instruction to the server according to the switch board information of the i-th switch board;

[0050] Step S1212: Obtain description information of the hardware test environment of the i-th switch board sent by the server in response to the second request instruction.

[0051] Optionally, the description information of the hardware test environment of the i-th switch board includes but is not limited to: hardware device information (describing the model, specifications and configuration of the switch board hardware device used), connection equipment, network environment (network topology, IP address allocation, subnet division), etc.

[0052] It should be noted that, through the above steps, the description information of the hardware test environment of the i-th switch board can be accurately and quickly obtained, so that the determination of the hardware test environment of the i-th switch board is faster and more efficient, thereby improving the testing efficiency of the switch board.

[0053] Step S122: when the test fixture has a hardware test environment for the i-th switch board, determining that the test fixture allows testing of the i-th switch board;

[0054] It should be noted that the test fixture has a variety of different hardware test environments. The central server of the system stores test programs corresponding to different hardware test environments. The hardware test environment of the i-th switch board can be determined by obtaining the description information of the hardware test environment of the i-th switch board, and then compared with the various different hardware test environments in the test fixture. If the test fixture has the hardware test environment of the i-th switch board, the corresponding test program in the central server is called to test the i-th switch board.

[0055] Step S123: when the test fixture does not have the hardware test environment of the i-th switch board, determining that the test fixture does not allow the test of the i-th switch board.

[0056] It should be noted that, through the above steps, it is possible to quickly determine whether the test fixture allows the i-th switch board to be tested, thereby improving the test efficiency of the switch board.

[0057] Step S13: when it is determined according to the switch board information of the i-th switch board that the test fixture does not allow the i-th switch board to be tested, displaying an alarm message, wherein the alarm message is used to indicate that the test fixture cannot test the i-th switch board;

[0058] It should be noted that when the test fixture does not have the hardware test environment of the i-th switch board, but has the hardware test environment of other switch boards except the i-th switch board, the test fixture can still test other switch boards except the i-th switch board.

[0059] Step S14: When it is determined according to the switch board information of the i-th switch board that the test fixture allows the test of the i-th switch board, a first request instruction is sent to the server according to the switch board information of the i-th switch board, and a test program of the i-th switch board sent by the server in response to the first request instruction is obtained; wherein the test program of the i-th switch board is used to indicate that the signal of the i-th switch board is sent to the switch board test module through the test adapter board, and the signal of the i-th switch board is converted through the switch board test module; when M types of signals are obtained after the signal of the i-th switch board is converted, the j-th type of signal is tested by a test component of the j-th type among the M types, so as to perform a functional test on the i-th switch board.

[0060] Step S204: when a signal of the i-th switch board is obtained through the switch board test module, performing signal conversion on the signal of the i-th switch board, where i is 1, 2, ..., N;

[0061] In an exemplary embodiment, the above step S204 can be implemented by the following steps: when P signals of the i-th switching board are obtained, the P signals are converted to obtain P converted signals, wherein the P converted signals include: peripheral component interconnect bus PCIe signal, interconnect integrated circuit I2C signal, serial bus USB signal, advanced interconnect bus HIB signal.

[0062] Optionally, the P signals of the i-th switching board are converted. The conversion process is as follows: Figure 3 The signals of the switching board include but are not limited to: clock signal (CLK), reset / wake-up signal (RST / WAKE), sideband signal, inter-integrated circuit (12C), universal serial bus (USB), high-level interconnect bus (HIB), which are judged according to the peripheral component interconnect express (PCIe) protocol, and some of the signal combinations are converted into a group of PCIe signals. The signals that cannot be converted into PCIe signals are handed over to other corresponding modules (the corresponding modules are all located in the test fixture) for inspection.

[0063] Optionally, in one embodiment, the signals that the i-th switch board needs to detect are five I2C signals and three USB signals. After determination according to the PCIe protocol, three I2C signals and one USB signal are converted into a group of PCIe signals for subsequent detection. The remaining two I2C signals are detected by the I2C detection module, and the remaining two USB signals are detected by the USB module.

[0064] Through the above method, the switch board signal can be directly converted into M different types of signals and tested using the corresponding test components, avoiding the use of GPU to test the switch board, greatly improving the testing efficiency of the switch board, and saving costs.

[0065] Step S206: When M types of signals are obtained after signal conversion of the signal of the i-th switching board, the j-th type of signal is tested by a test component of the j-th type among the M types to perform a functional test on the i-th switching board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

[0066] Optionally, Figure 6 The diagram illustrates a switch board test tool, which exists in a switch board test module of a test fixture. The switch board test tool converts the signal to be tested on the switch board into M types of signals, wherein the M types include but are not limited to: peripheral component interconnect bus PCIe signal, interconnect integrated circuit I2C signal, serial bus USB signal, advanced interconnect bus HIB signal; furthermore, the test component (such as PCIe test card, I2C detection module, USB module, non-volatile memory extension (NVME) module) can test the corresponding type of signal after conversion, thereby performing functional testing on the corresponding switch board.

[0067] It should be noted that different switch board signals will be converted into different numbers and types of signals. Switch board 1 signals may be converted into PCIe signals, and switch board 2 signals may be converted into PCIe signals and serial bus USB signals and advanced interconnect bus HIB signals.

[0068] It should be noted that, through the above steps, the switch board signal can be directly converted into M different types of signals, and tested using the corresponding test components, avoiding the use of GPU to test the switch board, greatly improving the testing efficiency of the switch board, and saving costs.

[0069] The above steps can mount N switch boards on the test adapter board, and then use the test adapter board to send the signals of the N switch boards to the switch board test module, so as to detect the N switch boards at the same time, thereby improving the test efficiency of the switch board. In addition, the switch board test module converts the signals of the switch board to obtain different types of signals, and then uses different types of test components to test different types of signals to achieve functional testing of the switch board, avoiding the use of GPU to test the switch board, improving test efficiency, saving test costs, and solving the problem of low test efficiency of testing the switch board.

[0070] In an exemplary embodiment, the test fixture further includes: a color analyzer, and the method further includes the following steps S21-S22:

[0071] Step S21: determining whether to detect the status light of the i-th switch board according to the switch board information of the i-th switch board;

[0072] It should be noted that each of the N switch boards has a status light, and whether to detect the i-th switch board is determined according to different switch board information.

[0073] Step S22: when it is determined that the status light of the i-th switch board is detected, the status light information of the i-th switch board is sent to the color analyzer via the test adapter board using an optical fiber.

[0074] Optionally, Figure 8 A color analyzer is illustrated. During the test of the status light, multiple switch boards may block each other's status lights. Therefore, it is necessary to lay an optical fiber with an inner diameter of 1 mm in the test card module of the test fixture in advance, and lead the status light of the switch board to be tested to the color analysis through the optical fiber. The color analyzer can automatically determine the color of the status light and feed it back to the test system.

[0075] It should be noted that the detection of the switch board status light is a type of switch board function detection. The detection of the switch board may also include but is not limited to: automatic online test (In Circuit Test, abbreviated as ICT), boundary scan test (Boundary Scan Test, abbreviated as BSI), aging test (Mean Survival Time, abbreviated as MST), etc.

[0076] Obviously, the above-described embodiments are only embodiments of a part of the present invention, rather than all embodiments. In order to better understand the above method, the above process is described below in conjunction with embodiments, but it is not intended to limit the technical solutions of the embodiments of the present invention, specifically:

[0077] The present application proposes a test solution (i.e., a test method for the above-mentioned switch board) that can realize simultaneous testing of multiple switch boards (i.e., the above-mentioned switch board), using a platform test fixture (e.g., Figure 5 As shown in the figure, an optional architecture thereof is used as a carrier, combined with the Switch board test tooling, the test adapter board, the offline code scanning module (i.e., the above-mentioned code scanning module) and the color analyzer, a test solution that can test multiple Switch boards at the same time is formed. Without using the GPU and the GPU board, multiple Switch boards can be tested at one startup, and the operator does not need to operate frequently, which reduces the test time, reduces the tooling cost, greatly improves the test efficiency, and achieves cost reduction and efficiency improvement.

[0078] 1. Introduction to the multi-board test solution process;

[0079] Figure 4 The following is a flow chart of a multi-board test solution:

[0080] First, upload the test programs of different Switch boards to the central server. When testing, first turn on the test fixture. After entering the test system, the test system will first scan the test environment (such as the switch board hardware test environment mentioned above), read the board through the detection command, and determine the type of Switch board in the test environment. After that, a tooling list is generated according to the reading situation. The system compares the test program imported into the central server by the previous engineer with the generated tooling list, and runs the corresponding test program according to the comparison result. If the Switch board to be tested needs to detect the LED light (such as the status light mentioned above), the color analyzer will be connected to the subsequent test. If the card to be tested does not need to detect the LED light, no auxiliary test fixture will be involved in the subsequent test process.

[0081] 2. Introduction of Switch board test tooling;

[0082] like Figure 6 The switch board test fixture hardware shown will convert the signals to be tested on the switch board into PCIe signals and voltage signals, and test the signals transferred from the switch board through the PCIe test card and the voltage test module, so as to implement the function test of the switch board.

[0083] 3. Introduction to test adapter board;

[0084] When testing multiple switch boards, they cannot be plugged into the switch board test fixture at the same time due to the large number of interfaces. Therefore, a test adapter board needs to be designed. First, connect the switch board to be tested to the test adapter board, and then connect it to the switch board test fixture through the test adapter board.

[0085] 4. Introduction to platform-based fully automatic test fixtures;

[0086] Since the test environment is the same when testing the Switch boards of different projects, the host side, test adapter board and Switch board test tooling will be used. Therefore, a platform-based test fixture can be developed for Switch board testing. The host side fixing module, test adapter board fixing module, Switch board fixing module, heat dissipation module, power supply module, cylinder and control module in the platform-based test fixture are all the same. It is only necessary to design corresponding fixing modules for different Switch boards to achieve compatibility, truly realizing platform-based testing of Switch boards.

[0087] 5. Introduction to offline code scanning module;

[0088] When testing multiple cards on a Switch board, due to the large size of the Switch board itself, after multiple Switch boards are connected to the test adapter board, the barcode (i.e., one of the above identification codes) will be blocked between the Switch boards to be tested, making it difficult to scan the barcode during the test. Therefore, an offline barcode scanning module is required in the multi-card test solution. An optional hardware structure is as follows: Figure 7 As shown, before the test fixture is turned on, scan the barcode first, and input the barcode information into the offline scanning module for storage. When the test system runs to the corresponding test item, the test system will send instructions to the offline scanning module to call the barcode information to detect the information of the Switch board to be tested.

[0089] 6. Introduction to color analyzer;

[0090] During the test, it is also necessary to detect the status light of the Switch board. When multiple Switch boards are plugged into the test adapter board at the same time, not only the barcode will be blocked, but also the LED, making it inconvenient for the operator to observe the LED status on the Switch board to be tested. At the same time, in order to prevent missing due to human factors, a color analyzer is also required in the multi-card test solution. One optional hardware structure is as follows Figure 8 The specific implementation method is to lay out an optical fiber with an inner diameter of 1mm in advance in the card module to be tested of the test fixture, and lead the LED light of the switch board to be tested to the color analyzer through the optical fiber. The color analyzer can automatically determine the color of the status light and feed it back to the test system.

[0091] It should be noted that since this solution is combined with a fully automatic test fixture, it can be applied to a fully automatic production line to achieve unmanned testing of the Switch board.

[0092] In addition, this solution has the following advantages:

[0093] (1) The method of realizing fully automatic synchronous testing of multiple switch boards by using a platform-based fully automatic test fixture as a carrier, combined with switch board test tooling, test adapter board, offline code scanning module and color analyzer is the first in the industry;

[0094] (2) It has a wide range of applications and can be used in the testing of all switch boards in the industry to improve testing efficiency and reduce testing costs;

[0095] (3) The architecture is simple, the cost is low, and it is easy to promote and replicate;

[0096] (4) Greatly reduce economic costs. No need to use high-value real GPUs, which can reduce tooling costs. At the same time, multiple switch boards can be tested at one startup, avoiding operators from repeatedly operating test fixtures and repeatedly taking and placing boards to be tested, improving test efficiency, reducing labor costs, and reducing the number of fixtures used.

[0097] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.

[0098] In this embodiment, a test device for a switch board is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and is applied to a test fixture, wherein the test fixture includes: a test adapter board, a switch board test module, and multiple test components, which have been described and will not be repeated here. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the modules described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and conceivable.

[0099] Fig. 9 : is a structural block diagram of a test device for a switch board according to an embodiment of the present application, the device comprising:

[0100] A sending module 902, configured to send signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2;

[0101] The conversion module 904 is used for performing signal conversion on the signal of the i-th switch board when the signal of the i-th switch board is obtained through the switch board test module, where i is 1, 2, ..., N;

[0102] The test module 906 is used to test the j-th type of signal by using the j-th type of test component among the M types after converting the signal of the i-th switch board to perform a functional test on the i-th switch board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

[0103] The above device can carry N switch boards on the test adapter board, and then use the test adapter board to send the signals of the N switch boards to the switch board test module, so as to detect the N switch boards at the same time, thereby improving the test efficiency of the switch board. In addition, the switch board test module converts the signals of the switch board to obtain different types of signals, and then uses different types of test components to test different types of signals to achieve functional testing of the switch board, avoiding the use of GPU to test the switch board, improving the test efficiency, saving the test cost, and solving the problem of low test efficiency of testing the switch board.

[0104] In an exemplary embodiment, the conversion module 904 is also used to perform signal conversion on the P signals of the i-th switching board to obtain P converted signals, wherein the P converted signals include: peripheral component interconnect bus PCIe signal, interconnect integrated circuit I2C signal, serial bus USB signal, advanced interconnect bus HIB signal.

[0105] In an exemplary embodiment, the above-mentioned device also includes: a determination module, which is used to determine the switch board information of the i-th switch board among the N switch boards before sending the signals of the N switch boards to the switch board test module through the test adapter board; determine whether the test fixture allows the i-th switch board to be tested according to the switch board information of the i-th switch board; a display module, which is used to display an alarm message when it is determined according to the switch board information of the i-th switch board that the test fixture does not allow the i-th switch board to be tested, wherein the alarm message is used to indicate that the test fixture cannot test the i-th switch board; an acquisition module, which is used to determine whether the test fixture allows the i-th switch board to be tested according to the switch board information of the i-th switch board When testing the i-th switch board, a first request instruction is sent to the server according to the switch board information of the i-th switch board, and a test program of the i-th switch board sent by the server in response to the first request instruction is obtained; wherein the test program of the i-th switch board is used to indicate that the signal of the i-th switch board is sent to the switch board test module through the test adapter board, and the signal of the i-th switch board is converted through the switch board test module; when M types of signals are obtained after signal conversion of the signal of the i-th switch board, the j-th type of signal is tested by a test component of the j-th type among the M types, so as to perform a functional test on the i-th switch board.

[0106] In an exemplary embodiment, the above-mentioned device also includes: a scanning module, used to scan the identification code of the i-th switch board; and a determination module, further used to determine the switch board information of the i-th switch board according to the identification code of the i-th switch board.

[0107] In an exemplary embodiment, the determination module is further used to determine the hardware test environment of the i-th switch board based on the switch board information of the i-th switch board; when the test jig has the hardware test environment of the i-th switch board, determine that the test jig allows testing of the i-th switch board; when the test jig does not have the hardware test environment of the i-th switch board, determine that the test jig does not allow testing of the i-th switch board.

[0108] In an exemplary embodiment, the above-mentioned determination module includes: a sending unit, used to send a second request instruction to the server according to the switch board information of the i-th switch board; and an acquisition unit, used to acquire the description information of the hardware test environment of the i-th switch board sent by the server in response to the second request instruction.

[0109] In an exemplary embodiment, the determination module is also used to determine whether to detect the status light of the i-th switch board based on the switch board information of the i-th switch board; the sending module 902 is also used to send the status light information of the i-th switch board to the color analyzer through the test adapter board using optical fiber when it is determined to detect the status light of the i-th switch board.

[0110] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0111] An embodiment of the present application further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0112] Optionally, in this embodiment, the computer program may be configured to perform the following steps by means of the computer program:

[0113] S1, sending signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2;

[0114] S2, when a signal of the i-th switch board is obtained through the switch board test module, performing signal conversion on the signal of the i-th switch board, where i is 1, 2, ..., N;

[0115] S3. When M types of signals are obtained after signal conversion of the signal of the i-th switching board, the j-th type of signal is tested by a j-th type of test component among the M types to perform a functional test on the i-th switching board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

[0116] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0117] The embodiment of the present application also provides an electronic device, such as Fig.10As shown, the electronic device includes a memory 1002 and a processor 1004. The memory 1002 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments through the computer program.

[0118] Optionally, in this embodiment, the processor 1004 may be configured to perform the following steps through a computer program:

[0119] S1, sending signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2;

[0120] S2, when a signal of the i-th switch board is obtained through the switch board test module, performing signal conversion on the signal of the i-th switch board, where i is 1, 2, ..., N;

[0121] S3. When M types of signals are obtained after signal conversion of the signal of the i-th switching board, the j-th type of signal is tested by a j-th type of test component among the M types to perform a functional test on the i-th switching board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

[0122] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0123] Alternatively, a person skilled in the art may understand that: Fig.10 The structure shown is for illustration only. Fig.10 The structure of the electronic device is not limited. For example, the electronic device may also include Fig.10 More or fewer components (such as network interfaces, etc.) as shown in, or with Fig.10 Different configurations are shown.

[0124] Among them, the memory 1002 can be used to store software programs and modules, such as the program instructions / modules corresponding to the test method of the switch board and the test device of the switch board in the embodiment of the present application. The processor 1004 executes various functional applications and data processing by running the software programs and modules stored in the memory 1002, that is, realizing the above-mentioned test method of the switch board. The memory 1002 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 1002 may further include a memory remotely arranged relative to the processor 1004, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. Among them, the memory 1002 can be specifically, but not limited to, used to store information such as system configuration files. As an example, such as Fig.10 As shown, the memory 1002 may include but is not limited to the sending module 902, the conversion module 904, and the testing module 906 in the test device for the switch board. In addition, other module units in the test device for the switch board may also be included but are not limited to, which will not be described in detail in this example.

[0125] Optionally, the transmission device 1006 is used to receive or send data via a network. Specific examples of the above-mentioned network may include a wired network and a wireless network. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices and routers via a network cable so as to communicate with the Internet or a local area network. In one example, the transmission device 1006 is a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0126] In addition, the electronic device further includes: a display 1008; and a connection bus 1010, which is used to connect various module components in the electronic device.

[0127] An embodiment of the present application further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the steps in any one of the above method embodiments are implemented.

[0128] An embodiment of the present application further provides another computer program product, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in any of the above method embodiments are implemented.

[0129] The embodiments of the present application also provide a computer program, which includes computer instructions, which are stored in a computer-readable storage medium; a processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the steps in any one of the above method embodiments.

[0130] Obviously, those skilled in the art should understand that the above modules or steps of the present application can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present application is not limited to any specific combination of hardware and software.

[0131] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for testing a switch board, characterized in that: Applied to a test fixture, the test fixture includes: a test adapter board, a switch board test module, and multiple test components. include: Sending signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2; When a signal of the i-th switch board is obtained through the switch board test module, signal conversion is performed on the signal of the i-th switch board, where i is 1, 2, ..., N; When M types of signals are obtained after signal conversion of the signal of the i-th switching board, the j-th type of signal is tested by a test component of the j-th type among the M types to perform a functional test on the i-th switching board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

2. The method according to claim 1, characterized in that The performing signal conversion on the signal of the i-th switching board includes: When P signals of the i-th switching board are obtained, the P signals are converted to obtain P converted signals, wherein the P converted signals include: peripheral component interconnect bus PCIe signal, interconnect integrated circuit I2C signal, serial bus USB signal, advanced interconnect bus HIB signal.

3. The method according to claim 1, characterized in that Before sending the signals of the N switch boards to the switch board test module through the test adapter board, the method further includes: Determine the switch board information of the i-th switch board among the N switch boards; Determining whether the test fixture allows testing of the i-th switch board according to the switch board information of the i-th switch board; In a case where it is determined according to the switch board information of the i-th switch board that the test fixture does not allow the i-th switch board to be tested, displaying an alarm message, wherein the alarm message is used to indicate that the test fixture cannot test the i-th switch board; and / or When it is determined according to the switch board information of the i-th switch board that the test fixture allows the i-th switch board to be tested, a first request instruction is sent to a server according to the switch board information of the i-th switch board, and a test program of the i-th switch board sent by the server in response to the first request instruction is obtained; Among them, the test program of the i-th switch board is used to instruct that the signal of the i-th switch board is sent to the switch board test module through the test adapter board, and the signal of the i-th switch board is converted through the switch board test module; when M types of signals are obtained after the signal of the i-th switch board is converted, the j-th type of signal is tested through the j-th type of test component among the M types, so as to perform a functional test on the i-th switch board.

4. The method according to claim 3, characterized in that The test fixture further includes: a scanning module, wherein determining the switch board information of the i-th switch board among the N switch boards includes: Scanning the identification code of the i-th switch board by the scanning module; The switch board information of the i-th switch board is determined according to the identification code of the i-th switch board.

5. The method according to claim 3, characterized in that: The determining, according to the switch board information of the i-th switch board, whether the test fixture allows testing of the i-th switch board includes: Determining a hardware test environment of the i-th switch board according to the switch board information of the i-th switch board; In a case where the test fixture has a hardware test environment of the i-th switch board, determining that the test fixture allows testing of the i-th switch board; In a case where the test fixture does not have a hardware test environment for the i-th switch board, it is determined that the test fixture does not allow testing of the i-th switch board.

6. The method according to claim 5, characterized in that The determining the hardware test environment of the i-th switch board according to the switch board information of the i-th switch board includes: Sending a second request instruction to the server according to the switch board information of the i-th switch board; Obtain description information of the hardware test environment of the i-th switch board sent by the server in response to the second request instruction.

7. The method according to claim 1, characterized in that The test fixture further includes: a color analyzer, and the method further includes: Determine whether to detect the status light of the i-th switch board according to the switch board information of the i-th switch board; In the case where it is determined to detect the status light of the i-th switch board, the status light information of the i-th switch board is sent to the color analyzer via the test adapter board using an optical fiber.

8. A test device for a switch board, characterized in that: Applied to a test fixture, the test fixture includes: a test adapter board, a switch board test module, and multiple test components. include: A sending module, used for sending signals of N switch boards to the switch board test module through the test adapter board, wherein the N switch boards are arranged on the test adapter board, and N is a positive integer greater than or equal to 2; a conversion module, configured to perform signal conversion on the signal of the i-th switch board when the signal of the i-th switch board is acquired through the switch board test module, wherein i is 1, 2, ..., N; A test module is used to test the j-th type of signal by a test component of the j-th type among the M types after converting the signal of the i-th switch board, so as to perform a functional test on the i-th switch board, wherein M is a positive integer greater than or equal to 2, and j is 1, 2, ...M.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 7 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 7 are implemented.