Circuit board function testing method and system

By using the serial data message transmission system and the verification method of preset message transmission sequence in the circuit board function test system, the problem of data transmission errors in the circuit board function test is solved, and the test accuracy and product yield rate are improved.

CN115113024BActive Publication Date: 2025-04-29CERI DIGITAL TECHNOLOGY (BEIJING) CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210828355.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-13
Publication Date
2025-04-29
Estimated Expiration
2042-07-13

AI Technical Summary

Technical Problem

The existing circuit board function testing methods are susceptible to external interference and component inconsistency during data network transmission, resulting in data errors, which in turn affects the product yield rate.

Method used

By establishing a serial data message transmission system between the test tool and the computer, the message identification position, verification code position and message position in the preset message transmission sequence are used to determine the verification and verification code of the data message to ensure the integrity and accuracy of data transmission.

Benefits of technology

Effectively check whether data packets have errors during transmission, improving the accuracy of circuit board function testing and product yield.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115113024B_ABST
    Figure CN115113024B_ABST
Patent Text Reader

Abstract

The present invention discloses a circuit board function test method and system, wherein the method comprises: receiving a serial port data message sent by a computer terminal; verifying the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence; if the verification is passed, determining the first verification code information and the second verification code information of the serial port data message according to the verification code position in the preset message transmission sequence; determining the message check value of the serial port data message according to the message position in the preset message transmission sequence; verifying the message check value of the serial port data message according to the first verification code information and the second verification code information; if the verification is passed, performing a circuit board function test according to the serial port data message to obtain a test result message; and sending the test result message to the computer terminal. The present invention can perform circuit board function test, improve test accuracy and product yield, and the method is applied to test tooling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electronic product testing, and in particular to a circuit board function testing method and system. Background Art

[0002] This section is intended to provide a background or context to the embodiments of the invention recited in the claims. No description herein is admitted to be prior art by inclusion in this section.

[0003] After mass production, the circuit board needs to be electrically inspected to ensure that the circuit board is electrically connected and disconnected correctly. The usual practice is to add a confirmation signal at a specific location, and then read the signal at the corresponding inspection location to determine whether it is connected correctly. When the circuit board contains a smart chip, it is also necessary to verify whether the program of the circuit board smart chip is running correctly. The components on the circuit board will affect the logic and action of the smart chip.

[0004] The existing circuit board function test is to send a signal to the circuit board to generate a certain signal source, and then read the feedback signal at the detection position. The needle bed, test fixture and program for production testing must be customized. The test program is connected to the computer through network communication and the test results are fed back to the program. However, during the data transmission over the network, due to external interference or inconsistent components, errors may occur in the transmitted data, and the computer cannot determine whether the network data is complete and not interfered with, which leads to errors in the computer judgment and affects the product yield.

[0005] Therefore, there is an urgent need for a circuit board functional testing solution that can overcome the above problems. Summary of the invention

[0006] An embodiment of the present invention provides a circuit board function test method for performing circuit board function test to improve test accuracy and product yield. The method is applied to a test tool, comprising:

[0007] Receive serial data packets sent by the computer;

[0008] Verifying the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence;

[0009] If the check is passed, the first check code information and the second check code information of the serial port data message are determined according to the check code position in the preset message transmission order, and the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information;

[0010] Determine a message check value of the serial port data message according to the message position in the preset message transmission sequence;

[0011] Verifying the message check value of the serial port data message according to the first check code information and the second check code information;

[0012] If the verification is passed, a circuit board function test is performed according to the serial port data message to obtain a test result message;

[0013] The test result message is sent to the computer.

[0014] The embodiment of the present invention provides a test tool for performing a circuit board function test to improve the test accuracy and product yield. The test tool includes:

[0015] The message receiving module is used to receive the serial data message sent by the computer;

[0016] An identification verification module, used to verify the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence;

[0017] A check code determination module, for determining, if the check passes, first check code information and second check code information of the serial port data message according to the check code position in the preset message transmission sequence, wherein the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information;

[0018] A check value determination module, used to determine a message check value of a serial port data message according to a message position in a preset message transmission sequence;

[0019] A check value checking module, used to check the message check value of the serial port data message according to the first check code information and the second check code information;

