Design method of digital ANC active noise reduction based on loop frequency response characteristics

Through the design method based on loop frequency response characteristics, the blindness problem in digital ANC headset design is solved. Through multi-step testing and calculation, the characteristics of the target filter are determined, which shortens the development cycle and improves the design efficiency, and maximizes the performance of the target filter. Acoustic characteristics of headphone cavity.

CN114363754BActive Publication Date: 2024-11-15SHENZHEN SWETZ SOUND TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111609824.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-24
Publication Date
2024-11-15
Estimated Expiration
2041-12-24

AI Technical Summary

Technical Problem

There is blindness in the design process of digital ANC active noise reduction headphones, which leads to a long development cycle and is difficult to maximize the acoustic characteristics of the headphone cavity, and lacks direct design reference basis.

Method used

Using a design method based on loop frequency response characteristics, through multi-step testing and calculation, the amplitude and phase frequency characteristic curves of the target filter are determined, and a closed loop is formed to design the globally optimal ANC active noise reduction filter, and the utilization number is used. The analog-converting dac output is tested, bypassing the difficulty of individual frequency response testing of components packaged inside the DSP.

Benefits of technology

It reduces the blindness of the design process, shortens the development cycle, improves design efficiency, and maximizes the characteristics of the acoustic structure of the headphone cavity, provides a design reference basis, and improves the design efficiency of ANC active noise reduction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114363754B_ABST
    Figure CN114363754B_ABST
Patent Text Reader

Abstract

The present invention discloses a design method for digital ANC active noise reduction based on loop frequency response characteristics, and belongs to the technical field of noise reduction processing. The design method of the present invention includes the following contents: in the digital ANC active noise reduction loop, (1) test of the frequency response of the first channel; (2) test of the frequency response of the three channels; (3) test of the frequency response of the third channel; (4) calculation of the frequency response F_target of the target filter to be designed: design the target filter according to amp_target_d and ph_target_d obtained by calculating the active noise reduction loop. The method based on the loop frequency response characteristics of the present invention can directly serve as a design reference for the noise reduction filter after obtaining the reference filter amp_target_d and ph_target_d, so that the design process has a basis, reduces blindness, and generally improves the design efficiency of ANC active noise reduction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of noise reduction processing, and in particular relates to a design method for digital ANC (Active Noise Cancellation) active noise reduction based on loop frequency response characteristics. Background Art

[0002] At present, the ANC active noise reduction design of digital noise reduction headphones usually uses debugging software to debug relevant parameters online to complete the design of noise reduction effect. The design of ANC active noise reduction of analog noise reduction headphones first follows a certain test method, and the frequency response characteristics of the analog noise reduction filter are determined by the frequency response loop, and the resistor and capacitor network are simulated. The components are soldered on the circuit board, and then the noise reduction effect is tested to see if it meets the design requirements. If it does not meet the requirements, it is necessary to readjust the component parameters of the resistor and capacitor network, and then re-solder the relevant components. This requires repeated debugging and multiple soldering of components. The process is cumbersome, the development cycle is long, and the cost is also high. In comparison, the design process of digital ANC active noise reduction is much simpler, so digital noise reduction headphones have replaced analog noise reduction headphones and become the mainstream of noise reduction headphones.

[0003] Although analog noise reduction headphones have many disadvantages compared to digital noise reduction, analog noise reduction headphones are based on loop frequency response characteristics, and through testing and calculation, the method of obtaining target filtering can directly provide reference for ANC design and maximize the acoustic characteristics of the headphone cavity. However, due to the special structure of digital noise reduction headphones, the preamplifier of the microphone and the DSP (Digital Signal Processing) chip (a chip that can implement digital signal processing technology) are usually packaged together. In this way, it is not possible to directly test the frequency response of certain channels and obtain relevant design data like analog noise reduction headphones. When designing a digital filter, it involves multiple variables such as center frequency f_0, gain gain, filter type filter_type, shape factor Q, etc., so finding the ideal ANC noise reduction curve is actually a multivariable optimization problem. Because there is no reference basis, designers often try and error, improve, and debug repeatedly, but often fall into local optimality rather than global optimal solutions. Therefore, the design process is relatively blind, relying on experience and luck, and the development cycle is relatively long.

