Circuit board detection method and device, electronic equipment and readable storage medium
By establishing the correspondence between the circuit board type, interface type and interface requirement parameters, and adjusting the parameters of the detection interface to match the requirements of the interface to be tested, the problem that conventional detection devices can only detect one type of core board, realizing interface and performance detection of different types of circuit boards, improving the universality and functional integrity of detection.
Patent Information
- Application Number
- CN202411707973.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-25
- Publication Date
- 2025-02-28
AI Technical Summary
Conventional detection devices usually only detect one type of core board, which has limitations.
By collecting information on the circuit board, analyzing and establishing the correspondence between the circuit board type, interface type and interface requirement parameters, adjusting the parameters of the detection interface to match the requirements of the interface to be tested, and implementing interface and performance detection of different types of circuit boards.
It realizes universal detection of different types of circuit boards, can detect interfaces and performance at the same time, has wider applicability and more complete functions.
Smart Images

Figure CN119535168A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of circuit board detection, and in particular to a circuit board detection method, device, electronic equipment and readable storage medium. Background Art
[0002] With the continuous growth of global electricity demand and the increasing complexity of power systems, the application of power terminal equipment in power systems has become increasingly important. Power terminal equipment is mainly used for monitoring, control and data acquisition of power systems. Its performance and reliability are directly related to the safe operation and management efficiency of power systems. As the core component of power terminal equipment, the core board of the power terminal plays a vital role in the stability and reliability of the entire power terminal equipment.
[0003] At present, there are many types of CPU (Central Processing Unit) core boards. Due to design differences among manufacturers, the design and type of each CPU core board are different, including but not limited to interface type, communication protocol, power supply requirements, etc., and conventional detection devices usually only detect one type of core board, which has certain limitations in use. Summary of the invention
[0004] The present invention aims to at least solve the problem that conventional detection devices usually only detect one type of core board.
[0005] To this end, a first aspect of the present invention provides a circuit board detection method.
[0006] A second aspect of the present invention provides a circuit board detection device.
[0007] A third aspect of the present invention provides an electronic device.
[0008] A fourth aspect of the present invention provides a readable storage medium.
[0009] The circuit board detection method provided in the first aspect of the present invention is used for a circuit board detection device, the circuit board detection device includes a detection interface, the circuit board includes an interface to be tested, the detection interface is connected to the interface to be tested, and the circuit board detection method includes: collecting data information of the circuit board; analyzing the data information, and establishing a correspondence between the circuit board type, the interface type and the interface requirement parameters; determining the interface type of the interface to be tested; in response to the type of circuit board input by the user, based on the type of circuit board, the interface type of the interface to be tested and the correspondence, adjusting the interface parameters of the detection interface so that the detection interface meets the interface requirements of the interface to be tested, and detecting the interface to be tested.
[0010] The circuit board detection method provided by the present invention is used for detecting the interface and performance of the circuit board. Optionally, the circuit board can be a core board, and the core board includes chips such as a CPU and a GPU (Graphics Processing Unit). The detection method includes: first collecting data information of the circuit board, then analyzing the data information, and establishing a corresponding relationship between the circuit board type, the interface type and the interface requirement parameter, wherein different types of circuit boards include different numbers of interfaces and interface types. After establishing the corresponding relationship between the circuit board type, the interface type and the interface requirement parameter, it can be known how many types of interfaces exist for each type of circuit board, and what the interface requirement of each interface is. Therefore, when the type of the circuit board and the type of the interface to be tested are known, the requirement of the interface to be tested can be determined according to the corresponding relationship, thereby adjusting the parameters of the detection interface, so that the detection interface can meet the requirements of the interface to be tested, so that the interface to be tested can match the detection interface, thereby completing the detection of the interface to be tested. The detection device of the present invention can detect different types of interfaces of different types of circuit boards, and has high universality.
[0011] It should be noted that the detection interface of the circuit board detection device of the present application has certain design requirements. Since the data information of different models of circuit boards in the industry is collected, different types of interfaces in the industry are integrated according to the collected data information. Since the appearance and size of different types of interfaces are different, when designing the detection interface, the present application should make the detection interface include the pin definitions of all common interfaces and be physically large enough to accommodate interfaces of various sizes.
[0012] The circuit board of the present invention may be a circuit board of a power terminal, that is, the detection method of the present invention is particularly suitable for the detection of the circuit board of a power terminal.
[0013] In some technical solutions, optionally, the circuit board detection device also includes a standard detection platform, and a performance detection device is provided on the standard detection platform. The circuit board detection method also includes: detecting the performance of the circuit board installed on the standard detection platform and connected to the performance detection device through the performance detection device, and determining the performance value of the circuit board.
[0014] In this technical solution, after the interface detection, the performance of the circuit board can also be detected. Specifically, the circuit board can be installed on a standard detection platform first, and then connected to a performance detection device, so that the performance of the circuit board can be detected by the performance detection device and the performance value of the circuit board can be determined. For example, performance such as data processing speed can be detected. The present invention can detect the interface and performance at the same time, while the interface and performance are detected separately in conventional detection methods. Therefore, the present invention has wider applicability and more complete functions.
[0015] In some technical schemes, optionally, after the step of determining the performance value of the circuit board, it also includes: after detecting all the interfaces to be tested on the circuit board, determining whether there are damaged interfaces on the circuit board; if so, determining that the circuit board is scrap; if not, comparing each performance value of the circuit board with the corresponding performance threshold, and giving the circuit board a comprehensive score based on the comparison results.
[0016] In this technical solution, after all interfaces to be tested on the circuit board are tested, it is determined whether there are damaged interfaces on the circuit board. If there are damaged interfaces, the circuit board is determined to be scrapped, and the user can return or exchange the circuit board. If there are damaged interfaces, each performance value of the circuit board is compared with the corresponding performance threshold, and the circuit board is comprehensively scored according to the comparison results. That is, interface detection is a must-pass item, performance detection is a scoring item, and the minimum thresholds of various performances are set according to actual product requirements. The performance of the core board is higher than the minimum threshold and is considered to be passed. On this basis, the more performances that are higher than the minimum threshold, the better the performance of the circuit board.
[0017] In some technical schemes, optionally, each performance value of the circuit board is compared with the corresponding performance threshold, and the step of comprehensively scoring the circuit board based on the comparison result specifically includes: comparing each performance value of the circuit board with the corresponding performance threshold, determining that the performance above the performance threshold is high-quality performance, determining that the performance below the performance threshold is ordinary performance, and determining the comprehensive score of the circuit board based on the number of high-quality performance and the number of ordinary performance.
[0018] In the technical scheme, in the process of comprehensive scoring, each performance value of the circuit board is compared with the corresponding performance threshold, for example, the DDR (Double Data Rate) read and write rate of the circuit board is compared with the minimum DDR read and write rate, and the EMMC (Embedded Multi Media Card) read and write rate of the circuit board is compared with the minimum EMMC read and write rate, and the performance higher than the corresponding performance threshold is determined as high-quality performance, and the performance lower than the corresponding performance threshold is determined as ordinary performance. Based on the number of high-quality performance and the number of ordinary performance, the comprehensive score of the circuit board is determined. Optionally, the comprehensive score can be equal to the ratio of the number of high-quality performance to the total number of performance. The present invention can comprehensively score the circuit board, and the user can understand the comprehensive situation of the circuit board more intuitively.
[0019] In some technical solutions, the circuit board detection method also includes generating a detection report based on the detection results of interface detection and performance detection. The detection report includes the performance value of each performance, detection steps, detection tools and improvement measures for common performance. In this way, users can fully understand the performance of each performance and can also choose appropriate methods to improve the corresponding performance for performance that does not meet the standards.
[0020] In some technical solutions, optionally, the circuit board detection device also includes an image acquisition device, and the step of determining the interface type of the interface to be tested specifically includes: acquiring image information of the interface to be tested through the image acquisition device; and determining the interface type of the interface to be tested based on the image information.
[0021] In this technical solution, in the process of connecting the detection interface with the interface to be tested, the image acquisition device can obtain image information of the interface to be tested, and then analyze the image information, such as analyzing the morphology and labels of the interface to be tested, so as to determine the interface type of the interface to be tested, thereby completing the detection of the interface to be tested.
[0022] In some technical solutions, optionally, the interface type of the interface to be tested can also be determined based on user input information, that is, the user inputs the interface type of the interface to be tested into the circuit board detection device, so there is no need to set up an image acquisition device.
[0023] In some technical solutions, optionally, the interface requirement parameters include communication protocols and / or power supply parameters.
[0024] In this technical solution, different types of interfaces to be tested have different communication protocols, power supply parameters and other parameters. Therefore, the present application can quickly adjust the communication protocol and power supply parameters of the detection interface according to the corresponding relationship to match the interface to be tested.
[0025] In some technical solutions, optionally, the performance of the circuit board includes one of the following or a combination thereof: DDR read and write rate, DDR read and write stability, EMMC read and write rate, EMMC read and write stability, graphics rendering performance, wireless network performance, and heat dissipation performance.
[0026] In some technical solutions, optionally, the interface to be tested includes one of the following or a combination thereof: GPIO (General Purpose Input Output), PWM (Pulse Width Modulation), SWD (Serial Wire Debug), ADC (Analog-to-Digital Converter), DAC (Digital-to-Analog Converter), UART (Universal Asynchronous Receiver / Transmitter), USB (Universal Serial Bus), SPI (Serial Peripheral Interface), IIC (Inter-Integrated Circuit) and GMAC (Gigabit Media Access Control).
[0027] In some technical solutions, optionally, the data information of the circuit board includes one or a combination of the following: a chip manual, a hardware schematic diagram, a development document, a test report, and a design drawing.
[0028] In some technical solutions, optionally, the number of detection interfaces can be multiple, for example, greater than or equal to 2, so that joint detection of multiple detection interfaces can be achieved, thereby improving detection efficiency.
[0029] The second aspect of the present invention provides a circuit board detection device, including: an acquisition unit, used to acquire data information of the circuit board; an analysis unit, used to analyze the data information and establish a correspondence between the circuit board type, interface type and interface requirement parameters; a detection interface, connected to the interface to be tested of the circuit board; a determination unit, used to determine the interface type of the interface to be tested; a parameter adjustment unit, which can respond to the type of circuit board input by the user, and adjust the interface parameters of the detection interface based on the type of the circuit board, the interface type of the interface to be tested and the correspondence, so that the detection interface meets the interface requirements of the interface to be tested, and detects the interface to be tested.
[0030] The third aspect of the present invention provides an electronic device, including a memory and a processor, wherein a computer program or instructions are stored in the memory, and when the processor executes the computer program or instructions, the steps of the circuit board detection method provided by any technical solution of the first aspect of the present application are implemented.
[0031] The fourth aspect of the present invention provides a readable storage medium, on which a program or instruction is stored. When a processor executes the program or instruction, the steps of the circuit board detection method provided by any technical solution of the first aspect of the present application are implemented.
[0032] Additional aspects and advantages of the present invention will become apparent from the following description or may be learned by practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which:
[0034] Figure 1 One of the flow charts of the circuit board detection method according to the embodiment of the present invention is shown;
[0035] Figure 2 A second schematic flow chart of a circuit board detection method according to an embodiment of the present invention is shown;
[0036] Figure 3 A schematic diagram showing a flow chart of interface detection of a circuit board detection method according to an embodiment of the present invention;
[0037] Figure 4 A schematic diagram showing a flow chart of performance testing of a circuit board testing method according to an embodiment of the present invention;
[0038] Figure 5 A schematic structural diagram of a circuit board detection device according to an embodiment of the present invention is shown;
[0039] Figure 6 A schematic diagram showing the structure of an electronic device according to an embodiment of the present invention is shown;
[0040] Figure 7 An assembly diagram between a circuit board detection device and a circuit board according to an embodiment of the present invention is shown;
[0041] Figure 8 A schematic structural diagram of a standard testing platform portion of a circuit board testing device according to an embodiment of the present invention is shown.
[0042] in, Figures 5 to 8 The corresponding relationship between the reference numerals and the component names is as follows:
[0043] 1 circuit board detection device, 111 standard detection platform, 112 performance detection device, 12 acquisition unit, 14 analysis unit, 16 detection interface, 17 image acquisition device, 18 determination unit, 19 parameter adjustment unit, 700 electronic device, 701 processor, 702 memory, 2 circuit board, 22 interface to be tested. DETAILED DESCRIPTION
[0044] In order to more clearly understand the above-mentioned purpose, features and advantages of the present invention, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.
[0045] In the following description, many specific details are set forth to facilitate a full understanding of the present invention. However, the present invention may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present invention is not limited to the specific embodiments disclosed below.
[0046] like Figure 1 and Figure 7 As shown, the circuit board detection method provided by the first aspect of the present invention is used for a circuit board detection device 1, the circuit board detection device 1 includes a detection interface 16, the circuit board 2 includes a test interface 22, the detection interface 16 is connected to the test interface 22, and the circuit board detection method includes:
[0047] S102: Collecting information of the circuit board;
[0048] S104: Analyze the data information and establish a corresponding relationship between the circuit board type, the interface type and the interface requirement parameters;
[0049] S106: Determine the interface type of the interface to be tested;
[0050] S108: In response to the type of circuit board input by the user, based on the type of circuit board, the interface type of the interface to be tested and the corresponding relationship, adjust the interface parameters of the detection interface so that the detection interface meets the interface requirements of the interface to be tested, and detect the interface to be tested.
[0051] The detection method provided by the present invention is used to detect the interface and performance of a circuit board. Optionally, the circuit board can be a core board, which includes chips such as a CPU and a GPU. The detection method includes: first collecting data information of the circuit board, then analyzing the data information, and establishing a corresponding relationship between the circuit board type, the interface type and the interface requirement parameters, wherein different types of circuit boards include different numbers of interfaces and interface types. After establishing the corresponding relationship between the circuit board type, the interface type and the interface requirement parameters, it can be known how many types of interfaces exist for each type of circuit board, and what the interface requirements of each interface are. Therefore, when the type of the circuit board and the type of the interface to be tested are known, the requirements of the interface to be tested can be determined according to the corresponding relationship, thereby adjusting the parameters of the detection interface so that the detection interface can meet the requirements of the interface to be tested, so that the interface to be tested can match the detection interface, thereby completing the detection of the interface to be tested. The detection device of the present invention can detect different types of interfaces on different types of circuit boards, and has high universality.
[0052] It should be noted that the detection interface of the circuit board detection device of the present application has certain design requirements. Since the data information of different models of circuit boards in the industry is collected, different types of interfaces in the industry are integrated according to the collected data information. Since the appearance and size of different types of interfaces are different, when designing the detection interface, the present application should make the detection interface include the pin definitions of all common interfaces and be physically large enough to accommodate interfaces of various sizes.
[0053] The circuit board of the present invention may be a circuit board of a power terminal, that is, the detection method of the present invention is particularly suitable for the detection of the circuit board of a power terminal.
[0054] In some technical solutions, optionally, as Figure 8 As shown, the circuit board detection device 1 also includes a standard detection platform 111, and a performance detection device 112 is arranged on the standard detection platform 111. The circuit board detection method also includes: detecting the performance of the circuit board installed on the standard detection platform and connected to the performance detection device by the performance detection device, and determining the performance value of the circuit board.
[0055] In this technical solution, after the interface detection, the performance of the circuit board can also be detected. Specifically, the circuit board can be installed on a standard detection platform first, and then connected to a performance detection device, so that the performance of the circuit board can be detected by the performance detection device and the performance value of the circuit board can be determined. For example, performance such as data processing speed can be detected. The present invention can detect the interface and performance at the same time, while the interface and performance are detected separately in conventional detection methods. Therefore, the present invention has wider applicability and more complete functions.
[0056] In some technical schemes, optionally, after the step of determining the performance value of the circuit board, it also includes: after detecting all the interfaces to be tested on the circuit board, determining whether there are damaged interfaces on the circuit board; if so, determining that the circuit board is scrap; if not, comparing each performance value of the circuit board with the corresponding performance threshold, and giving the circuit board a comprehensive score based on the comparison results.
[0057] In this technical solution, after all interfaces to be tested on the circuit board are tested, it is determined whether there are damaged interfaces on the circuit board. If there are damaged interfaces, the circuit board is determined to be scrapped, and the user can return or exchange the circuit board. If there are damaged interfaces, each performance value of the circuit board is compared with the corresponding performance threshold, and the circuit board is comprehensively scored according to the comparison results. That is, interface detection is a must-pass item, performance detection is a scoring item, and the minimum thresholds of various performances are set according to actual product requirements. The performance of the core board is higher than the minimum threshold and is considered to be passed. On this basis, the more performances that are higher than the minimum threshold, the better the performance of the circuit board.
[0058] In some technical schemes, optionally, each performance value of the circuit board is compared with the corresponding performance threshold, and the step of comprehensively scoring the circuit board based on the comparison result specifically includes: comparing each performance value of the circuit board with the corresponding performance threshold, determining that the performance above the performance threshold is high-quality performance, determining that the performance below the performance threshold is ordinary performance, and determining the comprehensive score of the circuit board based on the number of high-quality performance and the number of ordinary performance.
[0059] In the technical scheme, in the process of comprehensive scoring, each performance value of the circuit board is compared with the corresponding performance threshold, for example, the DDR read and write rate of the circuit board is compared with the minimum DDR read and write rate, and the EMMC read and write rate of the circuit board is compared with the minimum EMMC read and write rate, and the performance higher than the corresponding performance threshold is determined as high-quality performance, and the performance lower than the corresponding performance threshold is determined as ordinary performance. Based on the number of high-quality performance and the number of ordinary performance, the comprehensive score of the circuit board is determined. Optionally, the comprehensive score can be equal to the ratio of the number of high-quality performance to the total number of performance. The present invention can comprehensively score the circuit board, and the user can more intuitively understand the comprehensive situation of the circuit board.
[0060] In some technical solutions, the circuit board detection method also includes generating a detection report based on the detection results of interface detection and performance detection. The detection report includes the performance value of each performance, detection steps, detection tools and improvement measures for common performance. In this way, users can fully understand the performance of each performance and can also choose appropriate methods to improve the corresponding performance for performance that does not meet the standards.
[0061] In some technical solutions, optionally, the circuit board detection device 1 also includes an image acquisition device 17, and the step of determining the interface type of the interface to be tested specifically includes: acquiring image information of the interface to be tested through the image acquisition device; and determining the interface type of the interface to be tested based on the image information.
[0062] In this technical solution, in the process of connecting the detection interface with the interface to be tested, the image acquisition device can obtain image information of the interface to be tested, and then analyze the image information, such as analyzing the morphology and labels of the interface to be tested, so as to determine the interface type of the interface to be tested, thereby completing the detection of the interface to be tested.
[0063] In some technical solutions, optionally, the interface type of the interface to be tested can also be determined based on user input information, that is, the user inputs the interface type of the interface to be tested into the circuit board detection device, so there is no need to set up an image acquisition device.
[0064] In some technical solutions, optionally, the interface requirement parameters include communication protocols and / or power supply parameters.
[0065] In this technical solution, different types of interfaces to be tested have different communication protocols, power supply parameters and other parameters. Therefore, the present application can quickly adjust the communication protocol and power supply parameters of the detection interface according to the corresponding relationship to match the interface to be tested.
[0066] In some technical solutions, optionally, the performance of the circuit board includes one of the following or a combination thereof: DDR read and write rate, DDR read and write stability, EMMC read and write rate, EMMC read and write stability, graphics rendering performance, wireless network performance, and heat dissipation performance.
[0067] In some technical solutions, optionally, the interface to be tested includes one or a combination of the following: GPIO, PWM, SWD, ADC, DAC, UART, USB, SPI, IIC and GMAC.
[0068] In some technical solutions, optionally, the data information of the circuit board includes one or a combination of the following: a chip manual, a hardware schematic diagram, a development document, a test report, and a design drawing.
[0069] In some technical solutions, optionally, the number of detection interfaces can be multiple, for example, greater than or equal to 2, so that joint detection of multiple detection interfaces can be achieved, thereby improving detection efficiency.
[0070] Another embodiment of the present invention provides a circuit board detection method. It should be understood that with the continuous growth of global electricity demand and the increasing complexity of power systems, the application of power terminal equipment in power systems has become increasingly important. Power terminal equipment is mainly used for monitoring, control and data acquisition of power systems, and its performance and reliability are directly related to the safe operation and management efficiency of power systems. As the core component of the power terminal equipment, the performance and compatibility of the core board of the power terminal play a vital role in the stability and reliability of the entire power terminal equipment.
[0071] At present, there are many types of CPUs for power terminals on the market. In order to meet the different functions and application scenarios of power terminal equipment, there are often multiple options for CPU selection in order to meet the needs of the mid-to-high-end market and deal with risks. Therefore, a systematic and comprehensive core board detection method is needed to ensure the stability and reliability of power terminal equipment.
[0072] Based on this, this embodiment provides a circuit board detection method, which is mainly a detection method for a power terminal core board. This detection method is compatible with multiple CPU core boards. Through pre-test preparation, interface detection, function detection, and performance detection, the core board is systematically and comprehensively detected. Specifically, Figure 2 As shown, the detection method of this embodiment includes the following steps:
[0073] S202: Preparation before testing.
[0074] Specifically, it is necessary to collect technical information of the power terminal core board, including chip manuals, hardware schematics, etc., sort out its pin resources, collect the hardware pin requirements of multiple power terminal core boards, and ensure that the detection device can meet the pin requirements of multiple power terminal core boards.
[0075] S204: Interface detection.
[0076] Specifically, the interface requirements of the power terminal core board are deconstructed and analyzed, including digital IO (Input / Output), analog IO and special function IO, among which the digital IO is mainly GPIO, the analog IO is mainly ADC, and the special function IO includes but is not limited to UART, USB, SPI, IIC, and GMAC. Interface tests are performed on these IOs respectively, and the test results are recorded.
[0077] S206: Performance testing.
[0078] Specifically, the core board is performance tested on a standard test platform, including response time, data processing capability, stability, etc., including but not limited to DDR read and write rate test and read and write stability test, EMMC read and write rate test and read and write stability test, and the test results are recorded.
[0079] S208: Comprehensive assessment.
[0080] Specifically, after the core board completes interface testing and performance testing, a comprehensive evaluation is conducted on its test results, where interface testing is a must-pass item and performance testing is a scoring item. Minimum thresholds for rate and communication stability are set based on actual product requirements, and core boards that are above the threshold are considered to have passed. On this basis, the higher the score, the better the performance of the core board.
[0081] It is understandable that the interface test is a must-pass item. If there is a damaged interface, the core board will be directly rated as 0. If all interfaces are intact, each performance will be scored separately. Taking the MMC read and write speed test as an example, the test steps are as follows:
[0082] Prepare a test file of size 1GB, record the current time T1, write the test file into the memory, record the current time T2, calculate T=T2-T1, repeat the above steps 100 times, and calculate the average value of T.
[0083] Test conclusion:
[0084] T>5s is unqualified, and the score is less than 60 points. For every 0.5s increase in T, 10 points will be deducted;
[0085] T = 5s pass, 60 points;
[0086] T<5s is passing, and above 60 points, 10 points will be added for every 0.5s reduction of T, with a full score of 100 points.
[0087] The MMC read and write speeds can be scored according to this test method.
[0088] In addition, it also includes performance tests such as the average duration of process creation, the average latency of IPC (Inter-Process Communication) pipeline communication, and the average latency of random memory access, as follows:
[0089] 1. Average duration of process creation
[0090] Test steps: Use the standard API (Application Programming Interface) interface fork to create a test process and record the current time T1; record the time from when the test outputs the first startup information and the current time T2; calculate T=T2-T1; repeat the above steps 100 times and calculate the average value of T.
[0091] Test conclusion:
[0092] T>1ms is unqualified, less than 60 points, 10 points will be deducted for every 100us increase;
[0093] T = 1ms, pass, 60 points;
[0094] T<1ms is qualified, and above 60 points, 10 points will be added for every 100us reduction, with a full score of 100 points.
[0095] 2. Average IPC pipeline communication delay
[0096] Test steps: Start the test process, create a pipe in the main process, and wait to receive data; create a child process, send a frame of data with a length of 256 bytes to the pipe, and record the current time T1; the main process receives the data and records the current time T2; calculate T=T2-T1; repeat the above steps 100 times and calculate the average value of T.
[0097] Test conclusion:
[0098] T>80ms is unqualified, and for scores below 60, 10 points will be deducted for every 10ms increase, with a full score of 100 points;
[0099] T = 80ms, pass, 60 points;
[0100] T<80ms is a pass, and above 60 points, 10 points will be added for every 10ms reduction, with a full score of 100 points.
[0101] 3. Average latency of random memory access
[0102] Test steps: Select 100 free areas (1KB) in the entire head, middle and tail of the DDR (Double Data Rate) memory, and map them to the user space using mmap (Memory Map); record the current time T1; randomly select an area, write 1KB of data, and calculate the hash; randomly select another area and calculate the hash again; repeat the above steps 1000 times; record the current time T2; calculate T = (T2-T1) / 1000.
[0103] Test conclusion:
[0104] If T>500ns, the score is not qualified. If the score is less than 60, 10 points will be deducted for every 50ns increase in T.
[0105] T=500ns passed, 60 points;
[0106] If T < 500ns, the score is passed; if it is above 60 points, 10 points will be added for every 50ns reduction of T, with a full score of 100 points.
[0107] It can be seen that the performance of the core board can be scored through the above corresponding scoring method. After all the performance is scored, the average score of all the performance is calculated. If the average score is higher than 60 points, the core board is determined to be qualified. If the average score is lower than 60 points, the core board is determined to be unqualified. Of course, in another scoring standard, the comprehensive score of the circuit board can also be determined based on the number of high-quality performance and the number of ordinary performance. There are many specific scoring standards, and users can set them arbitrarily according to their own needs, so no unnecessary elaboration will be given here.
[0108] Among them, during the interface detection process, such as Figure 3 As shown, the detection process includes:
[0109] S302: Digital IO detection;
[0110] S304: simulate IO detection;
[0111] S306: Special function IO detection.
[0112] In this step, the user can insert the detection interface into the digital IO, analog IO and special function IO of the core board in sequence, thereby completing the detection of the corresponding interface.
[0113] Among them, in the process of performance testing, such as Figure 4 As shown, the detection process includes:
[0114] S402: DDR read and write rate detection;
[0115] S404: DDR read and write stability detection;
[0116] S406: EMMC read and write rate detection;
[0117] S408: EMMC read and write stability detection.
[0118] The detection method provided by the present invention can be used for detection of the currently available T3 and T536 core boards, or the subsequently added RK3568, RK3562 and other core boards (wherein, T3 and T536 belong to two different series of core boards under Mil Quanzhi Company, and RK3568 and RK3562 are two different series of core boards under Rockchip Semiconductor Company), and can be applicable to actual power terminal core boards.
[0119] like Figure 5 As shown, the second aspect of the present invention provides a circuit board detection device 1, including: a collection unit 12, used to collect data information of a circuit board 2; an analysis unit 14, used to analyze the data information and establish a correspondence between the type of circuit board 2, the interface type and the interface requirement parameters; a detection interface 16, connected to the interface 22 to be tested of the circuit board 2; a determination unit 18, used to determine the interface type of the interface 22 to be tested; a parameter adjustment unit 19, which can respond to the type of circuit board 2 input by the user, and based on the type of circuit board 2, the interface type of the interface 22 to be tested and the correspondence, adjust the interface parameters of the detection interface 16, so that the detection interface 16 meets the interface requirements of the interface 22 to be tested, and detects the interface 22 to be tested.
[0120] like Figure 6 As shown, the third aspect of the present invention provides an electronic device 700, including a memory 702 and a processor 701, wherein the memory 702 stores a computer program or instructions, and when the processor 701 executes the computer program or instructions, the steps of the circuit board detection method provided by any technical solution of the first aspect of the present application are implemented.
[0121] The fourth aspect of the present invention provides a readable storage medium, on which a program or instruction is stored. When a processor executes the program or instruction, the steps of the circuit board detection method provided by any technical solution of the first aspect of the present application are implemented.
[0122] In the present invention, the term "plurality" refers to two or more than two, unless otherwise clearly defined. The terms "installed", "connected", "connected", "fixed", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; "connected" can be a direct connection or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0123] In the description of this specification, the description of the terms "one embodiment", "some embodiments", "specific embodiments", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0124] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A circuit board detection method, characterized in that: Used in a circuit board detection device, the circuit board detection device includes a detection interface, the circuit board includes an interface to be tested, the detection interface is connected to the interface to be tested, and the circuit board detection method includes: Collect information about the circuit board; Analyze the data information and establish a corresponding relationship between the circuit board type, the interface type and the interface requirement parameters; Determine the interface type of the interface to be tested; In response to the type of circuit board input by the user, based on the type of the circuit board, the interface type of the interface to be tested and the corresponding relationship, the interface parameters of the detection interface are adjusted so that the detection interface meets the interface requirements of the interface to be tested, and the interface to be tested is tested.
2. The circuit board detection method according to claim 1, characterized in that: The circuit board detection device further comprises a standard detection platform, on which a performance detection device is arranged, and the circuit board detection method further comprises: The performance of the circuit board installed on the standard testing platform and connected to the performance testing device is tested by the performance testing device, and the performance value of the circuit board is determined.
3. The circuit board detection method according to claim 2, characterized in that: After the step of determining the performance value of the circuit board, the circuit board detection method further includes: After detecting all interfaces to be tested on the circuit board, determine whether there is a damaged interface on the circuit board. If so, determine that the circuit board is scrapped. If not, compare each performance value of the circuit board with the corresponding performance threshold, and give a comprehensive score to the circuit board based on the comparison result.
4. The circuit board detection method according to claim 3, characterized in that: The step of comparing each performance value of the circuit board with the corresponding performance threshold and comprehensively scoring the circuit board according to the comparison result specifically includes: Each performance value of the circuit board is compared with the corresponding performance threshold, and the performance above the performance threshold is determined as high-quality performance, and the performance below the performance threshold is determined as ordinary performance. Based on the number of the high-quality performance and the number of the ordinary performance, the comprehensive score of the circuit board is determined.
5. The circuit board detection method according to claim 1, characterized in that: The circuit board detection device further includes an image acquisition device, and the step of determining the interface type of the interface to be tested specifically includes: Acquiring image information of the interface to be tested by the image acquisition device; The interface type of the interface to be tested is determined based on the image information.
6. The circuit board detection method according to claim 1, characterized in that: The interface requirement parameters include communication protocol and / or power supply parameters.
7. The circuit board detection method according to claim 2, characterized in that: The performance of the circuit board includes one of the following or a combination thereof: DDR read / write rate, DDR read / write stability, EMMC read / write rate, EMMC read / write stability, graphics rendering performance, wireless network performance, heat dissipation performance; and / or The interface to be tested includes one or a combination of the following: GPIO, PWM, SWD, ADC, DAC, UART, USB, SPI, IIC and GMAC; and / or The data information of the circuit board includes one of the following or a combination thereof: chip manual, hardware schematic diagram, development document, test report and design drawing.
8. A circuit board detection device, characterized in that: include: A collection unit, used for collecting data information of the circuit board; An analysis unit, used to analyze the data information and establish a corresponding relationship between the circuit board type, the interface type and the interface requirement parameters; A detection interface connected to the interface to be tested of the circuit board; A determination unit, used to determine the interface type of the interface to be tested; The parameter adjustment unit can respond to the type of circuit board input by the user, and based on the type of the circuit board, the interface type of the interface to be tested and the corresponding relationship, adjust the interface parameters of the detection interface so that the detection interface meets the interface requirements of the interface to be tested, and detect the interface to be tested.
9. An electronic device, characterized in that: include: A memory and a processor, wherein the memory stores a computer program or an instruction, and the processor implements the steps of the circuit board detection method according to any one of claims 1 to 7 when executing the computer program or the instruction.
10. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the processor executes the program or the instruction, the steps of the circuit board detection method according to any one of claims 1 to 7 are implemented.