CN115963379A - Automatic test method, device, equipment and storage medium for circuit board - Google Patents

Automatic test method, device, equipment and storage medium for circuit board Download PDF

Info

Publication number
CN115963379A
CN115963379A CN202211308744.0A CN202211308744A CN115963379A CN 115963379 A CN115963379 A CN 115963379A CN 202211308744 A CN202211308744 A CN 202211308744A CN 115963379 A CN115963379 A CN 115963379A
Authority
CN
China
Prior art keywords
test
circuit board
program
identifier
interface
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
CN202211308744.0A
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.)
Guangdong Real Design Intelligent Technology Co Ltd
Original Assignee
Guangdong Real Design Intelligent Technology 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 Guangdong Real Design Intelligent Technology Co Ltd filed Critical Guangdong Real Design Intelligent Technology Co Ltd
Priority to CN202211308744.0A priority Critical patent/CN115963379A/en
Publication of CN115963379A publication Critical patent/CN115963379A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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

  • Tests Of Electronic Circuits (AREA)

Abstract

The embodiment provides a method, a device, equipment and a storage medium for automatically testing a circuit board, belonging to the technical field of automatic testing, wherein the method comprises the following steps: responding to an automatic detection option selected by a user on a test interface, sequentially generating identifiers of circuit boards to be tested, and writing the identifiers into the circuit boards; acquiring a test program for testing the circuit board, calling each test script in the test program to sequentially execute corresponding function tests, and recording and displaying test results of each test script on the test interface; if the test result of each test script passes, acquiring a factory program of the circuit board, and writing the factory program into the circuit board; this application can improve the efficiency of testing to the circuit board through carrying out automated inspection to the circuit board.

Description

