Summary of the invention
In view of this, the object of the present invention is to provide a kind of flexible car for electronlmobil travel analog system and the method for sound.
To achieve these goals, the technical scheme that provides of the embodiment of the invention is as follows:
The travel analog system of sound of a kind of flexible car, described system comprises:
Be used for obtaining from the electronlmobil bus driver module of the status information of electronlmobil;
The microprocessor that being used for of linking to each other with described driver module processes the status information of electronlmobil;
The memory device that is used for stored sound source information and selects for microprocessor that links to each other with described microprocessor;
What link to each other with described microprocessor is used for audio processing modules to the sound source information processing;
The audio driven module that is used for amplifying signal that links to each other with described audio processing modules;
The loud speaker that links to each other with described audio driven module.
As a further improvement on the present invention, described driver module links to each other with CAN Bus in Electric, comprises the CAN drive circuit unit in the driver module.
As a further improvement on the present invention, described audio processing modules comprises for the demoder that sound source is decoded and the D and A converter that is used for the digital signal that decoding obtains is converted to analog signal.
As a further improvement on the present invention, the status information of described electronlmobil comprises speed information, motor speed information, gearbox-gear information, braking vane status information and electric switch status information.
As a further improvement on the present invention, measure when sound source is travelled under the different speed of a motor vehicle, engine petrol rotating speed, gearbox-gear, braking vane state and throttle by equal flexible car and get, the playout length of described sound source is 5 ~ 20 seconds.
As a further improvement on the present invention, described system also comprises for the power supply processing module that external voltage source is converted to the rated voltage source.
Correspondingly, the travel analogy method of sound of a kind of flexible car, described method comprises:
S1, obtain the status information of electronlmobil from the electronlmobil bus;
S2, the status information of electronlmobil is processed, searched optimum sound source of sound information, and read sound source information;
S3, the sound source of selecting is processed the sound signal after obtaining processing;
S4, this sound signal is amplified and played sound.
As a further improvement on the present invention, described step S2 is specially:
According to speed information, motor speed information, gearbox-gear information, braking vane status information and the electric switch status information of electronlmobil, search best sound source by the mode of tabling look-up, and read sound source information.
Measure when as a further improvement on the present invention, sound source is travelled under the different speed of a motor vehicle, engine petrol rotating speed, gearbox-gear, braking vane state and throttle by equal flexible car and get.
As a further improvement on the present invention, among the described step S3 sound source processed and is specially:
Sound source is decoded, obtain the digital signal of sound source;
Digital signal is carried out digital to analogy conversion, obtain analog signal.
The invention has the beneficial effects as follows: the present invention can simulate the sound that travels of flexible car under the equal state exactly, this simulated maneuver running car sound, vehicle, speed and the spacing that can help the pedestrian to judge exactly to send a car, make the pedestrian ready in advance, thereby can effectively avoid electronlmobil and the outer accident that bumps against of people's will.
The specific embodiment
The invention discloses the travel analog system of sound of a kind of flexible car, comprising:
Be used for obtaining from the electronlmobil bus driver module of the status information of electronlmobil;
The microprocessor that being used for of linking to each other with driver module processes the status information of electronlmobil;
The memory device that is used for stored sound source information and selects for microprocessor that links to each other with microprocessor;
What link to each other with microprocessor is used for audio processing modules to the sound source information processing;
The audio driven module that is used for amplifying signal that links to each other with audio processing modules;
The loud speaker that links to each other with the audio driven module.
The invention also discloses the travel analogy method of sound of a kind of flexible car, comprising:
S1, obtain the status information of electronlmobil from the electronlmobil bus;
S2, the status information of electronlmobil is processed, searched optimum sound source of sound information, and read sound source information;
S3, the sound source of selecting is processed the sound signal after obtaining processing;
S4, this sound signal is amplified and played sound.
The travel analog system analogy method of sound of the flexible car that the present invention is used for electronlmobil obtains the information such as the speed of a motor vehicle, motor speed, gearbox-gear, braking vane state and electric switch state of electronlmobil by the electronlmobil bus, select the sound of best this electronlmobil state of expression by microprocessor analysis and in memory device, and then simulate exactly the sound that travels of flexible car under the equal state.
In order to make those skilled in the art person understand better technical scheme among the present invention, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills should belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
Ginseng Figure 1 shows that the travel module diagram of analog system of sound of flexible car in an embodiment of the present invention.This system comprises:
Driver module 10 is for the status information of obtaining electronlmobil from the electronlmobil bus.Driver module 10 links to each other with electronlmobil CAN (Controller Area Network, controller local area network) bus, comprises the CAN drive circuit unit in the driver module.Preferably, the status information of electronlmobil comprises speed information, motor speed information, gearbox-gear information, braking vane status information and the electric switch status information of electronlmobil;
Microprocessor 20, microprocessor 20 links to each other with driver module 10, is used for the status information of electronlmobil is processed;
Memory device 30, memory device 30 links to each other with microprocessor 20, is used for stored sound source information and supplies microprocessor 20 to select.Preferably, memory device 30 is the FLASH memory device.Measure when the sound source information of storage is travelled under the same speed of a motor vehicle, engine petrol rotating speed, gearbox-gear, braking vane state and throttle not by equal flexible car and get, call during in order to the vehicle actual travel, and store by certain form, the length of storage does not need oversize, and the playout length of sound source is generally 5 ~ 20 seconds;
Audio processing modules 40, audio processing modules 40 links to each other with microprocessor 20, is used for the sound source information processing.Present embodiment sound intermediate frequency processing module 40 comprises that D and A converter 42 generally is comprised of 4 parts: weighted resistance network, op amp, reference power supply and analog switch for the demoder 41 that sound source is decoded and the D and A converter 42 that is used for the digital signal that decoding obtains is converted to analog signal;
Audio driven module 50, audio driven module 50 links to each other with audio processing modules 40, is used for amplifying signal;
Loud speaker 60, loud speaker 60 links to each other with audio driven module 50.
Further, this system also comprises power supply processing module 70, be used for external voltage source is converted to the rated voltage source, as in preferred implementation of the present invention, the external voltage source of electronlmobil is 12V, the rated voltage source is set to 5V, after power supply processing module 70 is converted into rated voltage 5V with the voltage of outside 12V, rated voltage is provided for driver module 10, microprocessor 20, memory device 30, audio processing modules 40 and audio driven module 50.In other embodiments, power supply processing module can arrange according to different external voltages and rated voltage, is converted into 5V etc. such as the voltage with 24V.
Join the travel schematic flow sheet of analogy method of sound of flexible car in the embodiment shown in Figure 2.The method comprises:
S1, driver module obtain the status information of electronlmobil and send to microprocessor from the electronlmobil bus.
Preferably, the status information of electronlmobil comprises speed information, motor speed information, gearbox-gear information, braking vane status information and electric switch status information.CAN drive circuit unit in the driver module can obtain from CAN Bus in Electric the status information of above-mentioned electronlmobil, and sends to microprocessor and process;
S2, microprocessor are processed according to the status information of electronlmobil, search optimum sound source of sound information by the mode of tabling look-up in holder, and read sound source information and send to audio processing modules.
In the present embodiment, memory device is the FLASH memory device, measure when the sound source information of storage is travelled under the different speed of a motor vehicle, engine petrol rotating speed, gearbox-gear, braking vane state and throttle by equal flexible car and get, and store by certain form, call during in order to the vehicle actual travel, the length of storage does not need oversize, and the playout length of sound source is generally 5 ~ 20 seconds;
S3, audio processing modules receive sound source information and process, and the signal after will processing is sent to the audio driven module.
Treating process is at first decoded to sound source by demoder, obtains the digital signal of sound source, by D and A converter digital signal is carried out digital to analogy conversion again, obtains analog signal.To in demoder, send sound source data constantly in this process, uninterrupted with the sound that guarantees loud speaker;
S4, audio driven module are amplified this sound signal and are sounded by loud speaker.
During Vehicle Driving Cycle, this sound is play uninterruptedly; When vehicle-state changes, switch to smoothly another sound source.
Can be found out by technique scheme, the travel analog system of sound and method of flexible car of the present invention obtains the status information of the electronlmobils such as the speed of a motor vehicle, motor speed, gearbox-gear, braking vane state and electric switch state of electronlmobil by the electronlmobil bus, select the sound of best this electronlmobil state of expression by microprocessor analysis and in memory device, and then simulate exactly the sound that travels of flexible car under the equal state.This simulated maneuver running car sound, vehicle, speed and the spacing that can help the pedestrian to judge exactly to send a car make the pedestrian ready in advance, thereby can effectively avoid electronlmobil and the outer accident that bumps against of people's will.
To those skilled in the art, obviously the invention is not restricted to the details of above-mentioned example embodiment, and in the situation that does not deviate from spirit of the present invention or essential characteristic, can realize the present invention with other concrete form.Therefore, no matter from which point, all should regard embodiment as exemplary, and be nonrestrictive, scope of the present invention is limited by claims rather than above-mentioned explanation, therefore is intended to include in the present invention dropping on the implication that is equal to important document of claim and all changes in the scope.Any Reference numeral in the claim should be considered as limit related claim.
In addition, be to be understood that, although this specification sheets is described according to embodiment, but be not that each embodiment only comprises an independently technical scheme, this narrating mode of specification sheets only is for clarity sake, those skilled in the art should make specification sheets as a whole, and the technical scheme among each embodiment also can through appropriate combination, form other embodiments that it will be appreciated by those skilled in the art that.