[0020] A circuit board test module is used to perform a circuit board function test according to the serial port data message if the verification passes, and obtain a test result message;

[0021] The message sending module is used to send the test result message to the computer.

[0022] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned circuit board function testing method when executing the computer program.

[0023] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the circuit board function testing method described above is implemented.

[0024] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the circuit board function testing method described above is implemented.

[0025] The embodiment of the present invention receives a serial port data message sent by a computer terminal through a test tool; verifies the message identification information in the serial port data message according to the message identification position in a preset message transmission sequence; if the verification is passed, determines the first verification code information and the second verification code information of the serial port data message according to the verification code position in the preset message transmission sequence, and the verification code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first verification code information, and the second offset position corresponds to the second verification code information; determines the message check value of the serial port data message according to the message position in the preset message transmission sequence; verifies the message check value of the serial port data message according to the first verification code information and the second verification code information; if the verification is passed, performs a circuit board function test according to the serial port data message to obtain a test result message; and sends the test result message to the computer terminal. In the embodiment of the present invention, a message transmission sequence is preset. After receiving a serial port data message, the message identification information can be verified according to the message identification position in the preset message transmission sequence, and the first check code information and the second check code information of the serial port data message can be determined according to the check code position in the preset message transmission sequence, and the message check value of the serial port data message can be determined according to the message position in the preset message transmission sequence; and then, the message check value of the serial port data message can be verified according to the first check code information and the second check code information; through verification, it can be effectively verified whether an error occurs in the data message during the transmission process, thereby improving the test accuracy and product yield.

[0026] The embodiment of the present invention provides a circuit board function test method for performing circuit board function test to improve test accuracy and product yield. The method is applied to a computer terminal and includes:

[0027] Send serial data message to the test tooling;

[0028] Receive the test result message fed back by the test tooling;

[0029] Verifying the message identification information in the test result message according to the message identification position in the preset message transmission sequence;

[0030] If the check is passed, the first check code information and the second check code information of the test result message are determined according to the check code position in the preset message transmission order, and the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information;

[0031] Determine a message check value of the test result message according to the message position in the preset message transmission sequence;

[0032] The message check value of the test result message is checked according to the first check code information and the second check code information.

[0033] The embodiment of the present invention provides a computer terminal for performing circuit board function testing to improve test accuracy and product yield, and the computer terminal includes:

[0034] A message sending module is used to send serial port data messages to the test tooling;

[0035] A message receiving module, used for receiving the test result message fed back by the test tooling;

[0036] An identification verification module, used to verify the message identification information in the test result message according to the message identification position in the preset message transmission sequence;

[0037] A check code determination module, for determining, if the check passes, first check code information and second check code information of the test result message according to the check code position in the preset message transmission sequence, wherein the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information;

[0038] A check value determination module, used to determine a message check value of a test result message according to a message position in a preset message transmission sequence;

[0039] A check value verification module is used to verify the message check value of the test result message according to the first check code information and the second check code information.

[0040] An embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the above-mentioned circuit board function testing method when executing the computer program.

[0041] An embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the circuit board function testing method described above is implemented.

[0042] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the circuit board function testing method described above is implemented.

[0043] The embodiment of the present invention sends a serial port data message to a test tool through a computer terminal; receives a test result message fed back by the test tool; verifies the message identification information in the test result message according to the message identification position in a preset message transmission sequence; if the verification passes, determines the first check code information and the second check code information of the test result message according to the check code position in the preset message transmission sequence, the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information; determines the message check value of the test result message according to the message position in the preset message transmission sequence; verifies the message check value of the test result message according to the first check code information and the second check code information. In the embodiment of the present invention, a message transmission order is preset. After receiving the test result message, the message identification information can be verified according to the message identification position in the preset message transmission order, and the first check code information and the second check code information of the test result message can be determined according to the check code position in the preset message transmission order. The message check value of the test result message is determined according to the message position in the preset message transmission order; and then the message check value of the test result message can be verified according to the first check code information and the second check code information; through verification, it can be effectively verified whether an error occurs in the data message during the transmission process, thereby improving the test accuracy and product yield.

