Board card testing method and device and computer equipment
Through one-to-one connectors, the detection message is sent and the results are determined based on the feedback information, the problem of incomplete board testing coverage in the prior art is solved, and the accuracy and reliability of board testing is improved.
Patent Information
- Application Number
- CN202411067754.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-11-26
AI Technical Summary
The existing board test methods cannot fully cover all connectors in the board to be tested, resulting in a decrease in the accuracy of the board test results.
By connecting each first connector in the board to be tested with the second connector integrated in the board to be tested, a preset number of detection messages is sent, and the board test results are determined based on the feedback message information. Ensure comprehensive and accurate testing coverage.
It achieves comprehensive coverage of board tests and accuracy of results, and improves the reliability and stability of board tests.
Smart Images

Figure CN119024128A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of equipment testing, and in particular to a board testing method, device and computer equipment. Background Art
[0002] In order to ensure the reliability of the welding quality of each hardware device, it is generally necessary to perform board inspection on the hardware device before it leaves the factory. The existing board testing method generally selects one or more test service boards with separate interfaces to randomly connect the connectors in the board to be tested, and uses the test service board to send test messages to the board to be tested to complete the board inspection.
[0003] However, considering the resource requirements of testing service boards, the existing board connection method cannot completely cover all connectors in the board to be tested. Therefore, using the existing board testing method will reduce the accuracy of the board test results. Summary of the invention
[0004] Based on this, it is necessary to provide a board test method, device and computer equipment that can improve the board test coverage in response to the above technical problems.
[0005] In a first aspect, the present application provides a board testing method, which is applied to a test board, wherein each first connector integrated in the board to be tested is connected one-to-one with a second connector integrated in the test board, comprising:
[0006] In response to the board test instruction, sending a preset number of detection messages to the board to be tested through the second connector;
[0007] Obtaining, through the second connector, message information sent by the board to be tested based on the internal message transmission link; wherein the message information includes a feedback message for the detection message;
[0008] The board test result of the board to be tested is determined according to the detection message, the preset quantity and the message information.
[0009] In the embodiments of the present application, on the one hand, by connecting each first connector integrated in the board to be tested one-to-one with the second connector integrated in the test board, the comprehensiveness of the board test coverage can be ensured; on the other hand, the board test result of the board to be tested is determined based on the message information fed back by the board to be tested, so as to ensure the accuracy of the board test result.
[0010] In one embodiment, the test board is further integrated with a processing chip, and the number of the processing chips is determined according to the input and output performance of the front port in the board to be tested; the second connector is connected to the processing chip; in response to the board test instruction, a preset number of detection messages are sent to the board to be tested through the second connector, including:
[0011] In response to the board test instruction, the control processing chip sends a preset number of detection messages to the board to be tested through the second connector.
[0012] In the embodiment of the present application, by determining the number of processing chips based on the input and output performance of the front port, and controlling the processing chips to send detection messages to the board to be tested, the stability of the message reception and transmission of the test board can be ensured.
[0013] In one embodiment, the board test instruction includes a stability test instruction. In response to the board test instruction, a preset number of detection messages are sent to the board to be tested through the second connector, including:
[0014] In response to a board test instruction, a preset number is determined according to the input and output performance of the front port in the board to be tested; within a first set time period, a preset number of detection messages are continuously sent to the board to be tested through the second connector.
[0015] In the embodiment of the present application, the message transmission stability of the board under test is determined based on the message transmission condition of the board under test maintaining full performance receiving and sending state within a first set time period, thereby ensuring the rationality of the stability test.
[0016] In one embodiment, the board test instruction further includes a reliability test instruction, and the reliability test instruction is used to perform multiple rounds of tests on the board to be tested; sending a preset number of detection messages to the board to be tested through the second connector, including:
[0017] For each round of testing, the board to be tested is powered off, and after a second set time, the board to be tested is powered on; after the board to be tested is powered on, a preset number of detection messages are sent to the board to be tested through the second connector.
[0018] In the embodiment of the present application, the operation failure of the board to be tested is simulated by powering on and off the board to be tested to test the reliability of the operation of the board to be tested, thereby ensuring the rationality of the reliability test.
[0019] In one embodiment, determining a board test result of a board to be tested according to a detection message, a preset number and message information includes:
[0020] For each round of testing, the detection message and each feedback message in the message information are checked for content consistency, and the preset number and the message quantity of each feedback message are checked for quantity consistency; based on the content consistency check results and the quantity consistency check results, the board test results of the board to be tested under the round test are determined.
[0021] In the embodiment of the present application, by performing content consistency check and quantity consistency check on the message information, the comprehensiveness of the message information verification can be guaranteed, thereby ensuring the accuracy of the board card detection result.
[0022] In one of the embodiments, the board to be tested also integrates a switching chip connected to the first connector, and a front port connected to the switching chip; the message transmission link includes a message sending link for the first connector to send messages to the front port through the switching chip, and a message return link for the front port to send messages to the first connector through the switching chip.
[0023] In an embodiment of the present application, a message transmission link is provided, which can ensure the reliability of message transmission and the rationality of board detection.
[0024] In one embodiment, the message information further includes a message transmission record corresponding to the feedback message, and the method further includes:
[0025] When it is determined that the board to be tested is abnormal according to the board test results, an abnormal feedback message is extracted from the message information; based on the message transmission record corresponding to the abnormal feedback message, an abnormal transmission node in the message transmission link corresponding to the abnormal feedback message and an abnormal transmission form corresponding to the abnormal transmission node are determined; based on the abnormal transmission node and the abnormal transmission form, the board to be tested is corrected.
[0026] In an embodiment of the present application, by determining the abnormal transmission node and the abnormal transmission form according to the message transmission record corresponding to the abnormal feedback message, and then correcting the board to be tested based on the abnormal transmission node and the abnormal transmission form, the efficiency and accuracy of the abnormal correction can be guaranteed.
[0027] In one embodiment, the method further comprises:
[0028] After the board to be tested is corrected, a detection message is resent to the message transmission link where the abnormal transmission node is located to determine the board retest result of the board to be tested.
[0029] In the embodiment of the present application, by performing a targeted retest on the board to be tested based on the abnormal transmission node, the accuracy of the abnormality correction can be guaranteed, and the efficiency of the abnormality correction verification can be improved.
[0030] In a second aspect, the present application also provides a board test device, comprising:
[0031] A message sending module, used for sending a preset number of detection messages to the board to be tested through the second connector in response to the board test instruction;
[0032] A message acquisition module, used to acquire message information sent by the board to be tested based on the internal message transmission link through the second connector; wherein the message information includes a feedback message for the detection message;
[0033] The result determination module is used to determine the board test result of the board to be tested according to the detection message, the preset number and the message information.
[0034] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0035] In response to the board test instruction, sending a preset number of detection messages to the board to be tested through the second connector;
[0036] Obtaining, through the second connector, message information sent by the board to be tested based on the internal message transmission link; wherein the message information includes a feedback message for the detection message;
[0037] The board test result of the board to be tested is determined according to the detection message, the preset quantity and the message information.
[0038] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0039] In response to the board test instruction, sending a preset number of detection messages to the board to be tested through the second connector;
[0040] Obtaining, through the second connector, message information sent by the board to be tested based on the internal message transmission link; wherein the message information includes a feedback message for the detection message;
[0041] The board test result of the board to be tested is determined according to the detection message, the preset quantity and the message information.
[0042] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0043] In response to the board test instruction, sending a preset number of detection messages to the board to be tested through the second connector;
[0044] Obtaining, through the second connector, message information sent by the board to be tested based on the internal message transmission link; wherein the message information includes a feedback message for the detection message;
[0045] The board test result of the board to be tested is determined according to the detection message, the preset quantity and the message information.
[0046] The board test method, device and computer equipment described above, the test board responds to the board test instruction, sends a preset number of detection messages to the board to be tested through the second connector, and obtains the message information including the feedback message for the detection message sent by the board to be tested based on the internal message transmission link through the second connector, and then determines the board test result of the board to be tested according to the detection message, the preset number and the message information. Compared with the related art, in which a certain connector in the board to be tested is randomly tested, the above method is adopted, on the one hand, by connecting each first connector integrated in the board to be tested to the second connector integrated in the test board one-to-one, the comprehensiveness of the board test coverage can be guaranteed; on the other hand, the board test result of the board to be tested is determined based on the message information fed back by the board to be tested, which can ensure the accuracy of the board test result. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0048] Figure 1 An application environment diagram of a board test method in an embodiment;
[0049] Figure 2 A schematic diagram of a process flow of a board card testing method in an embodiment;
[0050] Figure 3 A schematic diagram of a test board in one embodiment;
[0051] Figure 4 A schematic diagram of a process of sending a message in an embodiment;
[0052] Figure 5 A schematic diagram of a flow chart of message sending in another embodiment;
[0053] Fig. 6A is a schematic diagram of a board to be tested in one embodiment;
[0054] Figure 6B A schematic diagram of a single-port loopback traffic receiving and sending method in one embodiment;
[0055] Figure 6C A schematic diagram of a dual-port inter-loop traffic receiving and sending method in one embodiment;
[0056] Figure 7 A schematic diagram of a process flow of exception handling in an embodiment;
[0057] Figure 8 A schematic diagram of a flow chart of a board card testing method in another embodiment;
[0058] Fig. 9 is a structural block diagram of a board test device in an embodiment;
[0059] Fig.10 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0060] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0061] The board test method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown in the figure, the test board 102 is physically connected to the board to be tested 104, and each first connector 108 integrated in the board to be tested 102 is connected one-to-one with the second connector 106 integrated in the test board 104. For example, the test board 102 responds to the board test instruction, sends a preset number of detection messages to the board to be tested 104 through the second connector 106, and obtains the message information sent by the board to be tested 104 based on the internal message transmission link through the second connector 106; and then determines the board test result of the board to be tested according to the detection message, the preset number and the message information.
[0062] In order to ensure the reliability of the welding quality of each hardware device, it is generally necessary to perform board inspection on the hardware device before it leaves the factory. The existing board testing method generally selects one or more test service boards with separate interfaces to randomly connect the connectors in the board to be tested, and uses the test service board to send test messages to the board to be tested to complete the board inspection.
[0063] However, considering the resource requirements of testing service boards, the existing board connection method cannot completely cover all connectors in the board to be tested. Therefore, using the existing board testing method will reduce the accuracy of the board test results.
[0064] Based on this, in an exemplary embodiment, Figure 2 As shown, a board test method is provided, which is applied to Figure 1 The test board in the example is used to illustrate the specific steps:
[0065] S201, in response to a board test instruction, sending a preset number of detection messages to the board to be tested through a second connector.
[0066] Among them, the board test instruction is an instruction instructing the test board to perform a test; the test board refers to a customized board with a message sending function; the second connector refers to a connector located in the test board; the board to be tested refers to a board with test requirements, such as a switching board; the detection message refers to a preset message used to test the message transmission function of the board to be tested.
[0067] Optionally, when there is a need for board testing, the first connector integrated in the board to be tested can be connected to the second connector integrated in the test board, and after the connection between the board to be tested and the board to be tested is completed, a control device can be used to send a board testing instruction to the test board.
[0068] Furthermore, after the test board receives the board test instruction, a preset number and a detection message can be extracted from the board test instruction; then, the preset number of detection messages are sent to the first connector 110 in the board to be tested through the second connector.
[0069] For example, a personal computer can be used to connect the test board and the board under test through a serial port, and then the personal computer can be used to send a board test instruction to the test board to instruct the test board to send a preset number of detection messages to the board under test through the second connector.
[0070] It is understandable that in order to ensure the comprehensiveness of the board test, each first connector in the board to be tested needs to be connected to the second connector integrated in the test board, but the second connector in the test board can be vacant, that is, when selecting the corresponding test board for the board to be tested, it is only necessary that the number of second connectors in the test board is greater than or equal to the number of first connectors in the board to be tested.
[0071] S202, obtaining, through the second connector, message information sent by the board to be tested based on the internal message transmission link.
[0072] The message transmission link refers to a link for transmitting messages in the board to be tested; the message information includes a feedback message for the detection message, and further, the feedback message refers to a message fed back by the board to be tested based on the detection message.
[0073] Optionally, after the board to be tested obtains the detection message through each first connector, each detection message can be transmitted based on the internal message transmission link; then, after the detection message completely flows through the message transmission link, the message information corresponding to the detection message can be fed back to the test board through the first connector.
[0074] Correspondingly, the test board can obtain the message information corresponding to the detection message through the second connector that is connected to the first connector.
[0075] For example, the test board sends four detection messages S to the board under test through the second connector 2; accordingly, the board under test obtains the four detection messages S in sequence through the first connector 2, and transmits the four detection messages S based on the internal message transmission link to obtain message information S' containing three feedback messages, and feeds back the message information S' to the test board through the first connector 2.
[0076] S203, determining a board test result of the board to be tested according to the detection message, the preset number and the message information.
[0077] Optionally, after the test board receives the message information fed back by a preset number of detection messages, the detection message, the preset number and the message information can be simultaneously input into a trained result determination model, and the result determination model analyzes the message information based on the detection message and the preset number, and then outputs the board test results of the board to be tested.
[0078] In the above-mentioned board test method, the test board responds to the board test instruction, sends a preset number of detection messages to the board to be tested through the second connector, and obtains the message information of the feedback message sent by the board to be tested based on the internal message transmission link, and then determines the board test result of the board to be tested according to the detection message, the preset number and the message information. Compared with the related art, in which a certain connector in the board to be tested is randomly tested, the above-mentioned method can, on the one hand, ensure the comprehensiveness of the board test coverage by connecting each first connector integrated in the board to be tested to the second connector integrated in the test board one-to-one; on the other hand, the board test result of the board to be tested is determined based on the message information fed back by the board to be tested, which can ensure the accuracy of the board test result.
[0079] In order to ensure the reliability of message sending, based on the above embodiment, Figure 3 As shown, the test board also integrates a processing chip 110, wherein the number of processing chips is determined according to the input and output performance of the front port in the board to be tested; the second connector is connected to the processing chip; further, in this embodiment, an optional method for sending a detection message is provided, specifically, in response to a board test instruction, the processing chip is controlled to send a preset number of detection messages to the board to be tested through the second connector.
[0080] Among them, the processing chip refers to a chip with a message sending function, which can be a field programmable gate array FPGA (Field Programmable Gate Array); the front port refers to the port in the board under test used to return messages; the input and output performance is used to characterize the performance of message sending and receiving.
[0081] It can be understood that in order to ensure the compatibility between the test board and the board to be tested, the input and output performance of the front port can be extracted from the configuration information of the board to be tested, and based on the input and output performance of the front port, the message sending and receiving capacity that the board to be tested can withstand is determined; then, based on the message sending and receiving capacity that the board to be tested can withstand and the message sending and receiving capacity of the processing chip, the number of processing chips in the test board is determined.
[0082] Optionally, after the test board obtains the board test instruction, the processing chip in the test board can be controlled based on the board test instruction to send a preset number of detection messages to the board to be tested through the second connector.
[0083] In the embodiment of the present application, by determining the number of processing chips based on the input and output performance of the front port, and controlling the processing chips to send detection messages to the board to be tested, the stability of the message reception and transmission of the test board can be ensured.
[0084] In order to ensure the diversity of board test types, the board test instructions may include multiple different types of test instructions. Based on the above embodiment, in this embodiment, the board test instructions include stability test instructions. Based on this, an optional method of sending a message is provided, such as Figure 4 As shown, the specific steps include:
[0085] S401, in response to a board test instruction, determining a preset number according to input and output performance of a front port in the board to be tested.
[0086] It is understandable that in order to ensure the running stability of the board to be tested, the message transmission situation of the board to be tested in a full performance running state may be tested.
[0087] Optionally, when the test board detects that the board test instructions include stability test instructions, the number of messages that the board under test can send and receive when operating at full performance can be determined based on the input and output performance of the front port in the board under test, and the number of messages that the board under test can send and receive when operating at full performance can be used as a preset number.
[0088] S402, within a first set time period, continuously sending a preset number of detection messages to the board to be tested through the second connector.
[0089] Among them, the first set time refers to the time for stability testing of the board to be tested. Furthermore, the first set time can be a preset test time, such as 10 minutes; it can also be a reasonable test time determined based on the configuration information of each unit in the board to be tested.
[0090] Optionally, after determining the preset number, the test board may continuously send a preset number of detection messages to the board under test at a preset sending frequency through the second connector within a first set time period.
[0091] Furthermore, the test board can continuously obtain message information sent by the board to be tested based on the internal message transmission link through the second connector, and determine the stability test result of the board to be tested based on the detection message, the preset number and the message information.
[0092] For example, the test board can continue to send A detection messages to the board under test within 10 minutes to enable the board under test to maintain a full-performance receiving and sending state; then, when the number of feedback messages in each stage of the message information received by the test board is A, and the message content of each feedback message is the same as the content of the test message, it is determined that the stability test of the board under test has passed.
[0093] In the embodiment of the present application, the message transmission stability of the board under test is determined based on the message transmission condition of the board under test maintaining full performance receiving and sending state within a first set time period, thereby ensuring the rationality of the stability test.
[0094] In order to ensure the diversity of board test types, based on the above embodiment, the board test instruction also includes a reliability test instruction, wherein the reliability test instruction is used to perform multiple rounds of tests on the board to be tested; in this embodiment, another optional method of sending a message is provided, such as Figure 5 As shown, the specific steps include:
[0095] S501, for each round of testing, the board to be tested is powered off, and after a second set time, the board to be tested is powered on.
[0096] The second set time duration refers to the time maintained after the power-off process. Furthermore, the first set time duration may be a preset time duration; or a time duration determined based on the time required for the board to be tested to be completely powered off.
[0097] It is understandable that in order to ensure the reliability of the operation of the board under test, the board under test can be powered on and off to simulate an operation failure of the board under test to determine whether the board under test can restore the message transmission function after the operation failure occurs.
[0098] Optionally, when the test board detects that the board test instructions include reliability test instructions, after completing the previous round of testing, the board to be tested can be controlled to be powered off and timed until the timing reaches a second set time, and then the board to be tested can be powered on.
[0099] Exemplary methods for controlling the power on and off of the board under test may be to connect the board under test to a separate power controller and control the power on and off of the switch board under test through the power controller; or, a computer restart command (reboot command) built into the test board may be used to control the power on and off of the board under test within a specific time.
[0100] S502, after the board to be tested is powered on, sending a preset number of detection messages to the board to be tested through the second connector.
[0101] Optionally, after the board under test is powered on, the test board can send a preset number of detection messages to the board under test through the second connector; then, the test board can continuously obtain the message information of each test round sent by the board under test based on the internal message transmission link through the second connector.
[0102] Further, the board test result of each test round can be determined according to the detection message, the preset number and the message information of each test round; then, the reliability test result of the board to be tested can be determined based on the board test result of each test round. For example, the reliability test result of the board to be tested can be determined according to the proportion of the number of test rounds with abnormal board results in the total test rounds in the board test results of each test round.
[0103] It is understandable that in order to improve the flexibility of reliability testing, the board to be tested can also be controlled to be powered off during the operation of the board to be tested, and the board to be tested can be powered on after a second set time period; then, after the board to be tested is powered on, a preset number of detection messages are sent to the board to be tested through the second connector to detect the reliability of the operation of the board to be tested.
[0104] In the embodiment of the present application, the operation failure of the board to be tested is simulated by powering on and off the board to be tested to test the reliability of the operation of the board to be tested, thereby ensuring the rationality of the reliability test.
[0105] In order to ensure the accuracy of the board test results, based on the above embodiments, in this embodiment, an optional method for determining the board test results is provided, specifically, for each round of testing, the detection message and each feedback message in the message information are checked for content consistency, and the preset number and the message number of each feedback message are checked for quantity consistency; based on the content consistency check results and the quantity consistency check results, the board test results of the board to be tested under the round test are determined.
[0106] Optionally, for each round of testing, after the detection board obtains the message information, each feedback message can be extracted from the message information, and the number of messages in each feedback message can be counted; then, the message content of each feedback message can be checked for consistency with the message content of the detection message in turn to obtain a content consistency verification result.
[0107] When the content consistency check result shows that the content of each feedback message is consistent with the detection message, the message quantity of each feedback message can be compared with the preset quantity. If the quantity is consistent, it is determined that the board test result of the board to be tested in this round of testing is normal; if the quantity is inconsistent, it is determined that the board test result of the board to be tested in this round of testing is abnormal.
[0108] When the content consistency check result is that the content of a certain feedback message in each feedback message is inconsistent with the detection message, it is directly determined that the board test result of the board to be tested in this round of testing is a board abnormality.
[0109] In the embodiment of the present application, by performing content consistency check and quantity consistency check on the message information, the comprehensiveness of the message information verification can be guaranteed, thereby ensuring the accuracy of the board card detection result.
[0110] Based on the above embodiment, in this embodiment, if Fig. 6A As shown, the board to be tested also integrates a switching chip connected to the first connector, and a front port connected to the switching chip; based on this, an optional message transmission link in the board to be tested is provided, specifically, the message transmission link includes a message sending link for the first connector to send messages to the front port through the switching chip, and a message return link for the front port to send messages to the first connector through the switching chip.
[0111] Among them, the switching chip is the processing chip in the board to be tested; the message sending link is used to represent the link sent from the connector to the front port; the message return link is used to represent the link sent from the front port to the connector.
[0112] It is understandable that, in order to ensure the rationality of the configuration of the board to be tested, the number of switch chips can be determined according to the input and output performance of the front port in the board to be tested.
[0113] Optionally, after the first connector receives the detection message sent by the test board, the first connector sends the detection message to a switching chip connected thereto, and the switching chip sends the detection message to a front port connected thereto.
[0114] Furthermore, the front port may feed back the detection message to each switching chip again by using a preset traffic transceiver mode, and the switching chip feeds back the detection message to the first connector to complete the flow of the detection message in the board to be tested.
[0115] The traffic receiving and sending mode of the front-end port can be determined according to the number of front-end ports. When there is only one front-end port, the single-port loopback traffic receiving and sending mode can be selected, and the front-end port can complete the self-transmission and self-reception of the detection message. Figure 6B As shown, the front port 1 includes two sub-ports 1-RX and 1-TX, and the front port 1-TX can send the detection message to the front port 1-RX.
[0116] When there are multiple front-end ports, you can select the dual-port loopback traffic receiving and sending mode, and pre-group the front-end ports in pairs. Then, a group of front-end ports can send and receive detection messages to each other. Figure 6C As shown, the front port 1 and the front port 2 are taken as a group; then, the front port 1-TX sends a detection message to the front port 2-RX, and at the same time, the front port 2-TX sends a detection message to the front port 1-RX.
[0117] For example, the connection mode inside the board to be tested is that the first connector M1-first connector M5 are all connected to the switching chip G1, and the switching chip G1 is connected to the front port R1; the first connector M6-first connector M9 are all connected to the switching chip G2, and the switching chip G2 is connected to the front port R2.
[0118] When the first connector M4 receives the detection message K1, the message transmission link corresponding to K1 is "first connector M4-switch chip G1-front port R1-switch chip G1-first connector M4"; when the first connector M8 receives the detection message K2, the message transmission link corresponding to K2 is "first connector M8-switch chip G2-front port R2-switch chip G2-first connector M8".
[0119] In the embodiment of the present application, by clearly detecting the message transmission link in the board to be tested, the reliability of message transmission can be guaranteed, while the rationality of board detection is guaranteed.
[0120] In order to be able to handle the abnormality of the board under test in a timely manner when the board under test is abnormal, based on the above embodiment, in this embodiment, the message information also includes a message transmission record corresponding to the feedback message. Based on this, an optional method for abnormality handling is provided, such as Figure 7 As shown, the specific steps include:
[0121] S701, when it is determined according to the board test result that the board to be tested is abnormal, extracting an abnormal feedback message from the message information.
[0122] The abnormal feedback message refers to a message that is inconsistent with the memory of the detection message; the message transmission record refers to a record generated when the detection message flows through the message transmission link.
[0123] It is understandable that in order to improve the accuracy of abnormality positioning, when the detection message is transmitted in the transmission link of the board to be tested, a message transmission record can be generated according to the transmission status of the detection message in each transmission unit.
[0124] For example, the message transmission record may include an input and output record M′ of the detection message flowing through the first connector in the message sending link. 发送 , the input and output records G' flowing through the switching chip 发送 and the input record R' flowing through the front port 发送 , and the output record R' flowing through the front port in the message return link 回传 , the input and output records G' flowing through the switching chip 回传 and the input and output records M' flowing through the first connector 回传 .
[0125] Optionally, when it is determined that the board to be tested is abnormal according to the board test result, a feedback message in which the message content in the message information is inconsistent with the message content of the detection message can be used as an abnormal feedback message.
[0126] S702: Determine, according to the message transmission record corresponding to the abnormal feedback message, an abnormal transmission node in the message transmission link corresponding to the abnormal feedback message, and an abnormal transmission form corresponding to the abnormal transmission node.
[0127] Among them, the abnormal transmission node refers to the node where an abnormality occurs during the transmission process; the abnormal transmission form refers to the form of abnormality occurring during the transmission process, for example, abnormal packet loss or abnormal content transmission.
[0128] Optionally, the message transmission records associated with each transmission unit can be extracted from the message transmission records corresponding to the abnormal feedback message; then, for each transmission unit, the input and output contents in the message transmission record of the transmission unit and the number of input and output messages are compared to see whether they are consistent.
[0129] If so, it is determined that the transmission unit is operating normally; if not, the transmission unit is regarded as an abnormal transmission node, and the abnormal transmission form corresponding to the abnormal transmission node is determined according to the content consistency comparison result and the quantity consistency comparison result.
[0130] S703, modifying the board to be tested according to the abnormal transmission node and the abnormal transmission form.
[0131] Optionally, the abnormal transmission node and the abnormal transmission form may be input into a trained abnormal type determination model, and the abnormal type determination model outputs the abnormal type of the board to be tested according to the abnormal transmission node, the abnormal transmission form and the model parameters.
[0132] Furthermore, based on the exception type of the board under test, the exception handling method corresponding to the exception type of the board under test can be extracted from a pre-built exception handling library containing exception handling methods corresponding to each exception type; then, the board under test is corrected using the exception handling method.
[0133] It is understandable that in order to ensure the accuracy of the abnormal correction and improve the efficiency of the abnormal correction verification, after the board to be tested is corrected, the board to be tested can be retested based on the abnormal transmission node. Exemplarily, after the board to be tested is corrected, the detection message is resent to the message transmission link where the abnormal transmission node is located to determine the board retest result of the board to be tested.
[0134] Optionally, after the board to be tested is corrected, the test board can select the message retest link that needs to be retested based on the transmission role of the abnormal transmission node in each message transmission link, and control the second connector to resend the detection message to the message retest link; then, the test board can determine the board retest result of the board to be tested based on the message information fed back by the board to be tested.
[0135] For example, the connection mode inside the board to be tested is that the first connector M1-first connector M5 are all connected to the switching chip G1, and the switching chip G1 is connected to the front port R1; the first connector M6-first connector M9 are all connected to the switching chip G2, and the switching chip G2 is connected to the front port R2. If the abnormal transmission node is the first connector M6, the message retest link is "first connector M6-switching chip G2-front port R2-switching chip G2-first connector M6".
[0136] In an embodiment of the present application, by determining the abnormal transmission node and the abnormal transmission form according to the message transmission record corresponding to the abnormal feedback message, and then correcting the board to be tested based on the abnormal transmission node and the abnormal transmission form, the efficiency and accuracy of the abnormal correction can be guaranteed.
[0137] Figure 8 FIG. 2 is a flow chart of a board card testing method in another embodiment. Based on the above embodiment, this embodiment provides an optional example of a board card testing method. Figure 8 The specific implementation process is as follows:
[0138] S801, obtaining a board test instruction.
[0139] S802, determine whether the board test instruction includes a stability test instruction, if so, execute S803; if not, execute S805.
[0140] S803, determining a preset number according to the input and output performance of the front port in the board to be tested.
[0141] S804, within the first set time period, continuously send a preset number of detection messages to the board to be tested through the second connector, and control the processing chip to send a preset number of detection messages to the board to be tested through the second connector.
[0142] S805, for each test round, the board to be tested is powered off, and the board to be tested is powered on after a second set time period, and then after the board to be tested is powered on, a preset number of detection messages are sent to the board to be tested through the second connector.
[0143] S806, obtaining, through the second connector, message information sent by the board to be tested based on the internal message transmission link.
[0144] Among them, the message information includes a feedback message for the detection message; the board to be tested also integrates a switching chip connected to the first connector, and a front port connected to the switching chip; the message transmission link includes a message sending link for the first connector to send messages to the front port through the switching chip, and a message return link for the front port to send messages to the first connector through the switching chip.
[0145] S807, performing content consistency check on the detection message and each feedback message in the message information, and performing quantity consistency check on the preset quantity and the message quantity of each feedback message.
[0146] S808, determining the board test results of the board to be tested in each round of testing according to the content consistency check result and the quantity consistency check result.
[0147] S809, when it is determined according to the board test result that the board to be tested is abnormal, extracting an abnormal feedback message from the message information.
[0148] S810, determining an abnormal transmission node in a message transmission link corresponding to the abnormal feedback message and an abnormal transmission form corresponding to the abnormal transmission node according to a message transmission record corresponding to the abnormal feedback message.
[0149] S811, modify the board to be tested according to the abnormal transmission node and the abnormal transmission form.
[0150] S812, after the board to be tested is corrected, resend the detection message to the message transmission link where the abnormal transmission node is located to determine the board retest result of the board to be tested.
[0151] The specific process of S801-S812 can refer to the description of the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0152] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0153] Based on the same inventive concept, the embodiment of the present application also provides a board test device for implementing the board test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more board test device embodiments provided below can refer to the limitations of the board test method above, and will not be repeated here.
[0154] In an exemplary embodiment, Fig. 9 As shown, a board test device 1 is provided, comprising: a message sending module 10, a message obtaining module 20 and a result determining module 30, wherein:
[0155] The message sending module 10 is used to send a preset number of detection messages to the board to be tested through the second connector in response to the board test instruction;
[0156] The message acquisition module 20 is used to acquire the message information sent by the board to be tested based on the internal message transmission link through the second connector; wherein the message information includes a feedback message for the detection message;
[0157] The result determination module 30 is used to determine the board test result of the board to be tested according to the detection message, the preset number and the message information.
[0158] In an exemplary embodiment, the test board is further integrated with a processing chip, and the number of the processing chips is determined according to the input and output performance of the front port in the board to be tested; the second connector is connected to the processing chip; further, the message sending module 10 is also used for:
[0159] In response to the board test instruction, the control processing chip sends a preset number of detection messages to the board to be tested through the second connector.
[0160] In an exemplary embodiment, the board test instruction includes a stability test instruction. Based on this, the message sending module 10 is further used to:
[0161] In response to a board test instruction, a preset number is determined according to the input and output performance of the front port in the board to be tested; within a first set time period, a preset number of detection messages are continuously sent to the board to be tested through the second connector.
[0162] In an exemplary embodiment, the board test instruction further includes a reliability test instruction, and the reliability test instruction is used to perform multiple rounds of tests on the board to be tested; based on this, the message sending module 10 is also used to:
[0163] For each round of testing, the board to be tested is powered off, and after a second set time, the board to be tested is powered on; after the board to be tested is powered on, a preset number of detection messages are sent to the board to be tested through the second connector.
[0164] In an exemplary embodiment, the result determination module 30 is specifically used to:
[0165] For each round of testing, the detection message and each feedback message in the message information are checked for content consistency, and the preset number and the message quantity of each feedback message are checked for quantity consistency; based on the content consistency check results and the quantity consistency check results, the board test results of the board to be tested under the round test are determined.
[0166] In an exemplary embodiment, the board to be tested also integrates a switching chip connected to the first connector, and a front port connected to the switching chip; the message transmission link includes a message sending link for the first connector to send messages to the front port through the switching chip, and a message return link for the front port to send messages to the first connector through the switching chip.
[0167] In an exemplary embodiment, the board test device further includes an abnormality correction module, wherein the abnormality correction module is specifically used to:
[0168] When it is determined that the board to be tested is abnormal according to the board test results, an abnormal feedback message is extracted from the message information; based on the message transmission record corresponding to the abnormal feedback message, an abnormal transmission node in the message transmission link corresponding to the abnormal feedback message and an abnormal transmission form corresponding to the abnormal transmission node are determined; based on the abnormal transmission node and the abnormal transmission form, the board to be tested is corrected.
[0169] In an exemplary embodiment, the board test device further includes a retest module, wherein the retest module is specifically used for:
[0170] After the board to be tested is corrected, a detection message is resent to the message transmission link where the abnormal transmission node is located to determine the board retest result of the board to be tested.
[0171] Each module in the above-mentioned board test device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0172] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig.10 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a board test method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0173] Those skilled in the art will understand that Fig.10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0174] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0175] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0176] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0177] It should be noted that the data involved in this application (including but not limited to message information and other data) are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0178] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0179] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0180] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A board testing method, characterized in that: Applied to a test board, each first connector integrated in the board to be tested is connected one-to-one with a second connector integrated in the test board, and the method comprises: In response to a board test instruction, sending a preset number of detection messages to the board to be tested through the second connector; Acquire, through the second connector, message information sent by the board to be tested based on an internal message transmission link; wherein the message information includes a feedback message for the detection message; A board test result of the board to be tested is determined according to the detection message, the preset number and the message information.
2. The method according to claim 1, characterized in that The test board is also integrated with a processing chip, the number of which is determined according to the input and output performance of the front port in the board to be tested; the second connector is connected to the processing chip; The step of sending a preset number of detection messages to the board to be tested through the second connector in response to the board test instruction includes: In response to a board test instruction, the processing chip is controlled to send a preset number of detection messages to the board to be tested through the second connector.
3. The method according to claim 1, characterized in that The board test instruction includes a stability test instruction, and in response to the board test instruction, sending a preset number of detection messages to the board to be tested through the second connector includes: In response to a board test instruction, determining a preset number according to input and output performance of a front port in the board to be tested; Within a first set time period, the preset number of detection messages are continuously sent to the board to be tested through the second connector.
4. The method according to claim 1, characterized in that: The board test instructions also include reliability test instructions, and the reliability test instructions are used to perform multiple rounds of tests on the board to be tested; The step of sending a preset number of detection messages to the board to be tested through the second connector includes: For each round of testing, the board to be tested is powered off, and after a second set time, the board to be tested is powered on; After the board to be tested is powered on, a preset number of detection messages are sent to the board to be tested through the second connector.
5. The method according to claim 4, characterized in that The step of determining the board test result of the board to be tested according to the detection message, the preset number and the message information includes: For each round of testing, the detection message and each feedback message in the message information are checked for content consistency, and the preset number and the message quantity of each feedback message are checked for quantity consistency; According to the content consistency check result and the quantity consistency check result, the board test result of the board to be tested in the round test is determined.
6. The method according to claim 1, characterized in that The board to be tested also integrates a switching chip connected to the first connector and a front port connected to the switching chip; The message transmission link includes a message sending link for the first connector to send messages to the front port through the switching chip, and a message return link for the front port to send messages to the first connector through the switching chip.
7. The method according to claim 6, characterized in that The message information also includes a message transmission record corresponding to the feedback message, and the method further includes: When it is determined that the board to be tested is abnormal according to the board test result, extracting an abnormal feedback message from the message information; According to the message transmission record corresponding to the abnormal feedback message, determine the abnormal transmission node in the message transmission link corresponding to the abnormal feedback message, and the abnormal transmission form corresponding to the abnormal transmission node; The board to be tested is corrected according to the abnormal transmission node and the abnormal transmission form.
8. The method according to claim 7, characterized in that The method further comprises: After the board to be tested is corrected, a detection message is resent to the message transmission link where the abnormal transmission node is located to determine a board retest result of the board to be tested.
9. A board test device, characterized in that: The device comprises: A message sending module, used for sending a preset number of detection messages to the board to be tested through the second connector in response to a board test instruction; A message acquisition module, used to acquire, through the second connector, message information sent by the board to be tested based on an internal message transmission link; wherein the message information includes a feedback message for the detection message; The result determination module is used to determine the board test result of the board to be tested according to the detection message, the preset number and the message information.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
Packet track recording method and packet track recording apparatus
CN101488921A
Link detection method and device, electronic equipment and storage medium
CN115987841A
Board card detection method and device, test equipment and storage medium
CN116244130A
Test board card, test board card tool and board card test method
CN117434421A
