An automated testing method, apparatus and system for protecting PCBA boards for medical batteries

By integrating firmware logic with automated testing methods and LabVIEW architecture, efficient and reliable automated testing of medical battery protection PCBA boards has been achieved, solving the problems of low testing efficiency and poor traceability in existing technologies, and ensuring the safety and reliability of the equipment.

CN123112643APending Publication Date: 2026-11-17SHENZHEN HENGYAN TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611103726.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing technologies for testing medical battery-protected PCBA boards are inefficient and highly susceptible to human error, failing to meet the stringent requirements of medical products for traceability of test data. General-purpose automated testing equipment struggles to accurately capture specific strings during MCU power-on self-tests and the switching of low-power modes.

Method used

An automated testing method with deep integration of firmware logic is adopted. The MCU version and calibration data are read through VISA serial communication. The four-channel parallel testing is realized by combining LabVIEW architecture and queue mechanism. Probes and programmable instruments are used to simulate charging and discharging conditions, monitor voltage and current in real time, generate test results and save them.

Benefits of technology

It enables efficient and automated testing of PCBA boards for medical battery protection, ensuring firmware integrity and calibration effectiveness, preventing equipment failure, improving testing efficiency, supporting multi-channel parallel operation, and avoiding production line downtime caused by single board failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123112643A_ABST
    Figure CN123112643A_ABST
Patent Text Reader

Abstract

This invention relates to the field of electronic circuit testing technology, and discloses an automated testing method, device, and system for medical battery protection PCBA boards. The method includes controlling the power-on of a test fixture, monitoring serial port logs to capture flag bits, and verifying software version and firmware integrity; performing ADC sampling accuracy testing, detecting battery voltage and current parameters, and forcibly shutting down power transistors Q1 / Q2 to verify that the voltage level is 0 and within a safe range; controlling the PCBA to switch between normal operating mode and LOW_POWER mode, detecting static current, and simulating charging and discharging conditions to verify the dynamic current range. This invention achieves fully automated, deep-level testing of the hardware and software of medical battery boards, with high testing efficiency, and effectively ensures the safety and reliability of medical device batteries during use through precise parameter threshold settings.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic circuit testing technology, specifically to an automated testing method, apparatus, and system for medical battery protection PCBA boards. Background Technology

[0002] With the widespread use of medical electronic devices (such as portable monitors, infusion pumps, defibrillators, etc.), the safety and reliability of the intelligent battery packs and battery protection boards (PCBAs), which are the core of their power, are directly related to the safety of patients' lives. Medical battery protection PCBAs typically integrate microcontrollers (MCUs), analog-to-digital converters (ADCs), power switching transistors (MOSFETs), and complex power management logic, and need to maintain accurate voltage sampling, current measurement, and fault protection capabilities under various operating conditions.

[0003] In existing production technologies, the testing of such medical battery protection PCBAs still faces the following problems in practical use: Manual testing: Operators use multimeters and oscilloscopes to measure voltage points one by one and observe the status of LED indicator lights with the naked eye; this method is not only inefficient, but also greatly affected by human factors (such as reading errors and missed tests), and cannot meet the stringent requirements of medical products for the traceability of test data; General semi-automated testing: While using a general ATE (Automatic Test Equipment) platform, automation is achieved, but it usually lacks in-depth support for the dedicated firmware logic of specific medical models (such as LSU / LSU R1); existing technologies often have difficulty accurately capturing specific strings of the MCU power-on self-test (POST) (such as "POST start"), and cannot seamlessly switch between low power mode (LOW_POWER) and charge / discharge simulation in a single station. Summary of the Invention

[0004] The purpose of this invention is to provide an automated testing method, device and system for medical battery protection PCBA boards, which has the effect of deep integration of firmware logic and significantly improved testing depth.

[0005] The above-mentioned technical objective of the present invention is achieved through the following technical solution: an automated testing method for protecting a medical battery PCBA board, comprising the following steps: S1: Control the test fixture to power on the PCBA electronic card, perform power-on self-test (POST) and read the software version and calibration data, including monitoring the serial port log to determine whether the "POST start" flag is output, reading the version string returned by the MCU, verifying the firmware validity (FW valid) and the MCU calibration data validity (MCU calib valid); S2: Perform ADC sampling accuracy testing and power switch status detection on PCBA electronic card board, specifically including: acquiring the ADC sampling values ​​of the total battery voltage Vbat and the single cell voltage Vcell through probes, acquiring the ADC sampling value of the current parameter CU, controlling the power switches Q1 and Q2 to turn off and detecting the Vcell voltage and the control levels of Q1 and Q2; S3: Send a sleep command to the PCBA electronic board via VISA serial port to switch it to LOW_POWER mode, and collect static current through micro current range; connect electronic load to simulate discharge mode in constant current mode and connect programmable power supply to simulate charging mode, and collect CU and IUC sampling values ​​under each mode. S4: Compare the measured data with the preset thresholds retrieved from the configuration database based on the PCBA model under test, and generate and save the test results.

[0006] A further provision of the present invention is that the preset thresholds in S4 include at least: 13.18V to 13.82V for Vbat and Vcell, 318V to 352V for CU, 44V to 200V for quiescent current, 0V to 318V for CU and 0.110V to 0.163V for IUC under discharge conditions, and 352V to 1023V for CU and 0.128V to 0.173V for IUC under charging conditions.

[0007] A further feature of the present invention is that, before the S1 is powered on, a probe impedance self-test step is included: after the PCBA to be tested is placed in the fixture, the system starts probe impedance detection, and the contact reliability is determined by measuring the on-resistance of the probe circuit. If an open circuit is detected, a probe abnormality alarm is popped up and the process is locked.

[0008] A further provision of the present invention is that after the low-power mode test in S3 is completed, a pulse signal is sent to the PCBA electronic board via the wake-up pin to reactivate the MCU.

[0009] A further feature of the present invention includes a multi-channel parallel processing step. The data flow is managed using a queue mechanism, which simultaneously drives four independent test channels to perform parallel testing on the same type of PCBA electronic board. The Boolean test results for each channel are converted into numerical values ​​and distributed to the corresponding display tables for statistical analysis.

[0010] An automated testing device for protecting PCBA boards with medical batteries is used to implement the aforementioned automated testing method. The device includes a fixture module, a communication and control module, and a processing and storage module. The fixture module is equipped with probes for carrying and electrically connecting the PCBA electronic board. The probes include at least the core power supply test point DVCC, the battery total voltage test point VBAT, the single cell voltage test point VCELL, the communication pads TX / RX / GND, and the corresponding probes for the power transistor control pins Q1 / Q2. The communication and control module establishes serial communication with the PCBA electronic card board through VISA functions to send power-on self-test commands, sleep commands, and read version commands, and to read status data and serial port logs. The processing and storage module is used in the above method steps to determine the results based on the firmware calibration data and the preset threshold determined by the standard source calibration, and saves the test results.

[0011] A further feature of the present invention is that the processing and storage module is implemented using the LabVIEW architecture and is configured with a While loop and a sequential structure; The LabVIEW architecture includes four independently running parallel test engines, each corresponding to one of the four boards under test, used to synchronously perform power-on, voltage testing and MCU communication; each engine receives channel data through a queue mechanism to avoid multi-threaded conflicts; the LabVIEW architecture is also configured with a Boolean-to-numerical node, used to convert the true / false status of the test results into numerical values ​​to output a PASS or FAIL judgment.

[0012] A further provision of the present invention includes a resource configuration unit and a host computer monitoring unit; the resource configuration unit is connected to an electronic load and a programmable power supply, and is used to provide a standard voltage / current source to the PCBA electronic board in a controlled manner, wherein the electronic load simulates a discharge condition in constant current CC mode and the programmable power supply simulates a charging condition to reproduce the charging and discharging simulation; the host computer monitoring unit is used to issue test commands and display multi-channel test results and POST self-test logs in real time through a graphical interface.

[0013] A further feature of the present invention is that the fixture module uses shielded wires for connection when high-frequency clock checks and current tests are involved, in order to reduce signal interference; the processing and storage module is also equipped with an anomaly handling unit, which immediately cuts off the power supply to the corresponding channel and outputs an alarm message when a communication timeout or test failure is detected, while maintaining the continuous operation of other channels.

[0014] An automated testing system for protecting PCBA boards with medical batteries includes the aforementioned automated testing device, as well as a battery simulator and a data server linked with the automated testing device; the battery simulator is used to replace a real battery and provide dynamically adjustable charge and discharge curves to the PCBA electronic card board; the data server is used to store test results and version traceability information, and to interact with a host computer monitoring unit.

[0015] In summary, the present invention has the following beneficial effects: 1. Breaking through the limitations of traditional voltage measurement, the system deeply intervenes in the internal logic of the MCU through VISA serial communication. The system not only reads the software version, but also verifies the firmware integrity and MCU calibration validity. In particular, by capturing the "POST start" flag, the system ensures the software-level operability of the PCBA and effectively prevents "dead boards" from entering the market. 2. In view of the special nature of medical equipment, the system forcibly detects the off state of power transistors Q1 and Q2 (level is 0 and Vcell is within a specific range) to prevent the risk of overheating and fire caused by MOSFET breakdown or semi-conduction; at the same time, it performs microampere-level monitoring of the static current (44-200) in low power mode to prevent the battery from being depleted too quickly due to leakage, and ensures that the equipment is always available in emergency medical scenarios. 3. By adopting the LabVIEW architecture combined with the queue mechanism, four independent parallel tests are realized. Each channel distributes data through the "Boolean to numerical" node, without blocking each other. When a communication timeout or test failure occurs in a certain channel, the exception handling unit only cuts off the power supply to that channel, while the other channels continue to run. This improves the testing efficiency compared to a single channel and avoids the production line shutdown caused by a single board failure. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the test system architecture of the present invention; Figure 2 This is a flowchart of the automated testing process of the present invention; Figure 3 This is a LabVIEW logic block diagram of the test program for this invention; Figure 4 This is a schematic diagram of the test operation interface of the present invention; Figure 5 This is a schematic diagram of the PCBA board of the present invention. Detailed Implementation

[0017] The present invention will be further described below with reference to the accompanying drawings in the embodiments of the present invention.

[0018] Example 1: Test System Architecture like Figure 1As shown, this embodiment provides an automated testing system for medical battery protection PCBA. The following description uses model LSU / LSUR1 as an example. Different models are adapted to corresponding preset thresholds. The system retrieves the corresponding test parameter configuration table from the configuration database according to the model. The system adopts a modular design and consists of three parts: a host computer, a test fixture, and a programmable instrument. Each part is interconnected through a standard interface to realize the automatic switching and acquisition of electrical signals.

[0019] 1. Host computer (control center) The host computer is an industrial PC equipped with an Intel Core i5 processor and 8GB of memory, running a Windows operating system and featuring built-in test execution software developed based on LabVIEW. The software integrates a configuration database, indexed by board model (LSU / LSUR1), storing test item lists, threshold parameters, and relay action sequences. The host computer connects to the relay module of the test fixture via a USB-to-serial cable and communicates with the programmable controller via VISA functions.

[0020] 2. Test fixture (physical carrier) The test fixture includes a base plate, a contour positioning groove, and a probe module. Positioning structure: It is equipped with a limit slot and micro switch that match the LSU / LSUR1PCBA to ensure that the PCBA is placed in a unique position; Probe module: Integrates multiple gold-plated flexible probes (PogoPins), with each probe position corresponding to a test point on the PCBA, including at least: core power supply test point (DVCC), battery total voltage test point (VBAT), single cell voltage test point (VCELL), communication pads (TX / RX / GND), and power transistor control pins (Q1 / Q2). The probes are connected to the relay matrix via shielded wires to reduce signal interference.

[0021] 3. Programmable instruments (signal source and measuring terminal) Programmable DC power supply: Analog battery input, supports voltage / current regulation, used to verify charging conditions and reverse voltage protection; Electronic load: Supports constant current (CC) mode to simulate the discharge load of medical equipment and is used to verify the accuracy of discharge current sampling; High-precision acquisition card: 16-bit sampling accuracy, used to acquire voltage and current signals at each test point, ensuring the capture of transient characteristics such as low-voltage disconnection.

[0022] Example 2: Execution process of automated testing methods Combination Figure 2 As shown, this embodiment is based on the system execution of Embodiment 1, and the specific process is as follows: S1. Initialization and Probe Self-Test The operator places the PCBA under test into the conformal groove of the fixture and presses down the cover to trigger the microswitch. The system initiates probe impedance detection, determining contact reliability by measuring the continuity resistance of the probe circuit. If an open circuit is detected (indicating probe oxidation or non-contact), the system displays a "Probe Abnormality" alarm and locks the process; if the contact is normal, it proceeds to S2. S2. Information Entry and Configuration Loading In the test operation interface (such as...) Figure 4 In the "Test Information" area on the left, enter or scan the model (LSU / LSUR1), work order number, and operator ID of the board under test. The system will automatically retrieve the test parameter configuration from Table 1 based on the model and complete the adaptive loading of the test environment. Table 1: LSU / LSUR1 Test Parameter Configuration Table

[0023] S3, Power-on and Basic Function Verification DVCC Test: The system controls the relay to turn on the power supply, and the DVCC voltage is collected through a probe. The measured value should be within the range of 3.23V-3.60V (e.g., 3.456V). If the voltage is too low (≤3.23V), it is determined that the power supply is unstable; if it is too high (≥3.60V), it is determined that there is a risk of chip burnout, and the power supply should be cut off immediately. POST Startup Check: The system monitors the serial port log and captures the "POSTstart" flag within a 500ms timeout window; if it is not captured, it means that the MCU has not started and the subsequent test is terminated. Firmware and calibration verification: Send a read version command and compare the returned version string with "303.44BE;BD:Sep132013"; verify the FWvalid flag (firmware integrity) and MCUcalibvalid flag (calibration data validity); if the version is incorrect or the calibration fails, it is determined to be a software abnormality; S4, ADC sampling accuracy and power transistor safety testing ADC offset check: Apply a standard source and read the sampled values ​​of VBAT (13.18V-13.82V), VCELL (13.18V-13.82V), and CU (318-352). If the deviation exceeds the threshold, it indicates that the ADC reference voltage is offset or the sampling resistor is abnormal. Power transistor shutdown check: Control Q1 and Q2 to turn off, and check the VCELL voltage (13.00V-15.00V) and GPIO control level (both are 0); if the level is not 0 or the voltage exceeds the limit, it is determined that the MOSFET is broken down or half-conducted, and there is a risk of short circuit and overheating. S5, Low Power Consumption and Charge / Discharge Simulation Low-power mode: Send a sleep command to control the PCBA to switch to LOW_POWER mode. The fixture switches to the micro-current range to measure the quiescent current (44-200). If the current is too high, it indicates leakage or that the peripheral device is not completely shut down. After the test is completed, a pulse signal is sent via the "wake-up pin" to reactivate the MCU. Discharge test: Connect an electronic load to simulate the operation of medical equipment and read the sampled values ​​of CU (0-318) and IUC (0.110-0.163); Charging test: Connect a programmable power supply, simulate charger input, and read the sampled values ​​of CU (352-1023) and IUC (0.128-0.173); S6. Result Determination and Storage The system compares each measured value with the upper and lower limits in Table 1 to generate a PASS / FAIL decision. (Central results table, e.g.) Figure 4 In the data, items that pass are marked in green, and items that fail are marked in red. Test data (including timestamp, device model, work order number, and measured value) is automatically saved as an Excel document, supporting subsequent quality traceability.

[0024] Example 3: LabVIEW Logic Implementation of the Test Program like Figure 3 As shown, the test software in this embodiment is developed based on the LabVIEW graphical programming environment, and its logic is divided into four functional areas to achieve multi-channel parallel processing: 1. Top left corner area: Main control and initialization While loop: As the core of the program, it runs continuously until the "Exit" button is clicked; Sequential structure: Execution is divided into two frames: The first frame opens serial communication (COMM) through the VISA function and initializes the relay board; the second frame is a conditional structure. If the operator clicks "Start Test", it triggers four-way parallel test; if "Reinitialize" is clicked, it resets the relay and queue data.

[0025] 2. Middle Area: Four-way Parallel Testing Engine The four gray squares side by side in the middle are independent test channels, corresponding to boards 1-4 respectively: Each channel internally encapsulates standardized test procedures (Test Power On → Test DVCC → Test Version Verification → Test ADC Sampling → Test Switching Transistor → Test Low Power Consumption → Test Charge and Discharge). The channels do not block each other, supporting simultaneous testing of 4 PCBAs, improving testing efficiency by 300%; The test results for each channel are sent to the display module on the right via a queue to avoid data conflicts between multiple threads.

[0026] 3. Top right corner area: Result display and judgment Queue Binding: Data from the middle channel enters this area through the pink connection and is distributed to "Test Result Table 1-4"; Boolean to numerical conversion: The "Bool (strict)" node converts logical states (True / False) into numerical values ​​(Pass=1, Fail=0) for easy yield calculation. Conditional judgment: Based on the comparison between the measured value and the upper and lower limits of Table 1, the table color is dynamically updated (green PASS / red FAIL).

[0027] 4. Bottom area: Status summary and exception handling Local variables: Collect the test status (running / completed / failed) of each channel; Return to Information Bar: If a communication timeout or test failure occurs on a certain channel, the error message (such as "Ch2:ERR_POST_START") will be displayed in real time at the bottom of the interface for easy maintenance and location. Progress control: Adjust the loop delay using a constant (such as 10) to prevent CPU overload.

[0028] Example 4: Test Operation Interface Design like Figure 4 As shown, the test interface adopts an industrial-grade human-computer interaction design with a clear layout: The left-hand test information area includes input boxes for "Model Name", "Work Order Number", and "Operator ID", and supports QR code scanning for data entry. Central Results Table Area: Four columns correspond to four test channels, with each column displaying the test item, measured value, and judgment result (PASS / FAIL). Bottom return information bar: displays error details in real time (e.g., "Ch3:DVCC=3.10V, below the lower limit"); Button area: Includes "Start Test", "Reinitialize", and "Export Data" buttons for easy operation.

[0029] The above description is only a preferred embodiment of the present invention. Therefore, all equivalent changes or modifications made to the structure, features and principles described in the claims of this patent application are included in the scope of this patent application.

Claims

1. An automated testing method for medical battery protection PCBA boards, characterized in that, Includes the following steps: S1: Control the test fixture to power on the PCBA electronic board, perform power-on self-test (POST) and read the software version and calibration data, including monitoring the serial port log to determine whether the "POST start" flag is output, reading the version string returned by the MCU, verifying the firmware validity (FW valid) and the MCU calibration data validity (MCU calib valid); S2: Perform ADC sampling accuracy testing and power switch status detection on PCBA electronic card board, specifically including: acquiring the ADC sampling values ​​of the total battery voltage Vbat and the single cell voltage Vcell through probes, acquiring the ADC sampling value of the current parameter CU, controlling the power switches Q1 and Q2 to turn off and detecting the Vcell voltage and the control levels of Q1 and Q2; S3: Send a sleep command to the PCBA electronic board via VISA serial port to switch it to LOW_POWER mode, and collect static current through micro current range; connect electronic load to simulate discharge mode in constant current mode and connect programmable power supply to simulate charging mode, and collect CU and IUC sampling values ​​under each mode. S4: Compare the measured data with the preset thresholds retrieved from the configuration database based on the PCBA model under test, and generate and save the test results.

2. The automated testing method for medical battery protection PCBA boards according to claim 1, characterized in that, The preset thresholds in S4 include at least: 13.18V to 13.82V for Vbat and Vcell, 318V to 352V for CU, 44V to 200V for quiescent current, 0V to 318V for CU and 0.110V to 0.163V for IUC under discharge conditions, and 352V to 1023V for CU and 0.128V to 0.173V for IUC under charging conditions.

3. The automated testing method for medical battery protection PCBA boards according to claim 1, characterized in that, Before powering on S1, a probe impedance self-test step is also included: after the PCBA to be tested is placed in the fixture, the system starts probe impedance detection, and the contact reliability is judged by measuring the on-resistance of the probe circuit. If an open circuit is detected, a probe abnormality alarm will pop up and the process will be locked.

4. The automated testing method for medical battery protection PCBA boards according to claim 1, characterized in that, After the low-power mode test in S3 is completed, a pulse signal is sent to the PCBA electronic board via the wake-up pin to reactivate the MCU.

5. The automated testing method for medical battery protection PCBA boards according to claim 1, characterized in that, It also includes multi-channel parallel processing steps: The data flow is managed using a queue mechanism, which simultaneously drives four independent test channels to perform parallel testing on the same type of PCBA electronic board. The Boolean test results for each channel are converted into numerical values ​​and distributed to the corresponding display tables for statistical analysis.

6. An automated testing device for protecting medical battery PCBA boards, characterized in that, The apparatus for implementing the automated testing method according to any one of claims 1 to 5 includes a fixture module, a communication and control module, and a processing and storage module; The fixture module is equipped with probes for carrying and electrically connecting the PCBA electronic board. The probes include at least the core power supply test point DVCC, the battery total voltage test point VBAT, the single cell voltage test point VCELL, the communication pads TX / RX / GND, and the corresponding probes for the power transistor control pins Q1 / Q2. The communication and control module establishes serial communication with the PCBA electronic card board through VISA functions to send power-on self-test commands, sleep commands, and read version commands, and to read status data and serial port logs. The processing and storage module is used to execute the steps of the method described in any one of claims 1 to 5, to determine the results based on a preset threshold retrieved from the configuration database according to the model, and to save the test results.

7. The automated testing device for medical battery protection PCBA boards according to claim 6, characterized in that, The processing and storage module is implemented using the LabVIEW architecture and is configured with a While loop and a sequential structure. The LabVIEW architecture includes four independently running parallel test engines, each corresponding to one of the four boards under test, used to synchronously perform power-on, voltage testing and MCU communication; each engine receives channel data through a queue mechanism to avoid multi-threaded conflicts; the LabVIEW architecture is also configured with a Boolean-to-numerical node, used to convert the true / false status of the test results into numerical values ​​to output a PASS or FAIL judgment.

8. The automated testing device for medical battery protection PCBA boards according to claim 7, characterized in that, It also includes a resource configuration unit and a host computer monitoring unit; the resource configuration unit is connected to an electronic load and a programmable power supply, and is used to provide a standard voltage / current source to the PCBA electronic board in a controlled manner, wherein the electronic load simulates the discharge condition in constant current CC mode and the programmable power supply simulates the charging condition to reproduce the charging and discharging simulation; the host computer monitoring unit is used to issue test commands and display multi-channel test results and POST self-test logs in real time through a graphical interface.

9. The automated testing device for medical battery protection PCBA boards according to claim 8, characterized in that, When high-frequency clock checks and current tests are involved, the fixture module uses shielded cables for connection to reduce signal interference. The processing and storage module is also equipped with an anomaly handling unit. When a communication timeout or test failure is detected, the power supply to the corresponding channel is immediately cut off and an alarm message is output, while maintaining the continuous operation of other channels.

10. An automated testing system for medical battery protection PCBA boards, characterized in that, The device includes an automated testing apparatus for protecting PCBA boards with medical batteries as described in claim 9, and a battery simulator and a data server linked with the automated testing apparatus; the battery simulator is used to replace a real battery and provide the PCBA electronic card board with a dynamically adjustable charge and discharge curve; the data server is used to store test results and version traceability information, and to interact with the host computer monitoring unit.