PCBA automatic test method, apparatus and device, and storage medium

Through automated testing methods, serial communication and preset testing projects are used to achieve comprehensive automated testing of PCBA, solving the problems of low efficiency, insufficient depth and limited accuracy of traditional testing methods, and improving testing efficiency and accuracy.

CN119805157APending Publication Date: 2025-04-11CHENHAO MEDICAL TECH (GUANGDONG) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411791547.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-04-11

AI Technical Summary

Technical Problem

Traditional PCBA testing methods rely on manual operations, with low efficiency, insufficient depth and limited accuracy, making it difficult to achieve comprehensive testing of each PCBA.

Method used

The automated testing method is adopted to establish a connection with the PCBA through serial communication, and automated testing is based on preset testing projects, including power management, power supply voltage, backlight, air pump, solenoid valve, analog voltage, buttons and LCD interface detection.

Benefits of technology

Improves the efficiency, depth and accuracy of PCBA testing, reduces manual operation time and errors, and realizes comprehensive automated testing of each PCBA.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119805157A_ABST
    Figure CN119805157A_ABST
Patent Text Reader

Abstract

The invention relates to a PCBA automatic test method, device and equipment and a storage medium, and the method comprises the steps: carrying out the serial port communication with a to-be-tested printed circuit board assembly after a to-be-detected signal of the printed circuit board assembly is detected, and transmitting a printed circuit board assembly test request to terminal equipment; after a printed circuit board assembly test confirmation signal sent by the terminal device is received, based on a preset test item, automatic test processing is carried out on the printed circuit board assemblies to be tested in sequence, and after the automatic test corresponding to each item is completed, an item test result corresponding to each item is sent to the terminal device; when a test termination signal sent by the terminal device is received, stopping the automatic test of the to-be-tested printed circuit board assembly; compared with the prior art, the technical scheme of the invention can improve the efficiency, depth and accuracy of testing the printed circuit board assembly.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of medical devices, and in particular to a PCBA automated testing method, device, equipment and storage medium. Background Art

[0002] In the production of electronic blood pressure monitors, product functional testing is a key link in ensuring product quality. At present, the traditional printed circuit board assembly (PCBA) testing method mainly adopts the following two methods: (1) Customized test frame method: Design and manufacture functional test frames according to the functional requirements of specific products. During the test process, the PCBA is fixed on the test frame, and the various functional modules of the PCBA (such as buttons, speakers, display screens, air pumps, solenoid valves, etc.) are connected to the test frame through the reserved test points on the test frame. This method allows basic functional testing of the PCBA in an environment simulating a finished blood pressure monitor; (2) Finished product testing method: Skip the PCBA level test, directly assemble the PCBA into a finished blood pressure monitor, and then perform a comprehensive functional test at the finished product stage.

[0003] However, these traditional testing methods have the following limitations: (1) High manual dependence: The testing process requires full manual participation, including manual operation of test items and subjective judgment of test results. This not only leads to low test efficiency, but also slow test speed. The entire process may take several minutes to complete the test of a PCBA; (2) Insufficient test depth: Since the test process mainly relies on manual operation and visual inspection by production line workers, it can only cover some basic functional items. This method makes it difficult to achieve comprehensive testing of each PCBA and is prone to overlooking deeper potential problems; (3) Limited test accuracy: The accuracy of manual testing is affected by the operator's skills and experience, which may lead to inconsistency and errors in test results. Summary of the invention

[0004] The present application provides a PCBA automated testing method, apparatus, device and storage medium to improve the efficiency, depth and accuracy of testing printed circuit board assemblies.

[0005] In a first aspect, the present application provides a PCBA automated testing method, comprising: after detecting a signal to be detected of a printed circuit board assembly, performing serial port communication with the printed circuit board assembly to be tested, and sending a printed circuit board assembly test request to a terminal device; after receiving a printed circuit board assembly test confirmation signal sent by the terminal device, based on preset test items, performing automated test processing on the printed circuit board assembly to be tested in sequence, and after completing the automated test corresponding to each item, sending the project test result corresponding to each item to the terminal device; after receiving a termination test signal sent by the terminal device, stopping the automated test of the printed circuit board assembly to be tested.

[0006] In a possible implementation, based on preset test items, the printed circuit board assembly to be tested is automatically tested in sequence, specifically including: the preset test items include power management detection items, power supply voltage and working current detection items, backlight detection items, air pump detection items, solenoid valve detection items, analog voltage detection items, button detection items and LCD interface detection items; when it is detected that the current test item is the power management detection item, based on the preset power management circuit, the printed circuit board assembly to be tested is automatically tested for the power management item; when it is detected that the current test item is the power supply voltage and working current detection item, based on the preset power supply voltage and working current detection circuit, the printed circuit board assembly to be tested is automatically tested for the power supply voltage and working current detection item; when it is detected that the current test item is the backlight detection item, based on the preset backlight detection circuit, the printed circuit board assembly to be tested is automatically tested for the backlight detection item. Automatic test processing; when it is detected that the current test item is the air pump detection item, based on the preset air pump detection circuit, the printed circuit board assembly to be tested is automatically tested for the air pump detection item; when it is detected that the current test item is the solenoid valve detection item, based on the preset solenoid valve detection circuit, the printed circuit board assembly to be tested is automatically tested for the solenoid valve detection item; when it is detected that the current test item is the analog voltage detection item, based on the preset analog voltage detection circuit, the printed circuit board assembly to be tested is automatically tested for the analog voltage detection item; when it is detected that the current test item is the key detection item, based on the preset key detection circuit, the printed circuit board assembly to be tested is automatically tested for the key detection item; when it is detected that the current test item is the LCD interface detection item, based on the preset LCD interface detection circuit, the printed circuit board assembly to be tested is automatically tested for the LCD interface detection item.

[0007] In one possible implementation, the signal to be detected of the printed circuit board assembly is generated by placing the printed circuit board assembly to be tested on a printed circuit board assembly placement table, when it is detected that a test point sampling plate set on the printed circuit board assembly placement table is in contact with the printed circuit board assembly to be tested, and the state of the printed circuit board assembly placement table is that the printed circuit board assembly placement table is lowered.

[0008] In a possible implementation, performing serial communication with the printed circuit board assembly to be tested specifically includes: establishing a communication connection process with the printed circuit board assembly to be tested based on a preset serial communication circuit, sending an identity number confirmation instruction to the printed circuit board assembly to be tested through the serial communication circuit, and receiving the printed circuit board assembly identity number fed back by the printed circuit board assembly to be tested.

[0009] In a possible implementation, sending a printed circuit board assembly test request to a terminal device specifically includes: when it is detected that the printed circuit board assembly identity identification number corresponding to the printed circuit board assembly to be tested is empty, determining that the writing status of the identity identification number of the printed circuit board assembly to be tested is not written; when it is detected that the printed circuit board assembly identity identification number corresponding to the printed circuit board assembly to be tested is not empty, determining that the writing status of the identity identification number of the printed circuit board assembly to be tested is written; sending a printed circuit board assembly test request and the writing status of the identity identification number corresponding to the printed circuit board assembly to be tested to the terminal device, so that the terminal device generates a printed circuit board assembly test confirmation signal after receiving the printed circuit board assembly test request, and performs an identity identification number writing operation on the printed circuit board assembly to be tested when receiving the identity identification number writing status as not written.

[0010] In a possible implementation, after sending the project test results corresponding to each project to the terminal device, it also includes: determining whether all the preset test items have been tested, and if so, adjusting the state of the printed circuit board assembly placement table to lift the printed circuit board assembly placement table; when it is detected that the state of the printed circuit board assembly placement table is that the printed circuit board assembly placement table is lifted, generating a test interrupt signal, and sending the test interrupt signal to the terminal device, so that the terminal device generates and feeds back a termination test signal after receiving the test interrupt signal.

[0011] In the second aspect, the present application provides a PCBA automated testing device, comprising: a printed circuit board assembly placement table, an automated testing unit and a terminal device; wherein the automated testing unit is connected to the printed circuit board assembly placement table and the terminal device respectively; the printed circuit board assembly placement table is used to send a signal to be detected of the printed circuit board assembly to the automated testing unit; the terminal device is used to send a termination test signal to the automated testing unit; the automated testing unit is used to execute the method described in any one of the above items.

[0012] In one possible implementation, the automated testing unit includes an MCU, a power management detection circuit, a power supply voltage and operating current detection circuit, a backlight detection circuit, an air pump detection circuit, a solenoid valve detection circuit, an analog voltage detection circuit, a key detection circuit, and an LCD interface detection circuit; wherein the power management detection circuit, the power supply voltage and operating current detection circuit, the backlight detection circuit, the air pump detection circuit, the solenoid valve detection circuit, the analog voltage detection circuit, the key detection circuit, and the LCD interface detection circuit are respectively connected to the MCU.

[0013] In a third aspect, an embodiment of the present application further provides a computer device, which includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the above method when executing the computer program.

[0014] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0015] The present invention provides a PCBA automated testing method, which has the following advantages over the prior art:

[0016] When the signal to be detected of the printed circuit board assembly is detected, the printed circuit board assembly is connected through serial communication. This communication method can quickly establish a connection and transmit data, reducing the time of manual operation; and setting preset test items can not only realize comprehensive testing of each printed circuit board assembly, but also standardize the test process and automatically execute test items, reducing manual operation and waiting time. Finally, the test results are sent to the terminal device in real time without manual recording, so that the test results can be monitored and recorded in real time, which can reduce the test cycle; in this process, automated testing reduces human operation errors, and the execution of each test item is consistent and is not affected by the operator's skills and experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0019] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.

[0020] Figure 1 This is a flow chart of an embodiment of a PCBA automated testing method provided by the present application;

[0021] Figure 2 It is a structural schematic diagram of an embodiment of a PCBA automated testing device provided by the present application;

[0022] Figure 3A is a structural schematic diagram of a first serial port communication circuit of an embodiment provided by the present application;

[0023] Figure 3B is a structural schematic diagram of a second serial port communication circuit of an embodiment provided by the present application;

[0024] Figure 4A This is a schematic diagram of the structure of a power management circuit based on a DC power supply of 6V according to an embodiment of the present application;

[0025] Figure 4B This is a schematic diagram of a power management circuit based on a 6V battery power supply according to an embodiment of the present application;

[0026] Figure 4C This is a schematic diagram of a power management circuit based on a 4V battery power supply according to an embodiment of the present application;

[0027] Figure 5A It is a structural schematic diagram of a power supply voltage and working current detection circuit in a working state of an embodiment provided by the present application;

[0028] Figure 5B It is a structural schematic diagram of a power supply voltage and working current detection circuit in a sleep state according to an embodiment of the present application;

[0029] Figure 6 is a structural schematic diagram of a backlight detection circuit of an embodiment provided by the present application;

[0030] Figure 7 is a structural schematic diagram of an air pump detection circuit according to an embodiment of the present application;

[0031] Figure 8 It is a structural schematic diagram of a solenoid valve detection circuit of an embodiment provided by the present application;

[0032] Fig. 9 is a structural schematic diagram of an analog voltage detection circuit according to an embodiment of the present application;

[0033] Fig.10 is a structural schematic diagram of a key detection circuit according to an embodiment of the present application;

[0034] Fig.11A It is a structural schematic diagram of an LCD interface detection circuit of an embodiment provided by the present application;

[0035] Fig. 11B It is another structural schematic diagram of an LCD interface detection circuit of an embodiment provided by the present application;

[0036] Fig.12 It is a schematic diagram of the structure of the automated test unit;

[0037] Fig.13 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0038] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0039] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.

[0040] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0041] It should also be understood that the terms used in this application specification are only for the purpose of describing specific embodiments and are not intended to limit the application. As used in this application specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0042] It should be further understood that the term “and / or” used in the specification and appended claims refers to any combination and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0043] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0044] Example 1, see Figure 1 , Figure 1 : is a flow chart of an embodiment of a PCBA automated testing method provided by the present application, such as Figure 1 As shown, the method includes steps 101 to 103, which are specifically as follows:

[0045] Step 101: after detecting the signal to be tested of the printed circuit board assembly, serial communication is performed with the printed circuit board assembly to be tested, and a printed circuit board assembly test request is sent to a terminal device.

[0046] In one embodiment, an automatic control unit is arranged inside the printed circuit board assembly placement platform, and an automated test of the printed circuit board assembly to be tested is implemented based on the automatic control unit.

[0047] Specifically, a test point sampling board is provided at the bottom of the printed circuit board assembly placement platform, and a printed circuit board assembly test ejector pin is welded on the test point sampling board. When the printed circuit board assembly to be tested is correctly placed on the printed circuit board assembly placement platform, the test point sampling board is connected to the printed circuit board assembly to be tested through the printed circuit board assembly test ejector pin.

[0048] Specifically, the printed circuit board assembly placement table is connected to the automatic control unit through a cable, and based on this connection relationship, the automatic control unit can power, communicate and test the printed circuit board assembly to be tested through the printed circuit board assembly test top. This setting can simplify the wiring between the automatic control unit and the printed circuit board assembly placement table, and simplify the connection with the printed circuit board assembly to be tested.

[0049] In one embodiment, before the printed circuit board assembly placement table performs PCBA automated testing, the printed circuit board assembly placement table is first powered on, and after powering on, the system of the printed circuit board assembly placement table itself is initialized, and when it is detected that no printed circuit board assembly is currently placed on the printed circuit board assembly placement table, the printed circuit board assembly placement table enters an idle state, waiting for the placement of the printed circuit board assembly to be tested.

[0050] In one embodiment, the signal to be detected of the printed circuit board assembly is generated by placing the printed circuit board assembly to be tested on a printed circuit board assembly placement table, when it is detected that a test point sampling plate set on the printed circuit board assembly placement table is in contact with the printed circuit board assembly to be tested, and the state of the printed circuit board assembly placement table is when the printed circuit board assembly placement table is lowered.

[0051] Specifically, based on the detection by the printed circuit board assembly placement table of whether the printed circuit board assembly test pin in the test point sampling plate set on the printed circuit board assembly placement table is in contact with the printed circuit board assembly to be tested, if so, the state of the printed circuit board assembly placement table is set to the printed circuit board assembly placement table being lowered, and a signal for the printed circuit board assembly to be tested is generated.

[0052] In one embodiment, after the PCB assembly placement station generates a signal to be detected of the PCB assembly, the signal to be detected of the PCB assembly is sent to an automatic control unit so that the automatic control unit can detect the signal to be detected of the PCB assembly.

