[go: up one dir, main page]

CN116953475A - Method for automatically detecting circuit board - Google Patents

Method for automatically detecting circuit board Download PDF

Info

Publication number
CN116953475A
CN116953475A CN202310774789.5A CN202310774789A CN116953475A CN 116953475 A CN116953475 A CN 116953475A CN 202310774789 A CN202310774789 A CN 202310774789A CN 116953475 A CN116953475 A CN 116953475A
Authority
CN
China
Prior art keywords
test
circuit board
interface
marking
color
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.)
Pending
Application number
CN202310774789.5A
Other languages
Chinese (zh)
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.)
Zhejiang Zhongguang Electric Appliance Group Co Ltd
Original Assignee
Zhejiang Zhongguang Electric Appliance Group Co 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 Zhejiang Zhongguang Electric Appliance Group Co Ltd filed Critical Zhejiang Zhongguang Electric Appliance Group Co Ltd
Priority to CN202310774789.5A priority Critical patent/CN116953475A/en
Publication of CN116953475A publication Critical patent/CN116953475A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/2832Specific tests of electronic circuits not provided for elsewhere
    • G01R31/2834Automated test systems [ATE]; using microprocessors or computers

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Microelectronics & Electronic Packaging (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention relates to a method for automatically detecting a circuit board, which comprises the following steps: importing a configuration file of the circuit board; completing configuration according to the configuration file, determining a read-write serial port and starting a test, wherein the test comprises a switch test and a numerical test; and updating the interface according to the test result. The method can automatically detect the circuit board and display the detection result through imaging.

Description

Method for automatically detecting circuit board
Technical Field
The invention relates to the technical field of circuit board detection, in particular to a method for automatically detecting a circuit board.
Background
The existing detection method needs technicians to connect circuits and then sequentially and manually open detection items of all switches, so that the phenomenon of each operation is observed by naked eyes, and the purpose of detecting the circuit board is achieved.
The existing detection method requires technicians to manually record whether the detected circuit board is qualified or not and manually generate reports.
The existing detection method has the following problems:
1. cumbersome and time consuming. The number of detection items of the circuit board is generally close to half a hundred, and each detection item needs to be independently operated and observed, so that the efficiency is low.
2. Complex and error-prone. The detection phenomenon of each detection item needs to be independently judged, and the phenomenon comprises the on and off of an indicator lamp and the voltage level of a pin, so that evaluation indexes are complex, and misjudgment is easy to occur. Reports are also generated by manual recording, and operational errors may occur.
3. Is not intuitive. The result of whether each test item is acceptable cannot be imaged.
Disclosure of Invention
In order to solve the above problems, an object of the present invention is to provide a method for automatically inspecting a circuit board, which is capable of automatically inspecting the circuit board and presenting the inspection result through imaging.
A method of automatically inspecting a circuit board, the method comprising:
s1, importing a configuration file of a circuit board;
s2, completing interface configuration according to the configuration file, and presenting test items required to be carried out by the circuit board on an interface;
s3, determining a read-write serial port and starting a test, wherein the test comprises a switch test and a numerical test;
s31, the switch test includes:
s311, generating a command message, wherein the command message is used for controlling one switch to be opened each time and other switches to be closed;
s312, sending a command message to the circuit board, sending a serial port reading command, and reading a feedback message to the buffer area;
s313, reading buffer data, analyzing a feedback message, and determining whether to open corresponding switches and keep other switches closed according to an analysis result of the feedback message;
s314, marking corresponding test items in the interface according to the analysis result;
s32, the numerical test includes:
s321, acquiring an allowable numerical reading error range, generating a random number in the error range, and storing the random number in a buffer area to wait for reading;
s322, writing the random number into a corresponding register, then sending a read instruction to read data, analyzing the read data, and determining whether the difference value between the read numerical value and the random number is within an error range;
s323, marking the corresponding test item in the interface according to whether the difference value is within the error range.
Preferably, the method further comprises the steps of:
and S4, for each switching test and numerical test, storing a test result and test time.
The method for automatically inspecting a circuit board according to claim 2, further comprising the steps of:
and S5, generating a report according to a preset template according to the test result and exporting the report.
Preferably, when the switch test is performed, the multithreading is turned on, the sub-thread once performs step S312, the second sub-thread executes step S313, and the first sub-thread and the second sub-thread execute simultaneously.
Preferably, the step S314 includes: if the analysis result indicates that the corresponding switch is turned on and other switches are kept off, marking the corresponding test item under test on the interface with a first color, otherwise marking the corresponding test item under test on the interface with a second color;
the step S323 includes: if the difference value between the read numerical value and the random number is within the preset error range, marking the corresponding test item icon on the interface with a first color, otherwise marking the corresponding test item icon on the interface with a second color.
Preferably, displaying a complete machine icon which refers to the circuit board under test on the interface;
if all the test items are qualified, marking the whole machine icon with a first color, otherwise marking the whole machine icon with a second color.
Preferably, the configuration file includes circuit principles of the circuit board, electric element layout, connection lines and allowable numerical reading error range.
By adopting the scheme, the invention has the following advantages:
1. simple and efficient. Only the correct configuration file is needed to be selected before the test, so that the detection is finished at one time, and complicated manual operation is not needed.
2. Is not easy to make mistakes. The operation and judgment are completed by the computer, so that the influence of the operation error of the technician on the test result is reduced.
3. Is visual. Whether each test is qualified or not and whether the whole test is qualified or not are directly displayed on the interface.
4. The report is convenient to process. The computer automatically generates a qualification rate form without manually counting the qualification rate.
Drawings
Fig. 1 is a flowchart of a method of the present embodiment.
Detailed Description
Embodiments of the present invention are described in detail below.
As shown in fig. 1, this embodiment discloses a method for automatically inspecting a circuit board, which is characterized in that the method includes:
s1, importing a configuration file of a circuit board;
s2, completing interface configuration according to the configuration file, and presenting test items required to be carried out by the circuit board on an interface;
s3, determining a read-write serial port and starting a test, wherein the test comprises a switch test and a numerical test;
s31, the switch test includes:
s311, generating a command message, wherein the command message is used for controlling one switch to be opened each time and other switches to be closed;
s312, sending a command message to the circuit board, sending a serial port reading command, and reading a feedback message to the buffer area;
s313, reading buffer data, analyzing a feedback message, and determining whether to open corresponding switches and keep other switches closed according to an analysis result of the feedback message;
s314, marking corresponding test items in the interface according to the analysis result;
s32, the numerical test includes:
s321, acquiring an allowable numerical reading error range, generating a random number in the error range, and storing the random number in a buffer area to wait for reading;
s322, writing the random number into a corresponding register, then sending a read instruction to read data, analyzing the read data, and determining whether the difference value between the read numerical value and the random number is within an error range;
s323, marking the corresponding test item in the interface according to whether the difference value is within the error range.
The circuit detection is divided into two types of switch detection and digital detection, wherein the switch detection is to firstly open a certain switch and then detect whether the switch is opened. The numerical value detection is to read the circuit board to see whether the corresponding data is in a preset value range. According to the method, the on-off detection and the numerical value detection of the circuit board are automatically realized, the configuration file of the circuit board is only required to be imported before the test, the downlink message with a specific function can be automatically generated according to the configuration file to realize the test during the test, the manual intervention is less, the operation is simple, and the error caused by the manual operation factor can be reduced.
In the method, after the test is started, for the switch test, a command message is generated according to the switch to be tested in the circuit board, and the generated command is sent circularly to open the switch item by item until the test of all the switches is completed. For numerical test, generating random numbers according to the positions needing numerical test, and carrying out numerical test on the positions item by item through the corresponding random numbers. In an embodiment, other messages may be generated according to the content required for testing, and used for performing other tests.
And for each switch test and numerical test, storing the test result and the test time into a database in a one-to-one correspondence manner so as to facilitate subsequent calling. And after all the tests are completed, generating a report according to a preset template according to the test result and outputting the report to obtain a qualification rate file of each detection item of the specific model, and manually arranging the report is not needed.
In the method of this embodiment, in order to improve the test efficiency, when the switch test is performed, the multithreading operation is started, the first sub-thread executes step S312, the second sub-thread executes step S313, and the first sub-thread and the second sub-thread execute simultaneously. By using multi-thread operation, the feedback data is analyzed while receiving and transmitting data, and the execution efficiency of the method can be improved.
In this embodiment, the step S2 completes interface configuration according to the configuration file, and presents test items required to be performed by the circuit board on an interface. The imported configuration file contains information such as a circuit principle, an electric element layout, connection lines, an allowed numerical reading error range and the like of the circuit board, so that the types and the number of the contained electric elements can be obtained by analyzing the information, further test items needing to be tested are determined, and the test items needing to be carried out on the circuit board are presented on an interface. In an embodiment, the test items that need to be performed may be presented by table formation, with each table representing one test item. In this embodiment, the step S314 includes: if the analysis result indicates that the corresponding switch is turned on and other switches are kept off, marking the corresponding test item on the interface with a first color, otherwise marking the corresponding test item on the interface with a second color; the step S323 includes: if the difference value between the read numerical value and the random number is within the preset error range, marking the corresponding test item on the interface with a first color, otherwise marking the corresponding test icon on the interface with a second color. For example, when presenting test items in a form, different test results may be visually presented by marking the cell in which the test item being performed is located as either a first color or a second color. If all the test items are qualified, marking the whole machine icon with a first color, otherwise marking the whole machine icon with a second color. The first color and the second color are different colors, and the test result can be visually presented through different color marks. In an embodiment, the first color may be green and the second color may be red. In other embodiments, other contrasting colors may be used as the first color and the second color by those skilled in the art.
The method takes configuration information of the circuit board as a model file to be imported, and completes interface configuration according to the model to generate a command written into the circuit board. After the configuration is completed and the serial port is selected, a test is started. After the test is started, the generated command is sent circularly to open the switch item by item or complete other test operations, and feedback data is received. And the software analyzes the feedback data while receiving and transmitting the data, if the analysis result shows that the test is qualified, the corresponding test item icon on the interface is turned green, and otherwise, the corresponding test item icon is turned red. If all the test items are qualified, turning green of the whole icon, otherwise turning red. After the test is completed, the test result and the test time are stored in a database together, and a derived report can be selected to obtain a qualification rate file of each detection item of a specific model. By adopting the method, only the correct configuration file is needed to be selected before the test, the detection is finished in one step, complicated manual operation is not needed, the percent of pass is not needed to be counted manually, and the computer automatically generates a percent of pass form; the operation and judgment are completed by a computer, so that the influence of the operation error of technicians on the test result is reduced; whether each test is qualified or not and whether the whole test is qualified or not are directly displayed on the interface.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.

Claims (7)

1. A method of automatically inspecting a circuit board, the method comprising:
s1, importing a configuration file of a circuit board;
s2, completing interface configuration according to the configuration file, and presenting test items required to be carried out by the circuit board on an interface;
s3, determining a read-write serial port and starting a test, wherein the test comprises a switch test and a numerical test;
s31, the switch test includes:
s311, generating a command message, wherein the command message is used for controlling one switch to be opened each time and other switches to be closed;
s312, sending a command message to the circuit board, sending a serial port reading command, and reading a feedback message to the buffer area;
s313, reading buffer data, analyzing a feedback message, and determining whether to open corresponding switches and keep other switches closed according to an analysis result of the feedback message;
s314, marking corresponding test items in the interface according to the analysis result;
s32, the numerical test includes:
s321, acquiring an allowable numerical reading error range, generating a random number in the error range, and storing the random number in a buffer area to wait for reading;
s322, writing the random number into a corresponding register, then sending a read instruction to read data, analyzing the read data, and determining whether the difference value between the read numerical value and the random number is within an error range;
s323, marking the corresponding test item in the interface according to whether the difference value is within the error range.
2. The method for automatically inspecting a circuit board according to claim 1, further comprising the steps of:
and S4, for each switching test and numerical test, storing a test result and test time.
3. The method for automatically inspecting a circuit board according to claim 2, further comprising the steps of:
and S5, generating a report according to a preset template according to the test result and exporting the report.
4. A method for automatically inspecting a circuit board according to claim 1,
when the switch test is performed, the multithreading operation is started, the first sub-thread executes step S312, the second sub-thread executes step S313, and the first sub-thread and the second sub-thread execute simultaneously.
5. A method for automatically inspecting a circuit board according to claim 1,
the step S314 includes: if the analysis result indicates that the corresponding switch is turned on and other switches are kept off, marking the corresponding test item under test on the interface with a first color, otherwise marking the corresponding test item under test on the interface with a second color;
the step S323 includes: if the difference value between the read numerical value and the random number is within the preset error range, marking the corresponding test item icon on the interface with a first color, otherwise marking the corresponding test item icon on the interface with a second color.
6. A method for automatically inspecting a circuit board according to claim 5,
displaying a complete machine icon indicating the circuit board under test on the interface;
if all the test items are qualified, marking the whole machine icon with a first color, otherwise marking the whole machine icon with a second color.
7. A method for automatically inspecting a circuit board according to claim 1,
the configuration file comprises the circuit principle of the circuit board, the layout of the electrical elements, the connection lines and the allowable numerical reading error range.
CN202310774789.5A 2023-06-28 2023-06-28 Method for automatically detecting circuit board Pending CN116953475A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310774789.5A CN116953475A (en) 2023-06-28 2023-06-28 Method for automatically detecting circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310774789.5A CN116953475A (en) 2023-06-28 2023-06-28 Method for automatically detecting circuit board

Publications (1)

Publication Number Publication Date
CN116953475A true CN116953475A (en) 2023-10-27

Family

ID=88448446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310774789.5A Pending CN116953475A (en) 2023-06-28 2023-06-28 Method for automatically detecting circuit board

Country Status (1)

Country Link
CN (1) CN116953475A (en)

Similar Documents

Publication Publication Date Title
CN111078482B (en) Communication navigation equipment test system, method, equipment and readable storage medium
CN103376380B (en) A kind of test system and method
CN110543300B (en) Automatic generation method and tool for automatic test script of automobile instrument
JP2018170418A5 (en)
CN109712137A (en) Chip test base detection based on image procossing
CN115507889A (en) Method and system for automatic detection of display function of smart instrument
CN111239441A (en) Wire harness detection device with mode comparison function
CN105163113B (en) HDMI test fixture and method of testing
CN103697930A (en) Intelligent detection device and detection method for HART instrument aging test
CN116953475A (en) Method for automatically detecting circuit board
CN202050507U (en) Video display testing system
CN108627695A (en) A kind of abnormal signal display methods and spectrum analyzer system, digital spectrum analysis instrument
CN104750101B (en) A kind of airborne inquisitor digital signal processing module detection method
CN106383305A (en) Method and device for testing board card and testing tool
CN110704252A (en) Automatic testing device and testing method based on cloud dynamic management
CN213986738U (en) DC relay checking device
CN103186789A (en) Method for Automatically Judging the Correctness of Parts
CN102778629B (en) Automatically the method and apparatus of the electrical connection of installed electronic-circuit device on PCB is measured
CN101777326A (en) VGA video card test tooling and method
CN113326206A (en) Method, apparatus, storage medium, and program product for testing data processing system
US20220180676A1 (en) System for analyzing data in a vehicle
CN110704251A (en) Dynamically configurable testing device and testing method
CN118733368B (en) Fault diagnosis method for CPU board card, diagnosis card, medium and product
KR100286098B1 (en) Repeat Fail Chip Detection System and Method
CN203396912U (en) AOI detector of thin-film switch

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