JP5060242B2 - Update device for vehicle control program - Google Patents

Update device for vehicle control program Download PDF

Info

Publication number
JP5060242B2
JP5060242B2 JP2007266066A JP2007266066A JP5060242B2 JP 5060242 B2 JP5060242 B2 JP 5060242B2 JP 2007266066 A JP2007266066 A JP 2007266066A JP 2007266066 A JP2007266066 A JP 2007266066A JP 5060242 B2 JP5060242 B2 JP 5060242B2
Authority
JP
Japan
Prior art keywords
program
update
control
update program
control unit
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.)
Expired - Fee Related
Application number
JP2007266066A
Other languages
Japanese (ja)
Other versions
JP2009090940A (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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor 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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2007266066A priority Critical patent/JP5060242B2/en
Publication of JP2009090940A publication Critical patent/JP2009090940A/en
Application granted granted Critical
Publication of JP5060242B2 publication Critical patent/JP5060242B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Description

本発明は、車両を制御するための車両制御用プログラムの更新装置に関する。   The present invention relates to a vehicle control program update device for controlling a vehicle.

従来のこの種の更新装置として、例えば特許文献1に開示されたものが知られている。この更新装置は、インターフェース(以下「I/F」という)を有する第1制御ユニットと、第1制御ユニットに接続され、第1プログラムを記憶する第1記憶部と、第2プログラムを記憶する第2記憶部を有する第2制御ユニットなどを備えており、外部装置に接続されている。この更新装置では、外部装置から更新用プログラムが送信されたときに、第1プログラムまたは第2プログラムを、更新用プログラムに書き換えることによって、更新する。   As a conventional updating apparatus of this type, for example, one disclosed in Patent Document 1 is known. The updating apparatus includes a first control unit having an interface (hereinafter referred to as “I / F”), a first storage unit connected to the first control unit and storing a first program, and a second control unit storing a second program. A second control unit having two storage units is provided and connected to an external device. In this update device, when an update program is transmitted from an external device, the update is performed by rewriting the first program or the second program with the update program.

具体的には、外部装置から送信された更新用プログラムは、I/Fを介して第1制御ユニットに送信される。第1制御ユニットは、更新用プログラムを読み込み、この更新用プログラムに含まれる制御情報に基づいて、第1プログラムまたは第2プログラムのいずれを更新すべきかを判定する。第1プログラムを更新すべきと判定したときには、第1制御ユニット自身が第1プログラムを更新用プログラムに書き換える。一方、第2プログラムを更新すべきと判定したときには、第1制御ユニットは更新用プログラムを第2制御ユニットに送信し、第2制御ユニットは、第2プログラムを送信された更新用プログラムに書き換える。以上のように、第2プログラムの更新時に、外部装置からの更新用プログラムを第1制御ユニットを介して第2制御ユニットに送信することによって、更新装置と外部装置を接続するインターフェースの数を削減するようにしている。   Specifically, the update program transmitted from the external device is transmitted to the first control unit via the I / F. The first control unit reads the update program, and determines whether to update the first program or the second program based on the control information included in the update program. When it is determined that the first program should be updated, the first control unit itself rewrites the first program into an update program. On the other hand, when it is determined that the second program should be updated, the first control unit transmits the update program to the second control unit, and the second control unit rewrites the second program with the transmitted update program. As described above, when the second program is updated, the number of interfaces connecting the update device and the external device is reduced by transmitting the update program from the external device to the second control unit via the first control unit. Like to do.

しかし、従来の更新装置では、第1または第2プログラムの更新に先立ち、第1制御ユニットにおいて更新用プログラムを読み込むとともに、それに含まれる制御情報に基づいて第1または第2プログラムのいずれを更新すべきかを判定するので、更新を行うまでに時間を要する。更新用プログラムは通常、ブロック単位で送信されるため、更新用プログラムの読み込み、および第1または第2プログラムの更新の判定をブロック単位ごとに行う必要があり、その結果、プログラムの更新が完了するまでに非常に長い時間を要する。   However, in the conventional updating apparatus, prior to updating the first or second program, the first control unit reads the updating program and should update either the first or second program based on the control information included therein. Since it is determined whether or not to update, it takes time to perform the update. Since the update program is normally transmitted in units of blocks, it is necessary to read the update program and determine whether to update the first or second program for each block. As a result, the program update is completed. It takes a very long time.

本発明は、このような課題を解決するためになされたものであり、複数の記憶部に記憶された制御プログラムの更新を速やかに行うことができる車両制御用プログラムの更新装置を提供することを目的とする。   The present invention has been made to solve such a problem, and provides an update device for a vehicle control program that can quickly update a control program stored in a plurality of storage units. Objective.

特表平11−508716号公報Japanese National Patent Publication No. 11-508716

上記の目的を達成するため、請求項1の発明に係る車両制御用プログラムの更新装置1は、第1更新用プログラムPRU1および第2更新用プログラムPRU2を送信するための信号線(実施形態における(以下、本項において同じ)第1信号線17)と、第1記憶部(フラッシュメモリ12)と、第1記憶部に記憶され、車両Vを制御するための第1制御プログラムPR1と、第1インターフェース(第1CAN通信用I/F9)を有し、第1インターフェースを介して信号線に常時、接続されるとともに、第1制御プログラムPR1を実行する第1制御ユニット(第1ECU5)と、第2記憶部(フラッシュメモリ16)と、第2記憶部に記憶され、車両Vを制御するための第2制御プログラムPR2と、第2インターフェース(第4CAN通信用I/F14)を有するとともに、第2制御プログラムPR2を実行する第2制御ユニット(第2ECU6)と、信号線と第2インターフェースの間を接続または遮断する常開式のスイッチ(第1スイッチ7)と、を備え、第1制御ユニットは、第1インターフェースを介して受信した更新用プログラムが第1更新用プログラムPRU1または第2更新用プログラムPRU2のいずれであるかを判定し(図2のステップ1)、当該判定の結果、第1更新用プログラムPRU1を受信したときに、第1制御プログラムPR1を第1更新用プログラムPRU1に書き換えることにより更新し、第2更新用プログラムPRU2を受信したときに、スイッチを駆動することにより信号線を第2インターフェースに接続し、第2制御ユニットは、第2制御プログラムPR2を、スイッチにより接続された第2インターフェースを介して号線から受信した第2更新用プログラムPRU2に書き換えることにより更新することを特徴とする。 In order to achieve the above object, an updating apparatus 1 for a vehicle control program according to the invention of claim 1 is a signal line for transmitting the first update program PRU1 and the second update program PRU2 (in the embodiment ( Hereinafter, the same in this section) the first signal line 17), the first storage unit (flash memory 12), the first control program PR1 stored in the first storage unit for controlling the vehicle V, the first A first control unit (first ECU 5) that has an interface (first CAN communication I / F 9), is always connected to the signal line via the first interface, and executes the first control program PR1; A storage unit (flash memory 16), a second control program PR2 stored in the second storage unit for controlling the vehicle V, and a second interface (fourth C) Together with the N communication I / F14), normally open switch second control unit for executing a second control program PR2 and (first 2ECU6), connects or disconnects the signal line and the second interface (first And the first control unit determines whether the update program received via the first interface is the first update program PRU1 or the second update program PRU2 (FIG. 2). Step 1) As a result of the determination, when the first update program PRU1 is received, the first control program PR1 is updated by rewriting the first update program PRU1, and the second update program PRU2 is received. Sometimes the signal line is connected to the second interface by driving the switch, and the second control unit The second control program PR2, characterized in that via a second interface connected by the switch updating by rewriting the second update program PRU2 received from signal Line.