[0044] An embodiment of the present invention provides a circuit board function test system for performing circuit board function test to improve test accuracy and product yield. The system includes: the above-mentioned test tooling and the above-mentioned computer terminal. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the prior art descriptions. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0046] Figure 1 A schematic diagram of a circuit board function testing method according to an embodiment of the present invention;

[0047] Figure 2 A schematic diagram of another circuit board function testing method according to an embodiment of the present invention;

[0048] Figure 3 This is a flow chart of circuit board function test in a specific embodiment of the present invention;

[0049] Figure 4 This is a structural diagram of a test tool in an embodiment of the present invention;

[0050] Figure 5 This is a computer terminal structure diagram in an embodiment of the present invention;

[0051] Figure 6 This is a structural diagram of a circuit board function test system in an embodiment of the present invention;

[0052] Figure 7 It is a schematic diagram of the structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0053] To make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings. Here, the exemplary embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0054] In order to perform circuit board function test, circuit board function test, improve test accuracy and product yield, the embodiment of the present invention provides a circuit board function test method, such as Figure 1 As shown, the method is applied to a test fixture, and the method may include:

[0055] Step 101, receiving a serial data message sent by a computer;

[0056] Step 102: verify the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence;

[0057] Step 103: If the verification is passed, the first verification code information and the second verification code information of the serial port data message are determined according to the verification code position in the preset message transmission sequence, wherein the verification code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first verification code information, and the second offset position corresponds to the second verification code information;

[0058] Step 104: determining a message check value of the serial port data message according to the message position in the preset message transmission sequence;

[0059] Step 105: verify the message check value of the serial port data message according to the first check code information and the second check code information;

[0060] Step 106: If the verification is passed, a circuit board function test is performed according to the serial port data message to obtain a test result message;

[0061] Step 107: Send the test result message to the computer.

[0062] Depend on Figure 1As shown, it can be known that the embodiment of the present invention receives the serial port data message sent by the computer end through the test tool; verifies the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence; if the verification is passed, the first verification code information and the second verification code information of the serial port data message are determined according to the verification code position in the preset message transmission sequence, and the verification code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first verification code information, and the second offset position corresponds to the second verification code information; determines the message check value of the serial port data message according to the message position in the preset message transmission sequence; verifies the message check value of the serial port data message according to the first verification code information and the second verification code information; if the verification is passed, performs a circuit board function test according to the serial port data message to obtain a test result message; and sends the test result message to the computer end. In the embodiment of the present invention, a message transmission sequence is preset. After receiving a serial port data message, the message identification information can be verified according to the message identification position in the preset message transmission sequence, and the first check code information and the second check code information of the serial port data message can be determined according to the check code position in the preset message transmission sequence, and the message check value of the serial port data message can be determined according to the message position in the preset message transmission sequence; and then, the message check value of the serial port data message can be verified according to the first check code information and the second check code information; through verification, it can be effectively verified whether an error occurs in the data message during the transmission process, thereby improving the test accuracy and product yield.

[0063] In one embodiment, the message identification position includes: a third offset position and a fourth offset position;

[0064] Verifying the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence includes:

[0065] Acquire data at a third offset position from the serial port data message;

[0066] Verifying the data at the third offset position with a preset header identifier;

[0067] If the verification passes, obtaining data at the fourth offset position from the serial port data message;

[0068] The data at the fourth offset position is verified with a preset tail identifier.

[0069] In specific implementation, the preset message transmission order is: after transmitting the data header identifier 0xA5, the first segment check code 1 is sent immediately, then all data messages are transmitted, and finally the data tail identifier is sent, followed by the second segment check code 2. Therefore, after the test tool receives the serial port data message sent by the computer, it first looks for the data header identifier 0xA5, then intercepts the data according to the fixed length of 64 bytes, checks the second last byte of the data message, and determines whether it is the data tail identifier 0x5A. If both the header identifier and the tail identifier are correct, then enter the data consistency check process.

[0070] In one embodiment, the message positions in the preset message transmission sequence include: a fifth offset position to a sixth offset position;

[0071] According to the message position in the preset message transmission sequence, the message check value of the serial port data message is determined, including:

[0072] Acquire data between the fifth offset position and the sixth offset position from the serial port data message;

[0073] A hexadecimal sum calculation is performed on the data between the fifth offset position and the sixth offset position to obtain a message check value of the serial port data message.