Automatic test method, device, equipment and storage medium for circuit board
Technical Field
The present application relates to the field of automated testing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for automatically testing a circuit board.
Background
After the production and welding of the circuit board are finished, various performances of the circuit board need to be tested, a performance detection result output report is formed, various electrical performance parameters are recorded, and factory configuration is performed after the detection result passes.
In the related art, after a frequency spectrum analyzer is connected with a circuit board to be tested, performance detection is performed on various detection indexes of the circuit board in a command interaction mode; however, the command interaction mode needs to input commands one by one for testing and record corresponding test results, and the mode is complicated in steps and long in time consumption, and manual input of the commands easily lacks part of test steps or easily causes wrong commands, and meanwhile, testers need to train and use the spectrum analyzer and manually operate the spectrum analyzer, and each time an action is executed, corresponding key buttons need to be pressed, so that the operation is not suitable for production line personnel; therefore, it is necessary to improve the existing circuit board testing method, and provide a convenient and fast testing method to improve the testing efficiency of the circuit board.
Disclosure of Invention
The embodiment of the application mainly aims to provide a method, a device, equipment and a storage medium for automatically testing a circuit board, and aims to improve the efficiency of testing the circuit board.
In order to achieve the above object, a first aspect of an embodiment of the present application provides an automated testing method for a circuit board, the method including:
responding to an automatic detection option selected by a user on a test interface, sequentially generating identifiers of the circuit boards to be tested, and writing the identifiers into the circuit boards;
acquiring a test program for testing the circuit board, calling each test script in the test program to sequentially execute corresponding function tests, and recording and displaying the test result of each test script on the test interface;
and if the test result of each test script passes, acquiring a factory program of the circuit board, and writing the factory program into the circuit board.
In some embodiments, the method further comprises:
acquiring a test script corresponding to each function test;
dividing each test script according to the test category, and integrating the test scripts in each test category to obtain a plurality of subprograms;
and sequencing the plurality of subprograms according to the flow sequence of the test type and then packaging the subprograms into the test program.
In some embodiments, the invoking each test script in the test program sequentially executes a corresponding functional test, including:
responding a Bluetooth channel and transmitting power set by a user on a test interface, testing the Bluetooth channel to obtain receiving frequency and receiving power corresponding to the transmitting power, and displaying the receiving frequency and the receiving power on the test interface;
if the receiving frequency and the receiving power are determined to be in the deviation range, the test result is passed, otherwise, the test result is not passed.
In some embodiments, the method further comprises:
and if the manual detection option is determined to be selected by the user on the test interface, responding to the functional test corresponding to the key selected by the user, executing the corresponding functional test on the circuit board, and displaying the test result on the test interface.
In some embodiments, after the calling each test script in the test program sequentially executes the corresponding functional test, the method further includes:
and associating the test result of each test script in the test program with the identifier of the circuit board and then storing the test result.
In some embodiments, after said writing said identifier to said circuit board, said method further comprises:
displaying the identifier written into the circuit board on the test interface, printing the identifier into a label, and then pasting the label on the circuit board;
performing identifier verification on the identifier of the label pasted on the circuit board and the identifier written into the circuit board;
and if the verification result of the identifier is inconsistent, the identifier displayed on the test interface is printed into a label again and then is pasted on the circuit board.
In some embodiments, the method further comprises: storing the version of the factory program after being associated with the identifier of the circuit board;
correspondingly, if the verification result of the identifier is consistent, determining the version associated with the identifier;
reading the version of the factory program from the circuit board, and performing version verification on the version read from the circuit board and the version of the associated identifier;
and if the result of the version verification is determined to be inconsistent, writing a factory program associated with the identifier of the circuit board into the circuit board.
In order to achieve the above object, a second aspect of the embodiments of the present application provides an apparatus for automatically testing a circuit board, the apparatus including:
the first module is used for responding to an automatic detection option selected by a user on a test interface, sequentially generating identifiers of the circuit boards to be tested and writing the identifiers into the circuit boards;
the second module is used for acquiring a test program for testing the circuit board, calling each test script in the test program to sequentially execute corresponding function tests, and recording and displaying the test result of each test script on the test interface;
and the third module is used for acquiring a factory program of the circuit board and writing the factory program into the circuit board if the test result of each test script passes.
In order to achieve the above object, a third aspect of the embodiments of the present application provides an electronic device, which includes a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for implementing connection communication between the processor and the memory, wherein the program, when executed by the processor, implements the method of the first aspect.
To achieve the above object, a fourth aspect of the embodiments of the present application proposes a computer-readable storage medium for a computer-readable storage, the storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the method of the first aspect.
According to the automatic test method, the automatic test device, the automatic test equipment and the automatic test storage medium of the circuit boards, the identifiers are written in each circuit board, the function test is carried out by calling the test programs integrating the test scripts, the test scripts are called in sequence, and the test results of the test scripts are displayed on the test interface in real time, so that a user can conveniently know the currently carried out function test and the corresponding test results of the circuit board in real time; therefore, the circuit board is tested quickly and accurately, and the detection efficiency of the circuit board is improved.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
Fig. 1 is a flowchart of an automated testing method for a circuit board according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of an apparatus for automatically testing a circuit board according to an embodiment of the present disclosure;
fig. 3 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
It is noted that while functional block divisions are provided in device diagrams and logical sequences are shown in flowcharts, in some cases, steps shown or described may be performed in sequences other than block divisions within devices or flowcharts. The terms first, second and the like in the description and in the claims, and the drawings described above, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the application.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
In order to solve the technical problems in the background art, the application provides an automatic test method, device, equipment and storage medium for a circuit board, and aims to provide an automatic test scheme and improve the test efficiency of the circuit board.
The embodiments of the present application provide a method, an apparatus, a device, and a storage medium for automatically testing a circuit board, which are specifically described in the following embodiments, and first describe an automatic testing method of a circuit board in the embodiments of the present application.
Embodiments of the application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, multiprocessor systems, microprocessor-based systems, set top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like. The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments of the present application will be further explained with reference to the drawings.
Fig. 1 is an optional flowchart of an automated testing method for a circuit board according to an embodiment of the present application, where the method in fig. 1 includes the following steps:
step S100, responding to an automatic detection option selected by a user on a test interface, sequentially generating identifiers of circuit boards to be tested, and writing the identifiers into the circuit boards;
it should be noted that the identifier is used for uniquely identifying the circuit board to be tested, in some embodiments, the circuit board to be tested is placed in a shielding box, a measuring antenna of a spectrum analyzer is inserted into the shielding box, the spectrum analyzer is connected with an upper computer through a USB interface, the upper computer is connected with the circuit board to be tested through a serial port, a JTAG interface or an SWD interface, and the circuit board is further connected with an LED and a keypad; the upper computer is also connected with the memory and the label printer through another USB interface; after the user completes the connection of each device, the upper computer responds to the selection of the user on the test interface to detect the spectrum analyzer connected with the USB interface of the circuit board and the circuit board connected with the serial port; selecting a USB interface corresponding to the spectrum analyzer to be used, setting a proper baud rate for the serial port, and establishing communication connection between the upper computer and the circuit board to be tested and the spectrum analyzer to be used after the serial port setting and the baud rate setting are finished;
in addition, in other embodiments, after the user selects the automatic detection option, an identifier is automatically generated and displayed in the test interface, wherein the identifier comprises a MAC address and a serial number. The MAC address and the serial number of the circuit board to be tested are sequentially generated according to the set rule number; therefore, automatic generation and burning of the MAC and the serial number are realized.
Step S200, obtaining a test program for testing the circuit board, calling each test script in the test program to sequentially execute corresponding functional tests, and recording and displaying test results of each test script on the test interface;
in some embodiments, the test program comprises a plurality of subroutines, each subroutine comprising at least one test script; each subprogram corresponds to one test category, and each test script corresponds to one function test; it should be noted that, in some embodiments, after writing the identifier of the circuit board, the circuit board is tested, and in some embodiments, the test result of each test script is stored in the form of a test log file; the test program in the embodiment integrates each test script, so that each test script does not need to be manually input each time to perform one function test, but each test script is arranged in sequence and then called in sequence, each test script is called, the corresponding function test is executed by the test script, the corresponding test result is output, and the test result of each test script is displayed on the test interface in real time, so that a user can conveniently know the currently performed function test of the circuit board and the corresponding test result in real time; the user can obtain the test result of each test script only by simply clicking the option once, so that the test method is convenient and quick, and the test errors caused by the filling errors of the test scripts and the like can be avoided, so that the circuit board can be tested quickly and accurately, and the productivity is improved. In addition, because each circuit board is written with the identifier, and the test result of each test script is stored in the database in the form of a test log file, whether each circuit board is qualified or not can be accurately known, and the follow-up tracing is convenient. And step S300, if the test result of each test script passes, acquiring a factory program of the circuit board, and writing the factory program into the circuit board.
In some embodiments, a user selects a factory program of each item to be tested in the test interface, and after a test result of each test script passes, the upper computer reads the factory program and writes the factory program into the circuit board, thereby completing factory configuration of the circuit board that passes the test. It should be noted that, if the test result of any test script fails, it is determined that the circuit board is not qualified, and a factory program is not written into the circuit board, but an error is directly reported. Therefore, according to the scheme provided by the embodiment of the application, the work difficulty of production line inspectors can be reduced, the occurrence of test script misoperation is eliminated during testing, and the automatic detection of the circuit board is realized, so that the testing efficiency of the circuit board is improved.
In some embodiments, prior to step S200, the method comprises:
step S201, obtaining a test script corresponding to each function test;
step S202, dividing each test script according to test categories, and integrating the test scripts in each test category to obtain a plurality of subprograms;
and step S203, sequencing the plurality of subprograms according to the flow sequence of the test type, and packaging the subprograms into the test program.
It should be noted that, in this embodiment, a corresponding relationship is first established between each test script and a function test, and in some embodiments, the function test includes power supply detection, sensor detection, NFC detection, bluetooth transmission power test, bluetooth frequency offset test, and the like; different function tests belong to corresponding test categories, and the test categories comprise a power supply test, a sensor function test, an NFC test, a flash memory test, a version detection, a serial number read-write test, a Bluetooth test, an LED/key test and the like; then, dividing each test script into a plurality of test categories according to the attribution of the functional test, integrating the test scripts contained in the test categories, thereby aggregating scattered test scripts to form an executable subprogram, sequencing each test category based on the flow sequence of testing the circuit board to obtain the sequencing of a plurality of subprograms, and packaging the sequenced subprograms into the test program. Therefore, when the circuit board is tested, the automatic test can be carried out according to the test flow sequence of the circuit board only by clicking the test program once without clicking each test script. In the embodiment, all scattered test scripts are integrated together, and a worker only needs to place the circuit board on the test tool and click to automatically execute the test script, so that the method is convenient and fast, the generation of errors is reduced, and the productivity is improved.
In other embodiments, the test interface is further provided with options of circuit board testing, NFC searching, simulation test key pressing and bouncing, full-color LED detection and the like, so that various test functions are integrated, and various function tests and problem positioning can be realized by performing function command interaction through the test interface.
In some embodiments, in step S200, the invoking each test script in the test program sequentially executes a corresponding functional test, including:
responding to a Bluetooth channel and transmitting power set by a user on a test interface, controlling a spectrum analyzer to test in the Bluetooth channel to obtain receiving frequency and receiving power corresponding to the transmitting power, and displaying the receiving frequency and the receiving power on the test interface;
if the receiving frequency and the receiving power are determined to be in the deviation range, the test result is passed, otherwise, the test result is not passed.
In some embodiments, after establishing communication connection with the spectrum analyzer, controlling the spectrum analyzer to perform power detection, detecting the center frequency and the transmitting power of the bluetooth signal through peak value search, further acquiring the transmitting frequency and the transmitting power obtained through scanning, and displaying the transmitting frequency and the transmitting power of the bluetooth signal on a test interface, thereby providing a detection result corresponding to the bluetooth signal for a user; comparing the receiving frequency with the theoretical receiving frequency, judging whether the deviation of the receiving frequency and the theoretical receiving frequency is within a threshold range, and obtaining a test conclusion of the receiving frequency; similarly, comparing the received power with the theoretical received power, judging whether the deviation of the received power and the theoretical received power is within a threshold range, and obtaining a test conclusion of the received frequency; in the embodiment provided by the application, a test program and a spectrum analyzer are integrated together, options of a Bluetooth channel and transmission power are provided for a user on a test interface, interaction with the spectrum analyzer is realized, a worker only needs to place a circuit board on a test tool, click to automatically execute the test program, and control the spectrum analyzer to scan Bluetooth signals of the circuit board, so that the center frequency and the transmission power of the Bluetooth signals can be captured, bluetooth channel selection and Bluetooth transmission power setting are realized through the test interface, and the Bluetooth channel is subjected to receiving frequency and receiving power test according to the transmission power in the Bluetooth channel; can test in the bluetooth passageway of selection, reach the transmitting terminal under the transmitted power that sets up, receiving frequency and received power that the receiving terminal received have realized the automated inspection of bluetooth performance, the testing result output to be convenient for the user audio-visual bad product of choosing.
In some embodiments, after the calling each test script in the test program sequentially executes the corresponding functional test, the method further includes:
and if the manual detection option is determined to be selected by the user on the test interface, responding to the functional test corresponding to the key selected by the user, executing the corresponding functional test on the circuit board, and displaying the test result on the test interface.
It should be noted that, in some embodiments, if there is a failure in the test result of any test script, it is necessary to perform a manual review on the function test corresponding to the test script, and the embodiments of the present application further provide a manual detection option and integrate the manual detection option in the test interface, so that it is convenient to perform a reconfirmation when the test of the circuit board is abnormal, and the test accuracy and convenience are improved.
In some embodiments, after the calling each test script in the test program sequentially executes the corresponding functional test, the method further includes:
and associating the test result of each test script in the test program with the identifier of the circuit board and then storing the associated test result.
It should be noted that, in some embodiments, a corresponding relationship between an identifier of a circuit board and a test result of each test script in a test program may be established in a database manner, specifically, the identifier is used as an index, a functional test corresponding to each test script is used as a header, each test script in the test program called when the circuit board is tested is determined, and the test result of each test script is recorded in the corresponding functional test in the header, so that the test result of each circuit board is recorded under the corresponding identifier; in some embodiments, the test result of each circuit board is stored in a log form, so that when the factory test process of the circuit board is subsequently tracked, not only can whether the circuit board is qualified be tracked, but also the test result of each test script can be inquired, so that the circuit board which is unqualified in the factory test can be known to report the fault in which function test, the fault of the circuit board can be accurately positioned, the subsequent targeted analysis and solution of the production problem of the circuit board can be facilitated, and the improvement can be performed.
In some embodiments, after said writing said identifier to said circuit board, said method further comprises:
displaying the identifier written into the circuit board on the test interface, printing the identifier into a label, and then pasting the label on the circuit board;
performing identifier verification on an identifier of a label pasted on the circuit board and an identifier written into the circuit board;
and if the verification result of the identifier is inconsistent, the identifier displayed on the test interface is printed into a label again and then is pasted on the circuit board.
In some embodiments, after the circuit boards are tested, a corresponding label needs to be attached to each circuit board to mark an identifier of each circuit board and ensure that each circuit board corresponds to its identifier, specifically, the identifier is printed as a label, and the label is attached to the circuit board to be tested; then, a quality inspector inspects the label attached to the circuit board to be tested, scans the label through a code scanner, reads the identifier on the label, and verifies the identifier on the label and the identifier on the label; if the verification result is consistent, the check is passed, and if the verification result is inconsistent, an error may occur when the label is pasted, so that the circuit board is pasted with the wrong label, and the identifier of the circuit board needs to be printed into the label again and then pasted; in the embodiment, the identifier is written into the circuit board and synchronously displayed on the test interface, and the identifier written into the circuit board is used as a verification reference, so that when the identifier of the label is inconsistent with the identifier written into the circuit board, the identifier can be reprinted according to the identifier displayed on the test interface, thereby not only realizing the verification of identifiers such as MAC and serial numbers, but also facilitating the check and correction.
In some embodiments, prior to step S300, the method comprises: storing the version of the factory program after being associated with the identifier of the circuit board;
correspondingly, after step S300, the method includes:
if the verification result of the identifier is consistent, determining the version associated with the identifier;
reading the version of the factory program from the circuit board, and performing version verification on the version read from the circuit board and the version of the associated identifier;
and if the result of the version verification is determined to be inconsistent, writing a factory program associated with the identifier of the circuit board into the circuit board.
It can be understood that, when it is determined that the verification results of the identifiers are consistent, the identifier of the factory program is obtained, and the way of obtaining the identifier of the factory program may be to scan the identifier from a label attached to the circuit board, or to read the identifier written in the circuit board, where the identifiers obtained by the two are consistent;
in some embodiments, the delivery program refers to an application program configured before delivery of each tested circuit board according to user requirements, the delivery program iterates according to the user requirements, one version is generated every iteration, and is subsequently burned into the circuit board according to a new version, because the identifiers are generated in sequence, different versions can be corresponding to different identifiers, and on the premise that the identifiers are determined to be accurate according to the corresponding relationship between the versions and the identifiers, the version of the delivery program read from the circuit board can be subjected to version verification by taking the version associated with the determined identifier as a correct reference version, and if the verification results are consistent, the version test is passed; if the verification result is inconsistent, a factory program associated with the identifier of the circuit board is acquired, the factory program associated with the identifier of the circuit board is written into the circuit board, and a previous wrong factory program is deleted, so that the fact that the factory program rewritten into the circuit board is a correct version is ensured.
Referring to fig. 2, an embodiment of the present application further provides an automatic testing apparatus for a circuit board, which can implement the automatic testing method for the circuit board, and the apparatus includes:
a first module 100, configured to generate identifiers of circuit boards to be tested in sequence in response to an automatic detection option selected by a user on a test interface, and write the identifiers into the circuit boards;
a second module 200, configured to obtain a test program for testing the circuit board, call each test script in the test program to sequentially perform a corresponding function test, and record and display a test result of each test script on the test interface;
a third module 300, configured to obtain a factory program of the circuit board if the test result of each test script passes, and write the factory program into the circuit board.
The specific implementation of the automatic testing apparatus for circuit board is substantially the same as the specific implementation of the automatic testing method for circuit board, and is not described herein again.
An embodiment of the present application further provides an electronic device, where the electronic device includes: the circuit board testing device comprises a memory, a processor, a program which is stored on the memory and can run on the processor, and a data bus for realizing connection communication between the processor and the memory, wherein the program realizes the automatic testing method of the circuit board when being executed by the processor. The electronic equipment can be any intelligent terminal including a tablet computer, a vehicle-mounted computer and the like.
Referring to fig. 3, fig. 3 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 301 may be implemented by a general-purpose CPU (Central-Processing Unit), a microprocessor, an Application-Specific-Integrated-Circuit (ASIC), or one or more Integrated circuits, and is configured to execute related programs to implement the technical solutions provided in the embodiments of the present Application;
the Memory 302 may be implemented in the form of a Read-Only-Memory (ROM), a static storage device, a dynamic storage device, or a Random-Access-Memory (RAM). The memory 302 may store an operating system and other application programs, and when the technical solution provided in the embodiments of the present specification is implemented by software or firmware, the relevant program codes are stored in the memory 302, and the processor 301 calls to execute the automated testing method for a circuit board according to the embodiments of the present application;
an input/output interface 303 for implementing information input and output;
the communication interface 304 is used for realizing communication interaction between the device and other devices, and may realize communication in a wired manner (e.g., USB, network cable, etc.) or in a wireless manner (e.g., mobile network, WIFI, bluetooth, etc.);
a bus 305 that transfers information between various components of the device (e.g., the processor 301, the memory 302, the input/output interface 303, and the communication interface 304);
wherein the processor 301, the memory 302, the input/output interface 303 and the communication interface 304 are communicatively connected to each other within the device via a bus 305.
The embodiment of the application further provides a computer-readable storage medium for computer-readable storage, where the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the method for automatically testing the circuit board.
The memory, as a non-transitory computer-readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer-executable programs. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The embodiments described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided in the embodiments of the present application, and it is obvious to those skilled in the art that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems with the evolution of technologies and the emergence of new application scenarios.
It will be appreciated by those skilled in the art that the embodiments shown in fig. 1-3 are not limiting of the embodiments of the present application and may include more or fewer steps than those shown, or some of the steps may be combined, or different steps may be included.
The above-described embodiments of the apparatus are merely illustrative, wherein the units illustrated as separate components may or may not be physically separate, i.e. may be located in one place, or may also be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
It will be understood by those of ordinary skill in the art that all or some of the steps of the methods, systems, and functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof.
The terms "first," "second," "third," "fourth," and the like (if any) in the description of the present application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes multiple instructions for causing a computer device (which may be a personal computer, a server, or a network device) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing programs, such as a usb disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The preferred embodiments of the present application have been described above with reference to the accompanying drawings, and the scope of the claims of the embodiments of the present application is not limited thereto. Any modifications, equivalents and improvements that may occur to those skilled in the art without departing from the scope and spirit of the embodiments of the present application are intended to be within the scope of the claims of the embodiments of the present application.