[0053] In one embodiment, after receiving the PCB assembly to be tested signal sent by the PCB assembly placement platform through the cable, the automatic control unit will perform serial communication with the PCB assembly to be tested to confirm that the communication between the two is normal.

[0054] In one embodiment, based on a preset serial communication circuit, a communication connection is established with the printed circuit board assembly to be tested, and an identity number confirmation instruction is sent to the printed circuit board assembly to be tested through the serial communication circuit, and the printed circuit board assembly identity number fed back by the printed circuit board assembly to be tested is received.

[0055] Specifically, the MCU module in the automatic control unit is connected to the serial communication circuit.

[0056] Specifically, the serial communication circuit includes a first serial communication circuit and a second serial communication circuit. Figure 3A As shown, Figure 3A is a structural diagram of a first serial communication circuit of an embodiment provided by the present application, such as Figure 3B As shown, Figure 3B It is a structural diagram of the second serial port communication circuit of an embodiment provided in the present application; wherein the first serial port communication circuit is mainly used for serial port enable control and power management, and the second serial port communication circuit is mainly used for serial port communication signal transmission.

[0057] Specifically, the first serial port communication circuit includes an inductor L5, a relay LS1, an NPN transistor Q2, a resistor R35, a resistor R36, a diode D5, a PCBA side power supply UART_VCC, a control signal UART_EN, a 5V power supply VDD5V, and a power input VC_PCBA.

[0058] Specifically, the power input VC_PCBA is connected to the first end of the inductor L5, the second end of the inductor L5 is connected to the third pin of the relay LS1, the fourth pin of the relay LS1 is connected to the PCBA side power supply UART_VCC, the first pin of the relay LS1 is connected to the 5V power supply VDD5V, the first pin of the relay LS1 is respectively connected to the collector of the NPN transistor Q2 and the positive electrode of the diode D5, the negative electrode of the diode D5 is connected to the 5V power supply VDD5V, the control signal UART_EN is connected to the first end line of the resistor R35, the second end of the resistor R35 is respectively connected to the first end of the resistor R36 and the base of the NPN transistor Q2, and the second end of the resistor R36 and the emitter of the NPN transistor Q2 are grounded respectively.

[0059] Specifically, UART_VCC in the first serial communication circuit serves as the power supply on the PCBA side, and controls the NPN transistor Q2 and the relay LS1 through the UART_EN signal. When testing the sleep power consumption, a low level can be output to cut off the power supply.

[0060] Specifically, the second serial communication circuit includes a resistor R134, an optical coupler U16, a resistor R135, a capacitor C44, a capacitor C39, a capacitor C45, a resistor R137, an optical coupler U17, a resistor R136, a PCBA side power supply UART_VCC, a 3V power supply VDD3V3, a transmitting signal pin TX_PCBA, a receiving signal pin RX_PCBA, a PCBA end power ground signal VS_PCBA, a serial communication receiving signal terminal UART2_RX and a serial communication sending signal terminal UART2_TX.

[0061] Specifically, the PCBA side power supply UART_VCC is connected to the first end of the resistor R134, the second end of the resistor R134 is connected to the first pin of the optical coupler U16, the sending signal pin TX_PCBA is respectively connected to the second pin of the optical coupler U16, the first end of the capacitor C39, the first end of the capacitor C45, the first end of the resistor R137 and the sixth pin of the optical coupler U17, the sixth pin of the optical coupler U16 is respectively connected to the first end of the capacitor C44, the first end of the resistor R135 and the 3V power supply VDD3V3, the second end of the resistor R135 and the fifth pin of the optical coupler U17 are respectively connected to the serial communication receiving signal terminal UART2_RX is connected, the second end of the capacitor C44 and the fourth pin of the optocoupler U17 are grounded respectively; the receiving signal pin RX_PCBA is respectively connected to the second end of the resistor R137 and the fifth pin of the optocoupler U17, the PCBA end power ground signal VS_PCBA is respectively connected to the second end of the capacitor C39, the second end of the capacitor C45 and the fourth pin of the optocoupler U17, the second pin of the optocoupler U17 is connected to the serial communication sending signal terminal UART2_TX, the first pin of the optocoupler U17 is connected to the first end of the resistor R136, and the second end of the resistor R136 is connected to the 3V power supply VDD3V3.

[0062] Specifically, the signal at the serial communication sending signal end is isolated by the optical coupler U16 and then transmitted to the serial communication receiving signal end. The signal at the serial communication receiving signal end is isolated by the optical coupler U17 and then output to RX_PCBA.

[0063] In one embodiment, when it is detected that the printed circuit board assembly identity number corresponding to the printed circuit board assembly to be tested is empty, it is determined that the writing status of the identity number of the printed circuit board assembly to be tested is not written; when it is detected that the printed circuit board assembly identity number corresponding to the printed circuit board assembly to be tested is not empty, it is determined that the writing status of the identity number of the printed circuit board assembly to be tested is written.

[0064] In one embodiment, when a printed circuit board assembly test request is sent to a terminal device, the printed circuit board assembly test request and the identity identification number writing status corresponding to the printed circuit board assembly to be tested are sent to the terminal device, so that the terminal device generates a printed circuit board assembly test confirmation signal after receiving the printed circuit board assembly test request, and performs an identity identification number writing operation on the printed circuit board assembly to be tested when receiving the identity identification number writing status as not written.

[0065] Specifically, after the terminal device receives the PCB assembly test request through its serial port, it needs to parse the PCB assembly test request and generate a PCB assembly test confirmation signal; this confirmation signal can be a specific response to inform the sender that the test process has begun; after the terminal device receives the PCB assembly test request, it also needs to check whether the identity number of the PCB assembly to be tested has been written. If the terminal device detects that the identity number of the PCB assembly to be tested has not been written, it will perform a write operation to write a preset identity number into the memory of the PCB assembly to be tested. Based on the identity number written for the PCB assembly to be tested, it can greatly facilitate the subsequent automated production and tracking and tracing of the product.

[0066] Step 102: After receiving the printed circuit board assembly test confirmation signal sent by the terminal device, based on the preset test items, the printed circuit board assembly to be tested is automatically tested in sequence, and after completing the automated test corresponding to each item, the project test result corresponding to each item is sent to the terminal device.

[0067] In one embodiment, the preset test items include power management detection items, power voltage and working current detection items, backlight detection items, air pump detection items, solenoid valve detection items, analog voltage detection items, button detection items and LCD interface detection items.

[0068] In one embodiment, the project test results corresponding to each project include the power management detection results corresponding to the power management detection project, the power supply voltage and working current detection results corresponding to the power supply voltage and working current detection project, the backlight detection results corresponding to the backlight detection project, the air pump detection results corresponding to the air pump detection project, the solenoid valve detection results corresponding to the solenoid valve detection project, the analog voltage detection results corresponding to the analog voltage detection project, the key detection results corresponding to the key detection project, and the LCD interface detection results corresponding to the LCD interface detection project.

[0069] In one embodiment, when it is detected that the current test item is the power management test item, based on a preset power management circuit, an automatic test process of the power management item is performed on the printed circuit board assembly to be tested.

