JP4488345B2 - In-vehicle electronic control unit communication device - Google Patents

In-vehicle electronic control unit communication device Download PDF

Info

Publication number
JP4488345B2
JP4488345B2 JP2004113763A JP2004113763A JP4488345B2 JP 4488345 B2 JP4488345 B2 JP 4488345B2 JP 2004113763 A JP2004113763 A JP 2004113763A JP 2004113763 A JP2004113763 A JP 2004113763A JP 4488345 B2 JP4488345 B2 JP 4488345B2
Authority
JP
Japan
Prior art keywords
electronic control
start request
control unit
request signal
external tool
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 - Lifetime
Application number
JP2004113763A
Other languages
Japanese (ja)
Other versions
JP2005297652A (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.)
Subaru Corp
Original Assignee
Fuji Jukogyo KK
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 Fuji Jukogyo KK filed Critical Fuji Jukogyo KK
Priority to JP2004113763A priority Critical patent/JP4488345B2/en
Publication of JP2005297652A publication Critical patent/JP2005297652A/en
Application granted granted Critical
Publication of JP4488345B2 publication Critical patent/JP4488345B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Combined Controls Of Internal Combustion Engines (AREA)

Description

この発明は、車両に搭載されかつ通信ラインを介して相互に接続されている複数の電子制御ユニットが記憶している制御プログラムの書き換えを行う車載電子制御装置の通信装置に関するものである。   The present invention relates to a communication device for an in-vehicle electronic control device that rewrites a control program stored in a plurality of electronic control units mounted on a vehicle and connected to each other via a communication line.

従来、通信ライン(CANバス)を介して互いに接続され、それぞれ制御ユニット(CANコントローラユニット)を有する複数の電子制御ユニット(ノード)間においてデータ通信を行うCAN通信システムが知られている。CAN通信は、差動のシリアルバスを介して双方向のシリアル通信を行うプロトコルである(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, a CAN communication system is known that performs data communication between a plurality of electronic control units (nodes) that are connected to each other via a communication line (CAN bus) and each have a control unit (CAN controller unit). CAN communication is a protocol for performing bidirectional serial communication via a differential serial bus (see, for example, Patent Document 1).

かかるCAN通信システムにおいて、各ノードは、自己のノードの識別IDコードを付したデータをCANバスに向けて送り出し、データが送信される際にCANバスが他のノードによるデータに専有されていない場合には、ノードから送り出されるデータはCANバスを流れて他のノードに受信される。一方、CANバスが他のノードによるデータに専有されている場合には、ノードから送り出されるべきデータはCANコントローラユニットにおいて待機状態となる。そして、待機状態のノードのデータが唯一つの場合には、CANバスが空いた際に、そのノードのデータがCANバスを流れる。一方、待機状態のノードのデータが複数存在する場合には、それらのうちIDコードに基づく優先順位の最も高いノードのデータが他の待機データよりも先にCANバスを流れる。   In such a CAN communication system, each node sends out data with an identification ID code of its own node toward the CAN bus, and when the data is transmitted, the CAN bus is not dedicated to data by other nodes In this case, data sent from the node flows through the CAN bus and is received by another node. On the other hand, when the CAN bus is exclusively used for data by other nodes, the data to be sent from the node is in a standby state in the CAN controller unit. If the data of the node in the standby state is only one, the data of the node flows through the CAN bus when the CAN bus is free. On the other hand, when there are a plurality of standby node data, the node data having the highest priority based on the ID code flows through the CAN bus before the other standby data.

特開2001−142796号公報JP 2001-142996 A

ところで、生産効率改善のために、車両に搭載される複数の電子制御ユニットのハードウエアの仕様は車種や仕向け地によらず統一した構成とし、生産ラインにおいて車種や仕向け地に応じた制御プログラムを電子制御ユニットのメモリに記憶させることが検討されている。また、生産された車両の性能等に不具合が生じた場合などには、搭載されている電子制御ユニットの制御プログラムの変更が必要になる場合がある。   By the way, in order to improve production efficiency, the hardware specifications of multiple electronic control units installed in the vehicle are unified regardless of the vehicle type and destination, and a control program corresponding to the vehicle type and destination is provided on the production line. It has been studied to store in the memory of the electronic control unit. In addition, when a malfunction occurs in the performance of the produced vehicle, it may be necessary to change the control program of the mounted electronic control unit.

このような場合に、CAN通信システムを用いて電子制御ユニットの制御プログラムの書き換えを行うことができるが、多数の電子制御ユニット(ノード)が共通の通信ライン(CANバス)を用いて通信を実施しているため、通信ラインの空き時間が少なく、電子制御ユニットの制御プログラムの書き換えの場合のように、多量のデータを通信ラインを介して送信する必要がある場合には、非常に長い時間を要することになる。また、制御プログラムの書き換え中は、書き換えの対象となっている制御プログラムを記憶している電子制御ユニットは、通常、作動停止状態となるため、他の電子制御ユニットが異常を検知することがあるという問題があった。   In such a case, the control program of the electronic control unit can be rewritten using the CAN communication system, but many electronic control units (nodes) communicate using a common communication line (CAN bus). Therefore, if the communication line has little free time and a large amount of data needs to be transmitted through the communication line, as in the case of rewriting the control program of the electronic control unit, a very long time is required. It will take. In addition, while the control program is being rewritten, the electronic control unit that stores the control program to be rewritten is normally in a non-operational state, so other electronic control units may detect an abnormality. There was a problem.

この発明が解決しようとする課題は、通信ラインを介して相互に接続されている複数の電子制御ユニットのなかの1つが記憶している制御プログラムの書き換えを行う場合に、他の電子制御ユニットが異常を検知することによる誤動作を防止し、高速に制御プログラムの書き換えを行う車載電子制御装置の通信装置を提供することである。   The problem to be solved by the present invention is that when rewriting a control program stored in one of a plurality of electronic control units connected to each other via a communication line, other electronic control units To provide a communication device for an in-vehicle electronic control device that prevents malfunction caused by detecting an abnormality and rewrites a control program at high speed.

この発明の車載電子制御装置の通信装置は、車両に搭載されかつ通信ラインを介して相互に接続されている複数の電子制御ユニットが記憶している制御プログラムの書換えを前記通信ラインに接続された外部ツールを用いて行う車載電子制御装置の通信装置において、書き換え対象となっている制御プログラムが記憶されている書換対象電子制御ユニットは、外部ツールからの書き込み開始要求信号を受信する第1の開始要求信号受信手段と、第1の開始要求信号受信手段により受信された書き込み開始要求信号に基づいて予め設定されているセルフシャット時間の延長を行うセルフシャット時間延長手段と、予め設定されているセルフシャット時間の経過後、外部ツールから送信されるデータに基づいて制御プログラムの書換えを行う制御プログラム書換手段と、外部ツールからの延長終了信号に基づいて、該書換対象電子制御ユニットの電源をオフする第1の電源制御手段とを備え、書換対象電子制御ユニット以外の非書換対象電子制御ユニットは、外部ツールからの書き込み開始要求信号を受信する第2の開始要求信号受信手段と、第2の開始要求信号受信手段により書き込み開始要求信号を受信した場合には、予め設定されているセルフシャット時間の経過後、該非書換対象電子制御ユニットの電源をオフする第2の電源制御手段とを備え、前記第1の開始要求信号受信手段により前記外部ツールからの書き込み開始要求信号が受信された後、所定時間内にイグニッションスイッチがオフされない場合には、前記書き込み開始要求信号を無効とすることを特徴とする。
The communication device of the on-vehicle electronic control device according to the present invention is connected to the communication line to rewrite a control program stored in a plurality of electronic control units mounted on the vehicle and connected to each other via the communication line. In a communication device of an in-vehicle electronic control device that uses an external tool, a rewrite target electronic control unit that stores a control program to be rewritten receives a write start request signal from an external tool for a first start A request signal receiving means, a self-shut time extending means for extending a preset self-shut time based on a write start request signal received by the first start request signal receiving means, and a preset self Control that rewrites the control program based on the data sent from the external tool after the shut time elapses A non-rewriteable electronic control unit other than the rewrite target electronic control unit, comprising: a program rewrite means; and a first power supply control means for turning off the power of the rewrite target electronic control unit based on an extension end signal from an external tool. A second start request signal receiving means for receiving a write start request signal from an external tool, and when the second start request signal receiving means receives the write start request signal, a preset self-shut A second power control means for turning off the power of the non-rewritable electronic control unit after a lapse of time, and after the writing start request signal from the external tool is received by the first start request signal receiving means , when the ignition switch is not turned off within a predetermined time, characterized that you and disabling the write start request signal.

この発明の車載電子制御装置の通信装置によれば、書換対象電子制御ユニットは、書き込み開始要求信号を受信すると予め設定されているセルフシャット時間の延長を行い、予め設定されているセルフシャット時間の経過後、外部ツールから送信されるデータに基づいて制御プログラムの書き換えを行う。そして、外部ツールからの延長終了信号に基づいて電源をオフする。この場合において、非書換対象電子制御ユニットは、外部ツールからの書き込み開始要求信号を受信すると予め設定されているセルフシャット時間の経過後、電源をオフする。即ち、書換対象電子制御ユニットの制御プログラムの書き換えは、予め設定されているセルフシャット時間の経過後行われる。従って、書換対象電子制御ユニットの制御プログラムの書き換えが行われるときには、非書換対象電子制御ユニットの電源が既にオフされていることから、非書換対象電子制御ユニットにおける自己診断及び自己診断結果の送信が停止されており、通信ラインを外部ツールと書換対象電子制御ユニットとの間におけるデータの送信に専有することができ、非書換対象電子制御ユニットが異常を検知することによる誤動作を防止することができると共に、高速で制御プログラムの書き換えを行うことができる。   According to the communication device of the in-vehicle electronic control device of the present invention, when the rewrite target electronic control unit receives the write start request signal, the rewrite target electronic control unit extends the preset self-shut time, and sets the preset self-shut time. After the elapse, the control program is rewritten based on the data transmitted from the external tool. Then, the power is turned off based on the extension end signal from the external tool. In this case, when the non-rewrite target electronic control unit receives a write start request signal from an external tool, the non-rewrite target electronic control unit turns off the power after a preset self-shut time has elapsed. In other words, the rewriting of the control program of the rewriting target electronic control unit is performed after elapse of a preset self-shut time. Therefore, when the control program of the rewrite target electronic control unit is rewritten, the power supply of the non-rewrite target electronic control unit is already turned off. The communication line is stopped and the communication line can be used exclusively for data transmission between the external tool and the electronic control unit to be rewritten, and malfunction caused by the abnormality being detected by the electronic control unit to be rewritten can be prevented. At the same time, the control program can be rewritten at high speed.

この発明の車載電子制御装置の通信装置によれば、外部ツールからの書き込み開始要求信号が受信された後、所定時間内にイグニッションスイッチがオフされない場合には、異常と判断して書き込み開始要求信号を無効とする。従って、異常時等に書換対象電子制御ユニットのセルフシャット時間が不要に延長されることを防止することができる。   According to the communication device of the in-vehicle electronic control device of the present invention, if the ignition switch is not turned off within a predetermined time after the write start request signal is received from the external tool, it is determined as abnormal and the write start request signal Is invalid. Accordingly, it is possible to prevent the self-shut time of the electronic control unit to be rewritten from being unnecessarily extended when an abnormality occurs.

また、この発明の車載電子制御装置の通信装置は、第1の電源制御手段が予め設定されているセルフシャット時間の経過後指定時間内に、外部ツールからデータが送信されない場合には、該書換対象電子制御ユニットの電源をオフすることを特徴とする。   In addition, the communication device of the on-vehicle electronic control device according to the present invention is configured so that the first power control means rewrites data when no data is transmitted from an external tool within a specified time after the preset self-shut time elapses. The target electronic control unit is turned off.

この発明の車載電子制御装置の通信装置によれば、予め設定されているセルフシャット時間の経過後指定時間内に、外部ツールからデータが送信されない場合には、異常と判断して電源をオフする。従って、異常時等に書換対象電子制御ユニットの電源が不要にオンされている状態になることを防止することができる。   According to the communication device of the on-vehicle electronic control device of the present invention, when data is not transmitted from the external tool within a specified time after the elapse of a preset self-shut time, it is determined as abnormal and the power is turned off. . Therefore, it is possible to prevent the power source of the electronic control unit to be rewritten from being turned on unnecessarily when an abnormality occurs.

この発明によれば、書換対象電子制御ユニットの制御プログラムの書き換えが行われるときには、非書換対象電子制御ユニットの電源が既にオフされていることから、非書換対象電子制御ユニットにおける自己診断及び自己診断結果の送信が停止されており、通信ラインを外部ツールと書換対象電子制御ユニットとの間におけるデータの送信に専有することができる。従って、非書換対象電子制御ユニットが異常を検知することによる誤動作を防止することができると共に、高速で制御プログラムの書き換えを行うことができる。   According to the present invention, when the control program of the rewrite target electronic control unit is rewritten, the power supply of the non-rewrite target electronic control unit is already turned off. The transmission of the result is stopped, and the communication line can be used exclusively for data transmission between the external tool and the electronic control unit to be rewritten. Accordingly, it is possible to prevent malfunction caused by the abnormality being detected by the non-rewritable electronic control unit, and it is possible to rewrite the control program at high speed.

また、この発明によれば、外部ツールからの書き込み開始要求信号が受信された後、所定時間内にイグニッションスイッチがオフされない場合には、異常と判断して書き込み開始要求信号を無効とする。従って、異常時等に書換対象電子制御ユニットのセルフシャット時間が不要に延長されることを防止することができる。   Further, according to the present invention, if the ignition switch is not turned off within a predetermined time after the write start request signal is received from the external tool, it is determined as abnormal and the write start request signal is invalidated. Accordingly, it is possible to prevent the self-shut time of the electronic control unit to be rewritten from being unnecessarily extended when an abnormality occurs.

また、この発明によれば、予め設定されているセルフシャット時間の経過後指定時間内に、外部ツールからデータが送信されない場合には、異常と判断して電源をオフする。従って、異常時等に書換対象電子制御ユニットの電源が不要にオンされている状態になることを防止することができる。   Further, according to the present invention, if data is not transmitted from the external tool within a specified time after the preset self-shut time has elapsed, it is determined that there is an abnormality and the power is turned off. Therefore, it is possible to prevent the power source of the electronic control unit to be rewritten from being turned on unnecessarily when an abnormality occurs.

以下、図面を参照して、この発明の実施の形態に係る車載電子制御ユニットの通信装置を用いて行う制御プログラム書き換えについて説明する。   Hereinafter, rewriting of a control program performed using the communication device of the in-vehicle electronic control unit according to the embodiment of the present invention will be described with reference to the drawings.

図1は、実施の形態に係る車載電子制御ユニットの通信装置を用いて制御プログラムの書き換えを行う電子制御ユニット及びその他の電子制御ユニットが通信ラインを介して接続されている状態を示す図である。即ち、車両に搭載されているエンジン電子制御ユニット(エンジンECU)10、オートマチック・トランスミッション電子制御ユニット(AT・ECU)12、アンチロックブレーキ電子制御ユニット(ABS・ECU)14が通信ライン(CANバス)18を介して接続されている。なお、図1においては、各電子制御ユニット10,12,14が記憶している制御プログラムの書き換えを行う際に通信ライン18に接続される外部ツール20が接続された状態が示されている。   FIG. 1 is a diagram illustrating a state in which an electronic control unit that rewrites a control program using a communication device of an in-vehicle electronic control unit according to an embodiment and other electronic control units are connected via a communication line. . That is, an engine electronic control unit (engine ECU) 10, an automatic transmission electronic control unit (AT / ECU) 12, and an anti-lock brake electronic control unit (ABS / ECU) 14 mounted on the vehicle are connected to a communication line (CAN bus). 18 is connected. FIG. 1 shows a state in which an external tool 20 connected to the communication line 18 is connected when the control program stored in each electronic control unit 10, 12, 14 is rewritten.

ここで、エンジンECU10は、エンジンの出力等の制御を記憶部10aに記憶している制御プログラムに基づいて制御する。また、AT・ECUは、オートマチック・トランスミッションの制御を記憶部12aに記憶している制御プログラムに基づいて制御する。更に、ABS・ECU14は、アンチロックブレーキ装置の制御を記憶部14aに記憶している制御プログラムに基づいて制御する。   Here, the engine ECU 10 controls the engine output and the like based on a control program stored in the storage unit 10a. The AT / ECU controls the automatic transmission based on a control program stored in the storage unit 12a. Further, the ABS / ECU 14 controls the anti-lock brake device based on a control program stored in the storage unit 14a.

また、各電子制御ユニット10,12,14には、イグニッションスイッチ(IG・SW)22がオンされた場合に、電源24から電力の供給が行われ、各電子制御ユニット10,12,14が動作状態となる。各電子制御ユニット10,12,14が動作状態となった場合には、各電子制御ユニット10,12,14間において、一定周期で所定のデータの通信が行われる。例えば、エンジンECU10は、所定の周期でエンジン回転数をAT・ECU12及びABS・ECU14に対して送信している。また、ABS・ECU14は、所定の周期で車速をエンジンECU10に対して送信している。   In addition, when the ignition switch (IG / SW) 22 is turned on, power is supplied to the electronic control units 10, 12, and 14, and the electronic control units 10, 12, and 14 operate. It becomes a state. When each of the electronic control units 10, 12, and 14 is in an operating state, predetermined data is communicated between the electronic control units 10, 12, and 14 at a constant period. For example, the engine ECU 10 transmits the engine speed to the AT / ECU 12 and the ABS / ECU 14 at a predetermined cycle. The ABS / ECU 14 transmits the vehicle speed to the engine ECU 10 at a predetermined cycle.

また、電子制御ユニット10,12,14には、それぞれセルフシャット制御部10b,12b,14bが設けられている。ここで、セルフシャットとは、各電子制御ユニット10,12,14に供給される電源をIG・SW22がオフされた時に遮断するのではなく、IG・SW22がオフされた後、予め設定されているセルフシャット時間が経過した後に遮断する機能をいう。   In addition, the electronic control units 10, 12, and 14 are provided with self-shut control units 10b, 12b, and 14b, respectively. Here, the self-shut is not shut off when the IG • SW 22 is turned off, but is set in advance after the IG · SW 22 is turned off. A function to shut off after the self-shutdown time has elapsed.

次に、図2に示すフローチャートを参照して、電子制御ユニットが記憶している制御プログラムの書き換えについて説明する。なお、以下の説明においては、エンジンECU10が記憶している制御プログラムの書き換えを行う場合を例として説明する。この説明においては、エンジンECU10をノードA(書換え対象電子制御ユニット)とし、AT・ECU12をノードB(非書換え対象電子制御ユニット)として説明を行う。なお、ABS・ECU14(非書換え対象電子制御ユニット)は、ノードBと同様の動作を行うため、その説明を省略する。   Next, rewriting of the control program stored in the electronic control unit will be described with reference to the flowchart shown in FIG. In the following description, a case where the control program stored in the engine ECU 10 is rewritten will be described as an example. In this description, the engine ECU 10 is described as a node A (rewrite target electronic control unit), and the AT / ECU 12 is described as a node B (non-rewrite target electronic control unit). The ABS / ECU 14 (non-rewriting target electronic control unit) performs the same operation as that of the node B, and thus the description thereof is omitted.

まず、IG・SW22をオンにした状態で、外部ツール20は、ノードA及びノードBに対して書き込み開始要求を送信する(ステップS10)。なお、ノードA及びノードBに対して送信される書き込み開始要求がセルフシャットコマンドとして用いられる。書き込み開始要求を送信すると、外部ツール20の図示しない表示部に「IG・SWをオフにしてください。」等のメッセージが表示されることから、操作者は、このメッセージに従って、IG・SW22をオフにする。   First, the external tool 20 transmits a write start request to the node A and the node B with the IG · SW 22 turned on (step S10). Note that a write start request transmitted to the node A and the node B is used as a self-shut command. When a write start request is transmitted, a message such as “Turn off IG / SW.” Is displayed on the display unit (not shown) of the external tool 20, and the operator turns off the IG / SW 22 according to this message. To.

ノードAにおいては、外部ツール20により送信される書き込み開始要求を受信すると(ステップS20)、IG・SW22がオフされたか否かの判断を行い(ステップS21)、オフされていない場合には、書き込み開始要求を受信した後、所定時間が経過したか否かの判断を行い (ステップS22)、所定時間が経過した場合には、受信した書き込み開始要求を無効にする(ステップS23)。即ち、書き込み開始要求を受信した後、所定時間内にIG・SW22がオフされない場合には、異常状態であるとして書き込み開始要求を無効にする。   In the node A, when the write start request transmitted by the external tool 20 is received (step S20), it is determined whether or not the IG / SW 22 is turned off (step S21). After receiving the start request, it is determined whether or not a predetermined time has passed (step S22). If the predetermined time has passed, the received write start request is invalidated (step S23). That is, after the write start request is received, if the IG · SW 22 is not turned off within a predetermined time, the write start request is invalidated as an abnormal state.

書き込み開始要求を受信した後、所定時間内にIG・SW22がオフされた場合には(ステップS21)、予め設定されているセルフシャット時間の延長を行う(ステップS24)。即ち、ノードAにおいては、外部ツール20からの延長終了コマンドを受信するまで、セルフシャット時間が延長される。この場合には、IG・SW22がオフされた後もセルフシャット制御部10b(第1の電源制御手段)の制御により電源24からの電力の供給が継続される。   If the IG / SW 22 is turned off within a predetermined time after receiving the write start request (step S21), the preset self-shut time is extended (step S24). That is, in the node A, the self-shut time is extended until the extension end command is received from the external tool 20. In this case, even after the IG • SW 22 is turned off, the supply of power from the power supply 24 is continued under the control of the self-shut control unit 10b (first power supply control means).

外部ツール20は、IG・SW22がオフされ、その後、予め設定されていたセルフシャット時間が経過すると、ノードAに対して書き換え用の制御プログラムの送信を行う(ステップS11)。そして、制御プログラムの送信が終了した後にノードAに対して延長終了コマンドの送信を行う(ステップS12)。   The external tool 20 transmits a control program for rewriting to the node A when the IG / SW 22 is turned off and then a preset self-shut time elapses (step S11). Then, after the transmission of the control program is completed, an extension end command is transmitted to the node A (step S12).

ノードBにおいては、外部ツール20から書き込み開始要求(セルフシャット延長コマンド)を受信すると(ステップS30)、IG・SW22がオフされた後、予め設定されているセルフシャット時間が経過したか否かの判断を行い (ステップS31)、セルフシャット時間が経過した場合には、セルフシャット制御部12b(第2の電源制御手段)の制御により電源24からの電力の供給を遮断する。   In the node B, when a write start request (self-shut extension command) is received from the external tool 20 (step S30), whether or not a preset self-shut time has elapsed after the IG / SW 22 is turned off. A determination is made (step S31), and when the self-shut time has elapsed, the supply of power from the power source 24 is cut off under the control of the self-shut control unit 12b (second power control means).

ノードAにおいては、IG・SW22がオフ後、予め設定されていたセルフシャット時間が経過した後に、外部ツール20により送信される書き換え用の制御プログラムを受信し(ステップS25)、この受信した制御プログラムに基づいて、記憶部10aに記憶されている制御プログラムの書き換えを行う。なお、予め設定されていたセルフシャット時間が経過した後、指定時間内に外部ツール20からデータ送信がされない場合には、セルフシャット制御部10bの制御により電源24からの電力の供給が遮断される。   The node A receives a rewrite control program transmitted by the external tool 20 after the preset self-shut time has elapsed after the IG / SW 22 is turned off (step S25). Based on the above, the control program stored in the storage unit 10a is rewritten. In addition, when data is not transmitted from the external tool 20 within a designated time after the preset self-shut time has elapsed, the supply of power from the power source 24 is cut off under the control of the self-shut control unit 10b. .

そして外部ツール20により送信される延長終了コマンドを受信した時に(ステップS26)、セルフシャット制御部10bの制御により電源24からの電力の供給を遮断する(ステップS27)。なお、ノードAに対する制御プログラムの送信が完了した場合には、IG・SW22を一度、オフとし再度オンにすることにより、各ノードは、通常の動作状態に復帰する。   When the extension end command transmitted by the external tool 20 is received (step S26), the supply of power from the power source 24 is cut off under the control of the self-shut control unit 10b (step S27). When transmission of the control program to the node A is completed, each node returns to a normal operation state by turning the IG • SW 22 off once and then on again.

この実施の形態に係る車載電子制御装置の通信装置を用いた制御プログラムの書き換えにおいては、書換対象電子制御ユニットの制御プログラムの書き換えが行われるときには、非書換対象電子制御ユニットの電源が既にオフされていることから、非書換対象電子制御ユニットにおける自己診断及び自己診断結果の送信が停止されており、通信ラインを外部ツールと書換対象電子制御ユニットとの間におけるデータの送信に専有することができる。従って、非書換対象電子制御ユニットが異常を検知することによる誤動作を防止することができると共に、高速で制御プログラムの書き換えを行うことができる。また、外部ツールにより送信される延長終了コマンドは、書き換え用の制御プログラムが全て送信された後に送信されるため、確実に制御プログラムの書き換えを完了させることができる。   In the rewriting of the control program using the communication device of the in-vehicle electronic control device according to this embodiment, when the control program of the rewrite target electronic control unit is rewritten, the power of the non-rewrite target electronic control unit is already turned off. Therefore, the transmission of the self-diagnosis and the self-diagnosis result in the non-rewrite target electronic control unit is stopped, and the communication line can be exclusively used for data transmission between the external tool and the rewrite target electronic control unit. . Accordingly, it is possible to prevent malfunction caused by the abnormality being detected by the non-rewritable electronic control unit, and it is possible to rewrite the control program at high speed. In addition, since the extension end command transmitted by the external tool is transmitted after the rewrite control program is completely transmitted, the rewrite of the control program can be reliably completed.

また、外部ツールからの書き込み開始要求信号が受信された後、所定時間内にイグニッションスイッチがオフされない場合には、異常と判断して書き込み開始要求信号を無効とする。従って、異常時等に書換対象電子制御ユニットのセルフシャット時間が不要に延長されることを防止することができる。更に、予め設定されているセルフシャット時間の経過後指定時間内に、外部ツールからデータが送信されない場合には、異常と判断して電源をオフする。従って、異常時等に書換対象電子制御ユニットの電源が不要にオンされている状態になることを防止することができる。   If the ignition switch is not turned off within a predetermined time after the write start request signal is received from the external tool, it is determined that there is an abnormality and the write start request signal is invalidated. Accordingly, it is possible to prevent the self-shut time of the electronic control unit to be rewritten from being unnecessarily extended when an abnormality occurs. Further, if data is not transmitted from the external tool within a specified time after the preset self-shut time has elapsed, it is determined that there is an abnormality and the power is turned off. Therefore, it is possible to prevent the power source of the electronic control unit to be rewritten from being turned on unnecessarily when an abnormality occurs.

また、多数の電子制御ユニットが車両に搭載されている場合に、それぞれの電子制御ユニットに対する制御プログラムの書き換えを速やかに実施することができ、生産ラインの工程設計上の制約を軽減することができる。また、市場において制御プログラムの書き換えが必要になった場合においても書き換え時間の短縮を図ることができ、不具合対策費用を減少させることができる。   In addition, when a large number of electronic control units are mounted on a vehicle, it is possible to quickly rewrite the control program for each electronic control unit, and it is possible to reduce restrictions on production line process design. . In addition, even when the control program needs to be rewritten in the market, the rewriting time can be shortened and the trouble countermeasure cost can be reduced.

この発明の実施の形態に係る電子制御ユニット、通信ライン及び外部ツールを示すブロック図である。It is a block diagram which shows the electronic control unit, communication line, and external tool which concern on embodiment of this invention. この発明の実施の形態に係る車載電子制御ユニットの制御プログラムの書換え方法を説明するためのフローチャートである。It is a flowchart for demonstrating the rewriting method of the control program of the vehicle-mounted electronic control unit which concerns on embodiment of this invention.

符号の説明Explanation of symbols

10…エンジンECU、12…AT・ECU、14…ABS・ECU、10b,12b,14b…セルフシャット制御部、18…通信ライン、20…外部ツール、22…IG・SW、24…電源。   DESCRIPTION OF SYMBOLS 10 ... Engine ECU, 12 ... AT * ECU, 14 ... ABS / ECU, 10b, 12b, 14b ... Self shut control part, 18 ... Communication line, 20 ... External tool, 22 ... IG * SW, 24 ... Power supply.

Claims (2)

車両に搭載されかつ通信ラインを介して相互に接続されている複数の電子制御ユニットが記憶している制御プログラムの書き換えを前記通信ラインに接続された外部ツールを用いて行う車載電子制御装置の通信装置において、
書き換え対象となっている制御プログラムが記憶されている書換対象電子制御ユニットは、
前記外部ツールからの書き込み開始要求信号を受信する第1の開始要求信号受信手段と、
前記第1の開始要求信号受信手段により受信された書き込み開始要求信号に基づいて予め設定されているセルフシャット時間の延長を行うセルフシャット時間延長手段と、
前記予め設定されているセルフシャット時間の経過後、前記外部ツールから送信されるデータに基づいて制御プログラムの書き換えを行う制御プログラム書換手段と、
前記外部ツールからの延長終了信号に基づいて、該書換対象電子制御ユニットの電源をオフする第1の電源制御手段と
を備え、
前記書換対象電子制御ユニット以外の非書換対象電子制御ユニットは、
前記外部ツールからの書き込み開始要求信号を受信する第2の開始要求信号受信手段と、
前記第2の開始要求信号受信手段により書き込み開始要求信号を受信した場合には、前記予め設定されているセルフシャット時間の経過後、該非書換対象電子制御ユニットの電源をオフする第2の電源制御手段と
を備え
前記第1の開始要求信号受信手段により前記外部ツールからの書き込み開始要求信号が受信された後、所定時間内にイグニッションスイッチがオフされない場合には、前記書き込み開始要求信号を無効とすることを特徴とする車載電子制御装置の通信装置。
Communication of an in-vehicle electronic control device that rewrites a control program stored in a plurality of electronic control units mounted on a vehicle and connected to each other via a communication line using an external tool connected to the communication line In the device
The electronic control unit to be rewritten, in which the control program to be rewritten is stored,
First start request signal receiving means for receiving a write start request signal from the external tool;
Self-shut time extending means for extending a preset self-shut time based on a write start request signal received by the first start request signal receiving means;
Control program rewriting means for rewriting a control program based on data transmitted from the external tool after the preset self-shut time has elapsed,
First power control means for turning off the power of the electronic control unit to be rewritten based on an extension end signal from the external tool,
Non-rewrite target electronic control units other than the rewrite target electronic control unit are:
Second start request signal receiving means for receiving a write start request signal from the external tool;
Second power control for turning off the power of the non-rewritable electronic control unit after elapse of the preset self-shut time when the write start request signal is received by the second start request signal receiving means and means,
After the write-start request signal from the external tool is received by the first start request signal receiving means, when the ignition switch is not turned off within a predetermined time, that you and disabling the write start request signal A vehicle-mounted electronic control device communication device.
前記第1の電源制御手段は、前記予め設定されているセルフシャット時間の経過後指定時間内に、前記外部ツールからデータが送信されない場合には、該書換対象電子制御ユニットの電源をオフすることを特徴とする請求項記載の車載電子制御装置の通信装置。 The first power control means turns off the power of the electronic control unit to be rewritten when data is not transmitted from the external tool within a specified time after the preset self-shut time elapses. The communication device of the on-vehicle electronic control device according to claim 1 .
JP2004113763A 2004-04-08 2004-04-08 In-vehicle electronic control unit communication device Expired - Lifetime JP4488345B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004113763A JP4488345B2 (en) 2004-04-08 2004-04-08 In-vehicle electronic control unit communication device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004113763A JP4488345B2 (en) 2004-04-08 2004-04-08 In-vehicle electronic control unit communication device

Publications (2)

Publication Number Publication Date
JP2005297652A JP2005297652A (en) 2005-10-27
JP4488345B2 true JP4488345B2 (en) 2010-06-23

Family

ID=35329741

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004113763A Expired - Lifetime JP4488345B2 (en) 2004-04-08 2004-04-08 In-vehicle electronic control unit communication device

Country Status (1)

Country Link
JP (1) JP4488345B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010023556A (en) * 2008-07-15 2010-02-04 Toyota Motor Corp Electronic control device
JP4706778B2 (en) * 2009-05-20 2011-06-22 株式会社デンソー Electronic control device and vehicle control system
JP5723312B2 (en) * 2012-03-23 2015-05-27 富士重工業株式会社 Shift-by-wire control system for automobiles
JP6498530B2 (en) * 2015-05-29 2019-04-10 日立オートモティブシステムズ株式会社 In-vehicle control device
JP7131475B2 (en) * 2018-05-15 2022-09-06 株式会社デンソー Electronic controller, session establishment program and control program

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10171644A (en) * 1996-12-09 1998-06-26 Denso Corp Electronic controller
JPH11141395A (en) * 1997-11-07 1999-05-25 Nissan Motor Co Ltd Memory rewriting device for controlling vehicle
JPH11238005A (en) * 1998-02-19 1999-08-31 Denso Corp Electronic controller and control system
JP2002070636A (en) * 2000-08-31 2002-03-08 Suzuki Motor Corp On-vehicle electronic controller, data rewrite system, data rewrite method, and storage medium
JP2002187505A (en) * 2000-12-21 2002-07-02 Fuji Heavy Ind Ltd On-vehicle system
JP2003312387A (en) * 2002-04-25 2003-11-06 Jatco Ltd Self-shutoff abnormality detection device for vehicle

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH10171644A (en) * 1996-12-09 1998-06-26 Denso Corp Electronic controller
JPH11141395A (en) * 1997-11-07 1999-05-25 Nissan Motor Co Ltd Memory rewriting device for controlling vehicle
JPH11238005A (en) * 1998-02-19 1999-08-31 Denso Corp Electronic controller and control system
JP2002070636A (en) * 2000-08-31 2002-03-08 Suzuki Motor Corp On-vehicle electronic controller, data rewrite system, data rewrite method, and storage medium
JP2002187505A (en) * 2000-12-21 2002-07-02 Fuji Heavy Ind Ltd On-vehicle system
JP2003312387A (en) * 2002-04-25 2003-11-06 Jatco Ltd Self-shutoff abnormality detection device for vehicle

Also Published As

Publication number Publication date
JP2005297652A (en) 2005-10-27

Similar Documents

Publication Publication Date Title
US7783398B2 (en) Program rewriting system and program rewriting method
JP2007126024A (en) Vehicular electronic control device
JP2003058285A (en) Control system
JP4367513B2 (en) Electronic control unit
JP6907803B2 (en) Control devices, control methods, and computer programs
WO2018207587A1 (en) Vehicle-installed relay device, control program, and memory sharing method
JP2013084089A (en) Vehicular device
WO2005078264A1 (en) Vehicle data backup method
JP4552982B2 (en) Electronic control unit
JP4488345B2 (en) In-vehicle electronic control unit communication device
JP5120720B2 (en) Electronic control device and control method of electronic control device
JP2010023556A (en) Electronic control device
JP2011039608A (en) Processing system, operation state control method and computer program
JP4480449B2 (en) In-vehicle electronic control unit communication device
JP2004302944A (en) Control system for vehicle
JP2004040649A (en) On-vehicle communication equipment
JPH0793006A (en) Electronic control unit for vehicle
JP2005078324A (en) Program writing device and system, sending device, and program
JP5236376B2 (en) Network system rewriting device
WO2020195034A1 (en) Vehicle-mounted update device, update processing system, update processing method, and processing program
JP6438991B2 (en) Vehicle control device
JP2009171138A (en) Individual information storage system, individual information storage method, node, and inspection device
US9720474B2 (en) Electronic control unit
JP2001265601A (en) Electronic control unit and memory rewrite method
WO2023171439A1 (en) Power feed control device, power feed control system, and power feed control method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070329

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20091020

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091203

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: 20100325

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: 20100325

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

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20130409

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20140409

Year of fee payment: 4

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250