Hardware circuit board noise test method and device, storage medium and electronic device
The method automates noise testing on hardware circuit boards by using a recording microphone and dynamic load control to generate precise noise data, addressing inaccuracies in human-based assessments.
Patent Information
- Application Number
- CN202411297071.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-14
- Publication Date
- 2024-12-06
AI Technical Summary
Current noise testing methods for hardware circuit boards rely on subjective human ear assessments, leading to inaccuracies in determining noise amplitude, spectrum, and sound source location due to incomplete coverage of actual dynamic operating loads and individual differences in human judgment.
A method involving a recording microphone positioned above the circuit board, adjusting peripheral accessories, controlling the board under dynamic loads, and analyzing noise files to generate a noise source position diagram, amplitude, and frequency transforms, providing an automated and comprehensive noise test.
Accurately determines noise amplitude, spectrum, and sound source location through automated testing, overcoming subjective human assessment limitations.
Smart Images

Figure CN119087186A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of noise testing, and in particular to a method, device, storage medium and electronic device for testing noise of a hardware circuit board. Background Art
[0002] With the use of ceramic capacitors in hardware circuits and increasingly thinner printed circuit board (PCB) designs, dynamic load reflow processes of different amplitudes and frequencies may cause the board and ceramic capacitors to vibrate, generating noise that can be detected by the human ear, causing trouble to users.
[0003] The current noise testing method for hardware circuits is to manually inject dynamic loads of different frequencies into each module of the hardware circuit and the power supply circuit of each module, and then use the human ear to subjectively identify the noise caused by the dynamic load under different conditions. However, this noise testing method fails to fully cover the noise conditions under actual dynamic operating loads, and there are individual differences in subjective judgments by the human ear, which may lead to noise discrimination errors, and therefore cannot provide accurate information such as noise amplitude, spectrum, and sound source location. Summary of the invention
[0004] The embodiments of the present invention provide a hardware circuit board noise testing method, device, storage medium and electronic device to at least solve the technical problem in the related art that the noise situation is subjectively identified by the human ear, resulting in the inability to accurately determine information such as the noise amplitude, spectrum and sound source location.
[0005] According to one embodiment of the present invention, a method for testing noise of a hardware circuit board is provided, comprising: determining a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board; adjusting peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board; in the adjusted scene to be tested, controlling the hardware circuit board to be in a dynamic load operation state, and recording a noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state will dynamically change according to the working state and demand of the hardware circuit board; analyzing and processing the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board; and determining the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve, and the frequency fast Fourier transform curve.
[0006] Optionally, determining the scenario to be tested includes: determining the scenario to be tested based on an operation requirement of a hardware circuit board.
[0007] Optionally, adjusting the peripheral accessories in the test scenario based on the hardware circuit board includes: determining the peripheral accessories based on the hardware circuit board, wherein the peripheral accessories include a pronunciation peripheral accessory and a mute peripheral accessory; determining an equivalent impedance device based on the pronunciation peripheral accessory, wherein the equivalent impedance device has the same working principle as the pronunciation peripheral accessory; and adjusting the working state of the equivalent impedance device and the working state of the mute peripheral accessory based on the operating requirements of the hardware circuit board.
[0008] Optionally, controlling the hardware circuit board to be in a dynamic load operation state includes: determining a target dynamic load of the hardware circuit board; and controlling the hardware circuit board to drive the target dynamic load to operate.
[0009] Optionally, recording a noise file of a hardware circuit board under a dynamic load operation state includes: determining a recording device based on preset recording conditions; and recording the noise file based on the recording device.
[0010] Optionally, before performing audio analysis processing on the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, the method also includes: determining first position information of the hardware circuit board and second position information of the recording microphone; establishing a distance phase model based on the first position information and the second position information, wherein the distance phase model is used to output phase information of the hardware circuit board relative to the recording microphone.
[0011] Optionally, analyzing and processing the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve includes: performing audio analysis processing on the noise file to obtain an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve; performing phase analysis processing on the noise file based on a distance phase model to obtain a noise source position point diagram.
[0012] Optionally, the noise test result includes a corresponding dynamic load number, a position model of a hardware circuit board, a noise frequency model of the hardware circuit board, and a noise amplitude model of the hardware circuit board.
[0013] According to one embodiment of the present invention, a hardware circuit board noise testing device is also provided, including: a first determination module, used to determine a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board; an adjustment module, used to adjust peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board; a recording module, used to control the hardware circuit board to be in a dynamic load operation state in the adjusted scene to be tested, and record a noise file of the hardware circuit board under the dynamic load operation state, wherein the load in the hardware circuit board under the dynamic load operation state will dynamically change according to the working state and demand of the hardware circuit board; an analysis module, used to analyze and process the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board; a second determination module, used to determine the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0014] Optionally, the first determination module is further used to determine the scenario to be tested based on the operation requirements of the hardware circuit board.
[0015] Optionally, the adjustment module is also used to determine peripheral accessories based on the hardware circuit board, wherein the peripheral accessories include a pronunciation peripheral accessory and a silent peripheral accessory; determine an equivalent impedance device based on the pronunciation peripheral accessory, wherein the equivalent impedance device has the same working principle as the pronunciation peripheral accessory; and adjust the working state of the equivalent impedance device and the working state of the silent peripheral accessory based on the operating requirements of the hardware circuit board.
[0016] Optionally, the recording module is also used to determine the target dynamic load of the hardware circuit board; and control the hardware circuit board to drive the target dynamic load to run.
[0017] Optionally, the recording module is further used to determine a recording device based on preset recording conditions; and record a noise file based on the recording device.
[0018] Optionally, the device also includes: an establishment module for determining first position information of the hardware circuit board and second position information of the recording microphone; establishing a distance phase model based on the first position information and the second position information, wherein the distance phase model is used to output phase information of the hardware circuit board relative to the recording microphone.
[0019] Optionally, the analysis module is also used to perform audio analysis processing on the noise file to obtain an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve; perform phase analysis processing on the noise file based on a distance phase model to obtain a noise source location point diagram.
[0020] Optionally, the noise test result includes a corresponding dynamic load number, a position model of a hardware circuit board, a noise frequency model of the hardware circuit board, and a noise amplitude model of the hardware circuit board.
[0021] According to one embodiment of the present invention, a vehicle is provided, and the vehicle is used to execute any of the above hardware circuit board noise testing methods.
[0022] According to one embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute any of the above-mentioned hardware circuit board noise testing methods when running on a computer or a processor.
[0023] According to one embodiment of the present invention, there is also provided an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute any of the above hardware circuit board noise testing methods.
[0024] According to one embodiment of the present invention, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the hardware circuit board noise testing method described above is implemented.
[0025] In an embodiment of the present invention, a scene to be tested is first determined, and the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board. Then, the peripheral accessories used to assist the operation of the hardware circuit board in the scene to be tested are adjusted based on the hardware circuit board. Afterwards, in the adjusted scene to be tested, the hardware circuit board is controlled to be in a dynamic load operation state, and the noise file of the hardware circuit board is recorded in the dynamic load operation state, and the load in the hardware circuit board in the dynamic load operation state will change dynamically according to the working state and demand of the hardware circuit board. Then, the noise file is analyzed and processed to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve. Finally, based on the noise source position point diagram, amplitude fast Fourier transform curve and frequency fast Fourier transform curve, the noise test results in the test scenario are determined, which achieves the purpose of automatically controlling the test scenario and injecting dynamic load into the hardware circuit board to be tested, automatically testing the dynamic load noise and outputting the noise test report, and can achieve a more comprehensive and accurate hardware circuit noise test scenario, thereby achieving the technical effect of improving the accuracy of noise source positioning through automated testing, and being able to accurately determine information such as noise amplitude, spectrum and sound source location, thereby solving the technical problem in related technologies that the noise situation is subjectively identified by the human ear, resulting in the inability to accurately determine information such as noise amplitude, spectrum and sound source location. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0027] Figure 1 is a flow chart of a hardware circuit board noise testing method according to one embodiment of the present invention;
[0028] Figure 2 It is a schematic diagram of a noise testing method for hardware circuits;
[0029] Figure 3 4 is a structural block diagram of a hardware circuit board noise testing device according to one embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings 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 should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In the description of this embodiment, unless otherwise specified, the meaning of "multiple" is two or more. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] Figure 2 It is a schematic diagram of a noise test method for hardware circuits, such as Figure 2As shown, currently, dynamic loads are artificially injected into the device under test, for example, dynamic loads of different frequencies are injected into each module of the hardware circuit and the power supply circuit of each module. Then, when the dynamic load is running, the human ear is used to subjectively identify the noise caused by the dynamic load under different conditions, such as the human ear subjectively identifying the location, amplitude and approximate frequency of the noise source of the device under test. However, this noise test method fails to fully cover the noise conditions under actual dynamic operating loads, and there are individual differences in the subjective judgment of the human ear, which may lead to noise discrimination errors. Therefore, it is impossible to provide accurate information such as noise amplitude, spectrum, and sound source location, which is not conducive to problem level judgment and problem analysis and resolution.
[0033] According to one embodiment of the present invention, an embodiment of a hardware circuit board noise testing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0034] The method embodiment can be executed in an electronic device including a memory and a processor, a similar control device or a system. Taking an electronic device as an example, the electronic device may include one or more processors and a memory for storing data. Optionally, the electronic device may also include a communication device and a display device for communication functions. It can be understood by a person of ordinary skill in the art that the above structural description is only illustrative and does not limit the structure of the above electronic device. For example, the electronic device may also include more or fewer components than the above structural description, or have a configuration different from the above structural description.
[0035] The processor may include one or more processing units. For example, the processor may include a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP) chip, a microcontroller unit (MCU), a field-programmable gate array (FPGA), a neural network processor (NPU), a tensor processing unit (TPU), an artificial intelligence (AI) type processor, and the like. Among them, different processing units may be independent components or integrated into one or more processors. In some instances, the electronic device may also include one or more processors.
[0036] The memory can be used to store computer programs, such as storing the computer program corresponding to the hardware circuit board noise test method in the embodiment of the present invention, and the processor implements the above-mentioned hardware circuit board noise test method by running the computer program stored in the memory. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0037] The communication device is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the communication device includes a network adapter (network interface controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the communication device can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0038] The display device may be, for example, a touch screen type liquid crystal display (LCD) and a touch display (also referred to as a "touch screen" or "touch display screen"). The liquid crystal display may enable a user to interact with a user interface of a mobile terminal. In some embodiments, the mobile terminal has a graphical user interface (GUI), and a user may interact with the GUI by finger contact and / or gestures on a touch-sensitive surface, wherein the human-computer interaction functions here may optionally include the following interactions: creating web pages, drawing, word processing, making electronic documents, games, video conferencing, instant messaging, sending and receiving emails, call interfaces, playing digital videos, playing digital music and / or web browsing, etc. The executable instructions for executing the above human-computer interaction functions are configured / stored in a computer program product or a readable storage medium executable by one or more processors.
[0039] In this embodiment, a method for testing noise of a hardware circuit board running in an electronic device is provided. Figure 1 FIG. 1 is a flowchart of a method for testing noise of a hardware circuit board according to one embodiment of the present invention. Figure 1 As shown, the process includes the following steps:
[0040] Step S10, determining a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board;
[0041] Step S12: adjusting peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board;
[0042] Step S14: in the adjusted test scenario, control the hardware circuit board to be in a dynamic load operation state, and record the noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state will dynamically change according to the working state and demand of the hardware circuit board;
[0043] Step S16, analyzing and processing the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board;
[0044] Step S18: determining the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0045] In the embodiment of the present invention, the scene to be tested can be understood as a scene for testing the hardware circuit board to be tested. For example, the scene to be tested can be a special recording test silent room or a quiet scene, which is not limited here. It should be noted that multiple scenes to be tested can be set, so that the hardware circuit board can be tested in multiple scenes to be tested.
[0046] The test scene includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board. Optionally, the recording microphone can be located at a preset vertical distance above the center point of the hardware circuit board.
[0047] Exemplarily, the preset vertical distance can be set to 10 meters, that is, the recording microphone can be installed at a vertical distance of 10 meters above the center point of the hardware circuit board. It can be adjusted according to actual conditions and is not limited here.
[0048] Peripheral accessories can be understood as other devices or accessories required for the operation of the hardware circuit board, and the peripheral accessories are used to assist the operation of the hardware circuit board. For example, the peripheral accessories may include power adapters, connecting cables, sensors, controllers and other devices required for the operation of the hardware circuit board, which are not limited here.
[0049] After determining the scenario to be tested, the peripheral accessories in the scenario to be tested are adjusted based on the hardware circuit board. This can be understood as adjusting the working status and working position of the peripheral accessories in the scenario to be tested based on the operating requirements of the hardware circuit board, so that the hardware circuit board can operate normally in the scenario to be tested and prepare for subsequent noise testing.
[0050] After adjusting the peripheral accessories in the scene to be tested, in the adjusted scene to be tested, control the hardware circuit board to be in a dynamic load operation state, and record the noise file of the hardware circuit board in the dynamic load operation state. It is understandable that in the dynamic load operation state, the load in the hardware circuit board will change dynamically according to the working state and demand of the hardware circuit board, that is, the voltage and current of the hardware circuit board in the dynamic load operation state will change dynamically. The present invention records the noise file of the hardware circuit board in the dynamic load operation state, so that the recorded noise file can fully cover the noise conditions under the actual dynamic operation load condition.
[0051] After recording the noise file, the noise file is analyzed and processed to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve. It is understandable that the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board. The amplitude fast Fourier transform curve is used to represent the amplitude of different frequency components in the noise file, that is, to represent the energy distribution of the noise at different frequencies. The frequency fast Fourier transform curve represents the phase angle of different frequency components in the noise file, that is, to represent the phase information of the noise at different frequencies. Exemplarily, the noise file can be analyzed and processed by tools such as audio analysis software, which is not limited here.
[0052] Finally, based on the noise source location point diagram, amplitude fast Fourier transform curve and frequency fast Fourier transform curve, the noise test result in the test scenario can be determined, so as to accurately determine the noise amplitude, spectrum, and clear location of the sound source.
[0053] It can be seen that when the embodiment of the present invention performs a noise test on the hardware circuit board, the scene to be tested is first determined, and the scene to be tested includes the hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board. Then, the peripheral accessories used to assist the operation of the hardware circuit board in the scene to be tested are adjusted based on the hardware circuit board. Afterwards, in the adjusted scene to be tested, the hardware circuit board is controlled to be in a dynamic load operation state, and the noise file of the hardware circuit board is recorded under the dynamic load operation state, and the load in the hardware circuit board under the dynamic load operation state will change dynamically according to the working state and demand of the hardware circuit board. Then, the noise file is analyzed and processed to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve. Finally, the noise test result under the scene to be tested is determined based on the noise source position point diagram, the amplitude fast Fourier transform curve, and the frequency fast Fourier transform curve. Therefore, by automatically controlling the operation of practical scenarios and different dynamic loads and recording noise files, the recorded noise files are analyzed by audio analysis software for the amplitude distribution, frequency distribution and phase information of the noise sources of each scenario to be tested, and all noise test results are output, so that a more comprehensive and accurate hardware circuit noise test can be achieved, which is more conducive to the judgment and analysis and positioning of noise conditions.
[0054] Through the above steps, the scene to be tested is first determined, and the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board. Then, based on the hardware circuit board, the peripheral accessories used to assist the operation of the hardware circuit board in the scene to be tested are adjusted. Afterwards, in the adjusted scene to be tested, the hardware circuit board is controlled to be in a dynamic load operation state, and the noise file of the hardware circuit board is recorded under the dynamic load operation state, and the load in the hardware circuit board under the dynamic load operation state will change dynamically according to the working state and demand of the hardware circuit board. Then, the noise file is analyzed and processed to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve. Finally, based on the noise source position point diagram, amplitude fast Fourier transform curve and frequency fast Fourier transform curve, the noise test results in the test scenario are determined, which achieves the purpose of automatically controlling the test scenario and injecting dynamic load into the hardware circuit board to be tested, automatically testing the dynamic load noise and outputting the noise test report, and can achieve a more comprehensive and accurate hardware circuit noise test scenario, thereby achieving the technical effect of improving the accuracy of noise source positioning through automated testing, and being able to accurately determine information such as noise amplitude, spectrum and sound source location, thereby solving the technical problem in related technologies that the noise situation is subjectively identified by the human ear, resulting in the inability to accurately determine information such as noise amplitude, spectrum and sound source location.
[0055] Optionally, in step S10, determining the scenario to be tested may include the following execution steps:
[0056] Step S101: determining a scenario to be tested based on the operating requirements of the hardware circuit board.
[0057] In an embodiment of the present invention, when determining the scene to be tested, the scene to be tested can be determined based on the operating requirements of the hardware circuit board. Exemplarily, the scene to be tested can be flexibly set according to the operating requirements of the hardware circuit board. If the operating requirement is the maximum load operation of the system-on-chip (SOC) module, the scene to be tested can be the maximum load operation scene of the SOC module. If the operating requirement is the maximum load operation of the audio amplifier, the scene to be tested can also be the maximum load operation scene of the audio amplifier. If the operating requirement is the maximum brightness animation operation of the screen module, the scene to be tested can also be the maximum brightness animation operation scene of the screen module, etc., which is not limited here.
[0058] Optionally, in step S12, adjusting the peripheral accessories in the scene to be tested based on the hardware circuit board may include the following execution steps:
[0059] Step S121, determining peripheral accessories based on the hardware circuit board, wherein the peripheral accessories include a pronunciation peripheral accessory and a mute peripheral accessory;
[0060] Step S122, determining an equivalent impedance device based on the pronunciation peripheral accessories, wherein the equivalent impedance device and the pronunciation peripheral accessories have the same working principle;
[0061] Step S123: adjusting the working state of the equivalent impedance device and the working state of the mute peripheral accessories based on the operating requirements of the hardware circuit board.
[0062] In an embodiment of the present invention, when adjusting peripheral accessories in a scene to be tested based on a hardware circuit board, the peripheral accessories can be determined based on the hardware circuit board, and the peripheral accessories generally include sound-generating peripheral accessories and silent peripheral accessories, wherein a sound-generating peripheral accessory is a device that makes noise during operation, and a silent peripheral accessory is a device that does not make noise during operation.
[0063] Considering that when performing noise testing on a hardware circuit board, it is necessary to record the noise generated when the hardware circuit board is running, it is necessary to replace the peripheral accessories in the peripheral accessories with equivalent impedance loads to prevent the noise generated when the board is running from being recorded.
[0064] Furthermore, after the peripheral accessories are determined, an equivalent impedance device is determined based on the pronunciation peripheral accessories, that is, an equivalent impedance device with the same working principle as the pronunciation peripheral accessories is determined, and the equivalent impedance device is used to replace the pronunciation peripheral accessories to assist the operation of the hardware circuit board. Finally, the working state of the equivalent impedance device and the working state of the mute peripheral accessories are adjusted based on the operation requirements of the hardware circuit board, so that the hardware circuit board can operate normally.
[0065] Optionally, in step S14, controlling the hardware circuit board to be in a dynamic load operation state may include the following execution steps:
[0066] Step S141, determining the target dynamic load of the hardware circuit board;
[0067] Step S142: Control the hardware circuit board to drive the target dynamic load to run.
[0068] In the embodiment of the present invention, the target dynamic load can be understood as a dynamic load that needs to be injected into the hardware circuit board. The target dynamic load can include multiple dynamic loads. Different target dynamic loads can be injected into the hardware circuit board in different test scenarios according to actual needs. In addition, the target dynamic load can be an actual load or a simulated load, which is not limited here.
[0069] When controlling the hardware circuit board to be in a dynamic load operation state, the target dynamic load of the hardware circuit board can be determined, and then the hardware circuit board is controlled to drive the target dynamic load to operate, so that the hardware circuit board is in a dynamic load operation state.
[0070] Optionally, in step S14, recording the noise file of the hardware circuit board under the dynamic load operation state may include the following execution steps:
[0071] Step S143, determining a recording device based on preset recording conditions;
[0072] Step S144: Record a noise file based on a recording device.
[0073] In an embodiment of the present invention, when recording a noise file of a hardware circuit board under a dynamic load operation state, a recording device can be determined based on preset recording conditions, and then the noise file is recorded based on the recording device. That is, a recording device that meets the recording conditions needs to be used to record the noise file, so that the recorded noise file is more accurate.
[0074] Optionally, in step S16, before performing audio analysis processing on the noise file to obtain a noise source location point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, the method may further include the following execution steps:
[0075] Step S151, determining first position information of a hardware circuit board and second position information of a recording microphone;
[0076] Step S152: establishing a distance phase model based on the first position information and the second position information, wherein the distance phase model is used to output phase information of the hardware circuit board relative to the recording microphone.
[0077] In an embodiment of the present invention, before performing audio analysis processing on the noise file to obtain the noise source position point diagram, amplitude fast Fourier transform curve and frequency fast Fourier transform curve, it is also necessary to establish a distance phase model. When establishing the distance phase model, first determine the first position information of the hardware circuit board and the second position information of the recording microphone, and then establish the distance phase model based on the first position information and the second position information, so that the phase information of the hardware circuit board relative to the recording microphone can be output through the distance phase model.
[0078] Optionally, in step S16, performing audio analysis processing on the noise file to obtain a noise source location point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve may include the following execution steps:
[0079] Step S161, performing audio analysis processing on the noise file to obtain an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve;
[0080] Step S162: performing phase analysis processing on the noise file based on the distance phase model to obtain a noise source position point map.
[0081] In an embodiment of the present invention, when performing audio analysis processing on a noise file to obtain a noise source location point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, the noise file can be subjected to audio analysis processing to obtain an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve. Exemplarily, audio analysis software can be used to perform audio analysis processing on the noise file to obtain an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve. At the same time, the noise file can be subjected to phase analysis processing according to the established distance phase model to obtain a noise source location point diagram.
[0082] Optionally, the noise test result includes a corresponding dynamic load number, a position model of a hardware circuit board, a noise frequency model of the hardware circuit board, and a noise amplitude model of the hardware circuit board.
[0083] In an embodiment of the present invention, the noise test result obtained by the noise test of the hardware circuit board may include the dynamic load number of the dynamic load injected when testing the hardware circuit board, the position model of the hardware circuit board, the noise frequency model of the hardware circuit board, the noise amplitude model of the hardware circuit board, and other information, which are not limited here. The position model of the hardware circuit board, the noise frequency model of the hardware circuit board, and the noise amplitude model of the hardware circuit board can be three-dimensional models to better reflect noise-related information.
[0084] Exemplarily, when performing noise testing on a hardware circuit board, the embodiment of the present invention requires some preparation work, such as pre-designing the test software that can automatically run the dynamic load of the hardware circuit to be tested, and each dynamic load can be synchronized and numbered, or setting up the simulated interference conditions to be injected into the machine under test. It is also necessary to pre-determine multiple test scenes to be tested, and install a recording microphone in the test scene so that the recording microphone is 10 cm vertically above the center point of the hardware circuit. In addition, it is also necessary to pre-determine a recording device that meets the recording conditions.
[0085] Then, we will build peripheral accessories for the hardware circuit operation, and replace the sound device in the peripheral accessories with an equivalent impedance load to prevent the noise of the board operation from being recorded. After that, we can build a distance phase model of the hardware circuit according to the distance between the hardware circuit and the recording microphone for subsequent use.
[0086] After the preparation work is set up, the test software can be controlled to run, that is, the hardware circuit is controlled to be in a dynamic load operation state, and the noise file of the hardware circuit board is recorded according to the determined recording device under the dynamic load operation state. It can be understood that the dynamic load noise of the corresponding hardware circuit in each test scene will be synchronously recorded through the recording system of the recording device to form multiple noise files. After that, the noise file is analyzed using the sound source analysis software and the established distance phase model to obtain the position point diagram corresponding to the noise in each noise file, that is, the noise source position point diagram, and the amplitude fast Fourier transform curve and frequency fast Fourier transform curve in each noise file. Finally, the noise test results for each test scene are output based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0087] It is understandable that the solution proposed in the embodiment of the present invention can also be applied to the modeling and testing of the operating noise of a whole vehicle or other products, and other noise of the whole tested component, which is not limited here.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0089] In this embodiment, a hardware circuit board noise test device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0090] Figure 3 is a structural block diagram of a hardware circuit board noise testing device according to one embodiment of the present invention. Figure 3As shown, a hardware circuit board noise test device 300 is used as an example, and the device includes: a first determination module 301, which is used to determine a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board; an adjustment module 302, which is used to adjust the peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board; a recording module 303, which is used to control the hardware circuit board to be in a dynamic load operation state in the adjusted scene to be tested, and record the noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state will change dynamically according to the working state and demand of the hardware circuit board; an analysis module 304, which is used to analyze and process the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board; a second determination module 305, which is used to determine the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0091] Optionally, the first determination module 301 is further configured to determine a scenario to be tested based on an operation requirement of the hardware circuit board.
[0092] Optionally, the adjustment module 302 is also used to determine peripheral accessories based on the hardware circuit board, wherein the peripheral accessories include a pronunciation peripheral accessory and a mute peripheral accessory; determine an equivalent impedance device based on the pronunciation peripheral accessory, wherein the equivalent impedance device has the same working principle as the pronunciation peripheral accessory; and adjust the working state of the equivalent impedance device and the working state of the mute peripheral accessory based on the operating requirements of the hardware circuit board.
[0093] Optionally, the recording module 303 is further used to determine a target dynamic load of the hardware circuit board; and control the hardware circuit board to drive the target dynamic load to run.
[0094] Optionally, the recording module 303 is further configured to determine a recording device based on a preset recording condition; and record a noise file based on the recording device.
[0095] Optionally, the device also includes: an establishment module for determining first position information of the hardware circuit board and second position information of the recording microphone; establishing a distance phase model based on the first position information and the second position information, wherein the distance phase model is used to output phase information of the hardware circuit board relative to the recording microphone.
[0096] Optionally, the analysis module 304 is further used to perform audio analysis processing on the noise file to obtain an amplitude fast Fourier transform curve and a frequency fast Fourier transform curve; perform phase analysis processing on the noise file based on a distance phase model to obtain a noise source position point diagram.
[0097] Optionally, the noise test result includes a corresponding dynamic load number, a position model of a hardware circuit board, a noise frequency model of the hardware circuit board, and a noise amplitude model of the hardware circuit board.
[0098] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.
[0099] An embodiment of the present invention further provides a vehicle, which is used to execute the steps in any of the above method embodiments.
[0100] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program is configured to execute the steps of any of the above method embodiments when running on a computer or a processor.
[0101] Optionally, in this embodiment, the computer-readable storage medium may be configured to store a computer program for performing the following steps:
[0102] Step S10, determining a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board;
[0103] Step S12: adjusting peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board;
[0104] Step S14: in the adjusted test scenario, control the hardware circuit board to be in a dynamic load operation state, and record the noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state will dynamically change according to the working state and demand of the hardware circuit board;
[0105] Step S16, analyzing and processing the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board;
[0106] Step S18: determining the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0107] Optionally, in this embodiment, the above-mentioned computer-readable storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.
[0108] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0109] Optionally, in this embodiment, the processor in the electronic device may be configured to run a computer program to perform the following steps:
[0110] Step S10, determining a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board;
[0111] Step S12: adjusting peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board;
[0112] Step S14: in the adjusted test scenario, control the hardware circuit board to be in a dynamic load operation state, and record the noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state will dynamically change according to the working state and demand of the hardware circuit board;
[0113] Step S16, analyzing and processing the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board;
[0114] Step S18: determining the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0115] An embodiment of the present invention further provides a computer program product, including a computer program, which implements the steps in any of the above method embodiments when executed by a processor.
[0116] Optionally, in this embodiment, the computer program in the above computer program product may be configured to perform the following steps when executed by a processor:
[0117] Step S10, determining a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board;
[0118] Step S12: adjusting peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board;
[0119] Step S14: in the adjusted test scenario, control the hardware circuit board to be in a dynamic load operation state, and record the noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state will dynamically change according to the working state and demand of the hardware circuit board;
[0120] Step S16, analyzing and processing the noise file to obtain a noise source position point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source position point diagram is used to represent the position coordinates of the noise source in the hardware circuit board;
[0121] Step S18: determining the noise test result in the scene to be tested based on the noise source position point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
[0122] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0123] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0124] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0125] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0126] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0127] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0128] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk, etc., various media that can store program codes.
[0129] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for testing noise of a hardware circuit board, characterized in that: include: Determine a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board; Adjusting peripheral accessories in the scenario to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board; In the adjusted test scenario, the hardware circuit board is controlled to be in a dynamic load operation state, and a noise file of the hardware circuit board is recorded in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state changes dynamically according to the working state and demand of the hardware circuit board; Analyzing and processing the noise file to obtain a noise source location point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source location point diagram is used to represent the position coordinates of the noise source in the hardware circuit board; The noise test result in the scene to be tested is determined based on the noise source location point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
2. The method according to claim 1, characterized in that Determine that the scenario to be tested includes: The scenario to be tested is determined based on the operating requirements of the hardware circuit board.
3. The method according to claim 2, characterized in that Adjusting the peripheral accessories in the scene to be tested based on the hardware circuit board includes: Determining the peripheral accessories based on the hardware circuit board, wherein the peripheral accessories include a pronunciation peripheral accessory and a mute peripheral accessory; Determining an equivalent impedance device based on the pronunciation peripheral accessory, wherein the equivalent impedance device and the pronunciation peripheral accessory have the same working principle; The working state of the equivalent impedance device and the working state of the mute peripheral accessory are adjusted based on the operating requirements of the hardware circuit board.
4. The method according to claim 1, characterized in that: Controlling the hardware circuit board to be in the dynamic load operation state includes: determining a target dynamic load of the hardware circuit board; The hardware circuit board is controlled to drive the target dynamic load to operate.
5. The method according to claim 1, characterized in that The noise file of the hardware circuit board recorded under the dynamic load operation state includes: Determine the recording device based on the preset recording conditions; The noise file is recorded based on the recording device.
6. The method according to claim 1, characterized in that Before performing audio analysis processing on the noise file to obtain the noise source location point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve, the method further includes: Determining first position information of the hardware circuit board and second position information of the recording microphone; A distance phase model is established based on the first position information and the second position information, wherein the distance phase model is used to output phase information of the hardware circuit board relative to the recording microphone.
7. The method according to claim 6, characterized in that The analyzing and processing of the noise file to obtain a noise source location point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve comprises: Performing audio analysis processing on the noise file to obtain the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve; The noise file is subjected to phase analysis processing based on the distance phase model to obtain the noise source position point diagram.
8. The method according to any one of claims 1 to 7, characterized in that The noise test result includes a corresponding dynamic load number, a position model of the hardware circuit board, a noise frequency model of the hardware circuit board, and a noise amplitude model of the hardware circuit board.
9. A hardware circuit board noise testing device, characterized in that: include: A first determination module is used to determine a scene to be tested, wherein the scene to be tested includes a hardware circuit board to be tested and a recording microphone, and the recording microphone is located at a preset vertical distance above the hardware circuit board; An adjustment module, used for adjusting peripheral accessories in the scene to be tested based on the hardware circuit board, wherein the peripheral accessories are used to assist the operation of the hardware circuit board; A recording module, used for controlling the hardware circuit board to be in a dynamic load operation state in the adjusted test scenario, and recording a noise file of the hardware circuit board in the dynamic load operation state, wherein the load in the hardware circuit board in the dynamic load operation state changes dynamically according to the working state and demand of the hardware circuit board; An analysis module is used to analyze and process the noise file to obtain a noise source location point diagram, an amplitude fast Fourier transform curve, and a frequency fast Fourier transform curve, wherein the noise source location point diagram is used to represent the position coordinates of the noise source in the hardware circuit board; The second determination module is used to determine the noise test result in the test scenario based on the noise source location point diagram, the amplitude fast Fourier transform curve and the frequency fast Fourier transform curve.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program is configured to execute the hardware circuit board noise testing method described in any one of claims 1 to 8 when running on a computer or a processor.
11. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the hardware circuit board noise testing method described in any one of claims 1 to 8.
12. A computer program product, characterized in that The invention comprises a computer program, which implements the hardware circuit board noise testing method as claimed in any one of claims 1 to 8 when being executed by a processor.
Citation Information
Cited By
Noise test information generation method and device, noise evaluation method and device, medium and product
CN119881464A
Board vibration capacitance detection equipment and method
CN120948889A