[0074] In one embodiment, verifying a message check value of a serial port data message according to the first check code information and the second check code information includes:

[0075] Concatenate the first check code information and the second check code information to obtain a total check code;

[0076] Compare the total check code with the message check value of the serial port data message;

[0077] If the total check code is consistent with the message check value, the check is passed.

[0078] In specific implementation, the first check code information and the second check code information are data with offsets of 1 and 63 bytes. All data from offset 2 to offset 61 of the data message (data between the fifth offset position and the sixth offset position) are summed in hexadecimal to obtain the message check value, and the check value is compared with the obtained total check code. If they are equal, it means that the data message is correct and no error occurs during the transmission process; otherwise, this check is wrong and all data is discarded.

[0079] In one embodiment, if the verification is passed, a circuit board function test is performed according to the serial port data message to obtain a test result message, including:

[0080] If the verification is passed, the serial port data message is disassembled and sent to the IO circuit board, and the disassembled data includes: digital output signal, analog output signal, encoder output signal and SPI message data;

[0081] Receive test result data fed back by the IO circuit board;

[0082] A test result message is generated according to the test result data fed back by the IO circuit board, the message identification information, the first check code information and the second check code information and the preset message transmission sequence.

[0083] In order to perform circuit board function test, circuit board function test, improve test accuracy and product yield, the embodiment of the present invention provides a circuit board function test method, such as Figure 2 As shown, the method is applied to a computer, and the method may include:

[0084] Step 201, sending a serial data message to the test tool;

[0085] Step 202: Receive the test result message fed back by the test tool;

[0086] Step 203: verify the message identification information in the test result message according to the message identification position in the preset message transmission sequence;

[0087] Step 204: if the check is passed, determine the first check code information and the second check code information of the test result message according to the check code position in the preset message transmission sequence, wherein the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information;

[0088] Step 205: Determine the message check value of the test result message according to the message position in the preset message transmission sequence;

[0089] Step 206: Verify the message check value of the test result message according to the first check code information and the second check code information.

[0090] Depend on Figure 2As shown, it can be known that the embodiment of the present invention sends a serial port data message to the test tooling through the computer terminal; receives the test result message fed back by the test tooling; verifies the message identification information in the test result message according to the message identification position in the preset message transmission sequence; if the verification passes, determines the first verification code information and the second verification code information of the test result message according to the verification code position in the preset message transmission sequence, and the verification code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first verification code information, and the second offset position corresponds to the second verification code information; determines the message verification value of the test result message according to the message position in the preset message transmission sequence; verifies the message verification value of the test result message according to the first verification code information and the second verification code information. In the embodiment of the present invention, a message transmission order is preset. After receiving the test result message, the message identification information can be verified according to the message identification position in the preset message transmission order, and the first check code information and the second check code information of the test result message can be determined according to the check code position in the preset message transmission order. The message check value of the test result message is determined according to the message position in the preset message transmission order; and then the message check value of the test result message can be verified according to the first check code information and the second check code information; through verification, it can be effectively verified whether an error occurs in the data message during the transmission process, thereby improving the test accuracy and product yield.

[0091] In one embodiment, the message identification position includes: a third offset position and a fourth offset position;

[0092] Verifying the message identification information in the test result message according to the message identification position in the preset message transmission sequence includes:

[0093] Acquire data at a third offset position from the test result message;

[0094] Verifying the data at the third offset position with a preset header identifier;

[0095] If the verification passes, obtaining data at the fourth offset position from the test result message;

[0096] The data at the fourth offset position is verified with a preset tail identifier.

[0097] In one embodiment, the message positions in the preset message transmission sequence include: a fifth offset position to a sixth offset position;

[0098] According to the message position in the preset message transmission sequence, a message check value of the test result message is determined, including:

[0099] Acquire data between the fifth offset position and the sixth offset position from the test result message;

[0100] A hexadecimal sum calculation is performed on the data between the fifth offset position and the sixth offset position to obtain a message check value of the test result message.

[0101] In one embodiment, verifying a message check value of the test result message according to the first check code information and the second check code information includes:

[0102] Concatenate the first check code information and the second check code information to obtain a total check code;

[0103] Compare the total check code with the message check value of the test result message;

