CN117250482B - PCBA testing method, system and device based on Bluetooth interaction - Google Patents

PCBA testing method, system and device based on Bluetooth interaction Download PDF

Info

Publication number
CN117250482B
CN117250482B CN202311525284.1A CN202311525284A CN117250482B CN 117250482 B CN117250482 B CN 117250482B CN 202311525284 A CN202311525284 A CN 202311525284A CN 117250482 B CN117250482 B CN 117250482B
Authority
CN
China
Prior art keywords
test
bluetooth
tested
circuit board
testing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311525284.1A
Other languages
Chinese (zh)
Other versions
CN117250482A (en
Inventor
袁晓锋
张开常
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Joymed Technology (suzhou) Ltd
Original Assignee
Joymed Technology (suzhou) Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Joymed Technology (suzhou) Ltd filed Critical Joymed Technology (suzhou) Ltd
Priority to CN202311525284.1A priority Critical patent/CN117250482B/en
Publication of CN117250482A publication Critical patent/CN117250482A/en
Application granted granted Critical
Publication of CN117250482B publication Critical patent/CN117250482B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R31/00Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
    • G01R31/28Testing of electronic circuits, e.g. by signal tracer
    • G01R31/2801Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP]
    • G01R31/2803Testing of printed circuits, backplanes, motherboards, hybrid circuits or carriers for multichip packages [MCP] by means of functional tests, e.g. logic-circuit-simulation or algorithms therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/19Connection re-establishment
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Electric Properties And Detecting Electric Faults (AREA)

Abstract

The invention discloses a PCBA test method, a system and a device based on Bluetooth interaction, and relates to the technical field of circuit board test, wherein the method comprises the steps of identifying that a circuit board to be tested is placed at a test position and starting test operation; scanning the serial number of the circuit board to be tested; judging whether the digits of the serial number meet the condition, if so, carrying out the next step; starting to test a plurality of functional test items on the circuit board to be tested; if each test item is normal, storing test result data, and ending the test; if any one of the test items is abnormal, the test operation is stopped, and the test failure information is stored. The system comprises a circuit board to be tested, a relay, a serial port conversion module, an interface module, a burner and a voltage and current acquisition card. The device includes an operation unit and a fixing unit. The invention realizes the step-by-step test of the function items through Bluetooth, has the functions of automatic test, judgment result, data storage and the like, and does not need manual setting.

Description

