Serial port, microphone and loudspeaker test statistical method and system
By receiving and analyzing the test results of the printed circuit board, clarifying the test situation of the serial port, microphone and speaker, solving the problem of failure to identify the components and lack of statistical analysis in the prior art, improving production efficiency and reducing maintenance costs.
Patent Information
- Application Number
- CN202411305075.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-19
- Publication Date
- 2024-12-10
AI Technical Summary
The prior art cannot specifically identify components that fail the test in the microphone, speaker and serial port, and lacks detailed statistical and analysis functions, resulting in low maintenance efficiency and low production efficiency.
By receiving the test results of the printed circuit board, analyzing and counting the test results of the serial port, microphone and speakers, displaying detailed statistical analysis results, clarifying which peripherals fail the test, and summarizing peripherals with high defect rate to improve productivity and reduce rework Rate.
The specific test results analysis of microphone, speaker and serial port are realized, and peripherals with high defect rate are accurately positioned, productivity is improved, and maintenance costs and rework rates are reduced.
Smart Images

Figure CN119110188A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of equipment test statistics, and in particular to a method and system for testing and counting serial ports, microphones and loudspeakers. Background Art
[0002] As electronic technology develops at an amazing speed, various electronic devices are springing up, and the application of microphones and speakers has become more and more extensive. As a key component of sound collection, the microphone is like a keen listener, which can accurately capture various sound signals in the surrounding environment. Whether it is a soft whisper or an impassioned speech, it can be effectively received and converted into electrical signals. The speaker is like a dynamic communicator, responsible for reconverting electrical signals into sound for playback, and delivering rich audio content to users with its powerful power and excellent sound quality. The two complement each other in electronic devices and together constitute the core part of the audio system. The quality of their performance directly affects the audio quality of electronic devices. High-fidelity microphones can collect the most realistic sounds, while high-quality speakers can present these sounds in the clearest and most moving way, greatly enhancing the user's experience in various scenarios such as voice calls, music appreciation, and film and television entertainment. It can be said that the performance level of microphones and speakers largely determines the competitiveness and user satisfaction of electronic devices in the audio field.
[0003] In the prior art, the speaker, microphone, and serial port used for data transmission and control signal interaction are tested by playing unique audio through the speaker and providing it to the nearby microphone for collection. The microphone will then perform a series of complex processing on the collected data. Through advanced digital signal processing technology, the microphone filters, amplifies, digitizes, and other operations on the collected audio signal to extract key feature information. Then, the processed information is compared with the expected standard to determine whether the collected data meets the expected performance requirements.
[0004] In the prior art, a lighting method is used to display the test results of each printed circuit board (PCB) containing electronic components such as microphones, speakers, and serial ports. Each printed circuit board has a corresponding indicator light. If the microphone, speaker, and serial port on the printed circuit board have passed the test, the indicator light will be displayed in a specific color, such as green. If any one or more of the microphone, speaker, and serial port fails the test, the indicator light will be displayed in another color, such as red.
[0005] However, in the above-mentioned prior art method, we only know whether the tested printed circuit board passes or fails the test, but when the test fails, we do not know which one of the microphone, speaker and serial port fails.
[0006] At the same time, the solutions in the prior art have no way to conduct detailed statistics and analysis on the test results, which is not conducive to troubleshooting problems and improving production efficiency. There is no summary analysis and display of test fixture results on the market. Most of them display the test results in the form of lighting, with red lights for failure and green lights for success, and often ignore data statistical analysis. The subsequent rework maintenance personnel only know that there is a problem with the printed circuit board, but do not know which peripheral has a problem. They need to analyze all of them, which greatly increases the time of the maintenance personnel and greatly reduces efficiency. In addition, through summary analysis, you can quickly know which peripheral has a higher defective rate, and you can make precise adjustments to improve productivity and reduce rework rates, as well as reduce maintenance costs. Summary of the invention
[0007] In view of the above problems, the purpose of the present invention is to provide a method and system for testing statistics of serial ports, microphones and speakers, which can clearly know which specific peripheral among the microphone, speaker and serial port on the tested printed circuit board has failed the test, and perform statistical analysis on the test results, so as to know which peripheral among the microphone, speaker and serial port has a higher defective rate, and make precise adjustments to improve productivity, reduce rework rate, and reduce maintenance costs.
[0008] The above-mentioned object of the present invention is achieved through the following technical solutions:
[0009] A method for testing a serial port, a microphone and a speaker, comprising:
[0010] S1: The receiving device receives the test results fed back by all the tested printed circuit boards, wherein the test results include information including the tested board number information, serial port test result information, microphone test result information and speaker test result information;
[0011] S2: Based on the test results, respectively analyze and count the test result information of the serial port, the microphone and the speaker, and at the same time, perform statistical analysis on the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards;
[0012] S3: Displaying statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel.
[0013] Furthermore, before step S1, the method further includes:
[0014] A test fixture is provided for testing the printed circuit board under test, and a test printed circuit board is cured on the test fixture;
[0015] The testing printed circuit board is used to test the tested printed circuit board, serve as a standard reference for the tested printed circuit board, initiate a test signal to the tested printed circuit board, and receive and analyze a feedback signal from the tested printed circuit board to determine various performance indicators of the tested printed circuit board;
[0016] The serial port on the tested printed circuit board is used to test the serial port on the tested printed circuit board to detect whether the communication function of the serial port is normal, and the performance of the serial port including data transmission rate, stability and error handling capability is detected by sending and receiving preset data signals. If data can be accurately transmitted between the two serial ports during the test, it is determined that the serial port function is good;
[0017] The microphone on the testing printed circuit board collects the sound signal emitted by the speaker on the tested printed circuit board, and determines the performance indicators including sound quality, volume, and frequency response of the speaker on the tested printed circuit board by analyzing the collected audio signal;
[0018] The speaker on the testing printed circuit board plays an audio signal, which is received and detected by the microphone on the tested printed circuit board, thereby evaluating the characteristics of the microphone on the tested printed circuit board, including sensitivity and noise suppression capability.
[0019] Further, in step S1, the receiving device receives the test results fed back by all the tested printed circuit boards, specifically:
[0020] The receiving device and the printed circuit board under test communicate with each other using 485 bus + MODBUS-RTU protocol;
[0021] The receiving device acts as a master device and the printed circuit board under test acts as a slave device for communication. The receiving device sends a request message of the MODBUS-RTU protocol to the printed circuit board under test on the 485 bus. After receiving the request message, the printed circuit board under test processes the request according to the content of the request, and encapsulates the test result into a response message of the MODBUS-RTU protocol and sends it back to the receiving device. After receiving the response message of the printed circuit board under test, the receiving device parses the response message and extracts the test result.
[0022] Further, in step S1, the test result includes information including the tested board number information, serial port test result information, microphone test result information and speaker test result information, specifically:
[0023] The test result of any one of the tested printed circuit boards consists of two bytes;
[0024] The first byte of the test result is used to indicate the number information of the tested board. The lower three bits of the second byte of the test result correspond to the serial port test result information, the microphone test result information and the speaker test result information respectively. A 0 for the lower three bits indicates failure, a 1 for the lower three bits indicates success, and the remaining 5 bits are reserved.
[0025] Further, in step S2, based on the test results, the test result information of the serial port, the microphone and the speaker is analyzed and counted respectively, and the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards are statistically analyzed, specifically:
[0026] Traversing the test results of each of the tested printed circuit boards, and processing each of the test results;
[0027] During the traversal process, the serial port test result information is analyzed and counted, the number of successful tests of the serial port is counted, and the total number of tests of the serial port is summarized;
[0028] During the traversal process, the microphone test result information is analyzed and counted, the number of successful tests of the microphone is counted, and the total number of tests of the microphone is summarized;
[0029] During the traversal process, the speaker test result information is analyzed and counted, the number of successful tests of the speaker is counted, and the total number of tests of the speaker is summarized;
[0030] If any one of the serial port, the microphone, and the speaker in the tested printed circuit board fails to be tested, the overall test result of the tested printed circuit board is a failure, and the test result of the corresponding assembly is a failure;
[0031] When the imposition status is successful, a first background is set for the imposition, and the number of successful tests of the imposition is counted; when the imposition status is failed, a second background is set for the imposition;
[0032] When the test result of the tested printed circuit board is successful, the first background is set for the tested printed circuit board, and the number of successful tests of the tested printed circuit board is counted; when the test result of the tested printed circuit board is failed, the second background is set for the tested printed circuit board.
[0033] Further, in step S3, the statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel are displayed, specifically:
[0034] The statistical result display page is designed to display the results of statistical analysis. The horizontal direction of the page shows the number of successful tests, the total number of tests, and the percentage of test success rate, and the vertical direction shows the panel, the tested printed circuit board, the serial port, the microphone and the speaker.
[0035] Furthermore, in step S1, when the receiving device receives the test results fed back by all the tested printed circuit boards, it further includes:
[0036] A timeout mechanism is set for the receiving device to receive the test result fed back by the tested printed circuit board within a preset time, so as to prevent the receiving device from waiting all the time and ensure that the receiving device can continue.
[0037] A serial port, microphone and speaker test statistics system for executing the above serial port, microphone and speaker test statistics method comprises:
[0038] A test result receiving module, used for receiving the test results fed back by all the tested printed circuit boards by the receiving device, wherein the test results include information including the tested board number information, serial port test result information, microphone test result information and speaker test result information;
[0039] A result statistical analysis module is used to analyze and count the test result information of the serial port, microphone and speaker respectively based on the test results, and to perform statistical analysis on the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards;
[0040] The analysis result display module is used to display the statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel.
[0041] A computer device comprises a memory and one or more processors, wherein the memory stores computer codes, and when the computer codes are executed by the one or more processors, the one or more processors execute the above method.
[0042] A computer-readable storage medium stores computer codes. When the computer codes are executed, the above method is executed.
[0043] Compared with the prior art, the present invention has the following beneficial effects:
[0044] A method for testing and counting serial ports, microphones, and speakers is provided, comprising: S1: a receiving device receives the test results fed back by all the tested printed circuit boards, wherein the test results include information including the number information of the tested board, the serial port test result information, the microphone test result information, and the speaker test result information; S2: based on the test results, the test result information of the serial port, the microphone, and the speaker are analyzed and counted respectively, and at the same time, the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards are statistically analyzed; S3: the statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel are displayed. The above technical scheme can clearly know which peripheral device among the microphone, speaker, and serial port on the tested printed circuit board has failed the test, and can perform statistical analysis on the test results, so as to know which peripheral device among the microphone, speaker, and serial port has a higher defect rate, and can make precise adjustments, improve productivity, reduce rework rate, and reduce maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 This is an overall flow chart of a method for testing and counting serial ports, microphones, and loudspeakers according to the present invention;
[0046] Figure 2 A detailed flow chart of a method for testing and counting a serial port, a microphone, and a speaker according to the present invention;
[0047] Figure 3 The present invention is an overall structural diagram of a serial port, microphone and speaker test statistics system. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0049] Those skilled in the art will appreciate that, unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.
[0050] The present invention is based on the fact that it is difficult to locate the specific problem of production defect rate, and the maintenance personnel have a large workload, low efficiency, and waste a lot of manpower and material resources. In order to improve the defect rate, accurately locate which peripheral has a high defect rate, quickly improve it, increase productivity, and improve the maintenance efficiency of maintenance personnel, a technical solution is proposed. At the same time, a screen is added to summarize and display more detailed results. The operator can know the defect rate and the problem more intuitively by watching the screen. The following is an explanation through specific embodiments: First embodiment
[0051] like Figure 1 and Figure 2 As shown, this embodiment provides a method for testing and counting serial ports, microphones, and speakers, including:
[0052] S1: The receiving device receives the test results fed back by all the tested printed circuit boards, wherein the test results include information including the tested board number information, serial port test result information, microphone test result information and speaker test result information.
[0053] Specifically, before step S1, a test fixture for testing the printed circuit board under test needs to be set, and the test printed circuit board is cured on the test fixture;
[0054] The testing printed circuit board is used to test the tested printed circuit board, serve as a standard reference for the tested printed circuit board, initiate a test signal to the tested printed circuit board, and receive and analyze a feedback signal from the tested printed circuit board to determine various performance indicators of the tested printed circuit board;
[0055] The serial port on the tested printed circuit board is used to test the serial port on the tested printed circuit board to detect whether the communication function of the serial port is normal, and the performance of the serial port including data transmission rate, stability and error handling capability is detected by sending and receiving preset data signals. If data can be accurately transmitted between the two serial ports during the test, it is determined that the serial port function is good;
[0056] The microphone on the testing printed circuit board collects the sound signal emitted by the speaker on the tested printed circuit board, and determines the performance indicators including sound quality, volume, and frequency response of the speaker on the tested printed circuit board by analyzing the collected audio signal;
[0057] The speaker on the testing printed circuit board plays an audio signal, which is received and detected by the microphone on the tested printed circuit board, thereby evaluating the characteristics of the microphone on the tested printed circuit board, including sensitivity and noise suppression capability.
[0058] In this embodiment, in step S1, the receiving device receives all the test results fed back by the tested printed circuit board, specifically: the receiving device and the tested printed circuit board communicate with each other using the 485 bus + MODBUS-RTU protocol; the receiving device acts as a master device, and the tested printed circuit board acts as a slave device for communication, the receiving device sends a request message of the MODBUS-RTU protocol to the tested printed circuit board on the 485 bus, and after receiving the request message, the tested printed circuit board processes the request according to the content, and encapsulates the test result into a response message of the MODBUS-RTU protocol and sends it back to the receiving device, and after receiving the response message of the tested printed circuit board, the receiving device parses the response message and extracts the test result.
[0059] It should be noted that the communication method using 485 bus + MODBUS-RTU protocol is not the only communication method of the present invention, and the present invention does not limit the specific form of the communication method. For example, it can also be any of the following methods:
[0060] (1) Combination of CAN bus and specific custom protocol
[0061] CAN (Control Area Network) bus is a field bus widely used in the industrial field, with high reliability, real-time and anti-interference ability. According to the needs of the present invention, a set of specific custom protocols can be designed to run on the CAN bus. This method can make full use of the multi-master communication, error detection and automatic retransmission characteristics of the CAN bus to ensure the stability and accuracy of data transmission. For example, the receiving device can request the status information of the tested printed circuit board by sending a specific identifier. After receiving the request, the tested board replies with a data packet containing the test result according to the custom protocol format.
[0062] (2) Ethernet communication and custom network protocols
[0063] Ethernet is a mature and widely used network communication technology with advantages such as high-speed transmission, long-distance communication and easy expansion. A custom network protocol can be developed to connect the receiving device and the printed circuit board under test through Ethernet. The receiving device can act as a server and the board under test as a client, communicating through the TCP / IP protocol. The board under test can send test result data to the receiving device regularly, or respond immediately when the receiving device requests it. This method can achieve remote monitoring and management, and facilitate centralized monitoring of multiple boards under test in different locations.
[0064] (3) Bluetooth communication
[0065] For some scenarios with portable or short-distance communication requirements, Bluetooth communication can be considered. Bluetooth technology has the characteristics of low power consumption, convenient connection and no wiring required. The receiving device and the printed circuit board under test can be equipped with Bluetooth modules to transmit data through the Bluetooth protocol. The receiving device can actively scan and connect to the nearby tested board to obtain the test results. This method is suitable for some mobile test equipment or environments with limited space.
[0066] (4) ZigBee wireless communication
[0067] ZigBee is a low-power, low-cost wireless communication technology suitable for large-scale sensor networks and distributed systems. A wireless communication network based on ZigBee can be built, with the receiving device as the coordinator and the printed circuit board under test as the node. The node can send the test results to the coordinator regularly, or respond when the coordinator requests it. This method can achieve flexible layout and expansion, and is suitable for some complex test environments.
[0068] Further, in step S1, the test result includes information including the tested board number information, serial port test result information, microphone test result information and speaker test result information, specifically: the test result of any one of the tested printed circuit boards consists of two bytes; the first byte of the test result is used to represent the tested board number information, and the lower three bits of the second byte of the test result correspond to the serial port test result information, the microphone test result information and the speaker test result information, respectively, the lower three bits are 0 to indicate failure, the lower three bits are 1 to indicate success, and the remaining 5 bits are reserved.
[0069] In addition, the test results can also be expanded with other data, such as the bias voltage of the microphone, the current of the printed circuit board, etc.
[0070] S2: Based on the test results, the test result information of the serial port (uart), microphone (mic) and speaker (spk) are analyzed and counted respectively, and the overall result of the tested printed circuit board and the result of the panel (chip) composed of multiple tested printed circuit boards are statistically analyzed.
[0071] In this embodiment, step S2 is specifically:
[0072] Traversing the test results of each of the tested printed circuit boards, and processing each of the test results;
[0073] During the traversal process, the serial port test result information is analyzed and counted, the number of successful tests of the serial port is counted, and the total number of tests of the serial port is summarized;
[0074] During the traversal process, the microphone test result information is analyzed and counted, the number of successful tests of the microphone is counted, and the total number of tests of the microphone is summarized;
[0075] During the traversal process, the speaker test result information is analyzed and counted, the number of successful tests of the speaker is counted, and the total number of tests of the speaker is summarized;
[0076] If any one of the serial port, the microphone, and the speaker in the tested printed circuit board is tested unsuccessfully, the overall test result of the tested printed circuit board is failed, and the test result of the corresponding assembly (composed of 8 or 16 tested printed circuit boards in this embodiment) is failed;
[0077] When the imposition status is successful, a first background is set for the imposition, and the number of successful tests of the imposition is counted; when the imposition status is failed, a second background is set for the imposition;
[0078] When the test result of the tested printed circuit board is successful, the first background is set for the tested printed circuit board, and the number of successful tests of the tested printed circuit board is counted; when the test result of the tested printed circuit board is failed, the second background is set for the tested printed circuit board.
[0079] It should be noted that the first background and the second background are different colors, respectively, for displaying success or failure. This embodiment does not limit the colors of the first background and the second background. For example, green can be used as the first background and red can be used as the second background.
[0080] S3: Displaying statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel.
[0081] In this embodiment, step S3 is specifically as follows:
[0082] The statistical result display page is designed to display the results of statistical analysis. The horizontal direction of the page shows the number of successful tests, the total number of tests, and the percentage of test success rate, and the vertical direction shows the panel, the tested printed circuit board, the serial port, the microphone and the speaker.
[0083] Furthermore, in step S1, when the receiving device receives the test results fed back by all the tested printed circuit boards, it also includes: in terms of communication, since the receiving device is one-to-many, currently it receives the results of 16 devices at most, the communication is relatively complicated, and occasionally the result of a certain device cannot be received, a timeout mechanism is set for the receiving device to receive the test results fed back by the tested printed circuit board within a preset time to prevent the receiving device from waiting all the time and ensure that the receiving device can continue. A timeout mechanism is implemented in the software, and optimization is also done in the hardware, which greatly increases the reliability of communication.
[0084] Second embodiment
[0085] like Figure 3 As shown, this embodiment provides a serial port, microphone and speaker test statistics system for executing the serial port, microphone and speaker test statistics method as in the first embodiment, including:
[0086] The test result receiving module 1 is used for receiving the test results fed back by all the tested printed circuit boards by the receiving device, wherein the test results include information including the number information of the tested board, serial port test result information, microphone test result information and speaker test result information;
[0087] A result statistical analysis module 2 is used to analyze and count the test result information of the serial port, microphone and speaker respectively based on the test results, and to perform statistical analysis on the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards;
[0088] The analysis result display module 3 is used to display the statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel.
[0089] A computer-readable storage medium stores a computer code. When the computer code is executed, the above method is executed. A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.
[0090] The above is only a preferred embodiment of the present invention, and the protection scope of the present invention is not limited to the above embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention. It should be pointed out that for ordinary technicians in this technical field, some improvements and modifications without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.
[0091] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0092] It should be noted that the above embodiments can be freely combined as needed. The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered as the protection scope of the present invention.
Claims
1. A method for testing and counting serial ports, microphones and speakers, characterized in that: include: S1: The receiving device receives the test results fed back by all the tested printed circuit boards, wherein the test results include information including the tested board number information, serial port test result information, microphone test result information and speaker test result information; S2: Based on the test results, respectively analyze and count the test result information of the serial port, the microphone and the speaker, and at the same time, perform statistical analysis on the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards; S3: Displaying statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel.
2. The method for testing and statistically analyzing the serial port, microphone and speaker according to claim 1, characterized in that: Before step S1, the method further includes: A test fixture is provided for testing the printed circuit board under test, and a test printed circuit board is cured on the test fixture; The testing printed circuit board is used to test the tested printed circuit board, serve as a standard reference for the tested printed circuit board, initiate a test signal to the tested printed circuit board, and receive and analyze a feedback signal from the tested printed circuit board to determine various performance indicators of the tested printed circuit board; The serial port on the tested printed circuit board is used to test the serial port on the tested printed circuit board to detect whether the communication function of the serial port is normal, and the performance of the serial port including data transmission rate, stability and error handling capability is detected by sending and receiving preset data signals. If data can be accurately transmitted between the two serial ports during the test, it is determined that the serial port function is good; The microphone on the testing printed circuit board collects the sound signal emitted by the speaker on the tested printed circuit board, and determines the performance indicators including sound quality, volume, and frequency response of the speaker on the tested printed circuit board by analyzing the collected audio signal; The speaker on the testing printed circuit board plays an audio signal, which is received and detected by the microphone on the tested printed circuit board, thereby evaluating the characteristics of the microphone on the tested printed circuit board, including sensitivity and noise suppression capability.
3. The method for testing and statistically analyzing the serial port, microphone and speaker according to claim 1, characterized in that: In step S1, the receiving device receives the test results fed back by all the tested printed circuit boards, specifically: The receiving device and the printed circuit board under test communicate with each other using 485 bus + MODBUS-RTU protocol; The receiving device acts as a master device and the printed circuit board under test acts as a slave device for communication. The receiving device sends a request message of the MODBUS-RTU protocol to the printed circuit board under test on the 485 bus. After receiving the request message, the printed circuit board under test processes the request according to the content of the request, and encapsulates the test result into a response message of the MODBUS-RTU protocol and sends it back to the receiving device. After receiving the response message of the printed circuit board under test, the receiving device parses the response message and extracts the test result.
4. The method for testing and statistically analyzing the serial port, microphone and speaker according to claim 1, characterized in that: In step S1, the test results include information including the tested board number information, serial port test result information, microphone test result information and speaker test result information, specifically: The test result of any one of the tested printed circuit boards consists of two bytes; The first byte of the test result is used to indicate the number information of the tested board. The lower three bits of the second byte of the test result correspond to the serial port test result information, the microphone test result information and the speaker test result information respectively. A 0 for the lower three bits indicates failure, a 1 for the lower three bits indicates success, and the remaining 5 bits are reserved.
5. The method for testing and statistically analyzing serial ports, microphones, and speakers according to claim 1, wherein: In step S2, based on the test results, the test result information of the serial port, the microphone and the speaker are analyzed and counted respectively, and the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards are statistically analyzed, specifically: Traversing the test results of each of the tested printed circuit boards, and processing each of the test results; During the traversal process, the serial port test result information is analyzed and counted, the number of successful tests of the serial port is counted, and the total number of tests of the serial port is summarized; During the traversal process, the microphone test result information is analyzed and counted, the number of successful tests of the microphone is counted, and the total number of tests of the microphone is summarized; During the traversal process, the speaker test result information is analyzed and counted, the number of successful tests of the speaker is counted, and the total number of tests of the speaker is summarized; If any one of the serial port, the microphone, and the speaker in the tested printed circuit board fails to be tested, the overall test result of the tested printed circuit board is a failure, and the test result of the corresponding assembly is a failure; When the imposition status is successful, a first background is set for the imposition, and the number of successful tests of the imposition is counted; when the imposition status is failed, a second background is set for the imposition; When the test result of the tested printed circuit board is successful, the first background is set for the tested printed circuit board, and the number of successful tests of the tested printed circuit board is counted; when the test result of the tested printed circuit board is failed, the second background is set for the tested printed circuit board.
6. The method for testing and statistically analyzing the serial port, microphone and speaker according to claim 5, characterized in that: In step S3, the statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel are displayed, specifically: The statistical result display page is designed to display the results of statistical analysis. The horizontal direction of the page shows the number of successful tests, the total number of tests, and the percentage of test success rate, and the vertical direction shows the panel, the tested printed circuit board, the serial port, the microphone and the speaker.
7. The method for testing and statistically analyzing the serial port, microphone and speaker according to claim 1, characterized in that: In step S1, when the receiving device receives the test results fed back by all the tested printed circuit boards, it also includes: A timeout mechanism is set for the receiving device to receive the test result fed back by the tested printed circuit board within a preset time, so as to prevent the receiving device from waiting all the time and ensure that the receiving device can continue to proceed.
8. A serial port, microphone and speaker test statistics system for executing the serial port, microphone and speaker test statistics method according to any one of claims 1 to 7, characterized in that: include: A test result receiving module, used for receiving the test results fed back by all the tested printed circuit boards by the receiving device, wherein the test results include information including the tested board number information, serial port test result information, microphone test result information and speaker test result information; A result statistical analysis module is used to analyze and count the test result information of the serial port, microphone and speaker respectively based on the test results, and to perform statistical analysis on the overall result of the tested printed circuit board and the result of the panel composed of multiple tested printed circuit boards; The analysis result display module is used to display the statistical analysis results of the serial port, the microphone, the speaker, the tested printed circuit board, and the panel.
9. A computer device comprising a memory and one or more processors, wherein the memory stores computer codes, and when the computer codes are executed by the one or more processors, the one or more processors execute the method according to any one of claims 1 to 7. 10 . A computer-readable storage medium storing a computer code. When the computer code is executed, the method according to claim 1 is executed.
