JP5060242B2 - Update device for vehicle control program - Google Patents
Update device for vehicle control program Download PDFInfo
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Programmable Controllers (AREA)
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
具体的には、外部装置から送信された更新用プログラムは、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.
上記の目的を達成するため、請求項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
この車両制御用プログラムの更新装置は、第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
この車両制御用プログラムの更新装置は、第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
シリンダヘッド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
更新装置1は、エンジン3を介して車両Vを制御するための第1制御プログラムPR1および第2制御プログラムPR2を更新するためのものであり、FIECU2、書換装置20、FIECU2と書換装置20を接続する第1信号線17、FIECU2と筒内圧センサ21を接続する第2信号線18、および第3信号線19を備えている。
The
書換装置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
FIECU2は、第1ECU5、第2ECU6、第1スイッチ7および第2スイッチ8などで構成されている。第1ECU5は、エンジン3の一方のバンクの各インジェクタ4の燃料噴射量および燃料噴射時期を含む燃料噴射制御を実行し、第2ECU6は、他方のバンクの各インジェクタ4の燃料噴射制御を実行する。
The
第1ECU5は、第2ECU6とシリアル通信可能に構成されており、EEPROM(図示せず)、第1CAN通信用インターフェース(I/F)9、第2CAN通信用インターフェース(I/F)10、CPU11および不揮発性のフラッシュメモリ12などで構成されている。また、第1ECU5は、信号線(図示せず)を介して一方のバンクのインジェクタ4に電気的に接続されている。
The
第1CAN通信用I/F9は、書換装置20とCPU11の間でCAN通信を行うためのものであり、書換装置20から送信された更新用プログラムPRUを、第1信号線17を介して受信し、CPU11に送信する。
The first CAN communication I /
第2CAN通信用I/F10は、筒内圧センサ21とCPU11の間でCAN通信を行うためのものであり、筒内圧センサ21で検出された筒内圧変化量DPを、第2信号線18を介して受信し、CPU11に送信する。CPU11は、筒内圧変化量DPに基づいて、気筒3a内に発生する筒内圧Pを算出する。
The second CAN communication I /
フラッシュメモリ12の記憶領域には、第1制御プログラムPR1が記憶されている。この第1制御プログラムPR1は、筒内圧Pに応じて、一方のバンクのインジェクタ4の燃料噴射量および燃料噴射時期を設定するためのものであり、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。
In the storage area of the
第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
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
図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
次に、第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
一方、前記ステップ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
第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
第3CAN通信用I/F13は、CPU15とトランスミッション制御ユニットやVSA制御ユニットなどの他の車両制御装置(図示せず)との間で、第3信号線19を介してCAN通信を行うためのものである。
The third CAN communication I /
第4CAN通信用I/F14は、筒内圧センサ21とCPU15の間でCAN通信を行うためのものであり、第2スイッチ8が閉鎖されているとき、すなわち駆動信号SDが出力されていない通常時に、筒内圧センサ21で検出された筒内圧変化量DPを、第2信号線18を介して受信し、CPU15に送信する。CPU15は、筒内圧変化量DPに基づいて筒内圧Pを算出する。
The fourth CAN communication I /
フラッシュメモリ16の記憶領域には、第2制御プログラムPR2が記憶されている。この第2制御プログラムPR2は、筒内圧Pに応じて、他方のバンクのインジェクタ4の燃料噴射量および燃料噴射時期を設定するためのものであり、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。
In the storage area of the
CPU15は、第2制御プログラムPR2を実行することによって燃料噴射量および燃料噴射時期を設定するとともに、その結果に基づいて、他方のバンクのインジェクタ4を駆動するための駆動信号を生成し、信号線を介してそれらのインジェクタ4に出力する。また、CPU15は、前記ステップ5での駆動信号SDの出力による第1スイッチ7の接続によって、書換装置20から第2更新用プログラムPRU2を受信したときに、第2制御プログラムPR2を第2更新用プログラムPRU2に書き換え、更新する。
The
この更新動作は、フラッシュメモリ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
以上のように、本実施形態によれば、第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
また、第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
図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
第1書換装置33は、第1制御プログラムPR11として書き換えるべき第1更新用プログラムPRU11を取得し、FIECU32に送信するためのものである。第1書換装置33には、書換時、第1更新用プログラムPRU11を記録した記録媒体(図示せず)が装着される。第1書換装置33は、この記録媒体から第1更新用プログラムPRU11をブロック単位で読み出し、第1信号線35を介してFIECU32に送信する。なお、この第1更新用プログラムPRU11の最初のブロックには、第1更新用プログラムPRU11のブロック数を表す情報が記録されている。
The
第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
FIECU32は、第1ECU39、第2ECU40および第3ECU41などで構成されている。第1ECU39は、第2ECU40とシリアル通信可能に構成されており、EEPROM(図示せず)、Kライン通信用インターフェース(I/F)42、第1CAN通信用インターフェース(I/F)43、CPU44および不揮発性のフラッシュメモリ45などで構成されている。
The
K通信用I/F42は、第1書換装置33とCPU44の間でKライン通信(またはシリアル通信)を行うためのものであり、第1書換装置33から送信された第1更新用プログラムPRU11を、第1信号線35を介して受信し、CPU44に送信する。
The K communication I /
第1CAN通信用I/F43は、第2書換装置34とCPU44の間でCAN通信を行うためのものであり、第2書換装置34からの更新用プログラムPRUを、第2信号線36を介して受信し、CPU44に送信する。
The first CAN communication I /
フラッシュメモリ45の記憶領域には、電動モータで駆動されるスロットル装置(いずれも図示せず)の状態を監視するための第1制御プログラムPR11が記憶されている。この第1制御プログラムPR11は、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。
The storage area of the
CPU44は、第1制御プログラムPR11を実行することによって、スロットル装置の状態を監視する。また、CPU44は、K通信用I/F42および第1CAN通信用I/F43を監視し、両者のどちらから更新用プログラムPRUを受信したかを判定するとともに、その判定結果に応じて、第1制御プログラムPR11を更新する。
The
図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
一方、前記ステップ21の判別結果がNOで、第1CAN通信用I/F43を介して更新用プログラムPRUを受信したときには、第2ECU40にそのまま転送し(ステップ25)、本処理を終了する。
On the other hand, when the determination result of
第2ECU40は、第3ECU41とシリアル通信可能に構成されている。第2ECU40は、エンジン3の一方のバンクの各インジェクタ4の燃料噴射制御を実行するためのものであり、EEPROM(図示せず)、第2CAN通信用インターフェース(I/F)46、第3CAN通信用(I/F)47、CPU48および不揮発性のフラッシュメモリ49などで構成されている。また、第2ECU40は、信号線(図示せず)を介して一方のバンクのインジェクタ4に接続されている。
The
第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 /
フラッシュメモリ49の記憶領域には、筒内圧Pに応じて燃料噴射量および燃料噴射時期を設定するための第2制御プログラムPR12が、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。
In the storage area of the
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
一方、受信した更新用プログラム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
第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 /
フラッシュメモリ53の記憶領域には、筒内圧Pに応じて燃料噴射量および燃料噴射時期を設定するための第3制御プログラムPR13が、記憶領域に割り当てられたアドレスによって指定されるアドレス空間に、ブロック単位で記憶されている。
In the storage area of the
CPU52は、第3制御プログラムPR13を実行することにより燃料噴射量および燃料噴射時期を設定するとともに、その結果に基づいて、駆動信号を生成し、信号線を介して他方のバンクのインジェクタ4に出力する。また、CPU52は、第2書換装置34から受信した更新用プログラムPRUが第3更新用プログラムPRU13のときには、上述した第2制御プログラムPR12の更新時と同様の手法で、第3制御プログラムPR13を更新する。一方、第2更新用プログラムPRU12を受信したときには、第2更新用プログラムPRU12を破棄し、第3制御プログラムPR13の更新は行わない。
The
以上のように、本実施形態によれば、第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
なお、本発明は、説明した実施形態に限定されることなく、種々の態様で実施することができる。例えば、実施形態では、フラッシュメモリを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
また、実施形態は、本発明をエンジンを搭載した車両に適用した例であるが、本発明は、これに限らず、電気モータを用いた電気自動車や、エンジンおよび電気モータを併用したハイブリッド車両に適用してもよい。その他、本発明の趣旨の範囲内で、細部の構成を適宜、変更することが可能である。 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 更新装置
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
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
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記憶部と、
当該第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.
第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.
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) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7620808B1 (en) | 2024-09-03 | 2025-01-24 | 憩次 亀岡 | Roll paper cutter |
Families Citing this family (3)
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)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH07271408A (en) * | 1994-03-30 | 1995-10-20 | Hitachi Ltd | Control processor |
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 program update method thereof |
-
2007
- 2007-10-12 JP JP2007266066A patent/JP5060242B2/en not_active Expired - Fee Related
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP7620808B1 (en) | 2024-09-03 | 2025-01-24 | 憩次 亀岡 | Roll paper cutter |
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 | |
JP4803168B2 (en) | Vehicle information storage device | |
JP5060242B2 (en) | Update device for vehicle control program | |
US20090030587A1 (en) | Vehicle-mounted engine control apparatus | |
CN106462479B (en) | Vehicle controls, reprogramming systems | |
JP5505493B2 (en) | Electronic control system and electronic control device | |
JP4835755B2 (en) | Vehicle control device | |
JP2010247590A (en) | Rewriting system for vehicle | |
JP5360123B2 (en) | In-vehicle electronic control device, diagnostic tool and diagnostic system | |
JP2009042850A (en) | Control device for vehicle, and device for updating vehicle control program | |
US20090187303A1 (en) | Method For Model-Based Diagnosis Of A Mechatronic System | |
JP5908304B2 (en) | Fuel injection control system | |
EP1600981B1 (en) | Stored data rewriting system for on-board control unit | |
JP4600510B2 (en) | Control device and program | |
JP6663371B2 (en) | Electronic control unit | |
US8832537B2 (en) | Information management apparatus and information managing method | |
JP7503117B2 (en) | Vehicle Electronic Control Unit | |
JP2019045952A (en) | Vehicle information memory device | |
JP4960545B2 (en) | MEMORY WRITE DEVICE, MEMORY WRITE METHOD, AND RECORDING MEDIUM CONTAINING MEMORY WRITE PROGRAM | |
KR101388729B1 (en) | Method and system for measuring or modifying memory of ECU using calibration tool | |
JP6696216B2 (en) | Driving status recorder | |
JP4399696B2 (en) | Internal combustion engine control device and data communication system using internal combustion engine control device | |
JP7260995B2 (en) | electronic controller | |
JP2005011214A (en) | Method for writing application software at inspection process of electronic system | |
JP2025015002A (en) | Electronic control device and memory inspection method |
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 |