Summary of the invention
The technical problem to be solved in the present invention just is: at the technical matters of prior art existence, the invention provides a kind of not only can the collection to performance parameter in the car load operational process, compare with the theoretical simulation curve behind the synthetic relevant actual curve, thereby the rationality and the reliability of checking In-vehicle networking communication protocol, the comprehensive evaluation vehicle performance, and can carry out in real time the accurately method of testing and the device of the running performance parameters of hybrid electric vehicle of control to hybrid-electric car.
In order to solve the problems of the technologies described above, the solution that the present invention proposes is: a kind of method of testing of running performance parameters of hybrid electric vehicle, it is characterized in that: in the operational process of hybrid-electric car, utilize controller to gather, store various correlated performance parameters in the car load operational process in real time, and preserve by storage medium, utilize MATLAB software that the parameter fitting that collects is become and the corresponding curve of each performance then, come comprehensive evaluation vehicle performance index by this curve.
Described storage medium adopts the USB flash disk or the portable hard drive of USB interface, and the data acquisition function by USB interface is with the running performance parameters of hybrid electric vehicle collection and preserve; When described USB module was made slave, the image data that directly links to each other with PC was saved to the data that collect in the PC; When the USB module is made main frame, can directly be connected image data with portable hard drive or USB flash disk, and can send foundation, deletion, read-write and the retouching operation that related command carries out file by serial port SCI, and the selection of memory property parameter; In order to prevent that storage medium is extracted in data storage procedure, guarantee the integrality of data, interrupt data storage by button, mobile memory medium is extracted.
The real-time performance parameter that described hybrid-electric car is gathered in operational process is date Hour Minute Second, the speed of a motor vehicle, gear signal, mileage, this total kilometrage that travels, total kilometres, cell voltage, various signals on battery current, battery electric quantity SOC, fuel tank fuel quantity signal, engine speed, motor speed and moment of torsion, throttle opening, various digital simulation amount input/output signal and the CAN bus; With the corresponding curve that fits to of above-mentioned parameter is acceleration V-T curve, the continual mileage curve, different road conditions fuel consumption per hundred kilometers curves, the V-T curve of coasting distance when setting the speed of a motor vehicle, the energy recovery conditional curve, battery electric quantity SOC constitutional diagram, electric battery or monomer charging and discharging currents and voltage response, the battery equilibrium condition curve, the engine fuel consumption curve, oil consumption curve when the engine constant speed during different solar terms door aperture is moved, the engine speed family curve, engine speed graph during the constant speed operation, motor efficiency, moment of torsion and rotation speed characteristic, engine speed in the gearshift procedure, motor speed, the speed of a motor vehicle is the simulation curve of change curve and the various signals of CAN bus in time.
A kind of proving installation of running performance parameters of hybrid electric vehicle, it is characterized in that: it comprises central controller, the embedded CAN controller of this central controller, A/D modular converter and I/O module, described CAN controller links to each other with the CAN line by the CAN buffer circuit, the I/O module links to each other with exterior I/O module, the A/D modular converter links to each other with the linear isolation module of A/D, SCI asynchronous serial port A links to each other with the MAX3232 serial communication modular, SCI asynchronous serial port B links to each other with the LIN bus module, the RTC real-time clock module links to each other with the CPLD decoding module, USB module data line address wire links to each other with the data line address line of central controller, the control line of central controller links to each other with the CPLD module, the JTAG debugging interface directly links to each other with test interface JTAG with central controller emulation, the data line of D/A module links to each other with the data line of central controller by data latches, the control line of D/A module links to each other with the CPLD decoding module, the data line of memory module and central controller, address wire and control line directly link to each other, crystal oscillator links to each other with central controller with hand-reset and various communication indicating lamp module, and all signals that link to each other with cab signal are all isolated and the central controller isolation by handling and adding photoelectricity simultaneously.
Described RTC real-time clock module chip uses X1226, external Citizen CFS206-32.768KDZF type quartz crystal, device provides 3V lithium battery standby power supply, VBACK provided power supply for device when power supply VCC on the plate loses efficacy, serial clock SCL and serial data SDA connect the 4.7K pull-up resistor, and R29 connects a diode and prevents standby power supply consumption.
Described USB controller adopts SL811HST, the active crystal oscillator of 48M, 12Mbits is data-transmission mode at full speed, can make its as slave directly link to each other with PC the transmission data or as main frame directly by patching the real time data in the portable hard drive storage driving process, and can set the stored parameters of wanting by the serial port order.
Described central controller, RTC module, USB module and CPLD module all are furnished with the crystal oscillator that works alone of oneself; Described manual reset circuit links to each other with central controller XRS through CPLD combination decoding back; Described communication pilot lamp comprises that CAN bus signals pilot lamp, LIN bus signals pilot lamp, USB insertion connect data transmission pilot lamp, serial port transmitting-receiving pilot lamp and voltage indicator lamp.
Described CPLD module is controlled D/A module, USB module and RTC real-time clock module by the signal of combination decoding central controller address wire and control line with output, CPLD module combinations decoding hand-reset signal and power-on reset signal output to central controller XRS, and the CPLD module directly drives photoelectricity isolation output.
Described DA module adopts chip DAC7625, and the power supply reference chip adopts TLC2272 and TLC2274, and two data latches LVC245A are arranged, and provides the control chip selection signal by CPLD.
Compared with prior art, advantage of the present invention just is: the level and smooth control that (1) the present invention can carry out vehicle start, quickens, travels, braking energy reclaims states such as charging and reversing, the double dynamical control of engine and motor, car load control and switching coordinated management, maximum overall efficiency control; (2) the exportable engine of the present invention, motor working state signal and alerting signal, output battery electric quantity signal is to vehicular meter; (3) the present invention and other system carry out good CAN bus communication and LIN bus communication, and have good stable and anti-interference; (4) the present invention can carry out the assembly controller power-on self-test, and fault detect is reported to the police and demonstration, security of system monitoring and protection; (5) the present invention can provide a kind of CAN bus, the LIN bus, and usb bus, the intelligent conversion gateway of RS232 universal serial bus comprises the CAN bus, LIN bus, usb bus, RS232 serial bus interface; (6) the present invention has the record data of travelling memory function, by patching mobile memory medium (as: flash disk or portable hard drive), the USB module is responsible for the transmitting-receiving of packet, all relevant emulation desired data real time record are got off, also can be directly gather real time data by USB-A interface or the RS232 serial port software interface that was connected with computing machine, for the MATLAB simulation software, the CRUISE of vehicle performance simulation software, the CAN bus network development analysis Vector of simulation software use; (7) the present invention can set data parameters title and the number that needs collection by serial port, and the file operation of carrying out mobile memory medium: document creation, read, write, deletion action, comprise (enumerate file item, open file, read file, file pointer is set, creates file, writes data to file, deleted file or catalogue, acquisition disk remaining space, detect whether USB flash disk is arranged, create sub-directory, enter sub-directory, return the upper level catalogue, return root directory), file system is supported FAT16 and FAT32, identification conversion automatically; (8) the present invention can utilize the SCI mouth that key parameter is carried out configuration (as: motor speed, throttle position aperture etc.) or utilizes the software control platform that vehicle-state is monitored by software interface; (9) the present invention can the online modification software program, carries out on-line debugging, in time pinpoints the problems, and adjusts control strategy in real time; (10) the present invention has good Electro Magnetic Compatibility, can satisfy the relevant Electro Magnetic Compatibility standard of country, can adapt to vibrations and impact under all road conditions; (11) connector that is connected with vehicle harness of system hardware of the present invention part meets the electric automobile relevant criterion, easy accessibility, dependable performance, normal steady operation when environment temperature be-40 ℃ to 85 ℃.In sum, the present invention both can be used for the real time data of hybrid vehicle is gathered, and can also control in real time hybrid vehicle.
Embodiment
Below with reference to the drawings and specific embodiments the present invention is described in further details.
Specific embodiments of the invention mainly are to reequip at the regular fuel car, and the design controlling schemes according to the vehicle size, is selected engine and drive motor (optional starter motor), increased buncher CVT (electric clutch) and electronic throttle.
The method of testing of a kind of running performance parameters of hybrid electric vehicle of the present invention, in the operational process of hybrid-electric car, utilize controller to gather, store various correlated performance parameters in the car load operational process in real time, and preserve by storage medium, utilize MATLAB software that the parameter fitting that collects is become and the corresponding curve of each performance then, come comprehensive evaluation vehicle performance index by this curve.This storage medium adopts the USB flash disk or the portable hard drive of USB interface, and the data acquisition function by USB interface is with the running performance parameters of hybrid electric vehicle collection and preserve; When described USB module was made slave, the image data that directly links to each other with PC was saved to the data that collect in the PC; When the USB module is made main frame, can directly be connected image data with portable hard drive or USB flash disk, and can send foundation, deletion, read-write and the retouching operation that related command carries out file by serial port SCI, and the selection of memory property parameter; In order to prevent that storage medium is extracted in data storage procedure, guarantee the integrality of data, interrupt data storage by button, mobile memory medium is extracted.The real-time performance parameter that hybrid-electric car is gathered in operational process is date Hour Minute Second, the speed of a motor vehicle, gear signal, mileage, this total kilometrage that travels, total kilometres, cell voltage, various signals on battery current, battery electric quantity SOC, fuel tank fuel quantity signal, engine speed, motor speed and moment of torsion, throttle opening, various digital simulation amount input/output signal and the CAN bus; With the corresponding curve that fits to of above-mentioned parameter is acceleration V-T curve, the continual mileage curve, different road conditions fuel consumption per hundred kilometers curves, the V-T curve of coasting distance when setting the speed of a motor vehicle, the energy recovery conditional curve, battery electric quantity SOC constitutional diagram, electric battery or monomer charging and discharging currents and voltage response, the battery equilibrium condition curve, the engine fuel consumption curve, oil consumption curve when the engine constant speed during different solar terms door aperture is moved, the engine speed family curve, engine speed graph during the constant speed operation, motor efficiency, moment of torsion and rotation speed characteristic, engine speed in the gearshift procedure, motor speed, the speed of a motor vehicle is the simulation curve of change curve and the various signals of CAN bus in time.Specifically, the present invention with hybrid-electric car under mass data real time record under the actual travel state, and fit to simulation curve as required, simulation curve with the MATLAB of theoretical research, the cruise of vehicle performance simulation software simulation curve compares, vehicle performance is estimated, in the hope of finding design defect than stage morning, find out the difference of theoretical study results and field adjustable target, sum up the loss and the various factor of can not ignore of energy in the energy transfer process, prove car load parts match and type selecting, the optimum theory realistic model improves control strategy and algorithm, pinpoints the problems in debug process, deal with problems, and the off-line simulation result of the control strategy of theoretical research and algorithm is carried out practical application.The test data of real time record can also be as the input of the bus network development analysis Vector of simulation software, and whether the design of validation test bus network is reasonable, and whether communication protocol is correct; And can also provide the emulation of testing tool real-time online to the independent debugging of each parts before the car load assembly and adjustment, so that before the car load debugging, carry out the comprehensive good control of monomer functional, possessing the hardware-in-the-loop simulation function, reduce general diversity demand and the contradiction between the exploitation fast to adapt in the exploitation portable.Device of the present invention both can be used for the real time data of hybrid vehicle is gathered, and can also control in real time hybrid vehicle.
As depicted in figs. 1 and 2, proving installation of the present invention comprises central controller U1, this central controller U1 adopts 32 8-digit microcontroller TMS320F2812 chips, it is embedded with CAN controller, A/D modular converter, the SCI module, PWM module, CAP trapping module and I/O module etc. have 19 bit address lines (inner 22 bit address lines) and 16 position datawires, and universal I/O port can be configured to the input and output pattern.The IO mouth can input digit and frequency signal, and CANTX and CANRX can carry out the transmission and the reception of CAN signal by the CAN buffer circuit.ADCINn receives through the simulating signal of circuit linearity insulating circuit and carries out the A/D conversion.XA (0-19) and XD (0-15) select as the address and the data of storer.Described CAN controller links to each other with the CAN line by the CAN buffer circuit, the I/O module is isolated the back and is linked to each other with exterior I/O module, the A/D modular converter links to each other with the linear isolation module of A/D, the D/A module is by U15 decoded signal latch data and control the DAC7625 renewal or the output of maintenance data, asynchronous serial port A links to each other with serial port MAX3232, asynchronous serial port B links to each other with the LIN bus module, real-time clock RTC module links to each other with U15 combinational logic decoded signal, USB module's address data directly link to each other with U1, control signal links to each other with CPLD U15, JTAG on-line debugging download interface directly links to each other with U1, and electrification reset directly links to each other with U1 with the supply voltage monitoring module; Central controller U1 address wire links to each other with CPLD U15 with control line simultaneously.
As shown in Figure 3, the present invention serial ports stand CAN_DB9 that to be a CAN isolation module circuit isolate U2, U3 6N137, a slice CAN transceiver U4 PCA82C250 and one 9 pins by two couples of Smith's phase inverter U5 LVX14, two high speed optoelectronics forms, described two couples of Smith's phase inverter U5 isolate U2, U3 by two high speed optoelectronics respectively and link to each other with CAN transceiver U4, this CAN transceiver U4 output termination serial ports stand CAN_DB9, pass through the level conversion of Smith's phase inverter U5 by the data that the CAN controller sends, and then deliver among the high speed optoelectronic isolating chip U2.The signal that process is isolated is delivered to the transmitting terminal of CAN transceiver U4, by this transceiver conversion of signals is become the terminal output of bus signals by CAN transceiver U4.Data on the bus convert digital signal to and isolate U3 through another sheet high speed optoelectronic by behind the CAN transceiver U4, are undertaken delivering among the central controller U1 after the level conversion by Smith's phase inverter U5 again.
As shown in Figure 4, digital quantity isolation input circuit of the present invention is mainly interconnected by stabilivolt Z1, photoelectric isolated chip U6 TLP521-4 and resistance and forms.IN represents outside signal among the figure, and high level is 12V, and low level is 0V.Signal arrives in the photoelectric isolated chip U6 after the resistance current limliting through stabilivolt Z1 amplitude limit.Output signal through draw on the resistance with a resistance current limliting after deliver among the CPU by the IO mouth.When IN mouth level was 0V, as the low level input, IO mouth level was 3.3V; When IO mouth level was 12V, as the high level input, IO mouth level was 0V.The IO signal is input in the IO mouth of central controller U1, and CPU carries out the collection of digital signal by the height that detects IO mouth level.
As shown in Figure 5, frequency signal change-over circuit of the present invention is made up of operational amplifier U7LM339 and resistance, the high level that becomes standard after this circuit zero passage comparison process of frequency signal process of input is that 12V, low level are the signal of 0V, and this signal is isolated input circuit conversion back input circuit by Fig. 3 digital quantity again and delivered among the central controller U1.This freq converting circuit is a universal circuit, has four circuit as shown in the figure to come respectively four road frequency signals to be changed.As vehicle speed sensor is a frequency signal, crosses zero balancing by operational amplifier, converts square wave to, is input to CPU after photoelectricity is isolated, and CPU calculates the speed of a motor vehicle by catching mouthful two rising edge cycles of CAP detection square wave.
As shown in Figure 6, digital quantity spacing output circuit of the present invention is made to drive (drive current 24mA, DSP pin output circuit is generally 4mA), photoelectric isolated chip U8 U9 TLP521-4, high voltage and high current darlingdon transistor U10 ULN2803 and relay J 1-J8 DSP2A by CPLD chip U15 XC95144XL and is formed.The IO mouth output 3.3V signal of central controller U1, IOOUT1-IOOUT8 isolates U8 through CPLD chip U15 and photoelectricity, the U9 input, positive termination VCC becomes the 5V signal after crosstalk resistance current limliting drives and passes through photoelectric isolated chip U8 again, and U9 carries out photoelectricity to be isolated.Arrive high voltage and high current darlingdon transistor U10 through the signal of isolating again by JO1-JO8, hang down the conversion of logical signal to high logical signal.The beginning of the signal JC1-JC8 pilot relay J1-J8 of process conversion.K1-K8 then is an external signal of delivering to controller.When JC1-JC8 when low, relay J 1-J8 coil electricity, relay J 1-J8 adhesive, output terminal K1-K8 is output as 0.As JC1-JC8 when being high, relay J 1-J8 coil blackout, relay J 1-J8 disconnects, and output terminal K1-K8 is output as 12V, thus the output high level is 12V, low level is the switching signal of 0V.
As shown in Figure 7, D/A change-over circuit of the present invention is by low noise cmos operational amplifier U11 2272 of high input impedance and U12 2274, bus driver chip U13, and U14 LVC245A and D/A conversion chip U16 DAC7625 and coding chip U15 interconnect and form.CPLD U15 is by the Data Update and maintenance output of address wire and other control buss decoding back control chip U16, the CPU of controller obtains to want data converted by 12 position datawire XD (0-15) innumber storage 12, these data are delivered to bus driver chip U13 through data bus XDB (0-11), the DB (0-11) of 12 bit data of U14 through overdriving delivers in the D/A conversion chip U16, carry out the D/A conversion, export 4 tunnel analog quantitys.
As shown in Figure 8, circuit linearity insulating circuit of the present invention adopts high performance linear optical coupling U17 ISO124 (sexual isolation of every road analog quantity input and output average line) and an operational amplifier U18 OPA237 to form.Simulating signal is input in the linear optical coupling U17 by Vin, converts voltage Vout output to through operational amplifier U18.Be that simulating signal is exported from Vout through buffer circuit by the Vin input.Shown in this figure is general, and all analog quantitys are all isolated the back from the AIN input and exported by AOUT.The present invention has adopted 8 groups of circuit linearity insulating circuits altogether.Removing the electric capacity that links to each other with the U18 negative terminal in figure is that all the other electric capacity of 1000uF are 1uF, and inductance is 10uH, and the resistance that links to each other with the U18 anode is 9.76K Ω, 4.75K Ω when the resistance that links to each other with U17 Vout is, the Vout=Vin of circuit.During as input, the simulating signal outside the controller is through being imported by Vin after the signal Processing, and the isolation back is outputed to through ADCINn by Vout and is input among the CPU.During as output, the VOUTn of the D/A conversion chip 14 of Fig. 6 is outputed to outside the controller by AOUT through isolating the back by the AIN input process of circuit linearity insulating circuit after the signal Processing.
As shown in Figure 9, analog signal processing circuit of the present invention is by operational amplifier U19, and U20 LM258 and resistance are formed.The present invention always has 8 tunnel simulating signals, four tunnel inputs, four tunnel outputs.In four tunnel inputs, acceleration pedal position signal AI1 and brake pedal position signal AI3 do the level conversion of 0V-5V to 0V-3V, and level conversion realizes by the precision resistance dividing potential drop; Acceleration pedal position signal AI2 is left intact, and directly delivers to circuit linearity insulating circuit and isolates.In four tunnel outputs, throttle position control signal AO1 is left intact and directly delivers to buffer circuit output; Clutch position control signal AO2 does the conversion of 0V-3V level to 0V-5V.Resistance, precision resistor and operational amplifier U20 proportion of composing device, directly ratio is amplified.Electric weight pilot lamp control signal is done the conversion of 0V-3V level to 3V-8V.At first carry out scale operation, 0V-3V is become 0V-5V.Totalizer by being made up ofoperational amplifier 6 the stable 3V level addition of the level of 0V-5V and stabilivolt two ends, obtains the 3V-8V level again.
As shown in figure 10, as controller, the transmitting data stream of being imported bypin 4 TXDB converts bus signals to by the LIN transceiver to LIN bus communication of the present invention by U22 PHILIPS TJA1020, and by transceiver control rotative speed and waveform, to reduce EME; Transceiver detects data stream and sends to microcontroller by pin RXD at theinput pin 1 of LIN bus, and sleepcontrol input pin 2 NSLP can control by the port pinout of microcontroller, link to each other with a resistance by IO output.Theoutput pin 6 of LIN bus pulls into the HIGH height by an inside terminals resistance, and pin LIN is used for transmitting and receive data on the LIN bus, adopts the communication of 12V unibus; Must with diode pin INH orpin 7 BAT be connected withpin 6 LIN by the non-essential resistance RMaster of series connection when being used as main frame, it is host node or from node that JP7 is used for control,pin 7 electric capacity improve the EME and the EMI performance of LIN system, andpin 6 electric capacity are the 10uF+12V power filtering capacitor.Drive by U21 SN7407, can whether observe by light emitting diode having information to send on the LIN bus,U22 pin 7 LIN and U10, light emitting diode, resistance links to each other with power supply.TXDB and RXDB drive through CPLD U15 and get, and that input is SCITXDB and SCIRXDB with it.Here the LIN bus module is as main frame and car door, car light, and roof, seat, vehicle body electronic modules such as alarm switch carry out low-speed communication, require and the location status of combined switch according to the node of slow network, transmit a signal to node corresponding, control.
As shown in figure 11, U23 MAX3232 transceiver is adopted in SCI serial communication of the present invention, and circuit only need connect 0.1uF electric capacity as shown in the figure.RXDA, the TXDA pin is SCIRXDA, and the SCITXDA pin is by CPLD U15 changing voltage, and continuous with 12,11 pins of U23,RS3232 2,3, the 5 pin connectors that link to each other with external interface connect 13,14,15 pins of U23.The SCI serial communication module is used for communicating by letter with host computer, with DSP serial ports level and serial ports of computers level conversion, can carry out data acquisition by serial port, also can send related command to control system by serial port, utility command control utilizes the USB module that data are carried out storage of collected.
As shown in figure 12, RTC real-time clock module of the present invention adopts U24 X1226 chip, contains 4K E2PROM is used to store the power down protection data, has the function of clock and calendar, and interface mode is the I2C interface of serial.1,2 pin connects the 32.768K crystal oscillator; 3 pins connect and move power supply 3.3V on the resistance to; 4 pin ground connection; Serial data SDA and clock signal SCL after 5,6 pins are deciphered by CPLD U15, SDA is a bi-directional pin, is used to input or output data, open-drain output in use needs to add the pull-up resistor of 4.7~10k Ω; 7 pins are reserve voltage VBACK, and this input end provides a standby supply voltage for chip, and when on the plate during power-fail, VBACK provides power supply for chip, prevents loss of clock; 8 pins connect power supply.The software register operation of real-time clock module comprises: real-time clock register (RTC), status register (SR), control register (CONTROL), warning register (Alarm0, Alarm1) and client store memory of data.
As shown in figure 13, USB module of the present invention adopts master-slave controller chip U25 SL811HST.DSP read-write XRD directly links to each other with U25 with XWE; U25 sheet choosing and resetting is finished by U15 CPLD decoding, and on draw; Look-at-meoutput pin 19 is drop-down, and this signal was input to DSP U1 interrupt pin through a phase inverter and links to each other for high when interrupt request was arranged;U25 40 pins are used to control the U21 mode of operation, and when wire jumper J2 short circuit, the M/S pin connects height, work in slave mode, under this pattern, can directly link to each other with computing machine by the USB-A interface, the respective drive program is installed, utilizes directly image data of software control interface; When wire jumper J2 did not connect, the M/S pin was a low level, works in host mode, need patch USB flash disk or portable hard drive storage related data at the USB-A interface, and the M/S pin pulls down to ground usually, makes main frame and uses;U25 43 pins are DMA answer signals, and input is used for outside DMA control interface when low, and this moment, host mode should connect high level; U25 5 pin CM are clock multipliers, should connect high level during 12M low speed, and ground connection during 48M full speed is used full speed 12Mbits to carry out data transmission and answered ground connection;U25 7,8 pins are differential data transceive data lines of USB controller, need to be connected in series respectively 29~44Ω resistance R 2 before being connected to equipment, and R3 need meet R4 when for main frame, and R5 is that the resistance of 15K pulls down to ground, and R6 does not connect; R4 connects with R5 and does not connect when for slave, and R6 connects and draws on the 1.5K, and with DATA+, DATA-is connected to USB-A, by the interface of the realization of USB-A interface and external host or equipment; U25 clock or external crystal-controlled oscillation connect uses active crystal oscillator, and Y4 is the active crystal oscillator of 48M high-performance; U25 9,20, and 30 pins connect power supply ground; 6,15,41 pins are just connecing power supply; 42 is A0, and A0 connects the XA0 address wire of U1, is used for address or data register read-write in I/O mapping or memory mapped application, distinguishes address and data, when A0=0, select address wire, the address is operated, when A0=1, select data buffer, data are operated; 21,27,28,29,31,32,33,39,42 pins meet data line XD0~XD7 respectively, are used for the transmission of 8 bit data.Course of work when U25 is in the slave mode of operation: 1. equipment inserts when being connected to PC, and computing machine interrupts detecting slave by internal USB Root Hub and is connected to PC, and PC sends the request of fetch equipment sequence number; 2. slave receives request, and response manufacturer ID and product IDs, PC just load the driver of response according to these two ID, finish enumerating of slave; 3. then move driver if driver exists, do not install if do not exist in prompting.Driver is set up communicating by letter between slave and PC, waits for that PC initiates the request read write command, carries out data transmission.Course of work when U25 is in the host work pattern: portable hard drive is inserted into after interface USB-A powers on, wait for 100ms so that the insertion operation is finished and the device power supply (DPS) steady operation, SL811HST produces the interrupt notification main process equipment and inserts, main frame sends that port enables and reset command is given equipment and reset signal is continued 10ms, enable the 1ms SOF of SL811HST so that carry out the synchronous of Frame, after cancelling etc. reset signal, port is effective, equipment is in default setting, default address and acquiescence control end points are 0, equipment produces response to default addresses for use, main frame fetch equipment description list, and determining how to use these information to give Configuration Values of equipment, main frame is given unique address of devices allocation by default addresses for use.At this moment, configuration is finished, anddefault address 0 is no longer valid, uses the address of setting, and system can carry out file operation to portable hard drive, and data transmission must be initiated and control by main frame each time.Serial port transmitting control commands by PC is to the serial port of proving installation, and stored parameters title and number are wanted in decision, and after using the order of presetting to be provided with, program can be stored variable parameter on request.
As Figure 14, real-time debug downloaded stored circuit of the present invention, U1 address wire XA0~XA18 directly links to each other with U26A0~A18, U1 data line XD0~XD15 directly links to each other with U26 D0~D15,XINTF zone 6 directly directly links to each other with storer chip selection signal CE with 7 chip select line XZCS6AND7, DSP read-write XRD links to each other with WE with storer OE with XWE, the direct ground connection of high low byte control BHE, BLE.When MP/ MC=1, system is in microprocessor model, chooses the sheetexternal space 7, and system debug can be hung emulator and directly be downloaded in this program storage.
As Figure 15, central controller electric power system of the present invention adopts U27 TPS73HD318 chip,input 3,4,9,10 pin ground connection, 5,6,11,12 pins meet 5V power supply VCC,output 17,18,19 pins link to each other and by connecing the 10U electrochemical capacitor behind the magnetic bead and 0.1uF tantalum electric capacity obtains 3.3V digital power and 3.3VA analog power,output 23,24,25 pins link to each other and by connecing the 10U electrochemical capacitor behind the magnetic bead and 0.1uF tantalum electric capacity obtains 1.8V digital power and 1.8VA analog power, because 22 pin RESET output is out to leak NMOS, need connect and move 3.3V on the 10K resistance to specify the logic high signal level voltage, PRST send DSP reset pin XRS after sending signal combination decodings such as CPLD and push-button reset.After system powers on, output 3.3V and 1.8V two-way voltage, electric current is 750mA, and has the function of electrification reset and power monitoring.The electrification reset time is 200ms, and when chip monitors voltage fluctuation when certain limit or 3.3V voltage are reduced to 2.868V, the reset signal output low level is effective.
As shown in figure 16, proving installation of the present invention can be gathered four tunnel simulating signals, export four tunnel simulating signals, import four road frequency signals and ten path switching signals, export eight path switching signals, carry out the isolation of CAN signal photoelectricity, all analog quantitys simulation isolation and all switching signal photoelectricity and isolate, the content of its each signal representative sees table 1 for details.
Table 1
| -5VO | For the outside provides 5V power supply negative terminal | +12 | Storage battery power supply 12V anode |
| +5VO | For the outside provides 5V power positive end | FGND | Storage battery power supply negative terminal, external digital ground |
| WGND | External analog signal ground | | |
| AIN1 | Accelerationpedal position signal 1 | IN01 | The left rear wheel rotating speed |
| AIN2 | Accelerationpedal position signal 2 | IN02 | The off hind wheel rotating speed |
| AIN3 | Brake pedal position signal | IN03 | The output shaft of gear-box tach signal |
| AIN4 | The mailbox oil mass signal | IN04 | Engine rotational speed signal |
| AOUT1 | The throttle position control signal | IN05 | The accelerator pedal zero signal |
| AOUT2 | The clutch position control signal | IN06 | The key signal |
| AOUT3 | Electric weight pilot lamp control signal | IN07 | Mode switching signal |
| AOUT4 | Gearshift locking solenoid control signal | IN08 | The brake pedal zero signal |
| K1 | The engine ignition control signal | IN09 | Clutch coupling is in conjunction with limit signal |
| K2 | The clutch separation control signal | IN10 | The clutch separation limit signal |
| K3 | Engine operation pilot lamp control signal | IN11 | The reverse gear signal |
| K4 | The main relay control signal | IN12 | The neutral gear signal |
| K5 | Motor-driven pilot lamp control signal | IN13 | AIR COND SIG Air Conditioner Singnal |
| K6 | Electric power generation pilot lamp control signal | IN14 | Standby |
| K7 | The alarm lamp control signal | | |
| K8 | Standby | | |
| N1 | Entire car controller VCU of the present invention | N2 | ISG starter motor ICU |
| N3 | Drive motor controller MCU | N4 | Battery management system BCU |
| N5 | Colour liquid crystal display device DCU | N6 | CVT buncher NCU |
| N7 | Electronic throttle controller TCU | | |
The present invention can realize that not only the signals collecting function can also realize the control function to hybrid-electric car, and is as follows:
1, AIN1-AIN4 four tunnel simulating signals input altogether.With accelerationpedal position signal 1 AIN1 is the collection that example is introduced this four tunnel simulating signal.Accelerationpedal position signal 1 AIN1 is input to the voltage that controller is 0-5V, the magnitude of voltage correspondence degree of depth that depressed of accelerator pedal.AIN1 0-5V voltage is exported by AOUT after isolating by the AIN input of the circuit linearity insulating circuit of Fig. 8 after accurate conditioning again, signal after the isolation is input to MCU by the ADCIN of the central controller U1 among Fig. 2 and carries out the A/D conversion, and central controller U1 is worth to determine the degree of depth that accelerator pedal is depressed by this.
2, AOUT1-AOUT4 four tunnel simulating signals output.With electric weight pilot lamp control signal is the output that example illustrates this four tunnel simulating signal.Electric weight pilot lamp control signal is the simulating signal of a 3V-8V.What of the corresponding batteries of electric automobile electric weight of number that pilot lamp lights the height of output voltage drive.At first the central controller U1 among Fig. 2 sends tobus driver chip 14 by data line XD (0-15) with data and latchs, through by the DB (0-11) of thisbus driver chip 14 12 bit data being delivered to D/A conversion chip 16 after the bus driver, each road by address wire and control bus decoding back control D/A need new data more unit output.Because the D/A Voltage Reference is 2.5V, exports 0-5V after 2 times of amplifications.Through handle back output 3-8V voltage as Fig. 9, output to CON35 after isolating as Fig. 8.
3, the IN01-IN04 measurement of totally four road frequency signals.Output shaft of gear-box tach signal IN03 is a frequency signal.By the FIN of Fig. 5 input because input sinusoidal signal waveform, through LM339 relatively after, signal is 12V greater than 0 o'clock output high level, signal level is 0 smaller or equal to 0 o'clock output low level, IN obtains square-wave signal thus, IN is output.Again with this IN signal by the IN of Fig. 4 input, output to by IO through isolating after that central controller U1 catches in the mouth among Fig. 2, by the rising edge detection signal of software, according to definite wheel box input shaft rotating speed of the mistiming of two rising edges at each signal.
4, the IN05-IN14 collection of totally ten path switching signals.This ten road signal all is that high level is that 12V, low level are the switching signal of 0V.Be the collection that example illustrates this ten path switching signal now with accelerator pedal zero signal IN05.When generally accelerator pedal was not depressed, being input to as Fig. 4 IN voltage from accelerator pedal was 0V; When accelerator pedal depressed, the voltage that is input to as Fig. 4 IN was 12V.The collection of this signal is finished by digital quantity input photoelectric isolating circuit shown in Figure 4.When input switch amount voltage when low, central controller software thinks that accelerator pedal does not depress, when input switch amount voltage when being high, central controller software thinks that accelerator pedal is depressed.
5, the K1-K8 output of totally eight path switching signals.Now be the output that example is introduced this eight tunnel control signal with K1.Controller requires the high level of these signal output 12V or the low level of 0V.Shown in Figure 6 as Fig. 2, the IO mouth of the central controller U1 of Fig. 2 outputs to the IOOUT1-8 of Fig. 6, because IOOUT1-8 is connected to DSP IO mouth, output buffer driving force representative value has only 4mA, and the working current that process photoelectricity was isolated 9 o'clock is 16~25mA, so need to increase a driving, here make full use of resource, utilize CPLD to drive output, drive current is 24mA, yet the collector currents ofphotoelectricity isolation 9 outputs are 10mA, is not enough to drive DSP series general-purpose relay, here usechip 8 ULN2803A Darlingtons to drive and amplify, output to CON35 by K (1-8) at last.K under the state of nature (1-8) is external to 12V at central controller, and K (1-8) receives 0V after relay switch is connected, and diode plays the afterflow protective effect in addition.
6, the CAN bus signals sends and receives.The embedded CAN controller of the central controller U1 of Fig. 2 carries out the transmission and the reception of CAN bus signals by Fig. 3 circuit, can be with CAN bus communication (other nodes comprise N1-N7 node as shown in table 1) with other system, and have good stable and anti-interference.The CANTX that data send by central controller U1 during communication sends, and the circuit linearity insulating circuit of process Fig. 3 outputs to bus.The data that receive are imported by the CANRX of central controller U1 through the CAN isolation of Fig. 3 again.U4 CANH shown in Figure 3, CANL directly have one 120 Ω end points build-out resistor, and the CANH by DB9, CANL, and CGND links to each other with external bus.The concrete communication of CAN bus is stipulated by communication protocol.
7, the transmission of LIN bus signals and reception.The communication of LIN bus is always formed and is controlled by the form of message frame, and message frame is made up of the message frame head of host node transmission and the message response of host node or the transmission of slave node.Communication is initiated by main frame, and it has defined transfer rate and has initiated a start message frame head.By the LIN bus network is designed, can carry out the LIN bus communication by circuit as shown in the figure, the resistance that uses when wherein Rmaster is for host node.
8, the time set of RTC real-time clock module and power down protection data write and read.The clock important references of RTC real-time clock module during as data acquisition, its time can precision depends on the frequency of quartz crystal, has 4K EEPROM, and this module is passed through I2The C bus is controlled, here because DSP does not have standard I2C interface, I2The control of C bus realizes that by software algorithm software command comprises: 1. 0xde writes the RTC real-time clock, and 2. 0xdf reads the RTC real-time clock, and 3. 0xae writes E2PROM, 4. 0xaf reads E2PROM cooperates required address and data, just can be to register manipulation.In being written to the EEPROM process, not necessarily leave no choice but detect I2The response bits of C can directly be delayed time over just, still must respond answer signal in read procedure, runs through the back and sends the position of rest signal, confirms that necessarily the signal of being sent out all sends.
9,, can realize ESP control according to wheel steering angle sensor and vehicle speed sensor signal.After the wheel steering angle sensor arrives driver's steering angle and vehicle speed signal, will notify the ESP program module; The ESP program module is calculated the actual motion track of vehicle according to the velocity gauge of each wheel.If actual motion track car following-theory movement locus is had any different, perhaps detect certain wheel-slip (power is grabbed in forfeiture), the ESP program module is the notifying section air valve at first, reduces electronic throttle aperture (receiving oil).Notify brake system that certain wheel is braked then, come the correction motion track.When the actual motion track was consistent with theory movement track (driver intention), ESP automatically terminated control.
10, according to control strategy thought, central controller these signals are effectively handled and the software control algorithm by complexity can be to vehicle launch, quicken, travel, generating, braking energy reclaims and the level and smooth control of different work condition states such as reversing and different road conditions, double dynamical control of engine and motor and handover management, and other important control parts of coordination control and management, maximum overall efficiency is controlled, and pursues the target of higher environmental protection and energy saving.
The present invention utilizes a large amount of actual experiment data in real time that obtain in the control procedure, utilizes MATLAB, Vector, the emulation that carries out curve fitting of software emulation instruments such as Cruise, experiment with computing data or match experimental data curve, the dynamic property of test and evaluation car load, fuel-economy performance.Various parameters in record and the storage vehicle ' process comprise: date Hour Minute Second, accelerator pedal zero signal and position signalling, brake pedal zero signal and position signalling, gear signal, the speed of a motor vehicle, mileage, various signals etc. on this total kilometrage that travels, total kilometres, cell voltage electric current, battery electric quantity SOC, fuel tank fuel quantity signal, engine speed, motor speed and moment of torsion, throttle opening, wheel steering angle sensor signal, the starting time, cut-off time, various switching signal analog quantity input/output signal and the CAN bus.
The data acquisition function of USB interface:
When 1, the USB module is made slave, directly link to each other with PC.New hardware is found in prompting when connecting for the first time, behind the install driver, gathers by the software interface control data.
When 2, the USB module is made main frame, can be connected,, can send foundation, deletion, read-write and the retouching operation that related command carries out file by serial port SCI by portable hard drive or USB flash disk image data with portable hard drive or USB flash disk, and the selection of storage of variables.Under the default situations all correlated variabless are stored in certain sequence.Also can will pass to the PC collection by record data by serial port.In order to prevent that storage medium is extracted in data storage procedure, keep the integrality of data, interrupt data storage by button, mobile memory medium is extracted.
To portable hard drive, may realize following copying by USB storage real time data
1, emulation acceleration V-T curve, relatively mixed motivity type and fuel oil power type acceleration.Automobile can work in pure electronic, three kinds of patterns of pure fuel oil and hybrid power.According to the time, gear shift is calculated direct high (different gear) accelerates to 100km/h (or arbitrary speed) from 20km/h (or arbitrary speed) time, distance with speed data; The continuous gear shift 0km/h of calculating starting accelerates to the max. speed (km/h) in 100km/h (or arbitrary speed) required time, distance and the accelerator; According to the time, gear shift and speed data match direct high (different gear) accelerate to time, the range performance curve of 100km/h (or arbitrary speed) from 20km/h (or arbitrary speed), and the match continuous gear shift 0km/h that starts to walk accelerates to 100km/h (or arbitrary speed) time, range performance curve; Add/acceleration in moderating process change curve in time, the speed of a motor vehicle is change curve in time.
2, emulation continual mileage curve detects direct motor drive dynamic property and direct motor drive distance travelled continuously.Running time during according to pure motor-driven, speed and mileage are calculated max. speed (km/h), calculate and accelerate to 50km/h (arbitrary speed) required time from 20km/h (arbitrary speed), calculate the total distance (km) of can travelling continuously between twice charging.Match cell voltage (V), battery current (A), battery consumption electric weight (Ah), battery consumption power (kW) etc. and distance travelled corresponding relation curve, and multi-state roadway experiment circular chart.
3, the different road conditions fuel consumption per hundred kilometers of emulation curve.According to hundred kilometers real-time fuel tank fuel quantity data computation fuel consumption per hundred kilometers (L/100km), average speed (km/h), operating range (km).
Coasting distance when 4, the speed of a motor vehicle is set in emulation.Set rated speed such as 50km/h, kill engine and motor, calculate coasting distance, the V-T curve during match is slided.
5, emulation energy recovery situation roughly.The energy that regeneration is reclaimed is a uncertain factor, but different braking energy take-back strategies has in various degree braking energy recovering effect in braking procedure, so that select more excellent braking energy take-back strategy.Can slide or braking energy recovery curve under the more different speed of a motor vehicle of match.
6, simulation cycles experimentation intermediate fuel oil consumes.In the experimental debugging process, each round-robin SOC changes and the oil consumption curve when the engine constant speed is moved when engine fuel consumption curve and different solar terms door aperture under the different control strategies; Oil consumption, engine speed, the three-dimensional oil consumption figure of throttle opening.
7, by engine speed being detected speed curves when match engine speed family curve and constant speed operation; According to the theory that relevant paper proposes, result of calculation can be vehicle and engine open loop ADAPTIVE CONTROL etc. necessary moment of torsion data is provided, and whether the checking engine is operated in efficient district, determines the optimum interval scope of engine operation; According to the throttle opening data, match engine air throttle aperture and ignition switch disconnect or the closing characteristics curve; Engine air throttle aperture change curve in the accelerator; The change curve of engine speed in the gearshift procedure.
8, emulation electric efficiency figure.According to motor speed and moment of torsion, efficient, rotating speed, moment of torsion and power characteristic in the match motor course of work; Current of electric voltage comparison curves; The change curve of motor speed in the gearshift procedure.
9, emulation battery status.Battery electric quantity SOC according to a period of time measures, the battery electric quantity SOC constitutional diagram of corresponding time of the battery operated process of match, power of battery change curve, electric battery or monomer charging and discharging currents and voltage characteristic be change curve in time, the battery equilibrium condition curve, current-voltage correlation curve during battery charging and discharging, SOC change curve in time when not having energy recovery and energy recovery is arranged, change in voltage curve during battery charging and discharging, voltage response when discharging and recharging, temperature and charge-discharge characteristic curve with rated current.
By CAN and LIN bus hardware interface, at data acquisition to CAN and each node signal on the LIN bus, utilize CANoe that model creation, emulation, functional test and analysis are carried out in design of CAN/LIN network system and ECU (Electrical Control Unit), estimate CAN network quality thereby detect, to formulate good CAN bus communication protocol; Utilize the CANscope record, estimate CAN bus signals level, it can analyze the influence of various factors to bus characteristics: various type of cables, various cable lengths, bus driver, bus termination, bus lost efficacy, EMC influence is in the mistake of ECU software or CAN controller self etc.