[0004] Based on the loop characteristics of noise reduction headphones and the test method of analog noise reduction headphones, the present invention proposes an ANC active noise reduction design method based on loop characteristics testing suitable for digital noise reduction headphones, making it possible to design a globally optimal ANC active noise reduction filter, solving the blindness in the design of digital ANC active noise reduction headphones. It can shorten the development cycle, maximize the characteristics of the acoustic structure of the headphone cavity, and at the same time, provide a reference for further optimization design of the acoustic structure of the headphone cavity. Summary of the invention

[0005] The embodiment of the present invention provides a design method for digital ANC active noise reduction based on loop frequency response characteristics, the purpose of which is to make it possible to design a globally optimal ANC active noise reduction filter, thereby solving the blindness in the design of digital ANC active noise reduction headphones. The development cycle can be shortened, the characteristics of the acoustic structure of the headphone cavity can be maximized, and at the same time, a reference basis can be provided for further optimization design of the acoustic structure of the headphone cavity.

[0006] The embodiment of the present invention is implemented as follows:

[0007] A design method for digital ANC active noise reduction based on loop frequency response characteristics, including the following contents:

[0008] In the digital ANC active noise reduction loop, the channel from the feedforward noise reduction microphone ff_mic to the headphone speaker spk is sequentially provided with a feedforward microphone ff_mic, a front operational amplifier ampli?e (the frequency responses of the feedforward microphone ff_mic and the front operational amplifier ampli?e are set as the second channel ②), an analog-to-digital conversion adc component (the frequency response of which is set as the fifth channel ⑤), a filter to be designed (the frequency response of which is set as the fourth channel ④), and a digital-to-analog conversion dac component (the frequency response of which is set as the sixth channel ⑥);

[0009] (1) Test of the frequency response of the first channel ①: The test speaker n_spk emits a frequency sweep white noise signal, which is transmitted through the air, picked up by the test microphone t_mic of the test device after passive noise reduction by the earphone, and returned to the test device; the first frequency response F1 is obtained, and the first frequency response F1 includes a first amplitude frequency response amp1 and a first phase frequency response ph1;

[0010] (2) Testing of the frequency response of three channels ②⑤⑥ (including the second channel ②, the fifth channel ⑤, and the sixth channel ⑥): the testing speaker n_spk emits a frequency sweep white noise signal, which is transmitted through the air and picked up by the feedforward noise reduction microphone ff_mic of the noise reduction headset, and the output signal of the output end of the digital-to-analog converter dac is collected; the three-channel frequency response F256 is obtained, and the three-channel frequency response F256 includes a three-channel amplitude-frequency response amp256 and a three-channel phase-frequency response ph256;

[0011] (3) Test of the frequency response of the third channel ③: the test device outputs a white noise signal through a wired input, which drives the headphone speaker via the port line_in of the headphone. After being played by the speaker, the signal is collected by the test microphone t_mic of the test device and then returned to the test device; the third frequency response F3 is obtained, and the third frequency response F3 includes a third amplitude frequency response amp3 and a third phase frequency response ph3;

[0012] (4) Calculation of the frequency response F_target of the target filter to be designed: The frequency response F_target of the target filter includes the amplitude frequency response amp_target_d of the target filter and the phase frequency response ph_target_d of the target filter, where the suffix d represents the frequency response of the digital circuit;

[0013] Wherein: amp_target_d = amp1 - (amp256 + amp3) Formula 3;

[0014] ph_target_d=180+ph1-(ph256+ph3) Formula 4;

[0015] Design the target filter based on the obtained amp_target_d and ph_target_d.

[0016] The analog-to-digital conversion ADC component and the digital-to-analog conversion DAC component described in step (1) are arranged in a DSP chip.

[0017] amp256 in step (2) = amp2 + amp_adc + amp_dac

[0018] =amp_mic+amp_ampl+amp_adc+amp_dac;

[0019] ph256=ph2+ph_adc+ph_dac

[0020] =ph_mic+ph_ampl+ph_adc+ph_dac;

[0021] Among them: amp_mic is the amplitude-frequency response of the microphone; amp_ampl is the amplitude-frequency response of the preamplifier; amp2 is the second amplitude-frequency response; amp_adc is the fifth amplitude-frequency response; amp_dac is the sixth amplitude-frequency response;

[0022] ph_mic is the phase-frequency response of the microphone; ph_ampl is the phase-frequency response of the preamplifier; ph2 is the second amplitude-frequency response; ph_adc is the fifth amplitude-frequency response; ph_dac is the sixth amplitude-frequency response;

[0023] The analog-to-digital conversion ADC described in step (2) is the fifth channel ⑤, and the fifth amplitude-frequency response (adc amplitude-frequency response) and the fifth phase-frequency response (adc phase-frequency response) of the fifth channel ⑤ are amp_adc and ph_adc respectively;

[0024] The digital-to-analog conversion dac is the sixth channel ⑥; the sixth amplitude-frequency response (dac amplitude-frequency response) and the sixth phase-frequency response (dac amplitude-frequency response) of the sixth channel ⑥ are amp_dac and ph_dac respectively.

[0025] Formula 3 described in step (4) is,

[0026] amp_target_d=amp1-(amp256+amp3) Formula 3;

[0027] =amp1-(amp_mic+amp_ampl+amp_adc+amp_dac+amp3);

[0028] Where: The suffix d of amp_target-d represents the frequency response of the digital circuit;

[0029] Formula 4 is:

[0030] ph_target_d=180+ph1-(ph256+ph3) Formula 4;

[0031] =180+ph1-(ph_mic+ph_ampl+ph_adc+ph_dac+ph3);

[0032] The suffix d of ph_target_d represents the frequency response of the digital circuit.

[0033] In step (2), if you want to obtain the amplitude-frequency characteristic and phase-frequency characteristic curve of the fourth channel ④ of the target filter, you need to know the frequency characteristics of each segment of the second channel ②, the fifth channel ⑤, and the sixth channel ⑥; because these components are all enclosed inside the DSP, it is obviously difficult to test the frequency response of each channel separately; and the output port of the digital-to-analog converter dac is visible, and its output port is directly connected to the input end of the speaker spk of the headphone, so it is feasible to use this port as a test end.

[0034] In the working state, the sound played by the headphone speaker will be fed back to the feedforward microphone ff_mic, affecting the test results. As a preferred embodiment, a toggle switch key is also provided in the digital ANC active noise reduction loop, one end of the toggle switch key is connected to the output end of the digital-to-analog converter dac, and the other end of the toggle switch is connected downward to the equivalent impedance eqt_spk (in the training state) and upward to the headphone speaker spk (in the working state), distinguishing between the training and working states.

[0035] The equivalent impedance eqt_spk uses a speaker eqt_spk that is the same model as the headphone speaker spk and has good consistency.

[0036] When the toggle switch is downward, it is in the training state; the digital-to-analog conversion dac output end of the DSP chip is disconnected from the speaker spk input end of the headset and connected to the equivalent impedance to ensure that the channel of the feedforward microphone is in a working state; in the working state, the frequency response test of the three channels ②⑤⑥ (including the second channel ②, the fifth channel ⑤, and the sixth channel ⑥) in step (2) can be performed; the test results of steps (1) and (3) are added and substituted into equations 3 and 4 of step (4) to calculate amp_target_d and ph_target_d; the calculation results are used as the basis for the ANC active noise reduction filter.

[0037] When the toggle switch is upward, it is in working state; the digital-to-analog conversion dac output end of the DSP is connected to the headphone speaker spk; in this state, the ANC active noise reduction debugging tool is used to refer to the calculation results amp_target_d and ph_target_d in the training phase to design the target filter.

[0038] The method based on loop frequency characteristics is relatively complex because it has several more test processes than the method of directly designing filters. However, after testing and calculation, after obtaining the reference filter amp_target_d and ph_target_d, they can be directly used as a design reference for the noise reduction filter, which provides a basis for the design process, reduces blindness, improves the overall design efficiency of ANC active noise reduction, and maximizes the acoustic characteristics of the headphone cavity.

[0039] Compared with the prior art, the present invention has the following beneficial effects:

[0040] 1. The design method of digital ANC active noise reduction based on loop frequency response characteristics in the present invention, according to the additivity of each segment of the signal frequency response, the three channels of the second channel ②, the fifth channel ⑤, and the sixth channel ⑥ are regarded as a whole, and their frequency response is measured; in this way, the first channel ① and the second channel ②, the fifth channel ⑤, the sixth channel ⑥, and the third channel ③, as well as the target filter to be designed in the DSP-the fourth channel ④, together constitute a closed loop of frequency response; based on the frequency response characteristics of the loop and the ANC active noise reduction theory, the frequency response of the target filter to be designed is calculated, and the filter can be designed.

[0041] 2. The present invention solves the problem that the analog-to-digital conversion ADC components and the digital-to-analog conversion DAC components of the digital ANC are all arranged inside the DSP, and it is difficult to test the frequency response of each device channel separately. The externally leaked digital-to-analog conversion DAC output port is used as the test end, so as to calculate the relevant frequency response characteristic curve of the target filter through a loop.

[0042] 3. The method based on loop frequency characteristics of the present invention is relatively complex intuitively because it has several more testing processes than the method of directly designing the filter. However, after testing and calculation, after obtaining the reference filters amp_target_d and ph_target_d, they can be directly used as a design reference for the noise reduction filter, which provides a basis for the design process, reduces blindness, improves the overall design efficiency of ANC active noise reduction, and maximizes the acoustic characteristics of the headphone cavity. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 It is a schematic diagram of an analog circuit ANC design based on loop frequency response characteristic test provided by Embodiment 1 of the present invention;

[0044] Figure 2 1 is a schematic diagram of a digital ANC active noise reduction frequency response loop provided by Embodiment 1 of the present invention;

[0045] Figure 3 This is a schematic diagram of a loop frequency response test of a digital noise reduction headphone provided in Example 1 of the present invention. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0047] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be an intermediate element at the same time.

[0048] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present invention, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0049] The embodiment of the present invention provides a design method for digital ANC active noise reduction based on loop frequency response characteristics, the purpose of which is to make it possible to design a globally optimal ANC active noise reduction filter, thereby solving the blindness in the design of digital ANC active noise reduction headphones. The development cycle can be shortened, the characteristics of the acoustic structure of the headphone cavity can be maximized, and at the same time, a reference basis can be provided for further optimization design of the acoustic structure of the headphone cavity.

[0050] The embodiment of the present invention provides a design method for active noise reduction of an ANC active noise reduction headset that simulates a noise reduction headset:

[0051] The following uses feedforward active noise reduction (FF_ANC) as an example to explain the principle of active noise reduction and the main innovations of the present invention. However, the present invention is not limited to the feedforward noise reduction FF_ANC method, and other methods such as feedback noise reduction (FB_ANC) and hybrid noise reduction (feedforward + feedback) (H_ANC method) are also applicable.

[0052] like Figure 1 As shown, Figure 1 The first channel ①, the second channel ②, the third channel ③, and the designed noise reduction filter fourth channel ④ form a closed frequency response loop:

[0053] (1) Test of the frequency response of the first channel ①: The test speaker n_spk emits a swept frequency white noise signal, which is propagated through the air and picked up by the test microphone t_mic of the test device after passive noise reduction by the earphone; the first frequency response F1 is obtained, and the first frequency response F1 includes a first amplitude frequency response amp1 and a first phase frequency response ph1;

[0054] (2) Test of the frequency response of the second channel ②: The test speaker n_spk emits a frequency-sweep white noise signal, which is propagated through the air and picked up by the feedforward noise-cancelling microphone ff_mic of the noise-cancelling headset, and the output of its preamplifier ampl ( Figure 1 The output signal of the probe1 is the position of the signal acquisition point); the second frequency response F2 is obtained, and the second frequency response F2 includes the second amplitude frequency response amp2 and the second phase frequency response ph2; considering that the second frequency response is composed of the microphone and the preamplifier, there is:

[0055] amp2 = amp_mic + amp_ampl;

[0056] ph2=ph_mic+ph_ampl;

[0057] Where: amp_mic is the amplitude-frequency response of the microphone; amp_ampl is the amplitude-frequency response of the preamplifier;

[0058] ph_mic is the phase-frequency response of the microphone; ph_ampl is the phase-frequency response of the preamplifier;

[0059] (3) Test of the frequency response of the third channel ③: the test device outputs a white noise signal through a wired input, which drives the headphone speaker via the port line_in of the headphone. After being played by the speaker, the signal is collected by the test microphone t_mic of the test device and then returned to the test device; the third frequency response F3 is obtained, and the third frequency response F3 includes a third amplitude frequency response amp3 and a third phase frequency response ph3;

[0060] The first channel ①, the second channel ②, and the third channel ③ above constitute a closed frequency response loop; in order to produce an active noise reduction effect in the earphone cavity, the signal output by the earphone speaker (the signal collected by ff_mic) and the external noise signal (the residual signal after passive noise reduction attenuation of the earphone) should have the same amplitude and a phase difference of 180 degrees; based on this, the required frequency response of the active noise reduction filter can be obtained, that is, Figure 1 The fourth channel in ④;

[0061] The implementation algorithm is as follows:

[0062] (1) Target amplitude-frequency response filter of the fourth channel ④—amp_target

[0063] amp_target = amp1 - (amp2 + amp3)

[0064] =amp1-(amp_mic+amp_ampl+amp3) Formula 1;

[0065] (2) Channel ④ Target phase-frequency response filter—ph_target

[0066] ph_target=180+ph1-(ph_mic+ph_ampl+ph3) Formula 2;

[0067] The design of the analog noise reduction headphones described above is based on Figure 1 Tests are performed, and the amplitude-frequency and phase-frequency characteristics of the target filter are calculated according to equations 1 and 2. Since the preamplifier amplifier output terminal of the ff_mic of the analog noise reduction headphone chip usually has a reserved port, the above test and design are not a problem. However, the preamplifier amplifier output terminal of the ff_mic of the digital noise reduction headphone chip is usually packaged inside the chip, and there is no reserved port on the periphery, so it is not feasible to directly test the frequency response characteristics of the second channel ②.

[0068] Embodiment 1: Design method of digital ANC active noise reduction based on loop frequency response characteristics:

[0069] Aiming at the circuit characteristics of the digital ANC active noise reduction chip and combining the above active noise reduction method, the present invention makes relevant improvements to the test circuit and the algorithms of Formula 1 and Formula 2 to make them testable, so as to meet the test-based ANC active noise reduction design.

[0070] A design method for digital ANC active noise reduction based on loop frequency response characteristics:

[0071] In the digital ANC noise reduction loop, the channel from the feedforward noise reduction microphone ff_mic to the headphone speaker spk, in addition to the above-mentioned feedforward microphone ff_mic and preamplifier ampl (second channel ②), as Figure 2 As shown, there are also components such as analog-to-digital conversion ADC and digital-to-analog conversion DAC in the DSP chip. The frequency responses of these two components are set to the fifth channel ⑤ and the sixth channel ⑥ respectively.

[0072] Assume that the fifth amplitude frequency response (adc amplitude frequency response) and the fifth phase frequency response (adc phase frequency response) of adc, i.e. the fifth channel ⑤, are amp_adc and ph_adc respectively;

[0073] Assume that the sixth amplitude-frequency response (dac amplitude-frequency response) and the sixth phase-frequency response (dac amplitude-frequency response) of the sixth channel ⑥ are amp_dac and ph_dac respectively.

[0074] According to the additivity of each segment of the signal frequency response (frequency response with log as the base), the three channels of the second channel ②, the fifth channel ⑤, and the sixth channel ⑥ are considered as a whole ( Figure 3), measure its frequency response; thus, the first channel ① and the second channel ②, the fifth channel ⑤, the sixth channel ⑥, and the third channel ③, as well as the filter to be designed in the DSP - the fourth channel ④, together constitute a closed loop of frequency response; based on the frequency response characteristics of the loop and the ANC active noise reduction theory, the filter can be designed according to the following equations 3 and 4; specifically:

[0075] (1) Test of the frequency response of the first channel ①: The test speaker n_spk emits a swept frequency white noise signal, which is transmitted through the air and picked up by the test microphone t_mic of the test device after passive noise reduction by the earphone, and then returned to the test device; the first frequency response F1 is obtained, and the first frequency response F1 includes the first amplitude-frequency response amp1 and the first phase-frequency response coordination ph1;

[0076] (2) Test of frequency response of three channels ②⑤⑥ (including the second channel ②, the fifth channel ⑤, and the sixth channel ⑥): The test speaker n_spk emits a frequency-sweep white noise signal, which is transmitted through the air and picked up by the feedforward noise-cancelling microphone ff_mic of the noise-cancelling headphones, and the output of the digital-to-analog converter dac is collected ( Figure 2 where probe2 is the position of the signal acquisition point); obtain a three-channel frequency response F256, wherein the three-channel frequency response F256 includes a three-channel amplitude frequency response amp256 and a three-channel phase frequency response ph256;

[0077] amp256 in step (2) = amp2 + amp_adc + amp_dac

[0078] =amp_mic+amp_ampl+amp_adc+amp_dac;

[0079] ph256=ph2+ph_adc+ph_dac

[0080] =ph_mic+ph_ampl+ph_adc+ph_dac;

[0081] Among them: amp_mic is the amplitude-frequency response of the microphone; amp_ampl is the amplitude-frequency response of the preamplifier; amp2 is the second amplitude-frequency response; amp_adc is the fifth amplitude-frequency response; amp_dac is the sixth amplitude-frequency response;

[0082] ph_mic is the phase-frequency response of the microphone; ph_ampl is the phase-frequency response of the preamplifier; ph2 is the second amplitude-frequency response; ph_adc is the fifth amplitude-frequency response; ph_dac is the sixth amplitude-frequency response;

[0083] (3) Test of the frequency response of the third channel ③: the test device outputs a white noise signal through a wired input, which drives the headphone speaker via the port line_in of the headphone. After being played by the speaker, the signal is collected by the test microphone t_mic of the test device and then returned to the test device; the third frequency response F3 is obtained, and the third frequency response F3 includes a third amplitude frequency response amp3 and a third phase frequency response ph3;

[0084] According to the additivity of each segment of the signal frequency response (frequency response with log as the base), the three channels of the second channel ②, the fifth channel ⑤, and the sixth channel ⑥ are regarded as a whole three channels ②⑤⑥ ( Figure 3 ), measure its frequency response; thus, the first channel ①, the third channel ②⑤⑥, the third channel ③, and the filter to be designed in the DSP - the fourth channel ④, together constitute a closed loop of frequency response; based on the frequency response characteristics of the loop and the ANC active noise reduction theory, the filter can be designed according to the following formulas 3 and 4; specifically:

[0085] The target amplitude-frequency response filter of the fourth channel ④—amp_target_d:

[0086] amp_target_d=amp1-(amp_mic+amp_ampl+amp_adc+amp_dac+amp3)

[0087] =amp1-(amp256+amp3) Formula 3;

[0088] Where: The suffix d of amp_target-d represents the frequency response of the digital circuit;

[0089] Target phase frequency response filter of the fourth channel ④—ph_target_d:

[0090] ph_target_d=180+ph1-(ph_mic+ph_ampl+ph_adc+ph_dac+ph3)

[0091] =180+ph1-(ph256+ph3) Formula 4;

[0092] Where: The suffix d of ph_target_d represents the frequency response of the digital circuit;

[0093] In Figure 2 It can be seen that if we want to obtain the amplitude-frequency characteristic and phase-frequency characteristic curve of the fourth channel ④ of the target filter, we need to know the frequency characteristics of each section of the second channel ②, the fifth channel ⑤, and the sixth channel ⑥; because these components are closed inside the DSP, it is obviously difficult to test the frequency response of each channel separately; but from Figure 2 It can also be seen that the output port of the digital-to-analog conversion dac is visible, and its output port is directly connected to the input port of the headphone speaker spk, so it is feasible to use this port as a test port.

[0094] Example 2: Testing of the frequency response of the loop of digital noise reduction headphones

[0095] In the working state, the sound played by the earphone speaker will be fed back to the feedforward microphone ff_mic, affecting the test result. Figure 2 The circuit is improved, that is, a toggle switch key is used, one end of which is connected to the output end of the digital-to-analog converter dac, and the other end of the toggle switch is connected downward to the equivalent impedance (in the training state) and upward to the earphone speaker spk (in the working state), so as to distinguish the two states of training and working. Figure 3 As shown:

[0096] When the toggle switch is down, it is in training state. The DAC output of the DSP chip is disconnected from the speaker spk input of the headphone and connected to the equivalent impedance to ensure that the channel of the feedforward microphone is in working state; to ensure that the frequency response of the channel does not change, the equivalent impedance uses the speaker eqt_spk of the same model as the headphone speaker spk and with good consistency, such as Figure 3 As shown in eqt_spk.

[0097] In this state, the three-channel ②⑤⑥ test of the frequency response of the second channel ②+the fifth channel ⑤+the sixth channel ⑥ can be performed, that is, the test speaker n_spk plays a white noise frequency sweep signal, which is picked up by the headphone feedforward microphone ff_mic and then collected by the test equipment at the DSP digital-to-analog conversion dac output port ( Figure 3 prob port in ).

[0098] For the frequency response test of the third channel ③, the white noise signal for testing is sent from the test equipment through the port line_in to the headphone speaker for playing, and then picked up by the test microphone t_mic of the test equipment and returned to the test equipment;

[0099] Frequency response test of the first channel ①: the test speaker n_spk plays a white noise frequency sweep signal, which is attenuated by the headphone and then picked up by the test microphone t_mic of the test device and returned to the test device;

[0100] Substitute the above test results into equation 3 and equation 4 to calculate amp_target_d and ph_target_d; the calculation results serve as the basis for the ANC active noise reduction filter.

[0101] When the toggle switch is turned upward, it is in working state; the DSP's digital-to-analog conversion dac output is connected to the headphone speaker spk; in this state, the filter can be designed by using the ANC active noise reduction debugging tool and referring to the calculation results amp_target_d and ph_target_d in the training phase.

[0102] The method based on loop frequency characteristics is relatively complex because it has several more test processes than the method of directly designing filters. However, after testing and calculation, after obtaining the reference filter amp_target_d and ph_target_d, they can be directly used as a design reference for the noise reduction filter, which provides a basis for the design process, reduces blindness, improves the overall design efficiency of ANC active noise reduction, and maximizes the acoustic characteristics of the headphone cavity.

[0103] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A design method for digital ANC active noise reduction based on loop frequency response characteristics, characterized by: Includes the following: In the digital ANC active noise reduction loop, the channel from the feedforward noise reduction microphone ff_mic to the headphone speaker spk is sequentially provided with the feedforward microphone ff_mic, the front operational amplifier ampl, the analog-to-digital conversion adc components, the filter to be designed, and the digital-to-analog conversion dac components; (1) Test of the frequency response of the first channel: The test speaker n_spk emits a frequency-sweep white noise signal, which is transmitted through the air, and after passive noise reduction by the headphones, is picked up by the test microphone t_mic of the test equipment and returned to the test equipment; The first frequency response F1 is obtained, wherein the first frequency response F1 includes a first amplitude-frequency response amp1 , the first phase frequency response ph1 ; (2) Test of three-channel frequency response: The test speaker n_spk emits a swept frequency white noise signal, which is propagated through the air and picked up by the feedforward noise reduction microphone ff_mic of the noise reduction headset, and the output signal of the output end of the digital-to-analog converter dac is collected; the three-channel frequency response F256 is obtained, and the three-channel frequency response F256 includes the three-channel amplitude-frequency response amp256 , three-channel phase-frequency response ph256 ; The three channels include a second channel, a fifth channel, and a sixth channel; the second channel is the frequency response of the feedforward microphone ff_mic and the front operational amplifier ampl, the fifth channel is the frequency response of the analog-to-digital conversion adc component, and the sixth channel is the frequency response of the digital-to-analog conversion dac component; (3) Test of the frequency response of the third channel: The test equipment outputs a white noise signal through a wired input, which drives the headphone speaker through the line_in port of the headphone. After being played by the speaker, the signal is collected by the test microphone t_mic of the test equipment and then returned to the test equipment. The third frequency response F3 is obtained, wherein the third frequency response F3 includes a third amplitude-frequency response amp3 , the third phase frequency response ph3 ; (4) Frequency response of the target filter to be designed F_target Calculation: Frequency response of the target filter F_target Includes the amplitude-frequency response of the target filter amp_target_d , the phase-frequency response of the target filter ph_target_d , where the suffix d represents the frequency response of the digital circuit; in: amp_target_d=amp1-(amp256+amp3) Formula 3; ph_target_d=180+ph1-(ph256+ph3) Formula 4; According to the obtained amp_target_d and ph_target_d Design the target filter; Step (2) amp256=amp2+amp_adc+amp_dac =amp_mic+ amp_ampl+amp_adc+amp_dac ; ph256=ph2+ph_adc+ph_dac = ph_mic+ph_ampl+ph_adc+ph_dac ; in: amp_mic is the amplitude-frequency response of the microphone; amp_ampl is the amplitude-frequency response of the preamplifier; amp2 is the second amplitude-frequency response obtained by the second channel; amp_adc is the fifth frequency response; amp_dac is the sixth frequency response; ph_mic is the microphone phase-frequency response; ph_ampl is the phase-frequency response of the preamplifier; ph2 is the second amplitude-frequency response obtained by the second channel; ph_adc is the fifth frequency response; ph_dac is the sixth frequency response; The digital ANC active noise reduction loop is also provided with a toggle switch key, one end of which is connected to the output end of the digital-to-analog conversion dac, and the other end of which is connected downward to the equivalent impedance eqt_spk and upward to the headphone speaker spk to distinguish between the training and working states; When the toggle switch is downward, it is in the training state; the digital-to-analog conversion dac output end of the DSP chip is disconnected from the speaker spk input end of the headset and connected to the equivalent impedance to ensure that the channel of the feedforward microphone is in a working state; in the working state, the three-channel frequency response test in step (2) can be performed; the test results of step (1) and step (3) are added and substituted into equations 3 and 4 of step (4) to calculate amp_target_d ,and ph_target_d ; The calculation results are used as the basis for the ANC active noise reduction filter; When the toggle switch is turned upward, it is in working state; the DSP digital-to-analog conversion dac output terminal is connected to the headphone speaker spk; in this state, the ANC active noise reduction debugging tool is used to refer to the calculation results of the training phase. amp_target_d ,and ph_ target_d , design the target filter.

2. The design method of digital ANC active noise reduction based on loop frequency response characteristics according to claim 1, characterized in that: The analog-to-digital conversion ADC component and the digital-to-analog conversion DAC component described in step (1) are arranged in a DSP chip.

3. The design method of digital ANC active noise reduction based on loop frequency response characteristics according to claim 1, characterized in that: Formula 3 described in step (4) is, amp_target_d=amp1-(amp256+amp3) Formula 3; =amp1-(amp_mic+amp_ampl+amp_adc+amp_dac+amp3) ; in: amp_target_d Suffix d Represents the frequency response of a digital circuit; Formula 4 is: ph_target_d = 180+ph1-(ph256+ph3) Formula 4; =180+ph1-(ph_mic+ph_ampl+ph_adc+ph_dac+ph3) ; in: ph_target_d Suffix d Represents the frequency response of a digital circuit.

4. The design method of digital ANC active noise reduction based on loop frequency response characteristics according to claim 1, characterized in that: The equivalent impedance eqt_spk uses a speaker of the same model as the headphone speaker spk and with good consistency.