[0104] If the total check code is consistent with the message check value, the check is passed.

[0105] Figure 3 FIG. 1 is a flow chart of circuit board function test in a specific embodiment of the present invention. Figure 3 As shown, after the test fixture is powered on, the serial port signal, SPI signal, digital quantity, analog quantity, and encoder signal are checked and initialized, and the standby state is entered to wait for receiving external serial port data messages. The SPI is a full-duplex synchronous serial communication master station, which actively sends data signals and synchronously receives slave reply data signals. After the IO board is powered on, the SPI signal, digital quantity, analog quantity, and encoder signal are checked and initialized, and the standby state is entered to wait for receiving external SPI data messages. The SPI is a full-duplex synchronous serial communication slave station, which passively receives the master station data signal and synchronously sends the data signal. The computer and the test fixture are connected via a DB9 cable, and data is sent and received via RS232 communication. The test fixture and the IO board are connected via a DB44 cable, where the DB9 cable signal definition is shown in Table 1 and the DB44 cable signal definition is shown in Table 2.

[0106] Table 1

[0107] Serial number Pinout meaning 1 DB9-2 Serial port receiving 2 DB9-3 Serial port sending 3 DB9-5 Power Ground

[0108] Table 2

[0109]

[0110]

[0111] The computer sends a data message of a specific format to the test fixture via RS232. After receiving the serial port message, the test fixture saves it to the local memory and caches the data. After receiving the serial port data interruption, check whether the message data length is greater than 1 complete message structure length. If it is greater than 1 complete message length, check whether the cached data contains a specific message header identifier 0xA5. If it is not a message header identifier, discard the current data and check whether the next byte data is a message header. If it is a message header identifier, check whether the message tail data is equal to the specific message header identifier 0x5A according to 1 complete message structure length. If not, discard the current data and check whether the next byte data is a message header. Until the message header and message tail of the current data are equal to the specific identifier, the data message is considered correct, and valid data is ready to be received, and the next step is performed. The definition of the serial port data message is shown in Table 3.

[0112] Table 3

[0113]

[0114]

[0115] When the data message is correct, split the current message data according to the message definition. Configure the digital input and output signals, and output the digital output signals according to the message command. Output the analog output signal and the encoder signal, and the corresponding signal will be connected to the IO board through the DB44 cable as the signal source of the IO board. Then the test fixture sends the SPI data message to the IO board. After the IO board receives the SPI message, it synchronously sends the SPI data to the test fixture. Then read the digital input, analog input, and calculate the encoder through the DB44 cable. Output the digital output and analog output, and the corresponding signal will be connected to the test fixture through the DB44 cable as the signal source of the test fixture. The test fixture reads the digital input and analog input through the DB44 cable. Then splice the digital input, analog input, and SPI slave reply message, and send it to the computer through the DB9 serial port data. After receiving the serial port data replied by the test fixture, the computer checks the message header, message tail, and message length. If the message verification passes, the data comparison verification is performed. If it passes, this test passes. If the data comparison check fails, the serial port data will be retransmitted. If the data check error exceeds 10 times, the test fails.

[0116] In the specific implementation, in order to ensure the correctness of the received data, the check code is stored and transmitted in two sections. After the data header identifier 0xA5 is transmitted, the first section check code 1 is sent immediately, then all data messages are transmitted, and finally the data tail identifier is sent, followed by the second section check code 2. After receiving the data message, the data message receiver first looks for the data header identifier 0xA5, then intercepts the data according to the fixed length of 64 bytes, checks the second last byte of the data message, and determines whether it is the data tail identifier 0x5A. If both the header identifier and the tail identifier are correct, then the data consistency check process is entered. The data with offset 1 and offset 63 bytes is the check value 1 of this message data. All data from offset 2 to offset 61 of the data message are summed in hexadecimal as the data check value of this data message, and the check value is compared with the read message data check value 1. If they are equal, it means that the data message is correct and no error occurs during the transmission process; otherwise, this check is wrong and all data is discarded.

[0117] A specific embodiment is given below to illustrate the specific application of the circuit board function test in the embodiment of the present invention. In this specific embodiment, the circuit board function test is performed according to the following steps:

[0118] Step 1: Prepare the computer, test fixture and circuit board to be tested, connect DB9 and DB44 cables, and make sure all devices are powered, and enter the test preparation process.

[0119] Step 2: The computer sends a serial port data message to the test fixture. The serial port data message is as follows: A5 1E 00 00FF0000F5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 5A27.

[0120] Step 3: The test tool enters the standby state and waits to receive the serial port data message;

[0121] Step 4: After receiving the above message, the test tool first checks whether the data at offset 0 is 0xA5. If the check is correct, go to step 5; otherwise, return to step 3;

[0122] Step 5: Test whether the data of the tooling detection offset 33 is 0x5A. If the detection is correct, go to step 6; otherwise, return to step 3;

[0123] Step 6: Perform hexadecimal sum calculation on the data of offset 2 to 61, and the sum result is 0x1E27; compare the result with the data of offset 1 and offset 63. If the detection is correct, go to step 7; otherwise, return to step 3;

[0124] Step 7: Continue to perform data splitting, configure the test fixture according to the digital input and output, output digital output, analog output and encoder signal, and send SPI data message. Then receive SPI data message, read digital input and analog input signals, splice the data, and send it to the computer through the serial port.

[0125] Based on the same inventive concept, the embodiment of the present invention also provides a test fixture, as described in the following embodiments. Since the principles of solving these problems are similar to the circuit board function test method, the implementation of the test fixture can refer to the implementation of the method, and the repeated parts will not be repeated.

[0126] Figure 4 : is a structural diagram of a test tool in an embodiment of the present invention, such as Figure 4 As shown, the test fixture includes:

[0127] The message receiving module 401 is used to receive the serial port data message sent by the computer;

[0128] The identification verification module 402 is used to verify the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence;

[0129] The check code determination module 403 is used to determine the first check code information and the second check code information of the serial port data message according to the check code position in the preset message transmission sequence if the check passes, and the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information;

[0130] A check value determination module 404, configured to determine a message check value of a serial port data message according to a message position in a preset message transmission sequence;

[0131] A check value checking module 405, configured to check a message check value of the serial port data message according to the first check code information and the second check code information;

[0132] The circuit board test module 406 is used to perform a circuit board function test according to the serial port data message if the verification passes, and obtain a test result message;

[0133] The message sending module 407 is used to send the test result message to the computer.

[0134] Based on the same inventive concept, the embodiment of the present invention also provides a computer terminal, as described in the following embodiments. Since the principles of solving these problems are similar to the circuit board function test method, the implementation of the computer terminal can refer to the implementation of the method, and the repeated parts will not be repeated.

[0135] Figure 5 : is a structural diagram of the computer terminal in an embodiment of the present invention, such as Figure 5 As shown, the computer terminal includes:

[0136] The message sending module 501 is used to send serial port data messages to the test tooling;

[0137] The message receiving module 502 is used to receive the test result message fed back by the test tool;

[0138] The identification verification module 503 is used to verify the message identification information in the test result message according to the message identification position in the preset message transmission sequence;

[0139] The check code determination module 504 is used to determine the first check code information and the second check code information of the test result message according to the check code position in the preset message transmission sequence if the check passes, wherein the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information and the second offset position corresponds to the second check code information;

[0140] A check value determination module 505, configured to determine a message check value of a test result message according to a message position in a preset message transmission sequence;

[0141] The check value checking module 506 is used to check the message check value of the test result message according to the first check code information and the second check code information.

[0142] Based on the same inventive concept, the embodiment of the present invention also provides a circuit board function test system, as described in the following embodiments. Since the principles of solving these problems are similar to the circuit board function test method, the implementation of the circuit board function test system can refer to the implementation of the method, and the repeated parts will not be repeated.

[0143] Figure 6 FIG. 1 is a structural diagram of a circuit board function test system according to an embodiment of the present invention. Figure 6 As shown, the circuit board function test system includes: the above-mentioned test tooling and the above-mentioned computer terminal.

[0144] Based on the above invention concept, Figure 7As shown, an embodiment of the present invention further provides a computer device 700, including a memory 710, a processor 720, and a computer program 730 stored in the memory 710 and executable on the processor 720, wherein the processor 720 implements the above-mentioned circuit board function testing method when executing the computer program 730.

[0145] Based on the aforementioned inventive concept, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned circuit board function testing method is implemented.

[0146] An embodiment of the present invention further provides a computer program product, which includes a computer program. When the computer program is executed by a processor, the circuit board function testing method described above is implemented.

[0147] The embodiment of the present invention receives a serial port data message sent by a computer terminal through a test tool; verifies the message identification information in the serial port data message according to the message identification position in a preset message transmission sequence; if the verification is passed, determines the first verification code information and the second verification code information of the serial port data message according to the verification code position in the preset message transmission sequence, and the verification code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first verification code information, and the second offset position corresponds to the second verification code information; determines the message check value of the serial port data message according to the message position in the preset message transmission sequence; verifies the message check value of the serial port data message according to the first verification code information and the second verification code information; if the verification is passed, performs a circuit board function test according to the serial port data message to obtain a test result message; and sends the test result message to the computer terminal. In the embodiment of the present invention, a message transmission sequence is preset. After receiving a serial port data message, the message identification information can be verified according to the message identification position in the preset message transmission sequence, and the first check code information and the second check code information of the serial port data message can be determined according to the check code position in the preset message transmission sequence, and the message check value of the serial port data message can be determined according to the message position in the preset message transmission sequence; and then, the message check value of the serial port data message can be verified according to the first check code information and the second check code information; through verification, it can be effectively verified whether an error occurs in the data message during the transmission process, thereby improving the test accuracy and product yield.

[0148] The embodiment of the present invention sends a serial port data message to a test tool through a computer terminal; receives a test result message fed back by the test tool; verifies the message identification information in the test result message according to the message identification position in a preset message transmission sequence; if the verification passes, determines the first check code information and the second check code information of the test result message according to the check code position in the preset message transmission sequence, the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information; determines the message check value of the test result message according to the message position in the preset message transmission sequence; verifies the message check value of the test result message according to the first check code information and the second check code information. In the embodiment of the present invention, a message transmission order is preset. After receiving the test result message, the message identification information can be verified according to the message identification position in the preset message transmission order, and the first check code information and the second check code information of the test result message can be determined according to the check code position in the preset message transmission order. The message check value of the test result message is determined according to the message position in the preset message transmission order; and then the message check value of the test result message can be verified according to the first check code information and the second check code information; through verification, it can be effectively verified whether an error occurs in the data message during the transmission process, thereby improving the test accuracy and product yield.

[0149] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0150] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0151] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0153] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A circuit board function testing method, characterized in that: Applied to a test fixture, the method comprises: Receive serial data packets sent by the computer; Verifying the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence; If the check is passed, the first check code information and the second check code information of the serial port data message are determined according to the check code position in the preset message transmission order, and the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information; Determine a message check value of the serial port data message according to the message position in the preset message transmission sequence; Verifying the message check value of the serial port data message according to the first check code information and the second check code information; If the verification is passed, a circuit board function test is performed according to the serial port data message to obtain a test result message; Sending the test result message to the computer; Among them, according to the first check code information and the second check code information, the message check value of the serial port data message is checked, including: splicing the first check code information and the second check code information to obtain a total check code; comparing the total check code with the message check value of the serial port data message; if the total check code is consistent with the message check value, the check passes.

2. The circuit board function testing method according to claim 1, characterized in that: The message identification position includes: a third offset position and a fourth offset position; Verifying the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence includes: Acquire data at a third offset position from the serial port data message; Verifying the data at the third offset position with a preset header identifier; If the verification passes, obtaining data at the fourth offset position from the serial port data message; The data at the fourth offset position is verified with a preset tail identifier.

3. The circuit board function testing method according to claim 1, characterized in that: The message positions in the preset message transmission sequence include: the fifth offset position to the sixth offset position; According to the message position in the preset message transmission sequence, the message check value of the serial port data message is determined, including: Acquire data between the fifth offset position and the sixth offset position from the serial port data message; A hexadecimal sum calculation is performed on the data between the fifth offset position and the sixth offset position to obtain a message check value of the serial port data message.

