A PCB automatic test and data analysis system
By working together with the hardware testing module, software test process control module, and data analysis module, the problems of low automation, easy data tampering, and difficulty in fault location in PCB board testing systems have been solved. This has enabled efficient and flexible testing processes and accurate fault location, improving testing efficiency and data traceability.
Patent Information
- Application Number
- CN202611397123.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-09
- Publication Date
- 2026-11-20
AI Technical Summary
Existing PCB board testing systems suffer from low automation, rigid testing processes, data susceptibility to tampering, and difficulty in fault location. They are ill-suited to meet the testing efficiency and consistency requirements of large-scale production and lack data traceability and support for process improvement.
By employing the collaborative work of hardware detection modules, software test process control modules, and data analysis modules, the entire PCB board testing process is automated. Test data is bound through a serial number management unit, and flexible configuration of the test process is achieved through permission management and configuration files. It supports various judgment rules and real-time traceability analysis of data.
It significantly improves testing efficiency and consistency, reduces labor costs, ensures data integrity and authenticity, enhances the system's scalability and adaptability, and provides accurate fault location and quality traceability analysis capabilities.
Smart Images

Figure CN123136348A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of PCB board testing technology, specifically relating to an automated PCB board testing and data analysis system. Background Technology
[0002] As an important component of modern electronic products, the manufacturing quality of PCB boards directly affects the performance and reliability of the products. In the PCB board production process, conducting software and hardware functional tests on the PCB boards is a key step in ensuring product quality.
[0003] Currently, existing PCB board testing systems mainly rely on manual operation. Testers manually connect the testing equipment, perform each test item one by one, and manually record the test results. This testing method has the following technical drawbacks:
[0004] First, the level of automation is low. Traditional testing systems rely heavily on manual operation, resulting in low testing efficiency and easy errors due to human mistakes. This makes it difficult to meet the requirements of large-scale production for testing efficiency and consistency.
[0005] Second, data management is inadequate. Existing systems typically only record whether test results are qualified or not, lacking the ability to fully record and deeply analyze test process data. Test data is easily modified at will, failing to provide effective data support for production process improvement.
[0006] Third, fault location is difficult. When a certain test of the PCB board fails, the existing system lacks accurate fault diagnosis capabilities and maintenance guidance functions. Maintenance personnel need to spend a lot of time checking possible causes of the fault one by one, resulting in low maintenance efficiency.
[0007] Fourth, poor traceability. Existing testing systems lack a sound traceability mechanism, making it difficult to trace the complete testing history of a single PCB board, which is not conducive to the source analysis of quality problems and process improvement.
[0008] Fifth, the system has poor scalability. The testing process of the existing testing system is usually fixed. When it is necessary to test different models of PCB boards, it is often necessary to redevelop or significantly modify the testing software, resulting in high system upgrade and maintenance costs.
[0009] In view of the shortcomings of the existing technology, there is an urgent need to provide a PCB board testing system that can achieve automated testing, flexible configuration of the testing process, complete and traceable data, and data analysis capabilities. Summary of the Invention
[0010] (a) Technical problems to be solved
[0011] To address the shortcomings of existing technologies, this invention achieves full automation of PCB board testing through the collaborative work of a hardware detection module, a software test process control module, and a data analysis module. This significantly improves testing efficiency and consistency while reducing labor costs.
[0012] (II) Technical Solution
[0013] To achieve the above objectives, the present invention provides the following technical solution:
[0014] This invention provides an automated testing and data analysis system for PCB boards, comprising:
[0015] The hardware testing module is used to perform physical signal acquisition and functional testing of the PCB board;
[0016] The software testing process control module is communicatively connected to the hardware detection module and is used to control the testing process, manage test data, determine test results, and configure test parameters.
[0017] The data analysis module is communicatively connected to the software testing process control module and is used to store test data and perform statistical analysis and quality reports.
[0018] The software testing process control module includes a serial number management unit, a testing process engine, a result determination unit, and an access control unit. The serial number management unit is used to verify the identity of the PCB board before the test begins and to bind and store the test data with the PCB board's identity information after the test. The testing process engine is used to configure multiple test items into a test task model with an execution order association and to control the execution of the testing process according to the test task model. The result determination unit is used to determine the pass / fail status of the test results according to preset determination rules. The access control unit is used to manage the operation permissions of operators in a hierarchical manner.
[0019] As a preferred embodiment, the hardware detection module includes a signal interaction unit and a mechanical device unit. The signal interaction unit is used to realize signal transmission between the PCB board and external devices, and the mechanical device unit is used to realize the physical positioning and signal contact of the PCB board.
[0020] As a preferred embodiment, the signal interaction unit includes a barcode scanning device, a serial communication device, a digital input / output device, an analog signal acquisition device, and a network communication device.
[0021] The barcode scanning device is used to obtain the identification information of the PCB board, the serial communication device is used to test the serial communication function of the PCB board, the analog signal acquisition device is used to acquire the analog signals of the PCB board, the digital input / output device is used to control the power supply status and digital signal input / output of the PCB board, and the network communication device is used to realize Ethernet communication.
[0022] As a preferred embodiment, the mechanical device unit includes a precision fixture and a spring probe. The precision fixture is used to position and fix the PCB board, and the spring probe is used to form electrical contact with the test points on the PCB board.
[0023] As a preferred embodiment, the test process engine uses a configuration file to configure the test logic. The configuration file is used to define the test parameters, execution order and dependencies of the test items. After parsing the configuration file, the test process engine executes the test process according to the dependencies between the test items. The failure of a single test item does not affect the execution of other test items.
[0024] As a preferred embodiment, the test task model is a tree structure, where the root node corresponds to the major test item and the child nodes correspond to the minor test items. The test results of the minor test items are summarized to determine the test results of the corresponding major test item.
[0025] As a preferred embodiment, the preset judgment rules supported by the result judgment unit include numerical range judgment rules and logical combination judgment rules. The numerical range judgment rules are used to determine whether the test value is within a preset numerical range, and the logical combination judgment rules are used to perform logical operations on multiple judgment conditions to obtain a comprehensive judgment result.
[0026] As a preferred embodiment, the permission management unit sets operator permissions and administrator permissions. The operator permissions are used to start tests, modify test parameters, and view test results, while the administrator permissions are used to view all test records, export test records, assign operator permissions, and perform system configuration.
[0027] As a preferred embodiment, the data analysis module includes a real-time status information unit, a traceability analysis unit, and a data interface unit. The real-time status information unit is used to display the real-time status information of the current test. The traceability analysis unit is used to query the complete test record of the PCB board based on the PCB board identity information and display fault information when the test fails. The data interface unit is used to export test data and provide a data interaction interface to external systems.
[0028] As a preferred embodiment, the data analysis module includes a relational database and a time-series database. The relational database is used to store summary test data, and the time-series database is used to store detailed time-series data during the test process.
[0029] (III) Beneficial Effects
[0030] Compared with the prior art, the present invention provides an automated testing and data analysis system for PCB boards, which has the following advantages:
[0031] I. This invention achieves full automation of PCB board testing through the coordinated operation of hardware detection modules, software test process control modules, and data analysis modules, significantly improving testing efficiency and consistency while reducing labor costs. By using a serial number management unit to bind and store test data with PCB board identity information, combined with a hierarchical access control mechanism, a complete data anti-tampering and traceability system is established, effectively ensuring the integrity and authenticity of test data. The use of a configuration file-based test process engine allows for flexible adjustments to the test process according to the testing requirements of different PCB board models without recompiling the software, greatly improving the system's scalability and reducing maintenance costs. Simultaneously, the result judgment unit supports various refined judgment rules, and the traceability analysis unit can display fault location information in real time when tests fail. The dual-database architecture of relational database and time-series database achieves both aggregated management of test data and retention of detailed time-series data, thus providing ample technical support for fault diagnosis, quality traceability, and continuous improvement of production processes. Attached Figure Description
[0032] Figure 1 This is a block diagram of the overall system structure of the present invention;
[0033] Figure 2 This is a schematic diagram of the overall topology of the system testing fixture of the present invention;
[0034] Figure 3 This is a schematic diagram of the internal structure and signal flow of the hardware detection module of the system of the present invention;
[0035] Figure 4 This is a schematic diagram of the control engine of the system software testing process control module of the present invention;
[0036] Figure 5 This is a schematic diagram of the task status of the data analysis module of the system of the present invention;
[0037] Figure 6 This is a schematic diagram of the topology of the data analysis module of the system of the present invention. Detailed Implementation
[0038] To better understand the purpose, structure, and function of this invention, the following will further describe a PCB board automated testing and data analysis system with reference to the accompanying drawings and specific embodiments.
[0039] Example 1
[0040] This embodiment provides an automated testing and data analysis system for PCB boards.
[0041] The system includes a hardware testing module, a software testing process control module, and a data analysis module. The hardware testing module is responsible for acquiring physical signals and performing functional tests on the PCB board. The software testing process control module communicates with the hardware testing module and is responsible for controlling the testing process, managing test data, judging test results, and configuring test parameters. The data analysis module communicates with the software testing process control module and is responsible for storing test data and performing statistical analysis and quality reports.
[0042] Specifically, the software testing process control module includes a serial number management unit, a testing process engine, a result judgment unit, and an access control unit. Before the test begins, the serial number management unit obtains the identification information on the PCB board through a barcode scanning device, performs format verification on the identification, and uses it as the unique identifier for the current test task after the verification is passed. During the test, the serial number management unit binds all test data collected by the hardware detection module with the identification, and after the test is completed, it stores the complete test record with the identification in the database of the data analysis module, realizing one file per board.
[0043] The test process engine uses a JSON-formatted configuration file to define the test parameters, execution order, and dependencies of test items. Upon startup, the engine reads and parses this configuration file, configuring multiple test items into a test task model with an execution order. This test task model organizes the test items using a tree structure, where the root node corresponds to the major test item and the child nodes correspond to the minor test items. The engine controls the execution of the test process according to the test task model. Each minor test item under the same major test item is executed sequentially. The failure of a single minor test item does not affect the execution of other minor test items or subsequent test processes. The results of all minor test items are aggregated to determine the test result of the corresponding major test item. When the test process needs to be modified, the user only needs to edit the JSON configuration file; there is no need to recompile the software.
[0044] The result determination unit supports numerical range determination rules and logical combination determination rules. The numerical range determination rule is used to determine whether the test value is within the preset numerical range, and the determination is made in the form of Min≤value≤Max. The logical combination determination rule is used to perform AND or OR logical operations on multiple determination conditions to obtain a comprehensive determination result. After all test items are executed, the result determination unit summarizes the determination results of each test item to obtain the final test conclusion of the PCB board.
[0045] Furthermore, in this embodiment, the permission management unit sets two levels: operator permission and administrator permission. Operators with operator permission can start the test process, modify the test parameters of the current test task, and view the test results of the current test task; operators with administrator permission can view the historical test records of all devices, export test records, assign and revoke operator permissions, and perform system configuration.
[0046] The hardware testing module includes a signal interaction unit and a mechanical device unit. The signal interaction unit is used to realize signal transmission between the PCB board and external devices, and the mechanical device unit is used to realize the physical positioning and signal contact of the PCB board.
[0047] The signal interaction unit includes a barcode scanning device, a serial communication device, a digital input / output device, an analog signal acquisition device, and a network communication device. The barcode scanning device uses a barcode scanner to scan QR codes or barcodes on the PCB board to obtain the PCB board's serial number. The serial communication device uses a serial server, supporting multiple RS485 serial communication channels, and is used to test the serial communication function of the PCB board. The analog signal acquisition device uses an analog input / output module to acquire analog signals such as voltage from the PCB board circuitry. The digital input / output device uses a DIDO module to control the power supply status of the PCB board and to perform digital signal input / output tests. The network communication device uses an industrial Ethernet switch to enable network communication between the host computer and the various devices, and to test the network function of the PCB board.
[0048] The mechanical device unit includes a positioning fixture and contact probes. The positioning fixture is made of custom materials and its shape and size match the shape of the PCB board being tested. It is used to precisely fix the PCB board in the preset test position. The contact probe is a spring probe, which is set at the corresponding position of the positioning fixture. After the PCB board is fixed on the positioning fixture, the spring probe forms a reliable electrical contact with the test point of the PCB board, realizing the signal conduction between the hardware detection module and the PCB board.
[0049] The data analysis module includes a real-time status information unit, a traceability analysis unit, and a data interface unit. The real-time status information unit displays the current test progress and results in real time, including the name of the currently executing test item, the test duration, and the pass / fail status of completed test items. The traceability analysis unit retrieves the complete test records of the PCB board from the database based on the input PCB board serial number, including detailed test data for all test items, the judgment results of each test, the timestamp of the test operation, and the hardware information of the test equipment. When a test on the PCB board fails, the traceability analysis unit automatically matches the fault cause analysis information based on the fault type of the failed item and displays it in real time. The data interface unit supports exporting test logs to TXT, Excel, and CSV formats and provides an API interface for data interaction with the factory's MES (Manufacturing Execution System).
[0050] The data analysis module also includes a relational database and a time-series database. The relational database uses MySQL to store test summary data, including the serial number of each PCB board, test time, major test results, and final test conclusions. The time-series database uses TDengine to store detailed time-series data during the test process, including the raw data read from each test item and the collection timestamp. The test summary data is stored in the relational database for structured querying and statistical analysis, while the detailed time-series data is stored in the time-series database for in-depth data analysis and trend judgment.
[0051] Example 2
[0052] This embodiment provides the hardware configuration and testing process of the above system in a specific application scenario.
[0053] In terms of hardware configuration, the signal interaction unit uses a Youyun DIDO module, which is used to control the power supply of the PCB board and the input / output testing of digital circuits; it also uses a Youyun serial port server, which supports 8-channel RS485 serial communication for serial communication testing with the PCB board. A Maiwei switch is used to enable network communication between multiple devices; the mechanical unit uses factory-made spring probes and mechanical clamping plates. The spring probes form electrical contact with the test points on the PCB board, and the mechanical clamping plates ensure accurate adaptation of the PCB board to the spring probes.
[0054] In terms of software configuration, the system runs on a Windows operating system, and the host computer is developed based on the Vue2 and Golang frameworks. The data analysis module uses MySQL 8.0 as a relational database to store the test summary data, and TDengine 3.3.6.0 as a time-series database to store the detailed data for each test item. The test process configuration is implemented using JSON format files.
[0055] Specifically, at the start of the testing process, the operator places the PCB board to be tested into the positioning fixture of the testing fixture, presses the PCB board firmly with a mechanical pressure plate, and ensures that the spring probes are in full contact with the test points on the PCB board. Then, the external power supply of the testing fixture is turned on.
[0056] The operator clicks the start button on the host computer. The serial number management unit communicates with the barcode scanner via serial port, controlling the scanner to automatically scan and recognize the QR code on the PCB board and obtain the PCB board's serial number. The serial number management unit verifies the format of the obtained serial number; if the verification is successful, the serial number is used as the unique identifier for the current test task. The barcode scanner's configuration information is defined in a JSON file, including parameters such as the serial port number and baud rate.
[0057] After the serial number verification is successful, the system automatically performs voltage detection on the PCB board. The analog input / output module collects voltage signals from each circuit node on the PCB board and uploads the collected voltage values to the host computer. The test process engine executes the voltage detection according to the definitions in the JSON configuration file. The configuration file uses the `devs` field to indicate the device information to be connected, the `actions` field to indicate the actions to be performed after connecting the device, and the `details` field to indicate the judgment conditions after data reading. The voltage detection data is then bound to the serial number and uploaded to the server database.
[0058] After the voltage detection is successful, the system performs software programming on the MCU on the PCB board. The host computer connects to the MCU on the PCB board via a JLink programmer to program the specified firmware file into the MCU. The JSON configuration file defines programming-related parameters, including the root node indicating the device type to be programmed, the name field indicating the programming file name, the deviceType field indicating the programming file type, the timeout field indicating the programming timeout period (programming fails if this time is exceeded), the skipErase field indicating whether to skip erasing the underlying data, the resetAndRun field indicating whether to automatically restart and start the program after programming, and the jlinkSn field indicating the serial number corresponding to the JLink programmer.
[0059] After the MCU software is programmed, the system automatically detects the Flash, memory, network port, serial port, and CAN communication status of the PCB board. The JSON configuration file uses the `comUrl` field to configure the serial server's network port information, the `rtcUrl` and `rtc2Url` fields to configure the PCB board's network port information, the `COMs` field to configure the serial ports the PCB board needs to communicate with, and the `Funcs` field to configure the list of functions to be tested. The test data for each communication function is bound to a serial number and then uploaded to the server database.
[0060] After the communication function test is completed, the system automatically performs DI and DO function tests on the PCB board. The host computer determines whether the corresponding DI and DO are abnormal by communicating with the MCU on the PCB board. The JSON configuration file uses the DIFuncs and DOWNuncs fields to indicate the DI and DO functions to be tested, the devs field to indicate the DI and DO module device information to be connected, the details field to indicate the address information and judgment logic to be read, the url field to indicate the network port configuration corresponding to the DI and DO module, and the DITimeout and DOTimeout fields to indicate the delay time for DI reading and DO control operations. The DI and DO test data are uploaded to the server database after being bound to the serial number.
[0061] After all tests are completed, the result judgment unit summarizes the judgment results of all tests. If all tests pass, the system marks the final test conclusion of the PCB board as PASS and sends a pass label to the factory MES system via the API interface. If there are any failures, the system marks the final test conclusion of the PCB board as FAIL and displays detailed information and fault cause analysis of the failure on the interface to facilitate operators in inspection and repair.
[0062] Furthermore, in terms of data analysis, operators can view the number of failures for each failed task in the current batch, calculate the pass rate for this batch, and view the total number of tests, failures, and successes for the current batch. During traceability analysis, when the barcode scanner fails to acquire the device serial number, the system displays "Failed to open serial port" and suggests possible causes such as repeatedly opening the barcode scanner or a serial port configuration error; when the F407 program fails to burn, the system displays "Burning timeout"; when the DI function test fails, the system displays "The read DI value is not equal to the check value" and suggests checking components U33 and U38, helping operators directly locate the problematic component.
[0063] In summary, this invention solves the problems of low automation, rigid testing procedures, easy data tampering, and difficulty in fault location in existing PCB testing systems, thereby improving testing efficiency and product yield.
[0064] It is understood that the present invention has been described through some embodiments, and those skilled in the art will recognize that various changes or equivalent substitutions can be made to these features and embodiments without departing from the spirit and scope of the invention. Furthermore, under the teachings of the present invention, these features and embodiments can be modified to adapt to specific situations and materials without departing from the spirit and scope of the invention. Therefore, the present invention is not limited to the specific embodiments disclosed herein, and all embodiments falling within the scope of the claims of this application are within the protection scope of the present invention.
Claims
1. An automated testing and data analysis system for PCB boards, characterized in that, include: The hardware testing module is used to perform physical signal acquisition and functional testing of the PCB board; The software testing process control module is communicatively connected to the hardware detection module and is used to control the testing process, manage test data, determine test results, and configure test parameters. The data analysis module is communicatively connected to the software testing process control module and is used to store test data and perform statistical analysis and quality reports. The software testing process control module includes a serial number management unit, a testing process engine, a result determination unit, and an access control unit. The serial number management unit is used to verify the identity of the PCB board before the test begins and to bind and store the test data with the PCB board's identity information after the test. The testing process engine is used to configure multiple test items into a test task model with an execution order association and to control the execution of the testing process according to the test task model. The result determination unit is used to determine the pass / fail status of the test results according to preset determination rules. The access control unit is used to manage the operation permissions of operators in a hierarchical manner.
2. The PCB board automated testing and data analysis system according to claim 1, characterized in that, The hardware detection module includes a signal interaction unit and a mechanical device unit. The signal interaction unit is used to realize signal transmission between the PCB board and external devices, and the mechanical device unit is used to realize the physical positioning and signal contact of the PCB board.
3. The PCB board automated testing and data analysis system according to claim 2, characterized in that, The signal interaction unit includes a barcode scanning device, a serial communication device, a digital input / output device, an analog signal acquisition device, and a network communication device. The barcode scanning device is used to obtain the identification information of the PCB board, the serial communication device is used to test the serial communication function of the PCB board, the analog signal acquisition device is used to acquire the analog signals of the PCB board, the digital input / output device is used to control the power supply status and digital signal input / output of the PCB board, and the network communication device is used to realize Ethernet communication.
4. The PCB board automated testing and data analysis system according to claim 2, characterized in that, The mechanical device unit includes a precision fixture and a spring probe. The precision fixture is used to position and fix the PCB board, and the spring probe is used to form electrical contact with the test points on the PCB board.
5. The PCB board automated testing and data analysis system according to claim 1, characterized in that, The test process engine uses a configuration file to configure the test logic. The configuration file is used to define the test parameters, execution order and dependencies of the test items. After parsing the configuration file, the test process engine executes the test process according to the dependencies between the test items. The failure of a single test item does not affect the execution of other test items.
6. The PCB board automated testing and data analysis system according to claim 5, characterized in that, The test task model is a tree structure, where the root node corresponds to the major test item and the child nodes correspond to the minor test items. The test results of the minor test items are summarized to determine the test results of the corresponding major test item.
7. The PCB board automated testing and data analysis system according to claim 1, characterized in that, The preset judgment rules supported by the result judgment unit include numerical range judgment rules and logical combination judgment rules. The numerical range judgment rules are used to determine whether the test value is within a preset numerical range, and the logical combination judgment rules are used to perform logical operations on multiple judgment conditions to obtain a comprehensive judgment result.
8. The PCB board automated testing and data analysis system according to claim 1, characterized in that, The permission management unit sets operator permissions and administrator permissions. Operator permissions are used to start tests, modify test parameters, and view test results. Administrator permissions are used to view all test records, export test records, assign operator permissions, and perform system configuration.
9. The PCB board automated testing and data analysis system according to claim 1, characterized in that, The data analysis module includes a real-time status information unit, a traceability analysis unit, and a data interface unit. The real-time status information unit is used to display the real-time status information of the current test. The traceability analysis unit is used to query the complete test record of the PCB board according to the PCB board identity information and display fault information when the test fails. The data interface unit is used to export test data and provide a data interaction interface to external systems.
10. The PCB board automated testing and data analysis system according to claim 1, characterized in that, The data analysis module includes a relational database and a time-series database. The relational database is used to store test summary data, and the time-series database is used to store detailed time-series data during the test process.