[0070] like Figure 4A As shown, Figure 4A It is a structural schematic diagram of a power management circuit based on DC power supply 6V of an embodiment provided by the present application; the power management circuit includes a regulator chip U6, a resistor R28, a capacitor C20, a resistor R26, a resistor R30, a resistor R29, a capacitor C21, a resistor R43, a resistor R44, an NPN transistor Q4, a Schottky diode D6, a light-emitting diode LED2, an enable pin DC6V_EN of the regulator, a power supply voltage VDD5V of the light-emitting diode, a circuit input voltage source DC9V, a circuit DC power supply PWR_DC, and a circuit DC voltage DC6V.

[0071] Specifically, the enable pin DC6V_EN of the voltage regulator is connected to the first end of the resistor R28, the second end of the resistor R28 is respectively connected to the first pin EN of the voltage regulator chip U6 and the first end of the resistor R26, the second end of the resistor R26 is grounded, the circuit input voltage source DC9V is respectively connected to the first end of the capacitor C20 and the second pin VIN of the voltage regulator chip U6, the second end of the capacitor C20 is grounded, the third pin VSS of the voltage regulator chip U6 is grounded, the fourth pin OUT of the voltage regulator chip U6 is respectively connected to the first end of the capacitor C21, the second end of the resistor R30 and the circuit DC voltage DC6V, the fifth pin ADJ of the voltage regulator chip U6 is respectively connected to the first end of the resistor R29 and the first end of the resistor R30, the resistor The second end of R29 is grounded, the second end of the resistor R30 is respectively connected to the first end of the capacitor C21 and the circuit DC voltage DC6V, the second end of the capacitor C21 is grounded, the circuit DC voltage DC6V is respectively connected to the positive electrode of the Schottky diode D6 and the first end of the resistor R43, the second end of the resistor R43 is respectively connected to the first end of the resistor R44 and the base of the NPN transistor Q4, the second end of the resistor R44 and the emitter of the NPN transistor Q4 are grounded, the cathode of the Schottky diode D6 is connected to the circuit DC power supply PWR_DC, the collector of the NPN transistor Q4 is connected to the cathode of the light emitting diode LED2, the anode of the light emitting diode LED2 is grounded, and the light emitting diode is connected to the power supply voltage VDD5V.

[0072] Specifically, the circuit receives a higher input voltage (DC9V) and converts it to a stable lower voltage (DC6V) through the voltage regulator U6; and the output voltage of the voltage regulator U6 is determined by the voltage divider resistors (R29 and R30) on the ADJ pin, and the ratio of these resistors sets the output voltage of the voltage regulator; capacitor C21 is connected to the output end of the voltage regulator to filter out high-frequency noise in the output voltage and ensure the stability of the output voltage. Diode D6 is connected between the output end of the voltage regulator and PWR_DC as a protection diode to prevent reverse current from damaging the voltage regulator. When the voltage regulator outputs a stable DC6V voltage, LED2 is driven by transistor Q4 to emit light as an indication of the power supply status; R44 and R42 are respectively used as current limiting resistors for the base and collector to protect the transistor and LED. The enable pin of the voltage regulator U6 can be controlled by the DC6V_EN signal. When DC6V_EN is high, the voltage regulator is enabled and starts working; when it is low, the voltage regulator is turned off to save energy.

[0073] Specifically, the main function of the power management circuit is to convert a higher input voltage into a stable lower voltage and display the power status through an indicator light. It also has enable control and protection functions to ensure stable operation and energy saving of the circuit.

[0074] Preferably, in the above power management circuit, in addition to being powered by the circuit DC voltage DC6V, it can also be powered by a battery power supply of 6V or a battery power supply of 4V. Figure 4B As shown, Figure 4B 6V is a schematic diagram of a power management circuit based on a battery power supply according to an embodiment of the present application; Figure 4C As shown, Figure 4C It is a structural schematic diagram of a power management circuit based on a battery-powered 4V embodiment provided in the present application; when a battery-powered 6V is used for power supply, it is only necessary to change the circuit DC6V in the above circuit to a 6V battery-powered BT6V; when a resistor 4V is used for power supply, the circuit DC6V in the above circuit is changed to a 4V battery-powered BT4V, and the resistance value of the resistor R30 is adjusted from 41K to 26k, and the accuracy is adjusted from 2% to 7%.

[0075] In one embodiment, when it is detected that the current test item is the power supply voltage and operating current detection item, the power supply voltage and operating current detection items are automatically tested on the printed circuit board assembly to be tested based on a preset power supply voltage and operating current detection circuit.

[0076] like Figure 5A As shown, Figure 5AIt is a structural schematic diagram of a power supply voltage and working current detection circuit in a working state of an embodiment provided by the present application; the power supply voltage and working current detection circuit in the working state includes a relay LS5, a diode M1, a light-emitting diode LED15, a resistor R251, a resistor R92, a resistor R93, an NPN transistor Q17, a resistor R89, a resistor R90, a resistor R91, a capacitor C6, a capacitor C32, a capacitor C33, a diode D13, a resistor R95, a resistor R94, an IC internal register U12, a power input interface PWR_BT, an enable signal interface BTWK_EN, a data transmission interface BTSP, an output signal interface BTOUT, an I2C communication data line SDA, an I2C communication clock line SCLK, an INA219 chip address pin A0, an INA219 chip address pin A1, a 5V power supply voltage VDD5V, and a 3.3V power supply voltage MCU3V3.

[0077] Specifically, the power input interface PWR_BT is connected to the third pin of the relay LS5, the fourth pin of the relay LS5 is respectively connected to the first end of the resistor R89 ​​and the first end of the resistor R90, the first pin of the relay LS5 and the cathode of the diode D20 are connected to the 5V power supply voltage VDD5V, the second end of the resistor R89 ​​is respectively connected to the first end of the capacitor C6 and the eighth pin of the IC internal register U12, the second end of the capacitor C6 is respectively connected to the seventh pin of the IC internal register U12 and the second end of the resistor R91, the second end of the resistor R90 is respectively connected to the first end of the resistor R91 and the anode of the diode D13, the cathode of the diode D13 is connected to the Bluetooth output signal interface BTOUT, the 3.3V power supply voltage MCU3V3 is respectively connected to the first end of the capacitor C32, the first end of the capacitor C33, the fifth pin of the IC internal register U12 and the first end of the resistor R94, the second end of the resistor R94 and the first pin of the IC internal register U12 The sixth pin of the IC internal register U12, the first end of the resistor R95, the second end of the capacitor C32 and the second end of the capacitor C33 are grounded respectively, the second pin of the IC internal register U12 is connected to the second end of the resistor R95, the third pin of the IC internal register U12 is connected to the I2C communication data line SDA, the fourth pin of the IC internal register U12 is connected to the I2C communication clock line SCLK, the 5V power supply voltage VDD5V is connected to the positive electrode of the light-emitting diode LED15, the negative electrode of the light-emitting diode LED15 is connected to the first end of the resistor R251, the second end of the resistor R251 is respectively connected to the collector of the NPN transistor Q17 and the positive electrode of the diode D20, the emitter of the NPN transistor Q17 is grounded, the enable signal interface BTWK_EN is connected to the first end of the resistor R92, the second end of the resistor R92 is respectively connected to the first end of the resistor R93 and the base of the NPN transistor Q17, and the second end of the resistor R93 is grounded.

[0078] Specifically, since the working current of the normal working state and the sleep state is greatly different, the present embodiment provides a corresponding power supply voltage and working current detection circuit for the sleep state, such as Figure 5B As shown, Figure 5B It is a structural schematic diagram of a power supply voltage and working current detection circuit in a sleep state of an embodiment provided by the present application.

[0079] Specifically, the power supply voltage and working current detection circuit in the sleep state is different from the power supply voltage and working current detection circuit in the working state in that the first end of the resistor R94 and the first end of the resistor R95 in the power supply voltage and working current detection circuit in the working state are respectively connected to the fifth pin of the flow detection amplifier U12, which is equivalent to the first end of the resistor R94 and the first end of the resistor R95 in the power supply voltage and working current detection circuit in the working state being respectively connected to the fifth pin of the flow detection amplifier U12.

[0080] Specifically, the figure shows the current / voltage detection circuit of the PCBA when the BT is powered. PWR_BT is the total input, and BT_OUT is the input interface. It is divided into two paths here because the working current in the normal working state and the sleep state is quite different. In order to detect the working current more accurately, independent control output is performed. BTWK_EN enables the working state, and BTSD_EN enables the sleep state. The internal register U12 / U13 of the IC and the peripheral circuit are responsible for the detection of the working voltage and current. By configuring different sampling resistors (R90 / R101) and the configuration of the internal register of the IC, the current and voltage flowing through the sampling resistor can be accurately detected. The relay (LS5 / LS6) realizes the physical connection or disconnection of the power supply, and the diode (D13 / D15) realizes the unidirectional output of the power supply. The SDA-SCLK of the internal register U12 / U13 of the IC is connected to the main control MCU as the IIC communication interface. The MCU reads and writes it through this interface, thereby realizing information configuration and acquisition.

[0081] In one embodiment, when it is detected that the current test item is the backlight detection item, the printed circuit board assembly to be tested is automatically tested for the backlight detection item based on a preset backlight detection circuit.

[0082] like Figure 6 As shown, Figure 6 It is a structural schematic diagram of a backlight detection circuit of an embodiment provided by the present application; the backlight detection circuit includes a resistor R119, a resistor R51, a resistor R216, a resistor R85, an optical coupler U31A, a relay LS11, a resistor R52, an NPN transistor Q7, a load M1, a 5V power supply VDD5V, a control signal BLK1_EN, a detection point BLK+, a detection point BLK1-, a detection signal BLK1_DET, and a 3.3V power supply voltage MCU3V3.

[0083] Specifically, the detection point BLK+ is connected to the first end of the resistor R119, the second end of the resistor R119 is respectively connected to the second pin of the optical coupler U31A and the third pin of the relay LS11, the control signal BLK1_EN is connected to the first end of the resistor R51, the second end of the resistor R51 is respectively connected to the first end of the resistor R52 and the base of the NPN transistor Q7, the emitter of the NPN transistor Q7 and the second end of the resistor R52 are grounded, and the collector of the NPN transistor Q7 is respectively connected to the second end of the relay LS11. The pin is connected to the first end of the load, the second end of the load is respectively connected to the 5V power supply VDD5V and the first pin of the relay LS11, the fourth pin of the relay LS11 is connected to the detection point BLK1-, the detection point BLK+ is connected to the first end of the resistor R216, the second end of the resistor R216 is connected to the first pin of the optocoupler U31A, the 3.3V power supply voltage MCU3V3 and the detection signal BLK1_DET are respectively connected to the fourth pin of the optocoupler U31A, and the third pin of the optocoupler U31A is grounded.

[0084] Specifically, BLK+ and BLK- are two detection points, BLK1_EN is the control signal, when it is high level, transistor Q7 is turned on, contacts 3 and 4 of relay LS11 are closed, so that BLK+ and BLK- are short-circuited through a resistor R119, and R119 here simulates the function of the backlight; at this time, the automated test unit will send a backlight-on command to the printed circuit board assembly to be tested. If the backlight part circuit on the printed circuit board assembly to be tested is normal, BLK- will be short-circuited to GND, and current will flow through R119. The automated test unit can determine whether the operation is normal by monitoring the current. In addition, after BLK1- is short-circuited to GND, the diode side of the optocoupler will work, and the detection signal BLK_DET outputs a low level, and the automated test unit can confirm again that the circuit is working normally.

[0085] Specifically, a command is sent to the PCBA through the serial communication circuit to turn the backlight on and off, and the load capacity of the PCBA is tested by a fixed load.

[0086] In one embodiment, when it is detected that the current test item is the air pump detection item, the air pump detection item is automatically tested on the printed circuit board assembly to be tested based on a preset air pump detection circuit.

[0087] like Figure 7 As shown, Figure 7It is a structural schematic diagram of an air pump detection circuit of an embodiment provided in the present application, wherein the air pump detection circuit includes a detection point PUMP1-, a detection point PUMP1+, a detection signal PUMP1_DET, a 3.3V power supply voltage MCU3V3, an optocoupler U26A, a resistor R206, a resistor R50 and a capacitor C101.

[0088] Specifically, the detection point PUMP1+ is connected to the first end of the resistor R206, the second end of the resistor R206 is connected to the first pin of the optocoupler U26A, the second pin of the optocoupler U26A is connected to the detection point PUMP1-, the sixteenth pin of the optocoupler U26A is respectively connected to the detection signal PUMP1_DET and the first end of the resistor R50, the second end of the resistor R50 is connected to the 3.3V power supply voltage MCU3V3, the fifteenth pin of the optocoupler U26A and the second end of the capacitor C101 are grounded, and the first end of the capacitor C101 is connected to the first end of the resistor R50.

[0089] Specifically, PUMP1+ and PUMP1- are two detection points, and resistor R206 is the function of simulating the load (representing the air pump). During the detection, the automated test unit will send a start command to the printed circuit board assembly to be tested. If the circuit on the printed circuit board assembly to be tested is normal, PUMP1- will be shorted to GND, and current will flow through R206. The automated test unit can determine whether the operation is normal by monitoring the working current before and after the start command. In addition, after PUMP1- is shorted to GND, the diode side of the optocoupler will work, and the detection signal PUMP1_DET outputs a low level. The automated test unit can confirm again that the circuit is working normally.

[0090] Specifically, a command is sent to the PCBA through the serial communication circuit to start or stop the air pump, whether the air pump is started is detected through input, and the load current is controlled to test whether the load capacity of the PCBA is qualified.

[0091] In one embodiment, when it is detected that the current test item is the solenoid valve detection item, the printed circuit board assembly to be tested is automatically tested for the solenoid valve detection item based on a preset solenoid valve detection circuit.

[0092] like Figure 8 As shown, Figure 8 It is a structural schematic diagram of an electromagnetic valve detection circuit of an embodiment provided in the present application, wherein the electromagnetic valve detection circuit includes a detection point VAL1-, a detection point VAL1+, a detection signal AVL1_DET, a 3.3V power supply voltage MCU3V3, an optical coupler U27A, a resistor R211, a resistor R12 and a capacitor C105.

[0093] Specifically, the detection point VAL1+ is connected to the first end of the resistor R211, the second end of the resistor R211 is connected to the first pin of the optocoupler U27A, the second pin of the optocoupler U27A is connected to the detection point VAL1-, the sixteenth pin of the optocoupler U27A is respectively connected to the detection signal AVL1_DET and the first end of the resistor R112, the second end of the resistor R12 is connected to the 3.3V power supply voltage MCU3V3, the fifteenth pin of the optocoupler U27A and the second end of the capacitor C105 are grounded, and the first end of the capacitor C105 is connected to the first end of the resistor R112.

[0094] Specifically, VAL1+ and VAL1- are two detection points, and the resistor R206 is a simulated load (representing the function of the solenoid valve). During the detection, the automated test unit will send an opening command to the printed circuit board assembly to be tested. If the circuit on the printed circuit board assembly to be tested is normal, VAL11- will be shorted to GND, and current will flow through R211. The automated test unit can determine whether the operation is normal by monitoring the working current before and after the opening command. In addition, after VAL11- is shorted to GND, the diode side of the optical coupler will work, and the detection signal VAL11_DET outputs a low level. The automated test unit can once again confirm that the circuit is working normally.

[0095] Specifically, a command is sent to the PCBA through the serial communication circuit to start or stop the solenoid valve, and whether the solenoid valve is started is detected through input, and the load current is controlled to test whether the load capacity of the PCBA is qualified.

[0096] Preferably, the circuit structure of the solenoid valve detection circuit is the same as that of the air pump detection circuit.

[0097] In one embodiment, when it is detected that the current test item is the analog voltage detection item, the printed circuit board assembly to be tested is automatically tested for the analog voltage detection item based on a preset analog voltage detection circuit.

[0098] like Fig. 9 As shown, Fig. 9 It is a structural schematic diagram of an analog voltage detection circuit of an embodiment provided by the present application, and the analog voltage detection circuit includes a detection input point AIN7, a capacitor C90, a capacitor C91, a capacitor C89, a capacitor C92, a capacitor C93, a capacitor C94, a resistor R170, a resistor R171, a resistor R172, a resistor R173, a resistor R174, a resistor R175, a resistor R176, a 5V analog power supply AD5V, an analog-to-digital converter input interface ADC7 and a dual operational amplifier U25A.

[0099] Specifically, the 5V analog power supply AD5V is respectively connected to the first end of the capacitor C90, the first end of the capacitor C9 and the eighth pin of the dual operational amplifier chip U25A, the second end of the capacitor C90 and the second end of the capacitor C9 are respectively grounded, the detection input point AIN7 is connected to the first end of the resistor R170, the second end of the resistor R170 is respectively connected to the first end of the capacitor C89, the first end of the resistor R171 and the first end of the resistor R172, the second end of the resistor R172 is connected to the third pin of the dual operational amplifier U25A, the second end of the capacitor C89, the second end of the resistor R171 and the first end of the resistor R176 are respectively grounded, and the second end of the resistor R176 is respectively grounded. The fourth pin of the dual operational amplifier U25A, the second end of the capacitor C92 and the second end of the capacitor C93 are grounded respectively, the first end of the resistor R175 and the first end of the capacitor C94 are connected, the first end of the resistor R173 is connected to the first pin of the dual operational amplifier U25A, the second end of the resistor R175 and the second end of the capacitor C94 respectively, the second end of the resistor R173 is connected to the first end of the resistor R174 and the first end of the capacitor C92 respectively, the second end of the resistor R174 is connected to the first end of the capacitor C93 and the analog-to-digital converter input interface ADC7 respectively.

[0100] Specifically, AIN7 is the detection input point, R170 and C89 form an RC low-pass filter circuit to perform low-pass filtering on the input signal, and the dual operational amplifier amplifies the input signal and then passes it through a two-order RC low-pass filter before entering the ADC of the automated test unit to complete signal acquisition, wherein R175 and R176 are used to configure the amplifier gain, Vo=Vin*(R175 / R176+1).

[0101] In one embodiment, when it is detected that the current test item is the key detection item, the key detection item is automatically tested on the printed circuit board assembly to be tested based on a preset key detection circuit.

[0102] like Fig.10 As shown, Fig.10 1 is a structural schematic diagram of a key detection circuit of an embodiment provided in the present application, wherein the key detection circuit includes a PCBA end power supply BLK+, a PCBA end power ground signal VS_PCBA, a key detection input point KEY1, a control board signal KEY1_EN, a resistor R1, a capacitor C110, a resistor R128 and an optical coupler U28A.

[0103] Specifically, the PCBA-end power supply BLK+ is connected to the first end of the resistor R1, the second end of the resistor R1 is connected to the sixteenth pin of the optocoupler U28A, the key detection input point KEY1 is respectively connected to the sixteenth pin of the optocoupler U28A and the first end of the capacitor C110, the PCBA-end power ground signal VS_PCBA is respectively connected to the second end of the capacitor C110 and the fifteenth pin of the optocoupler U28A, the first pin of the optocoupler U28A is connected to the first end of the resistor R128, the second pin of the optocoupler U28A is grounded, and the second end of the resistor R128 is connected to the control board signal KEY1_EN.

[0104] Specifically, R1 and the optocoupler U28A form an analog key. When KEY1_EN of the automated test unit outputs a high level, the optocoupler is turned on and KEY1 is short-connected to VS_PCBA. When KEY1_EN outputs a low level, KEY1 is disconnected like VS_PCBA. After outputting these two states, the automated test unit sends a command to read the level state of KEY1 detected by the printed circuit board assembly to be tested, and then compares it with its own settings. If they are consistent, the circuit is considered normal.

[0105] In one embodiment, when it is detected that the current test item is the LCD interface test item, based on a preset LCD interface test circuit, automatic test processing of the LCD interface test item is performed on the printed circuit board assembly to be tested.

[0106] Specifically, all interface lines of the LCD on the printed circuit board assembly to be tested are divided into two groups according to odd and even sorting to the automated test unit, namely LCD1 and LCD2. Fig.11A As shown, Fig.11A is a structural schematic diagram of an LCD interface detection circuit of an embodiment provided by the present application; Fig. 11B As shown, Fig. 11B This is another structural schematic diagram of an LCD interface detection circuit of an embodiment provided by the present application.

[0107] Specifically, Fig.11A and Fig. 11B The circuit structure of the LCD interface detection circuit in is the same.

[0108] by Fig.11A Taking the LCD interface detection circuit in as an example, it includes LCD interface LCD1, relay LS9, resistor R204127, resistor R122, resistor R125, diode M1, NPN transistor Q21, LCD enable signal LCD1_EN, 3.3V power supply voltage interface VDD3V3, and 5V power supply voltage interface VDD5V.

[0109] Specifically, the LCD interface LCD1 is respectively connected to the first end of the resistor R204 and the third pin of the relay LS9, the second end of the resistor R204 is grounded, the fourth pin of the relay LS9 is connected to the first end of the resistor R127, the second end of the resistor R127 is connected to the 3.3V power supply voltage interface VDD3V3, the first pin of the relay LS9 is respectively connected to the cathode of the diode M1 and the 5V power supply voltage interface VDD5V, the second pin of the relay LS9 is respectively connected to the anode of the diode M1 and the collector of the NPN transistor Q21, the emitter of the NPN transistor Q21 is grounded, the base of the NPN transistor Q21 is respectively connected to the first end of the resistor R122 and the first end of the resistor R125, the second end of the resistor R125 is grounded, and the second end of the resistor R122 is connected to the LCD enable signal LCD1_EN.

