A method and system for synthesizing pedestrian warning sound outside a new energy vehicle

By processing the basic sound source of new energy vehicles, including counter interruption signals and pulse width modulation, the problem of low noise when driving at low speeds is solved, high-precision warning sound synthesis for laymen is realized, and the calculation complexity is reduced and cost.

CN112298032BActive Publication Date: 2024-11-22COLSONIC SUZHOU ELECTRONICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011201519.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-02
Publication Date
2024-11-22
Estimated Expiration
2040-11-02

AI Technical Summary

Technical Problem

The noise of new energy vehicles is low when driving at low speeds, causing pedestrians or animals to ignore the existence of vehicles, increasing the risk of traffic accidents. The existing pedestrian warning sound synthesis method has high computational complexity or high resource consumption, making it difficult to achieve high-precision synthesis.

Method used

The basic sound source processing method includes determining the playback rate and amplitude according to the body parameters, generating an interrupt signal through the counter, converting the sound source into a low-bit signal, and performing pulse width modulation and low-pass filtering to reduce the calculation complexity and improve the sound synthesis accuracy. .

Benefits of technology

It realizes simple and low-computing complex warning sound synthesis for laymen, effectively improving sound synthesis accuracy, reducing costs, and meeting embedded resource requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112298032B_ABST
    Figure CN112298032B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for synthesizing a warning sound for pedestrians outside a new energy vehicle. A method for synthesizing a warning sound for pedestrians outside a new energy vehicle comprises the following steps: obtaining a basic sound source; determining the current playback rate and amplitude of the warning sound according to the body parameters of the new energy vehicle, and processing the basic sound source according to the current playback rate and the amplitude, and sending it to the power amplifier to drive the speaker to emit a warning sound; wherein, the step of processing the basic sound source specifically comprises: a. determining the maximum count value of the counter according to the playback rate; b. generating an interrupt signal whenever the counter reaches the maximum value, multiplying the basic sound source by the amplification factor of the amplitude and converting it into a low-bit signal, and restarting the counting at the same time; c. performing pulse width modulation processing on the low-bit signal; d. performing low-pass filtering on the signal after pulse width modulation processing. The present invention is simple to implement and has low computational complexity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of synthesizing pedestrian warning sounds of new energy vehicles, and relates to a method and system for synthesizing pedestrian warning sounds outside a new energy vehicle. Background Art

[0002] New energy electric or hybrid vehicles produce very little noise when driving at low speeds. The overly quiet environment outside the vehicle can cause pedestrians or animals to ignore the presence of the vehicle, which can significantly increase traffic accidents. At present, China has issued regulations and standards that explicitly require new energy electric or hybrid vehicles to be equipped with pedestrian warning devices, which emit warning sounds to remind pedestrians of the presence of vehicles when driving at low speeds.

[0003] At present, the warning sound in the pedestrian warning device, whether based on formula synthesis or waveform splicing, has high computational complexity or large storage resources, and requires high embedded resources. For example, the traditional interpolation resampling method, if simply using linear interpolation, will produce mirror spectrum aliasing, affecting the accuracy of sound synthesis. To improve the accuracy of sound synthesis, complex interpolation algorithms must be used, and the computing resources will increase dramatically. Summary of the invention

[0004] The purpose of the present invention is to provide a method and system for synthesizing a warning sound for pedestrians outside a new energy vehicle, which is simple to implement and has low computational complexity.

[0005] In order to achieve the above object, the technical solution adopted by the present invention is:

[0006] A method for synthesizing a pedestrian warning sound outside a new energy vehicle comprises the following steps:

[0007] Obtain a basic sound source; determine the current playback rate and amplitude of the warning sound according to the body parameters of the new energy vehicle, and after processing the basic sound source according to the current playback rate and the amplitude, send it to the power amplifier to drive the speaker to emit the warning sound;

[0008] The steps of processing the basic sound source specifically include:

[0009] a. determining a maximum count value of a counter according to the playback rate;