この車両制御用プログラムの更新装置は、第1制御ユニットおよび第2制御ユニットを備えており、第1制御ユニットが第1記憶部に記憶された第1制御プログラムを実行し、第2制御ユニットが第2記憶部に記憶された第2制御プログラムを実行することによって、車両が制御される。第1制御ユニットは、第1インターフェースを介して信号線に常時、接続されており、信号線から第1インターフェースを介して受信した更新用プログラムが第1更新用プログラムまたは第2更新用プログラムのいずれであるかを判定する。その判定の結果、第1更新用プログラムを受信したときに、第1制御プログラムを第1更新用プログラムに書き換え、更新する。 The vehicle control program update device includes a first control unit and a second control unit. The first control unit executes the first control program stored in the first storage unit, and the second control unit The vehicle is controlled by executing the second control program stored in the second storage unit. The first control unit is always connected to the signal line via the first interface, and the update program received from the signal line via the first interface is either the first update program or the second update program. It is determined whether it is. As a result of the determination, when the first update program is received, the first control program is rewritten and updated to the first update program.

また、第1制御ユニットは、第2更新用プログラムを受信したときに、常開式のスイッチを駆動することによって、信号線を第2制御ユニットの第2インターフェースに接続する。これに伴い、第2更新用プログラムは、スイッチにより接続された第2インターフェースを介して、信号線から第2制御ユニットに直接、送信される。第2制御ユニットは、第2制御プログラムを第2更新用プログラムに書き換え、更新する。以上のように、第2更新用プログラムが送信されたときに、信号線を第2制御ユニットの第2インターフェースに接続することによって、第2更新用プログラムは、第1制御ユニットを介さずに第2制御ユニットに直接、送信される。このため、第2更新用プログラムを第1制御ユニットを介して第2制御ユニットに送信する従来の更新装置と比較して、第2制御プログラムの更新を速やかに行うことができる。 When the first control unit receives the second update program, the first control unit drives the normally open switch to connect the signal line to the second interface of the second control unit. Accordingly, the second update program is directly transmitted from the signal line to the second control unit via the second interface connected by the switch. The second control unit rewrites and updates the second control program with the second update program. As described above, when the second update program is transmitted, the signal line is connected to the second interface of the second control unit so that the second update program can be transmitted without going through the first control unit. 2 sent directly to the control unit. For this reason, compared with the conventional update apparatus which transmits the 2nd program for a update to a 2nd control unit via a 1st control unit, a 2nd control program can be updated rapidly.

さらに、スイッチを制御するだけで、第2制御ユニットを第2インターフェースを介して信号線に接続できるので、インターフェースの数を増やすことなく、より多数の信号線との接続が可能になる。このため、制御ユニットとして、所定の数のインターフェースを有する汎用品を用いた場合には、インターフェースの数を増やすことなく、多くの信号線との接続が可能になるので、製造コストの上昇を抑制することができる。   Furthermore, since the second control unit can be connected to the signal line via the second interface simply by controlling the switch, it is possible to connect to a larger number of signal lines without increasing the number of interfaces. For this reason, when a general-purpose product having a predetermined number of interfaces is used as the control unit, it is possible to connect to many signal lines without increasing the number of interfaces, thereby suppressing an increase in manufacturing cost. can do.

請求項2の発明に係る車両制御用プログラムの更新装置31は、第1書換装置33からの第1更新用プログラムPRU11を送信するための第1信号線35と、第2書換装置34からの、第1更新用プログラムPRU11と異なる第2更新用プログラムPRU12を送信するための第2信号線36と、第1記憶部(フラッシュメモリ45)と、第1記憶部に記憶され、車両Vを制御するための第1制御プログラムPR11と、第1インターフェース(K通信用I/F42)および第2インターフェース(第1CAN通信用I/F43)を有し、第1インターフェースを介して第1信号線35に接続され、第2インターフェースを介して第2信号線36に接続されるとともに、第1制御プログラムPR11を実行する第1制御ユニット(第1ECU39)と、第2記憶部(フラッシュメモリ49)と、第2記憶部に記憶され、車両Vを制御するための第2制御プログラムPR12と、第1制御ユニットと通信可能に構成され、第2制御プログラムPR12を実行する第2制御ユニット(第2ECU40)と、を備え、第1制御ユニットは、第1インターフェースを介して第1更新用プログラムPRU11を受信したときに、第1制御プログラムPR11を第1更新用プログラムPRU11に書き換えることにより更新し、第2インターフェースを介して第2更新用プログラムPRU12を受信したときに、第2更新用プログラムPRU12を第2制御ユニットに転送し、第2制御ユニットは、第2制御プログラムPR12を第1制御ユニットから転送された第2更新用プログラムPRU12に書き換えることにより更新することを特徴とする。 The vehicle control program update device 31 according to the invention of claim 2 includes a first signal line 35 for transmitting the first update program PRU11 from the first rewrite device 33, and a second rewrite device 34, The second signal line 36 for transmitting the second update program PRU12 different from the first update program PRU11, the first storage unit (flash memory 45), and the first storage unit are stored and control the vehicle V. A first control program PR11, a first interface (K communication I / F 42) and a second interface (first CAN communication I / F 43), which are connected to the first signal line 35 via the first interface. The first control unit (the first E) is connected to the second signal line 36 via the second interface and executes the first control program PR11. U39), a second storage unit (flash memory 49), a second control program PR12 for controlling the vehicle V, which is stored in the second storage unit, and configured to be communicable with the first control unit. A second control unit (second ECU 40) that executes the control program PR12. When the first control unit receives the first update program PRU11 via the first interface, the first control program PR11 is When the second update program PRU12 is received through the second interface, the second update program PRU12 is transferred to the second control unit. The second update program PR transferred from the first control unit to the second control program PR12 And updates by rewriting the 12.

この車両制御用プログラムの更新装置は、第1制御ユニットおよび第2制御ユニットを備えており、第1制御ユニットが第1記憶部に記憶された第1制御プログラムを実行し、第2制御ユニットが第2記憶部に記憶された第2制御プログラムを実行することによって、車両が制御される。第1制御ユニットは、第1信号線から第1インターフェースを介して第1更新用プログラムを受信したときに、第1制御プログラムを第1更新用プログラムに書き換え、更新する。一方、第1制御ユニットは、第2信号線から第2インターフェースを介して第2更新用プログラムを受信したときに、第2更新用プログラムを第2制御ユニットに転送する。第2制御ユニットは、第2制御プログラムを、転送された第2更新用プログラムに書き換え、更新する。   The vehicle control program update device includes a first control unit and a second control unit. The first control unit executes the first control program stored in the first storage unit, and the second control unit The vehicle is controlled by executing the second control program stored in the second storage unit. When the first control unit receives the first update program from the first signal line via the first interface, the first control unit rewrites and updates the first control program to the first update program. On the other hand, when the first control unit receives the second update program from the second signal line via the second interface, the first control unit transfers the second update program to the second control unit. The second control unit rewrites and updates the second control program with the transferred second update program.

以上のように、この更新装置では、第1制御プログラムを更新するための第1更新用プログラムを、第1インターフェースを介して受信し、第2制御プログラムを更新するための、第1更新用プログラムと異なる第2更新用プログラムを、第2インターフェースを介して受信する。このため、第1および第2インターフェースのどちらから更新用プログラムを受信したかを監視するだけで、第1または第2制御プログラムのいずれを更新すべきかを即座に判定することができる。その結果、従来の更新装置と異なり、更新用プログラムを読み込むことも、読み込んだ更新用プログラムに基づいて、第1制御プログラムまたは第2制御プログラムのいずれを更新すべきかを判定することも不要になり、その分、制御プログラムの更新を速やかに行うことができる。
As described above, in this updating apparatus, the first update program for receiving the first update program for updating the first control program via the first interface and updating the second control program. A second update program different from the above is received via the second interface. For this reason, it is possible to immediately determine which of the first and second control programs should be updated only by monitoring which of the first and second interfaces has received the update program. As a result, unlike the conventional update device, it is not necessary to read an update program or to determine which of the first control program or the second control program should be updated based on the read update program. Accordingly, the control program can be updated quickly.

