PCB audio circuit semi-automatic test system and method based on multichannel signal analysis
The PCB audio circuit semi-automatic test system based on multi-channel signal analysis solves the problems of low efficiency of traditional PCBA testing and high manual participation of semi-automatic test systems, and realizes efficient and accurate automated testing and data management.
Patent Information
- Application Number
- CN202510975230.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-15
- Publication Date
- 2025-10-17
AI Technical Summary
Traditional PCBA testing relies on manual operation with low efficiency and poor accuracy. Semi-automatic testing systems require high manual participation and cannot meet the high efficiency and low-cost needs of small and medium-sized enterprises.
A semi-automatic PCB audio circuit test system based on multi-channel signal analysis is used. The circuit is configured through a preset architecture, test signals with different signal parameters are generated, and the test results are automatically determined, reducing manual operations.
Improve test efficiency, lower the threshold for manual operation, eliminate misjudgment and missed tests, visualize test results, facilitate data storage and analysis, reduce maintenance difficulty, and achieve high module reusability.
Smart Images

Figure CN120801989A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of electronic circuit testing, and in particular to a semi-automatic testing system and method for a PCB audio circuit based on multi-channel signal analysis. Background Art
[0002] Traditional PCBA testing is highly dependent on manual operation. During the testing process, testers need to manually switch test items one by one. This not only consumes a lot of time and reduces test efficiency, but is also prone to operational errors due to factors such as human fatigue and negligence, affecting the accuracy and reliability of test results.
[0003] Although fully automatic testing equipment can achieve efficient and accurate testing, its high cost, with purchase costs of hundreds of thousands or even millions of yuan, coupled with subsequent maintenance costs, makes it prohibitive and unaffordable for small and medium-sized enterprises.
[0004] As for the existing semi-automatic testing system, although it has reduced the burden of manual operation to a certain extent, it lacks intelligent jump functions. In actual testing, manual judgment of test results in real time and manual switching of test processes are still required. It fails to fundamentally liberate manpower, and there are problems such as poor connection of test processes and high manual participation. It cannot meet the industry's urgent demand for efficient and low-cost testing solutions. Summary of the Invention
[0005] The purpose of the present invention is to provide a semi-automatic testing system and method for PCB audio circuits based on multi-channel signal analysis to solve the above technical problems.
[0006] The purpose of the present invention can be achieved through the following technical solutions:
[0007] The semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis includes the following steps:
[0008] Configure semi-automatic test circuits based on pre-set architectural relationships;
[0009] generating different test signals, wherein the different test signals have at least one different signal parameter, the signal parameter including phase, amplitude and energy distribution;
[0010] Connect a normal PCBA to a semi-automatic test circuit, input a test signal to the normal PCBA through an input channel, obtain an output signal from an output port of the normal PCBA, and set a signal parameter range for the input channel based on the signal parameters of the output signal;
[0011] The PCBA to be tested is connected to a semi-automatic test circuit, a test signal is input to the PCBA to be tested through an input channel, an output signal of an output port of the PCBA to be tested is acquired, and the output signal is recorded as a test signal; and a test result of the PCBA to be tested is acquired based on the test signal and a signal parameter range, and the test result includes pass and fail.
[0012] As a further scheme of the application, the input channel includes three, namely Input, Auxin and Retune.
[0013] As a further scheme of the application, the output port includes seven, namely Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+ and Send.
[0014] As a further scheme of the application, the signal parameter range includes:
[0015] When a test signal is input to a normal PCBA through an input channel i, an output signal of an output port j of the normal PCBA is recorded as a target signal;
[0016] A signal parameter of the target signal is acquired and recorded as a target parameter; a target parameter of one target signal is recorded as a group of target parameters.
[0017] The minimum value z1 and the maximum value z2 of the same target parameter in the n groups of target parameters are acquired, and then when a test signal is input to a normal PCBA through an input channel i, the signal parameter range of the target parameter of the normal PCBA output port j is [z1, z2].
[0018] As a further scheme of the application, acquiring the test result of the PCBA to be tested includes:
[0019] The signal parameters of the test signal of the output port k are acquired, and if the signal parameters are all within the corresponding signal parameter range, 1 is output, otherwise 0 is output.
[0020] The voltage comparison result is acquired, and if the voltage comparison result is normal, 1 is output, otherwise 0 is output.
[0021] If all the outputs are 1, the test result is pass.
[0022] As a further scheme of the application, the storage path of the test result is artificially preset.
[0023] The PCB audio circuit semi-automatic test system based on multi-channel signal analysis, characterized in that it comprises:
[0024] A design module: configure a semi-automatic test circuit based on a pre-set architecture relationship;
[0025] Generation module: generates different test signals. Different test signals have at least one different signal parameter, including phase, amplitude and energy distribution.
[0026] Setting module: Connect the normal PCBA to the semi-automatic test circuit, input the test signal to the normal PCBA through the input channel, obtain the output signal of the normal PCBA output port, and set the signal parameter range of the input channel based on the signal parameters of the output signal;
[0027] Test module: Connect the PCBA to be tested to the semi-automatic test circuit, input the test signal to the PCBA through the input channel, obtain the output signal of the output port of the PCBA to be tested, record it as the test signal, and obtain the test result of the PCBA to be tested based on the test signal and signal parameter range. The test result includes pass or fail.
[0028] The beneficial effects of the present invention are as follows:
[0029] 1) Overall testing efficiency is improved, lowering the threshold for manual operation.
[0030] 2) The overall testing process is solidified, and automatic judgment is made through the program to eliminate misjudgment and missed tests during manual testing.
[0031] 3) The test results are visualized and audible, which reduces the fatigue of employees during operation and improves work efficiency. The defective phenomena are visualized, which reduces the difficulty of maintenance for maintenance personnel and improves work efficiency.
[0032] 4) Test data is digitized and automatically stored, which facilitates tracing and analyzing bad data, reducing manual report filling.
[0033] 5) The module is highly reusable. When used in other products, you only need to modify the port and judgment conditions (increase or decrease port judgment) to achieve program module reuse and achieve agile development effects. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The present invention will be further described below with reference to the accompanying drawings.
[0035] Fig. 1 It is a flow chart of a semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis of the present invention;
[0036] Fig. 2 It is a structural diagram of the semi-automatic test circuit of the present invention. DETAILED DESCRIPTION
[0037] With reference to the drawings of the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described, obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the protection scope of the present application.
[0038] Please refer to Figs. 1-2 The present application is a PCB audio circuit semi-automatic test method based on multi-channel signal analysis, comprising the following steps:
[0039] The semi-automatic test circuit is configured;
[0040] When different test signals are generated, the signal generation setting module is entered through the system interface first, and the parameters are adjusted in the module for the required signals of the input channel. For example, to generate test signals of different amplitudes, the signal amplitude of a certain input channel can be adjusted from 2V to 1V, because the amplitude represents the strength of the signal, and different amplitude signals input to the PCBA can test its processing capability under different signal strengths, just like applying different intensity "stimulation" to the circuit, and observing whether the response is normal. By analogy, the amplitude, phase and energy distribution are adjusted respectively, so that the generated different test signals at least have one parameter difference, thereby forming diversified test input conditions;
[0041] When the normal PCBA is connected to the semi-automatic test circuit, the fixture is correctly connected with the 9V power supply and the PC end, and the PCBA with known good functions is fixed on the fixture, to ensure that the test probe is in good contact with the input and output ports of the PCBA. Then, the test signal is input to the normal PCBA through the input channel, for example, a preset sine wave signal is input from the input channel, at this time the circuit inside the PCBA will process the signal, and then output the signal from the corresponding output port (such as Output_L). At this time, the system acquires the output signal through the acquisition card module on the fixture, and records it as the target signal, because the output signal of the normal PCBA can reflect the signal characteristics in the standard working state, and can be used as the reference for subsequent testing;
[0042] In a preferred embodiment of the present application, the signal parameter range is set to include:
[0043] When acquiring the signal parameters of the target signal, the system analyzes the amplitude, phase and other attributes of the signal, for example, measures the amplitude of the sine wave output at the Output_L port. These parameters reflect the processing results of the normal PCBA on the input signal. Since the output parameters may differ slightly due to slight fluctuations in the circuit when the same input signal is tested multiple times, it is necessary to acquire n sets of target parameters, such as collecting the output signal parameters of the Output_L port multiple times after the same signal is input to the Input channel to form multiple sets of data. Among the n sets of data, find the minimum value z1 and the maximum value z2 of the same target parameter, such as the minimum value and the maximum value among all the collected amplitudes. The range [z1, z2] determined in this way can cover the parameter fluctuation range of the normal PCBA under the same input-output combination.
[0044] The performance of the normal PCBA has reasonable fluctuations. Taking the actual collected extreme values as the range can ensure that the parameter judgment of the subsequent PCBA to be tested neither excludes normal products too strictly nor passes defective products too loosely. For example, when a certain signal is input to the Input channel, the amplitude of the Output_L port is A in multiple tests, and the maximum is B. Then the amplitude range under this input-output combination is set as [A, B]. When the output amplitude of the PCBA to be tested under the same input falls within this interval, it means that its performance is consistent with that of the normal PCBA. Since the signal processing paths of different input ports (such as Input, Aux_in, and Retune) are different, and the circuit characteristics of different output ports (such as Output_L and Phone_L) are also different, the parameter range needs to be acquired independently for each input port and output port combination to ensure the accuracy of the test standard.
[0045] It should be noted that the phase is obtained by the Fourier transform frequency bin phase of the test signal corresponding frequency, and the phase difference corresponding to the original signal can reflect the phase distortion; the amplitude can be directly obtained by the peak-to-peak value; the energy distribution is obtained by subtracting the energy of the sine wave frequency bin and the energy of each of the preceding and following frequency bins from the total energy of the Fourier transform, and then normalizing. The size of this value is determined according to the frequency response of the Hanning window. The energy of the preceding and following frequency bins will have leakage, and the energy at other positions is extremely small and can be ignored. If no nonlinear distortion is generated, this result should be very close to 0.
[0046] It should be noted that 4096-point fft is used in the above process, the Hanning window is 4096 points long, the frequency response of the fixed-length Hanning window can be measured, the windowing is to multiply the Hanning window and the signal in the time domain, and the frequency domain will become convolution. The frequency domain of the sine wave is a constant, and after convolution, the frequency response of the Hanning window is moved to the position of the constant. Then do fft, which is the result we see. We actually want to observe the sine wave, and do not want the sidelobes of the Hanning window to affect the observation, so we want to observe the sidelobes as small as possible, obviously we can achieve this by setting the frequency of the sine wave to be an integer multiple of samplerate / 4096;
[0047] In another preferred embodiment of the application, the input channel includes three, namely Input, Auxin and Retune;
[0048] In another preferred embodiment of the application, the output port includes seven, namely Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+ and Send.
[0049] For the PCBA to be tested, first connect it to the semi-automatic test circuit, and after power-on, automatically collect the voltage of the TP point, compare the voltage through the control module, and transmit the voltage comparison result to the host computer through the acquisition card for judgment, that is, 0 for normal voltage and 1 for abnormal voltage.
[0050] The voltage includes four, which are:
[0051] VM ID: PCBA operational reference voltage, actually 4.5V;
[0052] 3V3C: ADC, DAC power supply voltage;
[0053] 3V3D: Digital circuit power supply voltage;
[0054] 9V: DC power input power supply voltage;
[0055] The comparison step includes:
[0056] The device has a PCBA inside, which has a relay control circuit and a comparison circuit.
[0057] The voltage comparison step is to set the upper and lower limits of the four voltage comparisons on the PCB through adjustable resistors, for example, VMID is set to 4.4V lower limit and 4.6V upper limit, when the test needle contacts this voltage, the collected voltage range is between 4.4V and 4.6V, then output low level, that is, 0, when the voltage is higher than 4.6V or lower than 4.4V, then output high level, that is, 1, this step represents an exception.
[0058] Click the start button, the signal is transmitted to the host computer through the acquisition card, the host computer receives the start signal, feeds back the start signal to the acquisition card, and the acquisition card controls the relay (i.e. control module) to make the relay act;
[0059] The relay acts three times according to the program, and respectively sends the sine wave generated by the acquisition card to the test PCBA. After the internal DSP of the PCBA is bypassed, the signal is output. When the relay acts for the first time, the sine wave is input from the input, and after the internal DSP of the PCBA is bypassed, the signal is output from the 7 test points of the PCBA (Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+ and Send). The acquisition card will collect these signals and convert them into digital quantities.
[0060] It should be noted that the ports are AD1-AD16, a total of 16, and currently AD1-AD7, 7 ports, are used. The AD1 port is defined as Output_L, the AD2 port is defined as Output_R, and so on. The unused ports are AD8-AD16.
[0061] When the relay acts each time, the signals of the PCBA collected by the acquisition card are synchronized, and after calculation by the internal algorithm, the signal parameters are obtained. If the three parameters are within the signal parameter range, the output is 1, otherwise the output is 0.
[0062] After the relay action is completed, i.e. after the above test process is completed, the following process is executed:
[0063] Voltage judgment: VMID, 3V3C, 3V3D, 9V, 4 voltage comparison judgments;
[0064] Specifically, after the host computer collects 0 or 1 output, it will perform logical 'not' operation, i.e. output 0, and the host computer will calculate 1, and vice versa.
[0065] Signal judgment:
[0066] When the input sine wave is input, (Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+, Send, 7 output signal judgments);
[0067] When the Auxin input sine wave is input, (Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+, Send, 7 output signal judgments);
[0068] Retune input sine wave, (Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+, Send, 7 output signal judgment);
[0069] Perform a logical "AND" judgment on the above voltages and signals. If all are 1, PASS will be displayed.
[0070] That is, when a sine wave is input, if all seven collected signals are correct (within the range), the output is 1;
[0071] When Auxin inputs a sine wave, if all 7 collected signals are correct, the output is 1;
[0072] When Retune inputs a sine wave, if all 7 collected signals are correct, the output is 1;
[0073] After the voltage comparison judges the four voltages, the normal output is 1;
[0074] The four results are ANDed together, i.e. input & Auxin & Retune & voltage = 1 (all four processes output 1), and the result output is PASS;
[0075] If the above tests are passed, the total test quantity, passed quantity, and completed quantity will be displayed on the main interface, and the quantity will be increased by one. If it fails, the total test quantity, defective quantity, and quantity will be displayed on the interface, and the failed items of the above tests will be displayed in the table;
[0076] After the above tests are completed, the test results will be written into the set path document according to the program settings, which is convenient for subsequent tracing and viewing.
[0077] PCB audio circuit semi-automatic test system based on multi-channel signal analysis, including:
[0078] Design module: configures semi-automatic test circuits based on pre-set architectural relationships;
[0079] Generation module: generates different test signals. Different test signals have at least one different signal parameter, including phase, amplitude and energy distribution.
[0080] Setting module: Connect the normal PCBA to the semi-automatic test circuit, input the test signal to the normal PCBA through the input channel, obtain the output signal of the normal PCBA output port, and set the signal parameter range of the input channel based on the signal parameters of the output signal;
[0081] Test module: the PCBA to be tested is connected to a semi-automatic test circuit, test signals are input to the PCBA to be tested through an input channel, output signals of the output port of the PCBA to be tested are obtained, the output signals are recorded as test signals, test results of the PCBA to be tested are obtained based on the test signals and a signal parameter range, and the test results include pass and fail.
[0082] The above describes one embodiment of the present application in detail, but the description is only a preferred embodiment of the present application and cannot be considered as limiting the scope of the present application. Any equivalent changes and improvements made within the scope of the present application should still belong to the scope of the present application.
Claims
1. A semi-automatic test method for PCB audio circuit based on multi-channel signal analysis, characterized in that: The following steps are involved: Configure semi-automatic test circuits based on pre-set architectural relationships; generating different test signals, wherein the different test signals have at least one different signal parameter, the signal parameter including phase, amplitude and energy distribution; Connect a normal PCBA to a semi-automatic test circuit, input a test signal to the normal PCBA through an input channel, obtain an output signal from an output port of the normal PCBA, and set a signal parameter range for the input channel based on the signal parameters of the output signal; Connect the PCBA to be tested to the semi-automatic test circuit, input the test signal to the PCBA to be tested through the input channel, obtain the output signal of the output port of the PCBA to be tested, record it as the test signal, and obtain the test result of the PCBA to be tested based on the test signal and the signal parameter range. The test result includes pass or fail.
2. The semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis according to claim 1, characterized in that: There are three input channels: Input, Auxin, and Retune.
3. The semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis according to claim 1, characterized in that: There are 7 output ports, namely Output_L, Output_R, Phone_L, Phone_R, Lout+, Rout+ and Send.
4. The semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis according to claim 1, characterized in that: The signal parameter settings include: When the test signal is input to the normal PCBA through input channel i, the output signal of the normal PCBA output port j is recorded as the target signal; Obtaining signal parameters of a target signal, recorded as target parameters, and the target parameters of a target signal are recorded as a set of target parameters; Obtain the minimum value z1 and maximum value z2 of the same target parameter in n groups of target parameters. When the test signal is input to the normal PCBA through input channel i, the signal parameter range of the target parameter at the output port j of the normal PCBA is [z1, z2].
5. The semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis according to claim 1, characterized in that: Obtaining the test results of the PCBA to be tested includes: Get the signal parameters of the signal to be measured at output port k. If the signal parameters are all within the corresponding signal parameter range, output 1, otherwise output 0; Get the voltage comparison result. If the voltage comparison result is normal, output 1, otherwise output 0; If all outputs are 1, the test result is passed.
6. The semi-automatic testing method for PCB audio circuit based on multi-channel signal analysis according to claim 1, characterized in that: The storage path of the test results is based on manual pre-setting.
7. PCB audio circuit semi-automatic test system based on multi-channel signal analysis, characterized by: include: Design module: configures semi-automatic test circuits based on pre-set architectural relationships; Generation module: generates different test signals. Different test signals have at least one different signal parameter, including phase, amplitude and energy distribution. Setting module: Connect the normal PCBA to the semi-automatic test circuit, input the test signal to the normal PCBA through the input channel, obtain the output signal of the normal PCBA output port, and set the signal parameter range of the input channel based on the signal parameters of the output signal; Test module: Connect the PCBA to be tested to the semi-automatic test circuit, input the test signal to the PCBA through the input channel, obtain the output signal of the output port of the PCBA to be tested, record it as the test signal, and obtain the test result of the PCBA to be tested based on the test signal and signal parameter range. The test result includes pass or fail.