A method and device for detecting the radiation noise floor of an earphone battery, and a storage medium
By configuring controlled switching devices and a timing controller, stable detection of the background noise radiated by the headphone battery was achieved, solving the problem of difficulty in quantitative analysis in the existing technology and improving detection efficiency and sound quality.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- UI (WAN AN) TECH CO LTD
- Filing Date
- 2026-03-10
- Publication Date
- 2026-06-09
AI Technical Summary
Existing technologies struggle to reliably and quantitatively capture and analyze electromagnetic noise radiated by headphone batteries, which affects headphone sound quality and listening experience, and also results in low efficiency in troubleshooting.
By configuring controlled switching devices and a timing controller, the intermittent discharge of the headphone battery is controlled, the electrical signals at both ends of the speaker are monitored, and the noise components are quantified using an audio analyzer to determine the level of radiated noise floor.
This technology enables stable and repeatable detection of background noise radiated from headphone batteries, shortens the troubleshooting cycle, reduces R&D and production costs, and improves quality testing efficiency.
Smart Images

Figure CN122179723A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of electronic product quality testing, and in particular to a method, testing device, and storage medium for detecting the radiated noise floor of an earphone battery. Background Technology
[0002] As true wireless stereo (TWS) earbuds evolve towards miniaturization and high integration, their internal space layout is becoming increasingly compact. A common structural design is to place the battery and speaker adjacent to each other within a limited cavity, or even directly mount them together, to minimize the overall size of the device. However, in this compact physical layout, the electromagnetic radiation and power supply noise generated during battery charging and discharging can easily couple to sensitive audio paths through space or circuitry. This results in users being able to clearly perceive current noise and persistent background noise that varies with the battery level, severely impacting sound quality and listening experience.
[0003] The current industry pain point is that noise caused by battery radiation is difficult to capture and analyze stably and quantitatively. Traditional acoustic testing mainly targets steady-state performance but cannot effectively characterize transient interference that is strongly correlated with the dynamic behavior of the power supply. Due to the lack of precise quantitative methods, engineers rely heavily on experience and trial and error when troubleshooting, which is not only inefficient but also makes it difficult to pinpoint the specific path and root cause of the noise. Summary of the Invention
[0004] This invention provides a method, device, and storage medium for detecting the radiated noise floor of an earphone battery, to solve the problems existing in related technologies. The technical solution is as follows: In a first aspect, embodiments of the present invention provide a method for detecting the radiated noise floor of an earphone battery, comprising: Configure at least one controlled switching device, which is connected to the power supply circuit of the earphone battery under test to form a controlled discharge path; Configure a timer controller, which outputs periodic switching control signals to the control terminal of the controlled switching device; By using a switch control signal, the controlled switching device is controlled to periodically switch on and off at predetermined time intervals, thereby causing the earphone battery under test to generate intermittent discharge in the controlled discharge path. During the intermittent discharge of the earphone battery under test, the electrical signals at both ends of the earphone speaker under test are monitored, wherein the earphone battery and the earphone speaker under test are arranged adjacent to each other in the earphone space. The noise floor level of the earphone battery under test is determined by the noise component in the monitored electrical signal that is synchronized with the switch control signal.
[0005] In one embodiment, the controlled switching device is a MOSFET, with the source and drain of the MOSFET connected in series in the power supply circuit of the headphone battery, and its gate serving as the control terminal.
[0006] In one implementation, the timing controller is a microcontroller unit, and the switch control signal is output from the general purpose input / output pin of the microcontroller unit.
[0007] In one implementation, the method for generating the switch control signal is as follows: Configure the timer controller to generate timed events according to a preset cycle; In response to each timed event, increment a counter. When the accumulated value of the counter reaches the preset toggle threshold, the output level of the specified GPIO pin is toggled, and the counter is reset, forming a square wave signal with a duty cycle of 50% as the switch control signal.
[0008] In one implementation, the preset period of the timing controller is 50 milliseconds and the toggle threshold is 2, thereby making the toggle interval of the switch control signal 100 milliseconds.
[0009] In one embodiment, the positive and negative terminals of the headphone speaker under test are connected to an audio analyzer, which monitors the electrical signals at both ends of the headphone speaker under test; wherein the audio analyzer is an oscilloscope or a spectrum analyzer.
[0010] In one implementation, determining the noise floor level induced by the radiation from the headphone battery under test, based on the noise component in the monitored electrical signal that is synchronized with the switch control signal, includes: Use the switch control signal as a synchronization trigger source to synchronize the acquisition window of the audio analyzer with the edge or period of the switch control signal. In synchronous mode, capture and analyze the electrical signals at both ends of the headphone speaker under test; Identify noise components from the electrical signals at both ends of the headphone speaker under test that maintain a fixed timing relationship with the switch control signal in time, or that correspond to the fundamental frequency and harmonic frequencies of the switch control signal in the frequency spectrum; The quantified background noise level of the headphone battery under test is obtained by measuring the amplitude or energy of the noise component.
[0011] In one implementation, it further includes: When the noise floor level is determined to exceed a preset threshold, the length of the positive nickel plate of the earphone battery under test is increased so that the lengths of the positive carbon strip inside the earphone battery are equal to those of the negative carbon strip.
[0012] Secondly, embodiments of the present invention provide a radiated noise floor detection device for performing the radiated noise floor detection method for earphone batteries as described above, suitable for detecting TWS earphone structures in which the battery and speaker are arranged adjacent to each other; the radiated noise floor detection device includes: At least one controlled switching device, the main circuit of which is connected in series to the power supply circuit of the earphone battery under test; The signal monitoring interface is used to connect the audio analyzer to the positive and negative terminals of the headphone speaker under test in order to pick up the electrical signals at both ends. The microcontroller unit has its output pins connected to the control terminals of the controlled switching devices. It controls the controlled switching devices to periodically switch on and off at predetermined time intervals and determines the radiation noise level of the earphone battery based on the electrical signals at both ends of the earphone speaker.
[0013] Thirdly, embodiments of the present invention provide a computer-readable storage medium that stores a computer program, wherein when the computer program is run on a computer, the methods in any of the above-described embodiments are executed.
[0014] The advantages or beneficial effects of the above technical solutions include at least the following: In this invention, the battery and speaker of the earphone under test are arranged adjacent to each other. A timing controller periodically and actively creates intermittent discharge states of the battery, thereby causing the earphone under test to generate a stable and repeatable noise signal in the audio path. During this process, the electrical signals at both ends of the earphone speaker are accurately captured, and the radiated noise level of the earphone battery is quantified based on the periodic noise components in the monitored electrical signals. This greatly shortens the troubleshooting cycle for earphone problems, reduces R&D and production costs, and thus improves the efficiency of quality testing.
[0015] The above overview is for illustrative purposes only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the invention will become readily apparent from the accompanying drawings and the following detailed description. Attached Figure Description
[0016] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in the invention and should not be construed as limiting the scope of the invention.
[0017] Figure 1 This is a flowchart illustrating the method for detecting the radiated noise floor of the headphone battery according to the present invention. Figure 2 This is a current diagram of the controlled switching device of the present invention; Figure 3 This is a chip diagram of the microcontroller unit of the present invention; Figure 4 This is a time-domain waveform diagram of the synchronization noise signal of the present invention; Figure 5This is the time-domain waveform diagram after the structure of this invention has been optimized. Detailed Implementation
[0018] In the following description, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments can be modified in various ways without departing from the spirit or scope of the invention. Therefore, the drawings and description are considered to be exemplary in nature and not restrictive.
[0019] Example 1 This embodiment provides a method for detecting the radiated noise floor of an earphone battery, applicable to TWS earphones where the battery and speaker are arranged adjacent to each other within a limited space inside the earphone.
[0020] It needs to be explained that the battery and speaker are arranged close to each other in the limited space inside the earphone. This means that in the limited internal cavity of the TWS earphone, the physical distance between the battery shell or electrode and the speaker's magnetic circuit components (magnet, T-iron), voice coil or diaphragm is extremely small (usually less than 10 mm), and they may even be in direct contact or indirectly attached through fixed structural components.
[0021] This compact layout greatly shortens the electromagnetic field coupling path between the battery (interference source) and the speaker (sensitive object). The changing magnetic field generated when the battery discharges can easily penetrate the narrow space, directly cutting the speaker voice coil and inducing an interference electromotive force; at the same time, the power fluctuations caused by the discharge pulse can also be coupled to the audio amplifier circuit through conduction paths such as common ground impedance, and finally superimposed on the speaker drive signal, causing the speaker to produce background noise that can be heard by the human ear.
[0022] The purpose of this embodiment of the headphone battery radiated noise floor detection method is to quantify the radiated noise floor level in order to facilitate rapid detection of headphone quality. For example... Figure 1 As shown, the radiated noise floor detection method includes: Step S1: Configure at least one controlled switching device, which is connected to the power supply circuit of the earphone battery under test to form a controlled discharge path.
[0023] A controlled switch is an electronic switch whose on and off states can be controlled by an external electrical signal. By periodically switching the discharge circuit of the earphone battery under test through the controlled switch, the dynamic discharge process of the battery during operation can be simulated or enhanced, providing a stable and repeatable excitation source for subsequent detection of radiated noise caused by this process.
[0024] In a preferred embodiment, the controlled switching device is a MOSFET, with the source and drain of the MOSFET connected in series in the power supply circuit of the headphone battery under test. The power supply circuit refers to the current path that includes the headphone battery under test, the load (such as the headphone motherboard under test), and the controlled switching device.
[0025] The gate of the MOSFET serves as the control terminal, receiving switching control signals (such as periodic square wave voltages) from a timing controller such as a microcontroller unit (MCU). When the gate receives a high-level signal, the MOSFET turns on, the discharge circuit of the earphone battery under test is closed, and current flows through it; when the gate is low-level, the MOSFET turns off, and the discharge circuit is opened.
[0026] It should be noted that, in addition to MOSFETs, this controlled switching device can also be implemented using other components with similar functions, such as insulated gate bipolar transistors (IGBTs), relays, or high-speed analog switch integrated circuits, as long as they can respond to control signals to quickly and reliably switch on and off battery-level current.
[0027] In a controlled discharge path, the on / off state of the controlled switching device directly determines whether the earphone battery under test can discharge to the load. By programming and controlling the duty cycle and frequency of this switch, the duration, interval, and mode of battery discharge can be precisely set, thereby "creating" a battery operating state with specific characteristics.
[0028] This embodiment transforms the abstract problem of "battery radiation interference" into a standardized testing process that can be manipulated and observed through specific circuits, laying a crucial hardware foundation for subsequent accurate measurement and quantitative analysis.
[0029] Step S2: Configure a timing controller, which outputs periodic switching control signals to the control terminal of the controlled switching device.
[0030] In a preferred embodiment, the timing controller is implemented by a microcontroller unit (MCU). The MCU internally includes a programmable timer, a central processing unit (CPU), and general-purpose input / output (GPIO) interfaces. By executing a preset control program, the MCU can generate and output control signals according to a set cycle. Alternatively, the timing controller can also be implemented by other digital logic circuits with timing functions, such as programmable logic devices (PLDs) or dedicated timing integrated circuits.
[0031] When using an MCU, the specific steps for generating periodic switching control signals are as follows: Step S21. Timer Initialization: Configure the operating mode of the MCU's internal timer (e.g., 16-bit auto-reload mode), calculate and set the timer reload value based on the system clock frequency and the required timing period. For example, to implement a 50-millisecond timer interrupt, write the calculated reload value into the timer register (THx / TLx).
[0032] Step S22. Interrupt Enable and Configuration: Enable the timer interrupt function so that an interrupt request can be triggered when the timer count overflows.
[0033] Step S23. Counting and Logical Judgment: In the timer interrupt service routine, a software counter (such as the variable num) is set. This counter increments each time an interrupt occurs. When the counter reaches a preset threshold (such as 2), the counter is reset, and a GPIO pin level toggle operation is performed.
[0034] Step S24. Signal Output: The GPIO pin is pre-configured as a push-pull output mode and connected to the control terminal of the controlled switching device (such as the gate of a MOSFET). By periodically toggling the pin level, a square wave signal with a 50% duty cycle is output on the pin as a switching control signal.
[0035] The period and duty cycle of the switch control signal can be flexibly adjusted according to testing requirements. By modifying the timer reload value to change the interrupt interval, or adjusting the toggle threshold of the software counter, square wave outputs with different periods can be achieved. For example, when the timer interrupt interval is 50 milliseconds and the toggle threshold is 2, the output square wave period is 100 milliseconds.
[0036] In this embodiment, the timing controller achieves automated and programmable control of the battery discharge state, providing a crucial technical foundation for reliable excitation and quantitative analysis of battery radiated noise floor. The periodic switching control signal output by the timing controller can serve as a synchronous trigger source for the entire test system, facilitating synchronous acquisition by equipment such as audio analyzers. This ensures a strict correspondence between the noise signal and the battery discharge action, significantly improving the accuracy and efficiency of signal analysis.
[0037] Step S3: By using a switch control signal, the controlled switching device is periodically switched on and off at predetermined time intervals, thereby causing the earphone battery under test to discharge intermittently in the controlled discharge path.
[0038] The timing controller outputs a periodic square wave voltage (i.e., a switching control signal) from a designated GPIO pin. This square wave signal is applied to the control terminal (gate) of the controlled switching device (such as a MOSFET). When the signal is high, the controlled switching device is turned on, and its main circuit (source-drain) resistance drops to extremely low, approximating a short circuit. When the signal is low, the controlled switching device is turned off, and its main circuit resistance is extremely high, approximating an open circuit. The on / off state of the controlled switching device directly determines whether the controlled discharge path is complete. When on, the path is closed, and the battery can normally supply power to the load; when off, the path is physically cut off, and the battery discharge stops.
[0039] The aforementioned switching actions are performed cyclically at fixed "predetermined time intervals." For example, within a 100ms cycle, the switch is on for the first 50ms (battery discharges), and off for the next 50ms (battery rests). This cycle forces the battery's operating current to exhibit an alternating high and low square wave pattern, rather than a stable direct current. This drastic change in current (high di / dt) is the main source of strong electromagnetic radiation and conducted noise.
[0040] This embodiment utilizes periodic switching control signals to precisely drive the controlled switching device, causing it to turn on and off according to a preset pattern. This forces the earphone battery under test into a discontinuous, pulsed operating state, i.e., "intermittent discharge," within the controlled discharge path. This step aims to actively and controllably excite the inherent electromagnetic radiation and power supply disturbances of the battery in dynamic operating mode, creating stable and repeatable excitation conditions for subsequent detection of noise coupled to the audio path.
[0041] Step S4: During the intermittent discharge of the earphone battery under test, monitor the electrical signals at both ends of the earphone speaker.
[0042] In this embodiment, the positive and negative terminals of the headphone speaker under test are connected to an audio analyzer, which monitors the electrical signals at both ends of the headphone speaker. These electrical signals mainly refer to the AC voltage signal presented across the voice coil of the headphone speaker. This signal may contain background noise and target interference signals induced and coupled in by the intermittent discharge of the battery, synchronized with the switch control signal.
[0043] Use a high-input-impedance audio analyzer, digital oscilloscope, or dynamic signal analyzer. Connect the instrument's two high-precision measurement probes directly to the positive and negative solder points of the headphone speaker under test, respectively, to ensure direct measurement of the potential difference on the speaker coil. To avoid introducing additional interference, it is recommended to use shielded test cables and minimize the connection distance.
[0044] To accurately separate target interference, the trigger source of the audio analyzer should be set to the original switching control signal from the timing controller. This ensures strict synchronization between the acquisition window and the battery discharge action, guaranteeing that each captured waveform segment uses the discharge event as the time reference zero point. The acquired synchronous electrical signal waveform or spectrum is the sole data source for the next step of feature extraction to quantify the noise floor level.
[0045] Step S5: Determine the background noise level of the earphone battery under test based on the noise components in the monitored electrical signal that are synchronized with the switch control signal.
[0046] Since the electrical signals directly monitored at both ends of the speaker are a mixture, including the background noise of the audio circuit, environmental electromagnetic interference, possible test tone signals, and target noise—that is, interference caused by the intermittent discharge of the battery. The target noise may be weak in amplitude and have hidden characteristics. Therefore, signal separation is required to extract the noise response that is purely caused by the controlled discharge of the battery in order to perform independent and accurate quantitative analysis.
[0047] In the time waveform, the target noise manifests as a series of transient distortions (such as pulses, steps, and damped oscillations) with similar shapes that recur at a fixed delay after the edge (rising or falling) of each switch control signal. By employing synchronous triggering and waveform averaging techniques, the trigger source of the audio analyzer is set to the switch control signal, ensuring that each acquired waveform is aligned with the switch event as the time zero point. Averaging the waveforms acquired multiple times enhances the synchronously occurring target noise due to phase consistency, while weakening asynchronous random noise due to phase disorder, thus achieving separation.
[0048] In the frequency spectrum, the periodic switching control signal has a fundamental frequency (f0 = 1 / T, where T is the switching period) and its harmonics (2f0, 3f0...). The target noise, as its response, will also produce discrete spectral lines at the same fundamental and harmonic frequencies, with amplitudes significantly higher than the continuous spectrum of the adjacent background noise. Spectral analysis (such as FFT) can be performed on the horn signal to observe and measure whether prominent discrete spectral lines appear at the switching frequency and its harmonic points. These spectral lines are the "fingerprint" of the target noise in the frequency domain, and their energy can be separated through frequency-selective measurement or narrowband filtering.
[0049] After extracting the target noise components, at least one of the following methods is used to quantify them, and the resulting value characterizes the battery's radiated noise floor level under the test conditions: Time-domain quantization method: directly measure the peak-to-peak voltage (Vpp) of the synchronization pulse in the time-domain waveform or the effective value voltage (RMS) within a certain time window. This voltage value directly reflects the amplitude of the interference voltage coupled to the horn end.
[0050] Frequency domain quantization: On the spectrum, the amplitude values of discrete spectral lines at the switching fundamental frequency (e.g., 10 Hz) and / or major harmonic frequencies are measured, usually in dBV or dBu; the noise energy integral in a narrow band near these target frequency points can also be calculated.
[0051] Signal-to-noise ratio (SNR) evaluation method: If the test includes a low-level reference audio signal (such as a 1 kHz sine wave), the ratio of the amplitude of the reference signal to the amplitude of the extracted synchronization noise (expressed in dB) can be calculated to evaluate the potential impact of interference on the audibility of the actual audio.
[0052] This embodiment uses synchronous analysis techniques in the time or frequency domain to extract the mixed signal into a characteristic signal, quantifying the battery radiation noise level caused by the close proximity of the battery and the speaker, fundamentally solving the industry pain point of "the inability to quantify the noise floor, making it difficult to locate the cause" in the background technology.
[0053] like Figure 4 As shown, Figure 4 The horizontal axis represents time (Times), and the vertical axis represents the instantaneous level (V). This visually demonstrates the waveform of the instantaneous voltage of the "target noise signal," which is synchronously acquired from both ends of the headphone speaker and processed in a complete switching control cycle (100ms), as it changes over time. This "target noise signal" is the noise component synchronized with the switching control signal.
[0054] When the battery's radiated noise level exceeds a preset threshold, the battery structure can be adjusted to reduce radiated noise from its physical source. The preset threshold is an objective value pre-set based on product sound quality standards, industry specifications, or the inherent noise level (e.g., the peak-to-peak value of the synchronous noise at the speaker end must not exceed 50μV).
[0055] For example, the length of the positive nickel plate in the test headphone battery is increased so that the lengths of the positive and negative carbon ribbons inside the battery are equal. Specifically, the nickel connecting piece (positive nickel plate) connected to the positive terminal of the battery is extended on the outside. This can be achieved by replacing the nickel plate with a longer one or by welding an extension piece of the same material onto the existing nickel plate. The purpose of the extension is to compensate so that the total length of the internal positive current collector (from the internal positive tab to the battery casing connection point) and the external positive nickel plate is equal to the total length of the internal negative current collector (from the internal negative tab to the battery casing connection point) and the external negative nickel plate (usually shorter or the same length).
[0056] When current flows through a conductor, it creates a ring-shaped magnetic field around the conductor. If the positive and negative conductive paths are parallel and of equal length, the currents they carry are equal in magnitude but opposite in direction. According to Ampere's law and the right-hand screw rule, the magnetic field generated by the positive path and the magnetic field generated by the negative path are opposite in direction at any point in space. When the two paths are adjacent and geometrically symmetrical, the time-varying magnetic fields they produce (especially during dynamic battery discharge) can cancel each other out or significantly weaken each other in the far-field region, thereby reducing the electromagnetic energy radiated by the battery as a whole into external space. The radiation imbalance originally caused by the unequal lengths is corrected.
[0057] like Figure 5As shown, after changing the battery design, the battery radiation energy at both ends of the speaker was detected using an audio analyzer. It was reduced from 300uV before the design change to 60uV. After a whole-machine listening test, the background noise problem was solved.
[0058] Example 2 This embodiment provides a radiated noise floor detection device for performing the radiated noise floor detection method for earphone batteries as described in Embodiment 1. This detection device is suitable for detecting TWS earphone structures in which the battery and speaker are arranged in close proximity.
[0059] like Figure 2 ,like Figure 3 As shown, the radiated noise floor detection device specifically includes at least one controlled switching device, a signal monitoring interface, and a microcontroller unit. The control terminal of the controlled switching device is connected to the output pin of the microcontroller unit, and its main circuit is connected in series to the power supply circuit of the earphone battery under test to form a controlled discharge path. Figure 2 As shown, Figure 2 For the connection circuit of the controlled switching device, the positive terminal of the earphone battery under test is connected to the H5 interface of the circuit, and the negative terminal of the earphone battery under test is connected to H8. The gate of the controlled switching device Q4 is connected to the P0.0 pin of the microcontroller unit through resistor R50, and pulled down to GND through resistor R51. The source of the controlled switching device Q4 is directly grounded, and its drain is connected to the resistor network composed of R67-R71, and also connected to the cathode of the freewheeling diode D6. When Q4 is turned off, the freewheeling diode D6 provides a low-impedance freewheeling path for the reverse electromotive force generated by the inductive load (such as the speaker coil), preventing high voltage spikes from breaking down Q4.
[0060] A signal monitoring interface is led out from the positive and negative terminals of the headphone speaker under test. This interface is then connected to an audio analyzer to pick up the electrical signals from both ends of the headphone speaker. The microcontroller unit determines the radiated noise level of the headphone battery based on the noise components in the electrical signals from both ends of the headphone speaker that are synchronized with the periodic switching control signal.
[0061] When the background noise level of the battery radiation of the earphone under test exceeds the preset threshold, the background noise is quantified and the positive electrode of the battery is lengthened by adding a nickel plate to make the positive and negative carbon strips inside the battery equal in length so that the radiation cancels each other out, thus solving the problems of background noise and current noise.
[0062] It should be noted that the functions implemented by this invention can be found in the corresponding descriptions in the above methods, and will not be repeated here.
[0063] Example 3 This invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method provided in the above embodiments of this invention.
[0064] This invention also provides a chip, which includes a processor for calling and executing instructions stored in a memory, causing a communication device on which the chip is installed to perform the method provided in this invention.
[0065] This invention also provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, output interface, processor, and memory are connected through an internal connection path. The processor is used to execute code in the memory. When the code is executed, the processor is used to execute the method provided in this invention.
[0066] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting the Advanced Reduced Instruction Set Computing (RISC) machine (ARM) architecture.
[0067] Further, optionally, the aforementioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile or non-volatile, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM).
[0068] In the above embodiments, implementation can be achieved, in whole or in part, by software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the present invention is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another.
[0069] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.
[0070] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0071] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various variations or substitutions within the technical scope disclosed in the present invention, and these should all be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for detecting the radiated noise floor of an earphone battery, characterized in that, include: At least one controlled switching device is configured, which is connected to the power supply circuit of the earphone battery under test to form a controlled discharge path; Configure a timing controller, which outputs periodic switching control signals to the control terminal of the controlled switching device; The switch control signal controls the controlled switch device to periodically switch on and off at predetermined time intervals, thereby causing the earphone battery under test to intermittently discharge in the controlled discharge path. During the intermittent discharge of the earphone battery under test, the electrical signals at both ends of the earphone speaker under test are monitored, wherein the earphone battery under test and the earphone speaker under test are arranged adjacent to each other in the earphone space; The noise floor level of the earphone battery under test is determined based on the noise components in the monitored electrical signal that are synchronized with the switch control signal.
2. The method for detecting the radiated noise floor of an earphone battery according to claim 1, characterized in that, The controlled switching device is a MOSFET, with its source and drain connected in series in the power supply circuit of the headphone battery, and its gate serving as the control terminal.
3. The method for detecting the radiated noise floor of an earphone battery according to claim 1, characterized in that, The timing controller is a microcontroller unit, and the switch control signal is output from the general-purpose input / output pin of the microcontroller unit.
4. The method for detecting the radiated noise floor of an earphone battery according to claim 1, characterized in that, The method for generating the switch control signal is as follows: The timing controller is configured to generate timing events according to a preset period; In response to each of the aforementioned timing events, a counter is incremented. When the accumulated value of the counter reaches the preset toggle threshold, the output level of the specified GPIO pin is toggled, and the counter is reset, forming a square wave signal with a duty cycle of 50% as the switch control signal.
5. The method for detecting the radiated noise floor of an earphone battery according to claim 4, characterized in that, The preset period of the timing controller is 50 milliseconds, and the toggle threshold is 2, so that the toggle interval of the switch control signal is 100 milliseconds.
6. The method for detecting the radiated noise floor of an earphone battery according to claim 1, characterized in that, The positive and negative terminals of the headphone speaker under test are connected to an audio analyzer, which monitors the electrical signals at both ends of the headphone speaker under test; wherein, the audio analyzer is an oscilloscope or a spectrum analyzer.
7. The method for detecting the radiated noise floor of an earphone battery according to claim 1, characterized in that, The step of determining the noise floor level caused by the radiation from the earphone battery under test based on the noise component in the monitored electrical signal that is synchronized with the switch control signal includes: The switch control signal is used as a synchronization trigger source to synchronize the acquisition window of the audio analyzer with the edge or period of the switch control signal. In synchronous mode, the electrical signals at both ends of the speaker of the earphone under test are captured and analyzed; The noise components that maintain a fixed timing relationship with the switch control signal in time or correspond to the fundamental frequency and harmonic frequency of the switch control signal in the frequency spectrum are identified from the electrical signals at both ends of the speaker of the earphone under test. The quantified background noise level of the headphone battery under test is obtained by measuring the amplitude or energy of the noise component.
8. The method for detecting the radiated noise floor of an earphone battery according to claim 1, characterized in that, Also includes: When the noise floor level is determined to exceed a preset threshold, the length of the positive nickel plate of the earphone battery under test is increased so that the lengths of the positive carbon strip inside the earphone battery are equal to those of the negative carbon strip.
9. A radiated noise floor detection apparatus for performing the radiated noise floor detection method for an earphone battery according to any one of claims 1 to 8, characterized in that, Suitable for testing the structure of TWS earphones with the battery and speaker arranged in close proximity; The radiated noise floor detection device includes: At least one controlled switching device, the main circuit of which is connected in series to the power supply circuit of the earphone battery under test; The signal monitoring interface is used to connect the audio analyzer to the positive and negative terminals of the headphone speaker under test in order to pick up the electrical signals at both ends. The microcontroller unit has its output pin connected to the control terminal of the controlled switching device, and is used to control the controlled switching device to periodically switch on and off at predetermined time intervals, and to determine the radiation noise level of the earphone battery based on the electrical signals at both ends of the earphone speaker.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the method for detecting the radiated noise floor of an earphone battery as described in any one of claims 1 to 8.