以下、図面を参照しながら、本発明の好ましい実施形態を詳細に説明する。図1は、本発明の第1実施形態による車両制御用プログラムの更新装置1を、内燃機関(以下「エンジン」という)3を搭載した車両Vとともに、概略的に示している。エンジン3は、例えばV型のガソリンエンジンであり、右バンクおよび左バンク(いずれも図示せず)に複数の気筒3a(1つのみ図示)を有している。各気筒3aのピストン3bとシリンダヘッド3cとの間には、燃焼室3dが形成されている。   Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 schematically shows a vehicle control program updating apparatus 1 according to a first embodiment of the present invention, together with a vehicle V equipped with an internal combustion engine (hereinafter referred to as “engine”) 3. The engine 3 is, for example, a V-type gasoline engine, and has a plurality of cylinders 3a (only one is shown) in a right bank and a left bank (both not shown). A combustion chamber 3d is formed between the piston 3b and the cylinder head 3c of each cylinder 3a.

シリンダヘッド3cには、燃料噴射弁(以下「インジェクタ」という)4が、燃焼室3dに臨むように取り付けられている。インジェクタ4の燃料噴射量および燃料噴射時期は、後述する燃料噴射制御用のECU(以下「FIECU」という)2によって設定され、FIECU2から出力される駆動信号によって制御される。また、シリンダヘッド3cには、筒内圧センサ21が設けられている。筒内圧センサ21は、圧電素子で構成されており、エンジン3の気筒3a内の圧力の変化量(以下「筒内圧変化量」という)DPを表す検出信号をFIECU2に出力する。   A fuel injection valve (hereinafter referred to as “injector”) 4 is attached to the cylinder head 3c so as to face the combustion chamber 3d. The fuel injection amount and fuel injection timing of the injector 4 are set by a fuel injection control ECU (hereinafter referred to as “FIECU”) 2 to be described later, and are controlled by a drive signal output from the FIECU 2. The cylinder head 3c is provided with an in-cylinder pressure sensor 21. The in-cylinder pressure sensor 21 is composed of a piezoelectric element, and outputs a detection signal representing a change amount of pressure in the cylinder 3 a of the engine 3 (hereinafter referred to as “in-cylinder pressure change amount”) DP to the FIECU 2.

更新装置1は、エンジン3を介して車両Vを制御するための第1制御プログラムPR1および第2制御プログラムPR2を更新するためのものであり、FIECU2、書換装置20、FIECU2と書換装置20を接続する第1信号線17、FIECU2と筒内圧センサ21を接続する第2信号線18、および第3信号線19を備えている。   The updating device 1 is for updating the first control program PR1 and the second control program PR2 for controlling the vehicle V via the engine 3, and connects the FI ECU 2, the rewriting device 20, and the FI ECU 2 to the rewriting device 20. The first signal line 17, the second signal line 18 connecting the FI ECU 2 and the in-cylinder pressure sensor 21, and the third signal line 19 are provided.

書換装置20は、第1制御プログラムPR1として書き換えるべき第1更新用プログラムPRU1、または第2制御プログラムPR2として書き換えるべき第2更新用プログラムPRU2を取得し、FIECU2に送信するためのものである。なお、以下の説明では、第1および第2更新用プログラムPRU1,PRU2を総称して「更新用プログラムPRU」という。書換装置20には、書換時、更新用プログラムPRUを記録した記録媒体(図示せず)が装着される。書換装置20は、この記録媒体から更新用プログラムPRUをブロック単位で読み出し、第1信号線17を介してFIECU2に送信する。なお、この更新用プログラムPRUの最初のブロックには、更新用プログラムPRUが第1または第2更新用プログラムPRU1,PRU2のいずれであるかを表す情報(以下「更新情報」という)と、更新用プログラムPRUのブロック数を表す情報が、プログラム情報として記録されている。   The rewriting device 20 acquires the first update program PRU1 to be rewritten as the first control program PR1 or the second update program PRU2 to be rewritten as the second control program PR2, and transmits it to the FIECU2. In the following description, the first and second update programs PRU1, PRU2 are collectively referred to as “update program PRU”. At the time of rewriting, the rewriting device 20 is loaded with a recording medium (not shown) in which the update program PRU is recorded. The rewriting device 20 reads the update program PRU from the recording medium in units of blocks and transmits the update program PRU to the FI ECU 2 via the first signal line 17. In the first block of this update program PRU, information indicating whether the update program PRU is the first or second update program PRU1, PRU2 (hereinafter referred to as “update information”), and update Information indicating the number of blocks of the program PRU is recorded as program information.

FIECU2は、第1ECU5、第2ECU6、第1スイッチ7および第2スイッチ8などで構成されている。第1ECU5は、エンジン3の一方のバンクの各インジェクタ4の燃料噴射量および燃料噴射時期を含む燃料噴射制御を実行し、第2ECU6は、他方のバンクの各インジェクタ4の燃料噴射制御を実行する。   The FIECU 2 includes a first ECU 5, a second ECU 6, a first switch 7, a second switch 8, and the like. The first ECU 5 executes fuel injection control including the fuel injection amount and fuel injection timing of each injector 4 in one bank of the engine 3, and the second ECU 6 executes fuel injection control of each injector 4 in the other bank.

第1ECU5は、第2ECU6とシリアル通信可能に構成されており、EEPROM(図示せず)、第1CAN通信用インターフェース(I/F)9、第2CAN通信用インターフェース(I/F)10、CPU11および不揮発性のフラッシュメモリ12などで構成されている。また、第1ECU5は、信号線(図示せず)を介して一方のバンクのインジェクタ4に電気的に接続されている。   The first ECU 5 is configured to be capable of serial communication with the second ECU 6, and includes an EEPROM (not shown), a first CAN communication interface (I / F) 9, a second CAN communication interface (I / F) 10, a CPU 11, and a nonvolatile memory. Flash memory 12 or the like. The first ECU 5 is electrically connected to the injectors 4 in one bank via a signal line (not shown).

第1CAN通信用I/F9は、書換装置20とCPU11の間でCAN通信を行うためのものであり、書換装置20から送信された更新用プログラムPRUを、第1信号線17を介して受信し、CPU11に送信する。   The first CAN communication I / F 9 is for performing CAN communication between the rewrite device 20 and the CPU 11, and receives the update program PRU transmitted from the rewrite device 20 via the first signal line 17. , To CPU11.

第2CAN通信用I/F10は、筒内圧センサ21とCPU11の間でCAN通信を行うためのものであり、筒内圧センサ21で検出された筒内圧変化量DPを、第2信号線18を介して受信し、CPU11に送信する。CPU11は、筒内圧変化量DPに基づいて、気筒3a内に発生する筒内圧Pを算出する。   The second CAN communication I / F 10 is for performing CAN communication between the in-cylinder pressure sensor 21 and the CPU 11. The in-cylinder pressure change DP detected by the in-cylinder pressure sensor 21 is transmitted via the second signal line 18. Are received and transmitted to the CPU 11. The CPU 11 calculates the in-cylinder pressure P generated in the cylinder 3a based on the in-cylinder pressure change amount DP.

フラッシュメモリ12の記憶領域には、第1制御プログラムPR1が記憶されている。この第1制御プログラムPR1は、筒内圧Pに応じて、一方のバンクのインジェクタ4の燃料噴射量および燃料噴射時期を設定するためのものであり、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。   In the storage area of the flash memory 12, the first control program PR1 is stored. This first control program PR1 is for setting the fuel injection amount and fuel injection timing of the injectors 4 in one bank in accordance with the in-cylinder pressure P, and is designated by an address assigned to the storage area. Stored in space in blocks.

第1スイッチ7は、常開式のものであり、第1信号線17と第2ECU6の間を接続または遮断する。第2スイッチ8は、常閉式のものであり、第2信号線18と第2ECU6の間を接続または遮断する。これらの第1および第2スイッチ7,8は、CPU11から駆動信号SDが出力されたときに作動し、それにより、第1信号線17が第2ECU6に接続されるとともに、第2信号線18と第2ECU6の間が遮断される。   The first switch 7 is a normally open type, and connects or blocks between the first signal line 17 and the second ECU 6. The second switch 8 is a normally closed type, and connects or blocks between the second signal line 18 and the second ECU 6. These first and second switches 7 and 8 are activated when a drive signal SD is output from the CPU 11, whereby the first signal line 17 is connected to the second ECU 6 and the second signal line 18 is connected to the second signal line 18. The second ECU 6 is disconnected.

CPU11は、第1制御プログラムPR1を実行することにより燃料噴射量および燃料噴射時期を設定するとともに、その結果に基づいて、一方のバンクのインジェクタ4を駆動するための駆動信号を生成し、信号線を介してそれらのインジェクタ4に出力する。また、CPU11は、書換装置20から更新用プログラムPRUを受信したときに、制御プログラムの更新処理を実行する。   The CPU 11 sets the fuel injection amount and the fuel injection timing by executing the first control program PR1, and generates a drive signal for driving the injectors 4 of one bank based on the result, Are output to those injectors 4. Further, when the CPU 11 receives the update program PRU from the rewriting device 20, the CPU 11 executes control program update processing.

図2は、この更新処理のフローチャートを示している。本処理では、まず、ステップ1(「S1」と図示。以下同じ)において、受信した更新用プログラムPRUが第1更新用プログラムPRU1であるか否かを判別する。この判別は、更新用プログラムPRUに含まれるプログラム情報中の更新情報に基づいて行われる。この判別結果がYESで、第1更新用プログラムPRU1を受信したときには、そのプログラム情報に含まれるブロック数を読み込み、EEPROMに記憶する(ステップ2)。   FIG. 2 shows a flowchart of this update process. In this process, first, in step 1 (illustrated as “S1”, the same applies hereinafter), it is determined whether or not the received update program PRU is the first update program PRU1. This determination is made based on the update information in the program information included in the update program PRU. If the determination result is YES and the first update program PRU1 is received, the number of blocks included in the program information is read and stored in the EEPROM (step 2).

次に、この第1制御プログラムPR1を第1更新用プログラムPRU1に書き換えることによって、更新する(ステップ3)。この更新動作は、フラッシュメモリ12に記憶された第1制御プログラムPR1を全消去した後、書換装置20からブロック単位で順次、受信した第1更新用プログラムPRU1を、フラッシュメモリ12の対応するアドレス空間に書き込むことによって行われる。   Next, the first control program PR1 is updated by rewriting the first update program PRU1 (step 3). In this update operation, the first control program PR1 stored in the flash memory 12 is completely erased, and then the first update program PRU1 received sequentially from the rewrite device 20 in units of blocks is stored in the corresponding address space of the flash memory 12. Is done by writing to

次に、第1制御プログラムPR1の更新が完了したか否かを判別する(ステップ4)。具体的には、前記ステップ3で受信した第1更新用プログラムPRU1のブロック数が、前記ステップ2で記憶したブロック数と一致したときに、更新が完了したと判別される。この判別結果がNOのときには、ステップ3に戻り、前述した更新動作を繰り返し実行する。   Next, it is determined whether or not the update of the first control program PR1 is completed (step 4). Specifically, when the number of blocks of the first update program PRU1 received in step 3 matches the number of blocks stored in step 2, it is determined that the update has been completed. When the determination result is NO, the process returns to step 3 to repeatedly execute the above-described update operation.

一方、前記ステップ4の判別結果がYESで、第1更新用プログラムPRU1の更新が完了したときには、本処理を終了する。一方、前記ステップ1の判別結果がNOのとき、すなわち、受信した更新用プログラムPRUが第2更新用プログラムPRU2のときには、第1および第2スイッチ7,8に駆動信号SDを出力し、これらを駆動する(ステップ5)。これにより、第1スイッチ7によって第1信号線17が第2ECU6に接続されるとともに、第2スイッチ8によって第2信号線18と第2ECU6の間が遮断される。この状態では、第2更新用プログラムPRU2は、第1ECU5に送信されるとともに、第1スイッチ7によって接続された後述する第4CAN通信用I/F14を介して、第1信号線17から第2ECU6に直接、送信される。第1ECU5は、送信された第2更新用プログラムPRU2を破棄し、第2ECU6は、第2更新用プログラムPRU2を用い、後述するようにして第2制御プログラムPR2を更新する。   On the other hand, when the determination result of step 4 is YES and the update of the first update program PRU1 is completed, this process is terminated. On the other hand, when the determination result in step 1 is NO, that is, when the received update program PRU is the second update program PRU2, the drive signal SD is output to the first and second switches 7 and 8, and these are output. Drive (step 5). Accordingly, the first switch 7 connects the first signal line 17 to the second ECU 6, and the second switch 8 blocks the second signal line 18 and the second ECU 6. In this state, the second update program PRU2 is transmitted from the first signal line 17 to the second ECU 6 via the fourth CAN communication I / F 14 described later connected by the first switch 7 while being transmitted to the first ECU 5. Sent directly. The first ECU 5 discards the transmitted second update program PRU2, and the second ECU 6 uses the second update program PRU2 to update the second control program PR2 as described later.

第2ECU6は、EEPROM(図示せず)、第3CAN通信用インターフェース(I/F)13、第4CAN通信用インターフェース(I/F)14、CPU15および不揮発性のフラッシュメモリ16などで構成されている。また、第2ECU6は、信号線(図示せず)を介して他方のバンクのインジェクタ4に電気的に接続されている。   The second ECU 6 includes an EEPROM (not shown), a third CAN communication interface (I / F) 13, a fourth CAN communication interface (I / F) 14, a CPU 15, a nonvolatile flash memory 16, and the like. Further, the second ECU 6 is electrically connected to the injectors 4 of the other bank via signal lines (not shown).

第3CAN通信用I/F13は、CPU15とトランスミッション制御ユニットやVSA制御ユニットなどの他の車両制御装置(図示せず)との間で、第3信号線19を介してCAN通信を行うためのものである。   The third CAN communication I / F 13 is for performing CAN communication via the third signal line 19 between the CPU 15 and another vehicle control device (not shown) such as a transmission control unit or a VSA control unit. It is.

第4CAN通信用I/F14は、筒内圧センサ21とCPU15の間でCAN通信を行うためのものであり、第2スイッチ8が閉鎖されているとき、すなわち駆動信号SDが出力されていない通常時に、筒内圧センサ21で検出された筒内圧変化量DPを、第2信号線18を介して受信し、CPU15に送信する。CPU15は、筒内圧変化量DPに基づいて筒内圧Pを算出する。   The fourth CAN communication I / F 14 is for performing CAN communication between the in-cylinder pressure sensor 21 and the CPU 15, and when the second switch 8 is closed, that is, at a normal time when the drive signal SD is not output. The in-cylinder pressure change amount DP detected by the in-cylinder pressure sensor 21 is received via the second signal line 18 and transmitted to the CPU 15. The CPU 15 calculates the in-cylinder pressure P based on the in-cylinder pressure change amount DP.

フラッシュメモリ16の記憶領域には、第2制御プログラムPR2が記憶されている。この第2制御プログラムPR2は、筒内圧Pに応じて、他方のバンクのインジェクタ4の燃料噴射量および燃料噴射時期を設定するためのものであり、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。   In the storage area of the flash memory 16, the second control program PR2 is stored. This second control program PR2 is for setting the fuel injection amount and fuel injection timing of the injectors 4 in the other bank according to the in-cylinder pressure P, and is an address specified by an address assigned to the storage area. Stored in space in blocks.

CPU15は、第2制御プログラムPR2を実行することによって燃料噴射量および燃料噴射時期を設定するとともに、その結果に基づいて、他方のバンクのインジェクタ4を駆動するための駆動信号を生成し、信号線を介してそれらのインジェクタ4に出力する。また、CPU15は、前記ステップ5での駆動信号SDの出力による第1スイッチ7の接続によって、書換装置20から第2更新用プログラムPRU2を受信したときに、第2制御プログラムPR2を第2更新用プログラムPRU2に書き換え、更新する。   The CPU 15 sets the fuel injection amount and the fuel injection timing by executing the second control program PR2, and generates a drive signal for driving the injectors 4 of the other bank based on the result, Are output to those injectors 4. Further, when the CPU 15 receives the second update program PRU2 from the rewriting device 20 by the connection of the first switch 7 by the output of the drive signal SD in the step 5, the second control program PR2 is used for the second update. Rewrite and update to program PRU2.

この更新動作は、フラッシュメモリ16に記憶された第2制御プログラムPR2を全消去した後、前述したCPU11による第1制御プログラムPR1の更新の場合と同様、ブロック単位で受信した第2更新用プログラムPRU2を、フラッシュメモリ16の対応するアドレス空間に書き込むことによって、行われる。また、CPU15は、受信した第2更新用プログラムPRU2のブロック数が、EEPROMに記憶したブロック数に一致したときに、第2制御プログラムPR2の更新が完了したとして、そのことを表す信号を第1ECU5のCPU11に出力する。それに応じ、CPU11は、駆動信号SDの出力を終了する。これにより、第1スイッチ7の開放によって第1信号線17と第4CAN通信用I/F14の間が遮断され、第2スイッチ8の閉鎖によって第2信号線18が第4CAN通信用I/F14に接続される。   In this update operation, after the second control program PR2 stored in the flash memory 16 is completely erased, the second update program PRU2 received in units of blocks, as in the case of the update of the first control program PR1 by the CPU 11 described above. Is written to the corresponding address space of the flash memory 16. Further, when the number of blocks of the received second update program PRU2 matches the number of blocks stored in the EEPROM, the CPU 15 determines that the update of the second control program PR2 has been completed and sends a signal indicating that to the first ECU 5 Is output to the CPU 11. In response to this, the CPU 11 ends the output of the drive signal SD. As a result, the first switch 7 is opened to disconnect the first signal line 17 from the fourth CAN communication I / F 14, and the second switch 8 is closed to move the second signal line 18 to the fourth CAN communication I / F 14. Connected.

以上のように、本実施形態によれば、第1ECU5は、第1CAN通信用I/F9を介して第1信号線17から第2更新用プログラムPRU2を受信したときに、第1スイッチ7を駆動することによって、第1信号線17を第2ECU6の第4CAN通信用I/F14に接続させる。これにより、第2更新用プログラムPRU2は、第1ECU5を介さずに第2ECU6に直接、送信される。このため、第2更新用プログラムを第1制御ユニットを介して第2制御ユニットに送信する従来の更新装置と比較して、第2制御プログラムPR2の更新を速やかに行うことができる。   As described above, according to the present embodiment, the first ECU 5 drives the first switch 7 when receiving the second update program PRU2 from the first signal line 17 via the first CAN communication I / F 9. Thus, the first signal line 17 is connected to the fourth CAN communication I / F 14 of the second ECU 6. Thereby, the second update program PRU2 is directly transmitted to the second ECU 6 without going through the first ECU 5. For this reason, compared with the conventional update apparatus which transmits the 2nd program for update to the 2nd control unit via the 1st control unit, the 2nd control program PR2 can be updated quickly.

また、第1および第2スイッチ7,8を制御するだけで、第2ECU6を第4CAN通信用I/F14を介して第1信号線17または第2信号線18に接続できるので、CAN通信用I/Fの数を増やすことなく、より多数の信号線と接続することができる。このため、第1および第2ECU5,6として、所定の数のインターフェースを有する汎用品を用いた場合でも、インターフェースの数を増やすことなく、多くの信号線との接続が可能になる結果、製造コストの上昇を抑制することができる。   Further, the second ECU 6 can be connected to the first signal line 17 or the second signal line 18 via the fourth CAN communication I / F 14 only by controlling the first and second switches 7 and 8. A larger number of signal lines can be connected without increasing the number of / F. For this reason, even when a general-purpose product having a predetermined number of interfaces is used as the first and second ECUs 5 and 6, it is possible to connect to many signal lines without increasing the number of interfaces. Can be suppressed.

図3は、本発明の第2実施形態による車両制御用プログラムの更新装置31を示している。この更新装置31は、車両Vを制御するための第1〜第3制御プログラムPR11〜PR13を更新するためのものであり、FIECU32と、第1書換装置33、第2書換装置34、筒内圧センサ21、および図示しない他の車両制御装置(トランスミッション制御ユニットやVSA制御ユニットなど)とをそれぞれ接続する第1〜第4信号線35〜38を備えている。なお、以下の説明では、前述した第1実施形態と同様の構成については、同じ参照番号を付し、その詳細な説明は省略するものとする。   FIG. 3 shows an updating apparatus 31 for a vehicle control program according to the second embodiment of the present invention. The updating device 31 is for updating the first to third control programs PR11 to PR13 for controlling the vehicle V, and includes the FIECU 32, the first rewriting device 33, the second rewriting device 34, and the in-cylinder pressure sensor. 21 and other vehicle control devices (not shown) (transmission control unit, VSA control unit, etc.) are provided. In the following description, the same reference numerals are assigned to the same configurations as those in the first embodiment described above, and detailed descriptions thereof are omitted.

第1書換装置33は、第1制御プログラムPR11として書き換えるべき第1更新用プログラムPRU11を取得し、FIECU32に送信するためのものである。第1書換装置33には、書換時、第1更新用プログラムPRU11を記録した記録媒体(図示せず)が装着される。第1書換装置33は、この記録媒体から第1更新用プログラムPRU11をブロック単位で読み出し、第1信号線35を介してFIECU32に送信する。なお、この第1更新用プログラムPRU11の最初のブロックには、第1更新用プログラムPRU11のブロック数を表す情報が記録されている。   The first rewriting device 33 is for acquiring the first update program PRU11 to be rewritten as the first control program PR11 and transmitting it to the FIECU 32. At the time of rewriting, the first rewriting device 33 is loaded with a recording medium (not shown) in which the first update program PRU11 is recorded. The first rewriting device 33 reads the first update program PRU11 from the recording medium in units of blocks, and transmits it to the FIECU 32 via the first signal line 35. In the first block of the first update program PRU11, information indicating the number of blocks of the first update program PRU11 is recorded.

第2書換装置34は、第2制御プログラムPR12として書き換えるべき第2更新用プログラムPRU12、または第3制御プログラムPR13として書き換えるべき第3更新用プログラムPRU13を取得し、FIECU32に送信するためのものである。なお、以下の説明では、第1〜第3更新用プログラムPRU11〜PRU13を総称して「更新用プログラムPRU」という。第2書換装置34には、書換時、第2または第3更新用プログラムPRU12,PRU13を記録した記録媒体(図示せず)が装着される。第2書換装置34は、この記録媒体から更新用プログラムPRUをブロック単位で読み出し、第2信号線36を介してFIECU32に送信する。なお、この更新用プログラムPRUの最初のブロックには、更新用プログラムPRUが第2または第3更新用プログラムPRU12,PRU13のいずれであるかを表す更新情報と、ブロック数を表す情報が、プログラム情報として記録されている。   The second rewriting device 34 is for acquiring the second update program PRU12 to be rewritten as the second control program PR12 or the third update program PRU13 to be rewritten as the third control program PR13 and transmitting it to the FIECU 32. . In the following description, the first to third update programs PRU11 to PRU13 are collectively referred to as “update program PRU”. At the time of rewriting, the second rewriting device 34 is loaded with a recording medium (not shown) in which the second or third update program PRU12, PRU13 is recorded. The second rewriting device 34 reads the update program PRU from the recording medium in units of blocks, and transmits it to the FI ECU 32 via the second signal line 36. The first block of the update program PRU includes update information indicating whether the update program PRU is the second or third update program PRU12 or PRU13, and information indicating the number of blocks. It is recorded as.

FIECU32は、第1ECU39、第2ECU40および第3ECU41などで構成されている。第1ECU39は、第2ECU40とシリアル通信可能に構成されており、EEPROM(図示せず)、Kライン通信用インターフェース(I/F)42、第1CAN通信用インターフェース(I/F)43、CPU44および不揮発性のフラッシュメモリ45などで構成されている。   The FIECU 32 includes a first ECU 39, a second ECU 40, a third ECU 41, and the like. The first ECU 39 is configured to be capable of serial communication with the second ECU 40, and includes an EEPROM (not shown), a K-line communication interface (I / F) 42, a first CAN communication interface (I / F) 43, a CPU 44, and a nonvolatile memory. Flash memory 45 or the like.

K通信用I/F42は、第1書換装置33とCPU44の間でKライン通信(またはシリアル通信)を行うためのものであり、第1書換装置33から送信された第1更新用プログラムPRU11を、第1信号線35を介して受信し、CPU44に送信する。   The K communication I / F 42 is for performing K line communication (or serial communication) between the first rewriting device 33 and the CPU 44. The first update program PRU11 transmitted from the first rewriting device 33 is stored in the K communication I / F 42. The signal is received via the first signal line 35 and transmitted to the CPU 44.

第1CAN通信用I/F43は、第2書換装置34とCPU44の間でCAN通信を行うためのものであり、第2書換装置34からの更新用プログラムPRUを、第2信号線36を介して受信し、CPU44に送信する。   The first CAN communication I / F 43 is for performing CAN communication between the second rewriting device 34 and the CPU 44, and the update program PRU from the second rewriting device 34 is sent via the second signal line 36. Receive and send to CPU 44.

フラッシュメモリ45の記憶領域には、電動モータで駆動されるスロットル装置(いずれも図示せず)の状態を監視するための第1制御プログラムPR11が記憶されている。この第1制御プログラムPR11は、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。   The storage area of the flash memory 45 stores a first control program PR11 for monitoring the state of a throttle device (none of which is shown) driven by an electric motor. The first control program PR11 is stored in block units in an address space designated by an address assigned to the storage area.

CPU44は、第1制御プログラムPR11を実行することによって、スロットル装置の状態を監視する。また、CPU44は、K通信用I/F42および第1CAN通信用I/F43を監視し、両者のどちらから更新用プログラムPRUを受信したかを判定するとともに、その判定結果に応じて、第1制御プログラムPR11を更新する。   The CPU 44 monitors the state of the throttle device by executing the first control program PR11. Further, the CPU 44 monitors the K communication I / F 42 and the first CAN communication I / F 43, determines which of the two has received the update program PRU, and performs the first control according to the determination result. The program PR11 is updated.

図4は、この更新処理のフローチャートを示している。本処理は、更新用プログラムPRUを受信したときに実行される。本処理では、まず、ステップ21において、更新用プログラムPRUの受信がK通信用I/F42を介して行われたか否かを判別する。この判別結果がYESのときには、受信した更新用プログラムPRUが第1更新用プログラムPRU11であるとして、その第1更新用プログラムPRU11中のブロック数を記憶するとともに(ステップ22)、第1制御プログラムPR11を更新する(ステップ23)。この更新動作は、前述した第1実施形態と同様、ブロック単位ごとに受信した第1更新用プログラムPRU11を、フラッシュメモリ45の対応するアドレス空間に書き込むことによって行われる。また、第1実施形態と同様、受信した第1更新用プログラムPRU11のブロック数と記憶したブロック数を比較することによって、第1更新用プログラムPRU11の更新が完了したか否かを判別し(ステップ24)、この判別結果がNOのときには、更新動作を繰り返す。   FIG. 4 shows a flowchart of this update process. This process is executed when the update program PRU is received. In this process, first, in step 21, it is determined whether or not the update program PRU has been received via the K communication I / F 42. When the determination result is YES, it is assumed that the received update program PRU is the first update program PRU11, the number of blocks in the first update program PRU11 is stored (step 22), and the first control program PR11 is stored. Is updated (step 23). This update operation is performed by writing the first update program PRU11 received for each block into the corresponding address space of the flash memory 45, as in the first embodiment. Similarly to the first embodiment, it is determined whether or not the update of the first update program PRU11 is completed by comparing the number of blocks of the received first update program PRU11 with the number of stored blocks (step 24) When the determination result is NO, the updating operation is repeated.

一方、前記ステップ21の判別結果がNOで、第1CAN通信用I/F43を介して更新用プログラムPRUを受信したときには、第2ECU40にそのまま転送し(ステップ25)、本処理を終了する。   On the other hand, when the determination result of step 21 is NO and the update program PRU is received via the first CAN communication I / F 43, the update program PRU is transferred to the second ECU 40 as it is (step 25), and this process is terminated.

第2ECU40は、第3ECU41とシリアル通信可能に構成されている。第2ECU40は、エンジン3の一方のバンクの各インジェクタ4の燃料噴射制御を実行するためのものであり、EEPROM(図示せず)、第2CAN通信用インターフェース(I/F)46、第3CAN通信用(I/F)47、CPU48および不揮発性のフラッシュメモリ49などで構成されている。また、第2ECU40は、信号線(図示せず)を介して一方のバンクのインジェクタ4に接続されている。   The second ECU 40 is configured to be capable of serial communication with the third ECU 41. The second ECU 40 is for executing fuel injection control of the injectors 4 in one bank of the engine 3, and includes an EEPROM (not shown), a second CAN communication interface (I / F) 46, and a third CAN communication. (I / F) 47, CPU 48, nonvolatile flash memory 49, and the like. Further, the second ECU 40 is connected to the injector 4 of one bank via a signal line (not shown).

第2CAN通信用I/F46は、CPU48と他の車両制御装置の間で第4信号線38を介してCAN通信を行うためのものである。第3CAN通信用I/F47は、CPU48と筒内圧センサ21の間でCAN通信を行うためのものであり、筒内圧変化量DPを、第3信号線37を介して受信し、CPU48に送信する。CPU48は、筒内圧変化量DPに基づいて筒内圧Pを算出する。   The second CAN communication I / F 46 is for performing CAN communication via the fourth signal line 38 between the CPU 48 and another vehicle control device. The third CAN communication I / F 47 is for performing CAN communication between the CPU 48 and the in-cylinder pressure sensor 21, and receives the in-cylinder pressure change amount DP through the third signal line 37 and transmits it to the CPU 48. . The CPU 48 calculates the in-cylinder pressure P based on the in-cylinder pressure change amount DP.

フラッシュメモリ49の記憶領域には、筒内圧Pに応じて燃料噴射量および燃料噴射時期を設定するための第2制御プログラムPR12が、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。   In the storage area of the flash memory 49, the second control program PR12 for setting the fuel injection amount and the fuel injection timing in accordance with the in-cylinder pressure P is blocked in an address space designated by the address assigned to the storage area. Stored in units.

CPU48は、第1実施形態の第2ECU6のCPU15と同様、第2制御プログラムPR12を実行することによって燃料噴射量および燃料噴射時期を設定するとともに、その結果に基づいて、駆動信号を生成し、信号線を介して一方のバンクのインジェクタ4に出力する。また、CPU48は、第1ECU39から更新用プログラムPRUが転送されたとき、プログラム情報中の更新情報に基づいて、受信した更新用プログラムPRUが第2または第3更新用プログラムPRU12,PRU13のいずれであるかを判別するとともに、その判別結果に応じて、第2更新用プログラムPR12を更新する。具体的には、受信した更新用プログラムPRUが第2更新用プログラムPRU12であるときには、前述した第1実施形態と同様の方法で、第2制御プログラムPR12を更新する。   As with the CPU 15 of the second ECU 6 of the first embodiment, the CPU 48 sets the fuel injection amount and the fuel injection timing by executing the second control program PR12, and generates a drive signal based on the result, It outputs to the injector 4 of one bank via a line. In addition, when the update program PRU is transferred from the first ECU 39, the CPU 48 receives either the second or third update program PRU12 or PRU13 based on the update information in the program information. And the second update program PR12 is updated according to the determination result. Specifically, when the received update program PRU is the second update program PRU12, the second control program PR12 is updated by the same method as in the first embodiment described above.

一方、受信した更新用プログラムPRUが第3更新用プログラムPRU13であるときには、第3更新用プログラムPRU13を破棄し、第2制御プログラムPR12の更新は行わない。   On the other hand, when the received update program PRU is the third update program PRU13, the third update program PRU13 is discarded and the second control program PR12 is not updated.

第3ECU41は、エンジン3の他方のバンクの各インジェクタ4の燃料噴射制御を実行するためのものであり、EEPROM(図示せず)、第4CAN通信用インターフェース(I/F)50、第5CAN通信用インターフェース(I/F)51、CPU52および不揮発性のフラッシュメモリ53などで構成されている。また、第3ECU41は、信号線(図示せず)を介して他方のバンクのインジェクタ4に接続されている。   The third ECU 41 is for executing fuel injection control of the injectors 4 in the other bank of the engine 3, and includes an EEPROM (not shown), a fourth CAN communication interface (I / F) 50, and a fifth CAN communication. An interface (I / F) 51, a CPU 52, a nonvolatile flash memory 53, and the like are included. Further, the third ECU 41 is connected to the injectors 4 of the other bank via signal lines (not shown).

第4および第5CAN通信用I/F50,51はそれぞれ、CPU52と第2書換装置34および筒内圧センサ21の間でCAN通信を行うためのものである。前者50は、第2書換装置34からの更新用プログラムPRUを、第2信号線36を介して受信し、CPU52に送信するとともに、後者51は、筒内圧変化量DPを、第3信号線37を介して受信し、CPU52に送信する。CPU52は、筒内圧変化量DPに基づいて筒内圧Pを算出する。   The fourth and fifth CAN communication I / Fs 50 and 51 are for performing CAN communication between the CPU 52, the second rewriting device 34, and the in-cylinder pressure sensor 21, respectively. The former 50 receives the update program PRU from the second rewriting device 34 via the second signal line 36 and transmits it to the CPU 52, and the latter 51 sends the in-cylinder pressure change amount DP to the third signal line 37. Is transmitted to the CPU 52. The CPU 52 calculates the in-cylinder pressure P based on the in-cylinder pressure change amount DP.

フラッシュメモリ53の記憶領域には、筒内圧Pに応じて燃料噴射量および燃料噴射時期を設定するための第3制御プログラムPR13が、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。   In the storage area of the flash memory 53, a third control program PR13 for setting the fuel injection amount and the fuel injection timing in accordance with the in-cylinder pressure P is blocked in an address space designated by the address assigned to the storage area. Stored in units.

CPU52は、第3制御プログラムPR13を実行することにより燃料噴射量および燃料噴射時期を設定するとともに、その結果に基づいて、駆動信号を生成し、信号線を介して他方のバンクのインジェクタ4に出力する。また、CPU52は、第2書換装置34から受信した更新用プログラムPRUが第3更新用プログラムPRU13のときには、上述した第2制御プログラムPR12の更新時と同様の手法で、第3制御プログラムPR13を更新する。一方、第2更新用プログラムPRU12を受信したときには、第2更新用プログラムPRU12を破棄し、第3制御プログラムPR13の更新は行わない。   The CPU 52 sets the fuel injection amount and the fuel injection timing by executing the third control program PR13, generates a drive signal based on the result, and outputs it to the injector 4 of the other bank via the signal line. To do. Further, when the update program PRU received from the second rewriting device 34 is the third update program PRU13, the CPU 52 updates the third control program PR13 by the same method as that for updating the second control program PR12 described above. To do. On the other hand, when the second update program PRU12 is received, the second update program PRU12 is discarded and the third control program PR13 is not updated.

以上のように、本実施形態によれば、第1ECU39のフラッシュメモリ45に記憶された第1制御プログラムPR11を更新するための第1更新用プログラムPRU11をK通信用I/F42を介して受信し、第2ECU40のフラッシュメモリ49に記憶された第2制御プログラムPR12を更新するための第2更新用プログラムPRU12を第1CAN通信用I/F43を介して受信する。このため、K通信用I/F42または第1CAN通信用I/F43のどちらから更新用プログラムPRUを受信したかを監視するだけで、第1または第2制御プログラムPR11,PR12のいずれを更新すべきかを即座に判定することができる。その結果、前述した従来の更新装置と異なり、更新用プログラムを読み込むことも、読み込んだ更新用プログラムに基づいて、第1プログラムまたは第2プログラムのいずれを更新すべきかを判定することも不要になり、その分、第1および第2制御プログラムPR11,PR12の更新を速やかに行うことができる。   As described above, according to the present embodiment, the first update program PRU11 for updating the first control program PR11 stored in the flash memory 45 of the first ECU 39 is received via the K communication I / F 42. The second update program PRU12 for updating the second control program PR12 stored in the flash memory 49 of the second ECU 40 is received via the first CAN communication I / F 43. Therefore, which of the first or second control programs PR11 and PR12 should be updated only by monitoring whether the update program PRU is received from the K communication I / F 42 or the first CAN communication I / F 43. Can be determined immediately. As a result, unlike the above-described conventional update device, it is not necessary to read an update program or to determine whether the first program or the second program should be updated based on the read update program. Accordingly, the first and second control programs PR11 and PR12 can be updated quickly.

なお、本発明は、説明した実施形態に限定されることなく、種々の態様で実施することができる。例えば、実施形態では、フラッシュメモリをECUに内蔵しているが、ECUの外部に設けてもよい。また、実施形態は、更新装置による更新の対象が、エンジン3の制御プログラムの例であるが、これに限らず、車両Vを制御するための他の制御プログラム、例えばトランスミッションの制御プログラムや、車両の挙動の安定化を図るために用いられるVSAシステムの制御プログラム、メータ情報を表示するためのプログラムでもよい。   In addition, this invention can be implemented in various aspects, without being limited to the described embodiment. For example, in the embodiment, the flash memory is built in the ECU, but may be provided outside the ECU. The embodiment is an example of the control program of the engine 3 that is updated by the update device, but is not limited to this, and other control programs for controlling the vehicle V, such as a transmission control program, It may be a VSA system control program used to stabilize the behavior of the meter, or a program for displaying meter information.

また、実施形態は、本発明をエンジンを搭載した車両に適用した例であるが、本発明は、これに限らず、電気モータを用いた電気自動車や、エンジンおよび電気モータを併用したハイブリッド車両に適用してもよい。その他、本発明の趣旨の範囲内で、細部の構成を適宜、変更することが可能である。   The embodiment is an example in which the present invention is applied to a vehicle equipped with an engine. However, the present invention is not limited to this, and the present invention is not limited to this. You may apply. In addition, it is possible to appropriately change the detailed configuration within the scope of the gist of the present invention.

本発明の第1実施形態による車両制御用プログラムの更新装置を、内燃機関を搭載した車両とともに概略的に示す図である。1 is a diagram schematically showing a vehicle control program updating apparatus according to a first embodiment of the present invention, together with a vehicle equipped with an internal combustion engine. 第1制御プログラムの更新処理のフローチャートである。It is a flowchart of the update process of a 1st control program. 本発明の第2実施形態による車両制御用プログラムの更新装置を、内燃機関を搭載した車両とともに概略的に示す図である。It is a figure which shows roughly the update apparatus of the program for vehicle control by 2nd Embodiment of this invention with the vehicle carrying an internal combustion engine. 第1制御プログラムの更新処理のフローチャートである。It is a flowchart of the update process of a 1st control program.

符号の説明Explanation of symbols

1 更新装置
5 第1ECU(第1制御ユニット)
6 第2ECU(第2制御ユニット)
7 第1スイッチ(スイッチ)
9 第1CAN通信用I/F(第1インターフェース)
12 フラッシュメモリ(第1記憶部)
14 第4CAN通信用I/F(第2インターフェース)
16 フラッシュメモリ(第2記憶部)
17 第1信号線(信号線)
31 更新装置
35 第1信号線
36 第2信号線
39 第1ECU(第1制御ユニット)
40 第2ECU(第2制御ユニット)
42 K通信用I/F(第1インターフェース)
43 第1CAN通信用I/F(第2インターフェース)
45 フラッシュメモリ(第1記憶部)
49 フラッシュメモリ(第2記憶部)
V 車両
PRU1 第1更新用プログラム
PRU11 第1更新用プログラム
PRU2 第2更新用プログラム
PRU12 第2更新用プログラム
PR1 第1制御プログラム
PR11 第1制御プログラム
PR2 第2制御プログラム
PR12 第2制御プログラム
DESCRIPTION OF SYMBOLS 1 Update apparatus 5 1ECU (1st control unit)
6 Second ECU (second control unit)
7 First switch (switch)
9 First CAN communication I / F (first interface)
12 Flash memory (first storage unit)
14 4th CAN communication I / F (second interface)
16 Flash memory (second storage unit)
17 First signal line (signal line)
31 Update Device 35 First Signal Line 36 Second Signal Line 39 First ECU (First Control Unit)
40 Second ECU (second control unit)
42K communication I / F (first interface)
43 1st CAN communication I / F (second interface)
45 Flash memory (first storage unit)
49 Flash memory (second storage unit)
V vehicle PRU1 first update program PRU11 first update program PRU2 second update program PRU12 second update program PR1 first control program PR11 first control program PR2 second control program PR12 second control program

Claims (2)

第1更新用プログラムおよび第2更新用プログラムを送信するための信号線と、
第1記憶部と、
当該第1記憶部に記憶され、車両を制御するための第1制御プログラムと、
第1インターフェースを有し、当該第1インターフェースを介して前記信号線に常時、接続されるとともに、前記第1制御プログラムを実行する第1制御ユニットと、
第2記憶部と、
当該第2記憶部に記憶され、前記車両を制御するための第2制御プログラムと、
第2インターフェースを有するとともに、前記第2制御プログラムを実行する第2制御ユニットと、
前記信号線と前記第2インターフェースの間を接続または遮断する常開式のスイッチと、
を備え、
前記第1制御ユニットは、前記第1インターフェースを介して受信した更新用プログラムが前記第1更新用プログラムまたは前記第2更新用プログラムのいずれであるかを判定し、当該判定の結果、前記第1更新用プログラムを受信したときに、前記第1制御プログラムを前記第1更新用プログラムに書き換えることにより更新し、前記第2更新用プログラムを受信したときに、前記スイッチを駆動することにより前記信号線を前記第2インターフェースに接続し、
前記第2制御ユニットは、前記第2制御プログラムを、前記スイッチにより接続された前記第2インターフェースを介して記信号線から受信した前記第2更新用プログラムに書き換えることにより更新することを特徴とする車両制御用プログラムの更新装置。
A signal line for transmitting the first update program and the second update program;
A first storage unit;
A first control program stored in the first storage unit for controlling the vehicle;
A first control unit that has a first interface, is always connected to the signal line via the first interface, and executes the first control program;
A second storage unit;
A second control program stored in the second storage unit for controlling the vehicle;
A second control unit having a second interface and executing the second control program;
A normally open switch for connecting or disconnecting between the signal line and the second interface;
With
The first control unit determines whether the update program received via the first interface is the first update program or the second update program, and as a result of the determination, the first control unit When the update program is received, the first control program is updated by rewriting to the first update program, and when the second update program is received, the signal line is driven by driving the switch. Connected to the second interface,
The second control unit includes a feature to update by rewriting the second control program, the second update program received from the previous SL signal line via the second interface that is connected by said switch An apparatus for updating a vehicle control program.
第1書換装置からの第1更新用プログラムを送信するための第1信号線と、
第2書換装置からの、前記第1更新用プログラムと異なる第2更新用プログラムを送信するための第2信号線と、
第1記憶部と、
当該第1記憶部に記憶され、車両を制御するための第1制御プログラムと、
第1インターフェースおよび第2インターフェースを有し、前記第1インターフェースを介して前記第1信号線に接続され、前記第2インターフェースを介して第2信号線に接続されるとともに、前記第1制御プログラムを実行する第1制御ユニットと、
第2記憶部と、
当該第2記憶部に記憶され、前記車両を制御するための第2制御プログラムと、
前記第1制御ユニットと通信可能に構成され、前記第2制御プログラムを実行する第2制御ユニットと、
を備え、
前記第1制御ユニットは、前記第1インターフェースを介して前記第1更新用プログラムを受信したときに、前記第1制御プログラムを前記第1更新用プログラムに書き換えることにより更新し、前記第2インターフェースを介して前記第2更新用プログラムを受信したときに、当該第2更新用プログラムを前記第2制御ユニットに転送し、
当該第2制御ユニットは、前記第2制御プログラムを前記第1制御ユニットから転送された前記第2更新用プログラムに書き換えることにより更新することを特徴とする車両制御用プログラムの更新装置。
A first signal line for transmitting the first update program from the first rewriting device ;
A second signal line for transmitting a second updating program different from the first updating program from the second rewriting device ;
A first storage unit;
A first control program stored in the first storage unit for controlling the vehicle;
A first interface and a second interface; connected to the first signal line via the first interface; connected to the second signal line via the second interface; and A first control unit to execute;
A second storage unit;
A second control program stored in the second storage unit for controlling the vehicle;
A second control unit configured to be communicable with the first control unit and executing the second control program;
With
When the first control unit receives the first update program via the first interface, the first control unit updates the first control program by rewriting the first update program, and the second interface is updated. When the second update program is received via the second update program, the second update program is transferred to the second control unit,
The second control unit updates the second control program by rewriting the second control program with the second update program transferred from the first control unit.
JP2007266066A 2007-10-12 2007-10-12 Update device for vehicle control program Expired - Fee Related JP5060242B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007266066A JP5060242B2 (en) 2007-10-12 2007-10-12 Update device for vehicle control program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007266066A JP5060242B2 (en) 2007-10-12 2007-10-12 Update device for vehicle control program

Publications (2)

Publication Number Publication Date
JP2009090940A JP2009090940A (en) 2009-04-30
JP5060242B2 true JP5060242B2 (en) 2012-10-31

Family

ID=40663333

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007266066A Expired - Fee Related JP5060242B2 (en) 2007-10-12 2007-10-12 Update device for vehicle control program

Country Status (1)

Country Link
JP (1) JP5060242B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8418019B2 (en) * 2010-04-19 2013-04-09 Lsi Corporation Systems and methods for dynamic scaling in a data decoding system
JP5687171B2 (en) * 2011-10-14 2015-03-18 株式会社日立産機システム Controller, monitoring unit, and sequence program update method
JP5625036B2 (en) * 2012-12-25 2014-11-12 本田技研工業株式会社 Data writing method and data writing apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07271408A (en) * 1994-03-30 1995-10-20 Hitachi Ltd Processor for control
JP3137012B2 (en) * 1996-12-09 2001-02-19 株式会社デンソー Electronic control unit
JP4627161B2 (en) * 2004-07-14 2011-02-09 株式会社オートネットワーク技術研究所 In-vehicle communication system and connector device with communication control function
JP2007230317A (en) * 2006-02-28 2007-09-13 Hitachi Ltd Brake control system, and its program updating method

Also Published As

Publication number Publication date
JP2009090940A (en) 2009-04-30

Similar Documents

Publication Publication Date Title
US6275911B1 (en) Memory writing device for an electronic device
US8219280B2 (en) Vehicle information storage apparatus
US7962274B2 (en) Vehicle-mounted engine control apparatus
EP1600981B1 (en) Stored data rewriting system for on-board control unit
JP5505493B2 (en) Electronic control system and electronic control device
JP2010247590A (en) Rewriting system for vehicle
JP5060242B2 (en) Update device for vehicle control program
WO2009090978A1 (en) Vehicle control device
US20090187303A1 (en) Method For Model-Based Diagnosis Of A Mechatronic System
JP2012224315A (en) In-vehicle electronic control device, diagnostic tool and diagnostic system
JP4600510B2 (en) Control device and program
JP5908304B2 (en) Fuel injection control system
JP2009042850A (en) Control device for vehicle, and device for updating vehicle control program
US8832537B2 (en) Information management apparatus and information managing method
JP6663371B2 (en) Electronic control unit
JP4707411B2 (en) Electronic control device for vehicle
JP4960545B2 (en) MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM
JP6381490B2 (en) In-vehicle electronic control unit
JP6696216B2 (en) Driving status recorder
JP6887277B2 (en) Electronic control device for automobiles
JP7260995B2 (en) electronic controller
JP4399696B2 (en) Internal combustion engine control device and data communication system using internal combustion engine control device
JP2019045952A (en) Vehicle information memory device
JP4924898B2 (en) Engine start-up control device
WO2011125236A1 (en) Vehicle information monitoring apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120118

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120207

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120405

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120710

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120803

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150810

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5060242

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees