An analog sound effect device and a control method
By designing analog sound effects devices, generating and processing analog sound effects waveforms, controlling the work of the on-board digital amplifier, and driving the speaker to play the engine simulated sound effects, the problem of electric vehicles lacking the sound of traditional fuel-powered vehicles and improving product competitiveness.
Patent Information
- Application Number
- CN202111146593.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-28
- Publication Date
- 2025-07-04
- Estimated Expiration
- 2041-09-28
AI Technical Summary
Electric vehicles lack the sound of traditional fuel-fueled vehicle engines. The existing in-vehicle entertainment system has poor simulation sound effects, and the external amplifier is large in size, complex in installation, and takes up space.
Design an analog sound effect device, including a processing module, a human-computer interaction module, an ignition information module, a speed acquisition module, a memory module and a digital amplifier module, generate and process an analog sound effect waveform by receiving selected analog sound effects types, control the work of the on-board digital amplifier, and drive the speaker to play the engine analog sound effects.
It realizes that electric vehicles simulate the sound effects of traditional fuel-powered vehicles engines, improves product competitiveness, and avoids the space occupation and installation complexity of external amplifiers.
Smart Images

Figure CN115871553B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of automotive electronics, and in particular, to an analog sound effect device and a control method therefor. Background Art
[0002] Electrified and unmanned electric vehicles are an inevitable trend in the future development of automobiles, and electric vehicles have been incorporated into China's development strategy. However, electric vehicles do not have the engines of traditional fuel vehicles, and the vehicle makes no sound when starting, lacking an auditory impact for vehicle owners who are used to the ignition and starting of traditional fuel vehicles. Moreover, the built-in power amplifiers of current in-vehicle entertainment systems generally use traditional analog power amplifiers with general load-carrying capacity, so the effect of playing analog sound effects is poor. If vehicle owners want to obtain a better auditory effect, they need to install an external power amplifier. Most of the external power amplifiers on the market are relatively large in size, need to be installed in the trunk, occupying a large amount of space, and the wiring is complex.
[0003] Therefore, a technical solution to solve the above disadvantages is urgently needed. Summary of the Invention
[0004] The present invention provides an analog sound effect device and a control method therefor, aiming to solve the defects in the prior art and realize that an electric vehicle simulates the engine sound effect of a traditional fuel vehicle, thereby improving the product competitiveness.
[0005] To achieve the above object, the technical solution adopted by the present invention is as follows:
[0006] On the one hand, the present invention provides an analog sound effect device, including:
[0007] A processing module, a human-computer interaction module, an ignition information module, a rotational speed acquisition module, a memory module, and a digital power amplifier module connected to the processing module, wherein the digital power amplifier module is further connected to a speaker module;
[0008] The human-computer interaction module is used to display analog sound effect types and receive a selected analog sound effect type;
[0009] The ignition information module is used to acquire a vehicle ignition signal;
[0010] The rotational speed acquisition module is used to acquire a rotational speed signal of a vehicle motor;
[0011] The memory module is used to store a sound sample library of analog sound effects;
[0012] The processing module is used to receive the selected analog sound effect type, ignition information, and current rotational speed information, read a corresponding sound sample file from the memory module, output an engine analog sound effect corresponding to the rotational speed, process the analog sound effect signal, and control the working state of the in-vehicle digital power amplifier;
[0013] The digital power amplifier module is used to amplify the analog sound effect according to the control signal output by the vehicle module;
[0014] The speaker module is used to play the engine analog sound effect.
[0015] Specifically, the processing module includes:
[0016] An index number determination unit, an index number calculation unit, a random number unit, and a reading unit connected to the index number determination unit. The reading unit is further connected to a mounting unit and a first amplitude unit, the first amplitude unit is connected to the second amplitude unit, and the second amplitude unit is connected to a control parameter unit;
[0017] The mounting unit is used to mount the memory module to the processing module;
[0018] The index number calculation unit is used to calculate the index number of the sound sample closest to the current motor speed as the initial index number;
[0019] The random number unit is used to generate a pseudo-random number that meets the preset conditions;
[0020] The index number determination unit is used to add the initial index number and the pseudo-random number to obtain the final index number;
[0021] The first amplitude unit is used to calculate the initial amplitude of the current sound sample;
[0022] The second amplitude unit is used to obtain the peak-to-peak value of the current sound sample according to the initial amplitude;
[0023] The control parameter unit is used to calculate a first control parameter and a second control parameter for controlling the digital power amplifier.
[0024] Specifically, the digital power amplifier module is formed by cascading a number of controlled and identical power units. The output of each power unit is the input of the next power unit, and the control signal of each power unit is a PWM waveform.
[0025] Specifically, the memory module is Flash.
[0026] On the other hand, the present invention provides a method for controlling an analog sound effect device, including:
[0027] Step 1: When it is detected that the vehicle is ignited, proceed to the next step;
[0028] Step 2: The system is powered on, the digital power amplifier is initialized, and the memory is mounted;
[0029] Step 3: Receive the selected analog sound effect type and generate the corresponding analog sound effect waveform;
[0030] Step 4: Process the analog sound effect waveform, control the working state of the in-vehicle digital power amplifier, and drive the speakers in the cockpit to play.
[0031] Specifically, the steps of mounting the memory in Step 2 are as follows:
[0032] Step 201: Establish corresponding node kernel descriptors for all data nodes in the Flash;
[0033] Step 202: Establish corresponding file kernel descriptors for each file in the Flash and establish a mutual connection relationship with the node kernel descriptors;
[0034] Step 203: Read the file names of all directory entries of each directory file in the Flash, calculate them according to the built-in algorithm, and insert the calculated values into the linked list of the file kernel descriptors;
[0035] Step 204: Add all the file kernel descriptors to the data structure hash table and save the hash table to the log node on the first valid erase block of the Falsh;
[0036] Step 205: Register the file system;
[0037] Step 206: Initialize the super block;
[0038] Step 207: Read the log node on the first valid erase block of the Falsh;
[0039] Step 208: Process the log node, establish the mapping relationships between data nodes, between data nodes and files, and between file names and their index node numbers, and complete the mounting of the memory.
[0040] Specifically, Step 3 includes:
[0041] Step 301: Establish a sound sample library in advance and establish corresponding index numbers;
[0042] Step 302: Obtain the current motor speed;
[0043] Step 303: Calculate the index number of the sound sample closest to the current motor speed as the initial index number;
[0044] Step 304: Obtain the final index number according to a preset rule, and the preset rule is: add the initial index number to a pseudo-random number with an average value of zero;
[0045] Step 305: Read the corresponding sound sample from the sound sample library according to the final index number to obtain the corresponding analog sound effect waveform.
[0046] Specifically, the range of the pseudo-random number is [-3, 3].
[0047] Specifically, the said Step 4 includes:
[0048] Step 401: Perform a weighted operation on the serial digital signal of the current sound sample to obtain the initial amplitude of the sound sample.
[0049] Step 402: Obtain the selected analog sound effect type and the volume value of the current analog sound effect.
[0050] Step 403: Calculate the peak-to-peak value of the current sound sample according to the selected analog sound effect type, volume value and the initial amplitude of the current sound sample.
[0051] Step 404: Determine the first control parameter and the second control parameter according to the peak-to-peak value and the power supply voltage of each power unit. The first control parameter is the number of control signals with a duty cycle of 100%, and the second control parameter is the duty cycle.
[0052] Step 405: Control the working state of the digital power amplifier with the first control parameter and the second control parameter.
[0053] Specifically, the first control parameter n = [Upp / U0], the second control parameter m = {Upp / U0}, U0 represents the power supply voltage of each power unit, Upp represents the peak-to-peak value of the current sound sample, [] represents taking the integer, and {} represents taking the remainder.
[0054] The beneficial effects of the present invention are as follows: By receiving the selected analog sound effect type, generating the corresponding analog sound effect waveform, processing the analog sound effect waveform, controlling the working state of the in-vehicle digital power amplifier, and driving the speakers in the cockpit to play, the present invention realizes the simulation of the engine sound effect of traditional fuel vehicles by electric vehicles, and improves the product competitiveness. Description of the Drawings
[0055] Figure 1 is the structural schematic diagram of the analog sound effect device of the present invention;
[0056] Figure 2 is the structural schematic diagram of the processing module of the present invention;
[0057] Figure 3 is the structural schematic diagram of the digital power amplifier module of the present invention;
[0058] Figure 4 is the flow schematic diagram of the control method of the analog sound effect device of the present invention. Detailed implementation manners
[0059] The following specifically describes the implementation manners of the present invention in conjunction with the accompanying drawings. The accompanying drawings are only for reference and illustration, and do not constitute a limitation on the protection scope of the invention patent of the present invention.
[0060] Embodiment 1
[0061] As Figure 1 shown, this embodiment provides an analog sound effect device based on a vehicle-mounted power amplifier, including:
[0062] A processing module, and a human-computer interaction module, an ignition information module, a rotation speed acquisition module, a memory module, and a digital power amplifier module connected to the processing module. The digital power amplifier module is further connected to a speaker module.
[0063] The human-computer interaction module is used to display the types of analog sound effects and receive the selected type of analog sound effect.
[0064] In this embodiment, the types of analog sound effects include ordinary engine sound effects, sports car engine sound effects, etc.
[0065] The ignition information module is used to obtain the vehicle ignition signal.
[0066] The rotation speed acquisition module is used to obtain the rotation speed signal of the vehicle motor.
[0067] The memory module is used to store the sound sample library of the analog sound effect.
[0068] The processing module is used to receive the selected type of analog sound effect, ignition information, and current rotation speed information, read the corresponding sound sample file from the memory module, output the engine analog sound effect corresponding to the rotation speed, process the analog sound effect signal, and control the working state of the vehicle-mounted digital power amplifier.
[0069] The digital power amplifier module is used to amplify the analog sound effect according to the control signal output by the vehicle module.
[0070] The speaker module is used to play the engine analog sound effect.
[0071] In this embodiment, the memory module is Flash.
[0072] As Figure 2 shown, in another embodiment of the present invention, the processing module includes:
[0073] An index number determination unit, an index number calculation unit connected to the index number determination unit, a random number unit, and a reading unit. The reading unit is further connected to a mounting unit and a first amplitude unit, the first amplitude unit is connected to the second amplitude unit, and the second amplitude unit is connected to a control parameter unit;
[0074] The mounting unit is configured to mount a memory module to a processing module;
[0075] The index number calculation unit is configured to calculate the index number of the sound sample closest to the current motor speed as the initial index number;
[0076] The random number unit is configured to generate a pseudo-random number that meets a preset condition;
[0077] The index number determination unit is configured to add the initial index number and the pseudo-random number to obtain a final index number;
[0078] The first amplitude unit is configured to calculate the initial amplitude of the current sound sample;
[0079] The second amplitude unit is configured to obtain the peak-to-peak value of the current sound sample according to the initial amplitude;
[0080] The control parameter unit is configured to calculate a first control parameter and a second control parameter for controlling a digital power amplifier.
[0081] As Figure 3 shown, in another embodiment of the present invention, the digital power amplifier module is formed by cascading a plurality of controlled and identical power units. The output of each power unit is the input of the next power unit, and the control signal of each power unit is a PWM waveform.
[0082] Embodiment 2
[0083] As Figure 4 shown, this embodiment provides a control method for an analog sound effect device based on an in-vehicle power amplifier, including:
[0084] Step 1: When it is detected that the vehicle is ignited, proceed to the next step.
[0085] In specific implementation, the ignition information of the vehicle can be obtained through the CAN bus, or the ignition information can be obtained by detecting the level value of the ignition hard wire.
[0086] Step 2: The system is powered on, the digital power amplifier is initialized, and the memory is mounted.
[0087] Since a variety of engine analog sound effects are built into the system, the capacity of the memory (Flash) is relatively large.
[0088] In this embodiment, the memory is Flash.
[0089] To mount the Falsh memory faster, the memory mounting in step 2 includes the following steps:
[0090] Step 201: Establish corresponding node kernel descriptors for all data nodes in Flash.
[0091] Step 202: Establish corresponding file kernel descriptors for each file in Flash, and establish a mutual connection relationship with the node kernel descriptors.
[0092] Step 203: Read the file names of all directory entries of each directory file in Flash, calculate the file names according to a built-in algorithm, and insert the calculated values into the linked list of the file kernel descriptors.
[0093] Step 204: Add all the file kernel descriptors to a data structure hash table, and save the hash table to the log node on the first valid erasure block of Falsh.
[0094] Step 205: Register the file system.
[0095] In this embodiment, the file system is jffs2.
[0096] Step 206: Initialize the super block.
[0097] Step 207: Read the log node on the first valid erasure block of the Falsh.
[0098] Step 208: Process the log node, establish mapping relationships between data nodes, between data nodes and files, and between file names and their inode numbers, and complete the memory mounting.
[0099] The memory mounting method provided in this embodiment does not need to traverse the entire Flash, so the mounting speed is greatly improved.
[0100] Step 3: Receive the selected simulated sound effect type and generate a corresponding simulated sound effect waveform.
[0101] In this embodiment, the simulated sound effect types include ordinary engine sound effects, sports car engine sound effects, etc. The sports car engine sound effects can include different sports car models, such as Ferrari F1, GT-R, etc.
[0102] In specific implementation, a human-computer interaction interface can be set up for users to select various built-in simulated sound effects.
[0103] In this embodiment, step 3 includes:
[0104] Step 301: Pre - establish a sound sample library and establish corresponding index numbers.
[0105] The sound sample library is used to store sound samples corresponding to various engine speeds, and can be obtained by recording and processing the sounds of engines of various actual vehicle models at different speeds.
[0106] Step 302: Obtain the current motor speed.
[0107] In specific implementation, the current motor speed can be obtained through the vehicle CAN bus.
[0108] Step 303: Calculate the index number of the sound sample closest to the current motor speed as the initial index number.
[0109] Step 304: Obtain the final index number according to a preset rule, and the preset rule is: add the initial index number to a pseudo - random number r with an average value of zero.
[0110] In this embodiment, the range of the pseudo - random number r is [- 3, 3].
[0111] In this embodiment, by adding the pseudo - random number r, when the motor speed changes slowly, the simulated sound effect can be made more natural.
[0112] Step 305: Read the corresponding sound sample from the sound sample library according to the final index number to obtain the corresponding simulated sound effect waveform.
[0113] According to the current speed signal, discrete sound samples are connected to form the simulated sound effect waveform.
[0114] Step 4: Process the simulated sound effect waveform, control the working state of the in - vehicle digital power amplifier, and drive the speakers in the cockpit to play.
[0115] In this embodiment, Step 4 includes:
[0116] Step 401: Perform a weighted operation on the serial digital signal of the current sound sample to obtain the initial amplitude of the sound sample.
[0117] Step 402: Obtain the selected simulated sound effect type and the volume value of the current simulated sound effect.
[0118] Step 403: Calculate the peak - to - peak value of the current sound sample according to the selected simulated sound effect type, volume value, and the initial amplitude of the current sound sample.
[0119] Step 404: Determine a first control parameter n and a second control parameter m according to the peak-to-peak value and the supply voltage of each power unit. The first control parameter is the number of control signals with a duty cycle of 100%, and the second control parameter is the duty cycle m.
[0120] In this embodiment, n = [Upp / U0], m = {Upp / U0}, where U0 represents the supply voltage of each power unit, Upp represents the peak-to-peak value of the current sound sample, [] represents rounding down, and {} represents taking the remainder.
[0121] Step 405: Control the working state of the digital power amplifier with the first control parameter n and the second control parameter m.
[0122] The above-disclosed are only the preferred embodiments of the present invention, and the scope of the patent rights of the present invention cannot be limited thereby. Therefore, equivalent changes made according to the scope of the patent application of the present invention still fall within the scope covered by the present invention.
Claims
1. An analog sound effect device, characterized in that, Including: A processing module, a human-machine interaction module, an ignition information module, a rotational speed acquisition module, a memory module, and a digital power amplifier module connected to the processing module. The digital power amplifier module is further connected to a speaker module; The human-machine interaction module is used to display analog sound effect types and receive a selected analog sound effect type; The ignition information module is used to obtain a vehicle ignition signal; The rotational speed acquisition module is used to obtain a rotational speed signal of a vehicle motor; The memory module is used to store a sound sample library of analog sound effects; The processing module is used to receive the selected analog sound effect type, ignition information, and current rotational speed information, read a corresponding sound sample file from the memory module, output an engine analog sound effect corresponding to the rotational speed, process the analog sound effect signal, and control the working state of an in-vehicle digital power amplifier; The digital power amplifier module is used to amplify the analog sound effect according to a control signal output by a vehicle module; The speaker module is used to play the engine analog sound effect; The processing module includes: an index number determination unit, an index number calculation unit, a random number unit, and a reading unit connected to the index number determination unit. The reading unit is further connected to a mounting unit and a first amplitude unit. The first amplitude unit is connected to a second amplitude unit, and the second amplitude unit is connected to a control parameter unit; The mounting unit is used to mount the memory module to the processing module; The index number calculation unit is used to calculate the index number of the sound sample closest to the current motor rotational speed as an initial index number; The random number unit is used to generate a pseudo-random number that meets a preset condition; The index number determination unit is used to add the initial index number and the pseudo-random number to obtain a final index number; The first amplitude unit is used to calculate the initial amplitude of the current sound sample; The second amplitude unit is used to obtain the peak-to-peak value of the current sound sample according to the initial amplitude; The control parameter unit is used to calculate a first control parameter and a second control parameter for controlling the digital power amplifier.
2. The analog sound effect device according to claim 1, characterized in that, The digital power amplifier module is formed by cascading a plurality of controlled and identical power units. The output of each power unit is the input of the next power unit, and the control signal of each power unit is a PWM waveform.
3. The analog sound effect device according to claim 1, wherein The memory module is Flash.
4. A method for controlling an analog sound effect device, characterized in that, Including: Step 1: After detecting vehicle ignition, proceed to the next step; Step 2: When the system is powered on, initialize the digital power amplifier and mount the memory; Step 3: Receive the selected analog sound effect type and generate a corresponding analog sound effect waveform; Step 4: Process the analog sound effect waveform, control the working state of the in-vehicle digital power amplifier, and drive the speaker in the cockpit to play; The said Step 3 includes: Step 301: Establish a sound sample library in advance and establish corresponding index numbers; Step 302: Obtain the current motor rotational speed; Step 303: Calculate the index number of the sound sample closest to the current motor rotational speed as an initial index number; Step 304: Obtain a final index number according to a preset rule. The preset rule is: add the initial index number and a pseudo-random number with an average value of zero; Step 305: Read the corresponding sound sample from the sound sample library according to the final index number to obtain the corresponding analog sound effect waveform.
5. The method for controlling an analog sound effect device according to claim 4, wherein The steps of mounting the memory in step 2 are as follows: Step 201: Establish corresponding node kernel descriptors for all data nodes in the Flash. Step 202: Establish corresponding file kernel descriptors for each file in the Flash and establish a mutual connection relationship with the node kernel descriptors. Step 203: Read the file names of all directory entries of each directory file in the Flash, calculate the read file names according to the built-in algorithm, and insert the calculated values into the linked list of the file kernel descriptors. Step 204: Add all the file kernel descriptors to the data structure hash table and save the hash table to the log node on the first valid erase block of the Falsh. Step 205: Register the file system. Step 206: Initialize the super block. Step 207: Read the log node on the first valid erase block of the Falsh. Step 208: Process the log node to establish the mapping relationships between data nodes, between data nodes and files, and between file names and their inode numbers, thus completing the mounting of the memory.
6. The control method of the simulated sound effect device according to claim 4, characterized in that, Specifically, the range of the pseudo-random number is [-3, 3].
7. The method for controlling an analog sound effect device according to claim 4, wherein Step 4 includes: Step 401: Perform a weighted operation on the serial digital signal of the current sound sample to obtain the initial amplitude of the sound sample. Step 402: Obtain the selected analog sound effect type and the volume value of the current analog sound effect. Step 403: Calculate the peak-to-peak value of the current sound sample according to the selected analog sound effect type, volume value and the initial amplitude of the current sound sample. Step 404: Determine the first control parameter and the second control parameter according to the peak-to-peak value and the supply voltage of each power unit. The first control parameter is the number of control signals with a duty cycle of 100%, and the second control parameter is the duty cycle. Step 405: Control the working state of the digital power amplifier with the first control parameter and the second control parameter.
8. The method for controlling an analog sound effect device according to claim 7, wherein The first control parameter n = [Upp / U0], and the second control parameter m = {Upp / U0}, where U0 represents the supply voltage of each power unit, Upp represents the peak-to-peak value of the current sound sample, [] represents taking the integer part, and {} represents taking the remainder.
Citation Information
Patent Citations
Engine simulation sound forming device
JP2005128262A
Simulation sound generation apparatus for car and simulation sound generation method for car using same
KR101487474B1