PCBA testing method, system and device based on Bluetooth interaction
Technical Field
The invention relates to the technical field of circuit board testing, in particular to a PCBA testing method, system and device based on Bluetooth interaction.
Background
The existing PCBA test is to manually test each voltage point and related functions, and needs external serial port communication UART interaction data; and the low-power consumption test is also carried out after manual wiring. With increasing yields, existing test requirements have not been met and manual test wiring tends to cause PCBA shorting. Drawbacks/deficiencies of the prior art: the original manual voltage test of the universal meter is complicated, and the low-power consumption test is performed after manual wiring, so that excessive manual participation is needed. And moreover, the serial port communication line cannot be externally connected for testing, the PCBA level cannot be used for carrying out related function testing, and the reworking cost caused by retesting of the whole machine is higher.
The invention discloses a PCBA function automatic test system, which utilizes a microprocessor to control an electromagnet control component to control keys of a PCBA to be tested, so that a test program burnt in advance in the PCBA to be tested automatically switches current test items under the control of the keys of the PCBA to be tested, various signals generated in the test process of the PCBA to be tested are collected in real time through a sensing device, the sensing signals fed back by the sensing device and self-checking test signals output by a test rack through a serial port are processed through the microprocessor, the test process and the test result are displayed on a display screen, and finally, the automatic test of the function of the PCBA to be tested is realized. Although the patent also adopts an automatic test idea to measure the voltage, current and power of the PCBA to be tested and test items such as a buzzer, an indicator lamp and the like, the automatic test degree of the PCBA to be tested still needs to be improved.
Disclosure of Invention
Aiming at the problems existing in the prior art, the invention provides a PCBA testing method, a PCBA testing system and a PCBA testing device based on Bluetooth interaction.
In order to achieve the above purpose, the technical scheme adopted by the invention is as follows:
a PCBA testing method based on Bluetooth interaction comprises the following steps:
step S1: recognizing that the circuit board to be tested is placed at the test position, and starting test operation;
step S2: scanning the serial number of the circuit board to be tested;
step S3: judging whether the digits of the serial number meet the condition, if so, performing step S4, otherwise, returning to step S2;
step S4: starting to test a plurality of functional test items on the circuit board to be tested;
step S5: if each test item is normal, storing test result data, and ending the test; if any one of the test items is abnormal, the test operation is stopped, and the test failure information is stored.
Based on the above technical solution, in step S3, the number of bits of the serial number is 12 bits.
Based on the above technical scheme, in step S4, the functional test item includes a 3V voltage test item, and the test is performed by using the voltage and current acquisition card, when the test result meets the condition of 3v±3%, the data test is normal, otherwise the test is abnormal.
Based on the above technical scheme, in step S4, the function test item includes an MCU programming test item, and the programming test is completed after the background control returns the normal information of the data test after the background control connects to the programmer and then controls the automatic programming operation.
Based on the above technical scheme, in step S4, the function test item includes a battery charging voltage test item, and the test is performed by using the voltage and current acquisition card, when the test result meets the condition of 4.2v±5%, the data test is normal, otherwise the test is abnormal.
Based on the above technical scheme, in step S4, the function test item includes a motor no-signal voltage test item, and when the test result meets the condition of 0-0.3V, the data test is normal, otherwise the test is abnormal; the motor is also provided with a signal voltage test item, the voltage and current acquisition card is used for measuring, when the test result meets the condition of 5 V+/-10%, the data test is normal, and otherwise, the test is abnormal.
Based on the above technical solution, in step S4, the functional test item includes a standby mode low power consumption current test item, and the relay part pin is turned on and/or off, and the current average value in the set period is measured by using the multimeter, and when the measured average value is smaller than the set value, the data test is normal. Wherein the test average value is less than 120mA.
Based on the above technical solution, in step S4, the function test item includes a motor voltage test item, and the relay part pin is turned on and/or off, and the voltage and current acquisition card is used for testing, when the test result meets the condition of 6v±5%, the data test is normal, otherwise the test is abnormal.
Based on the above technical solution, in step S4, the function test item includes a bluetooth connection test item, and the test process includes the following steps:
step 1: setting search time, bluetooth name and 'write only' feature option, starting time search, and starting Bluetooth search operation;
step 2: searching and outputting a Bluetooth broadcast name, searching a designated Bluetooth name, and acquiring a Bluetooth characteristic value; the Bluetooth broadcast name is embodied in a combination form of an item name and a Bluetooth name.
Step 3: judging whether the set number of characteristic values are met, if yes, the Bluetooth connection is successful, otherwise, the Bluetooth connection is considered to be failed; among them, the number of set feature values is preferably 3.
Step 4: bluetooth sends a function test command and returns function test state data;
step 5: analyzing the state data, and comparing the analysis result with the set Bluetooth name;
step 6: if the Bluetooth names are consistent, the connection is successful, otherwise, the connection fails.
Based on the above technical scheme, further, the bluetooth feature value at least comprises bluetooth service, bluetooth transmission and bluetooth reception, and the feature attribute corresponding to the bluetooth feature value at least comprises write-only, notification, indication and reading.
Based on the above technical solution, in step S4, the function test item includes a buzzer test item, and the test process includes the following steps:
step a: a command for opening the buzzer is sent by Bluetooth;
step b: the first two bits of the return value are read by the controlled software system, whether the set condition is met or not is judged, if yes, the next step is carried out, if not, the return value is wrong, and a buzzer opening command is sent again;
step c: and judging the third bit and the fourth bit of the return value in sequence, and when the set condition is met, performing corresponding operation of the set condition.
Based on the above technical solution, in step c, when the third bit of the return value is determined, according to different conditions set by the third bit, there is any one of the type, the motor control, the white LED control, the blue LED control and the low power consumption control corresponding to the determined result.
Based on the above technical solution, in step c, when the fourth bit of the return value is determined, according to different conditions set by the fourth bit, any one of the cases of successful buzzer opening, no buzzer action and failed buzzer opening is corresponding to the determined result.
Based on the above technical solution, in step S4, the function test item includes a battery test item, a command for acquiring electric quantity information is sent by bluetooth, the battery state is automatically determined according to the return value, and if the battery state is not returned to the abnormal state of charge, the test is successful.
Based on the above technical solution, in step S4, the function test item includes an EEPROM test item, the bluetooth sends a command for reading the device information, obtains the device information stored in the circuit board to be tested, replaces part of the information of the circuit board to be tested with the SN number to be written, replaces the CRC check code with the last 5 bits of the circuit board to be tested, replaces the first 5 bits of the circuit board to be tested with 44, the bluetooth sends a command for writing new information after replacement, the bluetooth sends a command for reading the circuit board to be tested again, and compares part of the SN number information of the read device information with the newly written SN number, if the same test is successful, otherwise, the test fails.
Based on the above technical solution, in step S4, the functional test item includes a bluetooth connection mode low-power consumption current test item, and the relay part pin connection is turned on and/or off, and the universal meter is used to collect the average current value in the set time period, and if the average current value is automatically determined to be smaller than the set value, the test is successful.
Based on the above technical solution, in step S4, the function test item includes a shutdown test item, and when the buzzer is heard and the LED lamp is turned off, the shutdown test is considered to be successful.
A PCBA test system based on Bluetooth interaction adopts a PCBA test method based on Bluetooth interaction, and comprises a circuit board to be tested, a relay, a serial port conversion module, an interface module, a burner and a voltage and current acquisition card, wherein the interface module comprises a first interface end and a second interface end, the relay and the voltage and current acquisition card are connected with a test point of the circuit board to be tested through pins, and the serial port conversion module, the first interface end, the second interface end and the burner are respectively connected with the relay through pins.
Based on the technical scheme, still further, the relay still is connected with universal meter, motor link, battery link, regulated power supply end and USB power supply end respectively through the pin. The power supply end of the stabilized voltage power supply supplies power for the circuit board to be tested.
A PCBA testing device based on Bluetooth interaction adopts a PCBA testing method based on Bluetooth interaction, and the PCBA testing device comprises an operation unit and a fixing unit, wherein a placing table is arranged on the operation unit, a circuit board to be tested is arranged on the placing table, the fixing unit is arranged at the upper end of the operation unit, a probe is arranged on the fixing unit, and the probe is arranged at the upper end of the circuit board to be tested.
Compared with the prior art, the invention has the following beneficial effects:
(1) The Bluetooth set by the invention can search the default Bluetooth name through setting, and the Bluetooth is connected and then automatically tests each test item. For example, the LED lamp is controlled to be turned on and off through Bluetooth, the buzzer is controlled to be turned on and off, the motor is controlled to be turned on and off, and battery information is read; and the connection can be automatically switched to test the low-power consumption current in the standby state and the Bluetooth connection state.
(2) According to the scheme disclosed by the invention, after the function test is finished, the bar code can be scanned through the bar code scanning gun and information is written into the corresponding product serial number through Bluetooth, so that the Bluetooth name of the product is automatically modified to be the unique Bluetooth name, and the Bluetooth name conflict during the whole machine test is avoided.
(3) In the testing process, the invention can automatically read the voltage and manually judge to realize the function test, automatically judge each test result to succeed or fail, store the test result in an electronic document, upload the test result to an MES system, facilitate the review of error points and improve the checking efficiency.
(4) The invention realizes the step-by-step test of the function items through Bluetooth, has the functions of automatic test, judgment result, data storage and the like, and does not need manual setting. And after the Bluetooth is connected, each functional component can be controlled wirelessly, and the functional state information is fed back. The invention also provides a voltage and current acquisition card, which can realize simultaneous measurement of 16 paths of voltage within 1 second, and can also customize the test acquisition card according to voltage types (alternating current, direct current) and voltage ranges so as to improve the test efficiency.
(5) According to the invention, the characteristic setting can be automatically selected according to different low-power consumption chips through Bluetooth, and manual setting is not needed. And after the Bluetooth connection fails, automatically searching for the connection again. The Bluetooth name can be automatically input to search and connect, so that the testing efficiency is improved.
Drawings
FIG. 1 is a flow chart of a test method of the present invention;
FIG. 2 is a diagram of the testing process of the testing method of the present invention;
FIG. 3 is a diagram showing a test procedure for a Bluetooth connection test item in the test method of the present invention;
FIG. 4 is a diagram showing a testing process of a buzzer test item in the testing method of the present invention;
FIG. 5 is a schematic view of a portion of a test system according to the present invention;
FIG. 6 is a schematic circuit diagram of a voltage and current acquisition card of the test system of the present invention;
FIG. 7 is a schematic diagram of a testing device according to the present invention;
reference numerals: 1. an operation unit; 2. a placement table; 3. a probe; 4. a fixing unit; 5. the handle is pressed.
Detailed Description
The invention is further illustrated and described below with reference to the drawings and detailed description. The technical features of the embodiments of the invention can be combined correspondingly on the premise of no mutual conflict.
In order that the above objects, features and advantages of the invention will be readily understood, a more particular description of the invention will be rendered by reference to the appended drawings. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be embodied in many other forms than described herein and similarly modified by those skilled in the art without departing from the spirit of the invention, whereby the invention is not limited to the specific embodiments disclosed below. The technical features of the embodiments of the invention can be combined correspondingly on the premise of no mutual conflict.
In the description of the present invention, it will be understood that when an element is referred to as being "connected" to another element, it can be directly connected to the other element or be indirectly connected with intervening elements present. In contrast, when an element is referred to as being "directly connected" to another element, there are no intervening elements present.
Example 1
As shown in fig. 1 and 2, a PCBA testing method based on bluetooth interaction includes the following steps:
step S1: placing the circuit board to be tested at a test position, and starting test operation;
step S2: scanning the serial number of the circuit board to be tested;
step S3: judging whether the digits of the serial number meet the condition, if so, performing step S4, otherwise, returning to step S2; wherein the number of bits of the sequence number is 12 bits.
Step S4: starting to test a plurality of functional test items on the circuit board to be tested; specifically, the function test items include a 3V voltage test item, an MCU burn test item, a battery charging voltage test item, a motor no-signal voltage test item, a motor signal voltage test item, a standby mode low power consumption current test item, a motor voltage test item, a bluetooth connection test item, a buzzer test item, a battery test item, an EEPROM test item, a bluetooth connection mode low power consumption current test item, a shutdown test item, a voltage test item for controlling a motor signal, an output voltage test item of a boost chip, a voltage test item of a charge management chip, a voltage test item of a voltage stabilizing chip, and the like. The Bluetooth connection test item, the buzzer test item, the battery test item, the EEPROM test item, the Bluetooth connection mode low-power consumption current test item and the shutdown test item need to be tested independently after the Bluetooth connection is successful, and other test items can be tested independently directly.
Step S5: if each test item is normal, storing test result data, and ending the test; if any one of the test items is abnormal, the test operation is stopped, and the test failure information is stored. That is, each test success or test failure is saved in real time in the EXCEL document. The operator can test the operator interface according to the flow, and if the maintenance operation is needed, the operator can test the pages of the technician individually.
Specifically, for each test item, its corresponding test procedure and conditions are as follows:
1. and aiming at a 3V voltage test item, testing by using a voltage and current acquisition card, adopting a2 nd path of test, monitoring measured data by a terminal background in real time, and when the displayed test result meets the condition of 3 V+/-3%, testing the data normally, otherwise, testing abnormally.
2. Aiming at MCU burning test items, the automatic burning operation is controlled by the background after the relay is started and the burner is connected, and after the background control returns the information of normal data testing, the burning test is completed. The specific 2, 4, 5, 6, 14, 15 and 16 pins of the starting relay are connected with a burner, and then the burner is automatically burnt under the control of a program of a terminal background, and when the program judges that the return information has 'Reset target'; "100%"; after the OK information, namely the successful burning test, if any condition is absent, the burning test failure is directly judged. After the burning is finished, pins 2, 4, 5, 6, 14, 15 and 16 of the relay are closed.
3. Aiming at a battery charging voltage test item, a voltage and current acquisition card is used for testing, a 6 th test is adopted, measured data is monitored by a terminal background in real time, when the displayed test result meets the condition of 4.2 V+/-5%, the data test is normal, and otherwise, the test is abnormal.
4. Aiming at a motor no-signal voltage test item, a voltage and current acquisition card is used for measurement, a 4 th path of test is adopted, the measured data is monitored by a terminal background in real time, when the displayed test result meets the condition of 0-0.3V, the data test is normal, and otherwise, the test is abnormal; the motor is also provided with a signal voltage test item, a voltage and current acquisition card is used for measurement, a 4 th test is adopted, measurement data is monitored by a terminal background in real time, when the displayed test result meets the condition of 5 V+/-10%, the data test is normal, and otherwise, the test is abnormal.
5. And aiming at the low-power consumption current test item in the standby mode, starting and/or closing a pin of a relay part, measuring the average value of the current in a set time period by using a universal meter, and when the average value of the test is smaller than the set value, testing the data normally. Wherein the test average value is less than 120mA.
6. Aiming at the motor voltage test item, the relay part pin is opened and/or closed, the voltage and current acquisition card is used for testing, when the test result meets the condition of 6V plus or minus 5%, the data test is normal, and otherwise, the test is abnormal.
7. For the bluetooth connection test item, referring to fig. 3, the test procedure includes the following steps: step 1: setting search time, bluetooth name and 'write only' feature option, starting time search, and starting Bluetooth search operation; step 2: searching and outputting a Bluetooth broadcast name, searching a designated Bluetooth name, and acquiring a Bluetooth characteristic value; the bluetooth broadcast name is embodied in a combination of an item name and a bluetooth name, for example, the bluetooth broadcast name is ARVN701-V2.02023000002, and 2023000002 is the SN number of the written bluetooth name. Step 3: judging whether the set number of characteristic values are met, if yes, the Bluetooth connection is successful, otherwise, the Bluetooth connection is considered to be failed; among them, the number of set feature values is preferably 3. Step 4: bluetooth sends a function test command and returns function test state data; step 5: analyzing the state data, and comparing the analysis result with the set Bluetooth name; step 6: if the Bluetooth names are consistent, the connection is successful, otherwise, the connection fails. The Bluetooth characteristic value at least comprises Bluetooth service, bluetooth sending and Bluetooth receiving, and the characteristic attribute corresponding to the Bluetooth characteristic value at least comprises writing only, notification, indication and reading, wherein after the Bluetooth peripheral service is acquired, a terminal background (main equipment) can carry out read-write transmission control on various characteristic words, and the characteristic words mainly comprise write, read, notify, indication and other main communication modes. For the write feature word of the Bluetooth peripheral, the main equipment (such as a mobile phone) can perform write operation; for read, the master device can then read the information from it; the write and read belong to passive control for the bluetooth peripheral, i.e. the bluetooth peripheral passively accepts the communication control of the main control. The notify and indicator are that the bluetooth peripheral actively transmits data to the master device, but the master device is about to subscribe to the corresponding information update of the dynamics in advance. After the Notify data, the master device does not need a response, while the indicator needs a response. Specifically, a timer is used to realize timing search based on C# and Bluetooth search is started after the search time is set, bluetooth is connected by selecting a Bluetooth Characteristic value option corresponding to PCBA low-power Bluetooth, searching connection is conducted according to a designated Bluetooth name, corresponding GattServices are obtained after the designated Bluetooth name is searched, GATT service is created and initialized, a GATT service is created, and a Characterizing service is created, and after the device is connected to the service, reading and writing operations are conducted on the Characterizing service. If the connection is successful, bluetooth data transmission and reception can be performed; if the connection is unsuccessful, the connection needs to be searched again. After the bluetooth test is successful, the control relay can be tested stepwise by a test program, for example: the relay can control the PCBA circuit board to be tested to be powered on and powered off, the burner is in short circuit connection with the bootload, the low-power-consumption current test is controlled, and the test of a plurality of test items such as battery power supply switching and the like is controlled.
8. For the test item comprising the buzzer, the test process comprises the following steps: step a: a command for opening the buzzer is sent by Bluetooth; step b: the first two bits of the return value are read by the controlled software system, whether the set condition is met or not is judged, if yes, the next step is carried out, if not, the return value is wrong, and a buzzer opening command is sent again; step c: and judging the third bit and the fourth bit of the return value in sequence, and when the set condition is met, performing corresponding operation of the set condition. In step c, when the third bit of the return value is determined, according to different conditions set by the third bit, any one of the type, the motor control, the white LED control, the blue LED control and the low power consumption control is corresponding to the determined result. Meanwhile, in the step c, when the fourth bit of the return value is judged, according to different conditions set by the fourth bit, any one of the cases of successful buzzer opening, no buzzer action and buzzer opening failure exists in the corresponding judgment result. For example, after a program of a terminal background is started, a command is sent to the relay, the 1 st path of the relay is closed, a power supply is connected, and the PCBA circuit board to be tested is electrified; after power-on, the control program sends a command to carry out Bluetooth connection, and after connection is successful, bluetooth sends a buzzer opening command (06 82 08 01 14 D4); whether the buzzer sound is normally heard is judged (the buzzer 08 01 can be judged to be successfully opened according to the Bluetooth return value 06 A2 08 01 92 12 as shown in fig. 4) or not, and the next test is automatically carried out after the buzzer sound is normally judged to click the [ yes ] button; if the buzzer is abnormal, clicking the [ no ] button to test the interface to turn red, and automatically stopping the program. The test record is automatically saved to EXCEL.
9. Aiming at the battery test item, a command for acquiring electric quantity information is sent by Bluetooth, the state of the battery is automatically judged according to the return value, and if the battery is not returned to be abnormally charged, the test is successful. For example, bluetooth transmits a command to acquire power information ("04 83 D0"), and automatically determines the battery status according to the return value, and if no charge abnormality is returned, the test is successful. A return value of 00 from bit 7 indicates that no charge is performed, 01 indicates that charge is in progress, 02 indicates that charge is completed, and 03 indicates that charge is abnormal.
10. Aiming at EEPROM test items, bluetooth sends a command for reading equipment information, acquires the equipment information stored in the circuit board to be tested, replaces part of the information of the circuit board to be tested with an SN number to be written, replaces CRC (cyclic redundancy check) codes with the last 5 bits of the information of the circuit board to be tested, replaces the first 5 bits of the information of the circuit board to be tested with 44, sends an instruction for writing new information after replacement, and sends an instruction for reading the information of the circuit board to be tested again, and compares part of the SN number information of the equipment information with the newly written SN number, if the same test is successful, otherwise, the test fails. Specifically, the method is characterized in that the SN number is written into and read from a test, the Bluetooth sends 04 11 and 31B 2 to obtain information of the circuit board to be tested, the SN number to be written is used for replacing 62 to 95 bits of the information of the circuit board to be tested, the last 5 bits are used for replacing CRC (cyclic redundancy check) codes, the Bluetooth sends the command to write new information of the circuit board to be tested after the previous 5 bits are replaced by 44, the Bluetooth sends 04 F2 and 16 to read equipment information, and the equipment information is compared with the written SN number, if the equipment information is the same, the test is successful, and if the equipment information is different, the equipment information is failed.
11. Aiming at a Bluetooth connection mode low-power consumption current test item, the pin connection of the relay part is started and/or closed, a universal meter is used for collecting the average value of the current in a set time period, and if the average value is automatically judged to be smaller than a set value, the test is successful.
12. Aiming at the shutdown test item, when the buzzer sounds and the LED lamp is turned off, the shutdown test is considered to be successful. For example, after the bluetooth transmits 04 90 B0 82, the buzzer sounds and the LED lights are turned off, the sound is heard and the lights are turned off by manual judgment [ yes ] continue the test, and the abnormal selection [ no ] exits the test procedure.
13. Aiming at the output voltage test item of the boost chip, firstly, the pin 11 of the relay is started, the pin 7 of the relay is started for 1 second, then the pin 7 of the relay is closed for 2.5 seconds, the 3 rd path of test of the voltage and current acquisition card is controlled by the terminal background, whether the test is successful or failed is automatically judged according to the standard 6V plus or minus 5%, if the test result is within the range, the test is judged to be successful, otherwise, the test is failed.
14. For the LED lamp test item, a blue lamp is respectively turned on by Bluetooth sending a command (white lamp on 06 82 02 01 FB 1F) (white lamp off 06 82 0202 CB 7C) (blue lamp on 06 82 04 01 51 B9) (blue lamp off 06 82 04 02 61 DA), the LED lamp is manually judged to be turned on or off, the test is continued if normal, and the test program is exited if abnormal.
The method realizes the step-by-step test of the function items through Bluetooth, has the functions of automatic test, judgment result, data storage and the like, and does not need manual setting. And after the Bluetooth is connected, each functional component can be controlled wirelessly, and the functional state information is fed back.
Example 2
A PCBA test system based on Bluetooth interaction adopts a PCBA test method based on Bluetooth interaction, and comprises a circuit board to be tested, a relay, a serial port conversion module, an interface module, a burner and a voltage and current acquisition card, wherein the interface module comprises a first interface end and a second interface end, the relay and the voltage and current acquisition card are connected with a test point of the circuit board to be tested through pins, and the serial port conversion module, the first interface end, the second interface end and the burner are respectively connected with the relay through pins. The relay is also respectively connected with a universal meter, a motor connecting end, a battery connecting end, a stabilized voltage supply power supply end and a USB power supply end through pins. The power supply end of the stabilized voltage power supply supplies power for the circuit board to be tested.
Specifically, referring to fig. 6, the voltage and current collecting card is provided with a plurality of pins, where the plurality of pins correspond to multiple paths of test ends and a grounding end, for example, pin 1 corresponds to a 1 st path of test end, pin 2 corresponds to a2 nd path of test end, and so on; the 1 st path is connected with a charging management chip on a circuit board to be tested through a pin on a voltage and current acquisition card, the voltage of the chip can be tested, and the test voltage is set to be 5V and corresponds to TP3 identification in FIG. 6; the 2 nd path is connected with a voltage stabilizing chip at the upper end of the circuit board to be tested through a pin on the voltage and current acquisition card, the voltage of the chip is tested, the test voltage is set to be 3V, and the test voltage corresponds to TP8 identification in FIG. 6; the 3 rd path is connected with a boosting chip on the circuit board to be tested through a pin on the voltage and current acquisition card, so that the voltage of the chip can be measured, the test voltage is set to be 6V, and the test voltage corresponds to the TP6 mark in FIG. 6; the 4 th path is connected with the circuit board to be tested through a pin on the voltage and current acquisition card, so that a motor no-signal voltage test item and a motor signal voltage test item can be measured, and the test items correspond to TP19 and TP20 marks in FIG. 6; the 5 th path is connected with the circuit board to be tested through a pin on the voltage and current acquisition card and is used for measuring the voltage condition of the control motor signal under the state of signal presence or no signal, and the voltage condition corresponds to TP18 identification in FIG. 6; the 6 th path is connected with the circuit board to be tested through a pin on the voltage and current acquisition card, and is used for testing the charging voltage of the battery, and corresponds to TP4 identification in FIG. 6.
Further, the relay is also provided with a plurality of pins, as shown in fig. 5, 1-32 pins are provided, wherein the pin 1 and the pin 2 form a 1 st path power supply section, and the signal connection section is used for supplying power to the relay after the relay is started; pins 3-12 form a2 nd-6 th signal connection section, pins 27-32 form a 14 th-16 th signal connection section, part of pins are connected with pins of a TMS320 burner, and after a relay is started, the burner is connected to a circuit board for MCU burning test; the pin 13 and the pin 14 form a 7 th signal connection section, and the function is to perform PCBA startup test after the relay is started; pins 15-20 form an 8 th-10 th signal connection section which is used for performing typeC upgrade test after the relay is started; the pin 21 and the pin 22 form an 11 th signal connection section, and after the relay is started, the motor is connected to perform motor test; the pin 23 and the pin 24 form a 12 th signal connection section, and after the relay is started, the relay is switched to a battery power supply mode, so that battery test can be realized; the pin 25 and the pin 26 form a 13 th signal connection section, and after the relay is started, the low-power consumption current test can be performed.
Example 3
As shown in fig. 7, based on the schemes described in embodiments 1 and 2, a PCBA testing apparatus based on bluetooth interaction is implemented, which includes an operation unit 1 and a fixing unit 4, a placing table 2 is disposed on the operation unit 1, a circuit board to be tested is disposed on the placing table 2, the fixing unit 4 is mounted on the upper end of the operation unit 1, a probe 3 is disposed on the fixing unit 4, and the probe 3 is disposed on the upper end of the circuit board to be tested. Wherein the fixing unit 4 may be provided as a fixing column.
The test principle is as follows: the PCBA circuit board to be tested is placed on the placement table 2, the fixed column is pressed down by controlling the pressing handle 5, the probe needle head on the probe 3 is contacted with the test point on the circuit board, meanwhile, the probe 3 is respectively connected with the voltage and current acquisition card and the relay through the transmission line, and the test of the test points corresponding to each test item on the PCBA circuit board can be realized through corresponding circuit connection. In the test process, monitoring test data is implemented by a terminal background, wherein a dialogue box for focusing a mouse cursor to a serial number is also implemented, and a code scanning gun is used for scanning the serial number of the PCBA; and (3) manually inputting the serial number of the PCBA circuit board to be tested in the Lot number dialog box, correctly placing the PCBA circuit board to be tested on the placing table 2, inserting the TypeC line, operating the pressing handle 5, continuing the test if the operation is correct, and exiting the test program if the operation is incorrect. The program automatically carries out test judgment, in the test process, according to the prompt operation of the program information frame, if the operation is correct, the test is continued, if the operation is incorrect, the test program is exited, and all test items are green shading and then test OK is carried out. And (3) data are saved to the EXCEL and uploaded to the MES system after the test is completed or the test fails.
Finally, it should be noted that the above description is only for illustrating the technical solution of the present invention, and not for limiting the scope of the present invention, and that the simple modification and equivalent substitution of the technical solution of the present invention can be made by those skilled in the art without departing from the spirit and scope of the technical solution of the present invention.

Claims (16)

1. A PCBA testing method based on Bluetooth interaction is characterized by comprising the following steps:
step S1: recognizing that the circuit board to be tested is placed at the test position, and starting test operation;
step S2: scanning the serial number of the circuit board to be tested;
step S3: judging whether the digits of the serial number meet the condition, if so, performing step S4, otherwise, returning to step S2;
step S4: starting to test a plurality of functional test items on the circuit board to be tested;
wherein, the function test item includes bluetooth connection test item, and the test process includes following steps:
step 1: setting search time, bluetooth name and 'write only' feature option, starting time search, and starting Bluetooth search operation;
step 2: searching and outputting a Bluetooth broadcast name, searching a designated Bluetooth name, and acquiring a Bluetooth characteristic value;
step 3: judging whether the set number of characteristic values are met, if yes, the Bluetooth connection is successful, otherwise, the Bluetooth connection is considered to be failed;
step 4: bluetooth sends a function test command and returns function test state data;
step 5: analyzing the state data, and comparing the analysis result with the set Bluetooth name;
step 6: if the Bluetooth names are consistent, the connection is successful, otherwise, the connection fails;
the function test item comprises a buzzer test item, and the test process comprises the following steps:
step a: a command for opening the buzzer is sent by Bluetooth;
step b: reading the first two bits of the return value, judging whether the return value meets the set condition, if so, carrying out the next step, otherwise, making an error in the return value, and resending a buzzer opening command;
step c: sequentially judging the third bit and the fourth bit of the return value, and when the set condition is met, performing corresponding operation of the set condition;
the function test items comprise EEPROM test items, bluetooth sends a command for reading equipment information, equipment information stored in a circuit board to be tested is obtained, a SN number to be written is used for replacing part of the information of the circuit board to be tested, the last 5 bits of the information of the circuit board to be tested is used for replacing CRC check codes, after the first 5 bits of the information of the circuit board to be tested are replaced by 44, bluetooth sends an instruction for writing new information after replacement, bluetooth sends an instruction for reading the information of the circuit board to be tested again, part of the SN number information of the read equipment information is compared with the newly written SN number, if the same test is successful, otherwise, the test fails;
step S5: if each test item is normal, storing test result data, and ending the test; if any one of the test items is abnormal, the test operation is stopped, and the test failure information is stored.
2. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step S4, the function test item comprises a 3V voltage test item, the voltage and current acquisition card is used for testing, when a test result meets the condition of 3 V+/-3%, the data test is normal, and otherwise, the test is abnormal.
3. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step S4, the function test item comprises an MCU burning test item, the automatic burning operation is controlled by a background after the function test item is connected with a burner by starting a relay, and the burning test is completed after the background control returns information of normal data testing.
4. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step S4, the function test item comprises a battery charging voltage test item, the voltage and current acquisition card is used for testing, when a test result meets the condition of 4.2 V+/-5%, the data test is normal, and otherwise, the test is abnormal.
5. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step S4, the function test item comprises a motor no-signal voltage test item, the voltage and current acquisition card is used for measuring, when a test result meets the condition of 0-0.3V, the data test is normal, and otherwise, the test is abnormal; the motor is also provided with a signal voltage test item, the voltage and current acquisition card is used for measuring, when the test result meets the condition of 5 V+/-10%, the data test is normal, and otherwise, the test is abnormal.
6. The method according to claim 1, wherein in step S4, the functional test item includes a standby mode low power consumption current test item, a relay part pin is turned on and/or off, a current average value in a set period is measured by using a multimeter, and when the measured average value is smaller than a set value, the data test is normal.
7. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step S4, the function test item comprises a motor voltage test item, a relay part pin is opened and/or closed, a voltage and current acquisition card is used for testing, when a test result meets the condition of 6 V+/-5%, data testing is normal, and otherwise, testing is abnormal.
8. The PCBA testing method based on bluetooth interaction according to claim 1, wherein the bluetooth feature value at least includes bluetooth service, bluetooth transmission and bluetooth reception, and the feature attribute corresponding to the bluetooth feature value at least includes write-only, notification, indication and reading.
9. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step c, when the third bit of the return value is judged, according to different conditions set by the third bit, any one of the type, the motor control, the white LED control, the blue LED control and the low power consumption control is correspondingly judged.
10. The method for testing the PCBA based on the Bluetooth interaction according to claim 1, wherein in the step c, when the fourth bit of the return value is judged, according to different conditions set by the fourth bit, any one of the cases of successful buzzer opening, no buzzer action and buzzer opening failure is caused according to the corresponding judgment result.
11. The method for testing PCBA based on bluetooth interaction according to claim 1, wherein in step S4, the function test item includes a battery test item, the bluetooth sends a command for acquiring electric quantity information, the battery state is automatically determined according to the return value, and if no abnormal charging is returned, the test is successful.
12. The method according to claim 1, wherein in step S4, the functional test item includes a bluetooth connection mode low-power current test item, a relay part pin is turned on and/or off, a universal meter is used to collect an average value of current in a set period, and if the average value is automatically determined to be smaller than a set value, the test is successful.
13. The method according to claim 1, wherein in step S4, the function test item includes a shutdown test item, and when the buzzer is heard and the LED light is turned off, the shutdown test is considered to be successful.
14. The PCBA testing system based on Bluetooth interaction adopts the PCBA testing method based on Bluetooth interaction according to any one of claims 1-13, and is characterized by comprising a circuit board to be tested, a relay, a serial port conversion module, an interface module, a burner and a voltage and current acquisition card, wherein the interface module comprises a first interface end and a second interface end, the relay and the voltage and current acquisition card are connected with a test point of the circuit board to be tested through pins, and the serial port conversion module, the first interface end, the second interface end and the burner are respectively connected with the relay through pins.
15. The PCBA testing system based on bluetooth interaction of claim 14, wherein the relay is further connected with a multimeter, a motor connection, a battery connection, a regulated power supply, and a USB supply, respectively, through pins.
16. A PCBA testing device based on Bluetooth interaction, which adopts the PCBA testing method based on Bluetooth interaction according to any one of claims 1-13, and is characterized by comprising an operation unit and a fixing unit, wherein a placing table is arranged on the operation unit, a circuit board to be tested is arranged on the placing table, the fixing unit is arranged at the upper end of the operation unit, a probe is arranged on the fixing unit, and the probe is arranged at the upper end of the circuit board to be tested.
CN202311525284.1A 2023-11-16 2023-11-16 PCBA testing method, system and device based on Bluetooth interaction Active CN117250482B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311525284.1A CN117250482B (en) 2023-11-16 2023-11-16 PCBA testing method, system and device based on Bluetooth interaction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311525284.1A CN117250482B (en) 2023-11-16 2023-11-16 PCBA testing method, system and device based on Bluetooth interaction

Publications (2)

Publication Number Publication Date
CN117250482A CN117250482A (en) 2023-12-19
CN117250482B true CN117250482B (en) 2024-03-15

Family

ID=89126737

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311525284.1A Active CN117250482B (en) 2023-11-16 2023-11-16 PCBA testing method, system and device based on Bluetooth interaction

Country Status (1)

Country Link
CN (1) CN117250482B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930007330A (en) * 1991-09-30 1993-04-22 강진구 PCB inspection device
CN204517822U (en) * 2015-02-02 2015-07-29 北京兴科迪科技有限公司 A kind of result with WIFI can be reviewed bluetooth and automatically be detected frock
CN205539367U (en) * 2016-04-05 2016-08-31 广州红象医疗科技有限公司 PCBA function automatic test system
CN106771976A (en) * 2016-12-30 2017-05-31 希姆通信息技术(上海)有限公司 A kind of intelligent test method of intelligent test system and circuit board
CN109379730A (en) * 2018-10-11 2019-02-22 国网四川省电力公司电力科学研究院 A kind of blue-teeth data exchange method and bluetooth equipment
CN110418358A (en) * 2019-07-10 2019-11-05 珠海荣邦智能科技有限公司 The bluetooth test method and device of circuit board
CN114113973A (en) * 2021-09-23 2022-03-01 深圳市云伽智能技术有限公司 Circuit board testing method and device, computer equipment and storage medium thereof
CN114280457A (en) * 2021-12-28 2022-04-05 巨翊医疗科技(苏州)有限公司 PCBA test system, test control method and use method
CN115656787A (en) * 2022-12-21 2023-01-31 巨翊医疗科技(苏州)有限公司 Testing device and method for PCBA with negative pressure sensor and infrared sensor
CN115776648A (en) * 2022-11-21 2023-03-10 深圳凯晖电子科技有限公司 Bluetooth broadcasting method and device and computer equipment
WO2023116752A1 (en) * 2021-12-22 2023-06-29 上海商米科技集团股份有限公司 Test method and test apparatus for code scanner head

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9854372B2 (en) * 2015-08-29 2017-12-26 Bragi GmbH Production line PCB serial programming and testing method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR930007330A (en) * 1991-09-30 1993-04-22 강진구 PCB inspection device
CN204517822U (en) * 2015-02-02 2015-07-29 北京兴科迪科技有限公司 A kind of result with WIFI can be reviewed bluetooth and automatically be detected frock
CN205539367U (en) * 2016-04-05 2016-08-31 广州红象医疗科技有限公司 PCBA function automatic test system
CN106771976A (en) * 2016-12-30 2017-05-31 希姆通信息技术(上海)有限公司 A kind of intelligent test method of intelligent test system and circuit board
CN109379730A (en) * 2018-10-11 2019-02-22 国网四川省电力公司电力科学研究院 A kind of blue-teeth data exchange method and bluetooth equipment
CN110418358A (en) * 2019-07-10 2019-11-05 珠海荣邦智能科技有限公司 The bluetooth test method and device of circuit board
CN114113973A (en) * 2021-09-23 2022-03-01 深圳市云伽智能技术有限公司 Circuit board testing method and device, computer equipment and storage medium thereof
WO2023116752A1 (en) * 2021-12-22 2023-06-29 上海商米科技集团股份有限公司 Test method and test apparatus for code scanner head
CN114280457A (en) * 2021-12-28 2022-04-05 巨翊医疗科技(苏州)有限公司 PCBA test system, test control method and use method
CN115776648A (en) * 2022-11-21 2023-03-10 深圳凯晖电子科技有限公司 Bluetooth broadcasting method and device and computer equipment
CN115656787A (en) * 2022-12-21 2023-01-31 巨翊医疗科技(苏州)有限公司 Testing device and method for PCBA with negative pressure sensor and infrared sensor

Also Published As

Publication number Publication date
CN117250482A (en) 2023-12-19

Similar Documents

Publication Publication Date Title
CN101577078B (en) Full automatic adjustment and test system for liquid crystal display
CN110308385A (en) A kind of PCBA Online Transaction Processing and method
CN111831495A (en) Production automation test method and system
CN108319240B (en) Method and system for collecting operation and maintenance knowledge base applied to field operation terminal
CN105374202A (en) Radio frequency remote controller automatic test system
CN103728547A (en) Testing system used for testing circuit board and leakage current testing method
CN111308934A (en) Power supply time sequence power-on monitoring circuit
CN112595956A (en) Test system of intelligence lock PCBA board
CN117250482B (en) PCBA testing method, system and device based on Bluetooth interaction
CN110569160A (en) Test system of development board based on communication module
CN107466369A (en) Fingerprint chip detecting method, apparatus and system
CN113140217B (en) Voice instruction testing method, testing device and readable storage medium
CN113778470B (en) JTAG-based portable DSP (digital Signal processor) burner and burning method
CN105652114B (en) Method of supplying power to, device and measurement jig during a kind of test display screen
CN115840129A (en) Board card testing method and device
CN106257305B (en) One kind obtaining source list automated detection method based on GNSS receiver hardware module
CN106338745A (en) Hardware module automatic detection method based on GNSS receivers
CN112860582A (en) Local voice recognition module production test method
CN111212281A (en) Video board detection method and detection device
CN115389912B (en) OTP MCU chip detection device and detection method
CN217181141U (en) Automatic hardware measuring tool
CN113127278B (en) Automatic testing system and method for satellite-borne computer
CN219936682U (en) SSD forced power down test equipment
CN116232961A (en) Method for automatically debugging remote host based on python
CN115248372B (en) Error-proofing automatic test method and error-proofing automatic test system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant