JP5625036B2 - Data writing method and data writing apparatus - Google Patents
Data writing method and data writing apparatus Download PDFInfo
- Publication number
- JP5625036B2 JP5625036B2 JP2012280953A JP2012280953A JP5625036B2 JP 5625036 B2 JP5625036 B2 JP 5625036B2 JP 2012280953 A JP2012280953 A JP 2012280953A JP 2012280953 A JP2012280953 A JP 2012280953A JP 5625036 B2 JP5625036 B2 JP 5625036B2
- Authority
- JP
- Japan
- Prior art keywords
- data
- writing
- control unit
- type
- write
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Images
Classifications
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60R—VEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
- B60R16/00—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
- B60R16/02—Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
Landscapes
- Stored Programmes (AREA)
- Engineering & Computer Science (AREA)
- Mechanical Engineering (AREA)
Description
本発明は、制御ユニットにデータを書き込むためのデータ書込み方法及びデータ書込み装置に関する。 The present invention relates to a data writing method and a data writing apparatus for writing data to a control unit.
従来、この種のデータ書込み装置として、例えば特許文献1に開示されたものが知られている。このデータ書込み装置は、車両用の制御装置の制御プログラムの書換えを行う際、識別コード取得プログラムを制御装置に送信する。制御装置は、送信され、入力された識別コード取得プログラムに従い、自身のマイクロコンピュータを識別するための識別コードを生成し、取得する。
Conventionally, as this type of data writing device, for example, one disclosed in
この場合、識別コードの生成は、制御装置のCPUに用意されているマイクロコンピュータの種別を表すポートなどを用いて行われる。また、取得した識別コードは、データ書込み装置に入力され、データ書込み装置は、入力された識別コードに基づいて、制御装置に書換え用のプログラムを送信する。制御装置では、制御プログラムが、送信された書換え用のプログラムに書き換えられる。以上により、この従来のデータ書込み装置では、識別コード取得プログラムを制御装置に記憶させずに、そのマイクロコンピュータの種別に応じてプログラムの書換えを適切に行うようにしている。 In this case, the identification code is generated using a port representing the type of microcomputer provided in the CPU of the control device. The acquired identification code is input to the data writing device, and the data writing device transmits a rewriting program to the control device based on the input identification code. In the control device, the control program is rewritten to the transmitted rewriting program. As described above, in this conventional data writing device, the identification code acquisition program is not stored in the control device, but the program is appropriately rewritten according to the type of the microcomputer.
しかし、上述したように、従来のデータ書込み装置では、制御装置に用意されているポートなどに応じて識別コードを取得するとともに、取得された識別コードに基づいてプログラムが書き換えられる。このため、例えば車両の製造時で制御装置へのデータの書込み動作が一度も行われていないことにより、あるいは、制御装置に書き込まれていたデータが何らかの理由で消失したことなどにより、制御装置にデータが書き込まれていない制御装置の初期状態である場合には、マイクロコンピュータの種別に応じてプログラムを適切に書き換えることができないおそれがある。 However, as described above, in the conventional data writing device, the identification code is acquired according to the port prepared in the control device, and the program is rewritten based on the acquired identification code. For this reason, for example, when data is written to the control device at the time of manufacture of the vehicle, or because the data written in the control device is lost for some reason, In the initial state of the control device in which no data is written, there is a possibility that the program cannot be appropriately rewritten according to the type of the microcomputer.
また、近年、制御装置として、車両用のエンジンを制御するためのエンジン用の制御ユニットや、変速機の変速比を制御するための変速機用の制御ユニットなどの複数の制御ユニットを備えたものが知られている。このように複数の制御ユニットを備える制御装置では特に、プログラムの書換えにあたって人為的なミスが発生しやすく、上述した不具合、すなわちマイクロコンピュータの種別に応じてプログラムを適切に書き換えられないという不具合が、より顕著になってしまう。 In recent years, the control device has a plurality of control units such as an engine control unit for controlling a vehicle engine and a transmission control unit for controlling a transmission gear ratio. It has been known. In particular, in a control device including a plurality of control units, human error is likely to occur when rewriting a program, and the above-described problem, that is, a problem that a program cannot be appropriately rewritten according to the type of microcomputer, It becomes more prominent.
本発明は、以上のような課題を解決するためになされたものであり、複数の制御ユニットの一部が初期状態にある場合でも、当該一部の制御ユニットにおける書込みデータの種別に応じてデータを適切に書き込むことができるデータ書込み方法及びデータ書込み装置を提供することを目的とする。 The present invention has been made to solve the above-described problems. Even when some of the plurality of control units are in the initial state, the data according to the type of write data in the some control units. An object of the present invention is to provide a data writing method and a data writing apparatus capable of appropriately writing data.
上記の目的を達成するために、請求項1に係る発明は、第1制御ユニット(実施形態における(以下、本項において同じ)FIECU21)及び第2制御ユニット(CVTECU31、MOTECU61)に通信可能に接続される書込みユニット2、52を用いて第1及び第2制御ユニットにデータを書き込むためのデータ書込み方法であって、第2制御ユニットは、第1制御ユニットに通信可能に接続されており、第2制御ユニットにおける書込みデータの種別を表す第2種別データ(CVTECU種別データDCC、MOTECU種別データDCM)を第1制御ユニットに記憶し、第1制御ユニットは、第2制御ユニットにデータを書き込むに際し、記憶された第2種別データに基づいて、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データ(変速書込み用種別データWDCC、モータ書込み用種別データWDCM)を取得する(図2のステップ9、図7のステップ63)とともに、書込みユニット2、52に送信し(図2のステップ10、図7のステップ64)、書込みユニット2、52は、送信された第2書込み用種別データに応じて、第2制御ユニットに書き込むべきデータである第2書込み用データ(変速書込み用プログラムPRUC、モータ書込み用プログラムPRUM)を第2制御ユニットに送信し(図3のステップ27、29、図8のステップ72、74)、送信された第2書込み用データを第2制御ユニットに書き込み(図4のステップ41、図9のステップ91)、書込みユニットは、第2書込み用データに加え、第2書込み用データに応じた最新の第2種別データを第2制御ユニットに送信し(図3のステップ28、30、図8のステップ73、75)、第2制御ユニットは、送信された最新の第2種別データを第1制御ユニットに送信し(図4のステップ42、43、図9のステップ92、93)、第1制御ユニットは、第2書込み用種別データと送信された最新の第2種別データとの比較結果に基づいて、第2制御ユニットへのデータの書込みが適正に行われたか否かを判定する(図5のステップ51、図12のステップ121)ことを特徴とする。
In order to achieve the above object, the invention according to
この構成によれば、書込みユニットを用いて、第1及び第2制御ユニットへのデータの書込みが行われる。具体的には、第2制御ユニットにおける書込みデータの種別を表す第2種別データが、第1制御ユニットに記憶されており、第1制御ユニットは、第2制御ユニットにデータを書き込むに際し、記憶された第2種別データに基づいて、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データを取得する。 According to this configuration, data is written to the first and second control units using the writing unit. Specifically, second type data representing the type of write data in the second control unit is stored in the first control unit, and the first control unit is stored when writing data into the second control unit. Based on the second type data, second type data for writing indicating the type of data to be written to the second control unit is acquired.
このように、第2書込み用種別データは、第2制御ユニットにおける書込みデータの種別(例えばバージョン番号や、仕向け先など)を表す第2種別データに基づいて取得されるため、第2制御ユニットに書き込むべきデータの種別を良好に指示する。また、本発明によれば、この第2書込み用種別データが、第1制御ユニットに記憶された第2種別データに基づいて第1制御ユニットにより取得され、書込みユニットに送信されるとともに、送信された第2書込み用種別データに応じて、第2制御ユニットに書き込むべきデータである第2書込み用データが取得され、第2制御ユニットに書き込まれる。 Thus, since the second type data for writing is acquired based on the second type data indicating the type of write data (for example, version number, destination, etc.) in the second control unit, the second control unit Good indication of the type of data to be written. Further, according to the present invention, the second writing type data is acquired by the first control unit based on the second type data stored in the first control unit, and is transmitted to the writing unit and transmitted. In accordance with the second write type data, second write data that is data to be written to the second control unit is acquired and written to the second control unit.
したがって、装置の製造時で第2制御ユニットへのデータの書込み動作が一度も行われていないことにより、あるいは、第2制御ユニットに書き込まれていたデータが何らかの理由で消失したことなどにより、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態である場合でも、第2制御ユニットへのデータの書込みを、第2制御ユニットにおける書込みデータの種別に応じて適切に行うことができる。 Therefore, the data write operation to the second control unit has never been performed at the time of manufacture of the device, or the data written to the second control unit has been lost for some reason. Even in the initial state of the second control unit in which no data is written to the two control units, the data can be appropriately written to the second control unit according to the type of write data in the second control unit. it can.
また、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データが、オペレータではなく、第1制御ユニットによって取得されるとともに、それに応じてデータの書込みが行われるので、データの書込みにおける人為的なミスを防止することができる。さらに、第2制御ユニットにおいて、第2種別データを記憶する必要がないので、その記憶容量を低減することができる。
さらに、前述した構成によれば、第2書込み用データに応じた最新の第2種別データが、書込みユニットによって、第2制御ユニットに送信されるとともに、送信された最新の第2種別データが、第2制御ユニットによって、第1制御ユニットに送信(転送)される。また、第1制御ユニットにより、第2書込み用種別データと送信された最新の第2種別データとの比較結果に基づいて、第2制御ユニットへのデータの書込みが適正に行われたか否かが判定される。
前述したように第2書込み用種別データは、第2制御ユニットに書き込むべきデータの種別を表すので、第2制御ユニットへのデータの書込みが適正に行われた場合には、第2書込み用種別データと、第2制御ユニットに書き込まれた第2書込み用データに応じた最新の第2種別データとは、互いに一致する。したがって、上述した判定により、第2制御ユニットへのデータの書込みが適正に行われたか否かを適切に判定でき、それにより、その書込みミスによる第2制御ユニットの不具合を防止することができる。
In addition, the second write type data indicating the type of data to be written to the second control unit is acquired by the first control unit, not the operator, and the data is written accordingly. Can prevent human error. Furthermore, since it is not necessary to store the second type data in the second control unit, the storage capacity can be reduced.
Further, according to the configuration described above, the latest second type data corresponding to the second writing data is transmitted to the second control unit by the writing unit, and the latest second type data transmitted is It is transmitted (transferred) to the first control unit by the second control unit. Whether or not the first control unit has properly written the data to the second control unit based on the comparison result between the second writing type data and the latest transmitted second type data. Determined.
As described above, the second writing type data indicates the type of data to be written to the second control unit. Therefore, when the data is properly written to the second control unit, the second writing type is used. The data and the latest second type data corresponding to the second write data written in the second control unit match each other. Therefore, it is possible to appropriately determine whether or not the data has been properly written to the second control unit by the above-described determination, thereby preventing a failure of the second control unit due to the writing error.
請求項2に係る発明は、請求項1に記載のデータ書込み方法において、第2制御ユニットへの第2書込み用データの書込みを、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態において行うことを特徴とする。 According to a second aspect of the present invention, in the data writing method according to the first aspect, the writing of the second write data to the second control unit is performed by the second control unit in which no data is written to the second control unit. It is performed in the initial state.
この構成によれば、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態において、請求項1に係る発明の説明で述べた第2制御ユニットへの第2書込み用データの書込みが行われる。したがって、請求項1に係る発明による効果を有効に得ることができる。
According to this configuration, in the initial state of the second control unit in which no data is written to the second control unit, the second write data is written to the second control unit described in the description of the invention according to
請求項3に係る発明は、請求項1又は2に記載のデータ書込み方法において、書込みユニット52には、第2制御ユニットを介して第3制御ユニット(BATECU71)が通信可能に接続されており、第3制御ユニットに書き込むべきデータである第3書込み用データ(バッテリ書込み用プログラムPRUB)を、書込みユニット52から第2制御ユニットを介して第3制御ユニットに送信し(図8のステップ79、図10のステップ101)、送信された第3書込み用データを、第3制御ユニットに書き込む(図11のステップ111)ことを特徴とする。
According to a third aspect of the present invention, in the data writing method according to the first or second aspect, the third control unit (BATECU 71) is communicably connected to the writing unit 52 via the second control unit. The third write data (battery write program PRUB), which is data to be written to the third control unit, is transmitted from the write unit 52 to the third control unit via the second control unit (
この構成によれば、第3制御ユニットが、第2制御ユニットを介して書込みユニットに接続されている。また、第3制御ユニットに書き込むべきデータである第3書き込み用データが、書込みユニットから第2制御ユニットを介して第3制御ユニットに送信されるとともに、送信された第3書込み用データが、第3制御ユニットに書き込まれる。このように、書込みユニットに既に接続されている第2制御ユニットを介して、第3制御ユニットへの第3書込み用データの送信を行うことができるので、第3制御ユニットを書込みユニットに接続するための回路を新たに構成する必要がない。したがって、その分、装置の小型化及び製造コストの削減を図ることができる。 According to this configuration, the third control unit is connected to the writing unit via the second control unit. Also, the third write data that is data to be written to the third control unit is transmitted from the write unit to the third control unit via the second control unit, and the transmitted third write data is 3 is written to the control unit. In this way, since the third write data can be transmitted to the third control unit via the second control unit that is already connected to the write unit, the third control unit is connected to the write unit. Therefore, it is not necessary to construct a new circuit. Therefore, it is possible to reduce the size of the apparatus and the manufacturing cost accordingly.
請求項4に係る発明は、請求項3に記載のデータ書込み方法において、第3制御ユニットにおける書込みデータの種別を表す第3種別データ(BATECU種別データDCB)を第1制御ユニットに記憶し、第1制御ユニットは、第3制御ユニットに第3書込み用データを書き込むに際し、記憶された第3種別データに基づいて、第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データ(バッテリ書込み用種別データWDCB)を取得する(図7のステップ67)とともに、書込みユニット52に送信し(ステップ68)、書込みユニット52は、送信された第3書込み用種別データに応じて、第3書込み用データを取得する(図8のステップ77)ことを特徴とする。
According to a fourth aspect of the present invention, in the data writing method according to the third aspect, third type data (BATECU type data DCB) representing a type of write data in the third control unit is stored in the first control unit, When the first control unit writes the third write data to the third control unit, the third control type data (battery that represents the type of data to be written to the third control unit is based on the stored third type data. (Type data for writing WDCB) is acquired (step 67 in FIG. 7) and transmitted to the writing unit 52 (step 68). The writing unit 52 performs the third writing according to the transmitted third type data for writing. Characteristic data is acquired (
この構成によれば、第3制御ユニットにおける書込みデータの種別を表す第3種別データが、第1制御ユニットに記憶されており、第1制御ユニットは、第3制御ユニットに第3書込み用データを書き込むに際し、記憶された第3種別データに基づいて、第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データを取得する。 According to this configuration, the third type data representing the type of write data in the third control unit is stored in the first control unit, and the first control unit stores the third write data in the third control unit. In writing, based on the stored third type data, third type data for writing indicating the type of data to be written to the third control unit is acquired.
このように、第3書込み用種別データは、第3制御ユニットにおける書込みデータの種別(例えばバージョン番号や、仕向け先など)を表す第3種別データに基づいて取得されるため、第3制御ユニットに書き込むべきデータの種別を良好に指示する。また、本発明によれば、この第3書込み用種別データが、第1制御ユニットに記憶された第3種別データに基づいて第1制御ユニットにより取得され、書込みユニットに送信されるとともに、送信された第3書込み用種別データに応じて、第3制御ユニットに書き込むべきデータである第3書込み用データが取得される。したがって、第2及び第3制御ユニットにデータが書き込まれていない第2及び第3制御ユニットの初期状態である場合でも、第3制御ユニットへのデータの書込みを、第3制御ユニットにおける書込みデータの種別に応じて適切に行うことができる。 As described above, the third write type data is acquired based on the third type data indicating the type of write data (for example, version number, destination, etc.) in the third control unit. Good indication of the type of data to be written. Further, according to the present invention, the third type data for writing is acquired by the first control unit based on the third type data stored in the first control unit, transmitted to the writing unit, and transmitted. According to the third writing type data, third writing data that is data to be written to the third control unit is acquired. Therefore, even in the initial state of the second and third control units in which no data is written in the second and third control units, the writing of data to the third control unit It can be appropriately performed according to the type.
また、第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データが、オペレータではなく、第1制御ユニットによって取得されるとともに、それに応じてデータの書込みが行われるので、データの書込みにおける人為的なミスを防止することができる。さらに、第3制御ユニットにおいて、第3種別データを記憶する必要がないので、その記憶容量を低減することができる。 Further, since the third type data for writing indicating the type of data to be written to the third control unit is acquired by the first control unit, not the operator, and data is written accordingly, the data writing Can prevent human error. Furthermore, since it is not necessary to store the third type data in the third control unit, the storage capacity can be reduced.
前記目的を達成するために、請求項5に係る発明によるデータ書込み装置1、51は、データを書き込み可能な第1制御ユニット(実施形態における(以下、本項において同じ)FIECU21)と、第1制御ユニットに通信可能に接続され、データを書き込み可能な第2制御ユニット(CVTECU31、MOTECU61)と、第1及び第2制御ユニットに通信可能に接続される書込みユニット2、52と、を備え、第1制御ユニットは、第2制御ユニットにおける書込みデータの種別を表す第2種別データ(CVTECU種別データDCC、MOTECU種別データDCM)を記憶する第2種別データ記憶手段(EEPROM24)と、第2制御ユニットにデータを書き込むに際し、記憶された第2種別データに基づいて、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データ(変速書込み用種別データWDCC、モータ書込み用種別データWDCM)を取得するとともに、書込みユニット2、52に送信する第2書込み用種別データ送信手段(CPU23a、図2のステップ9、10、図7のステップ63、64)と、を有し、書込みユニット2、52は、送信された第2書込み用種別データに応じて、第2制御ユニットに書き込むべきデータである第2書込み用データ(変速書込み用プログラムPRUC、モータ書込み用プログラムPRUM)を第2制御ユニットに送信する第2書込み用データ送信手段(図3のステップ27、29、図8のステップ72、74)を有し、第2制御ユニットは、送信された第2書込み用データを第2制御ユニットに書き込む第2書込み用データ書込み手段(CPU33a、CPU63a、図4のステップ41、図9のステップ91)を有し、書込みユニット2、52は、第2書込み用データに加え、第2書込み用データに応じた最新の第2種別データを第2制御ユニットに送信する第2種別データ送信手段(図3のステップ28、30、図8のステップ73、75)をさらに有し、第2制御ユニットは、送信された最新の第2種別データを第1制御ユニットに送信する第2種別データ転送手段(CPU33a、CPU63a、図4のステップ42、43、図9のステップ92、93)をさらに有し、第1制御ユニットは、第2書込み用種別データと送信された最新の第2種別データとの比較結果に基づいて、第2制御ユニットへのデータの書込みが適正に行われたか否かを判定する判定手段(CPU23a、図5のステップ51、図12のステップ121)をさらに有することを特徴とする。
In order to achieve the above object, a
以上の構成の請求項5に係る発明は、請求項1に係るデータ書込み方法に関する発明をデータ書込み装置に関する発明に書き換えたものであるので、請求項1に係る発明による作用・効果を同様に得ることができる。具体的には、第2制御ユニットにおける書込みデータの種別を表す第2種別データが、第1制御ユニットの第2種別データ記憶手段によって記憶されている。また、第2制御ユニットにデータを書き込むに際し、第1制御ユニットの第2書込み用種別データ送信手段によって、記憶された第2種別データに基づき、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データが取得されるとともに、書込みユニットに送信される。
The invention according to
このように、第2書込み用種別データは、第2制御ユニットにおける書込みデータの種別(例えばバージョン番号や、仕向け先など)を表す第2種別データに基づいて取得されるため、第2制御ユニットに書き込むべきデータの種別を良好に指示する。また、本発明によれば、この第2書込み用種別データが、第1制御ユニットに記憶された第2種別データに基づいて第1制御ユニットにより取得され、書込みユニットに送信されるとともに、送信された第2書込み用種別データに応じ、書込みユニットの第2書込み用データ送信手段によって、第2制御ユニットに書き込むべきデータである第2書込み用データが取得され、第2制御ユニットに送信される。さらに、送信された第2書込み用データが、第2書込み用データ書込み手段によって第2制御ユニットに書き込まれる。 Thus, since the second type data for writing is acquired based on the second type data indicating the type of write data (for example, version number, destination, etc.) in the second control unit, the second control unit Good indication of the type of data to be written. Further, according to the present invention, the second writing type data is acquired by the first control unit based on the second type data stored in the first control unit, and is transmitted to the writing unit and transmitted. According to the second type data for writing, the second writing data transmitting means of the writing unit acquires second writing data that is data to be written to the second control unit and transmits it to the second control unit. Further, the transmitted second write data is written to the second control unit by the second write data writing means.
したがって、請求項1に係る発明と同様、装置の製造時で第2制御ユニットへのデータの書込み動作が一度も行われていないことにより、あるいは、第2制御ユニットに書き込まれていたデータが何らかの理由で消失したことなどにより、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態である場合でも、第2制御ユニットへのデータの書込みを、第2制御ユニットにおける書込みデータの種別に応じて適切に行うことができる。また、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データが、オペレータではなく、第1制御ユニットによって取得されるとともに、それに応じてデータの書込みが行われるので、データの書込みにおける人為的なミスを防止することができる。さらに、第2制御ユニットにおいて、第2種別データを記憶する必要がないので、その記憶容量を低減することができる。
また、第2書込み用データに応じた最新の第2種別データが、第2書込みユニットの第2種別データ送信手段によって、第2制御ユニットに送信されるとともに、送信された最新の第2種別データが、第2制御ユニットの第2種別データ転送手段によって、第1制御ユニットに送信(転送)される。さらに、第1制御ユニットの判定手段により、第2書込み用種別データと送信された最新の第2種別データとの比較結果に基づいて、第2制御ユニットへのデータの書込みが適正に行われたか否かが判定される。したがって、第2制御ユニットへのデータの書込みが適正に行われたか否かを適切に判定でき、それにより、その書込みミスによる第2制御ユニットの不具合を防止することができる。
Therefore, as in the first aspect of the invention, the data write operation to the second control unit has never been performed at the time of manufacture of the apparatus, or the data written to the second control unit is Even in the initial state of the second control unit in which data has not been written to the second control unit due to loss or the like, the data write to the second control unit It can be appropriately performed according to the type. In addition, the second write type data indicating the type of data to be written to the second control unit is acquired by the first control unit, not the operator, and the data is written accordingly. Can prevent human error. Furthermore, since it is not necessary to store the second type data in the second control unit, the storage capacity can be reduced.
The latest second type data corresponding to the second write data is transmitted to the second control unit by the second type data transmitting means of the second write unit, and the transmitted second latest type data is transmitted. Is transmitted (transferred) to the first control unit by the second type data transfer means of the second control unit. Further, whether or not the data is properly written to the second control unit based on the comparison result between the second writing type data and the latest second type data transmitted by the determination unit of the first control unit. It is determined whether or not. Therefore, it is possible to appropriately determine whether or not the data writing to the second control unit has been properly performed, thereby preventing a failure of the second control unit due to the writing error.
請求項6に係る発明は、請求項5に記載のデータ書込み装置1、51において、第2制御ユニットへの第2書込み用データの書込みを、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態において行うことを特徴とする。
Invention is the
この構成によれば、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態において、請求項5に係る発明の説明で述べた第2制御ユニットへの第2書込み用データの書込みが行われる。したがって、請求項5に係る発明による効果を有効に得ることができる。
According to this configuration, in the initial state of the second control unit in which no data is written to the second control unit, the second write data is written to the second control unit described in the description of the invention according to
請求項7に係る発明は、請求項5又は6に記載のデータ書込み装置51において、書込みユニット52には、第2制御ユニットを介して第3制御ユニット(BATECU71)が通信可能に接続され、第3制御ユニットに書き込むべきデータである第3書込み用データ(バッテリ書込み用プログラムPRUB)が、書込みユニット52から第2制御ユニットを介して第3制御ユニットに送信され(図8のステップ79、図10のステップ101)、第3制御ユニットは、送信された第3書込み用データを書き込む第3書込み用データ書込み手段(CPU73a、図11のステップ111)を有することを特徴とする。
According to a seventh aspect of the present invention, in the
以上の構成の請求項7に係る発明は、請求項3に係るデータ書込み方法に関する発明をデータ書込み装置に関する発明に書き換えたものであるので、請求項3に係る発明による作用・効果を同様に得ることができる。具体的には、第3制御ユニットが、第2制御ユニットを介して書込みユニットに接続される。また、第3制御ユニットに書き込むべきデータである第3書込み用データが、書込みユニットから第2制御ユニットを介して第3制御ユニットに送信されるとともに、第3制御ユニットの第3書込み用データ書込み手段によって、送信された第3書込み用データが第3制御ユニットに書き込まれる。
The invention according to
このように、書込みユニットに既に接続されている第2制御ユニットを介して、第3制御ユニットへの第3書込み用データの送信を行うことができるので、第3制御ユニットを書込みユニットに接続するための回路を新たに構成する必要がない。したがって、その分、装置の小型化及び製造コストの削減を図ることができる。 In this way, since the third write data can be transmitted to the third control unit via the second control unit that is already connected to the write unit, the third control unit is connected to the write unit. Therefore, it is not necessary to construct a new circuit. Therefore, it is possible to reduce the size of the apparatus and the manufacturing cost accordingly.
請求項8に係る発明は、請求項7に記載のデータ書込み装置51において、第1制御ユニットは、第3制御ユニットにおける書込みデータの種別を表す第3種別データ(BATECU種別データDCB)を記憶する第3種別データ記憶手段(EEPROM24)と、第3制御ユニットに第3書込み用データを書き込むに際し、記憶された第3種別データに基づいて、第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データ(バッテリ書込み用種別データWDCB)を取得するとともに、書込みユニット52に送信する第3書込み用種別データ送信手段(CPU23a、図7のステップ67、68)と、をさらに有し、書込みユニット52は、送信された第3書込み用種別データに応じて、第3書込み用データを取得する第3書込み用データ取得手段(図8のステップ77)を有することを特徴とする。
According to an eighth aspect of the present invention, in the
以上の構成の請求項8に係る発明は、請求項4に係るデータ書込み方法に関する発明をデータ書込み装置に関する発明に書き換えたものであるので、請求項4に係る発明による作用・効果を同様に得ることができる。具体的には、第3制御ユニットにおける書込みデータの種別を表す第3種別データが、第1制御ユニットの第3種別データ記憶手段によって記憶されている。また、第3制御ユニットに第3書込み用データを書き込むに際し、第1制御ユニットの第3書込み用種別データ送信手段によって、記憶された第3種別データに基づき、第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データが取得されるとともに、書込みユニットに送信される。
The invention according to claim 8 having the above configuration is obtained by rewriting the invention relating to the data writing method according to
このように、第3書込み用種別データは、第3制御ユニットにおける書込みデータの種別(例えばバージョン番号や、仕向け先など)を表す第3種別データに基づいて取得されるため、第3制御ユニットに書き込むべきデータの種別を良好に指示する。また、本発明によれば、この第3書込み用種別データが、第1制御ユニットに記憶された第3種別データに基づいて第1制御ユニットにより取得され、書込みユニットに送信されるとともに、送信された第3書込み用種別データに応じて、第3制御ユニットに書き込むべきデータである第3書込み用データが取得される。したがって、第2及び第3制御ユニットにデータが書き込まれていない第2及び第3制御ユニットの初期状態である場合でも、第3制御ユニットへのデータの書込みを、第3制御ユニットにおける書込みデータの種別に応じて適切に行うことができる。 As described above, the third write type data is acquired based on the third type data indicating the type of write data (for example, version number, destination, etc.) in the third control unit. Good indication of the type of data to be written. Further, according to the present invention, the third type data for writing is acquired by the first control unit based on the third type data stored in the first control unit, transmitted to the writing unit, and transmitted. According to the third writing type data, third writing data that is data to be written to the third control unit is acquired. Therefore, even in the initial state of the second and third control units in which no data is written in the second and third control units, the writing of data to the third control unit It can be appropriately performed according to the type.
また、第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データが、オペレータではなく、第1制御ユニットによって取得されるとともに、それに応じてデータの書込みが行われるので、データの書込みにおける人為的なミスを防止することができる。さらに、第3制御ユニットにおいて、第3種別データを記憶する必要がないので、その記憶容量を低減することができる。 Further, since the third type data for writing indicating the type of data to be written to the third control unit is acquired by the first control unit, not the operator, and data is written accordingly, the data writing Can prevent human error. Furthermore, since it is not necessary to store the third type data in the third control unit, the storage capacity can be reduced.
以下、図面を参照しながら、本発明の好ましい実施形態を詳細に説明する。図1に示すエンジン3は、車両(図示せず)に動力源として搭載されたガソリンエンジンであり、エンジン3には、燃料噴射弁(以下「インジェクタ」という)4が取り付けられている。インジェクタ4の開弁時間及び開弁時期は、後述する燃料噴射制御用のECU(以下「FIECU」という)21によって制御され、それにより、燃料噴射量及び燃料噴射時期がそれぞれ制御される。
Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. An
また、エンジン3は、無段変速機(以下「CVT」という)5を介して、車両の駆動輪(図示せず)に連結されている。CVT5は、後述する変速比制御用のECU(以下「CVTECU」という)31によって制御され、それにより変速比が制御される。
Further, the
本発明の第1実施形態によるデータ書込み装置1は、燃料制御用プログラムPRF及び変速制御用プログラムPRCの書込みを行うためのものであり、書込みユニット2、FIECU21及びCVTECU31を備えている。なお、本明細書における「書込み」には、新規にデータを書き込むことに加え、データを書き換えて更新することが含まれる。また、上記の燃料制御用プログラムPRFは燃料の噴射量及び噴射時期を、変速制御用プログラムPRCは変速比を、それぞれ制御するためのものであり、以下、両者PRF、PRCを適宜、総称して「制御用プログラム」という。
The
書込みユニット2は、制御用プログラムの書込み時に、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCを、FIECU21及びCVTECU31にそれぞれ送信するためのものである。燃料書込み用プログラムPRUFは上記の燃料制御用プログラムPRFとして、変速書込み用プログラムPRUCは変速制御用プログラムPRCとして、それぞれ書き込まれるものである。
The
また、書込みユニット2は、記録媒体(図示せず)を有しており、この記録媒体には、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCとして、バージョン番号や、FIECU21及びCVTECU31の製造年月日、車両の車種、車両の仕向け先などに応じて種別された多数のプログラムが記録されている。
Further, the
また、上記の記録媒体には、多数のFIECU書込み用種別データDCUF及びCVTECU書込み用種別データDCUCが、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCにそれぞれ対応させて記憶されている。これらのFIECU書込み用種別データDCUF及びCVTECU書込み用種別データDCUCはそれぞれ、後述するFIECU種別データDCF及びCVTECU種別データDCCとして、FIECU21の後述するEEPROM24に書き込まれ、更新されるものである。
In the recording medium, a large number of FIECU writing type data DCUF and CVTECU writing type data DCUC are stored in association with the fuel writing program PRUF and the shift writing program PRUC, respectively. The FIECU writing type data DCUF and the CVTECU writing type data DCUC are written and updated in the
さらに、書込みユニット2は、車両に搭載されておらず、車両の製造時やメンテナンス時において、FIECU21及びCVTECU31に燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCなどをそれぞれ書き込むときに、コネクタ(図示せず)や信号線11を介して、FIECU21及びCVTECU31に通信可能に接続される。燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCは、その書込みに際し、信号線11を介して、FIECU21及びCVTECU31にそれぞれ送信される。その詳細については後述する。
Further, the
FIECU21は、通信用インターフェース(I/F)22、マイコン23及びEEPROM24を有している。通信用I/F22は、書込みユニット2とマイコン23の後述するCPU23aとの間でCAN通信を行うためのものであり、書込みユニット2から送信された燃料書込み用プログラムPRUFを信号線11を介して受信し、CPU23aに送信する。
The
マイコン23は、CPU23a及びフラッシュROM23bなどで構成されている。フラッシュROM23bは、燃料制御用プログラムPRFを記憶するための記憶領域を有している。CPU23aは、書込みユニット2から燃料書込み用プログラムPRUFを受信したときに、燃料書込み用プログラムPRUFを燃料制御用プログラムPRFとしてフラッシュROM23bの記憶領域に書き込む。その詳細については後述する。また、CPU23aは、燃料制御用プログラムPRFを実行することによって、インジェクタ4の開弁時間及び開弁時期を設定するとともに、その結果に基づいて、インジェクタ4を制御するための制御信号を生成し、インジェクタ4に出力する。
The
前記EEPROM24には、FIECU種別データDCF及びCVTECU種別データDCCが記憶されている。このFIECU種別データDCFは、上記のフラッシュROM23bにおける書込みデータ(プログラムを含む)の種別を表すものであり、FIECU21の識別番号や、FIECU21の製造年月日、車両の車種、車両の仕向け先、フラッシュROM23bに書き込まれている燃料制御用プログラムPRFのバージョン番号などを表す複数のデータで構成されている。
The
また、CVTECU種別データDCCは、後述するCVTECU31のフラッシュROM33bにおける書込みデータ(プログラムを含む)の種別を表すものであり、CVTECU31を表す識別番号や、CVTECU31の製造年月日、車両の車種、車両の仕向け先、フラッシュROM33bに書き込まれている変速制御用プログラムPRCのバージョン番号などを表す複数のデータで構成されている。
The CVTECU type data DCC represents the type of write data (including a program) in a
これらのFIECU種別データDCF及びCVTECU種別データDCCは、車両の製造時には、オペレータによってEEPROM24に書き込まれ、その後、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCが書き込まれるのに伴って、CPU23aにより更新される。その詳細については後述する。
These FIECU type data DCF and CVTECU type data DCC are written into the
なお、車両の製造時などで、燃料制御用プログラムPRFがフラッシュROM23bに書き込まれていないときには、燃料制御用プログラムPRFのバージョン番号として「0」を表すデータが、EEPROM24に書き込まれ、記憶される。同様に、車両の製造時などで、変速制御用プログラムPRCがフラッシュROM33bに書き込まれていないときには、変速制御用プログラムPRCのバージョン番号として「0」を表すデータが、EEPROM24に書き込まれ、記憶される。
When the fuel control program PRF is not written in the
また、CVTECU31は、通信用インターフェース(I/F)32及びマイコン33を有している。通信用I/F32は、書込みユニット2とマイコン33の後述するCPU33aとの間でCAN通信を行うためのものであり、書込みユニット2から送信された変速書込み用プログラムPRUCを信号線11を介して受信し、CPU33aに送信する。
The
マイコン33は、CPU33a及びフラッシュROM33bなどで構成されている。フラッシュROM33bは、変速制御用プログラムPRCを記憶するための記憶領域を有している。CPU33aは、書込みユニット2から前述した変速書込み用プログラムPRUCを受信したときに、変速書込み用プログラムPRUCを変速制御用プログラムPRCとしてフラッシュROM33bの記憶領域に書き込む。その詳細については後述する。また、CPU33aは、変速制御用プログラムPRCを実行することによって、CVT5の変速比を設定するとともに、その結果に基づいて、CVT5を制御するための制御信号を生成し、CVT5に出力する。
The
また、FIECU21及びCVTECU31は、信号線12を介して互いに通信可能に接続されており、CVTECU31からFIECU21に、この信号線12を介して、CVTECU種別データDCCの送信が行われる。その詳細については後述する。
The
さらに、FIECU21には、警告灯6が接続されている。FIECU21は、後述する書込み判定処理において、変速書込み用プログラムPRUCの書込みが適正に行われていないと判定されたときに、そのことを表すために警告灯6を点灯させる。
Further, a
次に、図2を参照しながら、FIECU21のCPU23aによって実行される第1書込み処理について説明する。本処理は、燃料書込み用プログラムPRUFの書込みなどを行うためのものであり、所定時間ごとに繰り返し実行される。まず、ステップ1(「S1」と図示。以下同じ)では、書込みユニット2から燃料書込み用種別データWDCFの送信が要求されているか否かを判別する。
Next, the first writing process executed by the
この燃料書込み用種別データWDCFは、FIECU21のフラッシュROM23bに書き込むべきデータの種別を表すものであり、この種別には、前述したFIECU種別データDCFに対応して、FIECU21を表す識別番号や、FIECU21の製造年月日、車両の車種、車両の仕向け先、フラッシュROM23bに書き込むべき燃料制御用プログラムPRFのバージョン番号などが含まれる。上記ステップ1の送信要求は、FIECU21への書込みユニット2の接続時に、オペレータの操作によってなされる。
The fuel writing type data WDCF represents the type of data to be written to the
上記ステップ1の答がYESのときには、FIECU21のEEPROM24からFIECU種別データDCFを読み出す(ステップ2)。次いで、読み出したFIECU種別データDCFに基づいて、燃料書込み用種別データWDCFを設定する(ステップ3)。これにより、燃料書込み用種別データWDCFのうちのバージョン番号を表すデータは、例えば、FIECU種別データDCFで表されるバージョン番号よりも1つ新しいバージョン番号を表すように設定される。なお、車両の製造時などで、フラッシュROM23bに燃料制御用プログラムPRFが書き込まれていないFIECU21の初期状態であるときには、燃料書込み用種別データWDCFのうちのバージョン番号を表すデータは、初期のバージョン番号を表すように設定される。
If the answer to step 1 is YES, the FIFOC type data DCF is read from the
上記ステップ3に続くステップ4では、設定した燃料書込み用種別データWDCFを書込みユニット2に送信する。このステップ4の実行により、書込みユニット2は、燃料書込み用種別データWDCFを受信すると、燃料書込み用プログラムPRUF及びFIECU書込み用種別データDCUFをFIECU21に送信する。その詳細については後述する。
In
そして、書込みユニット2から燃料書込み用プログラムPRUF及びFIECU書込み用種別データDCUFを受信すると、上記ステップ4に続くステップ5において、受信した燃料書込み用プログラムPRUFを、燃料制御用プログラムPRFとしてフラッシュROM23bに書き込む。次いで、受信されたFIECU書込み用種別データDCUFを、最新のFIECU種別データDCFとしてEEPROM24に書き込み(ステップ6)、それによりFIECU種別データDCFを更新し、本処理を終了する。
When the fuel writing program PRUF and the FIECU writing type data DCUF are received from the
一方、前記ステップ1の答がNOのときには、書込みユニット2から変速書込み用種別データWDCCの送信が要求されているか否かを判別する(ステップ7)。この変速書込み用種別データWDCCは、CVTECU31のフラッシュROM33bに書き込むべきデータの種別を表すものであり、この種別には、CVTECU31を表す識別番号や、CVTECU31の製造年月日、車両の車種、車両の仕向け先、フラッシュROM33bに書き込むべき変速制御用プログラムPRCのバージョン番号が含まれる。上記ステップ7の送信要求は、CVTECU31への書込みユニット2の接続時に、オペレータの操作によってなされる。
On the other hand, if the answer to step 1 is NO, it is determined whether or not the
上記ステップ7の答がNOのときには、そのまま本処理を終了する一方、YESのときには、EEPROM24からCVTECU種別データDCCを読み出す(ステップ8)。次いで、読み出したCVTECU種別データDCCに基づいて、変速書込み用種別データWDCCを設定する(ステップ9)とともに、設定した変速書込み用種別データWDCCを書込みユニット2に送信し(ステップ10)、本処理を終了する。 If the answer to step 7 is NO, the process is terminated as it is. If YES, the CVTECU type data DCC is read from the EEPROM 24 (step 8). Next, based on the read CVT ECU type data DCC, the shift write type data WDCC is set (step 9), and the set shift write type data WDCC is transmitted to the writing unit 2 (step 10). finish.
上記ステップ9の実行により、変速書込み用種別データWDCCのうちのバージョン番号を表すデータは、例えば、CVTECU種別データDCCで表されるバージョン番号よりも1つ新しいバージョン番号を表すように設定される。なお、車両の製造時などで、フラッシュROM33bに変速制御用プログラムPRCが書き込まれていないCVTECU31の初期状態であるときには、変速書込み用種別データWDCCのうちのバージョン番号を表すデータは、初期のバージョン番号を表すように設定される。
As a result of the execution of
次に、図3を参照しながら、書込みユニット2によって実行される送信処理について説明する。本処理は、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCをFIECU21及びCVTECU31にそれぞれ送信するためのものであり、所定時間ごとに繰り返し実行される。
Next, the transmission process executed by the
まず、ステップ21では、前述した燃料書込み用種別データWDCFをFIECU21から受信したか否かを判別する。この答がYESのときには、前述した記録媒体に記録された多数のプログラムから、受信した燃料書込み用種別データWDCFに応じた燃料書込み用プログラムPRUFを読み出す(ステップ22)。次いで、記録媒体に記録された多数のデータから、読み出された燃料書込み用プログラムPRUFに応じたFIECU書込み用種別データDCUFを読み出す(ステップ23)。
First, in
次に、ステップ24及び25において、上記ステップ22及び23でそれぞれ読み出された燃料書込み用プログラムPRUF及びFIECU書込み用種別データDCUFをFIECU21に送信し、本処理を終了する。
Next, in
一方、上記ステップ21の答がNOのときには、前述した変速書込み用種別データWDCCをFIECU21から受信したか否かを判別する(ステップ26)。この答がNOのときには、そのまま本処理を終了する一方、YESのときには、前述した記録媒体に記録された多数のプログラムから、受信した変速書込み用種別データWDCCに応じた変速書込み用プログラムPRUCを読み出す(ステップ27)。次いで、記録媒体に記録された多数のデータから、読み出された変速書込み用プログラムPRUCに応じたCVTECU書込み用種別データDCUCを読み出す(ステップ28)。 On the other hand, if the answer to step 21 is NO, it is determined whether or not the above-described shift writing type data WDCC has been received from the FI ECU 21 (step 26). If this answer is NO, the present process is terminated as it is, while if YES, the shift writing program PRUC corresponding to the received shift write type data WDCC is read from a number of programs recorded on the recording medium described above. (Step 27). Next, CVTECU writing type data DCUC corresponding to the read shift writing program PRUC is read from a large number of data recorded on the recording medium (step 28).
次に、ステップ29及び30において、上記ステップ27及び28においてそれぞれ読み出された変速書込み用プログラムPRUC及びCVTECU書込み用種別データDCUCをCVTECU31に送信し、本処理を終了する。
Next, in
次に、図4を参照しながら、CVTECU31のCPU33aによって実行される第2書込み処理について説明する。本処理は、図3の上記ステップ29および30によりそれぞれ送信された変速書込み用プログラムPRUC及びCVTECU書込み用種別データDCUCを受信するのに伴って実行される。まず、ステップ41では、受信した変速書込み用プログラムPRUCを、変速制御用プログラムPRCとしてフラッシュROM33bに書き込む。
Next, the second writing process executed by the
次いで、受信したCVTECU書込み用種別データDCUCを、CVTECU種別データDCCとして設定する(ステップ42)とともに、設定されたCVTECU種別データDCCをFIECU21に送信し(ステップ43)、本処理を終了する。このステップ43の実行によりCVTECU種別データDCCがFIECU21に送信されると、FIECU21のCPU23aによって、受信されたCVTECU種別データDCCが、EEPROM24に書き込まれる。これにより、更新された最新のCVTECU種別データDCCが、EEPROM24に記憶される。
Next, the received CVTECU type data DCUC is set as CVTECU type data DCC (step 42), and the set CVTECU type data DCC is transmitted to the FI ECU 21 (step 43), and this process is terminated. When the CVTECU type data DCC is transmitted to the
次に、図5を参照しながら、FIECU21のCPU23aによって実行される前述した書込み判定処理について説明する。本処理は、図4のステップ43により送信されたCVTECU種別データDCCを受信するのに伴って実行される。
Next, the above-described write determination process executed by the
図5のステップ51では、受信したCVTECU種別データDCCと、図2の前記ステップ9で設定された変速書込み用種別データWDCCとの比較結果に基づいて、CVTECU31において、変速書込み用プログラムPRUCの書込みが適正に行われたか否かを判定し、本処理を終了する。具体的には、CVTECU種別データDCCで表される各種のデータ(バージョン番号、仕向け先など)と、変速書込み用種別データWDCCで表される各種のデータ(バージョン番号、仕向け先など)とがすべて一致しているときには、変速書込み用プログラムPRUCの書込みが適正に行われたと判定され、一致していないときには、適正に行われていないと判定される。
In
また、第1実施形態における各種の要素と、本発明における各種の要素との対応関係は、次のとおりである。すなわち、第1実施形態におけるFIECU21及びCVTECU31が、本発明における第1及び第2制御ユニットにそれぞれ相当するとともに、第1実施形態におけるCPU23aが、本発明における第2書込み用種別データ送信手段及び判定手段に相当する。また、第1実施形態におけるEEPROM24が、本発明における第2種別データ記憶手段に相当するとともに、第1実施形態におけるCPU33aが、本発明における第2書込み用データ書込み手段及び第2種別データ転送手段に相当する。
Moreover, the correspondence between the various elements in the first embodiment and the various elements in the present invention is as follows. That is, the
以上のように、第1実施形態によれば、CVTECU31における書込みデータの種別を表すCVTECU種別データDCCが、FIECU21のEEPROM24に記憶されており、FIECU21は、CVTECU31に変速書込み用プログラムPRUCを書き込むに際し、記憶されたCVTECU種別データDCCに基づいて、CVTECU31に書き込むべきデータの種別を表す変速書込み用種別データWDCCを設定する(図2のステップ9)。
As described above, according to the first embodiment, the CVTECU type data DCC representing the type of write data in the
このように、変速書込み用種別データWDCCは、CVTECU31における書込みデータの種別(バージョン番号や、仕向け先など)を表すCVTECU種別データDCCに基づいて取得されるため、CVTECU31に書き込むべきデータの種別を良好に指示する。また、この変速書込み用種別データWDCCが、FIECU21のEEPROM24に記憶されたCVTECU種別データDCCに基づいてFIECU21により設定され、書込みユニット2に送信される(図2のステップ10)とともに、送信された変速書込み用種別データWDCCに応じて、CVTECU31に書き込むべきデータである変速書込み用プログラムPRUCが読み出され(図3のステップ27)、CVTECU31に書き込まれる(図4のステップ41)。
As described above, since the shift writing type data WDCC is acquired based on the CVTECU type data DCC indicating the type of write data (version number, destination, etc.) in the
また、第1実施形態では、車両の出荷後はもちろん、車両の製造時でCVTECU31へのデータの書込み動作が一度も行われていないことにより、あるいは、CVTECU31に書き込まれていたデータが何らかの理由で消失したことなどにより、CVTECU31に変速制御用プログラムPRCなどのデータが書き込まれていないCVTECU31の初期状態においても、上述したCVTECU31への変速書込み用プログラムPRUCの書込みが行われる。以上により、この初期状態においても、CVTECU31への変速書込み用プログラムPRUCの書込みを、CVTECU31における書込みデータの種別に応じて適切に行うことができる。
Further, in the first embodiment, not only after the vehicle is shipped, the data writing operation to the
さらに、前述したように、変速書込み用種別データWDCCが、CVTECU種別データDCCで表される、そのときの変速制御用プログラムPUCのバージョン番号よりも1つ新しいバージョン番号を表すように設定される。したがって、変速制御用プログラムPUCが古いバージョンの変速書込み用プログラムPRUCに誤って書き換えられたり、同じバージョンの変速書込み用プログラムPRUCに無駄に書き換えられたりするのを、防止することができる。 Furthermore, as described above, the shift writing type data WDCC is set so as to represent a version number that is one newer than the version number of the shift control program PUC that is represented by the CVT ECU type data DCC. Accordingly, it is possible to prevent the shift control program PUC from being erroneously rewritten by an old version of the shift write program PRUC or being rewritten to the same version of the shift write program PRUC.
また、CVTECU31に書き込むべきデータの種別を表す変速書込み用種別データWDCCが、オペレータではなく、FIECU21によって設定されるとともに、それに応じて変速書込み用プログラムPRUCの書込みが行われるので、その書込みにおける人為的なミスを防止することができる。さらに、CVTECU31において、CVTECU種別データDCCを記憶する必要がないので、その記憶容量を低減することができる。
Further, the shift write type data WDCC indicating the type of data to be written in the
さらに、書き込まれた変速書込み用プログラムPRUCに応じたCVTECU書込み用種別データDCUCが、書込みユニット2によりCVTECU31に送信される(図3のステップ28、30)とともに、最新のCVTECU種別データDCCとして設定される(図4のステップ42)。また、設定された最新のCVTECU種別データDCCが、CVTECU31からFIECU21に送信(転送)される(ステップ43)。さらに、FIECU21により、変速書込み用種別データWDCCと送信された最新のCVTECU種別データDCCとの比較結果に基づいて、CVTECU31への変速書込み用プログラムPRUCの書込みが適正に行われたか否かが判定される(図5のステップ51)。
Further, the CVTECU writing type data DCUC corresponding to the written shift writing program PRUC is transmitted to the
前述したように変速書込み用種別データWDCCは、CVTECU31に書き込むべきデータの種別を表すので、CVTECU31へのデータの書込みが適正に行われた場合には、変速書込み用種別データWDCCと、CVTECU31に書き込まれた変速書込み用プログラムPRUCに応じた最新のCVTECU種別データDCCとは、互いに一致する。したがって、上述した判定により、CVTECU31への変速書込み用プログラムPRUCの書込みが適正に行われたか否かを適切に判定でき、それにより、その書込みミスによるCVTECU31の不具合を防止することができる。
As described above, the shift write type data WDCC indicates the type of data to be written to the
次に、図6を参照しながら、本発明の第2実施形態によるデータ書込み装置51について説明する。このデータ書込み装置51は、第1実施形態と比較して、動力源としてエンジン3及びモータ(回転電機)7を備えるハイブリッド式の車両(図示せず)に適用されたものであることと、CVTECU31に代えて、MOTECU61及びBATECU71を備えることが、主に異なっている。図6において、第1実施形態と同じ構成要素については、同じ符号を付している。以下、第1実施形態と異なる点を中心に説明する。
Next, a
データ書込み装置51は、前述した燃料制御用プログラムPRFに加え、モータ7を制御するためのモータ制御用プログラムPRM、及びバッテリ8を制御するためのバッテリ制御用プログラムPRBの書込みを行うためのものであり、書込みユニット52、FIECU21、MOTECU61及びBATECU71を備えている。バッテリ8は、モータ7に電力を供給するためのものである。MOTECU61及びBATECU71は、モータ7及びバッテリ8の協調制御を行うために、信号線53を介して互いに通信可能に接続されている。
The
書込みユニット52は、上記の各種の制御用プログラムの書込み時に、前述した燃料書込み用プログラムPRUFに加え、モータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBを、FIECU21、MOTECU61及びBATECU71にそれぞれ送信するためのものである。モータ書込み用プログラムPRUMはモータ制御用プログラムPRMとして、バッテリ書込み用プログラムPRUBはバッテリ制御用プログラムPRBとして、それぞれ書き込まれるものである。
The writing unit 52 transmits the motor writing program PRUM and the battery writing program PRUB to the
また、書込みユニット52は、記録媒体(図示せず)を有しており、この記録媒体には、燃料書込み用プログラムPRUF、モータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBとして、バージョン番号や、FIECU21、MOTECU61及びBATECU71の製造年月日、車両の車種、車両の仕向け先などに応じて種別された多数のプログラムが記録されている。
The writing unit 52 has a recording medium (not shown). The recording medium includes a version number and a
また、記録媒体には、前述したFIECU書込み用種別データDCUFに加え、多数のMOTECU書込み用種別データDCUM及びBATECU書込み用種別データDCUBが、燃料書込み用プログラムPRUF、モータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBにそれぞれ対応させて記憶されている。これらのMOTECU書込み用種別データDCUM及びBATECU書込み用種別データDCUBはそれぞれ、後述するMOTECU種別データDCM及びBATECU種別データDCBとして、FIECU21のEEPROM24に書き込まれ、更新されるものである。
In addition to the above-mentioned FIECU writing type data DCUF, a number of MOTECU writing type data DCUM and BATECU writing type data DCUB are included in the recording medium, the fuel writing program PRUF, the motor writing program PRUM, and the battery writing data. It is stored in correspondence with each program PRUB. The MOTECU writing type data DCUM and the BAT ECU writing type data DCUB are written and updated in the
さらに、書込みユニット52は、車両に搭載されておらず、車両の製造時やメンテナンス時において、FIECU21、MOTECU61及びBATECU71に燃料書込み用プログラムPRUF、モータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBなどをそれぞれ書き込むときに、コネクタ(図示せず)や信号線54を介して、FIECU21及びMOTECU61に接続される。燃料書込み用プログラムPRUF及びモータ書込み用プログラムPRUMは、その書込みに際し、信号線54を介してFIECU21及びMOTECU61にそれぞれ送信され、バッテリ書込み用プログラムPRUBは、信号線54、MOTECU61及び前述した信号線53を介して、BATECU71に送信される。その詳細については後述する。
Further, the writing unit 52 is not mounted on the vehicle, and the fuel writing program PRUF, the motor writing program PRUM, the battery writing program PRUB, and the like are respectively stored in the
また、MOTECU61は、通信用インターフェース(I/F)62及びマイコン63を有している。通信用I/F62は、書込みユニット52とマイコン63の後述するCPU63aとの間でCAN通信を行うためのものであり、書込みユニット52から送信されたモータ書込み用プログラムPRUMを信号線54を介して受信し、CPU63aに送信する。
The
マイコン63は、CPU63a及びフラッシュROM63bなどで構成されている。フラッシュROM63bは、モータ制御用プログラムPRMを記憶するための記憶領域を有している。CPU63aは、書込みユニット52から前述したモータ書込み用プログラムPRUMを受信したときに、モータ書込み用プログラムPRUMをモータ制御用プログラムPRMとしてフラッシュROM63bの記憶領域に書き込む。その詳細については後述する。また、CPU63aは、モータ制御用プログラムPRMを実行することによって、モータ7を制御するための制御信号を生成し、モータ7に出力する。
The
また、BATECU71は、MOTECU61と同様、通信用インターフェース(I/F)72及びマイコン73を有している。通信用I/F72は、MOTECU61のCPU63aとマイコン73の後述するCPU73aとの間でCAN通信を行うためのものであり、書込みユニット52から送信されたモータ書込み用プログラムPRUMを信号線54及び53を介して受信し、CPU73aに送信する。
Similarly to the
マイコン73は、CPU73a及びフラッシュROM73bなどで構成されている。フラッシュROM73bは、バッテリ制御用プログラムPRBを記憶するための記憶領域を有している。CPU73aは、書込みユニット52から前述したバッテリ書込み用プログラムPRUBを受信したときに、バッテリ書込み用プログラムPRUBをバッテリ制御用プログラムPRBとしてフラッシュROM73bの記憶領域に書き込む。その詳細については後述する。また、CPU73aは、バッテリ制御用プログラムPRBを実行することによって、バッテリ8とモータ7の間の電力の授受を制御するための制御信号を生成し、バッテリ8及びモータ7に接続された電気回路に出力する。
The
FIECU21のEEPROM24には、前述したFIECU種別データDCFに加え、MOTECU種別データDCM及びBATECU種別データDCBが記憶されている。このMOTECU種別データDCMは、MOTECU61のフラッシュROM63bにおける書込みデータ(プログラムを含む)の種別を表すものであり、MOTECU61の識別番号や、MOTECU61の製造年月日、車両の車種、車両の仕向け先、フラッシュROM63bに書き込まれているモータ制御用プログラムPRMのバージョン番号などを表す複数のデータで構成されている。
In the
また、BATECU種別データDCBは、BATECU71のフラッシュROM73bにおける書込みデータ(プログラムを含む)の種別を表すものであり、BATECU71を表す識別番号や、BATECU71の製造年月日、車両の車種、車両の仕向け先、BATECU71のフラッシュROM73bに書き込まれているバッテリ制御用プログラムPRBのバージョン番号などを表す複数のデータで構成されている。
The BAT ECU type data DCB represents the type of write data (including a program) in the
これらのMOTECU種別データDCM及びBATECU種別データDCBの書込みについては、前述したFIECU種別データDCFと同様にして行われる。 The writing of the MOTECU type data DCM and the BAT ECU type data DCB is performed in the same manner as the FIECU type data DCF described above.
また、FIECU21及びMOTECU61は、信号線55を介して互いに通信可能に接続されており、MOTECU61からFIECU21に、この信号線55を介して、MOTECU種別データDCM及びBATECU種別データDCBが送信される。その詳細については後述する。
The
次に、図7を参照しながら、FIECU21のCPU23aによって実行される第1書込み処理について説明する。本処理は、燃料書込み用プログラムPRUFの書込みなどを行うためのものであり、所定時間ごとに繰り返し実行される。図7において、第1実施形態における第1書込み処理(図2)と同じ実行内容の部分については、同じステップ番号を付している。同図から明らかなように、ステップ61以降の処理が異なっているので、以下、ステップ61以降の処理について、同図を参照しながら説明する。
Next, the first writing process executed by the
前記ステップ1の答がNOのときには、ステップ61において、書込みユニット52からモータ書込み用種別データWDCMの送信が要求されているか否かを判別する。このモータ書込み用種別データWDCMは、MOTECU61のフラッシュROM63bに書き込むべきデータの種別を表すものであり、この種別には、前述したMOTECU種別データDCMに対応して、MOTECU61を表す識別番号や、MOTECU61の製造年月日、車両の車種、車両の仕向け先、フラッシュROM63bに書き込むべきモータ制御用プログラムPRMのバージョン番号などが含まれる。上記ステップ61の送信要求は、MOTECU61への書込みユニット52の接続時に、オペレータの操作によってなされる。
When the answer to step 1 is NO, in
上記ステップ61の答がYESのときには、EEPROM24からMOTECU種別データDCMを読み出す(ステップ62)。次いで、読み出したMOTECU種別データDCMに基づいて、モータ書込み用種別データWDCMを設定する(ステップ63)とともに、設定したモータ書込み用種別データWDCMを書込みユニット52に送信し(ステップ64)、本処理を終了する。 When the answer to step 61 is YES, the MOTECU type data DCM is read from the EEPROM 24 (step 62). Next, based on the read MOTECU type data DCM, motor write type data WDCM is set (step 63), and the set motor write type data WDCM is transmitted to the write unit 52 (step 64), and this process is performed. finish.
上記ステップ63の実行により、モータ書込み用種別データWDCMのうちのバージョン番号を表すデータは、例えば、MOTECU種別データDCMで表されるバージョン番号よりも1つ新しいバージョン番号を表すように設定される。なお、車両の製造時などで、フラッシュROM63bにモータ制御用プログラムPRMが書き込まれていないMOTECU61の初期状態であるときには、モータ書込み用種別データWDCMのうちのバージョン番号を表すデータは、初期のバージョン番号を表すように設定される。
By executing
一方、前記ステップ61の答がNOのときには、続くステップ65〜68において、ステップ61〜64と同様にして、バッテリ書込み用種別データWDCBの設定及び送信を実行する。具体的には、ステップ65において、書込みユニット52からバッテリ書込み用種別データWDCBの送信が要求されているか否かを判別する。このバッテリ書込み用種別データWDCBは、BATECU71のフラッシュROM73bに書き込むべきデータの種別を表すものであり、この種別には、前述したBATECU種別データDCBに対応して、BATECU71を表す識別番号や、BATECU71の製造年月日、車両の車種、車両の仕向け先、フラッシュROM73bに書き込むべきバッテリ制御用プログラムPRBのバージョン番号などが含まれる。上記ステップ65の送信要求は、BATECU71への書込みユニット52の接続時に、オペレータの操作によってなされる。
On the other hand, when the answer to step 61 is NO, in the
上記ステップ65の答がNOのときには、そのまま本処理を終了する一方、YESのときには、EEPROM24からBATECU種別データDCBを読み出す(ステップ66)。次いで、読み出したBATECU種別データDCBに基づいて、バッテリ書込み用種別データWDCBを設定する(ステップ67)とともに、設定したバッテリ書込み用種別データWDCBを書込みユニット52に送信し(ステップ68)、本処理を終了する。 If the answer to step 65 is NO, the process is terminated as it is. If YES, the BAT ECU type data DCB is read from the EEPROM 24 (step 66). Next, based on the read BAT ECU type data DCB, the battery write type data WDCB is set (step 67), and the set battery write type data WDCB is transmitted to the write unit 52 (step 68). finish.
上記ステップ67の実行により、バッテリ書込み用種別データWDCBのうちのバージョン番号を表すデータは、モータ書込み用種別データWDCMのそれと同様に設定される。 By executing step 67, data representing the version number in the battery writing type data WDCB is set in the same manner as that of the motor writing type data WDCM.
次に、図8を参照しながら、書込みユニット52によって実行される送信処理について説明する。本処理は、燃料書込み用プログラムPRUF、モータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBをFIECU21、MOTECU61及びBATECU71にそれぞれ送信するためのものであり、所定時間ごとに繰り返し実行される。また、図8において、第1実施形態における送信処理(図3)と同じ実行内容の部分については、同じステップ番号を付している。図8から明らかなように、ステップ71以降の処理が異なっているので、以下、ステップ71以降の処理について、同図を参照しながら説明する。
Next, the transmission process executed by the writing unit 52 will be described with reference to FIG. This process is for transmitting the fuel writing program PRUF, the motor writing program PRUM, and the battery writing program PRUB to the
前記ステップ21の答がNOのときには、ステップ71において、前述したモータ書込み用種別データWDCMをMOTECU61から受信したか否かを判別する。この答がYESのときには、前述した記録媒体に記録された多数のプログラムから、受信したモータ書込み用種別データWDCMに応じたモータ書込み用プログラムPRUMを読み出す(ステップ72)。次いで、記録媒体に記録された多数のデータから、読み出されたモータ書込み用プログラムPRUMに応じたMOTECU書込み用種別データDCUMを読み出す(ステップ73)。
If the answer to step 21 is NO, it is determined in
次に、ステップ74及び75において、上記ステップ72及び73においてそれぞれ読み出されたモータ書込み用プログラムPRUM及びMOTECU書込み用種別データDCUMをMOTECU61に送信し、本処理を終了する。
Next, in
一方、上記ステップ71の答がNOのときには、ステップ76〜80において、ステップ71〜75と同様にして、バッテリ書込み用プログラムPRUBの送信を実行する。具体的には、ステップ76において、前述したバッテリ書込み用種別データWDCBをBATECU71から受信したか否かを判別する。
On the other hand, when the answer to step 71 is NO, the battery write program PRUB is transmitted in
このステップ76の答がNOのときには、そのまま本処理を終了する一方、YESのときには、記録媒体に記録された多数のプログラムから、受信したバッテリ書込み用種別データWDCBに応じたバッテリ書込み用プログラムPRUBを読み出す(ステップ77)。次いで、記録媒体に記録された多数のデータから、読み出されたバッテリ書込み用プログラムPRUBに応じたBATECU書込み用種別データDCUBを読み出す(ステップ78)。 When the answer to step 76 is NO, the present process is terminated as it is. When YES, the battery writing program PRUB corresponding to the received battery writing type data WDCB is obtained from a number of programs recorded on the recording medium. Read (step 77). Next, the BAT ECU writing type data DCUB corresponding to the read battery writing program PRUB is read from a large number of data recorded on the recording medium (step 78).
次に、ステップ79及び80において、上記ステップ77及び78においてそれぞれ読み出されたバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBをMOTECU61に送信し、本処理を終了する。
Next, in
次に、図9を参照しながら、MOTECU61のCPU63aによって実行される第2書込み処理について説明する。本処理は、図8の上記ステップ74及び75によりそれぞれ送信されたモータ書込み用プログラムPRUM及びMOTECU書込み用種別データDCUMを受信するのに伴って実行される。まず、ステップ91では、受信したモータ書込み用プログラムPRUMを、モータ制御用プログラムPRMとしてフラッシュROM63bに書き込む。
Next, the second writing process executed by the
次いで、受信したMOTECU書込み用種別データDCUMを、MOTECU種別データDCMとして設定する(ステップ92)とともに、設定されたMOTECU種別データDCMをFIECU21に送信し(ステップ93)、本処理を終了する。このステップ93の実行によりMOTECU種別データDCMがFIECU21に送信されると、FIECU21のCPU23aによって、受信されたMOTECU種別データDCMが、EEPROM24に書き込まれる。これにより、更新された最新のMOTECU種別データDCMが、EEPROM24に記憶される。
Next, the received MOTECU writing type data DCUM is set as the MOTECU type data DCM (step 92), and the set MOTECU type data DCM is transmitted to the FI ECU 21 (step 93), and this process is terminated. When the MOTECU type data DCM is transmitted to the
また、MOTECU61のCPU63aは、図8の前記ステップ79及び80によりそれぞれ送信されたバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBを受信するのに伴って、図10に示す転送処理を実行する。図10のステップ101及び102ではそれぞれ、受信したバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBをBATECU71に送信(転送)し、本処理を終了する。
Further, the
次に、図11を参照しながら、BATECU71のCPU73aによって実行される第3書込み処理について説明する。本処理は、図10の前記ステップ101及び102により転送されたバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBを受信するのに伴って実行される。まず、ステップ111では、受信したバッテリ書込み用プログラムPRUBを、バッテリ制御用プログラムPRBとしてフラッシュROM73bに書き込む。
Next, the third write process executed by the
次いで、受信したBATECU書込み用種別データDCUBを、BATECU種別データDCBとして設定する(ステップ112)とともに、設定されたBATECU種別データDCBをFIECU21に送信し(ステップ113)、本処理を終了する。 Next, the received BAT ECU writing type data DCUB is set as BAT ECU type data DCB (step 112), and the set BAT ECU type data DCB is transmitted to the FI ECU 21 (step 113), and this process is terminated.
この場合、FIECU21へのBATECU種別データDCBの送信は、信号線53、MOTECU61及び信号線55を介して行われる。また、BATECU種別データDCBがFIECU21に送信されると、FIECU21のCPU23aによって、受信されたBATECU種別データDCBが、EEPROM24に書き込まれる。これにより、更新された最新のBATECU種別データDCBが、EEPROM24に記憶される。
In this case, transmission of the BAT ECU type data DCB to the
次に、図12を参照しながら、FIECU21のCPU23aによって実行される書込み判定処理について説明する。本処理は、図9のステップ93及び図11のステップ113によりそれぞれ送信されたMOTECU種別データDCM及びBATECU種別データDCBを受信するのに伴って実行される。
Next, the write determination process executed by the
図12のステップ121では、受信したMOTECU種別データDCMと、図7の前記ステップ63で設定されたモータ書込み用種別データWDCMとの比較結果に基づいて、MOTECU61においてモータ書込み用プログラムPRUMの書込みが適正に行われたか否かを判定し、本処理を終了する。具体的には、MOTECU種別データDCMで表される各種のデータ(バージョン番号、仕向け先など)と、モータ書込み用種別データWDCMで表される各種のデータ(バージョン番号、仕向け先など)とがすべて一致しているときには、モータ書込み用プログラムPRUMの書込みが適正に行われたと判定され、一致していないときには、適正に行われていないと判定される。
In step 121 of FIG. 12, the motor write program PRUM is properly written in the
上記ステップ121に続くステップ122では、受信したBATECU種別データDCBと、図7の前記ステップ67で設定されたバッテリ書込み用種別データWDCBとの比較結果に基づいて、BATECU71においてバッテリ書込み用プログラムPRUBの書込みが適正に行われたか否かを判定し、本処理を終了する。具体的には、BATECU種別データDCBで表される各種のデータ(バージョン番号、仕向け先など)と、バッテリ書込み用種別データWDCBで表される各種のデータ(バージョン番号、仕向け先など)とがすべて一致しているときには、バッテリ書込み用プログラムPRUBの書込みが適正に行われたと判定され、一致していないときには、適正に行われていないと判定される。
In step 122 following step 121, based on the comparison result between the received BAT ECU type data DCB and the battery write type data WDCB set in step 67 of FIG. 7, the
また、第2実施形態における各種の要素と、本発明における各種の要素との対応関係は、次のとおりである。すなわち、第2実施形態におけるFIECU21、MOTECU61及びBATECU71が、本発明における第1、第2及び第3制御ユニットにそれぞれ相当するとともに、第2実施形態におけるCPU23aが、本発明における第2書込み用種別データ送信手段、第3書込み用種別データ送信手段及び判定手段に相当する。
Moreover, the correspondence between the various elements in the second embodiment and the various elements in the present invention is as follows. That is, the
また、第2実施形態におけるEEPROM24が、本発明における第2種別データ記憶手段及び第3種別データ記憶手段に相当し、第2実施形態におけるCPU63aが、本発明における第2書込み用データ書込み手段及び第2種別データ転送手段に相当するとともに、第2実施形態におけるCPU73aが、本発明における第3書込み用データ書込み手段に相当する。
The
以上のように、第2実施形態によれば、BATECU71が、MOTECU61を介して書込みユニット52に接続される。また、BATECU71に書き込むべきデータであるバッテリ書込み用プログラムPRUBが、書込みユニット52からMOTECU61を介してBATECU71に送信される(図8のステップ79、図10のステップ101)とともに、BATECU71に書き込まれる(図11のステップ111)。
As described above, according to the second embodiment, the
このように、書込みユニット52に既に接続されているMOTECU61を介して、BATECU71へのバッテリ書込み用プログラムPRUBの送信を行うことができるので、BATECU71を書込みユニット52に接続するための回路を新たに構成する必要がない。したがって、その分、データ書込み装置51の小型化及び製造コストの削減を図ることができる。
In this way, since the battery writing program PRUB can be transmitted to the
また、BATECU71における書込みデータの種別を表すBATECU種別データDCBが、FIECU21のEEPROM24に記憶されており、FIECU21は、BATECU71にバッテリ書込み用プログラムPRUBを書き込むに際し、記憶されたBATECU種別データDCBに基づいて、BATECU71に書き込むべきデータの種別を表すバッテリ書込み用種別データWDCBを設定する(図7のステップ67)。
Further, the BAT ECU type data DCB representing the type of write data in the
このように、バッテリ書込み用種別データWDCBは、BATECU71における書込みデータの種別(バージョン番号や、仕向け先など)を表すBATECU種別データDCBに基づいて取得されるため、BATECU71に書き込むべきデータの種別を良好に指示する。また、このバッテリ書込み用種別データWDCBが、FIECU21のEEPROM24に記憶されたBATECU種別データDCBに基づいてFIECU21により設定され、書込みユニット2に送信される(図7のステップ68)とともに、送信されたバッテリ書込み用種別データWDCBに応じて、BATECU71に書き込むべきデータであるバッテリ書込み用プログラムPRUBが読み出され(図8のステップ77)、BATECU71に書き込まれる(図11のステップ111)。
Thus, since the battery write type data WDCB is obtained based on the BAT ECU type data DCB indicating the type of write data (version number, destination, etc.) in the
また、第2実施形態では、車両の出荷後はもちろん、車両の製造時でBATECU71へのデータの書込み動作が一度も行われていないことにより、あるいは、BATECU71に書き込まれていたデータが何らかの理由で消失したことなどにより、BATECU71にバッテリ制御用プログラムPRBなどのデータが書き込まれていないBATECU71の初期状態においても、上述したBATECU71へのバッテリ書込み用プログラムPRUBの書込みが行われる。以上により、この初期状態においても、BATECU71へのバッテリ書込み用プログラムPRUBの書込みを、BATECU71における書込みデータの種別に応じて適切に行うことができる。
In the second embodiment, not only after the vehicle is shipped, but also because the data writing operation to the
さらに、前述したように、バッテリ書込み用種別データWDCBが、BATECU種別データDCBで表される、そのときのバッテリ制御用プログラムPUBのバージョン番号よりも1つ新しいバージョン番号を表すように設定される。したがって、バッテリ制御用プログラムPUBが古いバージョンのバッテリ書込み用プログラムPRUBに誤って書き換えられたり、同じバージョンのバッテリ書込み用プログラムPRUBに無駄に書き換えられたりするのを、防止することができる。 Further, as described above, the battery writing type data WDCB is set so as to represent a version number one newer than the version number of the battery control program PUB at that time, which is represented by the BAT ECU type data DCB. Therefore, it is possible to prevent the battery control program PUB from being erroneously rewritten by an old version of the battery write program PRUB or being rewritten to the same version of the battery write program PRUB.
また、BATECU71に書き込むべきデータの種別を表すバッテリ書込み用種別データWDCBが、オペレータではなく、FIECU21によって設定されるとともに、それに応じてバッテリ書込み用プログラムPRUBの書込みが行われるので、その書込みにおける人為的なミスを防止することができる。さらに、BATECU71において、BATECU種別データDCBを記憶する必要がないので、その記憶容量を低減することができる。
Further, the battery write type data WDCB indicating the type of data to be written in the
さらに、書き込まれたバッテリ書込み用プログラムPRUBに応じたBATECU書込み用種別データDCUBが、書込みユニット52によりBATECU71に送信される(図8のステップ78、80)とともに、最新のBATECU種別データDCBとして設定される(図11のステップ112)。また、設定された最新のBATECU種別データDCBが、BATECU71からFIECU21に送信(転送)される(ステップ113)。さらに、FIECU21により、バッテリ書込み用種別データWDCBと送信された最新のBATECU種別データDCBとの比較結果に基づいて、BATECU71へのバッテリ書込み用プログラムPRUBの書込みが適正に行われたか否かが判定される(図12のステップ122)。
Further, the BAT ECU writing type data DCUB corresponding to the written battery writing program PRUB is transmitted to the
前述したようにバッテリ書込み用種別データWDCBは、BATECU71に書き込むべきデータの種別を表すので、BATECU71へのデータの書込みが適正に行われた場合には、バッテリ書込み用種別データWDCBと、BATECU71に書き込まれたバッテリ書込み用プログラムPRUBに応じた最新のBATECU種別データDCBとは、互いに一致する。したがって、上述した判定により、BATECU71へのバッテリ書込み用プログラムPRUBの書込みが適正に行われたか否かを適切に判定でき、それにより、その書込みミスによるBATECU71の不具合を防止することができる。
As described above, the battery writing type data WDCB indicates the type of data to be written to the
また、第1実施形態で述べたCVTECU31に関する効果は、前述した図7〜図12に示す処理の実行内容から明らかなように、MOTECU61についても同様に得ることができる。
Further, the effects related to the
なお、本発明は、説明した実施形態に限定されることなく、種々の態様で実施することができる。例えば、第1実施形態では、CVTECU31への変速書込み用プログラムPRUCの書込みが適正に行われたか否かの判定(以下「書込み判定」という)を、FIECU21により判定しているが、CVTECU31により行ってもよい。
In addition, this invention can be implemented in various aspects, without being limited to the described embodiment. For example, in the first embodiment, the
この場合、CVTECU31からFIECU21に最新のCVTECU種別データDCCを送信せずに、FIECU21からCVTECU31に変速書込み用種別データWDCCを送信するとともに、最新のCVTECU種別データDCCと変速書込み用種別データWDCCとの比較結果に基づいて、上記の書込み判定が行われる。あるいは、上述したCVTECU31による書込み判定と、第1実施形態で述べたFIECU21による書込み判定の双方を行ってもよい。以上のことは、第2実施形態におけるモータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBの書込み判定についても同様に当てはまる。
In this case, the
また、第1及び第2実施形態ではそれぞれ、第2書込み用データとして変速書込み用プログラムPRUC及びモータ書込み用プログラムPRUMを、第2実施形態では、第3書込み用データとしてバッテリ書込み用プログラムPRUBを、それぞれ用いているが、他の適当な書込みデータでもよい。さらに、第1実施形態では、書込みユニット2とFIECU21及びCVTECU31との間を、通信線11を介して、FIECU21とCVTECU31の間を、通信線12を介して、すなわち有線により接続しているが、無線により接続してもよい。このことは、第2実施形態における書込みユニット52とFIECU21及びMOTECU61との間の接続、FIECU21とMOTECU61の間の接続、及び、MOTECU61とBATECU71の間の接続についても同様に当てはまる。
In the first and second embodiments, the shift writing program PRUC and the motor writing program PRUM are used as the second writing data, respectively, and in the second embodiment, the battery writing program PRUB is used as the third writing data. Each is used, but other suitable write data may be used. Furthermore, in the first embodiment, the
また、第1及び第2実施形態では、本発明の記憶手段として、EEPROM24を用いているが、データを記憶可能な他の適当な記憶媒体、例えばフラッシュROMを用いてもよい。さらに、第1及び第2実施形態では、本発明の第1制御ユニットとしてFIECU21を、第2制御ユニットとしてCVTECU31及びMOTECU61を、第3制御ユニットとしてBATECU71を、それぞれ用いているが、他の適当な制御ユニットを用いてもよい。その他、本発明の趣旨の範囲内で、細部の構成を適宜、変更することが可能である。
In the first and second embodiments, the
1 データ書込み装置
2 書込みユニット
21 FIECU(第1制御ユニット)
23a CPU(第2書込み用種別データ送信手段、第3書込み用種別データ送信手 段、判定手段)
24 EEPROM(第2種別データ記憶手段、第3種別データ記憶手段)
31 CVTECU(第2制御ユニット)
33a CPU(第2書込み用データ書込み手段、第2種別データ転送手段)
51 データ書込み装置
52 書込みユニット
61 MOTECU(第2制御ユニット)
63a CPU(第2書込み用データ書込み手段、第2種別データ転送手段)
71 BATECU(第3制御ユニット)
73a CPU(第3書込み用データ書込み手段)
PRUC 変速書込み用プログラム(第2書込み用データ)
DCC CVTECU種別データ(第2種別データ)
WDCC 変速書込み用種別データ(第2書込み用種別データ)
PRUM モータ書込み用プログラム(第2書込み用データ)
DCM MOTECU種別データ(第2種別データ)
WDCM モータ書込み用種別データ(第2書込み用種別データ)
PRUB バッテリ書込み用プログラム(第3書込み用データ)
DCB BATECU種別データ(第3種別データ)
WDCB バッテリ書込み用種別データ(第3書込み用種別データ)
DESCRIPTION OF
23a CPU (second writing type data transmission means, third writing type data transmission means, determination means)
24 EEPROM (second type data storage means, third type data storage means)
31 CVTECU (second control unit)
33a CPU (second writing data writing means, second type data transferring means)
51 Data Writing Device 52
63a CPU (second writing data writing means, second type data transferring means)
71 BAT ECU (third control unit)
73a CPU (third data writing means)
PRUC Shift writing program (second writing data)
DCC CVT ECU type data (second type data)
WDCC Shift writing type data (second writing type data)
PRUM Motor writing program (second writing data)
DCM MOTECU type data (second type data)
WDCM motor writing type data (second writing type data)
PRUB Battery write program (3rd write data)
DCB BAT ECU type data (third type data)
WDCB Battery write type data (third write type data)
Claims (8)
前記第2制御ユニットは、前記第1制御ユニットに通信可能に接続されており、
前記第2制御ユニットにおける書込みデータの種別を表す第2種別データを前記第1制御ユニットに記憶し、
当該第1制御ユニットは、前記第2制御ユニットにデータを書き込むに際し、前記記憶された第2種別データに基づいて、前記第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データを取得するとともに、前記書込みユニットに送信し、
前記書込みユニットは、前記送信された第2書込み用種別データに応じて、前記第2制御ユニットに書き込むべきデータである第2書込み用データを前記第2制御ユニットに送信し、
前記送信された第2書込み用データを前記第2制御ユニットに書き込み、
前記書込みユニットは、前記第2書込み用データに加え、当該第2書込み用データに応じた最新の前記第2種別データを前記第2制御ユニットに送信し、
前記第2制御ユニットは、前記送信された最新の第2種別データを前記第1制御ユニットに送信し、
前記第1制御ユニットは、前記第2書込み用種別データと前記送信された最新の第2種別データとの比較結果に基づいて、前記第2制御ユニットへのデータの書込みが適正に行われたか否かを判定することを特徴とするデータ書込み方法。 A data writing method for writing data to the first and second control units using a writing unit communicatively connected to a first control unit and a second control unit,
The second control unit is communicably connected to the first control unit,
Storing second type data representing a type of write data in the second control unit in the first control unit;
When the first control unit writes data to the second control unit, based on the stored second type data, the first control unit outputs second type data for writing indicating the type of data to be written to the second control unit. Obtain and send to the writing unit,
The writing unit transmits, to the second control unit, second writing data, which is data to be written to the second control unit, in accordance with the transmitted second writing type data.
Write the second write data the sent to the second control unit,
The writing unit transmits the latest second type data corresponding to the second writing data to the second control unit in addition to the second writing data,
The second control unit transmits the transmitted second latest type data to the first control unit;
Whether the first control unit has properly written the data to the second control unit based on the comparison result between the second write type data and the transmitted second latest type data. A data writing method characterized by determining whether or not .
前記第3制御ユニットに書き込むべきデータである第3書込み用データを、前記書込みユニットから前記第2制御ユニットを介して前記第3制御ユニットに送信し、
前記送信された第3書込み用データを、前記第3制御ユニットに書き込むことを特徴とする、請求項1又は2に記載のデータ書込み方法。 A third control unit is communicably connected to the writing unit via the second control unit,
Transmitting third write data, which is data to be written to the third control unit, from the write unit to the third control unit via the second control unit;
3. The data writing method according to claim 1, wherein the transmitted third writing data is written to the third control unit. 4.
当該第1制御ユニットは、前記第3制御ユニットに前記第3書込み用データを書き込むに際し、前記記憶された第3種別データに基づいて、前記第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データを取得するとともに、前記書込みユニットに送信し、
前記書込みユニットは、前記送信された第3書込み用種別データに応じて、前記第3書込み用データを取得することを特徴とする、請求項3に記載のデータ書込み方法。 Storing third type data representing the type of write data in the third control unit in the first control unit;
When the first control unit writes the third write data to the third control unit, the first control unit indicates a third type representing the type of data to be written to the third control unit based on the stored third type data. Acquires the type data for writing and sends it to the writing unit,
The data writing method according to claim 3, wherein the writing unit acquires the third writing data according to the transmitted third writing type data.
当該第1制御ユニットに通信可能に接続され、データを書き込み可能な第2制御ユニットと、A second control unit communicably connected to the first control unit and capable of writing data;
前記第1及び第2制御ユニットに通信可能に接続される書込みユニットと、を備え、A writing unit communicatively connected to the first and second control units,
前記第1制御ユニットは、The first control unit includes:
前記第2制御ユニットにおける書込みデータの種別を表す第2種別データを記憶する第2種別データ記憶手段と、Second type data storage means for storing second type data representing the type of write data in the second control unit;
前記第2制御ユニットにデータを書き込むに際し、前記記憶された第2種別データに基づいて、前記第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データを取得するとともに、前記書込みユニットに送信する第2書込み用種別データ送信手段と、を有し、When writing data to the second control unit, second write type data representing the type of data to be written to the second control unit is acquired based on the stored second type data, and the write unit A second writing type data transmitting means for transmitting to
前記書込みユニットは、前記送信された第2書込み用種別データに応じて、前記第2制御ユニットに書き込むべきデータである第2書込み用データを前記第2制御ユニットに送信する第2書込み用データ送信手段を有し、The writing unit transmits second writing data, which is data to be written to the second control unit, to the second control unit according to the transmitted second writing type data. Having means,
前記第2制御ユニットは、前記送信された第2書込み用データを当該第2制御ユニットに書き込む第2書込み用データ書込み手段を有し、The second control unit has second write data writing means for writing the transmitted second write data to the second control unit,
前記書込みユニットは、前記第2書込み用データに加え、当該第2書込み用データに応じた最新の前記第2種別データを前記第2制御ユニットに送信する第2種別データ送信手段をさらに有し、The writing unit further includes second type data transmission means for transmitting the latest second type data corresponding to the second write data to the second control unit in addition to the second write data,
前記第2制御ユニットは、前記送信された最新の前記第2種別データを前記第1制御ユニットに送信する第2種別データ転送手段をさらに有し、The second control unit further includes second type data transfer means for transmitting the latest transmitted second type data to the first control unit,
前記第1制御ユニットは、前記第2書込み用種別データと前記送信された最新の第2種別データとの比較結果に基づいて、前記第2制御ユニットへのデータの書込みが適正に行われたか否かを判定する判定手段をさらに有することを特徴とするデータ書込み装置。Whether the first control unit has properly written the data to the second control unit based on the comparison result between the second write type data and the transmitted second latest type data. A data writing apparatus further comprising determination means for determining whether or not.
前記第3制御ユニットに書き込むべきデータである第3書込み用データが、前記書込みユニットから前記第2制御ユニットを介して前記第3制御ユニットに送信され、
前記第3制御ユニットは、前記送信された第3書込み用データを書き込む第3書込み用データ書込み手段を有することを特徴とする、請求項5又は6に記載のデータ書込み装置。 A third control unit is communicably connected to the writing unit via the second control unit,
Third writing data that is data to be written to the third control unit is transmitted from the writing unit to the third control unit via the second control unit,
7. The data writing apparatus according to claim 5 , wherein the third control unit includes a third writing data writing unit that writes the transmitted third writing data .
前記第3制御ユニットにおける書込みデータの種別を表す第3種別データを記憶する第3種別データ記憶手段と、
前記第3制御ユニットに前記第3書込み用データを書き込むに際し、前記記憶された第3種別データに基づいて、前記第3制御ユニットに書き込むべきデータの種別を表す第3書込み用種別データを取得するとともに、前記書込みユニットに送信する第3書込み用種別データ送信手段と、をさらに有し、
前記書込みユニットは、前記送信された第3書込み用種別データに応じて、前記第3書込み用データを取得する第3書込み用データ取得手段を有することを特徴とする、請求項7に記載のデータ書込み装置。 The first control unit includes:
Third type data storage means for storing third type data representing the type of write data in the third control unit;
When writing the third write data to the third control unit, the third write type data representing the type of data to be written to the third control unit is acquired based on the stored third type data. And a third writing type data transmitting means for transmitting to the writing unit,
8. The data according to claim 7 , wherein the writing unit includes a third writing data acquisition unit that acquires the third writing data according to the transmitted third writing type data. 9. Writing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012280953A JP5625036B2 (en) | 2012-12-25 | 2012-12-25 | Data writing method and data writing apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2012280953A JP5625036B2 (en) | 2012-12-25 | 2012-12-25 | Data writing method and data writing apparatus |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2014124978A JP2014124978A (en) | 2014-07-07 |
JP5625036B2 true JP5625036B2 (en) | 2014-11-12 |
Family
ID=51404854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2012280953A Expired - Fee Related JP5625036B2 (en) | 2012-12-25 | 2012-12-25 | Data writing method and data writing apparatus |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP5625036B2 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102017107277B4 (en) * | 2017-04-05 | 2024-06-13 | Hanon Systems | Procedure for updating control software in a high-voltage control unit |
Family Cites Families (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4311067B2 (en) * | 2003-04-02 | 2009-08-12 | 株式会社デンソー | Data rewriting method and electronic control device |
JP2006221274A (en) * | 2005-02-08 | 2006-08-24 | Denso Corp | Electronic control device for vehicle and rewriting method of control program |
JP4692231B2 (en) * | 2005-11-04 | 2011-06-01 | 株式会社デンソー | Electronic control device for vehicle |
JP2008168649A (en) * | 2007-01-05 | 2008-07-24 | Mazda Motor Corp | Vehicular control system |
JP5060242B2 (en) * | 2007-10-12 | 2012-10-31 | 本田技研工業株式会社 | Update device for vehicle control program |
JP4404147B2 (en) * | 2008-01-23 | 2010-01-27 | 株式会社デンソー | In-vehicle electronic control device and information updating method for in-vehicle electronic control device |
JP2010198155A (en) * | 2009-02-24 | 2010-09-09 | Fujitsu Ten Ltd | Device and method for updating program, and information processing apparatus |
JP2010195111A (en) * | 2009-02-24 | 2010-09-09 | Fujitsu Ten Ltd | Onboard computer system |
JP5111486B2 (en) * | 2009-12-24 | 2013-01-09 | 本田技研工業株式会社 | Update apparatus and update method for control program |
JP5790514B2 (en) * | 2012-01-23 | 2015-10-07 | 株式会社デンソー | Electronic equipment |
-
2012
- 2012-12-25 JP JP2012280953A patent/JP5625036B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2014124978A (en) | 2014-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108491224A (en) | A kind of vehicle-mounted Oftware updating method and system | |
CN112286170B (en) | Vehicle ECU (electronic control Unit) flashing method, device and equipment and storage medium | |
JP5178962B1 (en) | Train information management apparatus and control software selection method thereof | |
JP5353545B2 (en) | In-vehicle network device | |
JP4539757B2 (en) | Electronic control unit | |
JP2010258990A (en) | Control system and control program updating method | |
CN109491671A (en) | Diagnostic software method for down loading, device, terminal device and storage medium | |
JP2019159401A (en) | Electronic control unit system, and software consistency check system in electronic control unit system | |
CN111176695A (en) | Vehicle ECU configuration method, server and terminal | |
WO2019009115A1 (en) | Electronic control system | |
CN110494847A (en) | Trunking, transfer approach and computer program | |
US10365918B2 (en) | Control means, in-vehicle program rewriting device equipped with same, and in-vehicle program rewriting method | |
CN113383390A (en) | Electronic control device and program update method | |
CN104718111B (en) | Method and device for exchanging data in a motor vehicle for operating an actuator | |
JP5625036B2 (en) | Data writing method and data writing apparatus | |
JP5111486B2 (en) | Update apparatus and update method for control program | |
EP2709073A2 (en) | Electronic control unit of vehicle | |
JP6718483B2 (en) | vehicle | |
JP5643058B2 (en) | Vehicle fault diagnosis control device | |
US20230327882A1 (en) | Non-reputable vehicle change history | |
JP6935694B2 (en) | Electronic control device | |
JP6538562B2 (en) | Method for controlling a torque transfer device | |
JP2013192092A (en) | On-vehicle device | |
JP2019052961A (en) | Test group identification information automatic generation method, program, electronic control device, and vehicle | |
CN107005552B (en) | Method for communication between a production tool and a motor vehicle |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20140624 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20140709 |
|
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: 20140902 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20140929 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 5625036 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
LAPS | Cancellation because of no payment of annual fees |