JP2012197046A - Electronic control device and vehicle control system using the same - Google Patents

Electronic control device and vehicle control system using the same Download PDF

Info

Publication number
JP2012197046A
JP2012197046A JP2011063121A JP2011063121A JP2012197046A JP 2012197046 A JP2012197046 A JP 2012197046A JP 2011063121 A JP2011063121 A JP 2011063121A JP 2011063121 A JP2011063121 A JP 2011063121A JP 2012197046 A JP2012197046 A JP 2012197046A
Authority
JP
Japan
Prior art keywords
electronic control
vehicle information
control unit
storage means
volatile storage
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.)
Granted
Application number
JP2011063121A
Other languages
Japanese (ja)
Other versions
JP5617714B2 (en
Inventor
Hideto Nagao
英斗 長尾
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.)
Denso Corp
Original Assignee
Denso Corp
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 Denso Corp filed Critical Denso Corp
Priority to JP2011063121A priority Critical patent/JP5617714B2/en
Publication of JP2012197046A publication Critical patent/JP2012197046A/en
Application granted granted Critical
Publication of JP5617714B2 publication Critical patent/JP5617714B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an electronic control device that can determine the possibility whether the electronic control device is attached or detached only by own device regardless of a second-hand device or a new device and to provide a vehicle control system using the electronic control device.SOLUTION: A hybrid ECU sets a prescribed keyword to a standby RAM to which continuous power is supplied from a battery when the vehicle operation is stopped (S400), determines the possibility whether the own ECU is attached or detached when a prescribed keyword is not set in the standby RAM when the vehicle operation is started (S410:No), and transmits a variable SSTS (S418) set in "NG" and a control learning value (SEG) memorized in EEPROM to an engine ECU (S420, S422). The engine ECU transmits, when determines that the hybrid ECU is exchanged from the received SSTS and a memory condition of the control learning values of both ECUs, the control learning value of the hybrid ECU that is memorized in the engine ECU to the hybrid ECU to be written.

Description

本発明は、車両に搭載される電子制御装置およびそれを用いた車両制御システムに関する。   The present invention relates to an electronic control device mounted on a vehicle and a vehicle control system using the same.

車両に搭載される電子制御装置は故障等のために交換されることがある。この場合、交換前の電子制御装置が記憶していた車両に関する車両情報を、交換により装着した電子制御装置に移し替えることが車両制御の観点から望ましい。そのためには、電子制御装置が脱着により交換されたことを検出する必要がある。   An electronic control device mounted on a vehicle may be replaced due to a failure or the like. In this case, it is desirable from the viewpoint of vehicle control that the vehicle information related to the vehicle stored in the electronic control device before replacement is transferred to the electronic control device mounted by replacement. For this purpose, it is necessary to detect that the electronic control unit has been replaced by detachment.

例えば、特許文献1に開示されているように、新たに装着された電子制御装置の記憶手段として、EEPROM等の書き換え可能な不揮発性メモリに車両情報として車両識別情報が記憶されていないと装着された電子制御装置が判定することにより、装着された電子制御装置は他の電子制御装置に車両識別情報の送信を要求し、送信されてきた車両識別情報を自装置の記憶手段に書き込むことができる。   For example, as disclosed in Patent Document 1, as a storage unit of a newly mounted electronic control device, it is mounted unless vehicle identification information is stored as vehicle information in a rewritable nonvolatile memory such as an EEPROM. As a result of the determination by the electronic control device, the mounted electronic control device can request the other electronic control device to transmit the vehicle identification information and write the transmitted vehicle identification information in the storage means of the own device. .

また、特許文献1には、装着された電子制御装置の記憶手段に車両識別情報が記憶されている場合、他の電子制御装置を含め過半数を占める車両識別情報と自身の持つ車両識別情報とが異なる場合には、正規ではない電子制御装置が装着されたと判断し、車載機器の機能を制限する等の異常時処理を行う技術が開示されている。   Further, in Patent Document 1, when vehicle identification information is stored in the storage means of the attached electronic control device, the vehicle identification information that occupies the majority including other electronic control devices and the vehicle identification information possessed by itself are included. In the case where they are different from each other, a technique is disclosed in which it is determined that a non-regular electronic control device has been installed, and an abnormal process such as limiting the function of the in-vehicle device is performed.

これに対し、正規ではあるが記憶手段に他の電子制御装置とは異なる車両情報が書き込まれている中古品の電子制御装置を交換により装着したいことがある。この場合、他装置と自装置とを合わせて3個以上の電子制御装置の車両情報のうち過半数を占めるものと自装置の車両情報とが異なる場合には、自装置が交換されたと判定し、過半数を占める車両情報を正常であると見なして、自装置の記憶手段に過半数を占める車両情報を書き込むことが考えられる。   On the other hand, there are cases where it is desired to replace a used electronic control device in which vehicle information different from other electronic control devices is written in the storage means, although it is a regular one. In this case, if the vehicle information of the own device is different from the vehicle information of the own device that occupies the majority of the vehicle information of the three or more electronic control devices in combination with the other device and the own device, it is determined that the own device has been replaced, It can be considered that the vehicle information occupying the majority is regarded as normal, and the vehicle information occupying the majority is written in the storage means of the own device.

特開平11−255079号公報JP-A-11-255079

しかしながら、車両情報を記憶手段に記憶している中古品の電子制御装置を交換により装着した場合に、複数の電子制御装置が記憶している車両情報に基づいて、過半数を占める車両情報と自装置の車両情報とが異なることにより、自装置が交換により新たに装着された装置であると判定するためには、3個以上の電子制御装置が必要である。   However, when the used electronic control device storing the vehicle information in the storage means is attached by replacement, the vehicle information and the own device occupy the majority based on the vehicle information stored in the plurality of electronic control devices. In order to determine that the own device is a device that has been newly installed by replacement due to the difference in the vehicle information, three or more electronic control devices are required.

本発明は、上記課題を解決するためになされたものであり、中古品か新品かに関わらず、電子制御装置が脱着された可能性を自装置だけで判定できる電子制御装置およびそれを用いた車両制御システムを提供することを目的とする。   The present invention has been made to solve the above problems, and an electronic control device that can determine whether or not the electronic control device has been attached or detached can be determined only by the own device, regardless of whether it is a used product or a new product. An object is to provide a vehicle control system.

本願発明者は、車両の運転が停止されてもバッテリから常時電力を供給される揮発性記憶手段の記憶状態は、脱着されるかバッテリが交換されると、記憶していたデータを失い初期状態になることに着目し本願発明に至った。   The inventor of the present application states that the storage state of the volatile storage means to which power is always supplied from the battery even when the vehicle is stopped is lost when the battery is replaced or the battery is replaced, and the stored data is lost. Focusing on becoming, it came to this invention.

すなわち、請求項1から8に記載の発明によると、車両に搭載される電子制御装置において、揮発性記憶判定手段は、車載のバッテリから電力を常時供給される揮発性記憶手段の記憶状態を判定し、揮発性記憶手段の記憶状態が初期状態であると揮発性記憶判定手段が判定すると、脱着判定手段は、自装置が脱着された可能性があると判定する。   That is, according to the first to eighth aspects of the present invention, in the electronic control device mounted on the vehicle, the volatile memory determining means determines the storage state of the volatile memory means that is always supplied with electric power from the in-vehicle battery. When the volatile memory determining unit determines that the storage state of the volatile storage unit is the initial state, the desorption determining unit determines that there is a possibility that the own device has been detached.

尚、電子制御装置の脱着とは、電子制御装置を一旦取り外し、同じ電子制御装置を再び装着すること、ならびに電子制御装置を取り外し、異なる電子制御装置を装着することの両方を表わすものとする。また、バッテリが交換されても揮発性記憶手段は初期状態になるので、自装置が脱着されたと判定するのではなく、自装置が脱着された可能性があると記載している。   The removal / attachment of the electronic control device means both removing the electronic control device once and attaching the same electronic control device again, and removing the electronic control device and attaching a different electronic control device. Further, since the volatile storage means is in an initial state even when the battery is replaced, it is described that the own device may be detached rather than determining that the own device has been detached.

この構成によれば、バッテリから常時電力を供給される揮発性記憶手段の記憶状態が初期状態であれば、自装置の書き換え可能な不揮発性記憶手段に車両情報が記憶されているか否かに関わらず、つまり交換により装着された自装置が新品か中古品かに関わらず、脱着された可能性があると電子制御装置自身が判定できる。   According to this configuration, if the storage state of the volatile storage unit to which power is always supplied from the battery is in the initial state, whether or not the vehicle information is stored in the rewritable nonvolatile storage unit of the own device. In other words, the electronic control unit itself can determine that there is a possibility that it has been removed or attached regardless of whether the own device attached by replacement is new or used.

さらに、電子制御装置が交換される場合、新品であるか中古品であるかに関わらず、揮発性記憶手段の記憶状態が初期状態であれば、電子制御装置が脱着された可能性があると判定できる。   Furthermore, when the electronic control unit is replaced, regardless of whether the electronic control unit is new or used, the electronic control unit may be detached if the storage state of the volatile storage means is the initial state. Can be judged.

請求項2に記載の発明によると、電子制御装置は、車両の運転が停止されるときに揮発性記憶手段に所定データを書き込む書き込み手段を備え、揮発性記憶判定手段は、車両の運転が開始されるときに揮発性記憶手段に所定データが記憶されていない場合、揮発性記憶手段は初期状態であると判定する。   According to a second aspect of the present invention, the electronic control device includes a writing unit that writes predetermined data to the volatile storage unit when the vehicle operation is stopped, and the volatile memory determination unit starts driving the vehicle. If the predetermined data is not stored in the volatile storage means at the time, the volatile storage means is determined to be in the initial state.

このように、車両の運転が停止されるときに揮発性記憶手段に所定データを書き込むことにより、車両の運転が開始されるまでに電子制御装置が交換されると、車両の運転が開始されるときに揮発性記憶手段が初期状態であると判定できる。   As described above, when the operation of the vehicle is stopped, the predetermined data is written in the volatile storage means, so that the operation of the vehicle is started when the electronic control unit is replaced before the operation of the vehicle is started. Sometimes it can be determined that the volatile storage means is in the initial state.

請求項3に記載の発明によると、互いに通信可能に接続された請求項1または2に記載の複数の電子制御装置を備える車両制御システムにおいて、複数の電子制御装置のうち第1電子制御装置は、車両に関する車両情報を記憶する書き換え可能な第1不揮発性記憶手段を備え、複数の電子制御装置のうち第2電子制御装置は、第1電子制御装置から取得する第1不揮発性記憶手段に記憶されている車両情報を記憶する書き換え可能な第2不揮発性記憶手段を備えている。   According to the invention described in claim 3, in the vehicle control system including the plurality of electronic control devices according to claim 1 or 2 connected to be communicable with each other, the first electronic control device among the plurality of electronic control devices is Rewritable first non-volatile storage means for storing vehicle information relating to the vehicle, and the second electronic control device among the plurality of electronic control devices is stored in the first non-volatile storage means acquired from the first electronic control device. Rewritable second non-volatile storage means for storing the vehicle information being stored.

つまり、第2電子制御装置は、第1電子制御装置が第1不揮発性記憶手段に記憶している車両情報を自装置の第2不揮発性記憶手段にコピーして記憶している。尚、車両に関する車両情報とは、車両毎に固有に付与された車両識別情報、電子制御装置が車両制御において学習した制御学習値、および故障診断情報等である。   That is, the second electronic control unit copies and stores the vehicle information stored in the first non-volatile storage unit by the first electronic control unit to the second non-volatile storage unit of its own apparatus. The vehicle information related to the vehicle includes vehicle identification information uniquely assigned to each vehicle, a control learning value learned by the electronic control unit in vehicle control, failure diagnosis information, and the like.

そして、第2電子制御装置の脱着判定手段は、第1電子制御装置または第2電子制御装置の一方の揮発性記憶手段が初期状態であると自装置の揮発性記憶判定手段が判定し、第1不揮発性記憶手段に記憶されている車両情報と第2不揮発性記憶手段に記憶されている車両情報とが異なると不揮発性記憶判定手段が判定すると、揮発性記憶手段が初期状態である方が交換された電子制御装置であると判定する。   Then, the desorption determination unit of the second electronic control unit determines that the volatile memory determination unit of the own device determines that one of the volatile storage units of the first electronic control unit or the second electronic control unit is in an initial state. If the non-volatile storage determining means determines that the vehicle information stored in the first non-volatile storage means and the vehicle information stored in the second non-volatile storage means are different, the volatile storage means is in the initial state. It is determined that the electronic control device has been replaced.

このように、第1電子制御装置または第2電子制御装置の一方の揮発性記憶手段が初期状態であれば、バッテリの交換ではなく、第1電子制御装置または第2電子制御装置のうち揮発性記憶手段が初期状態である方が脱着されたと判定できる。   Thus, if one of the volatile storage means of the first electronic control device or the second electronic control device is in the initial state, the battery is not replaced but the volatile property of the first electronic control device or the second electronic control device. It can be determined that the storage means in the initial state is detached.

そして、第1不揮発性記憶手段に記憶されている車両情報と第2不揮発性記憶手段に記憶されている車両情報とが異なる場合、揮発性記憶手段が初期状態の電子制御装置は、一旦取り外された同じ電子制御装置が再び装着されたのではなく、取り外された電子制御装置とは異なる電子制御装置が交換により装着されたと判定できる。   If the vehicle information stored in the first non-volatile storage means and the vehicle information stored in the second non-volatile storage means are different, the electronic control device in which the volatile storage means is in the initial state is temporarily removed. It can be determined that the same electronic control device is not mounted again, but an electronic control device different from the removed electronic control device is mounted by replacement.

請求項4に記載の発明によると、第1電子制御装置および第2電子制御装置の少なくともいずれか一方の揮発性記憶手段が初期状態であると自装置の揮発性記憶判定手段が判定し、第1不揮発性記憶手段に記憶されている車両情報と第2不揮発性記憶手段に記憶されている車両情報とが異なり、第1不揮発性記憶手段または第2不揮発性記憶手段の一方に記憶されている車両情報が初期値であると不揮発性記憶判定手段が判定すると、車両情報が初期値である方の電子制御装置が交換されたと判定する。   According to the fourth aspect of the present invention, the volatile memory determining means of the own device determines that the volatile memory means of at least one of the first electronic control device and the second electronic control device is in the initial state, and The vehicle information stored in the first non-volatile storage means and the vehicle information stored in the second non-volatile storage means are different and stored in one of the first non-volatile storage means or the second non-volatile storage means. When the non-volatile memory determining means determines that the vehicle information is the initial value, it is determined that the electronic control device whose vehicle information is the initial value has been replaced.

このように、第1電子制御装置および第2電子制御装置の少なくともいずれか一方の揮発性記憶手段が初期状態の場合、第1電子制御装置および第2電子制御装置の少なくとも一方が脱着された可能性がある。   Thus, when at least one of the volatile storage means of the first electronic control device and the second electronic control device is in the initial state, at least one of the first electronic control device and the second electronic control device may be detached. There is sex.

そして、通常状態では、第2電子制御装置の第2不揮発性記憶手段は第1電子制御装置の第1不揮発性記憶手段に記憶されている車両情報のコピーを記憶しているので、両装置が記憶している車両情報は等しい。したがって、第1不揮発性記憶手段に記憶されている車両情報と第2不揮発性記憶手段に記憶されている車両情報とが異なる場合は、バッテリの交換ではなく、少なくとも一方の電子制御装置が交換されたと考えられる。   And in a normal state, since the 2nd non-volatile memory | storage means of a 2nd electronic control apparatus has memorize | stored the copy of the vehicle information memorize | stored in the 1st non-volatile storage means of a 1st electronic control apparatus, both apparatuses are The stored vehicle information is the same. Therefore, when the vehicle information stored in the first non-volatile storage means and the vehicle information stored in the second non-volatile storage means are different, at least one of the electronic control devices is replaced instead of replacing the battery. It is thought.

さらに、第1不揮発性記憶手段または第2不揮発性記憶手段の一方に記憶されている車両情報だけが初期値の場合、他方の電子制御装置を中古品に交換する可能性は低いので、車両情報が初期値である方の電子制御装置が新品に交換されたと考えられる。   Further, when only the vehicle information stored in one of the first non-volatile storage means or the second non-volatile storage means is an initial value, it is unlikely that the other electronic control device is replaced with a used product. It is considered that the electronic control device having the initial value is replaced with a new one.

請求項5に記載の発明によると、第2電子制御装置の書き込み要求手段は、第1電子制御装置が交換されたと自装置の脱着判定手段が判定すると、第2不揮発性記憶手段に記憶されている車両情報を第1電子制御装置に送信し、送信した車両情報を第1不揮発性記憶手段に書き込むことを第1電子制御装置に要求する。   According to the fifth aspect of the present invention, the write request unit of the second electronic control unit is stored in the second non-volatile storage unit when the detachment determination unit of the own unit determines that the first electronic control unit has been replaced. The vehicle information is transmitted to the first electronic control unit, and the first electronic control unit is requested to write the transmitted vehicle information in the first nonvolatile storage means.

このように、第1電子制御装置が交換された場合には、第2不揮発性記憶手段に記憶されている交換前の第1電子制御装置の車両情報を、第2電子制御装置が交換後の第1電子制御装置に送信するので、第1電子制御装置の復旧手段は、第2電子制御装置から書き込み要求と車両情報とを受信すると、受信した車両情報を第1不揮発性記憶手段に自動的に書き込んで交換前の車両情報の記憶状態に復旧できる。   Thus, when the first electronic control unit is replaced, the vehicle information of the first electronic control unit before replacement stored in the second non-volatile storage means is used as the vehicle information after the second electronic control unit is replaced. Since it is transmitted to the first electronic control unit, when the recovery means of the first electronic control unit receives the write request and the vehicle information from the second electronic control unit, the received vehicle information is automatically stored in the first non-volatile storage unit. Can be restored to the storage state of the vehicle information before replacement.

これにより、交換前に装着されていた第1電子制御装置に記憶されていた車両情報を、交換後の第1電子制御装置に書き込みツールを用いて人手で書き込む工数を省略できる。
また、請求項5に記載の発明によると、第2電子制御装置の復旧手段は、第2電子制御装置が交換されたと自装置の脱着判定手段が判定すると、第1電子制御装置から取得する車両情報を第2不揮発性記憶手段に書き込む。
Thereby, the man-hour which writes the vehicle information memorize | stored in the 1st electronic control apparatus with which it was mounted | worn before replacement | exchange with the 1st electronic control apparatus after replacement | exchange manually using a writing tool can be omitted.
According to the fifth aspect of the present invention, the recovery means of the second electronic control device is obtained from the first electronic control device when the attachment / detachment determination means of the own device determines that the second electronic control device has been replaced. Information is written into the second non-volatile storage means.

これにより、交換後の第2電子制御装置は、交換前に装着されていた自装置に記憶されていた第1電子制御装置の車両情報を第1電子制御装置からコピーして交換前の車両情報の記憶状態に復旧できる。   As a result, the second electronic control unit after the replacement copies the vehicle information of the first electronic control unit stored in the own device that was mounted before the replacement from the first electronic control unit, and the vehicle information before the replacement Can be restored.

請求項6に記載の発明によると、第2電子制御装置は、車両に関する車両情報を記憶する書き換え可能な第3不揮発性記憶手段を備え、第1電子制御装置は、第2電子制御装置から取得する第3不揮発性記憶手段に記憶されている車両情報を記憶する書き換え可能な第4不揮発性記憶手段を備えている。   According to the invention described in claim 6, the second electronic control unit includes the rewritable third non-volatile storage means for storing vehicle information relating to the vehicle, and the first electronic control unit is obtained from the second electronic control unit. A fourth rewritable non-volatile storage means for storing the vehicle information stored in the third non-volatile storage means.

つまり、第1電子制御装置は、第2電子制御装置が第3不揮発性記憶手段に記憶している車両情報を自装置の第4不揮発性記憶手段にコピーして記憶している。
そして、第1電子制御装置の脱着判定手段は、第1電子制御装置または第2電子制御装置の一方の揮発性記憶手段が初期状態であると自装置の揮発性記憶判定手段が判定し、第2電子制御装置から取得する第3不揮発性記憶手段に記憶されている車両情報と第4不揮発性記憶手段に記憶されている車両情報とが異なると自装置の不揮発性記憶判定手段が判定すると、揮発性記憶手段が初期状態である方が交換された電子制御装置であると判定する。
That is, the first electronic control unit stores the vehicle information stored in the third non-volatile storage unit by the second electronic control unit by copying it to the fourth non-volatile storage unit of its own apparatus.
The desorption determination unit of the first electronic control unit determines that the volatile memory determination unit of the own device determines that one of the volatile storage units of the first electronic control unit or the second electronic control unit is in an initial state. When the vehicle information stored in the third nonvolatile storage means acquired from the 2 electronic control device and the vehicle information stored in the fourth nonvolatile storage means are different from each other, It is determined that the volatile storage means in the initial state is the replaced electronic control device.

このように、第1電子制御装置または第2電子制御装置の一方の揮発性記憶手段が初期状態であれば、バッテリの交換ではなく、第1電子制御装置または第2電子制御装置のうち揮発性記憶手段が初期状態である方が脱着されたと判定できる。   Thus, if one of the volatile storage means of the first electronic control device or the second electronic control device is in the initial state, the battery is not replaced but the volatile property of the first electronic control device or the second electronic control device. It can be determined that the storage means in the initial state is detached.

そして、第3不揮発性記憶手段に記憶されている車両情報と第4不揮発性記憶手段に記憶されている車両情報とが異なる場合、揮発性記憶手段が初期状態の電子制御装置は、一旦取り外された同じ電子制御装置が再び装着されたのではなく、取り外された電子制御装置とは異なる電子制御装置が交換により装着されたと判定できる。   If the vehicle information stored in the third non-volatile storage means and the vehicle information stored in the fourth non-volatile storage means are different, the electronic control device in which the volatile storage means is in the initial state is temporarily removed. It can be determined that the same electronic control device is not mounted again, but an electronic control device different from the removed electronic control device is mounted by replacement.

請求項7に記載の発明によると、第1電子制御装置および第2電子制御装置の少なくともいずれか一方の揮発性記憶手段が初期状態であると自装置の揮発性記憶判定手段が判定し、第3不揮発性記憶手段に記憶されている車両情報と第4揮発性記憶手段に記憶されている車両情報とが異なり、第3不揮発性記憶手段または第4不揮発性記憶手段の一方に記憶されている車両情報が初期値であると自装置の不揮発性記憶判定手段が判定すると、車両情報が初期値である方の電子制御装置が交換されたと判定する。   According to the seventh aspect of the present invention, the volatile memory determining means of the own device determines that the volatile memory means of at least one of the first electronic control device and the second electronic control device is in the initial state, and The vehicle information stored in the third non-volatile storage means and the vehicle information stored in the fourth volatile storage means are different and stored in one of the third non-volatile storage means or the fourth non-volatile storage means. When the non-volatile memory determining means of the own device determines that the vehicle information is the initial value, it is determined that the electronic control device whose vehicle information is the initial value has been replaced.

このように、第1電子制御装置および第2電子制御装置の少なくともいずれか一方の揮発性記憶手段が初期状態の場合、第1電子制御装置および第2電子制御装置の少なくとも一方が脱着された可能性がある。   Thus, when at least one of the volatile storage means of the first electronic control device and the second electronic control device is in the initial state, at least one of the first electronic control device and the second electronic control device may be detached. There is sex.

そして、通常状態では、第1電子制御装置の第4不揮発性記憶手段は第2電子制御装置の第3不揮発性記憶手段に記憶されている車両情報のコピーを記憶しているので、両装置が記憶している車両情報は等しい。したがって、第3不揮発性記憶手段に記憶されている車両情報と第4不揮発性記憶手段に記憶されている車両情報とが異なる場合は、バッテリの交換ではなく、少なくとも一方の電子制御装置が交換されたと考えられる。   And in a normal state, since the 4th non-volatile storage means of the 1st electronic control unit has memorized the copy of the vehicle information memorized by the 3rd non-volatile storage means of the 2nd electronic control unit, both devices are The stored vehicle information is the same. Therefore, when the vehicle information stored in the third non-volatile storage means and the vehicle information stored in the fourth non-volatile storage means are different, at least one of the electronic control units is replaced instead of replacing the battery. It is thought.

さらに、第3不揮発性記憶手段または第4不揮発性記憶手段の一方に記憶されている車両情報だけが初期値の場合、他方の電子制御装置を中古品に交換する可能性は低いので、車両情報が初期値である方の電子制御装置が新品に交換されたと考えられる。   Further, when only the vehicle information stored in one of the third nonvolatile storage means or the fourth nonvolatile storage means is the initial value, it is unlikely that the other electronic control device is replaced with a used product. It is considered that the electronic control device having the initial value is replaced with a new one.

請求項8に記載の発明によると、第1電子制御装置の書き込み要求手段は、第2電子制御装置が交換されたと自装置の脱着判定手段が判定すると、第4不揮発性記憶手段に記憶されている車両情報を第2電子制御装置に送信し、送信した車両情報を第3不揮発性記憶手段に書き込むことを第2電子制御装置に要求する。   According to the invention described in claim 8, the write request means of the first electronic control unit is stored in the fourth non-volatile storage means when the attachment / detachment determination means of the own apparatus determines that the second electronic control unit has been replaced. Is transmitted to the second electronic control unit, and the second electronic control unit is requested to write the transmitted vehicle information in the third nonvolatile storage means.

このように、第2電子制御装置が交換された場合には、第4不揮発性記憶手段に記憶されている交換前の第2電子制御装置の車両情報を、第1電子制御装置が交換後の第2電子制御装置に送信するので、第2電子制御装置の復旧手段は、第1電子制御装置から書き込み要求と車両情報とを受信すると、受信した車両情報を第3不揮発性記憶手段に書き込んで復旧できる。   As described above, when the second electronic control unit is replaced, the vehicle information of the second electronic control unit before replacement stored in the fourth nonvolatile storage unit is used as the vehicle information after the first electronic control unit is replaced. Since it is transmitted to the second electronic control unit, when the recovery means of the second electronic control unit receives the write request and the vehicle information from the first electronic control unit, it writes the received vehicle information into the third non-volatile storage unit. It can be recovered.

これにより、交換後の第2電子制御装置は、交換前に装着されていた第2電子制御装置に記憶されていた自装置の車両情報を第1電子制御装置からコピーして交換前の車両情報の記憶状態に復旧できる。   Thereby, the second electronic control unit after replacement copies the vehicle information of the own device stored in the second electronic control unit mounted before the replacement from the first electronic control unit, and the vehicle information before replacement. Can be restored.

また、請求項8に記載の発明によると、第1電子制御装置の復旧手段は、第1電子制御装置が交換されたと自装置の脱着判定手段が判定すると、第2電子制御装置から取得する車両情報を第4不揮発性記憶手段に書き込む。   According to the invention described in claim 8, the recovery means of the first electronic control device is a vehicle that is acquired from the second electronic control device when the detachment determination means of the own device determines that the first electronic control device has been replaced. Information is written into the fourth nonvolatile storage means.

これにより、交換後の第1電子制御装置は、交換前に装着されていた第1電子制御装置に記憶されていた第2電子制御装置の車両情報を第2電子制御装置からコピーして交換前の車両情報の記憶状態に復旧できる。   Thereby, the first electronic control unit after the replacement copies the vehicle information of the second electronic control unit stored in the first electronic control unit mounted before the replacement from the second electronic control unit before the replacement. The vehicle information can be restored to the stored state.

本実施形態による車両制御システムを示すブロック図。The block diagram which shows the vehicle control system by this embodiment. 電池監視ユニットを示すブロック図。The block diagram which shows a battery monitoring unit. ハイブリッドECUを示すブロック図。The block diagram which shows hybrid ECU. エンジンECUを示すブロック図。The block diagram which shows engine ECU. 車両情報の記憶状態を示す模式図。The schematic diagram which shows the memory | storage state of vehicle information. (A)は運転開始時、(B)は運転停止時のハイブリッドECUにおける交換検出処理を示すフローチャート。(A) is a flowchart which shows the replacement | exchange detection process in hybrid ECU at the time of a driving | operation start, and (B) at the time of a driving | operation stop. ハイブリッドECUにおける交換検出処理を示すフローチャート。The flowchart which shows the replacement | exchange detection process in hybrid ECU. ハイブリッドECUにおける車両情報の復旧処理を示すフローチャート。The flowchart which shows the recovery process of the vehicle information in hybrid ECU. (A)は運転開始時、(B)は運転停止時のエンジンECUにおける交換検出処理を示すフローチャート。(A) is a flowchart which shows the replacement | exchange detection process in engine ECU at the time of a driving | operation start, and (B) at the time of a driving | operation stop. エンジンECUにおける交換検出処理を示すフローチャート。The flowchart which shows the replacement | exchange detection process in engine ECU. エンジンECUにおける車両情報の復旧処理を示すフローチャート。The flowchart which shows the recovery process of the vehicle information in engine ECU.

以下、本発明の実施形態を図に基づいて説明する。
図1に、本実施形態の車両制御システムを示す。車両制御システム10は、ガソリンエンジン等の内燃機関によるエンジンと、モータジェネレータ98(図3参照)とを駆動源とするハイブリッド車両の走行を制御するものであり、電池監視ユニット20、ハイブリッドECU(Electronic Control Unit)50、およびエンジンECU100等から構成されている。電池監視ユニット20とハイブリッドECU50とはシリアル通信で通信可能に接続されており、ハイブリッドECU50とエンジンECU100とはCAN(Controller Area Network)等の車内LANで通信可能に接続されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 shows a vehicle control system of the present embodiment. The vehicle control system 10 controls the traveling of a hybrid vehicle that uses an internal combustion engine such as a gasoline engine and a motor generator 98 (see FIG. 3) as drive sources. The vehicle control system 10 includes a battery monitoring unit 20, a hybrid ECU (Electronic Control Unit) 50, engine ECU 100, and the like. The battery monitoring unit 20 and the hybrid ECU 50 are communicably connected via serial communication, and the hybrid ECU 50 and the engine ECU 100 are communicably connected via an in-vehicle LAN such as a CAN (Controller Area Network).

図2に示すように、電池監視ユニット20は、電源回路22、マイクロコンピュータ(以下、「マイコン」とも言う。)30、および入出力回路40等から構成されている。
電源回路22は、スタートスイッチ4がオンになると、電池監視ユニット20を構成する電子部品にバッテリ2の電力を供給する。バッテリ2は、車両の駆動源となるモータジェネレータ98に電力を供給するハイブリッドバッテリ42と異なり、車両に搭載されている電子部品等の補機に電力を供給する。
As shown in FIG. 2, the battery monitoring unit 20 includes a power supply circuit 22, a microcomputer (hereinafter also referred to as “microcomputer”) 30, an input / output circuit 40, and the like.
When the start switch 4 is turned on, the power supply circuit 22 supplies the power of the battery 2 to the electronic components constituting the battery monitoring unit 20. Unlike the hybrid battery 42 that supplies electric power to a motor generator 98 that is a driving source of the vehicle, the battery 2 supplies electric power to an auxiliary machine such as an electronic component that is mounted on the vehicle.

マイコン30は、CPU32、RAM34、ROM36、およびI/O38から主に構成されている。マイコン30は、ROM36に記憶されている制御プログラムをCPU32が実行することにより、電池電流センサ44、電池電圧センサ46、および電池温度センサ48から出力されるハイブリッドバッテリ42の状態を表わす検出信号に基づき、ハイブリッドバッテリ42の充電状態を監視するとともに、ハイブリッドバッテリ42の異常発熱、漏電等を監視する。RAM34は、制御プログラムが作業用に使用する。   The microcomputer 30 mainly includes a CPU 32, a RAM 34, a ROM 36, and an I / O 38. The microcomputer 30 is based on a detection signal representing the state of the hybrid battery 42 output from the battery current sensor 44, the battery voltage sensor 46, and the battery temperature sensor 48 when the CPU 32 executes the control program stored in the ROM 36. The charge state of the hybrid battery 42 is monitored, and abnormal heat generation, leakage, etc. of the hybrid battery 42 are monitored. The RAM 34 is used for work by the control program.

I/038は、入出力回路40を介して、各種センサから検出信号を入力するとともに、シリアル通信によりハイブリッドECU50と通信する。
ハイブリッドバッテリ42には、例えば、ニッケル水素またはリチウムイオン等の二次電池が使用される。
The I / 038 inputs detection signals from various sensors via the input / output circuit 40 and communicates with the hybrid ECU 50 through serial communication.
For the hybrid battery 42, for example, a secondary battery such as nickel metal hydride or lithium ion is used.

図3に示すように、ハイブリッドECU50は、電源回路52、54、マイコン60、EEPROM80、および入出力回路82等から構成されている。
電源回路52は、スタートスイッチ4がオンになると、ハイブリッドECU50の主な電子部品にバッテリ2の電力を供給する。電源回路54は、スタートスイッチ4のオン、オフに関わらず、常にハイブリッドECU50の該当する電子部品、例えば図3のSRAM(スタンバイRAM)68にバッテリ2の電力を供給する。
As shown in FIG. 3, the hybrid ECU 50 includes power supply circuits 52 and 54, a microcomputer 60, an EEPROM 80, an input / output circuit 82, and the like.
When the start switch 4 is turned on, the power supply circuit 52 supplies the power of the battery 2 to the main electronic components of the hybrid ECU 50. Regardless of whether the start switch 4 is on or off, the power supply circuit 54 always supplies the power of the battery 2 to the corresponding electronic component of the hybrid ECU 50, for example, the SRAM (standby RAM) 68 of FIG.

マイコン60は、CPU62、RAM64、ROM66、SRAM68、およびI/O70から主に構成されている。マイコン60は、ROM66に記憶されている制御プログラムをCPU62が実行することにより、車速センサ90、アクセル開度センサ92、ストップランプスイッチ94等から入力する車両走行状態を表わす検出信号、ならびに電池監視ユニット20から入力するハイブリッドバッテリ42の充電状態に基づいて、ハイブリッドバッテリ42とモータジェネレータ98とを電気的に連通または遮断するシステムリレー96をオン、オフする。   The microcomputer 60 is mainly composed of a CPU 62, a RAM 64, a ROM 66, an SRAM 68, and an I / O 70. The microcomputer 60 executes a control program stored in the ROM 66 by the CPU 62 so that a detection signal indicating a vehicle running state input from the vehicle speed sensor 90, the accelerator opening sensor 92, the stop lamp switch 94, and the like, and a battery monitoring unit. Based on the state of charge of the hybrid battery 42 input from 20, the system relay 96 that electrically connects or disconnects the hybrid battery 42 and the motor generator 98 is turned on / off.

また、ハイブリッドECU50は、各種センサから入力する車両走行状態を表わす検出信号、ならびにハイブリッドバッテリ42の充電状態に基づいて、モータジェネレータ98による駆動量と、エンジンによる駆動量との比率を算出し、モータジェネレータ98を駆動制御するとともに、CANを介してエンジンECU100にエンジンによる駆動量を指示する。   The hybrid ECU 50 calculates a ratio between the drive amount by the motor generator 98 and the drive amount by the engine based on the detection signal representing the vehicle running state input from various sensors and the charge state of the hybrid battery 42, and the motor. The generator 98 is driven and controlled, and the engine ECU 100 is instructed to drive the engine via the CAN.

また、ハイブリッドECU50は、電池監視ユニット20からハイブリッドバッテリ42の電流値、電圧値、温度等を劣化情報として取得し、劣化情報からハイブリッドバッテリ42の劣化状態を推定し、劣化が所定範囲を超えると警告灯または警告音等によりハイブリッドバッテリ42の劣化を報知する。   Further, the hybrid ECU 50 acquires the current value, voltage value, temperature, and the like of the hybrid battery 42 from the battery monitoring unit 20 as deterioration information, estimates the deterioration state of the hybrid battery 42 from the deterioration information, and when the deterioration exceeds a predetermined range. The deterioration of the hybrid battery 42 is notified by a warning light or a warning sound.

ハイブリッドECU50の制御プログラムが作業用に使用し、スタートスイッチ4がオフになると記憶データが消失するRAM64に対し、SRAM68は、スタートスイッチ4のオン、オフに関わらず、電源回路54を介してバッテリ2から電力を供給されている。したがって、SRAM68に記憶されているデータは、バッテリ2の交換等によりバッテリ2からの電力供給が遮断されるか、SRAM68を搭載しているハイブリッドECU50が脱着されない限り保存される。SRAM68はマイコン60に外付けされてもよい。   Whereas the control program of the hybrid ECU 50 is used for work and the stored data is lost when the start switch 4 is turned off, the SRAM 68 is connected to the battery 2 via the power circuit 54 regardless of whether the start switch 4 is turned on or off. Power is supplied from. Therefore, the data stored in the SRAM 68 is saved unless the power supply from the battery 2 is cut off by replacing the battery 2 or the hybrid ECU 50 on which the SRAM 68 is mounted is removed. The SRAM 68 may be externally attached to the microcomputer 60.

I/070は、入出力回路82を介して、各種センサから検出信号を入力し、シリアル通信により電池監視ユニット20と通信し、CAN等の車内LANによりエンジンECU100と通信する。   The I / 070 receives detection signals from various sensors via the input / output circuit 82, communicates with the battery monitoring unit 20 through serial communication, and communicates with the engine ECU 100 through an in-vehicle LAN such as CAN.

EEPROM80はマイコン60に外付けされている書き換え可能な不揮発性の記憶手段である。バッテリ2が交換されてもハイブリッドECU50が脱着されても、EEPROM80に記憶されているデータは保存される。   The EEPROM 80 is a rewritable nonvolatile storage device externally attached to the microcomputer 60. Even if the battery 2 is replaced or the hybrid ECU 50 is detached, the data stored in the EEPROM 80 is saved.

ハイブリッドECU50は、ハイブリッドバッテリ42に関する劣化情報を電池監視ユニット20から定期的に取得して学習し、制御学習値としてEEPROM80のSEG領域(図5参照)に記憶している。SEG領域に記憶する制御学習値は、最新のものだけでもよいし、最新を含む現在までの履歴でもよい。制御学習値の履歴を記憶する場合、SEG領域に所定量の制御学習値を記憶すると新しい制御学習値で古い学習値を順次上書きしていく。   The hybrid ECU 50 periodically acquires and learns deterioration information about the hybrid battery 42 from the battery monitoring unit 20 and stores it as a control learning value in the SEG area (see FIG. 5) of the EEPROM 80. The control learning value stored in the SEG area may be only the latest one or a history up to the present including the latest. When storing a history of control learning values, when a predetermined amount of control learning values are stored in the SEG area, old learning values are overwritten sequentially with new control learning values.

図3および図4に示すように、ハイブリッドECU50とエンジンECU100とは、ほぼ同じ構成である。エンジンECU100の電源回路102、104、マイコン120、EEPROM140、入出力回路142は、ハイブリッドECU50の電源回路52、54、マイコン60、EEPROM80、入出力回路82に相当する。   As shown in FIGS. 3 and 4, hybrid ECU 50 and engine ECU 100 have substantially the same configuration. The power supply circuits 102 and 104, the microcomputer 120, the EEPROM 140, and the input / output circuit 142 of the engine ECU 100 correspond to the power supply circuits 52 and 54, the microcomputer 60, the EEPROM 80, and the input / output circuit 82 of the hybrid ECU 50.

エンジンECU100のマイコン120は、ROM126に記憶されている制御プログラムをCPU122が実行することにより、酸素濃度センサ(A/Fセンサ)150、エンジン回転数センサ152、エアフロセンサ154、スロットルセンサ156、水温センサ158等から入力するエンジン運転状態を表わす検出信号に基づき、インジェクタ160の燃料噴射、イグナイタ162のスイッチングを制御する。   The microcomputer 120 of the engine ECU 100 causes the oxygen concentration sensor (A / F sensor) 150, the engine speed sensor 152, the airflow sensor 154, the throttle sensor 156, and the water temperature sensor to be executed when the CPU 122 executes a control program stored in the ROM 126. Based on the detection signal representing the engine operating state input from 158 or the like, the fuel injection of the injector 160 and the switching of the igniter 162 are controlled.

エンジンECU100は、ハイブリッドECU50の制御学習値をEEPROM140にコピーして記憶している。
(制御学習値)
前述したように、ハイブリッドECU50は、ハイブリッドバッテリ42に関する劣化情報を制御学習値としてEEPROM80に記憶しているので、スタートスイッチ4がオフなっても、EEPROM80に記憶している制御学習値は保持される。
Engine ECU 100 copies and stores the control learning value of hybrid ECU 50 in EEPROM 140.
(Control learning value)
As described above, the hybrid ECU 50 stores the deterioration information related to the hybrid battery 42 in the EEPROM 80 as a control learning value. Therefore, even if the start switch 4 is turned off, the control learning value stored in the EEPROM 80 is retained. .

ここで、ハイブリッドECU50が故障等の理由で新品または中古品に交換されると、交換後のハイブリッドECU50は交換前のハイブリッドECU50がEEPROM80に記憶していた制御学習値を引き継げない。   Here, when the hybrid ECU 50 is replaced with a new or used product due to a failure or the like, the hybrid ECU 50 after replacement cannot take over the control learning value stored in the EEPROM 80 by the hybrid ECU 50 before replacement.

そこで、本実施形態では、図5に示すように、ハイブリッドECU50がEEPROM80のSEG領域に記憶している制御学習値を、エンジンECU100がEEPROM140のMEG領域に記憶するようにしている。   Therefore, in the present embodiment, as shown in FIG. 5, the engine ECU 100 stores the control learning value stored in the SEG area of the EEPROM 80 by the hybrid ECU 50 in the MEG area of the EEPROM 140.

ハイブリッドECU50は、EEPROM80に記憶している制御学習値を更新すると、点線200に示すように制御学習値の更新情報をエンジンECU100に送信する。エンジンECU100は、ハイブリッドECU50から制御学習値の更新情報を取得するとEEPROM140に書き込む。つまり、ハイブリッドECU50は、EEPROM80に記憶している制御学習値を更新すると更新情報をエンジンECU100に通知する通知手段を備えており、エンジンECU100は、ハイブリッドECU50から制御学習値の更新情報を取得するとEEPROM140に書き込む更新手段を備えている。   When the hybrid ECU 50 updates the control learning value stored in the EEPROM 80, the hybrid ECU 50 transmits update information of the control learning value to the engine ECU 100 as indicated by a dotted line 200. When the engine ECU 100 acquires the update information of the control learning value from the hybrid ECU 50, the engine ECU 100 writes it in the EEPROM 140. That is, the hybrid ECU 50 includes notification means for notifying the engine ECU 100 of update information when the control learning value stored in the EEPROM 80 is updated. When the engine ECU 100 acquires update information of the control learning value from the hybrid ECU 50, the EEPROM 140 is provided. An update means for writing to is provided.

尚、図5の点線200に示すように、ハイブリッドECU50から送信された更新情報をエンジンECU100のEEPROM140に直接書き込んでもよいし、ハイブリッドECU50から送信された更新情報を一旦RAM124に記憶しておき、車両運転を停止するときにRAM124からEEPROM140に書き込んでもよい。   As indicated by a dotted line 200 in FIG. 5, the update information transmitted from the hybrid ECU 50 may be directly written in the EEPROM 140 of the engine ECU 100, or the update information transmitted from the hybrid ECU 50 is temporarily stored in the RAM 124, and the vehicle When the operation is stopped, data may be written from the RAM 124 to the EEPROM 140.

このように、エンジンECU100がハイブリッドECU50から制御学習値の更新情報を取得して記憶しているので、ハイブリッドECU50が交換されるまで、ハイブリッドECU50がEEPROM80に記憶している制御学習値と、エンジンECU100がEEPROM140に記憶している制御学習値とは等しい。   Thus, since engine ECU 100 acquires and stores the update information of the control learning value from hybrid ECU 50, engine ECU 100 stores the control learning value stored in EEPROM 80 by hybrid ECU 50 until hybrid ECU 50 is replaced. Is equal to the control learning value stored in the EEPROM 140.

そして、ハイブリッドECU50が交換されたことが検出されると、エンジンECU100がEEPROM140に記憶している制御学習値を交換後のハイブリッドECU50に送信することにより(図5の実線210参照)、交換後のハイブリッドECU50は交換前のハイブリッドECU50が学習していた制御学習値をEEPROM80に書き込む(図5の実線202参照)。本実施形態では、ハイブリッドECU50は、エンジンECU100から取得した制御学習値を一旦RAM64に記憶してEEPROM80に書き込む。   When it is detected that the hybrid ECU 50 has been replaced, the engine ECU 100 transmits the control learning value stored in the EEPROM 140 to the hybrid ECU 50 after replacement (see the solid line 210 in FIG. 5), so that The hybrid ECU 50 writes the control learning value learned by the hybrid ECU 50 before replacement into the EEPROM 80 (see the solid line 202 in FIG. 5). In the present embodiment, the hybrid ECU 50 temporarily stores the control learning value acquired from the engine ECU 100 in the RAM 64 and writes it in the EEPROM 80.

これにより、交換後のハイブリッドECU50は、交換前のハイブリッドECU50が記憶していた制御学習値に基づいて、ハイブリッドバッテリ42およびモータジェネレータ98に対する制御を継続できる。   Thereby, the hybrid ECU 50 after replacement can continue control of the hybrid battery 42 and the motor generator 98 based on the control learning value stored in the hybrid ECU 50 before replacement.

一方、エンジンECU100が交換されると、交換後のエンジンECU100はハイブリッドECU50の制御学習値をEEPROM140に記憶していない。そこで、エンジンECU100が交換されたことが検出されると、交換後のエンジンECU100は、ハイブリッドECU50からEEPROM80に記憶している制御学習値を取得し(図5の実線204参照)、EEPROM140に書き込む(図5の実線212参照)。これにより、交換後のエンジンECU100は、交換されていないハイブリッドECU50と同じ制御学習値をEEPROM140に記憶できる。   On the other hand, when engine ECU 100 is replaced, engine ECU 100 after replacement does not store the control learning value of hybrid ECU 50 in EEPROM 140. Therefore, when it is detected that the engine ECU 100 has been replaced, the engine ECU 100 after replacement acquires the control learning value stored in the EEPROM 80 from the hybrid ECU 50 (see the solid line 204 in FIG. 5) and writes it in the EEPROM 140 ( (See the solid line 212 in FIG. 5). Thereby, engine ECU100 after replacement | exchange can memorize | store in EEPROM140 the same control learning value as hybrid ECU50 which is not replaced | exchanged.

本実施形態では、エンジンECU100は、ハイブリッドECU50から取得した制御学習値を一旦RAM124に記憶してEEPROM140に書き込む。
(交換検出)
前述したように、SRAM68、128は、スタートスイッチ4のオン、オフに関わらず、バッテリ2が交換されず、ハイブリッドECU50またはエンジンECU100が脱着されない限り、記憶しているデータを保持できる。一方、SRAM68、128が記憶していたデータは、バッテリ2が交換されるか、ハイブリッドECU50またはエンジンECU100が脱着されると消去される。
In the present embodiment, the engine ECU 100 temporarily stores the control learning value acquired from the hybrid ECU 50 in the RAM 124 and writes it in the EEPROM 140.
(Exchange detection)
As described above, the SRAMs 68 and 128 can hold stored data as long as the battery 2 is not replaced and the hybrid ECU 50 or the engine ECU 100 is not attached or detached regardless of whether the start switch 4 is on or off. On the other hand, the data stored in the SRAMs 68 and 128 are deleted when the battery 2 is replaced or the hybrid ECU 50 or the engine ECU 100 is detached.

このようなSRAMの記憶特性から判断して、SRAM68、128の両方の記憶状態がデータの記憶されていない初期状態の場合は、バッテリが交換されたか、両方のECUが脱着されたと考えられる。   Judging from the storage characteristics of the SRAM, if both the storage states of the SRAMs 68 and 128 are in the initial state in which no data is stored, it is considered that the batteries have been replaced or both ECUs have been removed.

さらに、SRAM68、128の両方の記憶状態が初期状態であり、かつEEPROM80とEEPROM140とに記憶されているハイブリッドECU50の制御学習値が等しい場合、バッテリ2が交換されたか、両方のECUが新品に交換されたか、ハイブリッドECU50およびエンジンECU100の両方でそれぞれ同じECUを抜き差ししたために、EEPROM80、140の両方が同じ制御学習値を記憶していると考えられる。この場合には、EEPROM80とEEPROM140に記憶されている制御学習値が等しいので、一方のEEPROMに他方のEEPROMに記憶されている制御学習値をコピーする必要はない。   Furthermore, when the storage states of both the SRAMs 68 and 128 are in the initial state and the control learning values of the hybrid ECU 50 stored in the EEPROM 80 and the EEPROM 140 are equal, the battery 2 has been replaced or both ECUs have been replaced with new ones. It is considered that both the EEPROM 80 and 140 store the same control learning value because the same ECU is inserted and removed in both the hybrid ECU 50 and the engine ECU 100. In this case, since the control learning values stored in the EEPROM 80 and the EEPROM 140 are the same, it is not necessary to copy the control learning value stored in the other EEPROM to one EEPROM.

これに対し、SRAM68、128の一方の記憶状態だけが初期状態であり、EEPROM80とEEPROM140とに記憶されているハイブリッドECU50の制御学習値が異なる場合、SRAM68、128が初期状態である方のECUが新品または中古品に交換されたと考えられる。   On the other hand, when only one storage state of the SRAMs 68 and 128 is the initial state and the control learning value of the hybrid ECU 50 stored in the EEPROM 80 and the EEPROM 140 is different, the ECU in which the SRAMs 68 and 128 are in the initial state It is thought that it was exchanged for a new or used item.

また、SRAM68、128の少なくとも一方の記憶状態が初期状態であり、EEPROM80とEEPROM140とに記憶されているハイブリッドECU50の制御学習値が異なり、一方のEEPROMに記憶されている制御学習値だけが初期値の場合、バッテリ2の交換ではなく、制御学習値が初期値の方のECUが新品に交換されたと考えられる。   Further, at least one storage state of the SRAMs 68 and 128 is the initial state, the control learning value of the hybrid ECU 50 stored in the EEPROM 80 and the EEPROM 140 is different, and only the control learning value stored in one EEPROM is the initial value. In this case, it is considered that the ECU whose control learning value is the initial value is replaced with a new one, not the replacement of the battery 2.

これらの場合には、交換されていないECUがEEPROMに記憶しているハイブリッドECU50の制御学習値が、交換により装着されたECUのEEPROMに書き込まれる。   In these cases, the control learning value of the hybrid ECU 50 stored in the EEPROM by the ECU that has not been replaced is written in the EEPROM of the ECU that has been mounted by replacement.

また、SRAM68、128の両方の記憶状態が初期状態であり、EEPROM80とEEPROM140とに記憶されているハイブリッドECU50の制御学習値が異なり、一方のEEPROMに記憶されている制御学習値だけが初期値の場合、制御学習値が初期値の方のECUが新品に交換され、他方のECUは中古品に交換されたと考えられる。   In addition, the storage states of both the SRAMs 68 and 128 are the initial states, the control learning values of the hybrid ECU 50 stored in the EEPROM 80 and the EEPROM 140 are different, and only the control learning values stored in one EEPROM are the initial values. In this case, it is considered that the ECU whose control learning value is the initial value has been replaced with a new one, and the other ECU has been replaced with a used one.

しかしながら、一方のECUが新品に交換され、他方のECUが中古品に交換される可能性は低いので、EEPROM80とEEPROM140とに記憶されているハイブリッドECU50の制御学習値が異なり、一方のEEPROMに記憶されている制御学習値だけが初期値の場合、SRAM68、128の記憶状態は両方ではなく一方だけが初期状態であると考えることが適切である。   However, since it is unlikely that one ECU is replaced with a new one and the other ECU is replaced with a second-hand one, the control learning values of the hybrid ECU 50 stored in the EEPROM 80 and the EEPROM 140 are different and stored in one EEPROM. When only the control learning value that has been set is the initial value, it is appropriate to consider that the storage state of the SRAMs 68 and 128 is not the both but only one is the initial state.

(交換検出処理、復旧処理)
図6〜図8に、ハイブリッドECU50が実行する交換検出処理と制御学習値の復旧処理とを示し、図9〜図11に、エンジンECU100が実行する交換検出処理と制御学習値の復旧処理とを示す。図6〜図11において、「S」はステップを表わしている。
(Exchange detection processing, recovery processing)
FIGS. 6 to 8 show the exchange detection process and control learning value recovery process executed by the hybrid ECU 50, and FIGS. 9 to 11 show the exchange detection process and control learning value recovery process executed by the engine ECU 100. Show. 6 to 11, “S” represents a step.

(ハイブリッドECU50の交換検出処理1)
図6に示すハイブリッドECU50の交換検出処理1において、図6の(A)は、ハイブリッドECU50による交換検出のための車両運転停止時の処理を示し、図6の(B)はハイブリッドECU50による交換検出のための車両運転開始時の処理を示している。
(Hybrid ECU 50 replacement detection process 1)
In the replacement detection process 1 of the hybrid ECU 50 shown in FIG. 6, (A) in FIG. 6 shows the process when the vehicle operation is stopped for the replacement detection by the hybrid ECU 50, and (B) in FIG. 6 is the replacement detection by the hybrid ECU 50. The process at the time of the vehicle driving start for is shown.

図6の(A)において、スタートスイッチ4がオフになり車両運転が停止されるときに、ハイブリッドECU50は、SRAM68に設定した変数SSRAMに所定のキーワードを設定するとともに(S400)、その他の停止処理を実行してから電源回路52にバッテリ2からの電力供給の遮断を指令し、本処理を終了する。   In FIG. 6A, when the start switch 4 is turned off and the vehicle operation is stopped, the hybrid ECU 50 sets a predetermined keyword in the variable SSRAM set in the SRAM 68 (S400) and other stop processing. Is executed, the power supply circuit 52 is instructed to cut off the power supply from the battery 2, and this process is terminated.

図6の(B)では、スタートスイッチ4がオンされると、ハイブリッドECU50は、SSRAMに所定のキーワードが設定されているか否かを判定する(S410)。
SSRAMに所定のキーワードが設定されている場合(S410:Yes)、ハイブリッドECU50は、スタートスイッチ4がオフされてからオンされるまでの間に自ECUは脱着されておらず、バッテリ2も交換されていないと判断する。そして、EEPROM80のSEG領域に記憶している制御学習値が初期値でなく何らかのデータが記憶されている場合(S412:No)、ハイブリッドECU50は、EEPROM80は正常であると判断し、RAM64に設定した変数SSTSに「OK」を設定し(S414)、処理をS420に移行する。
In FIG. 6B, when the start switch 4 is turned on, the hybrid ECU 50 determines whether or not a predetermined keyword is set in the SSRAM (S410).
When a predetermined keyword is set in the SSRAM (S410: Yes), the hybrid ECU 50 has not removed its own ECU between the time when the start switch 4 is turned on and the time when it is turned on, and the battery 2 is also replaced. Judge that it is not. If the control learning value stored in the SEG area of the EEPROM 80 is not the initial value but any data is stored (S412: No), the hybrid ECU 50 determines that the EEPROM 80 is normal and sets it in the RAM 64. “OK” is set in the variable SSTS (S414), and the process proceeds to S420.

SSTSに設定される値は、「OK」、「NG」、「END」のいずれかであり、以下の意味を表わしている。
「OK」 :ハイブリッドECU50は脱着されておらず、バッテリ2も交換されていない。
「NG」 :ハイブリッドECU50が脱着されたか、バッテリ2が交換された。あるいは、ハイブリッドECU50は脱着されておらず、バッテリ2も交換されていないが、EEPROM80が異常である。
「END」:ハイブリッドECU50とエンジンECU100とがEEPROMに記憶している制御学習値が等しい。この場合、両ECUが交換されなかったために一致しているか、あるいは一方のECUは交換されたが制御学習値の復旧処理が終了したために一致しているかのいずれかを表わしている。
The value set in SSTS is one of “OK”, “NG”, and “END”, and represents the following meaning.
“OK”: The hybrid ECU 50 is not detached and the battery 2 is not replaced.
“NG”: The hybrid ECU 50 is removed or replaced, or the battery 2 is replaced. Alternatively, the hybrid ECU 50 is not detached and the battery 2 is not replaced, but the EEPROM 80 is abnormal.
“END”: The control learning values stored in the EEPROM by the hybrid ECU 50 and the engine ECU 100 are equal. In this case, either ECU is coincident because it is not exchanged, or one ECU is exchanged but coincides because the restoration process of the control learning value is completed.

SSRAMに所定のキーワードが設定されているにも関わらず(S410:Yes)、EEPROM80のSEG領域に記憶している制御学習値が初期値の場合(S412:Yes)、ハイブリッドECU50は、EEPROM80に異常が発生して記憶データが初期化されたと判断し、SSTSに「NG」を設定し(S416)、処理をS420に移行する。   When the predetermined keyword is set in the SSRAM (S410: Yes), but the control learning value stored in the SEG area of the EEPROM 80 is the initial value (S412: Yes), the hybrid ECU 50 is abnormal in the EEPROM 80. It is determined that the stored data has been initialized and “NG” is set in the SSTS (S416), and the process proceeds to S420.

SSRAMに所定のキーワードが設定されていない場合(S410:No)、ハイブリッドECU50は、自ECUが脱着されたか、バッテリ2が交換されたと判断し、変数SSTSに「NG」を設定し(S418)、処理をS420に移行する。   When the predetermined keyword is not set in the SSRAM (S410: No), the hybrid ECU 50 determines that the own ECU has been removed or the battery 2 has been replaced, and sets “NG” to the variable SSTS (S418). The process proceeds to S420.

S420においてハイブリッドECU50は、S414、S416、S418のいずれかで設定したSSTSをエンジンECU100に送信し、S422においてEEPROM80のSEG領域に記憶している制御学習値をエンジンECU100に送信し、本処理を終了する。   In S420, the hybrid ECU 50 transmits the SSTS set in any of S414, S416, and S418 to the engine ECU 100. In S422, the hybrid ECU 50 transmits the control learning value stored in the SEG area of the EEPROM 80 to the engine ECU 100, and ends this process. To do.

(ハイブリッドECU50の交換検出処理2)
図7に示すハイブリッドECU50の交換検出処理2は、例えば64ms毎にタイマ割り込みにより実行される。
(Hybrid ECU 50 replacement detection process 2)
The exchange detection process 2 of the hybrid ECU 50 shown in FIG. 7 is executed by a timer interrupt every 64 ms, for example.

ハイブリッドECU50は、エンジンECU100がEEPROM140のMEG領域に記憶しているハイブリッドECU50の制御学習値をエンジンECU100から受信して自ECUのRAM64に設定したMEG領域に書き込む(S430)。次に、ハイブリッドECU50は、エンジンECU100からハイブリッドECU50に対する処理要求であるMREQを受信し、自ECUのRAM64に設定した変数MREQに設定する(S432)。   The hybrid ECU 50 receives the control learning value of the hybrid ECU 50 stored in the MEG area of the EEPROM 140 by the engine ECU 100 from the engine ECU 100 and writes it in the MEG area set in the RAM 64 of the own ECU (S430). Next, the hybrid ECU 50 receives MREQ, which is a processing request for the hybrid ECU 50, from the engine ECU 100, and sets it to the variable MREQ set in the RAM 64 of its own ECU (S432).

MREQはエンジンECU100により、「要求無し」、「復旧要求」、「終了要求」のいずれかに設定され、以下の意味を表わす。
「要求無し」:車両運転開始時にエンジンECU100により設定される。エンジンECU100からハイブリッドECU50に対する処理要求はない。
「復旧要求」:ハイブリッドECU50に制御学習値の復旧処理を要求する。
「終了要求」:「要求無し」が設定されてから、エンジンECU100からハイブリッドECU50に対する処理要求がない場合に設定される。
MREQ is set to any of “no request”, “recovery request”, and “end request” by engine ECU 100, and represents the following meaning.
“No request”: Set by the engine ECU 100 at the start of vehicle operation. There is no processing request from the engine ECU 100 to the hybrid ECU 50.
“Recovery request”: Requests the hybrid ECU 50 to recover the control learning value.
“End request”: set when there is no processing request from the engine ECU 100 to the hybrid ECU 50 after “no request” is set.

ハイブリッドECU50は、SSTSが「OK」であれば(S434:Yes)、MREQが「終了要求」か否かを判定し(S436)、SSTSが「OK」でなければ(S434:No)、SSTSが「END」であるか否かを判定する(S440)。   If the SSTS is “OK” (S434: Yes), the hybrid ECU 50 determines whether the MREQ is “end request” (S436). If the SSTS is not “OK” (S434: No), the SSTS is It is determined whether or not “END” (S440).

SSTSが「OK」であり(S434:Yes)、MREQが「終了要求」の場合(S436)、ハイブリッドECU50はSSTSに「END」を設定し(S438)、S444に処理を移行する。   When the SSTS is “OK” (S434: Yes) and the MREQ is “end request” (S436), the hybrid ECU 50 sets “END” in the SSTS (S438), and the process proceeds to S444.

MREQが「終了要求」ではない場合(S436:No)、ハイブリッドECU50は、自ECUは交換されていないがエンジンECU100が交換されたためにエンジンECU100で制御学習値の復旧処理中であると判断し、SSTSに「END」を設定せずにS444に処理を移行する。   When the MREQ is not “end request” (S436: No), the hybrid ECU 50 determines that the engine ECU 100 has been replaced but the engine ECU 100 is in the process of restoring the control learning value because the ECU has not been replaced. The process proceeds to S444 without setting “END” in the SSTS.

SSTSが「OK」ではなく(S434:No)、SSTSが「END」の場合(S440:Yes)、ハイブリッドECU50は、自ECUで制御学習値の復旧処理が終了したと判断し、S444に処理を移行する。SSTSが「END」ではない場合(S440:No)、ハイブリッドECU50は制御学習値の復旧処理を実行し(S442)、S444に処理を移行する。S442における制御学習値の復旧処理については後述する。   When the SSTS is not “OK” (S434: No) and the SSTS is “END” (S440: Yes), the hybrid ECU 50 determines that the recovery processing of the control learning value has been completed in its own ECU, and performs the processing in S444. Transition. When the SSTS is not “END” (S440: No), the hybrid ECU 50 executes a control learning value recovery process (S442), and shifts the process to S444. The control learning value recovery processing in S442 will be described later.

図6のS412の判定で「Yes」になる場合、つまりハイブリッドECU50は交換されていないがEEPROM80が異常の場合にもS442の復旧処理は実行される。この場合、EEPROM80の異常が一時的なものであれば、復旧処理により制御学習値を復旧できる。   When the determination in S412 of FIG. 6 is “Yes”, that is, the hybrid ECU 50 is not replaced, but the EEPROM 80 is abnormal, the recovery process of S442 is also executed. In this case, if the abnormality in the EEPROM 80 is temporary, the control learning value can be restored by the restoration process.

S444においてハイブリッドECU50は、エンジンECU100にSSTSを送信し、S446においてエンジンECU100にEEPROM80のSEG領域に記憶している制御学習値を送信し、本処理を終了する。   In S444, the hybrid ECU 50 transmits SSTS to the engine ECU 100. In S446, the hybrid ECU 50 transmits the control learning value stored in the SEG area of the EEPROM 80 to the engine ECU 100, and ends this process.

(ハイブリッドECU50の復旧処理)
図8に示すハイブリッドECU50における制御学習値の復旧処理は、図7のS442で実行される処理である。
(Recovery processing of hybrid ECU 50)
The control learned value recovery process in the hybrid ECU 50 shown in FIG. 8 is a process executed in S442 of FIG.

ハイブリッドECU50は、MREQが「終了要求」の場合(S450:Yes)、S456に処理を移行し、MREQが「終了要求」ではない場合(S450:No)、MREQが「復旧要求」であるか否かを判定する(S452)。MREQが「復旧要求」ではない場合(S452:No)、ハイブリッドECU50は本処理を終了する。   When the MREQ is “end request” (S450: Yes), the hybrid ECU 50 proceeds to S456, and when the MREQ is not “end request” (S450: No), whether the MREQ is “recovery request” or not. Is determined (S452). When the MREQ is not a “recovery request” (S452: No), the hybrid ECU 50 ends this process.

MREQが「復旧要求」である場合(S452:Yes)、ハイブリッドECU50は、図7のS430でエンジンECU100から受信し自ECUのRAM64のMEG領域に記憶した制御学習値をEEPROM80のSEG領域に書き込み(S454)、SSTSに「END」を設定し(S456)、本処理を終了する。   When the MREQ is “recovery request” (S452: Yes), the hybrid ECU 50 writes the control learning value received from the engine ECU 100 and stored in the MEG area of the RAM 64 of the own ECU in the SEG area of the EEPROM 80 (S452: Yes) ( S454), “END” is set in SSTS (S456), and this process is terminated.

(エンジンECU100の交換検出処理1)
図9に示すエンジンECU100の交換検出処理1において、図9の(A)は、エンジンECU100の交換検出のための車両運転停止時の処理を示し、図9の(B)はエンジンECU100の交換検出のための車両運転開始時の処理を示している。
(Replacement detection process 1 of engine ECU 100)
In the replacement detection process 1 of the engine ECU 100 shown in FIG. 9, (A) in FIG. 9 shows a process when the vehicle operation is stopped for detection of replacement of the engine ECU 100, and (B) in FIG. The process at the time of the vehicle driving start for is shown.

図9の(A)において、スタートスイッチ4がオフになり車両運転が停止されるときに、エンジンECU100は、SRAM128に設定した変数MSRAMに所定のキーワードを設定するとともに(S460)、その他の停止処理を実行してから電源回路102にバッテリ2からの電力供給の遮断を指令し、本処理を終了する。   In FIG. 9A, when the start switch 4 is turned off and the vehicle operation is stopped, the engine ECU 100 sets a predetermined keyword in the variable MSRAM set in the SRAM 128 (S460) and other stop processing. Is executed, the power supply circuit 102 is instructed to cut off the power supply from the battery 2, and this process is terminated.

図9の(B)では、スタートスイッチ4がオンされると、エンジンECU100は、MSRAMに所定のキーワードが設定されているか否かを判定する(S470)。
MSRAMに所定のキーワードが設定されている場合(S470:Yes)、エンジンECU100は、スタートスイッチ4がオフされてからオンされるまでの間に自ECUは脱着されておらず、バッテリ2も交換されていないと判断する。そして、EEPROM140のMEG領域に記憶しているハイブリッドECU50の制御学習値が初期値でなく何らかのデータが記憶されている場合(S472:No)、エンジンECU100は、EEPROM140は正常であると判断し、RAM124に設定した変数MEGSに「OK」を設定し(S474)、処理をS480に移行する。
In FIG. 9B, when the start switch 4 is turned on, the engine ECU 100 determines whether or not a predetermined keyword is set in the MSRAM (S470).
When a predetermined keyword is set in the MSRAM (S470: Yes), the engine ECU 100 has not removed its own ECU from the time when the start switch 4 is turned on until it is turned on, and the battery 2 is also replaced. Judge that it is not. When the control learning value of the hybrid ECU 50 stored in the MEG area of the EEPROM 140 is not the initial value but any data is stored (S472: No), the engine ECU 100 determines that the EEPROM 140 is normal, and the RAM 124 “OK” is set to the variable MEGS set to (S474), and the process proceeds to S480.

MEGSに設定される値は、「OK」、「NG」のいずれかであり、以下の意味を表わしている。
「OK」:エンジンECU100は脱着されておらず、バッテリ2も交換されていない。
「NG」:エンジンECU100が脱着されたか、バッテリ2が交換された。あるいは、エンジンECU100は脱着されておらず、バッテリ2も交換されていないが、EEPROM140が異常である。
The value set in MEGS is either “OK” or “NG”, and represents the following meaning.
“OK”: The engine ECU 100 is not detached and the battery 2 is not replaced.
“NG”: Engine ECU 100 has been removed or battery 2 has been replaced. Alternatively, engine ECU 100 is not detached and battery 2 is not replaced, but EEPROM 140 is abnormal.

MSRAMに所定のキーワードが設定されているにも関わらず(S470:Yes)、EEPROM140のMEGに記憶している制御学習値が初期値の場合(S472:Yes)、エンジンECU100は、EEPROM140に異常が発生して記憶データが初期化されたと判断し、MEGSに「NG」を設定し(S476)、処理をS480に移行する。   When a predetermined keyword is set in the MSRAM (S470: Yes), but the control learning value stored in the MEG of the EEPROM 140 is the initial value (S472: Yes), the engine ECU 100 has an abnormality in the EEPROM 140. It is determined that the stored data has been initialized and “NG” is set in MEGS (S476), and the process proceeds to S480.

MSRAMに所定のキーワードが設定されていない場合(S470:No)、エンジンECU100は、自ECUが脱着されたか、バッテリ2が交換されたと判断し、変数MEGSに「NG」を設定し(S478)、S480に処理を移行する。   When the predetermined keyword is not set in the MSRAM (S470: No), the engine ECU 100 determines that the ECU is detached or the battery 2 has been replaced, and sets “NG” in the variable MEGS (S478). The process proceeds to S480.

S480においてハイブリッドECU50は、MREQに「要求無し」を設定する。そして、エンジンECU100は、MREQとEEPROM140のMEG領域に記憶しているハイブリッドECU50の制御学習値とをハイブリッドECU50に送信し(S482、S484)、本処理を終了する。   In S480, the hybrid ECU 50 sets “no request” to the MREQ. Then, engine ECU 100 transmits MREQ and the control learning value of hybrid ECU 50 stored in the MEG area of EEPROM 140 to hybrid ECU 50 (S482, S484), and ends this process.

(エンジンECU100の交換検出処理2)
図10に示すエンジンECU100の交換検出処理2は、例えば64ms毎にタイマ割り込みにより実行される。
(Replacement detection process 2 of engine ECU 100)
The replacement detection process 2 of the engine ECU 100 shown in FIG. 10 is executed by a timer interrupt every 64 ms, for example.

エンジンECU100は、ハイブリッドECU50がEEPROM80のSEG領域に記憶しているハイブリッドECU50の制御学習値をハイブリッドECU50から受信し、自ECUのRAM124に設定したSEG領域に書き込む(S490)。次に、エンジンECU100は、ハイブリッドECU50からSSTSを受信し、自ECUのRAM124に設定した変数SSTSに設定する(S492)。   The engine ECU 100 receives the control learning value of the hybrid ECU 50 stored in the SEG area of the EEPROM 80 by the hybrid ECU 50 from the hybrid ECU 50 and writes it in the SEG area set in the RAM 124 of the own ECU (S490). Next, the engine ECU 100 receives the SSTS from the hybrid ECU 50 and sets it in the variable SSTS set in the RAM 124 of the own ECU (S492).

そして、S494においてエンジンECU100は、MREQが「要求無し」であるか否かを判定する。MREQは、図9の(B)に示す運転開始時処理のS480で「要求無し」に設定されるので、最初にS494の判定処理が実行される場合、MREQは必ず「要求無し」に設定されている。MREQが「要求無し」であり(S494:Yes)、S498またはS500が実行されると、MREQは「終了要求」または「復旧要求」のいずれかに設定されるので、2回目以降のS494における判定は必ず「No」になる。   In S494, the engine ECU 100 determines whether or not the MREQ is “no request”. Since MREQ is set to “no request” in S480 of the operation start time process shown in FIG. 9B, when the determination process of S494 is first executed, MREQ is always set to “no request”. ing. When MREQ is “no request” (S494: Yes) and S498 or S500 is executed, MREQ is set to either “end request” or “recovery request”, so the determination in S494 for the second and subsequent times Will always be “No”.

エンジンECU100は、MREQが「要求無し」であれば(S494:Yes)、MEGSおよびSSTSの両方が「OK」か否かを判定し(S496)、MREQが「要求無し」でなければ(S494:No)、SSTSが「END」か否かを判定する(S502)。   If the MREQ is “no request” (S494: Yes), the engine ECU 100 determines whether both MEGS and SSTS are “OK” (S496). If the MREQ is not “no request” (S494: No), it is determined whether or not the SSTS is “END” (S502).

MEGSおよびSSTSの両方が「OK」の場合(S496:Yes)、エンジンECU100は、車両運転開始時にハイブリッドECU50およびエンジンECU100の両方のSRAMに所定のキーワードが設定されているので、ハイブリッドECU50およびエンジンECU100ともに脱着されておらず、バッテリ2も交換されていないと判断する。そこで、エンジンECU100は、MREQに「終了要求」を設定し(S498)、S506に処理を移行する。   When both MEGS and SSTS are “OK” (S496: Yes), engine ECU 100 has predetermined keywords set in both SRAMs of hybrid ECU 50 and engine ECU 100 at the start of vehicle operation. Therefore, hybrid ECU 50 and engine ECU 100 It is determined that both are not detached and the battery 2 is not replaced. Therefore, the engine ECU 100 sets “end request” in the MREQ (S498), and the process proceeds to S506.

MEGSおよびSSTSの両方が「OK」ではない場合(S496:No)、つまり、MEGが「NG」であるか、SSTSが「NG」であるかの少なくともいずれかの場合、エンジンECU100は学習値復旧処理を実行し(S500)、S506に処理を移行する。エンジンECU100の学習値復旧処理については後述する。   When both MEGS and SSTS are not “OK” (S496: No), that is, when MEG is “NG” or SSTS is “NG”, engine ECU 100 recovers the learning value. The process is executed (S500), and the process proceeds to S506. The learned value recovery process of the engine ECU 100 will be described later.

ここで、SSTSが[END」に設定されるのは、図7のS436の判定でMREQが「終了要求」(S436:Yes)のときか、図8のS450の判定でMREQが「終了要求」(S450:Yes)のときか、S452の判定でMREQが「復旧要求」(S452:Yes)のときである。そして、S496の判定はMREQが「要求無し」(S494:Yes)のときに実行されるので、S496の判定においてSSTSは「END」に設定されておらず、「OK」でなければ「NG」に設定されている。   Here, the SSTS is set to [END] when the MREQ is “end request” (S436: Yes) in the determination of S436 in FIG. 7 or the MREQ is “end request” in the determination of S450 in FIG. (S450: Yes) or when the MREQ is “recovery request” (S452: Yes) in the determination of S452. Since the determination in S496 is executed when MREQ is “no request” (S494: Yes), SSTS is not set to “END” in the determination in S496, and “NG” unless it is “OK”. Is set to

MREQが「要求無し」でなければ(S494:No)、エンジンECU100は、SSTSが「END」か否かを判定する(S502)。SSTSが「END」ではない場合(S502:No)、エンジンECU100は、SSTSは「OK」または「NG」であるから、ハイブリッドECU50とエンジンECU100とがEEPROMに記憶している制御学習値が等しいか、あるいはハイブリッドECU50が制御学習値の復旧処理中であると判断し、S506に処理を移行する。   If MREQ is not “no request” (S494: No), engine ECU 100 determines whether SSTS is “END” (S502). When the SSTS is not “END” (S502: No), the engine ECU 100 determines that the control learning values stored in the EEPROM by the hybrid ECU 50 and the engine ECU 100 are equal because the SSTS is “OK” or “NG”. Alternatively, it is determined that the hybrid ECU 50 is in the process of restoring the control learning value, and the process proceeds to S506.

ハイブリッドECU50とエンジンECU100とがEEPROMに記憶している制御学習値が等しい場合には、MREQは「終了要求」に設定されており、ハイブリッドECU50が制御学習値の復旧処理中の場合には、MREQは「復旧要求」に設定されている。   When the control learning values stored in the EEPROM of the hybrid ECU 50 and the engine ECU 100 are equal, the MREQ is set to “end request”. When the hybrid ECU 50 is in the process of restoring the control learning values, the MREQ is set. Is set to “recovery request”.

SSTSが「END」の場合(S502:Yes)、エンジンECU100は、ハイブリッドECU50とエンジンECU100とがEEPROMに記憶している制御学習値が等しいと判断し、MREQに「終了要求」を設定し(S504)、S506に処理を移行する。   When the SSTS is “END” (S502: Yes), the engine ECU 100 determines that the hybrid ECU 50 and the engine ECU 100 have the same control learning value stored in the EEPROM, and sets “end request” to the MREQ (S504). ), The process proceeds to S506.

S506、S508においてエンジンECU100は、MREQとEEPROM140のMEG領域に記憶しているハイブリッドECU50の制御学習値とをハイブリッドECU50に送信し、本処理を終了する。   In S506 and S508, the engine ECU 100 transmits the MREQ and the control learning value of the hybrid ECU 50 stored in the MEG area of the EEPROM 140 to the hybrid ECU 50, and ends this process.

(エンジンECU100の復旧処理)
図11に示すエンジンECU100における制御学習値の復旧処理は、図10のS500で実行される処理である。
(Recovery processing of engine ECU 100)
The recovery process of the control learning value in engine ECU 100 shown in FIG. 11 is a process executed in S500 of FIG.

エンジンECU100は、EEPROM140のMEG領域に記憶されているハイブリッドECU50の制御学習値と、RAM124のSEG領域に記憶されているハイブリッドECU50の制御学習値とが等しいか否かを判定する(S510)。RAM124のSEG領域には、図10のS490において、ハイブリッドECU50から受信したハイブリッドECU50のEEPROM80に記憶されている制御学習値が書き込まれている。   The engine ECU 100 determines whether or not the control learning value of the hybrid ECU 50 stored in the MEG area of the EEPROM 140 is equal to the control learning value of the hybrid ECU 50 stored in the SEG area of the RAM 124 (S510). In the SEG area of the RAM 124, the control learning value stored in the EEPROM 80 of the hybrid ECU 50 received from the hybrid ECU 50 in S490 of FIG.

EEPROM140のMEG領域とRAM124のSEG領域とに記憶されている制御学習値が等しい場合(S510:Yes)、エンジンECU100は、ハイブリッドECU50およびエンジンECU100の両方が新品に交換されたか、ハイブリッドECU50およびエンジンECU100の両方でそれぞれ同じECUを抜き差ししたか、バッテリ2が交換されたために、EEPROM140のMEG領域とRAM124のSEG領域とに記憶されている制御学習値が等しいと判断する。   When the control learning values stored in the MEG area of EEPROM 140 and the SEG area of RAM 124 are equal (S510: Yes), engine ECU 100 determines whether both hybrid ECU 50 and engine ECU 100 have been replaced with new ones, or hybrid ECU 50 and engine ECU 100. Therefore, it is determined that the control learning values stored in the MEG area of the EEPROM 140 and the SEG area of the RAM 124 are equal because the same ECU is inserted or removed in both cases or the battery 2 is replaced.

いずれの場合も、EEPROM80およびEEPROM140に記憶されている制御学習値を復旧する必要はないので、エンジンECU100はMREQに「終了要求」を設定し(S512)、本処理を終了する。   In any case, since it is not necessary to restore the control learning value stored in the EEPROM 80 and the EEPROM 140, the engine ECU 100 sets an “end request” in the MREQ (S512), and ends this process.

MEG領域とSEG領域とに記憶されている制御学習値が異なる場合(S510:No)、エンジンECU100は、バッテリ2は交換されておらず、ハイブリッドECU50およびエンジンECU100の少なくともいずれか一方で同じECUが抜き差しされたのでもなく、ハイブリッドECU50およびエンジンECU100の少なくともいずれか一方が交換されたと判断する。そして、エンジンECU100は、MEG領域に記憶されている制御学習値が初期値であるか否かを判定する(S514)。   When the control learning values stored in the MEG area and the SEG area are different (S510: No), the engine ECU 100 does not have the battery 2 replaced, and the same ECU is at least one of the hybrid ECU 50 and the engine ECU 100. It is determined that at least one of the hybrid ECU 50 and the engine ECU 100 has been replaced without being inserted or removed. Then, engine ECU 100 determines whether or not the control learning value stored in the MEG region is an initial value (S514).

ここで、図10のS496の判定でMEGSおよびSSTSの両方が「OK」ではない場合(S496:No)、つまり、MEGSおよびSSTSの少なくとも一方が「NG」である場合に図11の処理が実行されるので、MEGSおよびSSTSの両方が「NG」の場合もあり得る。   Here, when both MEGS and SSTS are not “OK” in the determination of S496 of FIG. 10 (S496: No), that is, when at least one of MEGS and SSTS is “NG”, the processing of FIG. 11 is executed. Therefore, both MEGS and SSTS may be “NG”.

そして、MEGSおよびSSTSの両方が「NG」であり、S510の判定が「No」の場合には、ハイブリッドECU50およびエンジンECU100の両方が異なるECUに交換されたと考えられる。ただし、ハイブリッドECU50およびエンジンECU100の両方が交換されるときに、ハイブリッドECU50またはエンジンECU100の一方が新品に交換され、他方が中古品に交換される可能性は低いと考えられる。   If both MEGS and SSTS are “NG” and the determination in S510 is “No”, it is considered that both hybrid ECU 50 and engine ECU 100 have been replaced with different ECUs. However, when both the hybrid ECU 50 and the engine ECU 100 are replaced, it is considered unlikely that one of the hybrid ECU 50 or the engine ECU 100 is replaced with a new one and the other is replaced with a used one.

そこで、S510の判定が「No」の場合に実行されるS514またはS518の判定において、MEG領域に記憶されている制御学習値が初期値か、SEG領域に記憶されている制御学習値が初期値であれば、MEGSおよびSSTSの両方ではなく一方が「NG」であると判断する。これにより、エンジンECU100のMEG領域またはSEG領域に記憶されている制御学習値が初期値の場合、エンジンECU100またはハイブリッドECU50の一方で制御学習値の復旧処理を実行する。   Therefore, in the determination of S514 or S518 executed when the determination of S510 is “No”, the control learning value stored in the MEG area is the initial value, or the control learning value stored in the SEG area is the initial value. If so, it is determined that one of the MEGS and the SSTS is “NG”. Thereby, when the control learning value stored in the MEG area or SEG area of engine ECU 100 is the initial value, one of engine ECU 100 or hybrid ECU 50 executes the recovery process of the control learning value.

したがって、MEG領域に記憶されている制御学習値が初期値の場合(S514:Yes)、エンジンECU100は、自ECUは交換により新たに装着されたと判断し、SEG領域に記憶されているハイブリッドECU50の制御学習値をMEG領域に書き込んで、交換前にハイブリッドECU50の制御学習値をEEPROM140に記憶していた記憶状態に復旧させ(S516)、前述したS512に処理を移行する。   Therefore, when the control learning value stored in the MEG area is the initial value (S514: Yes), the engine ECU 100 determines that the own ECU has been newly installed by replacement, and the hybrid ECU 50 stored in the SEG area. The control learning value is written in the MEG area, the control learning value of the hybrid ECU 50 is restored to the storage state stored in the EEPROM 140 before the exchange (S516), and the process proceeds to the above-described S512.

MEG領域に記憶されている制御学習値が初期値ではない場合(S514:No)、エンジンECU100は、ハイブリッドECU50から取得してSEG領域に記憶している制御学習値が初期値であるか否かを判定する(S518)。SEG領域に記憶されている制御学習値が初期値の場合(S518:Yes)、エンジンECU100は、ハイブリッドECU50が交換により新たに装着されたと判断し、MREQに「復旧要求」を設定してハイブリッドECU50に制御学習値の復旧処理を要求し(S520)、本処理を終了する。   When the control learning value stored in the MEG area is not the initial value (S514: No), the engine ECU 100 determines whether the control learning value acquired from the hybrid ECU 50 and stored in the SEG area is the initial value. Is determined (S518). When the control learning value stored in the SEG area is the initial value (S518: Yes), the engine ECU 100 determines that the hybrid ECU 50 is newly installed by replacement, sets the “recovery request” in the MREQ, and the hybrid ECU 50 Is requested to restore the control learning value (S520), and this process ends.

SEG領域に記憶されている制御学習値が初期値ではない場合(S518:No)、エンジンECU100は、MEGSおよびSSTSの両方が「NG」か否かを判定する(522)。S522の判定においてMEGSおよびSSTSの両方が「NG」の場合(S522:Yes)、エンジンECU100は、ハイブリッドECU50のEEPROM80およびエンジンECU100のEEPROM140のそれぞれの領域で記憶している制御学習値が初期値ではなく、ハイブリッドECU50のSRAM68およびエンジンECU100のSRAM128の両方に車両運転開始時にキーワードが書き込まれていないので、ハイブリッドECU50とエンジンECU100とのどちらかが交換されたか判定不能であると判断する(S524)。そして、エンジンECU100は、MREQに「終了要求」を設定し(S526)、本処理を終了する。   If the control learning value stored in the SEG area is not the initial value (S518: No), the engine ECU 100 determines whether both MEGS and SSTS are “NG” (522). When both MEGS and SSTS are “NG” in the determination in S522 (S522: Yes), the engine ECU 100 has the initial control values stored in the respective areas of the EEPROM 80 of the hybrid ECU 50 and the EEPROM 140 of the engine ECU 100. Since no keywords are written in both the SRAM 68 of the hybrid ECU 50 and the SRAM 128 of the engine ECU 100 at the start of vehicle operation, it is determined that it is impossible to determine whether either the hybrid ECU 50 or the engine ECU 100 has been exchanged (S524). Then, engine ECU 100 sets “end request” in MREQ (S526), and ends this process.

MEGSおよびSSTSの両方が「NG」ではない場合(S522:No)、MEGSまたはSSTSの一方が「NG」で他方は「OK」である。
そこで、MEGSおよびSSTSの両方が「NG」ではない場合(S522:No)、MEGSが「NG」か否かを判定し(S528)、MEGSが「NG」であれば(S528:Yes)、エンジンECU100は、自ECUは交換により新たに装着されたと判断し、RAM124のSEG領域に記憶しているハイブリッドECU50の制御学習値をEEPROM140のMEG領域に書き込み(S530)、MREQを「終了要求」に設定し(S532)、本処理を終了する。
When both MEGS and SSTS are not “NG” (S522: No), one of MEGS or SSTS is “NG” and the other is “OK”.
Therefore, if both MEGS and SSTS are not “NG” (S522: No), it is determined whether MEGS is “NG” (S528). If MEGS is “NG” (S528: Yes), the engine is determined. The ECU 100 determines that the own ECU has been newly installed by replacement, writes the control learning value of the hybrid ECU 50 stored in the SEG area of the RAM 124 into the MEG area of the EEPROM 140 (S530), and sets MREQ to “end request”. (S532), and this process ends.

MEGSが「NG」ではない場合(S528:No)、つまりSSTSが「NG」の場合、エンジンECU100は、ハイブリッドECU50は交換により新たに装着されたと判断し、ハイブリッドECU50に制御学習値の復旧処理を実行させるためにMREQを「復旧要求」に設定し(S534)、本処理を終了する。   When MEGS is not “NG” (S528: No), that is, when SSTS is “NG”, engine ECU 100 determines that hybrid ECU 50 is newly installed by replacement, and performs a process of restoring control learning value to hybrid ECU 50. In order to execute this, MREQ is set to “recovery request” (S534), and this process ends.

以上説明した本実施形態では、車両運転開始時のハイブリッドECU50のSRAM68あるいはエンジンECU100のSRAM128に、車両運転停止時に設定した所定のキーワードが記憶されているか否かを各ECUで判定することにより、車両運転停止時に設定した所定のキーワードが車両運転開始時にSRAMに記憶されていない場合、中古品か新品かに関わらず、自ECUが脱着された可能性があると自ECUだけで判定できる。   In the present embodiment described above, each ECU determines whether or not a predetermined keyword set when the vehicle operation is stopped is stored in the SRAM 68 of the hybrid ECU 50 or the SRAM 128 of the engine ECU 100 when the vehicle operation is started. If the predetermined keyword set when the operation is stopped is not stored in the SRAM at the start of the vehicle operation, it can be determined only by the own ECU that there is a possibility that the own ECU has been attached or detached regardless of whether it is used or new.

さらに、SRAM68、128の記憶状態に基づいて判定する、自ECUが脱着された可能性があるか否かの判定結果と、ハイブリッドECU50の制御学習値を記憶するハイブリッドECU50のEEPROM80の所定領域の値と、ハイブリッドECU50の制御学習値を記憶するエンジンECU100のEEPROM140の所定領域の値との比較結果、あるいは初期値であるかの判定結果に基づいて、ハイブリッドECU50またはエンジンECU100のどちらが交換されたかをエンジンECU100が判定できる。   Further, the determination result based on the storage state of the SRAMs 68 and 128, whether or not there is a possibility that the own ECU has been detached, and the value of a predetermined area of the EEPROM 80 of the hybrid ECU 50 that stores the control learning value of the hybrid ECU 50 are stored. The engine ECU 100 determines which of the hybrid ECU 50 and the engine ECU 100 has been replaced based on a comparison result with a value in a predetermined area of the EEPROM 140 of the engine ECU 100 storing the control learning value of the hybrid ECU 50 or a determination result as to whether it is an initial value. ECU100 can judge.

そして、ハイブリッドECU50が交換された場合には、エンジンECU100は、エンジンECU100が記憶している交換前のハイブリッドECU50の制御学習値を交換後のハイブリッドECU50のEEPROM80に書き込ませる。   When hybrid ECU 50 is replaced, engine ECU 100 causes control learning value of hybrid ECU 50 before replacement stored in engine ECU 100 to be written in EEPROM 80 of hybrid ECU 50 after replacement.

一方、エンジンECU100が交換された場合には、交換後のエンジンECU100は、ハイブリッドECU50が記憶しているハイブリッドECU50の制御学習値を自ECUのEEPROM140に書き込む。   On the other hand, when engine ECU 100 is replaced, engine ECU 100 after replacement writes the control learning value of hybrid ECU 50 stored in hybrid ECU 50 to EEPROM 140 of its own ECU.

このように、自ECUが脱着された可能性があることを自ECUだけで判定し、エンジンECU100のように、書き換え可能な不揮発性記憶手段に他のECUの制御学習値を記憶することにより、他のECUが交換された場合に、エンジンECU100が記憶している他のECUの制御学習値により、交換後の他のECUに交換前に装着されていた他のECUの制御学習値を自動的に書き込ませることができる。   In this way, it is determined only by the own ECU that there is a possibility that the own ECU has been detached, and by storing the control learning values of other ECUs in the rewritable non-volatile storage means like the engine ECU 100, When another ECU is replaced, the control learned value of the other ECU mounted on the other ECU after the replacement is automatically calculated based on the control learned value of the other ECU stored in the engine ECU 100. Can be written to.

これにより、交換前に装着されていた他のECUの書き換え可能な不揮発性記憶手段に記憶されていた制御学習値を、交換後の他のECUの書き換え可能な不揮発性記憶手段に書き込みツールを用いて人手で書き込む工数を省略できる。   Thereby, the control learning value stored in the rewritable non-volatile storage means of the other ECU mounted before the replacement is used in the rewritable non-volatile storage means of the other ECU after the replacement using the writing tool. This eliminates the need for manual writing.

本実施形態では、車両制御システム10が本発明の車両制御装置に相当し、ハイブリッドECU50およびエンジンECU100が本発明の電子制御装置に相当し、ハイブリッドECU50が本発明の第1電子制御装置に相当し、エンジンECU100が本発明の第2子制御装置に相当し、SRAM68およびSRAM128がバッテリから電力を常時供給される本発明の揮発性記憶手段に相当し、EEPROM80が本発明の書き換え可能な第1不揮発性記憶手段に相当し、EEPROM140が本発明の書き換え可能な第2不揮発性記憶手段に相当する。   In the present embodiment, the vehicle control system 10 corresponds to the vehicle control device of the present invention, the hybrid ECU 50 and the engine ECU 100 correspond to the electronic control device of the present invention, and the hybrid ECU 50 corresponds to the first electronic control device of the present invention. The engine ECU 100 corresponds to the second child control device of the present invention, the SRAM 68 and the SRAM 128 correspond to volatile storage means of the present invention that is always supplied with power from the battery, and the EEPROM 80 is the rewritable first nonvolatile memory of the present invention. The EEPROM 140 corresponds to the rewritable second nonvolatile storage means of the present invention.

そして、ハイブリッドECU50およびエンジンECU100は、本発明の揮発性記憶判定手段、脱着判定手段、書き込み手段および復旧手段が実行する機能を実現する。
また、エンジンECU100は、本発明の不揮発性記憶判定手段および書き込み要求手段が実行する機能を実現する。
The hybrid ECU 50 and the engine ECU 100 implement the functions executed by the volatile memory determination means, the desorption determination means, the writing means, and the recovery means of the present invention.
The engine ECU 100 also realizes functions executed by the nonvolatile memory determination unit and the write request unit of the present invention.

また、図6のS400および図9のS460の処理が本発明の書き込み手段が実行する機能に相当し、図6のS410および図9のS470の処理が本発明の揮発性記憶判定手段が実行する機能に相当し、図6のS418および図9のS478の処理が本発明の脱着判定手段が実行する機能に相当し、図8のS454、図11のS516およびS530の処理が本発明の復旧手段が実行する機能に相当し、図11のS510、S514およびS518の処理が本発明の不揮発性記憶判定手段が実行する機能に相当し、図11のS520およびS534の処理が本発明の書き込み要求手段が実行する機能に相当する。   6 corresponds to the function executed by the writing means of the present invention, and the processing of S410 of FIG. 6 and S470 of FIG. 9 is executed by the volatile memory determining means of the present invention. 6 corresponds to the function executed by the attachment / detachment determination means of the present invention, and the processing of S454 of FIG. 8, S516 and S530 of FIG. 11 corresponds to the recovery means of the present invention. 11 corresponds to the function executed by the nonvolatile memory determining means of the present invention, and the processing of S520 and S534 of FIG. 11 is the write request means of the present invention. Corresponds to the function to be executed.

[他の実施形態]
上記実施形態では、ハイブリッドECU50の制御学習値を、本発明の電子制御装置(ECU)が書き換え可能な不揮発性記憶手段(EEPROM)に記憶する車両情報とした。制御学習値以外にも、自ECUまたは自ECUが制御する制御対象の故障診断情報、あるいは車両識別情報を復旧対象の車両情報としてECUがEEPROMに記憶してもよい。
[Other Embodiments]
In the above embodiment, the control learning value of the hybrid ECU 50 is the vehicle information stored in the nonvolatile storage means (EEPROM) that can be rewritten by the electronic control unit (ECU) of the present invention. In addition to the control learning value, the ECU may store the failure diagnostic information of the control object controlled by the own ECU or the own ECU or the vehicle identification information as recovery target vehicle information in the EEPROM.

また、上記実施形態では、エンジンECU100がハイブリッドECU50の制御学習値を記憶し、ハイブリッドECU50が交換された場合に、エンジンECU100が記憶している交換前のハイブリッドECU50の制御学習値を交換により装着されたハイブリッドECU50に書き込ませた。   Further, in the above embodiment, when the engine ECU 100 stores the control learning value of the hybrid ECU 50 and the hybrid ECU 50 is replaced, the control learning value of the hybrid ECU 50 before replacement stored in the engine ECU 100 is attached by replacement. The hybrid ECU 50 was written.

これに対し、ハイブリッドECU50がエンジンECU100の車両情報を記憶し、エンジンECU100が交換された場合に、ハイブリッドECU50が記憶している交換前のエンジンECU100の車両情報を交換により装着されたエンジンECU100に書き込ませてもよい。この場合、ハイブリッドECU50のEEPROM80が第2不揮発性記憶手段に相当し、エンジンECU100のEEPROM140が第1不揮発性記憶手段に相当する。   On the other hand, when the hybrid ECU 50 stores the vehicle information of the engine ECU 100 and the engine ECU 100 is replaced, the vehicle information of the engine ECU 100 before replacement stored in the hybrid ECU 50 is written in the engine ECU 100 mounted by replacement. It may be allowed. In this case, the EEPROM 80 of the hybrid ECU 50 corresponds to the second non-volatile storage means, and the EEPROM 140 of the engine ECU 100 corresponds to the first non-volatile storage means.

また、ハイブリッドECU50とエンジンECU100とが互いに相手の車両情報を記憶し、一方のECUが交換された場合に、他方のECUが記憶している交換前の一方のECUの車両情報を交換により装着された一方のECUに書き込ませてもよい。この場合、エンジンECU100は、第2不揮発性記憶手段に加え、エンジンECU100の車両情報を記憶する書き換え可能な第3不揮発性記憶手段を備える必要がある。   Further, when the hybrid ECU 50 and the engine ECU 100 store vehicle information of each other and one of the ECUs is exchanged, the vehicle information of the one ECU stored before the exchange stored in the other ECU is mounted by exchange. You may write in one ECU. In this case, engine ECU 100 needs to include rewritable third nonvolatile storage means for storing vehicle information of engine ECU 100 in addition to the second nonvolatile storage means.

一方ハイブリッドECU50は、第1不揮発性記憶手段に加え、エンジンECU100の車両情報を記憶する書き換え可能な第4不揮発性記憶手段、ならびに、上記実施形態のエンジンECU100と同様に、不揮発性記憶判定手段および書き込み要求手段を備える必要がある。   On the other hand, the hybrid ECU 50 includes, in addition to the first non-volatile storage unit, a rewritable fourth non-volatile storage unit that stores vehicle information of the engine ECU 100, a non-volatile storage determination unit, and the engine ECU 100 of the above embodiment. It is necessary to provide a write request means.

尚、エンジンECU100の第2不揮発性記憶手段であるEEPROM140が第3不揮発性記憶手段を兼ねてもよいし、ハイブリッドECU50の第1不揮発性記憶手段であるEEPROM80が第4不揮発性記憶手段を兼ねてもよい。   The EEPROM 140, which is the second non-volatile storage means of the engine ECU 100, may also serve as the third non-volatile storage means, and the EEPROM 80, which is the first non-volatile storage means of the hybrid ECU 50, may also serve as the fourth non-volatile storage means. Also good.

また、2個のECUだけでなく、3個以上のECUの間で、一部のECUが他のECUの制御学習値等の車両に関する車両情報のコピーを記憶しておき、他のECUが交換された場合に、一部のECUが記憶している他のECUの車両情報を他のECUに書き込ませてもよい。   In addition to two ECUs, some ECUs store a copy of vehicle information related to vehicles such as control learning values of other ECUs, and other ECUs exchange them. In such a case, vehicle information of other ECUs stored in some ECUs may be written in other ECUs.

上記実施形態では、一方のECUが交換された場合に、他方のECUが記憶している交換前の一方のECUの車両情報を交換により装着された一方のECUに書き込ませた。
これに対し、自ECUが交換されたと判定したECUは、自ECUの車両情報を記憶していると予め設定されている他のECUに、記憶している車両情報を送信するように要求してもよい。
In the above embodiment, when one ECU is exchanged, the vehicle information of one ECU before exchange stored in the other ECU is written in one ECU mounted by exchange.
On the other hand, the ECU that has determined that the own ECU has been exchanged requests other ECUs that are preset to store the vehicle information of the own ECU to transmit the stored vehicle information. Also good.

上記実施形態では、ハイブリッドECU50が交換されたことを交換により装着されたハイブリッドECU50から通知されたエンジンECU100が、EEPROM140に記憶している交換前のハイブリッドECU50の制御学習値を交換後のハイブリッドECU50に送信することにより、交換後のハイブリッドECU50が、交換前のハイブリッドECU50の制御学習値を自動的に取得して自ECUのEEPROM80に書き込んだ。   In the above-described embodiment, the engine ECU 100 notified from the hybrid ECU 50 that is mounted by replacement that the hybrid ECU 50 has been replaced, transmits the control learning value of the hybrid ECU 50 before replacement stored in the EEPROM 140 to the hybrid ECU 50 after replacement. By transmitting, the hybrid ECU 50 after replacement automatically acquires the control learning value of the hybrid ECU 50 before replacement and writes it in the EEPROM 80 of its own ECU.

これに対し、インジケータの点灯、またはスピーカからの音声により、交換により装着されたハイブリッドECU50が交換を報知し、報知を受けたオペレータが書き込みツールを用いて、交換前のハイブリッドECU50が記憶していた制御学習値、またはハイブリッドECU50の制御学習値の基準値をEEPROM80に書き込んでもよい。   On the other hand, the hybrid ECU 50 mounted by replacement notifies the replacement by the lighting of the indicator or the sound from the speaker, and the operator who received the notification stored the hybrid ECU 50 before the replacement using the writing tool. The control learning value or the reference value of the control learning value of the hybrid ECU 50 may be written in the EEPROM 80.

また、車両情報を記憶する書き換え可能な不揮発性記憶手段はEEPROMに限るものではなく、書き換え可能で不揮発性であればどのような記憶手段でもよい。
このように、本発明は、上記実施形態に限定されるものではなく、その要旨を逸脱しない範囲で種々の実施形態に適用可能である。
The rewritable nonvolatile storage means for storing the vehicle information is not limited to the EEPROM, and any storage means may be used as long as it is rewritable and nonvolatile.
As described above, the present invention is not limited to the above-described embodiment, and can be applied to various embodiments without departing from the gist thereof.

2:バッテリ、10:車両制御システム、50:ハイブリッドECU(電子制御装置、揮発性記憶判定手段、脱着判定手段、書き込み手段、復旧手段)、68:SRAM(揮発性記憶手段)、80:EEPROM(第1不揮発性記憶手段)、100:エンジンECU(電子制御装置、揮発性記憶判定手段、不揮発性記憶判定手段、脱着判定手段、書き込み手段、書き込み要求手段、復旧手段)、128:SRAM(揮発性記憶手段)、140:EEPROM(第2不揮発性記憶手段) 2: battery, 10: vehicle control system, 50: hybrid ECU (electronic control unit, volatile memory determination means, desorption determination means, writing means, recovery means), 68: SRAM (volatile storage means), 80: EEPROM ( First nonvolatile memory means), 100: engine ECU (electronic control unit, volatile memory judgment means, nonvolatile memory judgment means, detachment judgment means, writing means, write request means, recovery means), 128: SRAM (volatile) Storage means), 140: EEPROM (second non-volatile storage means)

Claims (8)

車両に搭載される電子制御装置において、
車載のバッテリから電力を常時供給される揮発性記憶手段と、
前記揮発性記憶手段の記憶状態を判定する揮発性記憶判定手段と、
前記揮発性記憶手段の記憶状態がデータが記憶されていない初期状態であると前記揮発性記憶判定手段が判定すると、自装置が脱着された可能性があると判定する脱着判定手段と、
を備えることを特徴とする電子制御装置。
In an electronic control device mounted on a vehicle,
Volatile storage means that is always supplied with power from an in-vehicle battery,
Volatile memory determining means for determining the storage state of the volatile storage means;
When the volatile memory determining means determines that the storage state of the volatile storage means is an initial state in which no data is stored, a detachment determining means that determines that there is a possibility that the device has been detached;
An electronic control device comprising:
前記車両の運転が停止されるときに前記揮発性記憶手段に所定データを書き込む書き込み手段を備え、
前記揮発性記憶判定手段は、前記車両の運転が開始されるときに前記揮発性記憶手段に前記所定データが記憶されていない場合、前記揮発性記憶手段は前記初期状態であると判定する、
ことを特徴とする請求項1に記載の電子制御装置。
Writing means for writing predetermined data to the volatile storage means when the operation of the vehicle is stopped;
The volatile memory determining means determines that the volatile memory means is in the initial state when the predetermined data is not stored in the volatile memory means when the driving of the vehicle is started.
The electronic control device according to claim 1.
互いに通信可能に接続された請求項1または2に記載の複数の前記電子制御装置を備える車両制御システムにおいて、
複数の前記電子制御装置のうち、第1電子制御装置は、前記車両に関する車両情報を記憶する書き換え可能な第1不揮発性記憶手段を備え、
複数の前記電子制御装置のうち第2電子制御装置は、
前記第1電子制御装置から取得する前記第1不揮発性記憶手段に記憶されている前記車両情報を記憶する書き換え可能な第2不揮発性記憶手段と、
自装置の前記第2不揮発性記憶手段に記憶されている前記車両情報の記憶状態と、前記第1電子制御装置から取得する前記第1不揮発性記憶手段に記憶されている前記車両情報の記憶状態とに基づいて、前記第1不揮発性記憶手段および前記第2不揮発性記憶手段の記憶状態を判定する不揮発性記憶判定手段と、
を備え、
前記第2電子制御装置の前記揮発性記憶判定手段は、自装置の前記揮発性記憶手段に対する記憶状態の判定結果と、前記第1電子制御装置から取得する前記第1電子制御装置の前記揮発性記憶判定手段の判定結果とに基づいて、前記第1電子制御装置および前記第2電子制御装置の前記揮発性記憶手段の記憶状態を判定し、
前記第2電子制御装置の前記脱着判定手段は、前記第1電子制御装置または前記第2電子制御装置の一方の前記揮発性記憶手段が前記初期状態であると自装置の前記揮発性記憶判定手段が判定し、前記第1不揮発性記憶手段に記憶されている前記車両情報と前記第2不揮発性記憶手段に記憶されている前記車両情報とが異なると前記不揮発性記憶判定手段が判定すると、前記揮発性記憶手段が前記初期状態である方が交換された前記電子制御装置であると判定する、
ことを特徴とする車両制御システム。
In the vehicle control system comprising a plurality of the electronic control devices according to claim 1 or 2, which are communicably connected to each other.
Of the plurality of electronic control devices, the first electronic control device includes rewritable first nonvolatile storage means for storing vehicle information relating to the vehicle,
The second electronic control device among the plurality of electronic control devices is:
Rewritable second nonvolatile storage means for storing the vehicle information stored in the first nonvolatile storage means obtained from the first electronic control unit;
The storage state of the vehicle information stored in the second nonvolatile storage means of the own device and the storage state of the vehicle information stored in the first nonvolatile storage means acquired from the first electronic control device And non-volatile storage determination means for determining storage states of the first nonvolatile storage means and the second nonvolatile storage means,
With
The volatile memory determination unit of the second electronic control device is configured to determine a storage state determination result of the device relative to the volatile storage unit and the volatile property of the first electronic control device acquired from the first electronic control device. Based on the determination result of the storage determination means, the storage state of the volatile storage means of the first electronic control device and the second electronic control device is determined,
The desorption determination unit of the second electronic control unit is configured such that the volatile storage determination unit of the device itself is in the initial state when one of the volatile storage units of the first electronic control unit or the second electronic control unit is in the initial state. And when the non-volatile memory determining means determines that the vehicle information stored in the first non-volatile storage means is different from the vehicle information stored in the second non-volatile storage means, Determining that the volatile storage means in the initial state is the replaced electronic control unit;
A vehicle control system.
前記第2電子制御装置の前記脱着判定手段は、前記第1電子制御装置および前記第2電子制御装置の少なくともいずれか一方の前記揮発性記憶手段が前記初期状態であると自装置の前記揮発性記憶判定手段が判定し、前記第1不揮発性記憶手段に記憶されている前記車両情報と前記第2不揮発性記憶手段に記憶されている前記車両情報とが異なり、前記第1不揮発性記憶手段または前記第2不揮発性記憶手段の一方に記憶されている前記車両情報が初期値であると前記不揮発性記憶判定手段が判定すると、前記車両情報が初期値である方の前記電子制御装置が交換されたと判定する、ことを特徴とする請求項3に記載の車両制御システム。   The attachment / detachment determination means of the second electronic control device is configured such that at least one of the volatile storage means of the first electronic control device and the second electronic control device is in the initial state. The vehicle information stored in the first non-volatile storage means is different from the vehicle information stored in the first non-volatile storage means determined by the storage determining means, and the first non-volatile storage means or When the non-volatile memory determination means determines that the vehicle information stored in one of the second non-volatile storage means is an initial value, the electronic control device whose vehicle information is the initial value is replaced. The vehicle control system according to claim 3, wherein the vehicle control system is determined to have met. 前記第2電子制御装置は、
前記第1電子制御装置が交換されたと自装置の前記脱着判定手段が判定すると、前記第2不揮発性記憶手段に記憶されている前記車両情報を前記第1電子制御装置に送信し、送信した前記車両情報を前記第1不揮発性記憶手段に書き込むことを前記第1電子制御装置に要求する書き込み要求手段と、
前記第2電子制御装置が交換されたと自装置の前記脱着判定手段が判定すると、前記第1電子制御装置から取得する前記第1不揮発性記憶手段に記憶されている前記車両情報を前記第2不揮発性記憶手段に書き込む復旧手段と、
を備え、
前記第1電子制御装置は、前記第2電子制御装置から書き込み要求と前記車両情報とを受信すると、受信した前記車両情報を前記第1不揮発性記憶手段に書き込む復旧手段を備える、
ことを特徴とする請求項3または4に記載の車両制御システム。
The second electronic control unit is
When the desorption determination unit of the own device determines that the first electronic control unit has been replaced, the vehicle information stored in the second non-volatile storage unit is transmitted to the first electronic control unit and transmitted. Write request means for requesting the first electronic control unit to write vehicle information to the first nonvolatile storage means;
When the desorption determination unit of the own device determines that the second electronic control unit has been replaced, the vehicle information stored in the first non-volatile storage unit acquired from the first electronic control unit is stored in the second non-volatile unit. Recovery means for writing to the sex storage means;
With
The first electronic control unit includes recovery means for writing the received vehicle information to the first nonvolatile storage unit when receiving a write request and the vehicle information from the second electronic control unit,
The vehicle control system according to claim 3 or 4, wherein
前記第2電子制御装置は、前記車両に関する車両情報を記憶する書き換え可能な第3不揮発性記憶手段を備え、
前記第1電子制御装置は、
前記第2電子制御装置から取得する前記第3不揮発性記憶手段に記憶されている前記車両情報を記憶する書き換え可能な第4不揮発性記憶手段と、
自装置の前記第4不揮発性記憶手段に記憶されている前記車両情報の記憶状態と、前記第2電子制御装置から取得する前記第3不揮発性記憶手段に記憶されている前記車両情報の記憶状態とに基づいて、前記第3不揮発性記憶手段および前記第4不揮発性記憶手段の記憶状態を判定する不揮発性記憶判定手段と、
を備え、
前記第1電子制御装置の前記揮発性記憶判定手段は、自装置の前記揮発性記憶手段に対する記憶状態の判定結果と、前記第2電子制御装置から取得する前記第2電子制御装置の前記揮発性記憶判定手段の判定結果とに基づいて、前記第1電子制御装置および前記第2電子制御装置の前記揮発性記憶手段の記憶状態を判定し、
前記第1電子制御装置の前記脱着判定手段は、前記第1電子制御装置または前記第2電子制御装置の一方の前記揮発性記憶手段が前記初期状態であると自装置の前記揮発性記憶判定手段が判定し、前記第3不揮発性記憶手段に記憶されている前記車両情報と前記第4不揮発性記憶手段に記憶されている前記車両情報とが異なると自装置の前記不揮発性記憶判定手段が判定すると、前記揮発性記憶手段が前記初期状態である方が交換された前記電子制御装置であると判定する、
ことを特徴とする請求項3から5のいずれか一項に記載の車両制御システム。
The second electronic control unit includes rewritable third nonvolatile storage means for storing vehicle information related to the vehicle,
The first electronic control unit includes:
Rewritable fourth non-volatile storage means for storing the vehicle information stored in the third non-volatile storage means obtained from the second electronic control unit;
The storage state of the vehicle information stored in the fourth nonvolatile storage means of the own device and the storage state of the vehicle information stored in the third nonvolatile storage means acquired from the second electronic control unit And non-volatile memory determination means for determining the storage states of the third nonvolatile memory means and the fourth nonvolatile memory means,
With
The volatile memory determination unit of the first electronic control unit is configured to determine a determination result of a storage state of the own device with respect to the volatile storage unit, and the volatile property of the second electronic control unit acquired from the second electronic control unit. Based on the determination result of the storage determination means, the storage state of the volatile storage means of the first electronic control device and the second electronic control device is determined,
The desorption determination unit of the first electronic control unit is configured such that the volatile storage determination unit of the device itself is in a state where one of the volatile storage units of the first electronic control unit or the second electronic control unit is in the initial state. If the vehicle information stored in the third non-volatile storage means is different from the vehicle information stored in the fourth non-volatile storage means, the non-volatile storage determination means of the device itself determines Then, the volatile storage means determines that the one in the initial state is the replaced electronic control device,
The vehicle control system according to any one of claims 3 to 5, wherein
前記第1電子制御装置の前記脱着判定手段は、前記第1電子制御装置および前記第2電子制御装置の少なくともいずれか一方の前記揮発性記憶手段が前記初期状態であると自装置の前記揮発性記憶判定手段が判定し、前記第3不揮発性記憶手段に記憶されている前記車両情報と前記第4不揮発性記憶手段に記憶されている前記車両情報とが異なり、前記第3不揮発性記憶手段または前記第4不揮発性記憶手段の一方に記憶されている前記車両情報が初期値であると自装置の前記不揮発性記憶判定手段が判定すると、前記車両情報が初期値である方の前記電子制御装置が交換されたと判定する、ことを特徴とする請求項6に記載の車両制御システム。   The desorption determination unit of the first electronic control unit is configured such that at least one of the first electronic control unit and the second electronic control unit is in the initial state when the volatile storage unit is in the initial state. The vehicle information stored in the third non-volatile storage means is different from the vehicle information stored in the fourth non-volatile storage means determined by the storage determining means, and the third non-volatile storage means or When the non-volatile memory determination unit of the own device determines that the vehicle information stored in one of the fourth non-volatile storage units is an initial value, the electronic control device of which the vehicle information is an initial value The vehicle control system according to claim 6, wherein it is determined that has been exchanged. 前記第1電子制御装置は、
前記第2電子制御装置が交換されたと自装置の前記脱着判定手段が判定すると、前記第4不揮発性記憶手段に記憶されている前記車両情報を前記第2電子制御装置に送信し、送信した前記車両情報を前記第3不揮発性記憶手段に書き込むことを前記第2電子制御装置に要求する書き込み要求手段と、
前記第1電子制御装置が交換されたと自装置の前記脱着判定手段が判定すると、前記第2電子制御装置から取得する前記第3不揮発性記憶手段に記憶されている前記車両情報を前記第4不揮発性記憶手段に書き込む復旧手段と、
を備え、
前記第2電子制御装置は、前記第1電子制御装置から書き込み要求と前記車両情報とを受信すると、受信した前記車両情報を前記第3不揮発性記憶手段に書き込む復旧手段を備える、
ことを特徴とする請求項6または7に記載の車両制御システム。
The first electronic control unit includes:
When the desorption determination unit of the own device determines that the second electronic control unit has been replaced, the vehicle information stored in the fourth non-volatile storage unit is transmitted to the second electronic control unit and transmitted. Write request means for requesting the second electronic control unit to write vehicle information to the third nonvolatile storage means;
When the desorption determination unit of the own device determines that the first electronic control unit has been replaced, the vehicle information stored in the third non-volatile storage unit acquired from the second electronic control unit is stored in the fourth non-volatile unit. Recovery means for writing to the sex storage means;
With
When the second electronic control unit receives a write request and the vehicle information from the first electronic control unit, the second electronic control unit includes a recovery unit that writes the received vehicle information into the third nonvolatile storage unit.
8. The vehicle control system according to claim 6 or 7, wherein:
JP2011063121A 2011-03-22 2011-03-22 Vehicle control system using electronic control unit Active JP5617714B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011063121A JP5617714B2 (en) 2011-03-22 2011-03-22 Vehicle control system using electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011063121A JP5617714B2 (en) 2011-03-22 2011-03-22 Vehicle control system using electronic control unit

Publications (2)

Publication Number Publication Date
JP2012197046A true JP2012197046A (en) 2012-10-18
JP5617714B2 JP5617714B2 (en) 2014-11-05

Family

ID=47179716

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011063121A Active JP5617714B2 (en) 2011-03-22 2011-03-22 Vehicle control system using electronic control unit

Country Status (1)

Country Link
JP (1) JP5617714B2 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105980193A (en) * 2013-12-11 2016-09-28 丰田自动车株式会社 Controller for vehicle
JP6072870B1 (en) * 2015-09-11 2017-02-01 ニチユ三菱フォークリフト株式会社 Setting device, vehicle, setting method and setting program
KR20190088582A (en) * 2018-01-18 2019-07-29 주식회사 베로센 Apparatus and metod for controlling electrical energy in two or three wheeled vehicle
US20210174614A1 (en) * 2019-12-06 2021-06-10 Toyota Jidosha Kabushiki Kaisha Vehicle control device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5394327A (en) * 1992-10-27 1995-02-28 General Motors Corp. Transferable electronic control unit for adaptively controlling the operation of a motor vehicle
JP2000118355A (en) * 1998-10-14 2000-04-25 Toyota Motor Corp Anti-theft device for vehicle

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5394327A (en) * 1992-10-27 1995-02-28 General Motors Corp. Transferable electronic control unit for adaptively controlling the operation of a motor vehicle
JP2000118355A (en) * 1998-10-14 2000-04-25 Toyota Motor Corp Anti-theft device for vehicle

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105980193A (en) * 2013-12-11 2016-09-28 丰田自动车株式会社 Controller for vehicle
CN105980193B (en) * 2013-12-11 2018-01-09 丰田自动车株式会社 Controller for vehicle
JP6072870B1 (en) * 2015-09-11 2017-02-01 ニチユ三菱フォークリフト株式会社 Setting device, vehicle, setting method and setting program
KR20190088582A (en) * 2018-01-18 2019-07-29 주식회사 베로센 Apparatus and metod for controlling electrical energy in two or three wheeled vehicle
KR102020566B1 (en) * 2018-01-18 2019-11-05 주식회사 블루윙모터스 Apparatus and metod for controlling electrical energy in two or three wheeled vehicle
US20210174614A1 (en) * 2019-12-06 2021-06-10 Toyota Jidosha Kabushiki Kaisha Vehicle control device

Also Published As

Publication number Publication date
JP5617714B2 (en) 2014-11-05

Similar Documents

Publication Publication Date Title
WO2018070156A1 (en) Software update device, software update method, and software update system
JP5617714B2 (en) Vehicle control system using electronic control unit
JP4345860B2 (en) Vehicle memory management device
JP4442617B2 (en) Electronic control unit
US20200162273A1 (en) Communication system for vehicle and method for controlling the same
JPWO2018078456A1 (en) Control device
JP5360123B2 (en) In-vehicle electronic control device, diagnostic tool and diagnostic system
JP2018037193A (en) Temperature raising system of battery
JP2006340560A (en) Battery state supervisory system, battery state supervising method, and battery supervising device
JP2017051036A (en) Vehicular power supply device and vehicle control device
JP2012241645A (en) Electronic control apparatus for vehicle
JP2007152983A (en) Power control device for vehicle
JP6267629B2 (en) Power storage management system for construction machinery
JP4151534B2 (en) Vehicle communication device and data communication system
JP2009163552A (en) Vehicle power supply management system, vehicle power supply management apparatus and charge control method
US20190054871A1 (en) Stop control circuit
US20110098904A1 (en) Data write device and data write method
JP6003728B2 (en) Diagnostic information collection system
CN111198775A (en) Method and system for correcting abnormal EEPROM storage state and motor vehicle
JP4538852B2 (en) Vehicle control device
JP5781734B2 (en) Idling stop device and battery deterioration notification method
JP5407757B2 (en) Electronic device, power management device, and control method
KR102281650B1 (en) Battery sensor reset system for vehicle and method for controlling the same
JP2007162586A (en) On-vehicle control device
JP4353126B2 (en) Vehicle state determination device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130730

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20140515

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20140520

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20140616

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20140901

R151 Written notification of patent or utility model registration

Ref document number: 5617714

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250