CN101916089B - Configurable passenger car body control system and parameter configuration method thereof - Google Patents

Configurable passenger car body control system and parameter configuration method thereof Download PDF

Info

Publication number
CN101916089B
CN101916089B CN2010102240641A CN201010224064A CN101916089B CN 101916089 B CN101916089 B CN 101916089B CN 2010102240641 A CN2010102240641 A CN 2010102240641A CN 201010224064 A CN201010224064 A CN 201010224064A CN 101916089 B CN101916089 B CN 101916089B
Authority
CN
China
Prior art keywords
module
integrated information
signal
configurable control
parameter configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2010102240641A
Other languages
Chinese (zh)
Other versions
CN101916089A (en
Inventor
季爱明
邱峰
严则进
李江
李春
邢宗智
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
King Long United Automotive Industry Suzhou Co Ltd
Original Assignee
King Long United Automotive Industry Suzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by King Long United Automotive Industry Suzhou Co Ltd filed Critical King Long United Automotive Industry Suzhou Co Ltd
Priority to CN2010102240641A priority Critical patent/CN101916089B/en
Publication of CN101916089A publication Critical patent/CN101916089A/en
Application granted granted Critical
Publication of CN101916089B publication Critical patent/CN101916089B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a configurable passenger car body control system which comprises a vehicle-mounted integrated information module and a plurality of configurable control modules, wherein the vehicle-mounted integrated information module comprises a processor, an on-off input port, a control signal output port, high-speed and low-speed CAN bus interface modules, a digital instrument interface, a storage module and an RS232 interface; and each configurable control module comprises a processor module, an on-off and analog input circuit, a control signal output circuit, a low-speed CAN bus communication module and a storage unit. The invention also discloses a parameter configuration method of the system, which comprises the following steps: generating, downloading and interpreting parameter configuration files, wherein input and output signals of the passenger car body control system are set by the parameter configuration files. The invention enables the passenger car body control system to be flexible and universal and to be used on different models so as to meet different customer requirements, has the advantages of short development cycle and low development cost, and facilitates the after-sale service of the cars and the management of standby and spare parts.

Description

Configurable control system of passenger car body and method for parameter configuration thereof
Technical field
The present invention relates to automotive electronic technology, relate in particular to based on the configurable control system of passenger car body of CAN bus and the method for parameter configuration thereof.
Background technology
Traditional bus body electrical equipment control adopts cable relay mode.Along with electronic technology increasingly extensive application on passenger vehicle; The function of electronic equipment and quantity increase gradually in the vehicle; Traditional cable relay control mode has increased cable weight and the complicacy that is connected; Reduced the reliability that connects, cable wearing and tearing and catabiosis have reduced the security performance of passenger vehicle, have been difficult to satisfy the demand of bus body control.Along with the progress of automotive electronic technology, the bus body control technology progressively develops into the control mode based on bussing technique by traditional cable relay control mode.
Robert Bosch company has proposed the CAN bus in the SAE conference in 1986.Nearly two during the last ten years the CAN bus obtained great success.Because the CAN bus has characteristics such as two-forty, anti-electromagnetic interference (EMI), fault-tolerance and cost are lower; The CAN bus has obtained using comparatively widely in the passenger vehicle control system; Many auto parts and components manufacturer has released the electronic control unit (ECU based on the CAN bus; Electronic Control Unit), like Engine ECU and chassis control ECU etc.
The general employing of existing control system of passenger car body structure as shown in Figure 1.It realizes bus body control by several functions fixing control module and a field bus instrument; Control module, middle control module, back control module and top control module before control module is divided into according to the installation site on bus body; They control the electric equipment of bus body corresponding position respectively, and the function of these modules is all fixed.Field bus instrument provides at a high speed and low speed two-way CAN EBI; The high-speed CAN bus interface module is connected to Engine ECU, ABS (Anti-lock Braking System through the CAN bus; Anti-lock braking system or Anti-skid Braking System; Antiskid brake system) and chassis ECU, low speed CAN bus interface module is connected to each control module through the CAN bus.
Because the basic vehicle of passenger vehicle is increasing, and the mode of production of customer order formula, causes different automobile types and client's body control system demand different, brought challenge for the research and development and the production of control system of passenger car body.At present, can only be respectively divide other research and development design to the body control system of different automobile types and different customer demands, the corresponding a kind of specific body control system of a kind of vehicle, dirigibility and versatility deficiency, the R&D cycle is longer, and R&D costs are higher.In addition, different automobile types and client's control system of passenger car body is the property of there are differences aspect hardware and software, has brought great difficulty for the after sale service of car load factory and standby redundancy management.
Summary of the invention
The present invention seeks to: to the deficiency of prior art; A kind of control system of passenger car body and method for parameter configuration thereof that disposes based on the general programmable of CAN bus is provided, makes the control system of passenger car body of research and development have dirigibility and versatility, can be used on the different automobile types; Satisfy different clients' demand; R&D cycle is short, and the research and development expense is few, and makes things convenient for the after sale service and the standby redundancy management of vehicle.
Technical scheme of the present invention is: a kind of configurable control system of passenger car body contains a vehicle integrated information module and several configurable control modules that link to each other with vehicle body equipment respectively; The vehicle integrated information module comprises the vehicle integrated information module handler; And the switching value input port that links to each other with the vehicle integrated information module handler respectively, control signal output ends mouth, high-speed CAN bus interface module, low speed CAN bus interface module, digital instrument interface, be used to store the non-volatile memory module of the parameter configuration files of configurable control module and vehicle integrated information module, and be used for the RS232 interface that is connected with the computing machine that control system of passenger car body exploitation simulation software is installed; Configurable control module comprises processor module, and the switching value input circuit, simulated measurement input circuit, control signal output circuit, the low speed CAN bus communication module that link to each other respectively with processor module and the nonvolatile memory that is used for the stored parameter configuration file; The input of said vehicle integrated information module and configurable control module, output signal are set by parameter configuration files.
The invention also discloses the method for above-mentioned configurable control system of passenger car body being carried out parameter configuration, comprise the steps:
Step 1: define the vehicle integrated information module of configurable control system of passenger car body and the signal input port of several configurable control modules, the attribute of signal output port on computers;
Step 2: write the output control logic expression formula on computers, describe the steering logic relation of each output signal of configurable control system of passenger car body;
Step 3: on computers to each output control signal logical expression compile, the compiling through after carry out simulating, verifying;
Step 4: the parameter configuration files that generates vehicle integrated information module and several configurable control modules on computers respectively
Step 5: configurable control system of passenger car body establishes a communications link with the computing machine that control system of passenger car body exploitation simulation software is installed; All parameter configuration files are downloaded to the vehicle integrated information module, be stored in the non-volatile memory module;
Step 6: each configurable control module is downloaded respectively and its parameter configuration files one to one from the vehicle integrated information module, and is kept in the nonvolatile memory separately;
Step 7: the vehicle integrated information module is explained execution parameter configuration files separately respectively with several configurable control modules, accomplishes the function setting of whole control system of passenger car body.
Advantage of the present invention is: configurable control system of passenger car body has the characteristics of dirigibility and versatility; This control system of passenger car body installed hardware on different vehicles is identical; The different parameters configuration file of its configurable control module makes each configurable control module have the function of the different bus body equipment of control, thereby makes programmable configuration control system of passenger car body of the present invention have reusability, low construction cycle, characteristics cheaply.In addition, just, the after sale service and the standby redundancy management of vehicle have been made things convenient for owing to can make the vehicle of different automobile types, different customer demands that the control system of passenger car body structure of same hardware configuration all is installed.
Description of drawings
Below in conjunction with accompanying drawing and embodiment the present invention is further described:
Fig. 1 is the structural drawing of the control system of passenger car body of prior art;
Fig. 2 is the structural drawing of the control system of passenger car body of the embodiment of the invention;
Fig. 3 is the structured flowchart of the vehicle integrated information module of the embodiment of the invention;
Fig. 4 is the structured flowchart of the configurable control module of the embodiment of the invention;
Fig. 5 is the low input switch amount signal circuit schematic diagram of embodiment of the invention configurable control module;
Fig. 6 is the circuit theory diagrams that the resistance signal of the configurable control module of the embodiment of the invention is imported;
Fig. 7 is the circuit theory diagrams of exporting road and bridge of the configurable control module of the embodiment of the invention;
Fig. 8 is the partial circuit schematic diagram that the electric current of the configurable control module of the embodiment of the invention is exported;
Fig. 9 is the circuit theory diagrams of embodiment of the invention configurable control module electric current output status signal;
Figure 10 is the parameter configuration work general flow chart of the control system of passenger car body of the embodiment of the invention;
Figure 11 is the structural drawing of unidirectional configuration chain of the control system of passenger car body of the embodiment of the invention;
Figure 12 is the message format figure of parameter downloads of the control system of passenger car body of the embodiment of the invention;
Figure 13 is the frame format figure of parameter downloads of the control system of passenger car body of the embodiment of the invention;
Figure 14 is the workflow diagram of vehicle integrated information module end in the control system of passenger car body parameter downloads process of the embodiment of the invention;
Figure 15 is the workflow diagram of configurable control module end in the control system of passenger car body parameter downloads process of the embodiment of the invention.
Wherein: 1 vehicle integrated information module; 101 vehicle integrated information module handler; 102 switching value input ports; 103 control signal output ends mouths; 104 high-speed CAN bus interface modules; 105 low speed CAN bus interface modules; 106 memory modules; The 107RS232 interface; 108 display drive circuits; 109 digital instrument interfaces; 110 wireless communication modules; 111 buttons; 112 ask to connect packet accouter; 113 overtime timers; 114 vehicle integrated information modules configured trigger pip output ports; 2 configurable control modules; 21 processor modules; 22 switching value input circuits; 23 simulated measurement input circuits; 24 control signal output circuits; 25 low speed CAN bus communication modules; 26 storeies; The configure trigger signal input port of 27 configurable control modules; The configure trigger signal output port of 28 configurable control modules; 3 vehicle body equipment.
Embodiment
Embodiment: as shown in Figure 2; The control system of passenger car body based on the CAN bus of present embodiment comprises a vehicle integrated information module 1 and several configurable control modules 2; Each configurable control module 2 links to each other with several vehicle body equipment; Configurable control module 2 receives the status signal of each vehicle body equipment, and sends control signal and give vehicle body equipment.
Vehicle integrated information module 1 is the center of control system of passenger car body; Structured flowchart is as shown in Figure 3; Comprise vehicle integrated information module handler 101, and the switching value input port 102, control signal output ends mouth 103, high-speed CAN bus interface module 104, low speed CAN bus interface module 105, memory module 106, digital instrument interface 109, RS232 interface 107 and the display drive circuit 108 that are connected respectively with processor 101.Wherein, processor 101 is connected on the digital instrument through digital instrument interface 109, is used on digital instrument, showing the data message of vehicle operating.The output of display drive circuit 108 connects display screen.Memory module 106 comprises non-volatile memory module and random access memory module two parts, stores parameter configuration files all configurable control modules and vehicle integrated information module self in the non-volatile memory module.High-speed CAN bus interface module 104 through high speed power CAN bus be connected to start be, the CAN network of power train equipment; Low speed CAN bus interface module 105 is connected to each configurable control module 2 through low speed Body Control CAN bus, adopts to distribute and the concentrated control mode that combines, and realizes the control to all body electric system equipment.The CAN bus interface module comprises CAN bus transceiver and CAN controller, and CAN bus transceiver one end directly links to each other with the CAN bus, and the other end connects the CAN controller, and the CAN controller links to each other with processor module.Vehicle integrated information module 1 is connected on the computing machine that control system of passenger car body exploitation simulation software is housed through RS232 serial ports 107.
The vehicle integrated information module 1 of present embodiment also comprises the wireless communication module 110 that links to each other with processor 101; Through wireless communication module 110 with information data transmission to background computer, and from the parameter configuration files of the configurable control system of passenger car body of background computer remote download.Wireless communication module 110 can be GPRS module, CDMA module, 3G/4G module, WiFI module or WiMAX module etc., thereby communicates by letter with far-end computer through GPRS network, cdma network, 3G/4G network, WiFI network or WiMAX network respectively.Wherein GPRS network is the most commonly used, and cost performance is higher.Therefore the downloading mode of parameter configuration files has two kinds, before dispatching from the factory, can be transferred to control system of passenger car body through the RS232 serial ports with computing machine, after dispatching from the factory, and just can be through the configuration file of backstage far-end computer Wireless transmission mode down loading updating.
Vehicle integrated information module 1 has the function of following three aspects:
1) function of field bus instrument.The vehicle integrated information module of present embodiment has 6 stepper motor driven pointer gauges, can show the speed of a motor vehicle, mileage, oil mass, engine oil pressure, air drum pressure, and the TFT-LCD screen shows various information, 19 pilot lamp indication travel condition of vehicle.
2) the remote download function with parameter configuration files is uploaded in the car load information acquisition.1Mbps high-speed CAN bus interface module connects high speed power CAN bus, the information of gathering Engine ECU, ABS and chassis control ECU on the power CAN bus; The low speed CAN bus interface module of 125Kbps connects low speed Body Control CAN bus, and the information of gathering body control system is like the information of vehicle body electric equipments such as car door, car light, air-conditioning.The vehicle integrated information module can be transferred to background computer through wireless communication module 110 with the car load information that collects on the one hand; Can be convenient to the work at maintenance service station through wireless communication module 110 from background computer remote download parameter configuration files on the other hand.
3) switch acquisition and control output function.The vehicle integrated information module of present embodiment has the switching value input port, has 12 the tunnel and imports, and comprises 8 tunnel low inputs and 4 tunnel high inputs, can gather near the switching value signal of the distinct device of different instrument platform.4 tunnel control signals output of vehicle integrated information module can be controlled near the electric equipment the passenger vehicle instrument desk respectively, and the steering logic of output control signal is by control system of passenger car body exploitation simulation software programming and configuration decision.
The vehicle integrated information module of present embodiment adopts the AT91SAM9263 chip of atmel corp as vehicle integrated information module handler 101; Wireless communication module adopts the GTM-900C of Huawei Company, and the non-volatile memory module adopts the NAND Flash flash memory of 32M.
The structured flowchart of the configurable control module 2 in the control system of passenger car body is as shown in Figure 4, and it is equivalent to functional control module of the prior art.Configurable control module 2 comprises the MCU processor module 21 of automobile, and the switching value input circuit 22 that links to each other with processor module 21, simulated measurement input circuit 23, control signal output circuit 24, low speed CAN bus communication module 25 and storer 26.Each road input port of switching value input circuit 22 and simulated measurement input circuit 23, and each road output port of control signal output circuit 24 links to each other with various vehicle body equipment 3.Storer 26 comprises nonvolatile memory and RAS two parts too.Nonvolatile memory 26 is used to store the network address and the parameter configuration files of this module.
Configurable control module 2 is connected to vehicle integrated information module 1 through low speed CAN network, realizes the control of bus body electric equipment.Low speed CAN bus interface module 105 structures of said low speed CAN bus communication module 25 and vehicle integrated information module are identical.
Configurable control module 2 is with prior function control module difference: prior function control module function is fixed, and can only control pre-set electric equipment respectively, and can not change; For different vehicle body equipment, need design corresponding functional control module respectively, do not have unified input/output port circuit, need design imput output circuit according to the vehicle body equipment that reality connects.And the configurable control module of present embodiment and vehicle integrated information module all have standardized hardware and basic software; Has identical input/output port circuit; Basic software separates with bus body control function software; Parameter configuration files through carrying out separately realizes the Different control function, has better flexibility and versatility.The hardware and the basic software that is to say all configurable control modules of installing on the passenger vehicle can be identical; Basic software itself does not have any control function; But realize the configuration of function according to configuration option files; Explain the executable code in the execution parameter configuration file, realize the control of different bus body electric equipments.
The Hardware configuration of configurable control module 2 is following: the switching value input circuit 22 of configurable control module 2 can be gathered the switching value signal of 12 tunnel low inputs and 4 tunnel high inputs; Develop the setting of the parameter configuration files of simulation software generation through the control system of passenger car body of computing machine; All input ends can be gathered different vehicle body signals, close signal and empty filter alerting signal etc. like windscreen wiper reset signal, front fog lamp working signal, brake shoes alerting signal, retarder working signal, reverse gear signal, the low alerting signal of water level, rear door.The circuit theory diagrams of 12 tunnel low input switch amount signal acquisition circuits are as shown in Figure 5.
The processor module 21 of configurable control module 2 adopts the special-purpose MCU chip of the automotive electronics MC9S08DV60 of Freescale company.Among Fig. 5, triode Q1 and Q2 form cascode-common-collector amplifier.Cascode-collector has very low output resistance altogether, has strengthened the ability of the charged capacitive load of amplifying circuit.The grounded emitter of triode Q1; Collector is connected to the base stage of triode Q2 through resistance R 2; The base stage of triode Q1 connects electric capacity charging control signal LOW_IN_EN through resistance R 1; Capacitor C 5 and resistance R 6 are connected in series between the collector of emitter and triode Q2 of triode Q1; The collector of triode Q3 is connected to the collector of triode Q2 through resistance R 6, and the base stage of triode Q3 connects 12 tunnel low input switch signals collecting control signal LOW_EN_S through resistance R 7, and the emitter of triode Q3 is connected to 12 tunnel low effective input switch amount signal LOW_INP0~LOW_INP11 of bus body equipment respectively through the resistance R 9~R20 of series connection.Wherein, LOW_IN_EN links to each other with the I/O mouth PTD5 of MC9S08DV60 chip; LOW_EN_S links to each other with the I/O mouth PTF3 of MC9S08DV60 chip; LOW_INP0~LOW_INP11 is input to PTC and the PTG mouth of the GPIO of MC9S08DV60 chip respectively, the PTC0 that comprises PORT C totally 4 pins to the PTG2 of totally 8 pins of PTC7 and PORT G to PTG5.
Each when gathering the effective switching value signal of 12 tunnel low inputs, the PTD5 pin output high level signal of MC9S08DV60 chip is changed to high level with LOW_IN_EN, triode Q1 and Q2 conducting, and capacitor C 5 is charged.The high level that LOW_IN_EN keeps a period of time is full of capacitor C 5; The PTD5 pin output low level of MC9S08DV60 chip then, PTF3 pin output high level is changed to low level with LOW_IN_EN; LOW_EN_S is changed to high level; At this moment, triode Q3 conducting, the MC9S08DV60 chip reads the state of LOW_INP0~LOW_INP11.After running through LOW_INP0~LOW_INP11 state, PTF3 pin output low level is changed to low level with LOW_EN_S.When gathering next time, the PTD5 pin is exported high level once more, and LOW_IN_EN is changed to high level, begins capacitor C 5 chargings.
The simulated measurement input circuit 23 of configurable control module 2 can be gathered 4 tunnel simulating signals; Wherein one the tunnel is used to gather battery voltage; Resistance signal is gathered on its excess-three road; Optionally connect engine water temperature sensor, engine oil pressure pickup, amount of fuel sensor or air drum pressure transducer, be used to measure corresponding engine water temperature, engine oil pressure, amount of fuel or air drum pressure.The input circuit of 3 road resistance signals is as shown in Figure 6.
Triode Q4 and Q5 form cascode-common-collector amplifier.The grounded emitter of triode Q4; Collector is connected to the base stage of triode Q5 through resistance R 3; The base stage of Q4 connects electric capacity charging control signal RES_CHAR through resistance R 55; Capacitor C 44 and resistance R 35 are connected in series between the collector of emitter and Q5 of Q4; The collector of triode Q15 is connected to the collector of triode Q5 through resistance R 35; The base stage of triode Q15 connects 3 road resistance input acquisition controlling signal RES_IN_EN through resistance R 91, and the emitter of triode Q3 connects signal AD_VBAT, and is connected to 3 road resistance signal input end RES_INP0~RES_INP2 through the resistance R 83~R85 of series connection respectively; Import the signal of sensors such as engine water temperature, amount of fuel, engine oil pressure or air drum pressure respectively, the resistance signal input end also is connected to the input port of processor module 21 respectively through the resistance R 87~R89 of series connection.Wherein, the output port of RES_CHAR, RES_IN_EN connection processing device module 21, the input port of signal AD_VBAT connection processing device module 21.Be specially: RES_CHAR is connected to the I/O mouth PTB2 pin of MC9S08DV60, and RES_IN_EN links to each other with the I/O mouth PTB3 pin of MC9S08DV60.AD_RESIN0~AD_RESIN2 is connected respectively to the I/O mouth of MC9S08DV60.
According to the software arrangements working method, low effective input switch amount acquisition mode of the configurable one-tenth of 3 road resistance signal input circuits of configurable control module 2 or resistance measurement mode.Circuit diagram similarity by Fig. 5 and Fig. 6 just can draw, and with 12 the tunnel to hang down input switch amount circuit similar, processor module is from AD_RESINx port processing switching value signal when being configured to low effective input switch amount signals collecting.Ifs circuit is configured to the resistance measurement mode, when carrying out resistance measurement, earlier RES_CHAR is changed to high level, and triode Q4 and Q5 conducting give capacitor C 44 chargings.The high level that RES_CHAR continues a period of time makes capacitor C 44 be full of electricity, then RES_CHAR is put lowly, and RES_IN_EN is changed to high level, triode Q15 conducting.When measuring each road resistance, at first measure the analog voltage of the AD_VBAT that links to each other with the port of MC9S08DV60 chip, measure the aanalogvoltage AD_RESINx of corresponding circuit then, wherein x=0,1 or 2.After all loop measurements finish, RES_IN_EN is put low.When beginning was measured next time, RES_CHAR was changed to high level, gave capacitor C 44 chargings.Utilize formula 1 can calculate the resistance value of input, wherein R is the resistance value of R83~R85, and R83, R84, R85 resistance all equate, are R 0
RES _ INPx = AD _ RESINx AD _ VBAT - AD _ RESINx R 0 - - - ( 1 )
The control signal output circuit of configurable control module 2 comprises that 3 road and bridge output and the high-end big electric current of 4 road 2A, 2 road 3.7A, 1 road 9A export, and can be used for controlling the equipment such as car light, cooling fan, defroster, electric horn, Wiper motor and dryer of passenger vehicle.
Fig. 7 is a road in the 3 road and bridge output circuits, and other two-way are similar, comprise chip U8 and chip U4, triode Q16 and mating circuit on every side.Wherein, Chip U8 is FET BTS141; Chip U4 is FET BTS660P, and the IN port of chip U8 connects signal 5AH_DRV0 through resistance R 110, and the IN port of chip U4 connects the collector of triode Q16 through electric capacity R106; The base stage of Q16 connects signal 9AH_DRV0 through resistance R 107, and 5AH_DRV0 and 9AH_DRV0 are respectively the control signal of 5A and the output of 9A electric current bridge.In Fig. 8,5AH_DRV0 links to each other with the input pin of chip U14 and U30 respectively with 9AH_DRV0.Bridge is exported the high-end output of configurable one-tenth, low side output and bridge output.When bridge output was configured to high-end output, it is invalid that 5AH_DRV0 keeps always, and effective as 9AH_DRV0, bridge is exported the 9A electric current.When bridge output was configured to low side output, it is invalid that 9AH_DRV0 keeps always, and effective as 5AH_DRV0, bridge can be imported the 5A electric current.When bridge output was configured to bridge output, 5AH_DRV0 and 9AH_DRV0 were alternately effective, bridge output 9A electric current and input 5A electric current, the rotating of may command motor.
Fig. 8 has provided the current output circuit of 2 road 2A and 2 road 3.7A, and the current output circuit of all the other two-way 2A similarly mainly comprises chip U1, chip U7, chip U14, chip U30 and resistance, capacitor element that some are used.Chip U1 is the big current power switch of high-end intelligence (binary channels) chip BTS723GW, and U7 is flash smart power switch (binary channels) chip BTS5215L.2A_DRV0~2A_DRV3 and 3.7A_DRV0~3.7A_DRV1 are respectively the control signal of 4 road 2A and the output of 2 road 3.7A electric currents; Chip U14 and U30 are transformation from serial to parallel chip 74HC595; They are connected with PIN the 19th pin of the SPI of MCU through the MOSI port of the 14th pin; Convert the serial data of MCU output into parallel data; Comprise 2A_DRV0~2A_DRV3,3.7A_DRV0~3.7A_DRV1,9A_DRV0,9AH_DRV0~9AH_DRV2,5AH_DRV0~5AH_DRV2; Wherein, 2A_DRV0~2A_DRV1 and 3.7A_DRV0~3.7A_DRV1 are in order to chip for driving U1 and U7 work, and 5AH_DRV0 and 9AH_DRV0 are used for driving chip U8 and the U4 work of Fig. 7.Among Fig. 8,2A_ST0~2A_ST1 and 3.7A_ST0~3.7A_ST1 are the circuit state output port, and 2A_OUT0~2A_OUT1 and 3.7A_OUT0~3.7A_OUT1 are the current output terminal mouth.Can obtain the similar circuit of one road 9A electric current output equally according to Fig. 8.
The high-end big current output circuit of the control signal of configurable control module 2 has all adopted the intelligent power semiconductor switch, and that the intelligent power semiconductor switch has is overheated, overcurrent, short circuit and over-voltage protecting function.Chip U4-BTS660P, chip U1-BTS723GW and chip U7-BTS5215L also have the open circuit measuring ability.BTS660P monitoring flow in real time crosses the electric current of switch, and it estimates out through built-in circuit sensor monitors current IS.When the circuit operate as normal, the size of IS is directly proportional with load current.If the chip operation drive signal is effective, and the IS output current is 0, then show load open circuit.When drive signal was effective, chip U1-BTS723GW output status signal 2A_ST0~2A_ST1 was a high level; When drive signal was invalid, output status signal was a low level.But under the load open circuit state, output status signal is a high level always, if promptly the BTS723GW drive signal is invalid, but corresponding channel status signal is a high level, can judge the related channel program load open circuit.Chip U7-BTS5215L in normal operation, output status signal 3.7A_ST0~3.7A_ST1 is a high level always, but when drive signal in sight was invalid, if status signal is a low level, then decidable was a load open circuit.
Configurable control module 2 also has 4 tunnel high effectively input, 1 road height and effectively wakes input, 1 tunnel low input, one tunnel pulse input and 1 road PWM (the Pulse Width Modulation of effectively waking up up; Pulse-length modulation) output; What adopt is prior art, does not give unnecessary details here.
Processor die chip block MC9S08DV60 can obtain the work state information of controlling output circuit, plays the effect of protection and monitoring.As shown in Figure 9, current output circuit state output signal 2A_ST0~2A_ST3 and 3.7A_ST0~3.7A_ST1 signal is connected to the parallel input end of parallel input string line output chip U17.Chip U16 and U17 are chip 74SHC165, the serial output signal SERIAL_DO and the SERIAL_D1 of two chips, and input a slice triple gate chip U15-74HC125, the output port MISO of 74HC125 is connected to the SPI interface PIN20 pin of MC9S08DV60.MC9S08DV60 reads the state of 2A_ST0~2A_ST3 and 3.7A_ST0~3.7A_ST1 signal through the SPI interface.5AH_ST0~5AH_ST2,9AH_ST0~9AH_ST2 and 9A_ST0 are the electric current output status signal, and they are connected respectively to PIN59, PIN62, PIN64, PIN46, PIN49, PIN54 and the PIN50 pin of the ADC passage of MC9S08DV60.HIGH_IN0~HIGH_IN3 is for pass through 4 tunnel high input switch amount signals of dividing potential drop.
The CAN bus transceiver chip of the low speed CAN bus communication module 25 of configurable control module 2 adopts the TJA1054 of PHILIPS Co..CAN bus controller and nonvolatile memory are integrated among the chip MC9S08DV60 of processor module.
Traditional vehicle body low input-signal Acquisition Circuit and resistance measuring circuit adopt the reference voltage source of module working power as signals collecting, and owing to have electric current to flow through in the acquisition circuit always, power consumption is bigger.Low input-signal Acquisition Circuit and resistance measuring circuit that the configurable control module 2 of present embodiment adopts; Avoided using the reference voltage source of module working power as signals collecting; When reducing module dissipation, improved the Electro Magnetic Compatibility of configurable control module.
Introduce the method for parameter configuration of control system of passenger car body below: method for parameter configuration mainly comprises the generation of parameter configuration files, the download of parameter configuration files, and three processes are carried out in the explanation of parameter configuration files.Wherein, the computer terminal that is created on of parameter configuration files is accomplished, and the explanation of parameter configuration files is carried out in the vehicle integrated information module of control system of passenger car body and each configurable control module and accomplished.The download of parameter configuration files comprises from downloaded to the vehicle integrated information module, and downloads to two steps of each configurable control module from the vehicle integrated information module.
The control system of passenger car body exploitation simulation software of installing on the computing machine provides instruments such as project management, development and Design and simulating, verifying; Can carry out secondary development design and simulating, verifying to control system of passenger car body to concrete vehicle or customer demand; Mainly be through newly-built, editor, compiling, emulation; The structure control system of passenger car body finally obtains effective parameter configuration files.
Create a control system of passenger car body on computers; Comprise a vehicle integrated information module and several configurable control modules; The number of the body electric system equipment of control and function is different as required; The vehicle integrated information module and the signal input port of each configurable control module 2, the attribute of signal output port in the newly-built and configuration control system of passenger car body of control system of passenger car body exploitation simulation software through the PC platform; Comprise the kind of information of the pairing bus body signal of each I/O end and the signal type of I/O, whether input/output signal need pass through CAN bus transmission etc.
The input signal types of control system of passenger car body comprises six kinds: height is effectively imported, is hanged down and effectively import, wake up input, pulse input, voltage input and resistance input.For waking input, pulse input, voltage input and resistance input up, their working method can be set in addition, wake input up and can be set to wake up input mode or switching value input mode; The pulse input can be set to pulse input mode or switching value input mode; The voltage input can be set to aanalogvoltage input mode or switching value input mode; The resistance input can be set to artifical resistance input mode or switching value input mode.For the artifical resistance input mode of resistance input, its simulating signal source also can be set, be divided into 4 kinds of engine water temperature sensor, engine oil pressure pickup, amount of fuel sensor and air drum pressure transducers.
The output signal type of control system of passenger car body comprises 3 kinds: common high-end output, PWM output and bridge output.For common high-end output, can be set, the time of time-delay output with the simulation timing relay; PWM output can be set to PWM output or two kinds of working methods of common high-end output; Bridge output can be set to common high-end output, low side output and 3 kinds of working methods of full-bridge output.
After the corresponding relation of the input and output of all hardware structure of accomplishing control system of passenger car body and attribute are provided with; Then; Describe with the logic rules of the language that gets close to nature on computers, the logical expression of redaction ruleization is described the steering logic of each output able to programme of control system of passenger car body.Each exports pairing vehicle body signal name and the logical operation relational symbol is selected in drop-down list.The logical expression of redaction ruleization shows in edit box.Edit box support editor, operation such as duplicate, shear, paste, cancel, assist the editor of completion logic language.Steering logic to each output after editor accomplishes compiles.
Control system of passenger car body exploitation simulation software is according to being connected mapping relations, the intermediate expression of automatic formation logic expression formula between the IO port in vehicle body signal and the configurable control system of passenger car body.In intermediate expression, input vehicle body signal representes with INX, and X representes to import the sequence number of the configurable control system of passenger car body input port that the vehicle body signal is connected to or the virtual serial number of the information that the CAN network sends, like IN5.Output vehicle body signal representes with OUTX, and X representes to export the sequence number of the output port of the control system of passenger car body that the vehicle body signal is connected to, like OUT5.
Be exemplified below:, suppose that alarm lamp switching signal, left steering lamp switch signal, ignition switch ACC position signal and ignition switch ON position signal are connected respectively to No. 1, No. 3, No. 5 and No. 7 ports of the input port of configurable control system of passenger car body for the left side front directional.Sequence number is that the steering logic expression formula that the signal of 5 output port output drives the left side front directional is:
Left side front directional=alarm lamp switching signal || (left steering lamp switch Xin Hao && (ignition switch ACC position signal || ignition switch ON position))
The intermediate expression that generates according to this logical expression is:
OUT5=IN1||(IN3&&(IN5||IN7))
The syntax of logical expression design are as follows:
< expression formula >: :=expression formula>&& < expression formula>| < expression formula>|| < expression formula>|! < expression formula>| (< expression formula >) | < expression formula>> < expression formula>| < expression formula>< < expression formula>| < expression formula>>=< expression formula>| < expression formula >=< expression formula>| < identifier >
< identifier >: :=< variable>| < no sign constant >
< variable >: :=< character string>< numeral>{ < numeral>}
< no sign constant >: :=< numeral>{ < numeral>}
< numeral >: :=0|1|2|3|4|5|6|7|8|9
< character string >: :=IN|OUT
Through patterned simulation software, simulating, verifying is carried out in output control logic and parameter setting to control system of passenger car body in computing machine.Emulation comprises two parts, and a part is the virtual car panel board, and the instrument that this panel board imitates on the real car is fully made; Another part is a virtual signal generator, simulation vehicle body signal.The input signal of each change that emulator can produce signal generator is handled, the accuracy of the light on and off verifying logic of the output lamp through the signal lamp on the panel board and each module.
After the simulating, verifying logical expression is correct; Control system of passenger car body exploitation simulation software on the computing machine is according to the syntax of logical expression; Logical expression to each output port of configurable control system of passenger car body carries out lexical analysis; And the algorithm of employing operation precedence, carry out grammatical analysis, generate the intermediate code of the explanation execution that supplies configurable control system of passenger car body.Intermediate code is made up of the instruction of a series of RISIC of being similar to microprocessors; Instruction is independent of the processor of the concrete use of configurable control system of passenger car body, and every instruction regular length takies 24bit, has 9 types instruction; Wherein, The 16-18bit of all instructions has the destination register value, and 000-111 represents register R0-R7 respectively, and the instruction type and instruction is encoded as follows:
1. read the real-time data base instruction: operational code (20-23bit): 0000;
Function: the byte data that will import in real-time data base or the output real-time data base is delivered in the general-purpose register, uses when being used for single input signal or output signal as the triggering logic.
Non-productive operation sign indicating number (19bit): 0 represents direct addressing method; Source operand 1 (8-15bit): useless; Source operand 0 (0-7bit): the address of source operand in real-time data base.
2. read the 16bit constant instruction: operational code (20-23bit): 0000;
Function: the 16bit constant is delivered in the general-purpose register, be used for the constant access of CL Compare Logic.
Non-productive operation sign indicating number (19bit): addressing mode is counted in 1 representative immediately;
Source operand 0 (0-15bit): constant.
3. logical OR operational order: operational code (20-23bit): 1000;
Function: operand 1 and operand 2 actuating logics or operation, the result is placed in the general-purpose register;
Non-productive operation sign indicating number (19bit): 0 represents direct addressing method; Source operand 1 (8-15bit): the address of source operand 1 in real-time data base; Source operand 0 (0-7bit): the address of source operand 0 in real-time data base;
Non-productive operation sign indicating number (19bit): 1 represents the register addressing mode; Source operand 1 (8-15bit): the general-purpose register at source operand 1 place; Source operand 0 (0-7bit): the general-purpose register at source operand 0 place.
4. logical and operational order: operational code (20-23bit): 0100;
Function: operand 1 and operand 2 actuating logics and operation, the result is placed in the general-purpose register, is used for the logical and operation of two signals.The definition of 0bit-19bit is identical with the logical OR operational order.
5. logic inversion operation instruction: operational code (20-23bit): 1100;
Function: operand actuating logic inversion operation, the result is placed in the general-purpose register, is used for the signal logic negate.
Non-productive operation sign indicating number (19bit): 0 represents direct addressing method; Source operand 1 (8-15bit): useless; Source operand (0-7bit): the address of source operand in real-time data base;
Non-productive operation sign indicating number (19bit): 1 represents the register addressing mode; Source operand 1 (8-15bit): useless; Source operand 0 (0-7bit): the general-purpose register at source operand 0 place.
6. logic is relatively greater than operational order: operational code (20-23bit): 0010;
Function: operand 1 compares greater than operation with operand 2 actuating logics, and the result is placed in the general-purpose register, is used for a simulating signal and constant actuating logic relatively greater than operation.
7. logic is relatively less than operational order: operational code (20-23bit): 1010;
Function: operand 1 compares less than operation with operation 2 actuating logics, and the result is placed in the general-purpose register, is used for a simulating signal and constant actuating logic relatively less than operation.
8. logic is relatively more than or equal to operational order: operational code (20-23bit): 0110;
Function: operand 1 compares more than or equal to operation with operand 2 actuating logics, and the result is placed in the general-purpose register, is used for a simulating signal and constant actuating logic relatively more than or equal to operation.
9. logic is relatively smaller or equal to operational order: operational code (20-23bit): 1110;
Function: operand 1 compares smaller or equal to operation with operation 2 actuating logics, and the result is placed in the general-purpose register, is used for a simulating signal and constant actuating logic relatively smaller or equal to operation.
The definition of the 0bit~19bit of instruction 6~instruction 9 is identical, is specially:
Non-productive operation sign indicating number (19bit): 1 represents direct addressing method; Source operand 1 (8-15bit): the address of source operand 1 in real-time data base; Source operand 0 (0-7bit): the general-purpose register at constant place;
Non-productive operation sign indicating number (19bit): 0 represents the register addressing mode; Source operand 1 (8-15bit): the general-purpose register at source operand 1 place; Source operand 0 (0-7bit): the general-purpose register at constant place.
For example: according to the intermediate expression of the logical expression of left side front directional: OUT5=IN1|| (IN3&& (IN5||IN7)), the intermediate code that the compiling back generates is 0x000001; 0x000103; 0x000205; 0x000307; 0x8A0203; 0x490102; 0x880001.
Then; The computing machine that control system of passenger car body exploitation simulation software is installed directly links to each other with the vehicle integrated information module through the RS232 serial ports; Or carry out radio communication with the wireless communication module of vehicle integrated information module and be connected; To download in the non-volatile memory module 106 of vehicle integrated information module 1 through the parameter configuration files of compiling, simulating, verifying through direct transmission or communication; Each configurable control module 2 is downloaded respectively and its parameter configuration files one to one from vehicle integrated information module 1 then, and is saved in the nonvolatile memory 26 separately, also can not lose even preserve back vehicle outage.
The parameter configuration files of vehicle integrated information module 1 comprises following data content:
(11) signal type of the input and output port of vehicle integrated information module 1 and the configuration parameter of describing the mapping relations of the vehicle body device signal link to each other with each port are tabulated;
(12) the CAN network configuration data of vehicle integrated information module 1, the receivable information identifier ID of the CAN bus controller that for example is provided with in the CAN bus communication module number tabulation;
(13) intermediate code of the output control logic of all output ports of vehicle integrated information module 1 compiling generation.
The parameter configuration files of configurable control module 2 comprises following data content:
(21) signal type of the input and output port of configurable control module 2 and the configuration parameter of describing the mapping relations of the vehicle body device signal link to each other with each port are tabulated;
(22) the CAN network configuration data of configurable control module 2;
(23) intermediate code of the output control logic of all output ports of configurable control module 2 compiling generation.
At last, the basic software of vehicle integrated information module and several configurable control modules is explained the execution parameter configuration file respectively, accomplishes the function setting of control system of passenger car body.The basic software of vehicle integrated information module and configurable control module is divided into two big parts on function, and the one, download the parameter configuration files function; The 2nd, the explanation of parameter configuration files and execution function.
The content that comprises following several respects is carried out in the explanation of parameter configuration files:
1. after configuration parameter is downloaded completion, carry out configuration parameter and download the initialize routine after accomplishing;
2. according to the configuration data of IO port, the working method of IO port is set;
3. the vehicle integrated information module is provided with low speed CAN bus interface module according to CAN network configuration data in the parameter configuration files, and configurable control module is provided with low speed CAN bus communication module according to the CAN network configuration data in the parameter configuration files;
4. explain the intermediate code of the logical expression of carrying out output port.
Comprehensive module of on-vehicle information and configurable control module are before configuration option files is downloaded; At first carry out initial work; Be used for the universaling I/O port initialization that configuration option files is downloaded; Be used for the CAN controller initialization that configuration option files is downloaded, nonvolatile memory, non-volatile memory module initialization.
The comprehensive module of on-vehicle information directly obtains or communication acquisition configuration option files from computing machine, and is kept in the non-volatile memory module.Basic software reads parameter configuration files from the non-volatile memory module.
Configurable control module is accomplished after the initialization, if find do not have legal parameter configuration files in the nonvolatile memory, from the comprehensive module of on-vehicle information, downloads corresponding with it configuration option files through the CAN bus, and is kept in the nonvolatile memory.If there is legal parameter configuration files, then basic software reads parameter configuration files from the FLASH storer.
After having parameter configuration files, basic software carries out system initialization once more according to parameter configuration files.Groundwork comprises, the initialization of the initialization of all spi bus, ADC (analog-digital converter is integrated in processor inside) initialization, the initialization of CAN controller and all IO port working methods.
After initialization finished, basic software was provided with CAN bus communication module 25 according to the CAN bus configuration data in the parameter configuration files, can filter the information identifier ID number tabulation that receives by the CAN bus controller such as in CAN bus communication module, being provided with.Basic software is according to the switching value signal and the simulating signal of all input ports of working method periodic refreshing of the IO port of parameter configuration files setting; And according to the state or the numerical value of current each signal; Explain the intermediate code of the steering logic of carrying out each control output end mouth; Obtain the control signal of each output signal end mouth, realize the control of all bus body electric equipments.Basic software is understood the order number rule of intermediate code, therefore can intermediate code explained out.
Be specially: when the configurable control module of control system of passenger car body and vehicle integrated information module are normally moved; Regularly read the data that switching value status information, analog input value and the CAN network of input port transmit, and write the result in the input real-time data base of RAS.After refreshing of data imported in completion; Configurable control module and vehicle integrated information module read the intermediate code of logical expression of the output port of each use; According to the operation of the regulation of every instruction, reading of data from 8 corresponding temporary variables of the input real-time data base of RAS, output real-time data base and 8 general-purpose registers, and carry out the interrelated logic operation; According to execution result; Need to judge whether the output control signal,, need output state be write in the output real-time data base if the control signal output state changes.
For example: according to the intermediate code of aforesaid intermediate expression OUT5=IN1|| (IN3&& (IN5||IN7)) compiling back generation: 0x000001; 0x000103; 0x000205; 0x000307; 0x8A0203; 0x490102; The explanation implementation of 0x880001 is following:
1. be to read article one instruction 0x000001 the corresponding intermediate code memory block of 5 output from sequence number;
2. according to operation reading of data from the input real-time data base of instruction regulation, the offset address of data in the input real-time data base is 1, deposit data in the corresponding temporary variable of general-purpose register 0;
3. from middle code storage district, read second instruction 0x000103; Operation reading of data from the input real-time data base according to the instruction regulation; Data are 3 at the offset address of input in the real-time data base, deposit data in the corresponding temporary variable of general-purpose register 1;
4. from middle code storage district, read the 3rd instruction 0x000205; Operation reading of data from the input real-time data base according to the instruction regulation; Data are 5 at the offset address of input in the real-time data base, deposit data in the corresponding temporary variable of general-purpose register 2;
5. from middle code storage district, read four instructions 0x000307; Operation reading of data from the input real-time data base according to the instruction regulation; Data are 7 at the offset address of input in the real-time data base, deposit data in the corresponding temporary variable of general-purpose register 3;
6. from middle code storage district, read the 5th instruction 0x8A0203; Operation according to the instruction regulation; Value in the temporary variable of general-purpose register 3 correspondences and general-purpose register 2 corresponding temporary variable intermediate values are carried out the logical OR operation, and the result is placed in the temporary variable of general-purpose register 2 correspondences;
7. from middle code storage district, read the 6th instruction 0x490102; Operation according to the instruction regulation; Value in the temporary variable of value in the temporary variable of general-purpose register 1 correspondence and general-purpose register 2 correspondences is carried out the logical and operation, and the result is placed in the temporary variable of general-purpose register 1 correspondence;
8. from middle code storage district, read the 7th instruction 0x880001; Operation according to the instruction regulation; Value in the temporary variable of value in the temporary variable of general-purpose register 0 correspondence and general-purpose register 1 correspondence is carried out the logical and operation, and the result is placed in the temporary variable of general-purpose register 0 correspondence.Finally obtain sequence number and be 5 the corresponding control signal value of output.
Because adopting, the CAN bus carries out information transmission based on the addressing mode of the information content; And adopt csma/collision avoidance mechanism to carry out medium access control; Priority according to message when clashing is arbitrated, and can face following problem through CAN bus download configuration parameter:
One of which because the basic software and the hardware of each configurable control module are all identical, and have identical default address, through CAN bus download configuration parameter the time, can't be distinguished each configurable control module;
They are two years old; Because installed software is identical in each configurable control module, before accomplishing configuration parameter download and functional configuration, the priority that each configurable control module sends information is identical; Cause the conflict of CAN bus to avoid, influence the download of configuration parameter on the CAN bus.
Therefore, like Figure 11, the present invention is together in series vehicle integrated information module and some configurable control modules through hardwire successively, forms a unidirectional configuration chain.The processor of vehicle integrated information module is provided with configure trigger signal output port 114, and the configure trigger signal of output 24V also is connected with button 111 on the processor, and initial trigger pip promptly has button 111 triggerings to obtain.The processor module of configurable control module is provided with the output port 28 of a configure trigger signal input port 27 and an output 24V configure trigger signal.Vehicle integrated information modules configured trigger pip output port connects the configure trigger signal input port of its first follow-up configurable control module; The configure trigger signal output port of i configurable control module connects the configure trigger signal input port of i+1 configurable control module, i=1 wherein, 2; 3; ..., N-1, N are the sum of configurable control module in the configurable control system of passenger car body.Trigger the configurable control module in the unidirectional configuration chain successively through trigger pip; The configurable control module that is positioned at configuration chain front end is triggered and wake-up earlier; Can download its configuration parameter corresponding earlier, when certain configurable control module wake-up, and after having had configuration parameter; Then trigger pip is transmitted backward, till all configurable control modules in the configuration chain all have configuration parameter.On hardware, in order to cooperate the parameter configuration files method for down loading, the vehicle integrated information module also comprises the request that links to each other with processor 101 connect packet accouter 112, overtime timer 113.
In configurable control system of passenger car body; The configuration parameter of each configurable control module is according to its configurable control module putting in order in unidirectional configuration chain one to one; Be stored in successively in the non-volatile memory module of vehicle integrated information module; The configuration parameter of first configurable control module is placed on the position No. 1, and the configuration parameter of the 2nd configurable control module is placed on the position No. 2, by that analogy.
Before the flow process of describing the configuration parameter method for down loading, introduce more used messages definition in the process that vehicle integrated information module 1 and configurable control module 2 communicate in the configurable control system of passenger car body on the CAN bus.
In the parameter configuration files downloading process, send to the message of vehicle integrated information module 1 by configurable control module 2, IO_ID identifies through the ID identifier; Send to the message of configurable control module 2 by vehicle integrated information module 1, INF_ID identifies through the ID identifier.Wherein, identifier IO_ID has limit priority in the CAN bus, and the priority of identifier INF_ID is taken second place.
In the parameter configuration files downloading process, adopt between configurable control module 2 and the vehicle integrated information module 1 and reply the formula communication mode, the type of message of transmission has 2 kinds, is respectively control message and supplemental characteristic message, and message format is shown in figure 12.Message mainly is divided into two parts, comprises heading and data field, and the type of message sign indicating number is divided into two kinds of control message and supplemental characteristic messages.When type of message is the control message, main command representation command code; When type of message was the supplemental characteristic message, the main command sign indicating number was meaningless.The main command sign indicating number is divided into six kinds: the order of asking to connect, current block configuration parameter downloads initiation command, current block configuration parameter downloads the finish command, the correct acknowledgement command of message transmissions, the order of message transmissions wrong responses and system configuration parameter are downloaded the finish command.The network address of terminal address representation configurable control module coding, since 0 coding, 0xFF is the default network address coding of configurable control module when dispatching from the factory.Total message numerical table shows the message total order of needs when the configuration parameter of current configurable control module transmits.The current message sequence number is represented the sequence number of current message transmission.Message length is represented the length of message, and it is the length of data field.For the control message, data field is empty, and for the supplemental characteristic message, data field is deposited the supplemental characteristic that needs transmission.
The parameter configuration files of configurable module can be divided into several messages, and what deposit in the data field of message is the parameter configuration files data.A message is divided into some frames again through the CAN bus transfer.According to the CAN2.0B agreement, frame is used to fill the data field of CAN information.Its frame format is shown in figure 13.Frame is made up of frame head and data field.Totalframes is represented the frame number that current message comprises; Present frame is represented the frame number transmitted.The network address of the configurable control module of this frame is represented to receive in the address, takies 1 byte.Deposit the parameter configuration files data that need transmission in the data field of frame.
The method that configurable control module is downloaded parameter configuration files from the vehicle integrated information module is shown in Figure 14 and 15, and is specific as follows:
(1) triggers the configure trigger signal through the button on the vehicle integrated information module, make vehicle integrated information module 1 download mode of operation by the parameter configuration files that normal mode of operation gets into configurable control module 2.The vehicle integrated information module is given its first follow-up configurable control module output trigger pip; The zero clearing request packet accouter that connects; And the startup overtime timer, the request of waiting for the configurable control module passback the receive wake-up then message that connects.
(2) suppose that trigger pip is transferred to i configurable control module, i configurable control module of wake-up, i=1,2,3 ..., N makes it get into parameter configuration files by normal mode of operation and downloads mode of operation.I configurable control module reads the network address of this module from the nonvolatile memory of himself; With IO_ID is the ID identifier, sends the request that comprises this configurable control module network address through the CAN bus and connects message to the vehicle integrated information module.In this parameter downloads process; Have only preceding i-1 (i=2; 3 ..., N) all (or itself has had parameter configuration files) preserved in wake-up and the download of having accomplished parameter configuration files to configurable control module; After being in controllable state, i configurable control module just can be triggered and wake-up and download parameter configuration files.Usually, when configurable control module dispatches from the factory, do not have parameter configuration files in the module, the network address is written as the 0xFF of acquiescence.
(3) if in the overtime timer official hour; The correct request that the vehicle integrated information module the receives configurable control module message that connects; The request that is assumed to be i the configurable control module message that connects; The connect correct response message of message of the request of then sending, and the connect network address of i the configurable control module that the value of packet accouter connects as request of current request is included in the response message.Whether the request that vehicle integrated information module comparison configurable control module sends module network address and the request in the message of the connecting packet accouter content that connects equates; If both equate; Then show and have legal parameter configuration files in the configurable control module; Need not to send the parameter configuration files of current configurable control module; Directly make the connect contents value of packet accouter of request add 1, finish the parameter configuration files data of i configurable control module and download, then carry out following step (7); If both are worth unequal; Then according to the connect parameter configuration files of value current configurable control module of index in the non-volatile memory module of vehicle integrated information module of packet accouter of request; Be specially i configurable control module on the corresponding configuration of the parameter configuration files chain on the memory location that memory address is i; Be ready for sending the parameter configuration files data message, download parameter configuration files, and continue to carry out next step to configurable control module.The message if the request of in the overtime timer official hour, not receiving any configurable control module connects, the system configuration parameter that then sends is downloaded end message, finishes the parameter configuration files downloading process, and provides warning message, supplies the user to confirm.
(4) the connect configurable control module of message of the request of sending receives the connect response message of message of request.If erroneous transmissions response message; Configurable control module resends asks to connect message, if transmit correct response message, and the module network address in the comparison response message and the network address of himself; If both are worth identical; Then show to have legal parameter configuration files in this configurable control module, need not to download parameter configuration data, directly export trigger pip and give and its follow-up configurable control module that directly links to each other; And wait for the system configuration parameter download end message that receives the vehicle integrated information module, follow-up configurable control module begins to carry out from step (2); If both are worth unequal; Connect the network address in the response message of request is saved in the unit of depositing this module network address in the nonvolatile memory of this module; The network address as this module; And prepare to receive the parameter configuration files data message, carry out parameter configuration files and download, continue to carry out next step;
(5) the vehicle integrated information module is sent current module parameter configuration file through the CAN bus and is downloaded the beginning message, begins the download when the parameter configuration files of front module, sends the parameter configuration files data message when front module then.At all in the configurable control module of wake-up, have only in module's address and the parameter configuration data message the identical configurable control module in receiver module address to receive and preserve parameter configuration data, parameter configuration files is write in its nonvolatile memory.
(6) after the vehicle integrated information module has been transmitted all parameter configuration files data messages of i configurable control module, send current block configuration parameter downloads end message, and make the connect contents value of packet accouter of request add 1.I its follow-up configurable control module of configurable control module output trigger pip wake-up, and wait for the system configuration parameter download end message that receives the vehicle integrated information module.
The follow-up configurable control module of wake-up repeats the parameter configuration files downloading process of previous configurable control module, begins to carry out from step (2), downloads up to all configurable control module parameter configuration files to finish.
(7) the vehicle integrated information module judges whether the parameter configuration files of the configurable control module of setting number finishes after the parameter configuration files of accomplishing current configurable control module is downloaded.If all having downloaded, the parameter configuration files of all configurable control modules finishes; Vehicle integrated information module transmitting system configuration parameter is downloaded end message; All configurable control module receiving system configuration parameters are downloaded and are finished on the CAN bus; Finish the parameter configuration files downloading process of configurable control module, and get back to normal mode of operation.Otherwise, start overtime timer once more, wait for to receive request that the configurable control module that triggered the sends message that connects.
All configurable control modules receive the parameter downloads end message on the CAN bus, finish the downloading process of parameter configuration files, after promptly begin the process that the explanation of aforesaid parameter configuration files is carried out.
The above is merely the preferred embodiments of the present invention, can not limit the scope that the present invention implements with this, and all simple conversion of doing according to claim of the present invention and description all should still belong to the protection domain that the present invention covers.