Claims (10)

1. An automated testing method of a circuit board, the method comprising:
responding to an automatic detection option selected by a user on a test interface, sequentially generating identifiers of the circuit boards to be tested, and writing the identifiers into the circuit boards;
acquiring a test program for testing the circuit board, calling each test script in the test program to sequentially execute corresponding function tests, and recording and displaying the test result of each test script on the test interface;
and if the test result of each test script passes, acquiring a factory program of the circuit board, and writing the factory program into the circuit board.
2. The method of claim 1, further comprising:
acquiring a test script corresponding to each function test;
dividing each test script according to the test category, and integrating the test scripts in each test category to obtain a plurality of subprograms;
and sequencing the plurality of subprograms according to the flow sequence of the test category, and packaging the subprograms into the test program.
3. The method of claim 1, wherein the invoking each test script in the test program sequentially performs a corresponding functional test, comprising:
responding to a Bluetooth channel and transmitting power set by a user on a test interface, testing the Bluetooth channel to obtain receiving frequency and receiving power corresponding to the transmitting power, and displaying the receiving frequency and the receiving power on the test interface;
and if the receiving frequency and the receiving power are determined to be in the deviation range, the test result is passed, otherwise, the test result is not passed.
4. The method of claim 1, further comprising:
and if the user selects the manual detection option on the test interface is determined, responding to the functional test corresponding to the key selected by the user, executing the corresponding functional test on the circuit board, and displaying the test result on the test interface.
5. The method of claim 1, wherein after the calling each test script in the test program sequentially executes the corresponding functional test, the method further comprises:
and associating the test result of each test script in the test program with the identifier of the circuit board and then storing the test result.
6. The method of claim 5, wherein after the writing the identifier to the circuit board, the method further comprises:
displaying the identifier written into the circuit board on the test interface, printing the identifier into a label, and then pasting the label on the circuit board;
performing identifier verification on the identifier of the label pasted on the circuit board and the identifier written into the circuit board;
and if the verification result of the identifier is inconsistent, the identifier displayed on the test interface is printed into a label again and then is pasted on the circuit board.
7. The method of claim 6, further comprising: storing the version of the factory program after being associated with the identifier of the circuit board;
correspondingly, if the verification result of the identifier is consistent, determining the version associated with the identifier;
reading the version of the factory program from the circuit board, and performing version verification on the version read from the circuit board and the version of the associated identifier;
and if the result of the version verification is determined to be inconsistent, writing a factory program associated with the identifier of the circuit board into the circuit board.
8. An apparatus for automated testing of a circuit board, the apparatus comprising:
the test system comprises a first module, a second module and a third module, wherein the first module is used for responding to an automatic detection option selected by a user on a test interface, sequentially generating identifiers of circuit boards to be tested and writing the identifiers into the circuit boards;
the second module is used for acquiring a test program for testing the circuit board, calling each test script in the test program to sequentially execute corresponding functional tests, and recording and displaying the test result of each test script on the test interface;
and the third module is used for acquiring a factory program of the circuit board and writing the factory program into the circuit board if the test result of each test script passes.
9. An electronic device, characterized in that the electronic device comprises a memory, a processor, a program stored on the memory and executable on the processor, and a data bus for enabling a connection communication between the processor and the memory, which program, when executed by the processor, realizes the steps of the method according to any one of claims 1 to 7.
10. A computer readable storage medium for computer readable storage, characterized in that the storage medium stores one or more programs which are executable by one or more processors to implement the steps of the method of any one of claims 1 to 7.
CN202211308744.0A 2022-10-25 2022-10-25 Automatic test method, device, equipment and storage medium for circuit board Pending CN115963379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211308744.0A CN115963379A (en) 2022-10-25 2022-10-25 Automatic test method, device, equipment and storage medium for circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211308744.0A CN115963379A (en) 2022-10-25 2022-10-25 Automatic test method, device, equipment and storage medium for circuit board

Publications (1)

Publication Number Publication Date
CN115963379A true CN115963379A (en) 2023-04-14

Family

ID=87357722

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211308744.0A Pending CN115963379A (en) 2022-10-25 2022-10-25 Automatic test method, device, equipment and storage medium for circuit board

Country Status (1)

Country Link
CN (1) CN115963379A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155485A (en) * 2023-10-23 2023-12-01 东莞信宝电子产品检测有限公司 Classical Bluetooth automatic test method, system and medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117155485A (en) * 2023-10-23 2023-12-01 东莞信宝电子产品检测有限公司 Classical Bluetooth automatic test method, system and medium

Similar Documents

Publication Publication Date Title
CN108683562B (en) Anomaly detection positioning method and device, computer equipment and storage medium
WO2017000424A1 (en) Protocol detection method and apparatus
CN103376380B (en) A kind of test system and method
CN109885480B (en) Automatic interface compatibility testing method and device based on debugging bridge
CN108037444B (en) GNSS PCBA automatic test system and application method thereof
CN108664372A (en) Monitoring device, method and the computer readable storage medium of test process
CN102798833B (en) Automatic test system and method for diagnosis instrument
CN105511977A (en) Vehicle-mounted navigation system testing method and device
CN103487210A (en) Full-automatic calibrating and debugging method and apparatus for intelligent pressure meter
CN111751143A (en) Intelligent lock testing system, method, device and storage medium
CN115963379A (en) Automatic test method, device, equipment and storage medium for circuit board
CN104699617A (en) Automated testing method for games
CN113127486B (en) Information collection and storage method, device, equipment and storage medium
CN109283899B (en) Workpiece quality inspection method and device, medium, numerical control system and quality inspection system
CN106294109B (en) Method and device for acquiring defect code
CN113126993B (en) Automatic test method and system applied to vehicle detection software
CN103336739B (en) Method for testing software and platform
CN110825617A (en) Method and device for simulating communication interaction between devices
CN115507889A (en) Automatic detection method and system for display function of intelligent instrument
CN110704252A (en) Automatic testing device and testing method based on cloud dynamic management
CN113986753A (en) Interface test method, device, equipment and storage medium
CN114218104A (en) Mobile terminal testing method and device based on AT instruction and storage medium
CN114328185A (en) Continuously integrated information aggregation system
CN110674573A (en) Method, device and storage medium for simulating hardware work in MES system
CN113836880B (en) Automatic integration method of COF test data

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