[0110] Specifically, the LCD interface detection circuit is connected to a low level by default. The automated test unit can control the NPN transistor Q21 / Q22 through LCD1_EN and LCD2_EN to connect LCD1 / LCD2 to channel VDD3V3. In this way, the control board can control LCD1 / LCD2 to output different level states, and then send a command to the printed circuit board assembly to be tested to read its corresponding IO state and compare it with the set state to determine whether the LCD interface on the printed circuit board assembly to be tested is abnormal, such as short circuit or short circuit.

[0111] Preferably, the automated test unit sends commands to the printed circuit board assembly to be tested through the serial communication circuit, so that the printed circuit board assembly to be tested performs functional actions according to the commands, and due to the connection of the test points, the automated test unit can test and judge the functional circuit of the printed circuit board assembly through its own functional circuit.

[0112] In one embodiment, the project test result corresponding to each project is sent to the terminal device, and the project test result corresponding to each project is displayed on the terminal device, so that the operator can timely understand the current test result corresponding to each project.

[0113] In one embodiment, after sending the project test results corresponding to each project to the terminal device, it is also determined whether all the preset test items have been tested. If so, the state of the printed circuit board assembly placement table is adjusted to the printed circuit board assembly placement table being lifted; when it is detected that the state of the printed circuit board assembly placement table is the printed circuit board assembly placement table being lifted, a test interrupt signal is generated, and the test interrupt signal is sent to the terminal device, so that the terminal device generates and feeds back a termination test signal after receiving the test interrupt signal.

[0114] Step 103: After receiving the test termination signal sent by the terminal device, stop performing the automated test on the printed circuit board assembly to be tested.

[0115] In one embodiment, after receiving the test termination signal and completing the test of the printed circuit board assembly to be tested, the automated testing unit sends a test completion signal to the terminal device, so that the terminal device can synchronously display the operation of the automated testing unit and extract the operator to replace the printed circuit board assembly to be tested.

[0116] In one embodiment, based on the connection relationship between the terminal device, the automated testing unit and the printed circuit board assembly placement station, automated testing of the printed circuit board assembly is implemented. In the above operation mode, each operator can manage multiple printed circuit board assembly placement stations at the same time, greatly improving work efficiency.

[0117] Example 2, see Figure 2 , Figure 2 1 is a schematic diagram of the structure of a PCBA automated testing device provided by the present application. Corresponding to the above PCBA automated testing method, the present application also provides a PCBA automated testing device. The PCBA automated testing device can be configured in a desktop computer, a tablet computer, a laptop computer, and other terminals. Specifically, the PCBA automated testing device includes a printed circuit board assembly placement table 201, an automated testing unit 202, and a terminal device 203.

[0118] The automated testing unit 202 is connected to the printed circuit board assembly placement platform 201 and the terminal device 203 respectively.

[0119] The printed circuit board assembly placement platform 201 is used to send a signal to be tested of the printed circuit board assembly to the automated testing unit 202;

[0120] The terminal device 203 is used to send a test termination signal to the automated test unit 202;

[0121] The automated testing unit 202 is configured to execute any of the above methods.

[0122] In one embodiment, the automated test unit 202 includes an MCU 2021, a power management detection circuit 2022, a power supply voltage and working current detection circuit 2023, a backlight detection circuit 2024, an air pump detection circuit 2025, a solenoid valve detection circuit 2026, an analog voltage detection circuit 2027, a button detection circuit 2028, and an LCD interface detection circuit 2029. Fig.12 As shown, Fig.12 It is a structural diagram of the automated test unit.

[0123] Specifically, the power management detection circuit 2022, the power supply voltage and working current detection circuit 2023, the backlight detection circuit 2024, the air pump detection circuit 2025, the solenoid valve detection circuit 2026, the analog voltage detection circuit 2027, the button detection circuit 2028 and the LCD interface detection circuit 2029 are respectively connected to the MCU 2021.

[0124] In one embodiment, the MCU 2021 in the automatic test unit 202 further includes: a serial port communication module 20211 , an automatic test module 20212 and a termination test module 20213 .

[0125] The serial communication module 20211 is used to perform serial communication with the printed circuit board assembly to be tested after detecting the signal to be tested of the printed circuit board assembly, and send a printed circuit board assembly test request to the terminal device.

[0126] The automatic testing module 20212 is used to perform automatic testing on the printed circuit board assembly to be tested in sequence based on preset test items after receiving the printed circuit board assembly test confirmation signal sent by the terminal device, and after completing the automatic test corresponding to each item, send the project test result corresponding to each item to the terminal device.

[0127] The test termination module 20213 is used to stop the automated test on the printed circuit board assembly to be tested after receiving a test termination signal sent by the terminal device.

[0128] In one embodiment, the automatic test module 20212 is used to perform automatic test processing on the printed circuit board assembly to be tested in sequence based on preset test items, specifically including: the preset test items include power management detection items, power supply voltage and working current detection items, backlight detection items, air pump detection items, solenoid valve detection items, analog voltage detection items, button detection items and LCD interface detection items; when it is detected that the current test item is the power management detection item, based on the preset power management circuit, the printed circuit board assembly to be tested is automatically tested for the power management item; when it is detected that the current test item is the power supply voltage and working current detection item, based on the preset power supply voltage and working current detection circuit, the printed circuit board assembly to be tested is automatically tested for the power supply voltage and working current detection item; when it is detected that the current test item is the backlight detection item, based on the preset backlight detection circuit, the printed circuit board assembly to be tested is automatically tested for the backlight Automatic test processing of detection items; when it is detected that the current test item is the air pump detection item, based on the preset air pump detection circuit, the printed circuit board assembly to be tested is automatically tested for the air pump detection item; when it is detected that the current test item is the solenoid valve detection item, based on the preset solenoid valve detection circuit, the printed circuit board assembly to be tested is automatically tested for the solenoid valve detection item; when it is detected that the current test item is the analog voltage detection item, based on the preset analog voltage detection circuit, the printed circuit board assembly to be tested is automatically tested for the analog voltage detection item; when it is detected that the current test item is the key detection item, based on the preset key detection circuit, the printed circuit board assembly to be tested is automatically tested for the key detection item; when it is detected that the current test item is the LCD interface detection item, based on the preset LCD interface detection circuit, the printed circuit board assembly to be tested is automatically tested for the LCD interface detection item.

[0129] In one embodiment, the signal to be detected of the printed circuit board assembly is generated by placing the printed circuit board assembly to be tested on a printed circuit board assembly placement table, when it is detected that a test point sampling plate set on the printed circuit board assembly placement table is in contact with the printed circuit board assembly to be tested, and the state of the printed circuit board assembly placement table is when the printed circuit board assembly placement table is lowered.

[0130] In one embodiment, the serial communication module 20211 is used to perform serial communication with the printed circuit board assembly to be tested, specifically including: establishing a communication connection process with the printed circuit board assembly to be tested based on a preset serial communication circuit, and sending an identity number confirmation instruction to the printed circuit board assembly to be tested through the serial communication circuit, and receiving the printed circuit board assembly identity number fed back by the printed circuit board assembly to be tested.

[0131] In one embodiment, the serial communication module 20211 is used to send a printed circuit board assembly test request to a terminal device, specifically including: when it is detected that the printed circuit board assembly identity identification number corresponding to the printed circuit board assembly to be tested is empty, determining that the writing status of the identity identification number of the printed circuit board assembly to be tested is not written; when it is detected that the printed circuit board assembly identity identification number corresponding to the printed circuit board assembly to be tested is not empty, determining that the writing status of the identity identification number of the printed circuit board assembly to be tested is written; sending a printed circuit board assembly test request and the writing status of the identity identification number corresponding to the printed circuit board assembly to be tested to the terminal device, so that the terminal device generates a printed circuit board assembly test confirmation signal after receiving the printed circuit board assembly test request, and performs an identity identification number writing operation on the printed circuit board assembly to be tested when receiving the identity identification number writing status as not written.

[0132] In one embodiment, the automatic test module 20212 is used to send the project test results corresponding to each project to the terminal device, and also includes: judging whether all the preset test items have been tested, and if so, adjusting the state of the printed circuit board assembly placement table to the printed circuit board assembly placement table being lifted; when it is detected that the state of the printed circuit board assembly placement table is the printed circuit board assembly placement table being lifted, generating a test interrupt signal, and sending the test interrupt signal to the terminal device, so that the terminal device generates and feeds back a termination test signal after receiving the test interrupt signal.

[0133] The above PCBA automated testing device can implement the PCBA automated testing method of the above method embodiment. The options in the above method embodiment are also applicable to this embodiment and will not be described in detail here.

[0134] like Fig.13 As shown, Fig.13 It is a structural diagram of an electronic device provided by the present application; it includes a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114, and the memory 113 is used to store computer programs.

[0135] In one embodiment of the present application, the processor 111 is used to implement the PCBA automatic testing method provided by any one of the aforementioned method embodiments when executing the program stored in the memory 113.

[0136] It is understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a storage medium, which is a computer-readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0137] Therefore, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the PCBA automated testing method provided in any of the aforementioned method embodiments are implemented.

[0138] The storage medium is a physical, non-transient storage medium, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which can store program codes. The computer-readable storage medium can be non-volatile or volatile.

[0139] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0140] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0141] The steps in the method of the embodiment of the present application can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present application can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0142] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.

[0143] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0145] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in the present application, and these modifications or replacements should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A PCBA automated testing method, characterized in that: include: After detecting the signal to be tested of the printed circuit board assembly, serial communication is performed with the printed circuit board assembly to be tested, and a printed circuit board assembly test request is sent to the terminal device; After receiving the printed circuit board assembly test confirmation signal sent by the terminal device, based on the preset test items, the printed circuit board assembly to be tested is automatically tested in sequence, and after completing the automatic test corresponding to each item, the project test result corresponding to each item is sent to the terminal device; After receiving the test termination signal sent by the terminal equipment, the automatic test of the printed circuit board assembly to be tested is stopped.

2. The method according to claim 1, characterized in that Based on the preset test items, the printed circuit board assembly to be tested is automatically tested in sequence, specifically including: The preset test items include power management test items, power supply voltage and working current test items, backlight test items, air pump test items, solenoid valve test items, analog voltage test items, button test items and LCD interface test items; When it is detected that the current test item is the power management test item, based on a preset power management circuit, automatically testing the power management item on the printed circuit board assembly to be tested; When it is detected that the current test item is the power supply voltage and working current detection item, based on a preset power supply voltage and working current detection circuit, automatically testing the power supply voltage and working current detection items on the printed circuit board assembly to be tested; When it is detected that the current test item is the backlight detection item, based on a preset backlight detection circuit, automatically testing the backlight detection item on the printed circuit board assembly to be tested; When it is detected that the current test item is the air pump detection item, based on a preset air pump detection circuit, automatically testing the printed circuit board assembly to be tested for the air pump detection item; When it is detected that the current test item is the solenoid valve detection item, based on a preset solenoid valve detection circuit, automatically testing the printed circuit board assembly to be tested for the solenoid valve detection item; When it is detected that the current test item is the analog voltage detection item, based on a preset analog voltage detection circuit, automatically testing the analog voltage detection item on the printed circuit board assembly to be tested; When it is detected that the current test item is the key detection item, based on a preset key detection circuit, automatically testing the key detection item on the printed circuit board assembly to be tested; When it is detected that the current test item is the LCD interface detection item, based on a preset LCD interface detection circuit, automatic test processing of the LCD interface detection item is performed on the printed circuit board assembly to be tested.

3. The method according to claim 1, characterized in that: The signal to be detected of the printed circuit board assembly is generated by placing the printed circuit board assembly to be tested on a printed circuit board assembly placement table, when it is detected that a test point sampling plate set on the printed circuit board assembly placement table is in contact with the printed circuit board assembly to be tested, and the state of the printed circuit board assembly placement table is when the printed circuit board assembly placement table is lowered.

4. The method according to claim 1, characterized in that: Performing serial communication with the printed circuit board assembly to be tested, specifically comprising: Based on a preset serial communication circuit, a communication connection is established with the printed circuit board assembly to be tested, and an identity number confirmation instruction is sent to the printed circuit board assembly to be tested through the serial communication circuit, and the printed circuit board assembly identity number fed back by the printed circuit board assembly to be tested is received.

5. The method according to claim 4, characterized in that Send a printed circuit board assembly test request to the terminal device, specifically including: When it is detected that the printed circuit board assembly identity number corresponding to the printed circuit board assembly to be tested is empty, determining that the writing status of the identity number of the printed circuit board assembly to be tested is not written; When it is detected that the printed circuit board assembly identity number corresponding to the printed circuit board assembly to be tested is not empty, determining that the writing status of the identity number of the printed circuit board assembly to be tested is already written; A printed circuit board assembly test request and the identity identification number writing status corresponding to the printed circuit board assembly to be tested are sent to the terminal device, so that the terminal device generates a printed circuit board assembly test confirmation signal after receiving the printed circuit board assembly test request, and performs an identity identification number writing operation on the printed circuit board assembly to be tested when receiving the identity identification number writing status as not written.

6. The method according to claim 3, characterized in that: After the project test results corresponding to each project are sent to the terminal device, it also includes: Determine whether all the preset test items have been tested, and if so, adjust the state of the printed circuit board assembly placement table to be raised; When it is detected that the state of the printed circuit board assembly placement table is that the printed circuit board assembly placement table is lifted, a test interrupt signal is generated and sent to the terminal device, so that the terminal device generates and feeds back a termination test signal after receiving the test interrupt signal.

7. A PCBA automated testing device, characterized in that: include: PCB assembly placement stations, automated test units and terminal equipment; Wherein, the automated testing unit is connected to the printed circuit board assembly placement table and the terminal device respectively; The printed circuit board assembly placement platform is used to send a signal to be tested of the printed circuit board assembly to the automated testing unit; The terminal device is used to send a test termination signal to the automated test unit; The automated testing unit is used to execute the method according to any one of claims 1 to 6.

8. The device according to claim 7, characterized in that The automated test unit includes an MCU, a power management detection circuit, a power supply voltage and working current detection circuit, a backlight detection circuit, an air pump detection circuit, a solenoid valve detection circuit, an analog voltage detection circuit, a key detection circuit, and an LCD interface detection circuit; Among them, the power management detection circuit, the power supply voltage and working current detection circuit, the backlight detection circuit, the air pump detection circuit, the solenoid valve detection circuit, the analog voltage detection circuit, the button detection circuit and the LCD interface detection circuit are respectively connected to the MCU.

9. A computer device, characterized in that: The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The 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 6 can be implemented.