4. The circuit board function testing method according to claim 1, characterized in that: If the verification is passed, the circuit board function test is performed according to the serial port data message to obtain a test result message, including: If the verification is passed, the serial port data message is disassembled and sent to the IO circuit board, and the disassembled data includes: digital output signal, analog output signal, encoder output signal and SPI message data; Receive test result data fed back by the IO circuit board; A test result message is generated according to the test result data fed back by the IO circuit board, the message identification information, the first check code information and the second check code information and the preset message transmission sequence.

5. A circuit board function testing method, characterized in that: Applied to a computer, the method includes: Send serial data message to the test tooling; Receive the test result message fed back by the test tooling; Verifying the message identification information in the test result message according to the message identification position in the preset message transmission sequence; If the check is passed, the first check code information and the second check code information of the test result message are determined according to the check code position in the preset message transmission order, and the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information; Determine a message check value of the test result message according to the message position in the preset message transmission sequence; Verifying the message check value of the test result message according to the first check code information and the second check code information; Among them, according to the first verification code information and the second verification code information, the message check value of the test result message is verified, including: splicing the first verification code information and the second verification code information to obtain a total verification code; comparing the total verification code with the message check value of the test result message; if the total verification code is consistent with the message verification value, the verification passes.

6. The circuit board function testing method according to claim 5, characterized in that: The message identification position includes: a third offset position and a fourth offset position; Verifying the message identification information in the test result message according to the message identification position in the preset message transmission sequence includes: Acquire data at a third offset position from the test result message; Verifying the data at the third offset position with a preset header identifier; If the verification passes, obtaining data at the fourth offset position from the test result message; The data at the fourth offset position is verified with a preset tail identifier.

7. The circuit board function testing method according to claim 5, characterized in that: The message positions in the preset message transmission sequence include: the fifth offset position to the sixth offset position; According to the message position in the preset message transmission sequence, a message check value of the test result message is determined, including: Acquire data between the fifth offset position and the sixth offset position from the test result message; A hexadecimal sum calculation is performed on the data between the fifth offset position and the sixth offset position to obtain a message check value of the test result message.

8. A test tool, characterized in that: include: The message receiving module is used to receive the serial data message sent by the computer; An identification verification module, used to verify the message identification information in the serial port data message according to the message identification position in the preset message transmission sequence; A check code determination module, for determining, if the check passes, first check code information and second check code information of the serial port data message according to the check code position in the preset message transmission sequence, wherein the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information; A check value determination module, used to determine a message check value of a serial port data message according to a message position in a preset message transmission sequence; A check value checking module, used to check the message check value of the serial port data message according to the first check code information and the second check code information; A circuit board test module, for performing a circuit board function test according to the serial port data message to obtain a test result message if the verification is passed; wherein, according to the first check code information and the second check code information, the message check value of the serial port data message is checked, including: splicing the first check code information and the second check code information to obtain a total check code; comparing the total check code with the message check value of the serial port data message; if the total check code is consistent with the message check value, the verification is passed; The message sending module is used to send the test result message to the computer.

9. A computer terminal, characterized in that: include: A message sending module is used to send serial port data messages to the test tooling; A message receiving module, used for receiving the test result message fed back by the test tooling; An identification verification module, used to verify the message identification information in the test result message according to the message identification position in the preset message transmission sequence; A check code determination module, for determining, if the check passes, first check code information and second check code information of the test result message according to the check code position in the preset message transmission sequence, wherein the check code position includes: a first offset position and a second offset position, wherein the first offset position corresponds to the first check code information, and the second offset position corresponds to the second check code information; A check value determination module, used to determine a message check value of a test result message according to a message position in a preset message transmission sequence; A check value verification module is used to verify the message check value of the test result message according to the first check code information and the second check code information; wherein, the message check value of the test result message is verified according to the first check code information and the second check code information, including: splicing the first check code information and the second check code information to obtain a total check code; comparing the total check code with the message check value of the test result message; if the total check code is consistent with the message check value, the verification is passed.

10. A circuit board function test system, characterized in that: include: A test tool and a computer terminal, wherein the test tool comprises the test tool described in claim 8, and the computer terminal comprises the computer terminal described in claim 9.

11. A computer 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 method according to any one of claims 1 to 7 is implemented.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

13. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Configurable communication protocol identifying and parsing system

    CN104780140A

  • Method and apparatus for verifying test information on a backplane test bus

    US5659552A