Claims (8)

1. a configurable control system of passenger car body is characterized in that: comprise a vehicle integrated information module (1) and several configurable control modules (2) that link to each other with vehicle body equipment (3) respectively;
Said vehicle integrated information module (1) comprises vehicle integrated information module handler (101); And the switching value input port (102) that links to each other with vehicle integrated information module handler (101) respectively, control signal output ends mouth (103), high-speed CAN bus interface module (104), low speed CAN bus interface module (105), digital instrument interface (109), be used to store the memory module (106) of the parameter configuration files of configurable control module (2) and vehicle integrated information module (1), and be used for the RS232 interface (107) that is connected with the computing machine that control system of passenger car body exploitation simulation software is installed;
Said configurable control module (2) comprises processor module (21), and the switching value input circuit (22), simulated measurement input circuit (23), control signal output circuit (24), the low speed CAN bus communication module (25) that link to each other respectively with processor module (21) and the storer (26) that is used for the stored parameter configuration file; The steering logic of the input of said vehicle integrated information module (1) and configurable control module (2), output signal, output port is set by parameter configuration files;
The parameter configuration files of said vehicle integrated information module (1) comprises following data content:
(11) signal type of the input and output port of vehicle integrated information module (1) and the configuration parameter of describing the mapping relations of the vehicle body device signal link to each other with each port are tabulated;
(12) the CAN network configuration data of vehicle integrated information module (1);
(13) intermediate code of the output control logic of all output ports of vehicle integrated information module (1) compiling generation;
The parameter configuration files of said configurable control module (2) comprises following data content:
(21) signal type of the input and output port of configurable control module (2) and the configuration parameter of describing the mapping relations of the vehicle body device signal link to each other with each port are tabulated;
(22) the CAN network configuration data of configurable control module (2);
(23) intermediate code of the output control logic of all output ports of configurable control module (2) compiling generation.
2. according to the configurable control system of passenger car body described in the claim 1; It is characterized in that: said vehicle integrated information module (1) also comprises the wireless communication module (110) that is used for carrying out with far-end computer radio communication, and said wireless communication module (110) links to each other with vehicle integrated information module handler (101).
3. according to the configurable control system of passenger car body described in the claim 1, it is characterized in that: the switching value input circuit (22) of said configurable control module (2) comprises low input-signal Acquisition Circuit and high input signal Acquisition Circuit; Said simulated measurement input circuit (23) comprises the battery voltage Acquisition Circuit, and the resistance signal Acquisition Circuit that links to each other with engine water temperature sensor, engine oil pressure pickup, amount of fuel sensor or air drum pressure transducer; Said control signal output circuit (24) comprises high-end big current output circuit and bridge output circuit.
4. according to the configurable control system of passenger car body described in the claim 1; It is characterized in that: the vehicle integrated information module handler (101) of said vehicle integrated information module (1) is provided with configure trigger signal output port (114), also is connected with the button (111) that is used to trigger the configure trigger signal on the vehicle integrated information module handler (101); The processor module (21) of said configurable control module (2) is provided with a configure trigger signal input port (27) and a configure trigger signal output port (28).
5. one kind is carried out the method for parameter configuration to the configurable control system of passenger car body described in the claim 1, it is characterized in that comprising the steps:
Step 1: define the vehicle integrated information module (1) of configurable control system of passenger car body and the signal input port of several configurable control modules (2), the attribute of signal output port on computers;
Step 2: write the output control logic expression formula on computers, describe the steering logic relation of each output signal of configurable control system of passenger car body;
Step 3: on computers to each output control signal logical expression compile, the compiling through after carry out simulating, verifying;
Step 4: the parameter configuration files that generates vehicle integrated information module (1) and several configurable control modules (2) on computers respectively;
Step 5: configurable control system of passenger car body establishes a communications link with the computing machine that control system of passenger car body exploitation simulation software is installed; With all parameter configuration files from downloaded to vehicle integrated information module (1), be stored in the memory module (106);
Step 6: each configurable control module (2) is downloaded respectively and its parameter configuration files one to one from vehicle integrated information module (1), and is kept in the storer (26) separately;
Step 7: vehicle integrated information module (1) and several configurable control modules (2) are explained the parameter configuration files of carrying out separately respectively, accomplish the function setting of whole control system of passenger car body.
6. according to the method for parameter configuration of the configurable control system of passenger car body described in the claim 5, it is characterized in that: in step 5, configurable control system of passenger car body is connected with computing machine through the RS232 interface (107) on the vehicle integrated information module (1); Perhaps vehicle integrated information module (1) is set up radio communication through wireless communication module (110) with far-end computer and is connected.
7. according to the method for parameter configuration of the configurable control system of passenger car body described in the claim 5; It is characterized in that: in step 1, the attribute of said signal input port, signal output port comprises the type information of each input, vehicle body device signal information that output port connected and each input, output signal.
8. according to the method for parameter configuration of the configurable control system of passenger car body described in the claim 5, it is characterized in that: the explanation implementation of the parameter configuration files in the said step 7 comprises:
(1) after parameter configuration files is downloaded completion, carries out configuration parameter and download the initialize routine after accomplishing;
(2), the working method of IO port is set according to the type configuration data of IO port;
(3) vehicle integrated information module (1) is according to CAN network configuration data in the parameter configuration files; Low speed CAN bus interface module (105) is set; Configurable control module (2) is provided with low speed CAN bus communication module (25) according to the CAN network configuration data in the parameter configuration files;
(4) configurable control module (2) and vehicle integrated information module (1) data that regularly read each input port signal and transmit from the CAN bus; And write the result in the input real-time data base of storer respectively; And read the intermediate code of the output control logic expression formula in the parameter configuration files; Explain and carry out intermediate code, obtain the control signal of each output port; For the signal that output state changes, its output port and output state are write respectively in the output real-time data base of storer.
CN2010102240641A 2010-07-12 2010-07-12 Configurable passenger car body control system and parameter configuration method thereof Active CN101916089B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010102240641A CN101916089B (en) 2010-07-12 2010-07-12 Configurable passenger car body control system and parameter configuration method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010102240641A CN101916089B (en) 2010-07-12 2010-07-12 Configurable passenger car body control system and parameter configuration method thereof

Publications (2)

Publication Number Publication Date
CN101916089A CN101916089A (en) 2010-12-15
CN101916089B true CN101916089B (en) 2012-08-08

Family

ID=43323615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010102240641A Active CN101916089B (en) 2010-07-12 2010-07-12 Configurable passenger car body control system and parameter configuration method thereof

Country Status (1)

Country Link
CN (1) CN101916089B (en)

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102129238B (en) * 2011-03-09 2012-07-25 铁道部运输局 Calibration method and device thereof for rail transit vehicle brake system parameters
CN102358248A (en) * 2011-07-29 2012-02-22 深圳市元征软件开发有限公司 Flexible vehicle type selection configuration method for electronic control unit
US20130124009A1 (en) * 2011-11-14 2013-05-16 Ford Global Technologies, Llc Method and system for managing personal settings on a vehicle
CN103465840B (en) * 2012-06-06 2015-08-12 北汽福田汽车股份有限公司 Automobile control method, control setup and there is the automobile of this control setup
CN106341272A (en) * 2016-09-29 2017-01-18 北京汽车研究总院有限公司 Automobile instrument configuration information backup method
CN106610861B (en) * 2016-11-14 2019-09-03 广州视源电子科技股份有限公司 Compilation Method and device
CN107919947B (en) * 2017-11-28 2020-09-29 南瑞集团有限公司 Coding method for long message transmission of CAN bus
CN109204193B (en) * 2018-10-12 2021-05-14 杭州小驹物联科技有限公司 Method and system for quickly identifying automobile signals and parameters
TWI696113B (en) 2019-01-02 2020-06-11 慧榮科技股份有限公司 Method for performing configuration management, and associated data storage device and controller thereof
CN112477779B (en) * 2019-09-12 2024-03-26 华为技术有限公司 System and method for realizing electronic control function in automobile and automobile
CN111124397B (en) * 2019-12-10 2023-03-14 西安智周深鉴信息科技集团有限公司 Control logic multiplexing method and device, computer equipment and storage medium
CN112380033A (en) * 2020-11-17 2021-02-19 北京百度网讯科技有限公司 Vehicle-mounted android operating system architecture, vehicle-mounted operating system calling method, electronic device and storage medium
CN112277841B (en) * 2020-12-15 2021-04-09 宁波均胜新能源汽车技术有限公司 Vehicle type configuration identification method, vehicle control method, driving computer and vehicle
CN114448796B (en) * 2022-01-25 2023-11-28 北京和利时系统集成有限公司 Vehicle-mounted controller of train control system and signal transmission method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261519A (en) * 2007-12-05 2008-09-10 奇瑞汽车股份有限公司 Configuration method for accomplishing vehicle body control system function configuration through diagnosis communication
CN201134120Y (en) * 2007-12-14 2008-10-15 奇瑞汽车股份有限公司 Device realizing functional configuration of vehicle body controller
CN201245121Y (en) * 2008-08-05 2009-05-27 南京天擎汽车电子有限公司 Automobile vehicle body controller
CN201761451U (en) * 2010-07-12 2011-03-16 金龙联合汽车工业(苏州)有限公司 Configurable passenger vehicle body control system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101261519A (en) * 2007-12-05 2008-09-10 奇瑞汽车股份有限公司 Configuration method for accomplishing vehicle body control system function configuration through diagnosis communication
CN201134120Y (en) * 2007-12-14 2008-10-15 奇瑞汽车股份有限公司 Device realizing functional configuration of vehicle body controller
CN201245121Y (en) * 2008-08-05 2009-05-27 南京天擎汽车电子有限公司 Automobile vehicle body controller
CN201761451U (en) * 2010-07-12 2011-03-16 金龙联合汽车工业(苏州)有限公司 Configurable passenger vehicle body control system

