WO2021129551A1 - Method and system for testing pcba board, and test device and micro control unit - Google Patents
Method and system for testing pcba board, and test device and micro control unit Download PDFInfo
- Publication number
- WO2021129551A1 WO2021129551A1 PCT/CN2020/137887 CN2020137887W WO2021129551A1 WO 2021129551 A1 WO2021129551 A1 WO 2021129551A1 CN 2020137887 W CN2020137887 W CN 2020137887W WO 2021129551 A1 WO2021129551 A1 WO 2021129551A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- test
- pcba board
- control unit
- micro
- function
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
- G06F11/263—Generation of test inputs, e.g. test vectors, patterns or sequences ; with adaptation of the tested hardware for testability with external testers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/63—Image based installation; Cloning; Build to order
Definitions
- the embodiments of the present application relate to the field of electronic technology, and in particular, to a method and system for testing a PCBA board, a testing device, and a micro-control unit.
- the PCBA board is a very important component of smart products, it is the support of the electronic components of smart products, and the provider of the circuit connection of electronic components. Therefore, before the PCBA board is installed in the smart product, it must be ensured that the PCBA board can be used normally. When the user uses the smart product, the user experience will not be reduced due to the abnormality of the PCBA board.
- the traditional method of testing PCBA boards often requires the PCBA board to be installed on the whole machine, and then manually tested according to the function items one by one. If the function item is found to be abnormal during the test, it needs to be removed for repair and then installed on the whole machine. carry out testing.
- This test method requires a lot of labor costs, and it is easy to judge whether the function item is normal by manual judgment, and the judgment is inaccurate. In the process of repeated disassembly and assembly, it is easy to cause damage to the PCBA board hardware and reduce the production quality.
- an embodiment of the present application provides a method for testing a PCBA board, which is applied to a test device, and the method includes:
- the method before the reading the test configuration table of the PCBA board, the method further includes:
- the serial port test information is sent to the PCBA board according to the voltage test result, so as to confirm whether the serial port is normal according to the feedback information of the PCBA board to the serial port test information.
- the reading the test configuration table of the PCBA board includes:
- the configuration data of the PCBA board is obtained, and the configuration data of the PCBA board is integrated into the test configuration table.
- the sending a function test request to the micro-control unit according to the test configuration table so that the micro-control unit sends a function test-on instruction to the PCBA board according to the function test request includes:
- the functional test request is sent to the micro control unit, so that the micro control unit performs a corresponding function test on the PCBA board according to the functional test request.
- an embodiment of the present application also provides a method for testing a PCBA board, which is applied as a control unit, and the method includes:
- the method before the receiving the function test request sent by the test device, the method further includes:
- an embodiment of the present application also provides a test device, including:
- At least one processor At least one processor
- a memory communicatively connected with the at least one processor; wherein,
- the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned test PCBA board applied to the test equipment Methods.
- an embodiment of the present application also provides a micro-control unit, including:
- At least one processor At least one processor
- a memory communicatively connected with the at least one processor; wherein,
- the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned test PCBA applied to the micro-control unit Board method.
- an embodiment of the present application also provides a system for testing a PCBA board.
- the system for testing a PCBA board includes the above-mentioned test equipment and a micro-control unit.
- the embodiments of the present application also provide a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, when the computer-executable instructions are executed by the test equipment , Enabling the test equipment to execute the above-mentioned method for testing PCBA boards applied to the test equipment.
- the embodiments of the present application also provide a computer program product containing program code.
- the computer program product When the computer program product is run on an electronic device, the electronic device is caused to execute the above-mentioned test PCBA board application applied to the test device. method.
- the beneficial effect of the present application is: different from the prior art, the method and system for testing PCBA boards, the testing equipment and the micro-control unit in the embodiments of the present application are different.
- the test equipment reads the test configuration table of the PCBA board, burns the test program into the PCBA board, tests the function items according to the read test configuration table, and sends the function test request of the function item to the microcontroller Unit, after receiving the functional test request, the micro-control unit sends an opening function test instruction to the PCBA board, so that the PCBA board opens the test function and performs corresponding functional tests according to the functional test instruction.
- the micro-control unit After the micro-control unit obtains the test result, it will send the test result to the test device, and the test device judges whether the PCBA board is normal according to the test result. If the PCBA board is normal, it will perform the test on the PCBA board. Program burning. Through this testing method, manual intervention in hardware can be reduced, and production quality can be improved, thereby reducing labor costs and improving user experience.
- Figure 1 is an application scenario diagram of the method for testing PCBA boards in this application
- FIG. 2 is a flowchart of an embodiment of a method for testing a PCBA board applied to a test device according to the present application
- FIG. 3 is a flowchart of voltage and serial port tests in an embodiment of the method for testing PCBA boards applied to test equipment of the present application;
- FIG. 4 is a flowchart of performing functional testing in an embodiment of the method for testing PCBA boards applied to test equipment of the present application
- FIG. 5 is a flowchart of an embodiment of a method for testing a PCBA board applied to a micro-control unit of the present application
- Fig. 6 is a flow chart of the interaction between the test equipment and the micro-control unit in the embodiment of the method for testing PCBA boards in the embodiment of the present application;
- FIG. 7 is a schematic diagram of the hardware structure of a test device provided by an embodiment of the present application.
- Fig. 8 is a schematic diagram of the hardware structure of a micro-control unit provided by an embodiment of the present application.
- the application scenario is a system for testing PCBA boards for testing PCBA boards.
- the application scenario 1 It includes a test device 10, a micro-control unit 20, and a PCBA board 30.
- the test equipment 10 is connected to the micro-control unit 20 through a serial bus for information interaction.
- the test equipment can be a notebook computer, a desktop computer, etc. with a serial interface, and the test equipment 10 communicates with the PCBA board 30 through a serial bus.
- the micro-control unit 20 is connected to the PCBA board 30 through a serial bus to communicate with each other for information exchange.
- FIG. 1 exemplarily shows the test equipment 10, the micro control unit 20 and the PCBA board 30.
- the application environment may also include more test equipment 10, the micro control unit 20 and the PCBA board 30.
- an embodiment of the present application provides a method for testing a PCBA board, which is applied to a test device, and the method includes:
- Step S201 Read the test configuration table of the PCBA board.
- the method further includes:
- Step S301 Receive the voltage test result of the PCBA board sent by the micro control unit.
- the power-on self-test is to provide the PCBA board to the PCBA board through the micro-control unit.
- Rated voltage the PCBA board can perform the function of the PCBA board under the rated voltage.
- the micro-control unit After the micro-control unit provides the rated voltage for the PCBA board, the PCAB board performs functional operation and feeds back a power-on self-test voltage test result to the micro-control unit. After receiving the voltage test result, the micro-control unit will The voltage test result is sent to the test equipment.
- Step S302 Send serial port test information to the PCBA board according to the voltage test result, so as to confirm whether the serial port is normal according to the feedback information of the PCBA board to the serial port test information.
- the test equipment judges whether the PCBA board can work normally under the rated voltage according to the voltage test result, and if it can work normally, test whether the serial port of the PCBA board can communicate normally .
- the test device sends a serial port test information to the PCBA board, and the PCBA board sends a feedback message to the test device according to the serial port test information after receiving the serial port test information. If the test equipment can receive the feedback information, it indicates that the serial port of the PCBA board can communicate normally. If the test equipment does not receive the feedback information of the serial port test information of the PCBA board, it indicates that the serial port of the PCBA board cannot communicate normally.
- the test configuration table of the PCBA board is read.
- the test configuration table of the PCBA board can be read by scanning the barcode on the PCBA board, and after scanning, the configuration data of the PCBA board carried in the barcode is read, and the After the configuration data of the PCBA board, the configuration data is analyzed and sorted, so as to be integrated into a test configuration table.
- the test device stores the type of the PCBA board and the configuration data corresponding to the type of the PCBA board.
- the test device extracts the type information of the PCBA board from the barcode by scanning the barcode on the PCBA board. , Obtaining a test configuration table corresponding to the PCBA board according to the type of the PCBA board.
- Step S202 burning the test program to the PCBA board.
- the PCBA board since the PCBA board needs to be tested, the PCBA board needs to be burned in the test program, so that when the functional items in the PCBA board configuration table need to be tested later, the test The program can test these functions.
- Step S203 Send a function test request to the micro-control unit according to the test configuration table, so that the micro-control unit sends a function test-on instruction to the PCBA board according to the function test request.
- the test device after the test device obtains the test configuration table of the PCBA board, the test device generates a functional test request according to the test configuration table, and sends the functional test request to the micro control unit, so that the micro The control unit sends an instruction to turn on the function test to the PCBA board according to the function test request.
- the function test request is sent to the micro-control unit according to the test configuration table, so that the micro-control unit sends the function test-on instruction to all the devices according to the function test request.
- the PCBA board includes:
- Step S401 Select a function option to be tested according to the test configuration table, and generate a corresponding function test request according to the function option.
- the test equipment can select the function items to be tested according to the actual situation according to the function items in the configuration test table, and generate corresponding function test requests according to the selected function items.
- Step S402 Send the functional test request to the micro control unit, so that the micro control unit performs a corresponding function test on the PCBA board according to the functional test request.
- the micro control unit After receiving the function test request sent by the test device, the micro control unit generates an opening function test instruction according to the function test request, and sends the opening function test instruction to the PCBA board.
- the PCBA board starts a function test after receiving the start function test instruction. After the function test is started, the corresponding function is tested according to the received function test instruction.
- Step S204 Receive the test result sent by the micro control unit, and determine whether the PCBA board is normal according to the test result, and if the PCBA board is normal, program the PCBA.
- the micro-control unit After the micro-control unit sends the functional test instruction to the PCBA board, it will send a test result request to the PCBA board every preset time.
- the preset time can be set according to the actual situation, preferably, it can be set to 20ms.
- the PCBA board After the PCBA board receives the test result request sent by the micro control unit, it queries the test results of the currently tested functional items and sends it to the micro control unit. After receiving the test result, the micro control unit sends the test result to the test device, and the test device records the test result after receiving the test result.
- the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if the PCBA board is normal, the formal program is burned into the PCBA board.
- the PCBA board when all the functional items that need to be tested have been tested, the PCBA board will send a feedback message that all the functional items have been tested to the micro control unit. After the micro control unit receives the feedback information, The feedback information is sent to the testing equipment. After receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results. If the PCBA board is normal, the formal program is burned to The PCBA board.
- the micro-control unit provides the PCBA board with the rated voltage for the normal operation of the PCBA board, so that the PCBA board performs power-on self-test, and the voltage test result is fed back to the micro-control unit, and the micro-control After receiving the voltage test result, the unit tests the serial port of the PCBA board. If the serial port of the PCBA board can communicate normally, the test equipment scans the barcode on the PCBA board to obtain the test configuration table of the PCBA board. After obtaining the test configuration table, burn the test program to the PCBA board.
- the functional test request is sent to the micro control unit.
- the micro control unit After receiving the functional test request, the micro control unit generates a functional test instruction according to the functional test request, and sends the functional test instruction to the PCBA board.
- the PCBA board After the PCBA board receives the function test instruction, it turns on the test function according to the function test instruction, and tests the corresponding function according to the function test instruction.
- the micro-control unit sends the function test instruction, it will send a test result request to the PCBA board at each preset time.
- the PCBA board After receiving the test result request, the PCBA board sends the test result of the functional item currently tested to The micro control unit, after receiving the test result, sends the test result to the test device, and the test device records the test result after receiving the test result.
- the PCBA board After the PCBA board has completed the test of all the functional items in the functional test instruction, it will send a feedback message that all the tests have been completed to the micro-control unit. After receiving the feedback result, the micro-control unit will send the feedback result to the tester.
- Equipment after receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if it is normal, the formal program is burned into the PCBA board.
- an embodiment of the present application also provides a method for testing a PCBA board, which is applied to a micro-control unit, and the method includes:
- Step S501 Receive a function test request sent by a testing device, and send a function test start instruction to the PCBA board according to the function test request.
- the test device After the test device obtains the test configuration table of the PCBA board, the test device generates a functional test request according to the test configuration table, and the micro-control unit generates a functional test request according to the functional test request after receiving the functional test request sent by the test device Turn on the function test instruction, and send the turn on function test instruction to the PCBA board.
- the PCBA board starts a function test after receiving the start function test instruction. After the function test is started, the corresponding function is tested according to the received function test instruction.
- the method before the receiving the functional test request sent by the testing device, the method further includes: providing a voltage to the PCBA board, so that the PCBA board performs a voltage test, and receiving the PCBA board And send the voltage test result to the test device so that the test device can test the serial port of the PCBA board.
- the power-on self-test is to provide the PCBA board with the rated voltage of the PCBA board through the micro-control unit, and the PCBA board can Perform PCBA board function operation under the rated voltage.
- the micro-control unit After the micro-control unit provides the rated voltage for the PCBA board, the PCAB board performs functional operation and feeds back a power-on self-test voltage test result to the micro-control unit. After receiving the voltage test result, the micro-control unit will The voltage test result is sent to the test equipment.
- the test equipment judges whether the PCBA board can work normally under the rated voltage according to the voltage test result, and if it can work normally, test whether the serial port of the PCBA board can communicate normally .
- the test device sends a serial port test information to the PCBA board, and the PCBA board sends a feedback message to the test device according to the serial port test information after receiving the serial port test information. If the test equipment can receive the feedback information, it indicates that the serial port of the PCBA board can communicate normally. If the test equipment does not receive the feedback information of the serial port test information of the PCBA board, it indicates that the serial port of the PCBA board cannot communicate normally.
- step S502 a request for obtaining a test result is sent to the PCBA board every preset time.
- the micro-control unit After the micro-control unit sends the functional test instruction to the PCBA board, it will send a test result request to the PCBA board every preset time.
- the preset time can be set according to the actual situation, preferably, it can be set to 20ms.
- Step S503 Receive the test result of the PCBA board, and send the test result to the test device.
- the PCBA board After the PCBA board receives the test result request sent by the micro control unit, it queries the test results of the currently tested functional items and sends it to the micro control unit. After receiving the test result, the micro control unit sends the test result to the test device, and the test device records the test result after receiving the test result. When all the functional items that need to be tested have been tested, the PCBA board will send a feedback information that all the functional items have been tested to the micro-control unit. After receiving the feedback information, the micro-control unit sends the feedback information to Testing equipment, after receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if the PCBA board is normal, then the formal program is burned into the PCBA board.
- the micro-control unit provides a rated voltage for the PCBA board to enable the PCBA board to perform a power-on self-test to ensure that subsequent tests can be performed normally.
- the power-on self-test is to provide the PCBA board with the rated voltage of the PCBA board through the micro-control unit , PCBA board can perform PCBA board function operation under the rated voltage.
- the micro control unit After the micro control unit provides the rated voltage for the PCBA board, the PCAB board performs functional operation and feeds back a power-on self-test voltage test result to the micro control unit. After receiving the voltage test result, the micro control unit will The voltage test result is sent to the test equipment.
- the test equipment judges whether the PCBA board can work normally under the rated voltage according to the voltage test result, and if it can work normally, test whether the serial port of the PCBA board can communicate normally .
- the test device sends a serial port test information to the PCBA board, and the PCBA board sends a feedback message to the test device according to the serial port test information after receiving the serial port test information. If the test equipment can receive the feedback information, it indicates that the serial port of the PCBA board can communicate normally. If the test equipment does not receive the feedback information of the serial port test information of the PCBA board, it indicates that the serial port of the PCBA board cannot communicate normally.
- test program is programmed on the board, so that when the function items in the PCBA board configuration table need to be tested later, the test program can test these function items.
- the test configuration table of the PCBA board can be read by scanning the barcode on the PCBA board, and after scanning, the configuration data of the PCBA board carried in the barcode is read, and the After the configuration data of the PCBA board, the configuration data is analyzed and sorted, so as to be integrated into a test configuration table.
- the test equipment can select the function items that need to be tested according to the function items in the configuration test table, according to the actual situation, and generate the corresponding function test request according to the selected function item, and send the test request to the micro control unit.
- the micro control unit After receiving the function test request sent by the test device, the micro control unit generates an opening function test instruction according to the function test request, and sends the opening function test instruction to the PCBA board.
- the PCBA board starts a function test after receiving the start function test instruction. After the function test is started, the corresponding function is tested according to the received function test instruction.
- the micro-control unit After the micro-control unit sends the functional test instruction to the PCBA board, it will send a test result request to the PCBA board every preset time.
- the preset time can be set according to the actual situation, preferably, it can be set to 20ms.
- the PCBA board After the PCBA board receives the test result request sent by the micro control unit, it queries the test results of the currently tested functional items and sends it to the micro control unit. After receiving the test result, the micro control unit sends the test result to the test device, and the test device records the test result after receiving the test result.
- the PCBA board When all the functional items that need to be tested have been tested, the PCBA board will send a feedback information that all the functional items have been tested to the micro-control unit.
- the micro-control unit After receiving the feedback information, the micro-control unit sends the feedback information to Testing equipment, after receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if the PCBA board is normal, then the formal program is burned into the PCBA board.
- Fig. 7 is a schematic diagram of the hardware structure of the test device provided by the embodiment of the present application.
- the hardware structure 10 of the test device includes:
- One or more first processors 101 and first memory 102 are taken as an example.
- the first processor 101 and the first memory 102 may be connected through a bus or in other ways.
- the connection through a bus is taken as an example.
- the first memory 102 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules.
- the first processor 101 executes various functional applications and data processing of the test equipment by running the non-volatile software programs, instructions, and modules stored in the first memory 102, that is, the test PCBA board of the foregoing method embodiment is implemented. method.
- the first memory 102 may include a program storage area and a data storage area.
- the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the test equipment.
- the first memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
- the first memory 102 may optionally include memories remotely provided with respect to the first processor 101, and these remote memories may be connected to the test device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the one or more modules are stored in the first memory 102, and when executed by the one or more first processors, the method for testing a PCBA board in the above-mentioned embodiment applied to a test device is executed.
- Fig. 8 is a schematic diagram of the hardware structure of the micro control unit provided by the embodiment of the present application.
- the hardware structure 20 of the micro control unit includes:
- One or more second processors 201 and second memory 202 are taken as an example.
- the second processor 201 and the second memory 202 may be connected through a bus or in other ways. In FIG. 8, the connection through a bus is taken as an example.
- the second memory 202 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules.
- the second processor 201 executes various functional applications and data processing of the micro-control unit by running the non-volatile software programs, instructions, and modules stored in the second memory 202, that is, realizes the above-mentioned application to the micro-control unit side. The method of testing the PCBA board of the embodiment.
- the second memory 202 may include a program storage area and a data storage area.
- the program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the micro-control unit.
- the second memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.
- the second memory 202 may optionally include memories remotely provided with respect to the second processor 201, and these remote memories may be connected to the micro-control unit through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
- the one or more modules are stored in the second memory 202, and when executed by the one or more second processors, the method for testing the PCBA board in the above-mentioned embodiment applied to the micro control unit is executed.
- the embodiment of the present application provides a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, as shown in FIG. 7
- One processor 101 in the above-mentioned one or more processors can execute the method for testing a PCBA board in any of the above-mentioned method embodiments.
- the device embodiments described above are merely illustrative.
- the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Tests Of Electronic Circuits (AREA)
Abstract
A method and system for testing a PCBA board (30), and a test device (10) and a micro control unit (20). The method comprises: reading a test configuration table of the PCBA board (30) (S201); programming a test program to the PCBA board (30) (S202); sending a functional test request to the micro control unit (20) according to the test configuration table, so that the micro control unit (20) sends a functional test starting instruction to the PCBA board (30) according to the functional test request (S203); and receiving a test result sent by the micro control unit (20), and determining, according to the test result, whether the PCBA board (30) is normal, and if the PCBA board (30) is normal, performing formal program programming on the PCBA board (30) (S204). By using the method, manual intervention in hardware can be reduced, and production quality can be improved, thereby reducing labor costs and improving the user experience.
Description
相关申请的交叉参考Cross reference of related applications
本申请要求于2019年12月27日提交中国专利局,申请号为2019113800154,名称为“一种测试PCBA板的方法、系统、测试设备及微控制单元”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed with the Chinese Patent Office on December 27, 2019, with the application number 2019113800154, titled "A method, system, test equipment and micro-control unit for testing PCBA boards", all of which The content is incorporated in this application by reference.
本申请实施例涉及电子技术领域,特别是涉及一种测试PCBA板的方法和系统、测试设备及微控制单元。The embodiments of the present application relate to the field of electronic technology, and in particular, to a method and system for testing a PCBA board, a testing device, and a micro-control unit.
随着智能制造技术的发展和智能产品的普及,用户对智能产品的性能稳定要求越来越高,从而使智能产品制造商对智能产品在日常生活中能正常工作更加重视。在智能产品的生产过程中,PCBA板是智能产品非常重要的部件,是智能产品电子元器件的支撑体,是电子元器件线路连接的提供者。所以在PCBA板安装在智能产品前,必须保证PCBA板能正常使用,用户使用智能产品的时候才不会因PCBA板异常导致降低用户体验。With the development of smart manufacturing technology and the popularization of smart products, users have higher and higher requirements for the stable performance of smart products, so that smart product manufacturers pay more attention to the normal working of smart products in daily life. In the production process of smart products, the PCBA board is a very important component of smart products, it is the support of the electronic components of smart products, and the provider of the circuit connection of electronic components. Therefore, before the PCBA board is installed in the smart product, it must be ensured that the PCBA board can be used normally. When the user uses the smart product, the user experience will not be reduced due to the abnormality of the PCBA board.
传统的测试PCBA板方法往往需要将PCBA板安装到整机上,再由人工按照功能项进行逐一测试,如果在测试过程中发现功能项异常,需要拆下来维修后,然后再安装到整机上进行测试。这种测试方法需要耗费大量的人力成本,通过人工去判断功能项是否正常容易出现判断不准确,在反复拆装过程中,容易导致PCBA板硬件损坏,降低生产质量。The traditional method of testing PCBA boards often requires the PCBA board to be installed on the whole machine, and then manually tested according to the function items one by one. If the function item is found to be abnormal during the test, it needs to be removed for repair and then installed on the whole machine. carry out testing. This test method requires a lot of labor costs, and it is easy to judge whether the function item is normal by manual judgment, and the judgment is inaccurate. In the process of repeated disassembly and assembly, it is easy to cause damage to the PCBA board hardware and reduce the production quality.
发明内容Summary of the invention
基于此,有必要针对上述技术问题,提供一种测试PCBA板的方法 和系统、测试设备及微控制单元,通过这种测试方式,可以减少人工干预硬件、提高生产质量,从而减少人力成本、提高用户体验,技术方案如下:Based on this, it is necessary to provide a method and system for testing PCBA board, testing equipment and micro-control unit in response to the above technical problems. Through this testing method, manual intervention in hardware can be reduced, and production quality can be improved, thereby reducing labor costs and improving User experience and technical solutions are as follows:
第一方面,本申请实施例提供了一种测试PCBA板的方法,应用于测试设备,所述方法包括:In the first aspect, an embodiment of the present application provides a method for testing a PCBA board, which is applied to a test device, and the method includes:
读取所述PCBA板的测试配置表;Read the test configuration table of the PCBA board;
将测试程序烧录至所述PCBA板;Burn the test program to the PCBA board;
根据所述测试配置表发送功能测试请求至微控制单元,以使所述微控制单元根据所述功能测试请求发送开启功能测试指令至所述PCBA板;Sending a function test request to the micro-control unit according to the test configuration table, so that the micro-control unit sends a function test-on instruction to the PCBA board according to the function test request;
接收所述微控制单元发送的测试结果,并根据所述测试结果确定所述PCBA板是否正常,如果所述PCBA板正常,对所述PCBA进行正式程序烧录。Receive the test result sent by the micro-control unit, and determine whether the PCBA board is normal according to the test result, and if the PCBA board is normal, perform formal programming on the PCBA.
在其他一些实施例中,所述读取所述PCBA板的测试配置表之前,所述方法还包括:In some other embodiments, before the reading the test configuration table of the PCBA board, the method further includes:
接收微控制单元发送的所述PCBA板的电压测试结果;Receiving the voltage test result of the PCBA board sent by the micro control unit;
根据所述电压测试结果发送串口测试信息至所述PCBA板,以根据所述PCBA板对所述串口测试信息的反馈信息确认所述串口是否正常。The serial port test information is sent to the PCBA board according to the voltage test result, so as to confirm whether the serial port is normal according to the feedback information of the PCBA board to the serial port test information.
在其他一些实施例中,所述读取所述PCBA板的测试配置表,包括:In some other embodiments, the reading the test configuration table of the PCBA board includes:
通过识别所述PCBA板上的条形码,获取所述PCBA板的配置数据,并将所述PCBA板的配置数据整合成所述测试配置表。By recognizing the barcode on the PCBA board, the configuration data of the PCBA board is obtained, and the configuration data of the PCBA board is integrated into the test configuration table.
在其他一些实施例中,所述根据所述测试配置表发送功能测试请求至微控制单元,以使所述微控制单元根据所述功能测试请求发送开启功能测试指令至所述PCBA板,包括:In some other embodiments, the sending a function test request to the micro-control unit according to the test configuration table so that the micro-control unit sends a function test-on instruction to the PCBA board according to the function test request includes:
根据所述测试配置表选择需要进行测试的功能选项,并根据所述功能选项生成对应的功能测试请求;Select the function option to be tested according to the test configuration table, and generate a corresponding function test request according to the function option;
将所述功能测试请求发送至微控制单元,以使微控制单元根据所述功能测试请求对PCBA板进行相应功能的测试。The functional test request is sent to the micro control unit, so that the micro control unit performs a corresponding function test on the PCBA board according to the functional test request.
第二方面,本申请实施例还提供了一种测试PCBA板的方法,应用于为控制单元,所述方法包括:In the second aspect, an embodiment of the present application also provides a method for testing a PCBA board, which is applied as a control unit, and the method includes:
接收测试设备发送的功能测试请求,根据所述功能测试请求发送启动功能测试指令至所述PCBA板;Receiving a function test request sent by a test device, and sending a function test start instruction to the PCBA board according to the function test request;
每隔预设时间向所述PCBA板发送获取测试结果请求;Sending a request for obtaining test results to the PCBA board every preset time;
接收所述PCBA板的测试结果,并将所述测试结果发送至所述测试设备。Receiving the test result of the PCBA board, and sending the test result to the test device.
在其他一些实施例中,所述接收测试设备发送的功能测试请求之前,所述方法还包括:In some other embodiments, before the receiving the function test request sent by the test device, the method further includes:
向所述PCBA板提供电压,以使所述PCBA板进行电压测试,并接收所述PCBA板的电压测试结果,并将所述电压测试结果发送给所述测试设备,以使所述测试设备对所述PCBA板的串口进行测试。Provide voltage to the PCBA board to make the PCBA board perform a voltage test, and receive the voltage test result of the PCBA board, and send the voltage test result to the test device, so that the test device can The serial port of the PCBA board is tested.
第三方面,本申请实施例还提供一种测试设备,包括:In the third aspect, an embodiment of the present application also provides a test device, including:
至少一个处理器;以及At least one processor; and
与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述应用于测试设备的所述测试PCBA板的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned test PCBA board applied to the test equipment Methods.
第四方面,本申请实施例还提供一种微控制单元,包括:In a fourth aspect, an embodiment of the present application also provides a micro-control unit, including:
至少一个处理器;以及At least one processor; and
与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述应用于微控制单元的所述测试PCBA板的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the above-mentioned test PCBA applied to the micro-control unit Board method.
第五方面,本申请实施例还提供一种测试PCBA板的系统,所述测试PCBA板的系统包括上述的测试设备和微控制单元。In a fifth aspect, an embodiment of the present application also provides a system for testing a PCBA board. The system for testing a PCBA board includes the above-mentioned test equipment and a micro-control unit.
第六方面,本申请实施例还提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,当所述计算机可执行指令被测试设备所执行时,使所述测试设备执行上述应用于测试设备的测试PCBA板的方法。In a sixth aspect, the embodiments of the present application also provide a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, when the computer-executable instructions are executed by the test equipment , Enabling the test equipment to execute the above-mentioned method for testing PCBA boards applied to the test equipment.
第六方面,本申请实施例还提供了一种包含程序代码的计算机程序 产品,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行上述应用于测试设备的测试PCBA板的方法。In a sixth aspect, the embodiments of the present application also provide a computer program product containing program code. When the computer program product is run on an electronic device, the electronic device is caused to execute the above-mentioned test PCBA board application applied to the test device. method.
与现有技术相比,本申请的有益效果是:区别于现有技术的情况,本申请实施例中的测试PCBA板的方法和系统、测试设备及微控制单元。测试设备通过读取PCBA板的测试配置表,将测试程序烧录到PCBA板中,根据读取到的测试配置表进行功能项的测试,并将所述功能项的功能测试请求发送至微控制单元,微控制单元在接收到所述功能测试请求后,发送开启功能测试指令至PCBA板,从而使PCBA板打开测试功能并根据功能测试指令进行相应的功能测试。微控制单元在获取到测试结果后,会将所述测试结果发送至测试设备,测试设备根据所述测试结果判断所述PCBA板是否正常,如果所述PCBA板正常,则对所述PCBA板进行程序烧录。通过这种测试方式,可以减少人工干预硬件、提高生产质量,从而减少人力成本、提高用户体验。Compared with the prior art, the beneficial effect of the present application is: different from the prior art, the method and system for testing PCBA boards, the testing equipment and the micro-control unit in the embodiments of the present application are different. The test equipment reads the test configuration table of the PCBA board, burns the test program into the PCBA board, tests the function items according to the read test configuration table, and sends the function test request of the function item to the microcontroller Unit, after receiving the functional test request, the micro-control unit sends an opening function test instruction to the PCBA board, so that the PCBA board opens the test function and performs corresponding functional tests according to the functional test instruction. After the micro-control unit obtains the test result, it will send the test result to the test device, and the test device judges whether the PCBA board is normal according to the test result. If the PCBA board is normal, it will perform the test on the PCBA board. Program burning. Through this testing method, manual intervention in hardware can be reduced, and production quality can be improved, thereby reducing labor costs and improving user experience.
一个或多个实施例通过与之对应的附图中的图片进行示例性说明,这些示例性说明并不构成对实施例的限定,附图中具有相同参考数字标号的元件表示为类似的元件,除非有特别申明,附图中的图不构成比例限制。One or more embodiments are exemplified by the pictures in the corresponding drawings. These exemplified descriptions do not constitute a limitation on the embodiments. The elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the attached drawings do not constitute a scale limitation.
图1为本申请测试PCBA板的方法的应用场景图;Figure 1 is an application scenario diagram of the method for testing PCBA boards in this application;
图2是本申请应用于测试设备的测试PCBA板的方法的实施例流程图;FIG. 2 is a flowchart of an embodiment of a method for testing a PCBA board applied to a test device according to the present application;
图3是本申请应用于测试设备的测试PCBA板的方法实施例中进行电压和串口测试的流程图;FIG. 3 is a flowchart of voltage and serial port tests in an embodiment of the method for testing PCBA boards applied to test equipment of the present application;
图4是本申请应用于测试设备的测试PCBA板的方法实施例中进行功能测试的流程图;FIG. 4 is a flowchart of performing functional testing in an embodiment of the method for testing PCBA boards applied to test equipment of the present application;
图5是本申请应用于微控制单元的测试PCBA板的方法实施例流程图;FIG. 5 is a flowchart of an embodiment of a method for testing a PCBA board applied to a micro-control unit of the present application;
图6是本申请实施例测试PCBA板的方法实施例中测试设备和微控 制单元的交互流程图;Fig. 6 is a flow chart of the interaction between the test equipment and the micro-control unit in the embodiment of the method for testing PCBA boards in the embodiment of the present application;
图7是本申请实施例提供的测试设备的硬件结构示意图;FIG. 7 is a schematic diagram of the hardware structure of a test device provided by an embodiment of the present application;
图8是本申请实施例提供的微控制单元的硬件结构示意图。Fig. 8 is a schematic diagram of the hardware structure of a micro-control unit provided by an embodiment of the present application.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
需要说明的是,如果不冲突,本申请实施例中的各个特征可以相互结合,均在本申请的保护范围之内。另外,虽然在装置示意图中进行了功能模块划分,在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于装置中的模块划分,或流程图中的顺序执行所示出或描述的步骤。再者,本申请所采用的“第一”、“第二”、“第三”等字样并不对数据和执行次序进行限定,仅是对功能和作用基本相同的相同项或相似项进行区分。It should be noted that if there is no conflict, the various features in the embodiments of the present application can be combined with each other, and all are within the protection scope of the present application. In addition, although functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, the module division in the device may be different from the module division in the device, or the sequence shown in the flowchart may be executed. Or the steps described. Furthermore, the words "first", "second" and "third" used in this application do not limit the data and execution order, but only distinguish the same or similar items with basically the same function and effect.
本申请实施例提供的测试PCBA板的方法应用于图1所示的应用场景,在本申请实施例中,所述应用场景为测试PCBA板的系统,用于测试PCBA板,所述应用场景1包括测试设备10、微控制单元20和PCBA板30。其中测试设备10与微控制单元20通过串行总线通信连接,进行信息交互,所述测试设备可以是具有串行接口的笔记本电脑、台式电脑等,测试设备10与PCBA板30通过串行总线通信连接,进行信息交互,所述微控制单元20与PCBA板30通过串行总线通信连接,进行信息交互。The method for testing PCBA boards provided by the embodiments of the present application is applied to the application scenario shown in FIG. 1. In the embodiments of the present application, the application scenario is a system for testing PCBA boards for testing PCBA boards. The application scenario 1 It includes a test device 10, a micro-control unit 20, and a PCBA board 30. The test equipment 10 is connected to the micro-control unit 20 through a serial bus for information interaction. The test equipment can be a notebook computer, a desktop computer, etc. with a serial interface, and the test equipment 10 communicates with the PCBA board 30 through a serial bus. The micro-control unit 20 is connected to the PCBA board 30 through a serial bus to communicate with each other for information exchange.
需要说明的是,本申请实施例提供的方法还可以进一步的拓展到其他合适的应用场景,而不限于图1所示的应用场景。图1示例性的示出了测试设备10、微控制单元20和PCBA板30,在实际的应用过程中,该应用环境还可以包括更多的测试设备10、微控制单元20和PCBA板 30。It should be noted that the method provided in the embodiment of the present application can be further extended to other suitable application scenarios, and is not limited to the application scenario shown in FIG. 1. FIG. 1 exemplarily shows the test equipment 10, the micro control unit 20 and the PCBA board 30. In the actual application process, the application environment may also include more test equipment 10, the micro control unit 20 and the PCBA board 30.
如图2所示,本申请实施例提供了一种测试PCBA板的方法,应用于测试设备,所述方法包括:As shown in FIG. 2, an embodiment of the present application provides a method for testing a PCBA board, which is applied to a test device, and the method includes:
步骤S201,读取所述PCBA板的测试配置表。Step S201: Read the test configuration table of the PCBA board.
在对所述PCBA板进行测试时,需要读取所述PCBA板的配置数据,并将所述PCBA板的配置数据进行分析整理,从而得到测试配置表。When testing the PCBA board, it is necessary to read the configuration data of the PCBA board, and analyze and organize the configuration data of the PCBA board to obtain a test configuration table.
在其他一些实施例中,为了保证PCBA板的测试能够顺利进行,如图3所示,所述读取所述PCBA板的测试配置表之前,所述方法还包括:In some other embodiments, in order to ensure that the test of the PCBA board can proceed smoothly, as shown in FIG. 3, before the reading the test configuration table of the PCBA board, the method further includes:
步骤S301,接收微控制单元发送的所述PCBA板的电压测试结果。Step S301: Receive the voltage test result of the PCBA board sent by the micro control unit.
在读取PCBA板的测试配置表之前,首先要对所述PCBA板进行上电自测,以保证后续测试能够正常进行,所述上电自测为通过微控制单元给PCBA板提供PCBA板的额定电压,PCBA板能够在所述额定电压下进行PCBA板功能运作。在微控制单元为所述PCBA板提供额定电压后,PCAB板进行功能运行,并向微控制单元反馈一个上电自测的电压测试结果,微控制单元在接收到所述电压测试结果后,将所述电压测试结果发送给测试设备。Before reading the test configuration table of the PCBA board, first perform a power-on self-test on the PCBA board to ensure that the subsequent tests can be carried out normally. The power-on self-test is to provide the PCBA board to the PCBA board through the micro-control unit. Rated voltage, the PCBA board can perform the function of the PCBA board under the rated voltage. After the micro-control unit provides the rated voltage for the PCBA board, the PCAB board performs functional operation and feeds back a power-on self-test voltage test result to the micro-control unit. After receiving the voltage test result, the micro-control unit will The voltage test result is sent to the test equipment.
步骤S302,根据所述电压测试结果发送串口测试信息至所述PCBA板,以根据所述PCBA板对所述串口测试信息的反馈信息确认所述串口是否正常。Step S302: Send serial port test information to the PCBA board according to the voltage test result, so as to confirm whether the serial port is normal according to the feedback information of the PCBA board to the serial port test information.
测试设备在接收到所述电压测试结果后,根据所述电压测试结果判断所述PCBA板在额定电压下是否能正常工作,如果能正常工作,对所述PCBA板的串口进行测试是否能正常通信。测试设备向PCBA板发送一个串口测试信息,PCBA板在接收到所述串口测试信息后,根据所述串口测试信息向测试设备发送的一个反馈信息。如果测试设备能接受到所述反馈信息则说明所述PCBA板的串口能够正常通信,如果测试设备没有收到PCBA板的串口测试信息的反馈信息,则说明所述PCBA板的串口无法正常通信。After receiving the voltage test result, the test equipment judges whether the PCBA board can work normally under the rated voltage according to the voltage test result, and if it can work normally, test whether the serial port of the PCBA board can communicate normally . The test device sends a serial port test information to the PCBA board, and the PCBA board sends a feedback message to the test device according to the serial port test information after receiving the serial port test information. If the test equipment can receive the feedback information, it indicates that the serial port of the PCBA board can communicate normally. If the test equipment does not receive the feedback information of the serial port test information of the PCBA board, it indicates that the serial port of the PCBA board cannot communicate normally.
在对所述PCBA板进行上电自测和串口通信的测试之后,如果所述PCBA板的上电自测和串口通信均正常,则读取所述PCBA板的测试配置 表。其中,在一些实施例中,所述读取PCBA板的测试配置表可以通过扫描PCBA板上的条形码,在扫描后读取所述条形码中携带的所述PCBA板的配置数据,在获取所述PCBA板的配置数据后将所述配置数据进行分析整理,从而整合成测试配置表。After performing the power-on self-test and serial communication test on the PCBA board, if the power-on self-test and serial communication of the PCBA board are normal, the test configuration table of the PCBA board is read. Wherein, in some embodiments, the test configuration table of the PCBA board can be read by scanning the barcode on the PCBA board, and after scanning, the configuration data of the PCBA board carried in the barcode is read, and the After the configuration data of the PCBA board, the configuration data is analyzed and sorted, so as to be integrated into a test configuration table.
在其他一些实施例中,测试设备存储有PCBA板的类型,以及所述PCBA板类型对应的配置数据,测试设备通过扫描PCBA板上的条形码,从所述条形码中提取所述PCBA板的类型信息,根据所述PCBA板的类型获取PCBA板对应的测试配置表。In some other embodiments, the test device stores the type of the PCBA board and the configuration data corresponding to the type of the PCBA board. The test device extracts the type information of the PCBA board from the barcode by scanning the barcode on the PCBA board. , Obtaining a test configuration table corresponding to the PCBA board according to the type of the PCBA board.
步骤S202,将测试程序烧录至所述PCBA板。Step S202, burning the test program to the PCBA board.
在本申请实施例中,由于需要对所述PCBA板进行测试,所以需要对所述PCBA板进行测试程序的烧录,以使后续需要进行PCBA板配置表中的功能项进行测试的时候,测试程序可以对这些功能项进行测试。In the embodiment of this application, since the PCBA board needs to be tested, the PCBA board needs to be burned in the test program, so that when the functional items in the PCBA board configuration table need to be tested later, the test The program can test these functions.
步骤S203,根据所述测试配置表发送功能测试请求至微控制单元,以使所述微控制单元根据所述功能测试请求发送开启功能测试指令至所述PCBA板。Step S203: Send a function test request to the micro-control unit according to the test configuration table, so that the micro-control unit sends a function test-on instruction to the PCBA board according to the function test request.
在本申请实施例中,在测试设备获取所述PCBA板的测试配置表后,测试设备根据所述测试配置表生成功能测试请求,并将所述功能测试请求发送至微控制单元,以使微控制单元根据所述功能测试请求向PCBA板发送开启功能测试指令。In the embodiment of the present application, after the test device obtains the test configuration table of the PCBA board, the test device generates a functional test request according to the test configuration table, and sends the functional test request to the micro control unit, so that the micro The control unit sends an instruction to turn on the function test to the PCBA board according to the function test request.
在其中一些实施例中,如图4所示,所述根据所述测试配置表发送功能测试请求至微控制单元,以使所述微控制单元根据所述功能测试请求发送开启功能测试指令至所述PCBA板,包括:In some of the embodiments, as shown in FIG. 4, the function test request is sent to the micro-control unit according to the test configuration table, so that the micro-control unit sends the function test-on instruction to all the devices according to the function test request. The PCBA board includes:
步骤S401,根据所述测试配置表选择需要进行测试的功能选项,并根据所述功能选项生成对应的功能测试请求。Step S401: Select a function option to be tested according to the test configuration table, and generate a corresponding function test request according to the function option.
在烧录测试程序后,测试设备可以根据配置测试表中的功能项,根据实际情况选择需要进行测试的功能项,并根据所选择的功能项生成对应的功能测试请求。After burning the test program, the test equipment can select the function items to be tested according to the actual situation according to the function items in the configuration test table, and generate corresponding function test requests according to the selected function items.
步骤S402,将所述功能测试请求发送至微控制单元,以使微控制单元根据所述功能测试请求对PCBA板进行相应功能的测试。Step S402: Send the functional test request to the micro control unit, so that the micro control unit performs a corresponding function test on the PCBA board according to the functional test request.
微控制单元在接收到测试设备发送的功能测试请求后,根据所述功能测试请求生成开启功能测试指令,并将所述开启功能测试指令发送至PCBA板。所述PCBA板在接收到所述开启功能测试指令后启动功能测试,启动功能测试后,根据接收的功能测试指令对相应的功能进行测试。After receiving the function test request sent by the test device, the micro control unit generates an opening function test instruction according to the function test request, and sends the opening function test instruction to the PCBA board. The PCBA board starts a function test after receiving the start function test instruction. After the function test is started, the corresponding function is tested according to the received function test instruction.
步骤S204,接收所述微控制单元发送的测试结果,并根据所述测试结果确定所述PCBA板是否正常,如果所述PCBA板正常,对所述PCBA进行程序烧录。Step S204: Receive the test result sent by the micro control unit, and determine whether the PCBA board is normal according to the test result, and if the PCBA board is normal, program the PCBA.
在微控制单元将功能测试指令发送至PCBA板后,每隔预设时间会向PCBA板发送获取测试结果请求,所述预设时间可以根据实际情况进行设置,优选的,可以设置为20ms。PCBA板在接收到微控制单元发送的获取测试结果请求后,查询当前已经测试的功能项的测试结果发送至微控制单元。微控制单元在接收到所述测试结果后,将所述测试结果发送给测试设备,测试设备接收到所述测试结果后,记录所述测试结果。当需要测试的测试项全部完成测试后,测试设备根据记录的所述测试结果判断所述PCBA板是否正常,如果所述PCBA板正常,则将正式程序烧录至所述PCBA板中。After the micro-control unit sends the functional test instruction to the PCBA board, it will send a test result request to the PCBA board every preset time. The preset time can be set according to the actual situation, preferably, it can be set to 20ms. After the PCBA board receives the test result request sent by the micro control unit, it queries the test results of the currently tested functional items and sends it to the micro control unit. After receiving the test result, the micro control unit sends the test result to the test device, and the test device records the test result after receiving the test result. When all the test items to be tested are tested, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if the PCBA board is normal, the formal program is burned into the PCBA board.
在其中一些实施例中,当所有需要进行测试功能项都测试完成,则PCBA板会向微控制单元发送一个功能项已经全部测试完毕的反馈信息,微控制单元在接收到所述反馈信息后,将所述反馈信息发送给测试设备,测试设备在接收到所述反馈信息后,根据记录的所述测试结果判断所述PCBA板是否正常,如果所述PCBA板正常,则将正式程序烧录至所述PCBA板中。In some of these embodiments, when all the functional items that need to be tested have been tested, the PCBA board will send a feedback message that all the functional items have been tested to the micro control unit. After the micro control unit receives the feedback information, The feedback information is sent to the testing equipment. After receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results. If the PCBA board is normal, the formal program is burned to The PCBA board.
本申请实施例的有益效果在于,通过微控制单元为PCBA板提供PCBA板正常运行的额定电压,以使所述PCBA板进行上电自测,并将电压测试结果反馈给微控制单元,微控制单元在接收到所述电压测试结果后,对所述PCBA板的串口进行测试,如果所述PCBA板的串口能够正常通信,测试设备通过扫描PCBA板上的条形码从而获取PCBA板的测试配置表。在获取测试配置表后,将测试程序烧录至所述PCBA板上,烧录完成之后,根据所述测试配置表选择需要进行测试的功能项,并根据所选择的 功能项生成功能测试请求,并将所述功能测试请求发送至微控制单元,微控制单元在接收到所述功能测试请求后,根据所述功能测试请求生成功能测试指令,并将所述功能测试指令发送至PCBA板。PCBA板在接收到功能测试指令后,根据所述功能测试指令开启测试功能,并根据所述功能测试指令对相应的功能进行测试。微控制单元在发送功能测试指令后,每个预设时间会向PCBA板发送获取测试结果请求,PCBA板在接收到所述获取测试结果请求后,将当前测试完成的功能项的测试结果发送给微控制单元,微控制单元在接收到所述测试结果后,将所述测试结果发送给测试设备,测试设备在接收到所述测试结果后进行记录。当PCBA板完成功能测试指令中的所有功能项的测试后,会给微控制单元发送一个全部测试完毕的反馈信息,微控制单元在接收到所述反馈结果后,将所述反馈结果发送给测试设备,测试设备在接收到所述反馈信息后,根据记录的测试结果判断所述PCBA板是否正常,如果正常,将正式程序烧录到PCBA板中。通过这种测试方式,可以减少人工干预硬件、提高生产质量,从而减少人力成本、提高用户体验。The beneficial effect of the embodiments of the present application is that the micro-control unit provides the PCBA board with the rated voltage for the normal operation of the PCBA board, so that the PCBA board performs power-on self-test, and the voltage test result is fed back to the micro-control unit, and the micro-control After receiving the voltage test result, the unit tests the serial port of the PCBA board. If the serial port of the PCBA board can communicate normally, the test equipment scans the barcode on the PCBA board to obtain the test configuration table of the PCBA board. After obtaining the test configuration table, burn the test program to the PCBA board. After the programming is completed, select the function items that need to be tested according to the test configuration table, and generate a function test request according to the selected function item, The functional test request is sent to the micro control unit. After receiving the functional test request, the micro control unit generates a functional test instruction according to the functional test request, and sends the functional test instruction to the PCBA board. After the PCBA board receives the function test instruction, it turns on the test function according to the function test instruction, and tests the corresponding function according to the function test instruction. After the micro-control unit sends the function test instruction, it will send a test result request to the PCBA board at each preset time. After receiving the test result request, the PCBA board sends the test result of the functional item currently tested to The micro control unit, after receiving the test result, sends the test result to the test device, and the test device records the test result after receiving the test result. After the PCBA board has completed the test of all the functional items in the functional test instruction, it will send a feedback message that all the tests have been completed to the micro-control unit. After receiving the feedback result, the micro-control unit will send the feedback result to the tester. Equipment, after receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if it is normal, the formal program is burned into the PCBA board. Through this testing method, manual intervention in hardware can be reduced, and production quality can be improved, thereby reducing labor costs and improving user experience.
如图5所示,本申请实施例还提供了一种测试PCBA板的方法,应用于微控制单元,所述方法包括:As shown in FIG. 5, an embodiment of the present application also provides a method for testing a PCBA board, which is applied to a micro-control unit, and the method includes:
步骤S501,接收测试设备发送的功能测试请求,根据所述功能测试请求发送启动功能测试指令至所述PCBA板。Step S501: Receive a function test request sent by a testing device, and send a function test start instruction to the PCBA board according to the function test request.
在测试设备获取所述PCBA板的测试配置表后,测试设备会根据所述测试配置表生成功能测试请求,微控制单元在接收到测试设备发送的功能测试请求后,根据所述功能测试请求生成开启功能测试指令,并将所述开启功能测试指令发送至PCBA板。所述PCBA板在接收到所述开启功能测试指令后启动功能测试,启动功能测试后,根据接收的功能测试指令对相应的功能进行测试。After the test device obtains the test configuration table of the PCBA board, the test device generates a functional test request according to the test configuration table, and the micro-control unit generates a functional test request according to the functional test request after receiving the functional test request sent by the test device Turn on the function test instruction, and send the turn on function test instruction to the PCBA board. The PCBA board starts a function test after receiving the start function test instruction. After the function test is started, the corresponding function is tested according to the received function test instruction.
在其他一些实施例中,在所述接收测试设备发送的功能测试请求之前,所述方法还包括:向所述PCBA板提供电压,以使所述PCBA板进行电压测试,并接收所述PCBA板的电压测试结果,并将所述电压测试结果发送给所述测试设备,以使所述测试设备对所述PCBA板的串口进行 测试。In some other embodiments, before the receiving the functional test request sent by the testing device, the method further includes: providing a voltage to the PCBA board, so that the PCBA board performs a voltage test, and receiving the PCBA board And send the voltage test result to the test device so that the test device can test the serial port of the PCBA board.
在对PCBA板进行测试之前,首先要对PCBA进行上电自测,以保证后续测试能够正常进行,所述上电自测为通过微控制单元给PCBA板提供PCBA板的额定电压,PCBA板能够在所述额定电压下进行PCBA板功能运作。在微控制单元为所述PCBA板提供额定电压后,PCAB板进行功能运行,并向微控制单元反馈一个上电自测的电压测试结果,微控制单元在接收到所述电压测试结果后,将所述电压测试结果发送给测试设备。Before testing the PCBA board, first perform a power-on self-test on the PCBA to ensure that subsequent tests can be performed normally. The power-on self-test is to provide the PCBA board with the rated voltage of the PCBA board through the micro-control unit, and the PCBA board can Perform PCBA board function operation under the rated voltage. After the micro-control unit provides the rated voltage for the PCBA board, the PCAB board performs functional operation and feeds back a power-on self-test voltage test result to the micro-control unit. After receiving the voltage test result, the micro-control unit will The voltage test result is sent to the test equipment.
测试设备在接收到所述电压测试结果后,根据所述电压测试结果判断所述PCBA板在额定电压下是否能正常工作,如果能正常工作,对所述PCBA板的串口进行测试是否能正常通信。测试设备向PCBA板发送一个串口测试信息,PCBA板在接收到所述串口测试信息后,根据所述串口测试信息向测试设备发送的一个反馈信息。如果测试设备能接受到所述反馈信息则说明所述PCBA板的串口能够正常通信,如果测试设备没有收到PCBA板的串口测试信息的反馈信息,则说明所述PCBA板的串口无法正常通信。After receiving the voltage test result, the test equipment judges whether the PCBA board can work normally under the rated voltage according to the voltage test result, and if it can work normally, test whether the serial port of the PCBA board can communicate normally . The test device sends a serial port test information to the PCBA board, and the PCBA board sends a feedback message to the test device according to the serial port test information after receiving the serial port test information. If the test equipment can receive the feedback information, it indicates that the serial port of the PCBA board can communicate normally. If the test equipment does not receive the feedback information of the serial port test information of the PCBA board, it indicates that the serial port of the PCBA board cannot communicate normally.
步骤S502,每隔预设时间向所述PCBA板发送获取测试结果请求。In step S502, a request for obtaining a test result is sent to the PCBA board every preset time.
微控制单元将功能测试指令发送至PCBA板后,每隔预设时间会向PCBA板发送获取测试结果请求,所述预设时间可以根据实际情况进行设置,优选的,可以设置为20ms。After the micro-control unit sends the functional test instruction to the PCBA board, it will send a test result request to the PCBA board every preset time. The preset time can be set according to the actual situation, preferably, it can be set to 20ms.
步骤S503,接收所述PCBA板的测试结果,并将所述测试结果发送至所述测试设备。Step S503: Receive the test result of the PCBA board, and send the test result to the test device.
PCBA板在接收到微控制单元发送的获取测试结果请求后,查询当前已经测试的功能项的测试结果发送至微控制单元。微控制单元在接收到所述测试结果后,将所述测试结果发送给测试设备,测试设备接收到所述测试结果后,记录所述测试结果。当所有需要进行测试功能项都测试完成,则PCBA板会向微控制单元发送一个功能项已经全部测试完毕的反馈信息,微控制单元在接收到所述反馈信息后,将所述反馈信息发送给测试设备,测试设备在接收到所述反馈信息后,根据记录的所述测试结果判断所述PCBA板是否正常,如果所述PCBA板正常,则将正式程序 烧录至所述PCBA板中。After the PCBA board receives the test result request sent by the micro control unit, it queries the test results of the currently tested functional items and sends it to the micro control unit. After receiving the test result, the micro control unit sends the test result to the test device, and the test device records the test result after receiving the test result. When all the functional items that need to be tested have been tested, the PCBA board will send a feedback information that all the functional items have been tested to the micro-control unit. After receiving the feedback information, the micro-control unit sends the feedback information to Testing equipment, after receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if the PCBA board is normal, then the formal program is burned into the PCBA board.
如图6所示,为本申请实施例提供的测试PCBA板的方法的测试过程:As shown in FIG. 6, the testing process of the method for testing PCBA board provided by the embodiment of this application:
微控制单元为PCBA板提供额定电压,以使所述PCBA板进行上电自测,以保证后续测试能够正常进行,所述上电自测为通过微控制单元给PCBA板提供PCBA板的额定电压,PCBA板能够在所述额定电压下进行PCBA板功能运作。在微控制单元为所述PCBA板提供额定电压后,PCAB板进行功能运行,并向微控制单元反馈一个上电自测的电压测试结果,微控制单元在接收到所述电压测试结果后,将所述电压测试结果发送给测试设备。The micro-control unit provides a rated voltage for the PCBA board to enable the PCBA board to perform a power-on self-test to ensure that subsequent tests can be performed normally. The power-on self-test is to provide the PCBA board with the rated voltage of the PCBA board through the micro-control unit , PCBA board can perform PCBA board function operation under the rated voltage. After the micro control unit provides the rated voltage for the PCBA board, the PCAB board performs functional operation and feeds back a power-on self-test voltage test result to the micro control unit. After receiving the voltage test result, the micro control unit will The voltage test result is sent to the test equipment.
测试设备在接收到所述电压测试结果后,根据所述电压测试结果判断所述PCBA板在额定电压下是否能正常工作,如果能正常工作,对所述PCBA板的串口进行测试是否能正常通信。测试设备向PCBA板发送一个串口测试信息,PCBA板在接收到所述串口测试信息后,根据所述串口测试信息向测试设备发送的一个反馈信息。如果测试设备能接受到所述反馈信息则说明所述PCBA板的串口能够正常通信,如果测试设备没有收到PCBA板的串口测试信息的反馈信息,则说明所述PCBA板的串口无法正常通信。After receiving the voltage test result, the test equipment judges whether the PCBA board can work normally under the rated voltage according to the voltage test result, and if it can work normally, test whether the serial port of the PCBA board can communicate normally . The test device sends a serial port test information to the PCBA board, and the PCBA board sends a feedback message to the test device according to the serial port test information after receiving the serial port test information. If the test equipment can receive the feedback information, it indicates that the serial port of the PCBA board can communicate normally. If the test equipment does not receive the feedback information of the serial port test information of the PCBA board, it indicates that the serial port of the PCBA board cannot communicate normally.
在对所述PCBA板进行上电自测和串口通信的测试之后,如果所述PCBA板的上电自测和串口通信均正常,由于需要对所述PCBA板进行测试,所以需要对所述PCBA板进行测试程序的烧录,以使后续需要进行PCBA板配置表中的功能项进行测试的时候,测试程序可以对这些功能项进行测试。After performing the power-on self-test and serial communication test on the PCBA board, if the power-on self-test and serial communication of the PCBA board are normal, since the PCBA board needs to be tested, the PCBA board needs to be tested. The test program is programmed on the board, so that when the function items in the PCBA board configuration table need to be tested later, the test program can test these function items.
读取所述PCBA板的测试配置表。其中,在一些实施例中,所述读取PCBA板的测试配置表可以通过扫描PCBA板上的条形码,在扫描后读取所述条形码中携带的所述PCBA板的配置数据,在获取所述PCBA板的配置数据后将所述配置数据进行分析整理,从而整合成测试配置表。测试设备可以根据配置测试表中的功能项,根据实际情况选择需要进行测试的功能项,并根据所选择的功能项生成对应的功能测试请求,并将所 述测试请求发送至微控制单元。Read the test configuration table of the PCBA board. Wherein, in some embodiments, the test configuration table of the PCBA board can be read by scanning the barcode on the PCBA board, and after scanning, the configuration data of the PCBA board carried in the barcode is read, and the After the configuration data of the PCBA board, the configuration data is analyzed and sorted, so as to be integrated into a test configuration table. The test equipment can select the function items that need to be tested according to the function items in the configuration test table, according to the actual situation, and generate the corresponding function test request according to the selected function item, and send the test request to the micro control unit.
微控制单元在接收到测试设备发送的功能测试请求后,根据所述功能测试请求生成开启功能测试指令,并将所述开启功能测试指令发送至PCBA板。所述PCBA板在接收到所述开启功能测试指令后启动功能测试,启动功能测试后,根据接收的功能测试指令对相应的功能进行测试。After receiving the function test request sent by the test device, the micro control unit generates an opening function test instruction according to the function test request, and sends the opening function test instruction to the PCBA board. The PCBA board starts a function test after receiving the start function test instruction. After the function test is started, the corresponding function is tested according to the received function test instruction.
在微控制单元将功能测试指令发送至PCBA板后,每隔预设时间会向PCBA板发送获取测试结果请求,所述预设时间可以根据实际情况进行设置,优选的,可以设置为20ms。PCBA板在接收到微控制单元发送的获取测试结果请求后,查询当前已经测试的功能项的测试结果发送至微控制单元。微控制单元在接收到所述测试结果后,将所述测试结果发送给测试设备,测试设备接收到所述测试结果后,记录所述测试结果。当所有需要进行测试功能项都测试完成,则PCBA板会向微控制单元发送一个功能项已经全部测试完毕的反馈信息,微控制单元在接收到所述反馈信息后,将所述反馈信息发送给测试设备,测试设备在接收到所述反馈信息后,根据记录的所述测试结果判断所述PCBA板是否正常,如果所述PCBA板正常,则将正式程序烧录至所述PCBA板中。After the micro-control unit sends the functional test instruction to the PCBA board, it will send a test result request to the PCBA board every preset time. The preset time can be set according to the actual situation, preferably, it can be set to 20ms. After the PCBA board receives the test result request sent by the micro control unit, it queries the test results of the currently tested functional items and sends it to the micro control unit. After receiving the test result, the micro control unit sends the test result to the test device, and the test device records the test result after receiving the test result. When all the functional items that need to be tested have been tested, the PCBA board will send a feedback information that all the functional items have been tested to the micro-control unit. After receiving the feedback information, the micro-control unit sends the feedback information to Testing equipment, after receiving the feedback information, the testing equipment judges whether the PCBA board is normal according to the recorded test results, and if the PCBA board is normal, then the formal program is burned into the PCBA board.
如图7是本申请实施例提供的测试设备的硬件结构示意图,该测试设备的硬件结构10包括:Fig. 7 is a schematic diagram of the hardware structure of the test device provided by the embodiment of the present application. The hardware structure 10 of the test device includes:
一个或多个第一处理器101以及第一存储器102,图7中以一个第一处理器101为例。One or more first processors 101 and first memory 102. In FIG. 7, one first processor 101 is taken as an example.
第一处理器101和第一存储器102可以通过总线或者其他方式连接,图7中以通过总线连接为例。The first processor 101 and the first memory 102 may be connected through a bus or in other ways. In FIG. 7, the connection through a bus is taken as an example.
第一存储器102作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。第一处理器101通过运行存储在第一存储器102中的非易失性软件程序、指令以及模块,从而执行测试设备的各种功能应用以及数据处理,即实现上述方法实施例的测试PCBA板的方法。As a non-volatile computer-readable storage medium, the first memory 102 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The first processor 101 executes various functional applications and data processing of the test equipment by running the non-volatile software programs, instructions, and modules stored in the first memory 102, that is, the test PCBA board of the foregoing method embodiment is implemented. method.
第一存储器102可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可 存储根据测试设备所创造的数据等。此外,第一存储器102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,第一存储器102可选包括相对于第一处理器101远程设置的存储器,这些远程存储器可以通过网络连接至测试设备。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The first memory 102 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the test equipment. In addition, the first memory 102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the first memory 102 may optionally include memories remotely provided with respect to the first processor 101, and these remote memories may be connected to the test device through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述第一存储器102中,当被所述一个或者多个第一处理器执行时,执行上述应用于测试设备的实施例中的测试PCBA板的方法。The one or more modules are stored in the first memory 102, and when executed by the one or more first processors, the method for testing a PCBA board in the above-mentioned embodiment applied to a test device is executed.
如图8是本申请实施例提供的微控制单元的硬件结构示意图,该微控制单元的硬件结构20包括:Fig. 8 is a schematic diagram of the hardware structure of the micro control unit provided by the embodiment of the present application. The hardware structure 20 of the micro control unit includes:
一个或多个第二处理器201以及第二存储器202,图8中以一个第二处理器201为例。One or more second processors 201 and second memory 202. In FIG. 8, one second processor 201 is taken as an example.
第二处理器201和第二存储器202可以通过总线或者其他方式连接,图8中以通过总线连接为例。The second processor 201 and the second memory 202 may be connected through a bus or in other ways. In FIG. 8, the connection through a bus is taken as an example.
第二存储器202作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。第二处理器201通过运行存储在第二存储器202中的非易失性软件程序、指令以及模块,从而执行微控制单元的各种功能应用以及数据处理,即实现上述应用于微控制单元侧的实施例的测试PCBA板的方法。As a non-volatile computer-readable storage medium, the second memory 202 can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The second processor 201 executes various functional applications and data processing of the micro-control unit by running the non-volatile software programs, instructions, and modules stored in the second memory 202, that is, realizes the above-mentioned application to the micro-control unit side. The method of testing the PCBA board of the embodiment.
第二存储器202可以包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需要的应用程序;存储数据区可存储根据微控制单元所创造的数据等。此外,第二存储器202可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他非易失性固态存储器件。在一些实施例中,第二存储器202可选包括相对于第二处理器201远程设置的存储器,这些远程存储器可以通过网络连接至微控制单元。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The second memory 202 may include a program storage area and a data storage area. The program storage area may store an operating system and an application program required by at least one function; the data storage area may store data created according to the micro-control unit. In addition, the second memory 202 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices. In some embodiments, the second memory 202 may optionally include memories remotely provided with respect to the second processor 201, and these remote memories may be connected to the micro-control unit through a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
所述一个或者多个模块存储在所述第二存储器202中,当被所述一 个或者多个第二处理器执行时,执行上述应用于微控制单元的实施例中的测试PCBA板的方法。The one or more modules are stored in the second memory 202, and when executed by the one or more second processors, the method for testing the PCBA board in the above-mentioned embodiment applied to the micro control unit is executed.
本申请实施例提供了一种非易失性计算机可读存储介质,所述计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个处理器执行,例如图7中的一个处理器101,可使得上述一个或多个处理器可执行上述任意方法实施例中的测试PCBA板的方法。The embodiment of the present application provides a non-volatile computer-readable storage medium, the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are executed by one or more processors, for example, as shown in FIG. 7 One processor 101 in the above-mentioned one or more processors can execute the method for testing a PCBA board in any of the above-mentioned method embodiments.
以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in One place, or it can be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;在本申请的思路下,以上实施例或者不同实施例中的技术特征之间也可以进行组合,步骤可以以任意顺序实现,并存在如上所述的本申请的不同方面的许多其它变化,为了简明,它们没有在细节中提供;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, not to limit them; under the idea of this application, the above embodiments or the technical features in different embodiments can also be combined. The steps can be implemented in any order, and there are many other variations in different aspects of the application as described above. For the sake of brevity, they are not provided in the details; although the application has been described in detail with reference to the foregoing embodiments, it is common in the art The technical personnel should understand that: they can still modify the technical solutions recorded in the foregoing embodiments, or equivalently replace some of the technical features; and these modifications or substitutions do not make the essence of the corresponding technical solutions deviate from the implementations of this application Examples of the scope of technical solutions.
Claims (11)
- 一种测试PCBA板的方法,应用于测试设备,其特征在于,所述方法包括:A method for testing a PCBA board is applied to a testing device, and is characterized in that the method includes:读取所述PCBA板的测试配置表;Read the test configuration table of the PCBA board;将测试程序烧录至所述PCBA板;Burn the test program to the PCBA board;根据所述测试配置表发送功能测试请求至微控制单元,以使所述微控制单元根据所述功能测试请求发送开启功能测试指令至所述PCBA板;Sending a function test request to the micro-control unit according to the test configuration table, so that the micro-control unit sends a function test-on instruction to the PCBA board according to the function test request;接收所述微控制单元发送的测试结果,并根据所述测试结果确定所述PCBA板是否正常,如果所述PCBA板正常,对所述PCBA进行正式程序烧录。Receive the test result sent by the micro-control unit, and determine whether the PCBA board is normal according to the test result, and if the PCBA board is normal, perform formal programming on the PCBA.
- 根据权利要求1所述的方法,其特征在于,所述读取所述PCBA板的测试配置表之前,所述方法还包括:The method according to claim 1, wherein before the reading the test configuration table of the PCBA board, the method further comprises:接收所述微控制单元发送的所述PCBA板的电压测试结果;Receiving the voltage test result of the PCBA board sent by the micro control unit;根据所述电压测试结果发送串口测试信息至所述PCBA板,以根据所述PCBA板对所述串口测试信息的反馈信息确认所述串口是否正常。The serial port test information is sent to the PCBA board according to the voltage test result, so as to confirm whether the serial port is normal according to the feedback information of the PCBA board to the serial port test information.
- 根据权利要求2所述的方法,其特征在于,所述读取所述PCBA板的测试配置表,包括:The method according to claim 2, wherein said reading the test configuration table of the PCBA board comprises:通过识别所述PCBA板上的条形码,获取所述PCBA板的配置数据,并将所述PCBA板的配置数据整合成所述测试配置表。By recognizing the barcode on the PCBA board, the configuration data of the PCBA board is obtained, and the configuration data of the PCBA board is integrated into the test configuration table.
- 根据权利要求3所述的方法,其特征在于,所述根据所述测试配置表发送功能测试请求至微控制单元,以使所述微控制单元根据所述功能测试请求发送开启功能测试指令至所述PCBA板,包括:The method according to claim 3, wherein said sending a function test request to a micro-control unit according to the test configuration table, so that the micro-control unit sends an enabling function test instruction to all the devices according to the function test request. The PCBA board includes:根据所述测试配置表选择需要进行测试的功能选项,并根据所述功能选项生成对应的功能测试请求;Select the function option to be tested according to the test configuration table, and generate a corresponding function test request according to the function option;将所述功能测试请求发送至微控制单元,以使微控制单元根据所述功能测试请求对PCBA板进行相应功能的测试。The functional test request is sent to the micro control unit, so that the micro control unit performs a corresponding function test on the PCBA board according to the functional test request.
- 一种测试PCBA板的方法,应用于微控制单元,其特征在于,所述方法包括:A method for testing a PCBA board is applied to a micro-control unit, and is characterized in that the method includes:接收测试设备发送的功能测试请求,根据所述功能测试请求发送启 动功能测试指令至所述PCBA板;Receiving a function test request sent by a test device, and sending a function test start instruction to the PCBA board according to the function test request;每隔预设时间向所述PCBA板发送获取测试结果请求;Sending a request for obtaining test results to the PCBA board every preset time;接收所述PCBA板的测试结果,并将所述测试结果发送至所述测试设备。Receiving the test result of the PCBA board, and sending the test result to the test device.
- 根据权利要求5所述的方法,其特征在于,所述接收测试设备发送的功能测试请求之前,所述方法还包括:The method according to claim 5, characterized in that, before the receiving the function test request sent by the test device, the method further comprises:向所述PCBA板提供电压,以使所述PCBA板进行电压测试,并接收所述PCBA板的电压测试结果,并将所述电压测试结果发送给所述测试设备,以使所述测试设备对所述PCBA板的串口进行测试。Provide voltage to the PCBA board to make the PCBA board perform a voltage test, and receive the voltage test result of the PCBA board, and send the voltage test result to the test device, so that the test device can The serial port of the PCBA board is tested.
- 一种测试设备,其特征在于,包括:A test equipment, characterized in that it comprises:至少一个处理器;以及At least one processor; and与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-4任一项所述测试PCBA板的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the test described in any one of claims 1 to 4 PCBA board method.
- 一种微控制单元,其特征在于,包括:A micro control unit, characterized in that it comprises:至少一个处理器;以及At least one processor; and与所述至少一个处理器通信连接的存储器;其中,A memory communicatively connected with the at least one processor; wherein,所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求5-6任一项所述测试PCBA板的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor, so that the at least one processor can execute the test described in any one of claims 5-6 PCBA board method.
- 一种测试PCBA板的系统,其特征在于,所述测试PCBA板的系统包括权利要求7所述的测试设备、权利要求8所述的微控制单元。A system for testing a PCBA board, characterized in that the system for testing a PCBA board comprises the testing equipment according to claim 7 and the micro control unit according to claim 8.
- 一种非易失性计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机可执行指令,当所述计算机可执行指令被测试设备所执行时,使所述测试设备执行权利要求1-4任一项所述的方法。A non-volatile computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a test device, the test device executes The method of any one of claims 1-4.
- 一种包含程序代码的计算机程序产品,其特征在于,当所述计算机程序产品在电子设备上运行时,使得所述电子设备执行如权利要求1-4中任一项所述的方法。A computer program product containing program code, characterized in that, when the computer program product runs on an electronic device, the electronic device is caused to execute the method according to any one of claims 1-4.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911380015.4A CN111143150A (en) | 2019-12-27 | 2019-12-27 | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit |
CN201911380015.4 | 2019-12-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2021129551A1 true WO2021129551A1 (en) | 2021-07-01 |
Family
ID=70521062
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/137887 WO2021129551A1 (en) | 2019-12-27 | 2020-12-21 | Method and system for testing pcba board, and test device and micro control unit |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN111143150A (en) |
WO (1) | WO2021129551A1 (en) |
Families Citing this family (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111143150A (en) * | 2019-12-27 | 2020-05-12 | 深圳市越疆科技有限公司 | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit |
CN111818438B (en) * | 2020-06-29 | 2021-09-17 | 青岛歌尔智能传感器有限公司 | Semi-finished product testing method and system of wireless earphone and computer readable storage medium |
CN112083311A (en) * | 2020-08-08 | 2020-12-15 | 深圳顺势为快科技有限公司 | PCBA board test method and system |
CN112415368A (en) * | 2020-11-25 | 2021-02-26 | 珠海格力电器股份有限公司 | Circuit board detection method and device, electronic equipment and readable storage medium |
CN112783708B (en) * | 2021-01-28 | 2024-09-06 | 广东蘑菇物联科技有限公司 | DTU hardware testing method, terminal and computer readable storage medium |
CN113032200A (en) * | 2021-04-27 | 2021-06-25 | 深圳芯邦科技股份有限公司 | Micro control unit processing method and related equipment |
CN114113973A (en) * | 2021-09-23 | 2022-03-01 | 深圳市云伽智能技术有限公司 | Circuit board testing method and device, computer equipment and storage medium thereof |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080313503A1 (en) * | 2007-06-14 | 2008-12-18 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Device and method for testing motherboard |
CN103454575A (en) * | 2013-09-06 | 2013-12-18 | 福州瑞芯微电子有限公司 | System, PCBA board and method for achieving PCBA board testing |
CN104978265A (en) * | 2014-04-09 | 2015-10-14 | 罗森伯格(上海)通信技术有限公司 | PCBA test method and PCBA test system |
CN110308385A (en) * | 2019-07-19 | 2019-10-08 | 惠尔丰(中国)信息系统有限公司 | A kind of PCBA Online Transaction Processing and method |
CN110596569A (en) * | 2019-08-20 | 2019-12-20 | 福州瑞芯微电子股份有限公司 | PCBA board testing method and device |
CN111143150A (en) * | 2019-12-27 | 2020-05-12 | 深圳市越疆科技有限公司 | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107390110A (en) * | 2017-06-20 | 2017-11-24 | 广东科学技术职业学院 | A kind of method, apparatus and system tested automatically PCBA |
CN108037444B (en) * | 2017-12-29 | 2023-12-15 | 广州市中海达测绘仪器有限公司 | GNSS PCBA automatic test system and application method thereof |
-
2019
- 2019-12-27 CN CN201911380015.4A patent/CN111143150A/en active Pending
-
2020
- 2020-12-21 WO PCT/CN2020/137887 patent/WO2021129551A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080313503A1 (en) * | 2007-06-14 | 2008-12-18 | Hong Fu Jin Precision Industry (Shenzhen) Co., Ltd. | Device and method for testing motherboard |
CN103454575A (en) * | 2013-09-06 | 2013-12-18 | 福州瑞芯微电子有限公司 | System, PCBA board and method for achieving PCBA board testing |
CN104978265A (en) * | 2014-04-09 | 2015-10-14 | 罗森伯格(上海)通信技术有限公司 | PCBA test method and PCBA test system |
CN110308385A (en) * | 2019-07-19 | 2019-10-08 | 惠尔丰(中国)信息系统有限公司 | A kind of PCBA Online Transaction Processing and method |
CN110596569A (en) * | 2019-08-20 | 2019-12-20 | 福州瑞芯微电子股份有限公司 | PCBA board testing method and device |
CN111143150A (en) * | 2019-12-27 | 2020-05-12 | 深圳市越疆科技有限公司 | Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit |
Also Published As
Publication number | Publication date |
---|---|
CN111143150A (en) | 2020-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2021129551A1 (en) | Method and system for testing pcba board, and test device and micro control unit | |
US11507450B2 (en) | Systems and methods to reprogram mobile devices via a cross-matrix controller to port connection | |
US7613916B2 (en) | Method for burning chips | |
WO2018000607A1 (en) | Method and electronic apparatus for identifying test case failure causes | |
TWI510913B (en) | Testing device and testing method thereof | |
US10191838B2 (en) | Method and device for checking influence of deleting cache file, and mobile terminal | |
US20120297178A1 (en) | Configuration mode switching system and method | |
WO2019227641A1 (en) | Application testing method, apparatus, terminal device and medium | |
US20090234942A1 (en) | Apparatus, system, and method for testing embedded device | |
US9703937B2 (en) | Method to prevent operating system digital product key activation failures | |
CN103593281A (en) | Test system and test method | |
US20140149815A1 (en) | System and method for programming chips on circuit board through boundary scan technology | |
CN117743061B (en) | FTTR-based FPGA key wireless static test method, FTTR-based FPGA key wireless static test device, FTTR-based FPGA key wireless static test equipment and medium | |
CN116303034A (en) | Automatic test system, method, equipment and medium for network on chip | |
CN104516759A (en) | Generating method for integration mirror image document, testing method and device | |
CN111427777B (en) | SOL test method, system, equipment and medium | |
CN105700917A (en) | Method and apparatus for synchronizing DLL and database | |
JP7170256B2 (en) | App performance monitoring device and method | |
CN108776601B (en) | Android H5 page loading method, device, equipment and storage medium | |
CN110555090B (en) | Method, system, terminal and storage medium for automatically acquiring CPU BUS Number | |
CN115129355B (en) | Page repair method, system and computer equipment thereof | |
CN114860549B (en) | Buried data verification method, buried data verification device, buried data verification equipment and storage medium | |
CN102023918A (en) | Method for testing server products | |
CN116028088A (en) | PCIE network card-based test burning method, system and related device | |
TW202304182A (en) | Method for accessing remote computer, electronic device, and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20904649 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 20904649 Country of ref document: EP Kind code of ref document: A1 |