Electric vehicle sound quality control method, system and equipment, medium and vehicle

By obtaining the real-time accelerator pedal opening signal and virtual speed of the electric vehicle, calculating the sound gain and frequency, and controlling the speaker to make sound, the problem that electric vehicles cannot simulate the sound of traditional internal combustion engines during idle speed and loose-stepping on the accelerator in situ, improving The fun and motivation of the driving experience.

CN119261773APending Publication Date: 2025-01-07GUANGZHOU AUTOMOBILE GROUP CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

Application Number
CN202411209446.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-29
Publication Date
2025-01-07

AI Technical Summary

Technical Problem

Electric vehicles cannot simulate the passionate and surging sounds of traditional internal combustion engine sports cars during idle working conditions and loose throttle working conditions, resulting in a boring driving experience and lack of power feedback.

Method used

By obtaining the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated, calculating the sound gain and frequency, controlling the amplifier system to drive the car speakers to make sound, simulating the sound of the engine, and enhancing the user's interactive experience.

Benefits of technology

Under idle speed and loose throttle operation, the sound of the traditional internal combustion engine was successfully simulated, making the driving experience of electric vehicles more interesting and powerful, and improving the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119261773A_ABST
    Figure CN119261773A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of automobile intelligent cabins, in particular to an electric vehicle sound quality control method, system and device, a medium and a vehicle. According to a real-time accelerator pedal opening signal and a real-time virtual rotating speed, the sound gain of a to-be-simulated engine corresponding to first simulation sound at the current moment is calculated, and the number of cylinders of the to-be-simulated engine is obtained; and calculating the frequency of the first simulation sound according to the cylinder number and the real-time virtual rotating speed, calculating a first simulation sound signal of the first simulation sound according to the frequency and the sound gain, and controlling the power amplification system to drive the vehicle-mounted loudspeaker to produce sound according to the first simulation sound signal. According to the method and the device, the sound of the engine is simulated by using the real-time accelerator pedal opening signal of the electric vehicle at the current moment and the real-time virtual rotating speed of the engine to be simulated, so that the electric vehicle can simulate the sound of the engine in situ, the interactive experience feeling of a user is improved, and the interestingness of the intelligent cabin is increased.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile intelligent cockpits, and in particular to a method, system, device, medium and vehicle for controlling the sound quality of an electric vehicle. Background Art

[0002] As vehicles become more and more intelligent, users' demand for smart cockpits is gradually increasing. Among them, "hearing" sense, as an important component of the five senses of human beings, directly affects the user's driving experience. At present, the interior of electric vehicles is very quiet compared to fuel vehicles. However, compared with the dynamic and surging sound of the engines of traditional muscle sports cars, there is almost no sound feedback during the driving process of electric vehicles, which can easily make the driver's driving more boring. The lack of the sound feedback of the surging engine power in the past cannot arouse the driver's interest in driving the vehicle, and reduces the user experience.

[0003] The active sound technology, which is currently more widely used, emits electronic simulated sounds through the car's speakers, simulating the sound of a traditional sports car during the acceleration process, increasing the sound feedback of power and enhancing driving pleasure. However, the current active sound technology is mainly aimed at the acceleration sound during driving, but for idling conditions, conditions such as releasing the accelerator in place, etc., it is unable to simulate the passionate sound of a traditional internal combustion engine sports car.

[0004] Therefore, how to simulate the passionate sound of a traditional internal combustion engine under idling conditions and when the accelerator is released becomes an urgent problem to be solved. Summary of the invention

[0005] Based on this, it is necessary to provide a method, system, equipment, medium and vehicle for controlling the sound quality of electric vehicles in response to the above technical problems, so as to solve the problem that the passionate sound of traditional internal combustion engine sports cars cannot be simulated under idling conditions and when the accelerator is released.

[0006] A first aspect of an embodiment of the present application provides a method for controlling the sound quality of an electric vehicle, comprising:

[0007] Obtaining a real-time accelerator pedal opening signal of the electric vehicle and a real-time virtual speed of the engine to be simulated at the current moment;

[0008] Calculating a sound gain of a first simulated sound corresponding to the simulated engine at the current moment according to the real-time accelerator pedal opening signal and the real-time virtual speed;

[0009] Acquiring the number of cylinders of the engine to be simulated, and calculating the frequency of the first simulated sound according to the number of cylinders and the real-time virtual speed;

[0010] A first analog sound signal of the first analog sound is calculated according to the frequency and the sound gain, and a power amplifier system is controlled to drive a vehicle-mounted speaker to produce sound according to the first analog sound signal.

[0011] A second aspect of an embodiment of the present application provides a control system for electric vehicle sound quality, including:

[0012] An acquisition module, used to acquire the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated at the current moment;

[0013] A first calculation module, used for calculating a sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment according to the real-time accelerator pedal opening signal and the real-time virtual speed;

[0014] A second calculation module, used for obtaining the number of cylinders of the engine to be simulated, and calculating the frequency of the first simulated sound according to the number of cylinders and the real-time virtual speed;

[0015] The control module is used to calculate a first analog sound signal of the first analog sound according to the frequency and the sound gain, and control the power amplifier system to drive the vehicle-mounted speaker to produce sound according to the first analog sound signal.

[0016] A third aspect of an embodiment of the present application provides a computer device, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the processor implements the electric vehicle sound quality control method as described in any one of the first aspects when executing the computer program.

[0017] A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method for controlling the sound quality of an electric vehicle as described in any one of the first aspects is implemented.

[0018] A fifth aspect of an embodiment of the present application provides a vehicle, comprising a control system for electric vehicle sound quality.

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

[0020] The real-time accelerator pedal opening signal of the electric vehicle at the current moment and the real-time virtual speed of the engine to be simulated are obtained, and the sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment is calculated according to the real-time accelerator pedal opening signal and the real-time virtual speed, and the number of cylinders of the engine to be simulated is obtained, and the frequency of the first simulated sound is calculated according to the number of cylinders and the real-time virtual speed, and the first simulated sound signal of the first simulated sound is calculated according to the frequency and the sound gain, and the power amplifier system is controlled to drive the vehicle speaker to make a sound according to the first simulated sound signal. The present application uses the real-time accelerator pedal opening signal of the electric vehicle at the current moment and the real-time virtual speed of the engine to be simulated to simulate the sound of the engine, so that the electric vehicle can simulate the sound of the engine in situ, which improves the user's interactive experience and increases the fun of the smart cockpit. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0022] Figure 1 is a flow chart of a method for controlling the sound quality of an electric vehicle provided in Embodiment 1 of the present invention;

[0023] Figure 2 is a flow chart of a method for controlling the sound quality of an electric vehicle provided in Embodiment 2 of the present invention;

[0024] Figure 3 This is a structural block diagram of a device for controlling the sound quality of an electric vehicle provided in Embodiment 3 of the present application;

[0025] Figure 4 It is a structural schematic diagram of a computer device provided in Embodiment 4 of the present application;

[0026] Figure 5 It is a schematic diagram of a vehicle provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

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

[0028] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0029] It should also be understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0030] As used in the present specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]", depending on the context.

[0031] In addition, in the description of the present specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0032] References to "one embodiment" or "some embodiments" etc. described in the present specification mean that one or more embodiments of the present invention include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0033] It should be understood that the order of execution of the steps in the following embodiments does not imply a precedence of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0034] In order to illustrate the technical solution of the present invention, the following is described through specific embodiments.

[0035] See also Figure 1 , is a flow chart of a method for controlling the sound quality of an electric vehicle provided in the first embodiment of the present invention, such as Figure 1As shown, the method for controlling the sound quality of an electric vehicle may include the following steps.

[0036] S101: Obtaining a real-time accelerator pedal opening signal of the electric vehicle and a real-time virtual speed of the engine to be simulated at the current moment.

[0037] In step S101, the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated are obtained at the current moment, wherein the real-time accelerator pedal opening signal of the electric vehicle is the acceleration condition of the electric vehicle, that is, the acceleration size of the electric vehicle, and the real-time virtual speed of the engine to be simulated is the speed of the engine output corresponding to the torque when the electric vehicle simulates the engine.

[0038] In this embodiment, when obtaining the real-time accelerator pedal opening signal of the electric vehicle at the current moment, it can be collected according to the accelerator pedal opening signal sensor, and the real-time virtual speed of the engine to be simulated is calculated based on the real-time accelerator pedal opening signal.

[0039] In this embodiment, the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated are obtained so as to simulate the sound of the engine according to the acceleration of the electric vehicle and the speed corresponding to the torque to be output, so that different sounds produced by the engine can be simulated under different acceleration conditions and different speed conditions.

[0040] See also Figure 2 , is a flow chart of a method for controlling the sound quality of an electric vehicle provided in Embodiment 2 of the present invention, such as Figure 2 As shown, the calculation process of the real-time virtual speed in step S101 includes:

[0041] S201: Acquire the initial virtual speed of the engine to be simulated at the last moment, and the corresponding relationship between the virtual speed of the electric vehicle at the last moment, the accelerator pedal opening signal at the current moment, and the speed acceleration of the virtual speed of the engine at the last moment;

[0042] S202: determining a target speed acceleration according to the initial virtual speed and the real-time accelerator pedal opening signal in combination with a corresponding relationship;

[0043] S203: Calculate the real-time virtual speed according to the target speed acceleration and the initial virtual speed.

[0044] In this embodiment, the initial virtual speed of the engine to be simulated at the last moment, and the corresponding relationship between the virtual speed of the electric vehicle at the last moment, the accelerator pedal opening signal at the current moment, and the speed acceleration of the virtual speed of the engine at the last moment are obtained, wherein the initial virtual speed of the engine to be simulated at the last moment is the speed of the engine output corresponding to the torque simulated at the last moment. The corresponding relationship between the virtual speed of the electric vehicle at the last moment, the accelerator pedal opening signal at the current moment, and the speed acceleration of the virtual speed of the engine at the last moment, that is, different virtual speeds of the electric vehicle at the last moment and different accelerator pedal opening signals at the current moment correspond to different speed accelerations of the virtual speed of the engine at the last moment.

[0045] It should be noted that the corresponding relationship is a predetermined mapping relationship between the virtual speed of the electric vehicle at the previous moment, the accelerator pedal opening signal at the current moment and the speed acceleration of the virtual speed of the engine at the previous moment, which can be determined by looking up a table.

[0046] According to the initial virtual speed and the real-time accelerator pedal opening signal, combined with the corresponding relationship, the target speed acceleration is determined, wherein the target speed acceleration is the speed acceleration based on the initial virtual speed at the previous moment, so as to calculate the virtual speed at the current moment according to the initial virtual speed at the previous moment and the corresponding speed acceleration.

[0047] Optionally, the target speed acceleration includes a first target acceleration for accelerating torque driving of the engine to be simulated and a second target acceleration for hindering accelerating torque driving;

[0048] The calculation formula of real-time virtual speed is as follows:

[0049] RPM t =RPM t0 +(a k1 +a k2 )*dt

[0050] Among them, RPM t is the real-time virtual speed, that is, the virtual speed of the engine to be simulated at the current moment, is the initial virtual speed, i.e. the virtual speed of the engine to be simulated at the last moment, a k1 is the first target acceleration, i.e. the acceleration of the acceleration torque driven by the engine to be simulated, a k2 is the second target acceleration, that is, the speed acceleration driven by the simulated resistance hindering the acceleration torque. The first target acceleration is in opposite directions to the second target acceleration. dt is the time interval between the current moment and the previous moment.

[0051] In this embodiment, the magnitude of the first target acceleration and the second target acceleration are associated with the virtual speed of the engine to be simulated at the previous moment and the magnitude of the accelerator pedal opening signal at the current moment, and can be adjusted according to the actual vehicle debugging effect, with the purpose of ultimately obtaining the desired electronic simulation sound. For example, if the accelerator pedal opening signal is 0.9, 0, 0.9, 0, 0.9, 0 for a period of time, the speed acceleration at the corresponding moment changes with time as follows: increase, decrease, increase, decrease, increase, decrease. The corresponding real-time virtual speed changes are also increase, decrease, increase, decrease, increase, decrease.

[0052] S102: Calculating a sound gain of a first simulated sound corresponding to the engine to be simulated at the current moment according to the real-time accelerator pedal opening signal and the real-time virtual speed.

[0053] In step S102, the first simulated sound is the sound of the engine to be simulated under the corresponding real-time accelerator pedal opening signal and the real-time virtual speed, and the sound gain is the multiple of the intensity increase of the first simulated sound.

[0054] In this embodiment, the sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment is calculated based on the real-time accelerator pedal opening signal and the real-time virtual speed. That is, based on the mapping relationship between the real-time accelerator pedal opening signal, the real-time virtual speed, and the sound gain corresponding to the first simulated sound of the engine to be simulated, the sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment is calculated so as to determine the amplitude of the simulated sound according to the corresponding sound gain.

[0055] It should be noted that the main associated parameters of the sound gain are the real-time accelerator pedal opening signal and the real-time virtual speed, and the mapping relationship between them can be linearly mapped by linear fitting. Other methods can also be used for hard mapping, which is not limited in this embodiment.

[0056] The sound gain is calculated as follows:

[0057] Gain t =a*RPM t +b*k t

[0058] Among them, Gain t is the sound gain, RPM t is the real-time virtual speed, k t is the real-time accelerator pedal opening signal, a and b are gain parameters. The gain parameters can be determined according to the actual rules of traditional fuel sports cars and can be adjusted according to the actual vehicle debugging results.

[0059] In this embodiment, the gain parameters are adjusted according to the actual vehicle debugging effect. For example, if a is 0.3 and b is 0.7, the subjective auditory effect of the corresponding simulated sound is better, then a is determined to be 0.3 and b is determined to be 0.7. Otherwise, the values ​​of a and b are adjusted until the subjective auditory effect of the corresponding simulated sound meets the requirements.

[0060] In another embodiment, the calculation formula of the sound gain may also be as follows:

[0061] Gain t =a*RPM t +b*k t +c

[0062] Among them, Gain t is the sound gain, RPM t is the real-time virtual speed, k t is the real-time accelerator pedal opening signal, a and b are gain parameters, and c is a constant. Among them, the gain parameters and constants can be determined according to the actual rules of traditional fuel sports cars and can be adjusted according to the actual vehicle debugging results.

[0063] In this embodiment, the gain parameters and constants are adjusted according to the actual vehicle debugging effect. For example, if a is 0.3, b is 0.7, and c is 50, the subjective auditory effect of the corresponding simulated sound is better, then a is determined to be 0.3, b is determined to be 0.7, and c is determined to be 50. Otherwise, the values ​​of a, b, and c are adjusted until the subjective auditory effect of the corresponding simulated sound meets the requirements.

[0064] S103: Obtain the number of cylinders of the engine to be simulated, and calculate the frequency of the first simulated sound according to the number of cylinders and the real-time virtual rotation speed.

[0065] In step S103, the number of cylinders of the engine to be simulated is obtained so as to determine the power of the engine to be simulated according to the corresponding number of cylinders, and the frequency of the first simulated sound at the corresponding power is calculated according to the number of cylinders and the real-time virtual speed.

[0066] In this embodiment, the number of cylinders of the engine to be simulated is obtained, and the frequency of the first simulated sound is calculated according to the number of cylinders and the real-time virtual speed, wherein the frequency calculation formula is as follows:

[0067]

[0068] Where f1 is the frequency of the first simulated sound, RPM t is the real-time virtual speed at the current moment, n is the number of cylinders of the engine to be simulated, and n can be 3, 4, 5, 6, 8, 10, 12, etc.

[0069] In this embodiment, the corresponding frequency is calculated in order to generate a simulated sound signal at the corresponding frequency, so that the frequency of the simulated sound signal is equal to the frequency of the sound signal generated by the engine to be simulated, thereby improving the user's interactive experience.

[0070] S104: Calculate a first analog sound signal of the first analog sound according to the frequency and the sound gain, and control the power amplifier system to drive the vehicle-mounted speaker to produce sound according to the first analog sound signal.

[0071] In step S104, the sound gain is associated with the amplitude of the sound signal, and the frequency is associated with the period of the sound signal. Therefore, the first analog sound signal of the first analog sound can be calculated based on the frequency and the sound gain, and the power amplifier system is controlled to drive the vehicle speaker to make sound based on the first analog sound signal.

[0072] In this embodiment, a first analog sound signal of the first analog sound is calculated according to the frequency and the sound gain, wherein the calculation formula of the first analog sound signal is as follows:

[0073] Sound1=A0*Gain t *sin(2*π*f1*t)

[0074] Among them, Sound1 is the first analog sound signal, A0 is the initial amplitude, Gain t is the sound gain, f1 is the frequency of the first simulation, and t is the duration, that is, the time from the current moment to the next moment. Among them, A0 is a constant, and the waveform of the first simulated sound signal is a sine waveform.

[0075] In this embodiment, the first analog sound signal is input into the audio processor, the audio processor processes the first analog sound signal, transmits the processed audio signal to the power amplifier system, performs digital-to-analog conversion on the processed audio signal through the power amplifier system to obtain a converted audio signal, transmits the converted audio signal to the vehicle speaker through the power amplifier system, and plays the converted audio signal through the vehicle speaker. Since the speaker is a transducer device that converts an electrical signal into an acoustic signal, the converted audio signal amplified by the power amplifier can be converted into an acoustic signal and emitted by the vehicle speaker, thereby realizing audio playback. Among them, the number of vehicle speakers can be set according to actual needs, for example, it can be two or more, and the embodiment of the present application does not limit this.

[0076] The real-time accelerator pedal opening signal of the electric vehicle at the current moment and the real-time virtual speed of the engine to be simulated are obtained, and the sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment is calculated according to the real-time accelerator pedal opening signal and the real-time virtual speed, and the number of cylinders of the engine to be simulated is obtained, and the frequency of the first simulated sound is calculated according to the number of cylinders and the real-time virtual speed, and the first simulated sound signal of the first simulated sound is calculated according to the frequency and the sound gain, and the power amplifier system is controlled to drive the vehicle speaker to make a sound according to the first simulated sound signal. The present application uses the real-time accelerator pedal opening signal of the electric vehicle at the current moment and the real-time virtual speed of the engine to be simulated to simulate the sound of the engine, so that the electric vehicle can simulate the sound of the engine in situ, which improves the user's interactive experience and increases the fun of the smart cockpit.

[0077] Optionally, before obtaining the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated at the current moment, the method further includes:

[0078] Obtain the accelerator pedal opening signal of the electric vehicle at each moment in the history;

[0079] Determine whether the accelerator pedal opening signal of the electric vehicle is zero at every moment;

[0080] If the accelerator pedal opening signal of the electric vehicle is not zero at every moment, the step of obtaining the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated is performed.

[0081] In this embodiment, the accelerator pedal opening signal of the electric vehicle at each moment in the historical moment is obtained, so as to judge the working condition of the electric vehicle according to the accelerator pedal opening signal of the electric vehicle at each moment, wherein the working condition of the electric vehicle includes the idling working condition and the non-idling working condition, wherein the non-idling working condition is the working condition of releasing the accelerator pedal in situ. When judging the working condition of the electric vehicle, it is judged whether the accelerator pedal opening signal of the electric vehicle at each moment is zero. If the accelerator pedal opening signal of the electric vehicle at each moment is zero, it is considered that the working condition of the electric vehicle is the idling working condition, otherwise, it is considered that the working condition of the electric vehicle is the non-idling working condition.

[0082] If the accelerator pedal opening signal of the electric vehicle is not zero at all times, that is, in a non-idling condition, the step of obtaining the real-time accelerator pedal opening signal of the electric vehicle at the current moment and the real-time virtual speed of the engine to be simulated is performed. According to the real-time accelerator pedal opening signal and the real-time virtual speed, the sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment is calculated, the number of cylinders of the engine to be simulated is obtained, the frequency of the first simulated sound is calculated according to the number of cylinders and the real-time virtual speed, the first simulated sound signal of the first simulated sound is calculated according to the frequency and the sound gain, and the power amplifier system is controlled to drive the vehicle-mounted speaker to sound according to the first simulated sound signal.

[0083] Optionally, after determining whether the accelerator pedal opening signal of the electric vehicle is zero at each moment, the method further includes:

[0084] If the accelerator pedal opening signal of the electric vehicle is zero at every moment, a preset virtual speed and a preset sound gain are obtained;

[0085] According to the preset virtual speed and the preset sound gain, a simulated sound signal of the second simulated sound is calculated, and according to the simulated sound signal of the second simulated sound, the power amplifier system is controlled to drive the vehicle-mounted speaker to produce sound.

[0086] In this embodiment, if the accelerator pedal opening signal of the electric vehicle is zero at every moment, that is, the working condition of the electric vehicle is an idle condition, and the accelerator pedal is not stepped on, the simulated engine sound should be a fixed sound or a sound with little fluctuation. Therefore, the preset virtual speed and the preset sound gain are obtained, that is, in the idle condition, the virtual speed and the sound gain are set to fixed values, and the simulated sound signal of the second simulated sound is calculated according to the preset virtual speed and the preset sound gain. According to the simulated sound signal of the second simulated sound, the power amplifier system is controlled to drive the vehicle speaker to sound, wherein the calculation formula of the simulated sound signal of the second simulated sound is as follows:

[0087] Sound2=A0*Gain*sin(2*π*f2*t)

[0088]

[0089] Among them, Sound2 is the second simulated sound signal, A0 is the initial amplitude, Gain is the preset sound gain, f2 is the frequency of the second simulated sound, RPM is the preset virtual speed, m is the number of cylinders of the engine to be simulated, and m can be 3, 4, 5, 6, 8, 10, 12, etc. t is the duration, that is, the length of time from the current moment to the next moment.

[0090] It should be noted that the preset virtual speed may be set to the idle speed of the engine, such as 800 r / min, and the preset sound gain may be set to a constant.

[0091] In another embodiment, under the idle condition, when obtaining the preset virtual speed, a virtual speed sequence with a small range of fluctuations can also be obtained, such as the difference between each virtual speed is less than 10r / min, and at different times, the preset virtual speeds are different, and the preset virtual speeds at different times have a small range of fluctuations. According to each virtual speed in the virtual speed sequence, the analog sound signal corresponding to the corresponding virtual speed is calculated, and under the idle condition, the analog sound signal with a small range of fluctuations is generated at different times. For example, under the idle condition, the preset virtual speed at the previous moment is set to 800r / min, the preset virtual speed at the current moment is set to 803r / min, and the preset virtual speed at the next moment is set to 805r / min, etc., then the analog sound signal calculated at the previous moment is the first sound signal, the analog sound signal calculated at the current moment is the second sound signal, and the analog sound signal calculated at the next moment is the third sound signal. At the previous moment, the current moment and the next moment respectively control the power amplifier system to drive the vehicle speaker to sound according to the first sound signal, the second sound signal, and the third sound signal.

[0092] The second analog sound signal is input into the audio processor, the audio processor processes the second analog sound signal, transmits the processed audio signal to the power amplifier system, performs digital-to-analog conversion on the processed audio signal through the power amplifier system to obtain a converted audio signal, transmits the converted audio signal to the vehicle speaker through the power amplifier system, and plays the converted audio signal through the vehicle speaker. Since the speaker is a transducer device that converts an electrical signal into an acoustic signal, the converted audio signal amplified by the power amplifier can be converted into an acoustic signal and emitted by the vehicle speaker, thereby realizing audio playback. Among them, the number of vehicle speakers can be set according to actual needs, for example, it can be two or more, and the embodiments of the present application do not limit this.

[0093] See also Figure 3 , Figure 3 The structure block diagram of a device for controlling the sound quality of an electric vehicle provided in the third embodiment of the present application is shown. For the sake of convenience, only the part related to the embodiment of the present application is shown. Figure 3 The control device 30 includes: an acquisition module 31, a first calculation module 32, a second calculation module 33, and a control module 34.

[0094] The acquisition module 31 is used to acquire the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated at the current moment.

[0095] The first calculation module 32 is used to calculate the sound gain of the first simulated sound corresponding to the engine to be simulated at the current moment according to the real-time accelerator pedal opening signal and the real-time virtual speed.

[0096] The second calculation module 33 is used to obtain the number of cylinders of the engine to be simulated, and calculate the frequency of the first simulated sound according to the number of cylinders and the real-time virtual rotation speed.

[0097] The control module 34 is used to calculate a first analog sound signal of the first analog sound according to the frequency and the sound gain, and control the power amplifier system to drive the vehicle-mounted speaker to produce sound according to the first analog sound signal.

[0098] Optionally, the acquisition module 31 includes:

[0099] The acquisition unit is used to acquire the initial virtual speed of the engine to be simulated at the last moment, the virtual speed of the electric vehicle at the last moment, the corresponding relationship between the accelerator pedal opening signal at the current moment and the speed acceleration of the virtual speed of the engine at the last moment.

[0100] The determination unit is used to determine the target speed acceleration according to the initial virtual speed and the real-time accelerator pedal opening signal in combination with the corresponding relationship.

[0101] The calculation unit is used to calculate the real-time virtual speed according to the target speed acceleration and the initial virtual speed.

[0102] Optionally, the control device 30 further includes:

[0103] The second acquisition module is used to obtain the accelerator pedal opening signal of the electric vehicle at each moment in the historical moment.

[0104] The judgment module is used to judge whether the accelerator pedal opening signal of the electric vehicle is zero at every moment.

[0105] The execution module is used for executing the step of obtaining the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated at the current moment if the accelerator pedal opening signal of the electric vehicle is not zero at each moment.

[0106] Optionally, the control device 30 further includes:

[0107] The third acquisition module is used to acquire a preset virtual speed and a preset sound gain if the accelerator pedal opening signal of the electric vehicle is zero at any moment.

[0108] The second control module is used to calculate the simulated sound signal of the second simulated sound according to the preset virtual speed and the preset sound gain, and control the power amplifier system to drive the vehicle speaker to produce sound according to the simulated sound signal of the second simulated sound.

[0109] It should be noted that the information interaction, execution process and other contents between the above-mentioned modules are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0110] Figure 4 This is a schematic diagram of the structure of a computer device provided in Example 4 of the present application. Figure 4 As shown, the computer device of this embodiment includes: at least one processor ( Figure 4 Only one is shown), a memory, and a computer program stored in the memory and executable on at least one processor, and when the processor executes the computer program, the steps in any of the above-mentioned electric vehicle sound quality control method embodiments are implemented.

[0111] The computer device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that Figure 4 This is merely an example of a computer device and does not constitute a limitation on the computer device. The computer device may include more or fewer components than those shown in the figure, or a combination of certain components, or different components. For example, it may also include a network interface, a display screen, and an input device.

[0112] The processor may be a CPU, or other general-purpose processors, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0113] The memory includes a readable storage medium, an internal memory, etc., wherein the internal memory may be the memory of a computer device, and the internal memory provides an environment for the operation of an operating system and computer-readable instructions in the readable storage medium. The readable storage medium may be a hard disk of a computer device, and in other embodiments may also be an external storage device of a computer device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on a computer device. Further, the memory may also include both an internal storage unit of a computer device and an external storage device. The memory is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as program codes of computer programs, etc. The memory may also be used to temporarily store data that has been output or is to be output.

[0114] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device is divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into a processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned device can refer to the corresponding process in the above-mentioned method embodiment, which will not be repeated here. 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 such understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned method embodiment when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device capable of carrying computer program code, recording medium, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0115] The present application implements all or part of the processes in the above-mentioned embodiment method, and may also be completed through a computer program product. When the computer program product runs on a computer device, the computer device can implement the steps in the above-mentioned method embodiment when executing the computer program product.

[0116] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0117] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0118] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as 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 devices or units, which can be electrical, mechanical or other forms.

[0119] 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 network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

[0121] See also Figure 5 , Figure 5 is a schematic diagram of a vehicle provided in Embodiment 5 of the present invention, wherein the vehicle 50 includes a control system 30 for electric vehicle sound quality.

Claims

1. A method for controlling the sound quality of an electric vehicle, characterized in that: include: Obtaining a real-time accelerator pedal opening signal of the electric vehicle and a real-time virtual speed of the engine to be simulated at the current moment; Calculating a sound gain of a first simulated sound corresponding to the simulated engine at the current moment according to the real-time accelerator pedal opening signal and the real-time virtual speed; Acquiring the number of cylinders of the engine to be simulated, and calculating the frequency of the first simulated sound according to the number of cylinders and the real-time virtual speed; A first analog sound signal of the first analog sound is calculated according to the frequency and the sound gain, and a power amplifier system is controlled to drive a vehicle-mounted speaker to produce sound according to the first analog sound signal.

2. The electric vehicle sound quality control method according to claim 1, characterized in that: The calculation process of the real-time virtual speed includes: Acquire the initial virtual speed of the engine to be simulated at the last moment, and the corresponding relationship between the virtual speed of the electric vehicle at the last moment, the accelerator pedal opening signal at the current moment, and the speed acceleration of the virtual speed of the engine at the last moment; Determine a target speed acceleration according to the initial virtual speed and the real-time accelerator pedal opening signal in combination with the corresponding relationship; The real-time virtual speed is calculated according to the target speed acceleration and the initial virtual speed.

3. The electric vehicle sound quality control method according to claim 2, characterized in that: The target speed acceleration includes a first target acceleration of the acceleration torque drive of the engine to be simulated and a second target acceleration of the acceleration torque drive hindering; The calculation formula of the real-time virtual speed is as follows: Among them, RPM t is the real-time virtual speed, is the initial virtual speed, a k1 is the first target acceleration, the a k2 is the second target acceleration, and dt is the time interval between the current moment and the previous moment.

4. The electric vehicle sound quality control method according to claim 1, characterized in that: The calculation formula of the sound gain is as follows: Gain t =a*RPM t +b*k t Among them, Gain t is the sound gain, RPM t is the real-time virtual speed, k t is the real-time accelerator pedal opening signal, a and b are gain parameters.

5. The electric vehicle sound quality control method according to claim 1, characterized in that: Before obtaining the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated at the current moment, the method further includes: Obtaining an accelerator pedal opening signal of the electric vehicle at each moment in the historical moment; Determining whether the accelerator pedal opening signal of the electric vehicle is zero at each moment; If the accelerator pedal opening signal of the electric vehicle is not zero at every moment, the step of obtaining the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated is performed.

6. The electric vehicle sound quality control method according to claim 5, characterized in that: After determining whether the accelerator pedal opening signal of the electric vehicle is zero at each moment, the method further includes: If the accelerator pedal opening signal of the electric vehicle is zero at every moment, a preset virtual speed and a preset sound gain are obtained; According to the preset virtual speed and the preset sound gain, an analog sound signal of a second analog sound is calculated, and according to the analog sound signal of the second analog sound, a power amplifier system is controlled to drive the vehicle-mounted speaker to produce sound.

7. A control system for electric vehicle sound quality, characterized in that: include: An acquisition module, used to acquire the real-time accelerator pedal opening signal of the electric vehicle and the real-time virtual speed of the engine to be simulated at the current moment; A first calculation module, used for calculating the sound gain of the first simulated sound corresponding to the simulated engine at the current moment according to the real-time accelerator pedal opening signal and the real-time virtual speed; A second calculation module, used for obtaining the number of cylinders of the engine to be simulated, and calculating the frequency of the first simulated sound according to the number of cylinders and the real-time virtual speed; The control module is used to calculate a first analog sound signal of the first analog sound according to the frequency and the sound gain, and control the power amplifier system to drive the vehicle-mounted speaker to produce sound according to the first analog sound signal.

8. A computer device, characterized in that: The computer device includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for controlling the sound quality of an electric vehicle according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for controlling the sound quality of an electric vehicle according to any one of claims 1 to 6 is implemented.

10. A vehicle, characterized in that: The vehicle includes a control system for electric vehicle sound quality.

Citation Information

Patent Citations

  • Electric car active sound generation system and sound control method thereof

    CN110525364A

  • Method and system for simulating engine sounding during automobile acceleration and deceleration

    CN111731185A

  • Electric vehicle active sound production system rotating speed control method and vehicle

    CN111746397A

  • Method of providing virtual sound in electric vehicle

    CN114572109A

  • Electric vehicle

    JP2022036827A