PCBA test method, system, computer equipment and storage medium
1. A PCBA test method is characterized by comprising the following steps:
receiving preset instruction information, and setting test items and corresponding test sequences according to the preset instruction information;
testing the PCBA template according to the test items and the corresponding test sequence thereof to obtain first test data;
testing the PCBA board according to the test items and the corresponding test sequence thereof to obtain second test data;
and judging whether the PCBA is qualified or not according to the first test data and the second test data, and giving an alarm under the condition that the PCBA is unqualified.
2. The PCBA test method as recited in claim 1, wherein the preset instruction information comprises: a test item instruction and a test sequence instruction; the receiving of the preset instruction information and the setting of the test items and the corresponding test sequence according to the preset instruction information include:
and setting a test item according to the item test instruction, and setting a test sequence of the test item according to the test sequence instruction.
3. The PCBA test method as recited in claim 2, wherein the preset instruction information further comprises: a self-checking instruction; further comprising:
after receiving a self-checking instruction, carrying out checking test on the PCBA template according to the test items and the corresponding test sequence thereof to obtain checking data;
and comparing the first test data with the verification data to obtain and display a corresponding comparison result.
4. The PCBA test method as recited in claim 1, wherein the determining whether the PCBA is qualified according to the first test data and the second test data comprises:
comparing the first test data with the second test data to obtain an error value;
comparing the error value with a preset error allowable value, and judging that the PCBA is unqualified under the condition that the error value is greater than the error allowable value; under the condition that the error value is not greater than the error allowance value, judging that the PCBA board is qualified; the error allowance value is a regular error allowance value or a custom error allowance value.
5. The PCBA test method as recited in claim 4, further comprising, after determining that the PCBA board is qualified:
and storing the model number of the qualified PCBA board, the corresponding test item and the corresponding test sequence in an associated manner.
6. A PCBA test method as claimed in any one of claims 1 to 5, wherein the test items include: ICT test and FCT test; the ICT test comprises the following steps: voltage testing, current testing, speaker testing, microphone testing, LED testing and sensor testing; the FCT test comprises: and judging whether to call the burning program according to the preset instruction information, and writing a corresponding code into a programmable chip of the PCBA through the burning program to test the PCBA under the condition that the burning program needs to be called.
7. A PCBA test method as claimed in any one of claims 1-5, further comprising: and testing the PCBA boards of the same model to obtain second test data corresponding to the PCBA boards of the same model, obtaining a corresponding test form according to the second test data of the same model, and uploading the test form to the MES system.
8. A test system for a PCBA, comprising:
the receiving module receives preset instruction information;
the setting module is used for setting the test items and the corresponding test sequence thereof according to the preset instruction information;
the test module is used for testing the PCBA template according to the test items and the corresponding test sequences to obtain first test data, and testing the PCBA template according to the test items and the corresponding test sequences to obtain second test data;
and the judging module is used for judging whether the PCBA is qualified or not according to the first test data and the second test data, and sending an alarm under the condition that the PCBA is unqualified.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
Background
Pcb (printed Circuit board), which is an important electronic component, is a support for electronic components and is a carrier for electrical interconnection of electronic components. PCBA (printed Circuit Board Assembly) refers to the whole process of making PCB blank Board by STM upper part or DIP plug-in.
Along with the development of electronic technology, functions which can be realized on the PCBA are more and more, when the PCBA is tested, not only the quality and the reliability of the PCBA are tested, but also the function test of the PCBA is carried out, the function tests of different PCBAs are different, and the function test is difficult to standardize, so that the function test of the PCBA is inconvenient, and the identification efficiency of unqualified PCBAs is reduced.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a PCBA testing method, a system, computer equipment and a storage medium, which have the functional advantages of automatically testing a PCBA board and improving the identification efficiency of unqualified PCBA boards.
The technical purpose of the invention is realized by the following technical scheme:
a PCBA testing method, comprising:
receiving preset instruction information, and setting test items and corresponding test sequences according to the preset instruction information;
testing the PCBA template according to the test items and the corresponding test sequence thereof to obtain first test data;
testing the PCBA board according to the test items and the corresponding test sequence thereof to obtain second test data;
and judging whether the PCBA is qualified or not according to the first test data and the second test data, and giving an alarm under the condition that the PCBA is unqualified.
Optionally, the preset instruction information includes: a test item instruction and a test sequence instruction; the receiving of the preset instruction information and the setting of the test items and the corresponding test sequence according to the preset instruction information include:
and setting a test item according to the item test instruction, and setting a test sequence of the test item according to the test sequence instruction.
Optionally, the preset instruction information further includes: a self-checking instruction; further comprising:
after receiving a self-checking instruction, carrying out checking test on the PCBA template according to the test items and the corresponding test sequence thereof to obtain checking data;
and comparing the first test data with the verification data to obtain and display a corresponding comparison result.
Optionally, the determining whether the PCBA board is qualified according to the first test data and the second test data includes:
comparing the first test data with the second test data to obtain an error value;
comparing the error value with a preset error allowable value, and judging that the PCBA is unqualified under the condition that the error value is greater than the error allowable value; under the condition that the error value is not greater than the error allowance value, judging that the PCBA board is qualified; the error allowance value is a regular error allowance value or a custom error allowance value.
Optionally, after determining that the PCBA board is qualified, the method further includes:
and storing the model number of the qualified PCBA board, the corresponding test item and the corresponding test sequence in an associated manner.
Optionally, the test items include: ICT test and FCT test; the ICT test comprises the following steps: voltage testing, current testing, speaker testing, microphone testing, LED testing and sensor testing; the FCT test comprises: and judging whether to call the burning program according to the preset instruction information, and writing a corresponding code into a programmable chip of the PCBA through the burning program to test the PCBA under the condition that the burning program needs to be called.
Optionally, the method further includes: and testing the PCBA boards of the same model to obtain second test data corresponding to the PCBA boards of the same model, obtaining a corresponding test form according to the second test data of the same model, and uploading the test form to the MES system.
A test system for a PCBA, comprising:
the receiving module receives preset instruction information;
the setting module is used for setting the test items and the corresponding test sequence thereof according to the preset instruction information;
the test module is used for testing the PCBA template according to the test items and the corresponding test sequences to obtain first test data, and testing the PCBA template according to the test items and the corresponding test sequences to obtain second test data;
and the judging module is used for judging whether the PCBA is qualified or not according to the first test data and the second test data, and sending an alarm under the condition that the PCBA is unqualified.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
In conclusion, the invention has the following beneficial effects: the PCBA can be tested, whether the PCBA is qualified or not is judged, and an alarm is given out when the unqualified PCBA is detected; the test item instructions and the test sequence instructions can be changed according to the requirements of users, so that the corresponding test items and test sequences thereof can be conveniently set according to PCBA boards of different models, and the test is convenient and fast; and self-checking can be performed according to the self-checking instruction, so that the accuracy of the test result of the PCBA is ensured.
Drawings
FIG. 1 is a schematic flow diagram of a method provided by the present invention;
FIG. 2 is a block diagram of a test system of a PCBA provided by the present invention;
fig. 3 is an internal structural diagram of a computer device in the embodiment of the present invention.
Detailed Description
In order to make the objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below. Several embodiments of the invention are presented in the drawings. This invention may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein.
In the present invention, unless otherwise expressly specified or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations. The terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "above" and "over" the second feature includes the first feature being directly on and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly under and obliquely below the second feature, or simply meaning that the first feature is at a lesser elevation than the second feature. The terms "vertical," "horizontal," "left," "right," "up," "down," and the like are used for descriptive purposes only and are not intended to indicate or imply that the referenced devices or elements must be in a particular orientation, configuration, and operation, and therefore should not be construed as limiting the present invention.
The invention is described in detail below with reference to the figures and examples.
The invention provides a PCBA test method, as shown in figure 1, comprising:
step 100, receiving preset instruction information, and setting test items and corresponding test sequences according to the preset instruction information;
step 200, testing the PCBA template according to the test items and the corresponding test sequence thereof to obtain first test data;
step 300, testing the PCBA board according to the test items and the corresponding test orders to obtain second test data;
and step 400, judging whether the PCBA is qualified or not according to the first test data and the second test data, and sending an alarm under the condition that the PCBA is unqualified.
In practical application, test equipment is generally required to test a PCBA board to obtain test data of the PCBA board, in the application, preset instruction information is received through test software, then test items and a corresponding test sequence of the test items are set according to the preset instruction information, the test software is generally stored on an upper computer, the upper computer is in communication connection with the test equipment and transmits the test items and the test sequence to the test equipment, the test equipment comprises a plurality of test pins, the preset instruction information further comprises function setting of the test pins, and the test pins test a PCBA sample plate or the PCBA board according to the set test functions; the test items usually comprise a plurality of related tests of the PCBA, the test sequence is to sequence the related tests of the PCBA, the test equipment tests the PCBA template according to the test sequence to obtain first test data of the PCBA template, the first test data is qualified test data of the PCBA with the same model as the PCBA template, and then whether the test data of the PCBA with the same model as the PCBA template is qualified is judged by taking the first test data as a reference.
Specifically, the PCBA with the same model as the PCBA sample plate is tested through the testing equipment according to the testing item and the corresponding testing sequence of the testing item to obtain second testing data, whether the PCBA is qualified or not is judged according to the first testing data and the second testing data, if the PCBA is not qualified, an alarm is given out, and the alarm is displayed through an audible and visual alarm and/or a display screen.
Further, the preset instruction information includes: a test item instruction and a test sequence instruction; the receiving of the preset instruction information and the setting of the test items and the corresponding test sequence according to the preset instruction information include:
and setting a test item according to the item test instruction, and setting a test sequence of the test item according to the test sequence instruction.
Specifically, the test item instruction and the test sequence instruction are input through test software, and the test item instruction and the test sequence instruction can be changed according to user requirements, so that the corresponding test items and test sequences thereof can be conveniently set according to PCBA boards of different models.
Further, the preset instruction information further includes: a self-checking instruction; further comprising:
after receiving a self-checking instruction, carrying out checking test on the PCBA template according to the test items and the corresponding test sequence thereof to obtain checking data;
and comparing the first test data with the verification data to obtain and display a corresponding comparison result.
Specifically, the test software receives a self-checking instruction which comprises the model of the PCBA template, after the self-checking instruction is received, the upper computer calls corresponding test items and corresponding test sequences according to the model of the PCBA template in the self-checking instruction, tests the PCBA template according to the test items and the corresponding test sequences to obtain checking data, compares the checking data with the first test data to obtain corresponding comparison results, and can know which part of the PCBA template the test equipment has problems according to the displayed comparison results, so that test pins of the part of the PCBA template in the test equipment can be overhauled, or test circuits corresponding to the part of the PCBA template can be overhauled, and the accuracy of the test results of the PCBA template is guaranteed.
Further, the judging whether the PCBA board is qualified according to the first test data and the second test data includes:
comparing the first test data with the second test data to obtain an error value;
comparing the error value with a preset error allowable value, and judging that the PCBA is unqualified under the condition that the error value is greater than the error allowable value; under the condition that the error value is not greater than the error allowance value, judging that the PCBA board is qualified; the error allowance value is a regular error allowance value or a custom error allowance value.
Specifically, the error permission value is set by test software, and the error permission value is a conventional error permission value or is set according to the PCBA prototype or the model of the PCBA board, that is, a custom error permission value.
Further, the test items include: ICT test and FCT test; the ICT test comprises the following steps: voltage testing, current testing, speaker testing, microphone testing, LED testing and sensor testing; the FCT test comprises: and judging whether to call the burning program according to the preset instruction information, and writing a corresponding code into a programmable chip of the PCBA through the burning program to test the PCBA under the condition that the burning program needs to be called.
In practical application, under the condition that the PCBA template and the PCBA board are tested according to the test items and the corresponding test orders, the obtained first test data comprises: first voltage data, first current data, first speaker data, first microphone data, first LED data, first sensor data, and first FCT data; the second test data includes: second voltage data, second current data, second speaker data, second microphone data, second LED data, second sensor data, and second FCT data; comparing the first test data with the second test data, that is, comparing the first voltage data with the second voltage data, the first current data with the second current data, the first speaker data with the second speaker data, the first LED data with the second LED data, the first sensor data with the second sensor data, and the first FCT data with the second FCT data, and obtaining a corresponding error value, where the error value includes: a voltage error value, a current error value, a speaker error value, a microphone error value, an LED error value, a sensor error value, and an FCT error value; comparing the error value with an error permission value, namely comparing a voltage error value, a current error value, a loudspeaker error value, a microphone error value, an LED error value, a sensor error value and an FCT error value with the error permission value one by one, if one is greater than the error permission value, judging that the PCBA is unqualified, displaying unqualified data, judging whether to perform subsequent test, if not, continuing to test the unqualified PCBA, displaying all unqualified data of the unqualified PCBA, and giving an alarm to facilitate maintenance of the unqualified PCBA; if the subsequent test is influenced, the test of the unqualified PCBA board is stopped, and an alarm is given.
Further, after the PCBA board is judged to be qualified, the method further comprises:
and storing the model number of the qualified PCBA board, the corresponding test item and the corresponding test sequence in an associated manner.
The model of the qualified PCBA board, the corresponding test items and the corresponding test sequence are stored in an associated mode to form a test file corresponding to the PCBA board of the model, the test file can be directly called under the condition that the PCBA board of the same model is tested next time, the PCBA board of the same model is tested according to the test items in the test file and the corresponding test sequence, and the test items and the test sequence do not need to be reset.
Further, still include: and testing the PCBA boards of the same model to obtain second test data corresponding to the PCBA boards of the same model, obtaining a corresponding test form according to the second test data of the same model, and uploading the test form to the MES system.
In practical application, a plurality of PCBA boards of the same model are required to be tested generally, so that second test data corresponding to the PCBA boards of the same model can be obtained, the second test data of the PCBA boards of the same model are numbered, a corresponding test table is obtained, the second test data are uploaded to an EMA system, the EMS system is uploaded to an enterprise, the enterprise can conveniently inquire and analyze the second test data of the PCBA boards of the same model, and therefore the user can conveniently master the quality of the PCBA boards of the model.
The PCBA testing method can test the PCBA, judge whether the PCBA is qualified or not, and send out an alarm if the unqualified PCBA is detected; the test item instructions and the test sequence instructions can be changed according to the requirements of users, so that the corresponding test items and test sequences thereof can be conveniently set according to PCBA boards of different models, and the test is convenient and fast; and self-checking can be performed according to the self-checking instruction, so that the accuracy of the test result of the PCBA is ensured.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
As shown in fig. 2, the present invention also provides a test system for a PCBA, including:
the receiving module 10 receives preset instruction information;
the setting module 20 sets the test items and the corresponding test sequence thereof according to the preset instruction information;
the test module 30 is used for testing the PCBA template according to the test items and the corresponding test orders thereof to obtain first test data, and testing the PCBA template according to the test items and the corresponding test orders thereof to obtain second test data;
and the judging module 40 is used for judging whether the PCBA is qualified or not according to the first test data and the second test data, and sending an alarm under the condition that the PCBA is unqualified.
For specific definition of the test system of the PCBA, reference may be made to the definition of the test method of the PCBA, which is not described herein again. The various modules of the test system of the PCBA described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, the computer device may be a server, and the internal structure diagram of the computer device may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of testing a PCBA.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is only a partial block diagram of the architecture associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as a particular computing device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
receiving preset instruction information, and setting test items and corresponding test sequences according to the preset instruction information;
testing the PCBA template according to the test items and the corresponding test sequence thereof to obtain first test data;
testing the PCBA board according to the test items and the corresponding test sequence thereof to obtain second test data;
and judging whether the PCBA is qualified or not according to the first test data and the second test data, and giving an alarm under the condition that the PCBA is unqualified.
In one embodiment, the preset instruction information includes: a test item instruction and a test sequence instruction; the receiving of the preset instruction information and the setting of the test items and the corresponding test sequence according to the preset instruction information include:
and setting a test item according to the item test instruction, and setting a test sequence of the test item according to the test sequence instruction.
In one embodiment, the preset instruction information further includes: a self-checking instruction; further comprising:
after receiving a self-checking instruction, carrying out checking test on the PCBA template according to the test items and the corresponding test sequence thereof to obtain checking data;
and comparing the first test data with the verification data to obtain and display a corresponding comparison result.
In one embodiment, the determining whether the PCBA board is qualified according to the first test data and the second test data includes:
comparing the first test data with the second test data to obtain an error value;
comparing the error value with a preset error allowable value, and judging that the PCBA is unqualified under the condition that the error value is greater than the error allowable value; under the condition that the error value is not greater than the error allowance value, judging that the PCBA board is qualified; the error allowance value is a regular error allowance value or a custom error allowance value.
In one embodiment, after determining that the PCBA board is qualified, the method further comprises:
and storing the model number of the qualified PCBA board, the corresponding test item and the corresponding test sequence in an associated manner.
In one embodiment, the test items include: ICT test and FCT test; the ICT test comprises the following steps: voltage testing, current testing, speaker testing, microphone testing, LED testing and sensor testing; the FCT test comprises: and judging whether to call the burning program according to the preset instruction information, and writing a corresponding code into a programmable chip of the PCBA through the burning program to test the PCBA under the condition that the burning program needs to be called.
In one embodiment, further comprising: and testing the PCBA boards of the same model to obtain second test data corresponding to the PCBA boards of the same model, obtaining a corresponding test form according to the second test data of the same model, and uploading the test form to the MES system.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory includes read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
- 上一篇:石墨接头机器人自动装卡簧、装栓机
- 下一篇:一种多功能安全硬件测试治具