[0010] b. Whenever the counter reaches the maximum value, an interrupt signal is generated, the basic sound source is multiplied by the amplitude amplification factor and converted into a low-bit signal, and the counting is restarted at the same time;

[0011] c. performing pulse width modulation processing on the low bit signal;

[0012] d. Perform low-pass filtering on the pulse width modulated signal.

[0013] In this article, new energy vehicles include but are not limited to electric vehicles and hybrid vehicles.

[0014] Preferably, in step a, the maximum count value of the counter is determined to be floor(f m / f s ), where f m is the input counter frequency of the counter, f s is the current playback rate, and floor() is the maximum integer not greater than the current number.

[0015] Preferably, in the step b, the basic sound source is multiplied by the amplitude amplification factor and then converted into a low-bit signal through second-order sigma-delta processing.

[0016] Preferably, the second-order sigma-delta processing converts a 16-bit signal into an 8-bit signal.

[0017] Preferably, the basic sound source is processed in advance by the following steps: presetting the time Δt of the beginning and the end of the basic sound source, performing a fade-in operation within the beginning Δt time, performing a fade-out operation within the end Δt time, and finally truncating the beginning Δt of the basic sound source and moving it to the end of the basic sound source, and overlapping and adding the part of the end Δt time as a new basic sound source, so as to ensure that the new basic sound source will not produce a sense of discontinuity when it is played in a loop.

[0018] Preferably, the pre-processed basic sound source is stored in a storage medium; and in the step b, whenever an interrupt signal is generated, the MCU obtains the basic sound source from the storage medium and converts it into a low-bit signal after multiplying it with the amplitude amplification factor.

[0019] Preferably, the MCU determines the current playback rate and amplitude according to the body parameters of the new energy vehicle.

[0020] The present invention also adopts the following technical solution:

[0021] A new energy vehicle external pedestrian warning sound synthesis system, comprising:

[0022] A storage medium for storing basic sound sources;

[0023] A control unit, which is used to determine the current playback rate and amplitude of the warning sound according to the body parameters of the new energy vehicle, and is also used to read the basic sound source and process the basic sound source according to the current playback rate and the amplitude; and

[0024] A low-pass filtering module, which is used to perform low-pass filtering on the signal output by the control unit;

[0025] A power amplifier, used to amplify the power of the signal output by the low-pass filtering module; and

[0026] A loudspeaker, used to emit a warning sound according to the signal output by the power amplifier;

[0027] Wherein, the control unit comprises:

[0028] A modulation processing module, which is used to multiply the basic sound source by the amplitude amplification factor and convert it into a low-bit signal;

[0029] a pulse width modulation processing module, which is used to perform pulse width modulation processing on the low-bit signal and then send it to the low-pass filtering module; and

[0030] A counter, which is used to restart counting when the count reaches a maximum value;

[0031] The control unit is further configured to generate an interrupt signal when the counter counts to a maximum value.

[0032] Preferably, the control unit is an MCU.

[0033] Preferably, the modulation processing module comprises a second order sigma-delta processing device.

[0034] The present invention adopts the above solution, which has the following advantages compared with the prior art:

[0035] In the method and system for synthesizing pedestrian warning sounds outside a new energy vehicle of the present invention, by converting a basic sound source into a low-bit signal and performing pulse width modulation, the sound synthesis accuracy is effectively improved, and the calculation complexity is low, thereby effectively reducing the cost. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below 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 work.

[0037] Figure 1 A flow chart of a second-order sigma-delta method according to an embodiment of the present invention;

[0038] Figure 2 The block diagram of a system for synthesizing warning sounds for pedestrians outside a vehicle according to an embodiment of the present invention is shown in FIG.

[0039] in:

[0040] 1. Storage medium; 2. Control unit; 21. Modulation processing module; 22. Pulse width modulation module; 23. Counter; 3. Low-pass filter module; 4. Power amplifier; 5. Speaker. DETAILED DESCRIPTION

[0041] The preferred embodiments of the present invention are described in detail below in conjunction with the accompanying drawings so that the advantages and features of the present invention can be more easily understood by those skilled in the art. It should be noted that the description of these embodiments is used to help understand the present invention, but does not constitute a limitation of the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0042] This embodiment provides a method for synthesizing a warning sound for pedestrians outside a new energy electric vehicle or a hybrid vehicle, and the specific implementation process is as follows.

[0043] 1. Determine a basic sound source, which can be synthesized or recorded.

[0044] 2. Preset the time Δt for the connection between the beginning and the end of the basic sound source, fade in within the first Δt time, fade out within the last Δt time, and finally cut off the first Δt of the basic sound source and move it to the end of the basic sound source, overlapping and adding it with the last Δt time as the new basic sound source, so as to ensure that the new basic sound source will not produce a sense of discontinuity when it is played in a loop.

[0045] 3. Store the basic sound source in a non-volatile storage medium, such as FLASH.

[0046] 4. MCU determines the current playback rate and amplitude based on vehicle parameters such as vehicle speed, gear position, throttle, etc., obtains basic sound source data from the storage medium, and sends it to the PWM (pulse width modulation) module after processing. After conversion by the PWM module, it passes through a low-pass filter and power amplifier to drive the speaker to emit a warning sound that complies with regulations. The specific implementation of this step is as follows:

[0047] 4.1.MCU obtains vehicle parameters such as speed, gear position and throttle information from the CAN interface, and determines the current playback rate and amplitude based on the vehicle information, mainly to meet the regulatory requirements on frequency shift rate and amplitude.

[0048] 4.2. Determine the maximum count value of the counter according to the playback rate, which is floor(f m / f s ), where f m is the input counter frequency of the counter, f sis the current playback rate, floor() is the maximum integer not greater than the current number. Generally, in MCU, the input frequency of the counter is f m It can reach above 40MHz, while the general warning sound playback rate is f s It is around 22kHz, so assuming that the current counter input frequency is 40MHz and the maximum counter count is 1818, the sampling rate f s The sampling rate is 22.0022kHz. When the maximum value of the counter is 1819, the sampling rate is 21.9901kHz. Although the sampling frequency cannot be changed continuously, the interval is small and can be approximately regarded as a continuous change. At the same time, the frequency shift required by the regulations only limits the minimum value. Therefore, changing the sampling period by the counter can meet the regulatory requirements.

[0049] 4.3 Whenever the counter counts to the maximum value, an interrupt signal is generated and the counting starts again. Every time a counting interrupt signal comes, the MCU obtains the sound source data from the storage medium, multiplies it with the amplitude amplification factor, and then processes it through the second-order sigma-delta, such as Figure 1 shown. Figure 1 In, z -1 is a unit delayer, Q is a quantizer, and 16-bit signals are quantized into 8-bit signals. Convert high-bit signals into low-bit signals, and only low-bit signals can be well restored using PWM. However, if the number of low-bit bits converted from high-bit signals is low, the conversion process will become more complicated and the amount of calculation will increase greatly. Here, 16-bit signals are quantized into 8-bit signals to make a compromise.

[0050] If the digital PWM is to fully restore the signal, for a 16-bit input signal, and assuming the audio sampling rate is f s If the input frequency of the PWM module is at least f s ×2 16 ≈1.4GHz, which is impossible to achieve in MCU. If it is an 8-bit signal, the input frequency is about 6MHz. In a general MCU, the input frequency of the PWM module can be set to at least 40MHz, which fully meets the conditions.

[0051] If you simply truncate a 16-bit signal to an 8-bit signal, quantization noise will be introduced and the sound signal cannot be perfectly restored. Noise shaping technology can be used to push the quantization noise from low frequencies to high frequencies, and finally a low-pass filter can be used to filter out the high-frequency noise to reconstruct the signal.

[0052] from Figure 1It can be seen that only 4 integer addition and subtraction operations, 3 delays, and a quantizer (here the quantizer is only used for operation truncation) are needed, and no floating-point operations are involved. The corresponding 16-bit to 8-bit operation can be completed, which takes up almost no computing resources and is suitable for implementation on microprocessors with tight computing resources such as MCU.

[0053] The sigma delta processed data is fed into the digital PWM module for modulation output.

[0054] 4.4 The output of the PWM module is passed through a low-pass filter and a power amplifier module to drive the speaker to emit a warning sound.

[0055] This embodiment also provides a new energy electric vehicle or hybrid vehicle pedestrian warning sound synthesis system, the structure of which is as follows: Figure 2 See Figure 2 The system specifically includes a storage medium 1, a control unit 2, a low-pass filter module 3, a power amplifier 4 and a speaker 5.

[0056] The storage medium 1 is used to store the basic sound source. The basic sound source stored in the storage medium 1 is a pre-processed sound source, and the specific processing process is as follows: the basic sound source is preset to have a beginning and an end connection time Δt, a fade-in operation is performed within the beginning Δt time, a fade-out operation is performed within the end Δt time, and finally the beginning Δt of the basic sound source is cut off and moved to the end of the basic sound source, and the part of the end Δt time is overlapped and added as a new basic sound source. The storage medium 1 is preferably a non-volatile storage medium 1, such as FLASH.

[0057] The control unit 2 is used to determine the current playback rate and amplitude of the warning sound according to the body parameters of the new energy vehicle, and is also used to read the basic sound source and process the basic sound source according to the current playback rate and the amplitude. The control unit 2 is specifically an MCU. The input end of the control unit 2 is electrically connected to the storage medium 1 to read the pre-processed basic sound source stored in the storage medium 1.

[0058] The low-pass filter module 3 is used to perform low-pass filtering on the signal output by the control unit 2. The low-pass filter module 3 specifically adopts a low-pass filter, and its input end is electrically connected to the output end of the control unit 2.

[0059] The power amplifier 4 is used to amplify the power of the signal output by the low-pass filter module 3. The input end of the power amplifier 4 is electrically connected to the output end of the low-pass filter module 3.

[0060] The input end of the speaker 5 is electrically connected to the output end of the amplifier 4, and is used to emit a warning sound according to the signal output by the amplifier 4. The speaker 5 is specifically a speaker 5 arranged outside the vehicle compartment of the electric vehicle or hybrid vehicle, and is used to play a pedestrian warning sound outside the vehicle.

[0061] The control unit 2 specifically includes:

[0062] The modulation processing module 21 is used to multiply the basic sound source by the amplitude amplification factor and convert it into a low-bit signal; the modulation processing module 21 includes a second-order sigma-delta processing device;

[0063] A pulse width modulation processing module 22, which is used to perform pulse width modulation processing 22 on the low-bit signal and then send it to the low-pass filtering module 3; and

[0064] The counter 23 is used for restarting the counting when the count reaches the maximum value.

[0065] The control unit 2 is also used to generate an interrupt signal when the counter 23 counts to a maximum value. Each time an interrupt signal is generated, the control unit 2 obtains the sound source data from the storage medium 1, multiplies it by the amplitude amplification factor, and then processes it through the second-order sigma-delta.

[0066] The above method and system have the following advantages: (1) Simple implementation, requiring only a PWM module, a counter module and a small amount of addition and subtraction calculations. Currently, most low-resource embedded MCU chips are equipped with multiple PWM modules and counter modules, and do not require a dedicated DSP processing chip, which can effectively reduce costs. (2) Direct PWM conversion has low sound synthesis accuracy. The use of sigma-delta conversion can effectively improve the sound synthesis accuracy. (3) Traditional interpolation and resampling methods, if simply using linear interpolation, will produce mirror spectrum aliasing, affecting the sound synthesis accuracy. To improve the sound synthesis accuracy, complex interpolation algorithms must be used, and computing resources will increase dramatically. This solution uses readily available modules commonly used by MCUs, with low computational complexity and high synthesis accuracy.

[0067] The above embodiment is only for illustrating the technical concept and features of the present invention, and is a preferred embodiment. Its purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and it cannot be used to limit the protection scope of the present invention. Any equivalent transformation or modification made according to the spirit of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for synthesizing pedestrian warning sounds outside a new energy vehicle, It is characterized in that The steps include: Obtain a basic sound source; determine the current playback rate and amplitude of the warning sound according to the body parameters of the new energy vehicle, and after processing the basic sound source according to the current playback rate and the amplitude, send it to the power amplifier to drive the speaker to emit the warning sound; The steps of processing the basic sound source specifically include: a. determining a maximum count value of a counter according to the playback rate; b. Whenever the counter reaches the maximum value, an interrupt signal is generated, the basic sound source is multiplied by the amplitude amplification factor and converted into a low-bit signal, and the counting is restarted at the same time; c. performing pulse width modulation processing on the low bit signal; d. Perform low-pass filtering on the pulse width modulated signal; In step a, the maximum count value of the counter is determined to be floor(f m / f s ), where f m is the input counter frequency of the counter, f s is the current playback rate, floor() is the maximum integer not greater than the current number; In step b, the basic sound source is multiplied by the amplitude amplification factor and then converted into a low-bit signal through second-order sigma-delta processing; The second-order sigma-delta processing converts the 16-bit signal into an 8-bit signal.

2. The method for synthesizing the warning sound for pedestrians outside the vehicle according to claim 1, It is characterized in that The basic sound source is processed in advance by the following steps: a basic sound source head-to-tail connection time Δt is preset, a fade-in operation is performed within the head Δt time, a fade-out operation is performed within the tail Δt time, and finally the head Δt of the basic sound source is cut off and moved to the tail of the basic sound source, and overlapped and added with the tail Δt time portion as a new basic sound source.

3. The method for synthesizing the warning sound for pedestrians outside the vehicle according to claim 2, It is characterized in that The pre-processed basic sound source is stored in a storage medium; and in the step b, whenever an interrupt signal is generated, the MCU obtains the basic sound source from the storage medium and converts it into a low-bit signal after multiplying it with the amplitude amplification factor.

4. The method for synthesizing the warning sound for pedestrians outside the vehicle according to claim 3, It is characterized in that The MCU determines the current playback rate and amplitude based on the body parameters of the new energy vehicle.

5. A new energy vehicle pedestrian warning sound synthesis system, It is characterized in that include: A storage medium for storing basic sound sources; A control unit, which is used to determine the current playback rate and amplitude of the warning sound according to the body parameters of the new energy vehicle, and is also used to read the basic sound source and process the basic sound source according to the current playback rate and the amplitude; and A low-pass filtering module, which is used to perform low-pass filtering on the signal output by the control unit; A power amplifier, used for amplifying the power of the signal output by the low-pass filtering module; and A loudspeaker, used to emit a warning sound according to the signal output by the power amplifier; Wherein, the control unit comprises: A modulation processing module, which is used to multiply the basic sound source by the amplitude amplification factor and convert it into a low-bit signal; a pulse width modulation processing module, which is used to perform pulse width modulation processing on the low-bit signal and then send it to the low-pass filtering module; and A counter, which is used to restart counting when the count reaches a maximum value; The control unit is also used to generate an interrupt signal when the counter counts to a maximum value; Wherein, the modulation processing module includes a second-order sigma-delta processing device; The control unit is further used to determine the maximum count value of the counter to be floor (f m / f s ), where f m is the input counter frequency of the counter, f s is the current playback rate, floor() is the maximum integer not greater than the current number; the basic sound source is multiplied by the amplitude amplification factor and converted into a low-bit signal through the second-order sigma-delta processing device; wherein the second-order sigma-delta processing converts a 16-bit signal into an 8-bit signal.

6. The pedestrian warning sound synthesis system outside the vehicle according to claim 5, It is characterized in that The control unit is MCU.