Also Published As

Publication number Publication date
CN101916089A (en) 2010-12-15

Similar Documents

Publication Publication Date Title
CN101916089B (en) Configurable passenger car body control system and parameter configuration method thereof
CN101913343B (en) Configurable control module of control system of passenger car body and parameter configuring method thereof
US8788139B2 (en) Multi-protocol vehicle diagnostic interface device and method
CN100449291C (en) Method and apparatus for measuring running performance parameters of hybrid electric vehicle
CN200993741Y (en) Hybrid power electric automobile matching demarcation device based on serial communication
CN101930629A (en) Remote updating system and method of vehicle information collecting device
CN102902252A (en) Vehicle control unit for unmanned electric vehicle
MXPA05009235A (en) User adaptive automated pre-trip inspection system.
CN205301857U (en) Electric automobile vehicle control unit&#39;s semi -physical simulation platform
CN104635690A (en) Whole vehicle control unit (VCU) integrated with gateway function of pure electric vehicle
CN104781789A (en) On-board device, and program
CN101917320B (en) Configuration parameter downloading device and downloading method of configurable control modules on passenger car body
CN201761451U (en) Configurable passenger vehicle body control system
CN206171362U (en) Electric automobile controller
CN103995511A (en) Intelligent bus body control system with CAN bus
CN101456392B (en) Automobile complete vehicle electronic appliance CANBUS network control system
JP2008546083A (en) Method for model-based diagnosis of mechatronic systems
CN201761453U (en) Configurable control module of passenger vehicle body control system
CN105573294A (en) New energy automobile electronic control unit ECU based on Internet
CN109858181A (en) A kind of automobile chassis assemblage on-orbit system
CN201659856U (en) Automobile tire detection device based on CAN bus
WO2019132755A1 (en) Method and control unit for transferring information to and/or from a vehicle
CN106447792A (en) Driving charging method, device and system
CN112653726A (en) Vehicle-mounted terminal, operation method thereof, computer-readable storage medium, and processor
CN101559746B (en) Fault diagnosis system of automobile steer-by-wire system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant