JP5625036B2 - Data writing method and data writing apparatus - Google Patents

Data writing method and data writing apparatus Download PDF

Info

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
Application number
JP2012280953A
Other languages
Japanese (ja)
Other versions
JP2014124978A (en
Inventor
隆俊 齋藤
隆俊 齋藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2012280953A priority Critical patent/JP5625036B2/en
Publication of JP2014124978A publication Critical patent/JP2014124978A/en
Application granted granted Critical
Publication of JP5625036B2 publication Critical patent/JP5625036B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric 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/02Electric 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 Patent Document 1 is known. The data writing device transmits an identification code acquisition program to the control device when rewriting the control program of the vehicle control device. The control device generates and acquires an identification code for identifying its own microcomputer in accordance with the transmitted identification code acquisition program.

この場合、識別コードの生成は、制御装置の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.

特開2006−21274号公報JP 2006-21274 A

しかし、上述したように、従来のデータ書込み装置では、制御装置に用意されているポートなどに応じて識別コードを取得するとともに、取得された識別コードに基づいてプログラムが書き換えられる。このため、例えば車両の製造時で制御装置へのデータの書込み動作が一度も行われていないことにより、あるいは、制御装置に書き込まれていたデータが何らかの理由で消失したことなどにより、制御装置にデータが書き込まれていない制御装置の初期状態である場合には、マイクロコンピュータの種別に応じてプログラムを適切に書き換えることができないおそれがある。   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 claim 1 is communicably connected to the first control unit (FIECU 21 in the embodiment (hereinafter, the same in this section)) and the second control unit (CVTECU31, MOTECU61). A data writing method for writing data to the first and second control units using the writing units 2 and 52, wherein the second control unit is communicably connected to the first control unit, Second type data (CVTECU type data DCC, MOTECU type data DCM) representing the type of write data in the two control units is stored in the first control unit, and the first control unit writes data to the second control unit. The type of data to be written to the second control unit based on the stored second type data Second type data for writing (type data for shifting writing WDCC, type data for motor writing WDCM) is acquired (step 9 in FIG. 2, step 63 in FIG. 7) and transmitted to the writing units 2 and 52 (FIG. 2, step 64 in FIG. 7), and the writing units 2 and 52, according to the transmitted second writing type data, second writing data (shift writing) that is data to be written to the second control unit. Program PRUC, motor writing program PRUM) is transmitted to the second control unit (steps 27 and 29 in FIG. 3, steps 72 and 74 in FIG. 8), and the transmitted second writing data is transmitted to the second control unit. write (step 41 in FIG. 4, step 91 in FIG. 9), the writing unit, in addition to the second write data, for the second write de The latest second type data corresponding to the data is transmitted to the second control unit (steps 28 and 30 in FIG. 3, steps 73 and 75 in FIG. 8), and the second control unit transmits the latest second type data transmitted. The data is transmitted to the first control unit (steps 42 and 43 in FIG. 4, steps 92 and 93 in FIG. 9), and the first control unit transmits the second type data for writing and the latest second type data transmitted. Based on the comparison result, it is determined whether or not data writing to the second control unit has been properly performed (step 51 in FIG. 5 and step 121 in FIG. 12) .

この構成によれば、書込みユニットを用いて、第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 claim 1 Is done. Therefore, the effect of the invention according to claim 1 can be obtained effectively.

請求項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 (step 79 in FIG. 8, FIG. 10 step 101), the transmitted third write data is written in the third control unit (step 111 in FIG. 11).

この構成によれば、第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 (step 77 in FIG. 8).

この構成によれば、第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.

前記目的を達成するために、請求項に係る発明によるデータ書込み装置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 data writing device 1, 51 according to a fifth aspect of the present invention includes a first control unit (FIECU 21 in the embodiment (hereinafter the same in this section)) capable of writing data, a first A second control unit (CVTECU31, MOTECU61) that is communicably connected to the control unit and can write data; and write units 2 and 52 that are communicably connected to the first and second control units. The first control unit includes second type data storage means (EEPROM 24) for storing second type data (CVTECU type data DCC, MOTECU type data DCM) indicating the type of write data in the second control unit, and the second control unit. When writing the data, the second control unit is based on the stored second type data. The second write type data (the shift write type data WDCC, the motor write type data WDCM) representing the type of data to be written to the mobile station and transmitted to the write units 2 and 52 are acquired. Transmission means (CPU 23a, steps 9 and 10 in FIG. 2, steps 63 and 64 in FIG. 7), and the writing units 2 and 52 perform the second control according to the transmitted second writing type data. Second writing data transmitting means (steps 27 and 29 in FIG. 3, FIG. 3) for transmitting second writing data (shift writing program PRUC, motor writing program PRUM) to be written to the unit to the second control unit. 8, and the second control unit sends the transmitted second write data to the second control unit. Second write data writing means for writing (CPU33a, CPU63a, step 41 in FIG. 4, step 91 of FIG. 9) have a, writing unit 2, 52, in addition to the second write data, a second write data The second type data transmitting means (steps 28 and 30 in FIG. 3, steps 73 and 75 in FIG. 8) for transmitting the latest second type data in response to the second control unit is further provided. Second type data transfer means (CPU 33a, CPU 63a, steps 42 and 43 in FIG. 4, steps 92 and 93 in FIG. 9) for transmitting the latest transmitted second type data to the first control unit, 1 The control unit properly writes data to the second control unit based on the comparison result between the second writing type data and the latest second type data transmitted. Further, it is characterized by further comprising determination means (CPU 23a, step 51 in FIG. 5, step 121 in FIG. 12) for determining whether or not it has been performed .

以上の構成の請求項に係る発明は、請求項1に係るデータ書込み方法に関する発明をデータ書込み装置に関する発明に書き換えたものであるので、請求項1に係る発明による作用・効果を同様に得ることができる。具体的には、第2制御ユニットにおける書込みデータの種別を表す第2種別データが、第1制御ユニットの第2種別データ記憶手段によって記憶されている。また、第2制御ユニットにデータを書き込むに際し、第1制御ユニットの第2書込み用種別データ送信手段によって、記憶された第2種別データに基づき、第2制御ユニットに書き込むべきデータの種別を表す第2書込み用種別データが取得されるとともに、書込みユニットに送信される。 The invention according to claim 5 having the above configuration is obtained by rewriting the invention relating to the data writing method according to claim 1 to the invention relating to the data writing device, and thus the same operation and effect of the invention according to claim 1 are obtained. be able to. Specifically, second type data representing the type of write data in the second control unit is stored in the second type data storage means of the first control unit. Further, when data is written to the second control unit, the second type data transmitting means of the first control unit indicates the type of data to be written to the second control unit based on the stored second type data. 2 Writing type data is acquired and transmitted to the writing unit.

このように、第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.

請求項に係る発明は、請求項に記載のデータ書込み装置1、51において、第2制御ユニットへの第2書込み用データの書込みを、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態において行うことを特徴とする。 Invention is the data writing apparatus 1 and 51 according to claim 5, the writing of the second write data to the second control unit, second data to the second control unit is not written according to claim 6 This is performed in the initial state of the control unit.

この構成によれば、第2制御ユニットにデータが書き込まれていない第2制御ユニットの初期状態において、請求項に係る発明の説明で述べた第2制御ユニットへの第2書込み用データの書込みが行われる。したがって、請求項に係る発明による効果を有効に得ることができる。 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 claim 5 Is done. Therefore, the effect of the invention according to claim 5 can be obtained effectively.

請求項に係る発明は、請求項又はに記載のデータ書込み装置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 data writing device 51 according to the fifth or sixth aspect , the third control unit (BATECU 71) is communicably connected to the writing unit 52 via the second control unit. Third write data (battery write program PRUB) that is data to be written to the three control units is transmitted from the write unit 52 to the third control unit via the second control unit (step 79 in FIG. 8, FIG. 10). Step 101), the third control unit is characterized by having third write data writing means (CPU 73a, step 111 in FIG. 11) for writing the transmitted third write data.

以上の構成の請求項に係る発明は、請求項3に係るデータ書込み方法に関する発明をデータ書込み装置に関する発明に書き換えたものであるので、請求項3に係る発明による作用・効果を同様に得ることができる。具体的には、第3制御ユニットが、第2制御ユニットを介して書込みユニットに接続される。また、第3制御ユニットに書き込むべきデータである第3書込み用データが、書込みユニットから第2制御ユニットを介して第3制御ユニットに送信されるとともに、第3制御ユニットの第3書込み用データ書込み手段によって、送信された第3書込み用データが第3制御ユニットに書き込まれる。 The invention according to claim 7 having the above-described configuration is obtained by rewriting the invention relating to the data writing method according to claim 3 to the invention relating to the data writing device, so that the operation and effect of the invention according to claim 3 are similarly obtained. be able to. Specifically, the third control unit is connected to the writing unit via the second control unit. In addition, the third write data, which 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 third write data write of the third control unit is also performed. The transmitted third writing data is written to the third control unit by the means.

このように、書込みユニットに既に接続されている第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.

請求項に係る発明は、請求項に記載のデータ書込み装置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 data writing device 51 according to the seventh aspect , the first control unit stores third type data (BAT ECU type data DCB) indicating the type of write data in the third control unit. A third type data storage means (EEPROM 24) and a third type representing the type of data to be written to the third control unit based on the stored third type data when writing the third write data to the third control unit. And a third write type data transmission means (CPU 23a, steps 67 and 68 in FIG. 7) for acquiring the write type data (battery write type data WDCB) and transmitting the write type data to the write unit 52. The unit 52 acquires the third writing data according to the transmitted third writing type data. 3 and having a write data acquisition means (step 77 in FIG. 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 claim 4 to the invention relating to the data writing apparatus, and thus similarly obtains the operation and effect of the invention according to claim 4. be able to. Specifically, third type data representing the type of write data in the third control unit is stored in the third type data storage means of the first control unit. In addition, when writing the third write data to the third control unit, the third write type data transmitting means of the first control unit, based on the stored third type data, stores the data to be written to the third control unit. Third type data for writing indicating the type is acquired and transmitted to the writing unit.

このように、第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実施形態によるデータ書込み装置を、これを適用したエンジンなどとともに示すブロック図である。1 is a block diagram showing a data writing device according to a first embodiment of the present invention together with an engine to which the data writing device is applied. FIG. 図1のFIECUにより実行される第1書込み処理を示すフローチャートである。It is a flowchart which shows the 1st write-in process performed by FICU of FIG. 図1の書込みユニットにより実行される送信処理を示すフローチャートである。It is a flowchart which shows the transmission process performed by the writing unit of FIG. 図1のCVTECUにより実行される第2書込み処理を示すフローチャートである。It is a flowchart which shows the 2nd write-in process performed by CVTECU of FIG. 図1のFIECUにより実行される書込み判定処理を示すフローチャートである。It is a flowchart which shows the write determination process performed by FICU of FIG. 本発明の第2実施形態によるデータ書込み装置を、これを適用したエンジンなどとともに示すブロック図である。It is a block diagram which shows the data writer by 2nd Embodiment of this invention with the engine etc. which applied this. 図6のFIECUによって実行される第1書込み処理を示すフローチャートである。It is a flowchart which shows the 1st write-in process performed by FICU of FIG. 図6の書込みユニットによって実行される送信処理を示すフローチャートである。It is a flowchart which shows the transmission process performed by the writing unit of FIG. 図6のMOTECUによって実行される第2書込み処理を示すフローチャートである。It is a flowchart which shows the 2nd write-in process performed by MOTECU of FIG. 図6のMOTECUによって実行される転送処理を示すフローチャートである。It is a flowchart which shows the transfer process performed by MOTECU of FIG. 図6のBATECUによって実行される第3書込み処理を示すフローチャートである。It is a flowchart which shows the 3rd writing process performed by BATECU of FIG. 図6のFIECUによって実行される書込み判定処理を示すフローチャートである。It is a flowchart which shows the write determination process performed by FIECU of FIG.

以下、図面を参照しながら、本発明の好ましい実施形態を詳細に説明する。図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 engine 3 shown in FIG. 1 is a gasoline engine mounted as a power source in a vehicle (not shown), and a fuel injection valve (hereinafter referred to as “injector”) 4 is attached to the engine 3. The valve opening time and valve opening timing of the injector 4 are controlled by a fuel injection control ECU (hereinafter referred to as “FIECU”) 21 to be described later, thereby controlling the fuel injection amount and the fuel injection timing, respectively.

また、エンジン3は、無段変速機(以下「CVT」という)5を介して、車両の駆動輪(図示せず)に連結されている。CVT5は、後述する変速比制御用のECU(以下「CVTECU」という)31によって制御され、それにより変速比が制御される。   Further, the engine 3 is connected to driving wheels (not shown) of the vehicle via a continuously variable transmission (hereinafter referred to as “CVT”) 5. The CVT 5 is controlled by a gear ratio control ECU (hereinafter referred to as “CVTECU”) 31 which will be described later, thereby controlling the gear ratio.

本発明の第1実施形態によるデータ書込み装置1は、燃料制御用プログラムPRF及び変速制御用プログラムPRCの書込みを行うためのものであり、書込みユニット2、FIECU21及びCVTECU31を備えている。なお、本明細書における「書込み」には、新規にデータを書き込むことに加え、データを書き換えて更新することが含まれる。また、上記の燃料制御用プログラムPRFは燃料の噴射量及び噴射時期を、変速制御用プログラムPRCは変速比を、それぞれ制御するためのものであり、以下、両者PRF、PRCを適宜、総称して「制御用プログラム」という。   The data writing device 1 according to the first embodiment of the present invention is for writing the fuel control program PRF and the shift control program PRC, and includes a writing unit 2, FIECU 21 and CVTECU 31. Note that “writing” in this specification includes rewriting and updating data in addition to newly writing data. The fuel control program PRF controls the fuel injection amount and injection timing, and the gear shift control program PRC controls the gear ratio. Hereinafter, both PRF and PRC will be collectively referred to as appropriate. This is called a “control program”.

書込みユニット2は、制御用プログラムの書込み時に、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCを、FIECU21及びCVTECU31にそれぞれ送信するためのものである。燃料書込み用プログラムPRUFは上記の燃料制御用プログラムPRFとして、変速書込み用プログラムPRUCは変速制御用プログラムPRCとして、それぞれ書き込まれるものである。   The writing unit 2 is for transmitting the fuel writing program PRUF and the shift writing program PRUC to the FIECU 21 and the CVTECU 31, respectively, when writing the control program. The fuel write program PRUF is written as the fuel control program PRF, and the shift write program PRUC is written as the shift control program PRC.

また、書込みユニット2は、記録媒体(図示せず)を有しており、この記録媒体には、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCとして、バージョン番号や、FIECU21及びCVTECU31の製造年月日、車両の車種、車両の仕向け先などに応じて種別された多数のプログラムが記録されている。   Further, the writing unit 2 has a recording medium (not shown). The recording medium includes a version number and the manufacturing date of the FIECU 21 and the CVTECU 31 as a fuel writing program PRUF and a shift writing program PRUC. A large number of programs classified according to date, vehicle type, destination of vehicle, and the like are recorded.

また、上記の記録媒体には、多数の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 EEPROM 24 described later of the FIECU 21 as FIECU type data DCF and CVTECU type data DCC described later, respectively.

さらに、書込みユニット2は、車両に搭載されておらず、車両の製造時やメンテナンス時において、FIECU21及びCVTECU31に燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCなどをそれぞれ書き込むときに、コネクタ(図示せず)や信号線11を介して、FIECU21及びCVTECU31に通信可能に接続される。燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCは、その書込みに際し、信号線11を介して、FIECU21及びCVTECU31にそれぞれ送信される。その詳細については後述する。   Further, the writing unit 2 is not mounted on the vehicle, and a connector (not shown) is used when writing the fuel writing program PRUF, the shift writing program PRUC, and the like in the FIECU 21 and the CVTECU 31 during vehicle manufacture and maintenance, respectively. Or via the signal line 11 so as to be communicable with the FIECU 21 and the CVTECU 31. The fuel writing program PRUF and the shift writing program PRUC are transmitted to the FIECU 21 and the CVTECU 31 via the signal line 11 at the time of writing. Details thereof will be described later.

FIECU21は、通信用インターフェース(I/F)22、マイコン23及びEEPROM24を有している。通信用I/F22は、書込みユニット2とマイコン23の後述するCPU23aとの間でCAN通信を行うためのものであり、書込みユニット2から送信された燃料書込み用プログラムPRUFを信号線11を介して受信し、CPU23aに送信する。   The FIECU 21 includes a communication interface (I / F) 22, a microcomputer 23, and an EEPROM 24. The communication I / F 22 is for performing CAN communication between the writing unit 2 and a CPU 23a (described later) of the microcomputer 23. The fuel writing program PRUF transmitted from the writing unit 2 is transmitted via the signal line 11. Receive and send to CPU 23a.

マイコン23は、CPU23a及びフラッシュROM23bなどで構成されている。フラッシュROM23bは、燃料制御用プログラムPRFを記憶するための記憶領域を有している。CPU23aは、書込みユニット2から燃料書込み用プログラムPRUFを受信したときに、燃料書込み用プログラムPRUFを燃料制御用プログラムPRFとしてフラッシュROM23bの記憶領域に書き込む。その詳細については後述する。また、CPU23aは、燃料制御用プログラムPRFを実行することによって、インジェクタ4の開弁時間及び開弁時期を設定するとともに、その結果に基づいて、インジェクタ4を制御するための制御信号を生成し、インジェクタ4に出力する。   The microcomputer 23 includes a CPU 23a and a flash ROM 23b. The flash ROM 23b has a storage area for storing the fuel control program PRF. When the CPU 23a receives the fuel writing program PRUF from the writing unit 2, the CPU 23a writes the fuel writing program PRUF as the fuel control program PRF in the storage area of the flash ROM 23b. Details thereof will be described later. Further, the CPU 23a sets the valve opening time and valve opening timing of the injector 4 by executing the fuel control program PRF, and generates a control signal for controlling the injector 4 based on the result, Output to the injector 4.

前記EEPROM24には、FIECU種別データDCF及びCVTECU種別データDCCが記憶されている。このFIECU種別データDCFは、上記のフラッシュROM23bにおける書込みデータ(プログラムを含む)の種別を表すものであり、FIECU21の識別番号や、FIECU21の製造年月日、車両の車種、車両の仕向け先、フラッシュROM23bに書き込まれている燃料制御用プログラムPRFのバージョン番号などを表す複数のデータで構成されている。   The EEPROM 24 stores FIECU type data DCF and CVTECU type data DCC. This FIECU type data DCF represents the type of write data (including a program) in the flash ROM 23b, and includes the identification number of the FIECU 21, the date of manufacture of the FIECU 21, the vehicle type, the destination of the vehicle, the flash It consists of a plurality of data representing the version number of the fuel control program PRF written in the ROM 23b.

また、CVTECU種別データDCCは、後述するCVTECU31のフラッシュROM33bにおける書込みデータ(プログラムを含む)の種別を表すものであり、CVTECU31を表す識別番号や、CVTECU31の製造年月日、車両の車種、車両の仕向け先、フラッシュROM33bに書き込まれている変速制御用プログラムPRCのバージョン番号などを表す複数のデータで構成されている。   The CVTECU type data DCC represents the type of write data (including a program) in a flash ROM 33b of the CVTECU 31 described later. The identification number indicating the CVTECU 31, the date of manufacture of the CVTECU 31, the vehicle type, the vehicle It is composed of a plurality of data representing the destination, the version number of the shift control program PRC written in the flash ROM 33b, and the like.

これらのFIECU種別データDCF及びCVTECU種別データDCCは、車両の製造時には、オペレータによってEEPROM24に書き込まれ、その後、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCが書き込まれるのに伴って、CPU23aにより更新される。その詳細については後述する。   These FIECU type data DCF and CVTECU type data DCC are written into the EEPROM 24 by the operator at the time of manufacture of the vehicle, and thereafter updated by the CPU 23a as the fuel writing program PRUF and the shift writing program PRUC are written. The Details thereof will be described later.

なお、車両の製造時などで、燃料制御用プログラムPRFがフラッシュROM23bに書き込まれていないときには、燃料制御用プログラムPRFのバージョン番号として「0」を表すデータが、EEPROM24に書き込まれ、記憶される。同様に、車両の製造時などで、変速制御用プログラムPRCがフラッシュROM33bに書き込まれていないときには、変速制御用プログラムPRCのバージョン番号として「0」を表すデータが、EEPROM24に書き込まれ、記憶される。   When the fuel control program PRF is not written in the flash ROM 23b, for example, when the vehicle is manufactured, data representing “0” is written and stored in the EEPROM 24 as the version number of the fuel control program PRF. Similarly, when the shift control program PRC is not written in the flash ROM 33b, for example, when the vehicle is manufactured, data representing “0” as the version number of the shift control program PRC is written and stored in the EEPROM 24. .

また、CVTECU31は、通信用インターフェース(I/F)32及びマイコン33を有している。通信用I/F32は、書込みユニット2とマイコン33の後述するCPU33aとの間でCAN通信を行うためのものであり、書込みユニット2から送信された変速書込み用プログラムPRUCを信号線11を介して受信し、CPU33aに送信する。   The CVTECU 31 includes a communication interface (I / F) 32 and a microcomputer 33. The communication I / F 32 is for performing CAN communication between the writing unit 2 and a CPU 33a (to be described later) of the microcomputer 33. The transmission writing program PRUC transmitted from the writing unit 2 is transmitted via the signal line 11. Receive and send to CPU 33a.

マイコン33は、CPU33a及びフラッシュROM33bなどで構成されている。フラッシュROM33bは、変速制御用プログラムPRCを記憶するための記憶領域を有している。CPU33aは、書込みユニット2から前述した変速書込み用プログラムPRUCを受信したときに、変速書込み用プログラムPRUCを変速制御用プログラムPRCとしてフラッシュROM33bの記憶領域に書き込む。その詳細については後述する。また、CPU33aは、変速制御用プログラムPRCを実行することによって、CVT5の変速比を設定するとともに、その結果に基づいて、CVT5を制御するための制御信号を生成し、CVT5に出力する。   The microcomputer 33 includes a CPU 33a and a flash ROM 33b. The flash ROM 33b has a storage area for storing the shift control program PRC. When the CPU 33a receives the above-described shift writing program PRUC from the writing unit 2, the CPU 33a writes the shift writing program PRUC as a shift control program PRC in the storage area of the flash ROM 33b. Details thereof will be described later. Further, the CPU 33a sets the transmission ratio of the CVT 5 by executing the transmission control program PRC, generates a control signal for controlling the CVT 5 based on the result, and outputs the control signal to the CVT 5.

また、FIECU21及びCVTECU31は、信号線12を介して互いに通信可能に接続されており、CVTECU31からFIECU21に、この信号線12を介して、CVTECU種別データDCCの送信が行われる。その詳細については後述する。   The FIECU 21 and the CVTECU 31 are communicably connected to each other via the signal line 12, and the CVTECU type data DCC is transmitted from the CVTECU 31 to the FIECU 21 via the signal line 12. Details thereof will be described later.

さらに、FIECU21には、警告灯6が接続されている。FIECU21は、後述する書込み判定処理において、変速書込み用プログラムPRUCの書込みが適正に行われていないと判定されたときに、そのことを表すために警告灯6を点灯させる。   Further, a warning lamp 6 is connected to the FIECU 21. When it is determined in the write determination process described later that the shift writing program PRUC is not properly written, the FI ECU 21 turns on the warning lamp 6 to indicate that.

次に、図2を参照しながら、FIECU21のCPU23aによって実行される第1書込み処理について説明する。本処理は、燃料書込み用プログラムPRUFの書込みなどを行うためのものであり、所定時間ごとに繰り返し実行される。まず、ステップ1(「S1」と図示。以下同じ)では、書込みユニット2から燃料書込み用種別データWDCFの送信が要求されているか否かを判別する。   Next, the first writing process executed by the CPU 23a of the FIECU 21 will be described with reference to FIG. This process is for performing writing of the fuel writing program PRUF and the like, and is repeatedly executed at predetermined time intervals. First, in step 1 (illustrated as “S1”, the same applies hereinafter), it is determined whether or not the writing unit 2 is requested to transmit the fuel writing type data WDCF.

この燃料書込み用種別データ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 flash ROM 23b of the FIECU 21, and this type includes an identification number representing the FIECU 21 corresponding to the FIECU type data DCF described above, The date of manufacture, the type of vehicle, the destination of the vehicle, the version number of the fuel control program PRF to be written to the flash ROM 23b, and the like are included. The transmission request in step 1 is made by an operator's operation when the writing unit 2 is connected to the FIECU 21.

上記ステップ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 EEPROM 24 of the FI ECU 21 (step 2). Next, fuel writing type data WDCF is set based on the read FIECU type data DCF (step 3). Thereby, the data representing the version number in the fuel writing type data WDCF is set so as to represent a version number one newer than the version number represented by the FIECU type data DCF, for example. When the vehicle is in the initial state of the FIECU 21 in which the fuel control program PRF is not written in the flash ROM 23b, for example, when the vehicle is manufactured, the data indicating the version number in the fuel writing type data WDCF is the initial version number. Is set to represent.

上記ステップ3に続くステップ4では、設定した燃料書込み用種別データWDCFを書込みユニット2に送信する。このステップ4の実行により、書込みユニット2は、燃料書込み用種別データWDCFを受信すると、燃料書込み用プログラムPRUF及びFIECU書込み用種別データDCUFをFIECU21に送信する。その詳細については後述する。   In step 4 following step 3, the set fuel writing type data WDCF is transmitted to the writing unit 2. When the writing unit 2 receives the fuel writing type data WDCF by executing Step 4, the writing unit 2 transmits the fuel writing program PRUF and the FIECU writing type data DUF to the FIECU 21. Details thereof will be described later.

そして、書込みユニット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 writing unit 2, the received fuel writing program PRUF is written in the flash ROM 23b as the fuel control program PRF in step 5 following step 4 above. . Next, the received FIECU writing type data DCUF is written in the EEPROM 24 as the latest FIECU type data DCF (step 6), thereby updating the FIECU type data DCF, and this process is terminated.

一方、前記ステップ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 writing unit 2 is requested to transmit the shift writing type data WDCC (step 7). This shift writing type data WDCC indicates the type of data to be written to the flash ROM 33b of the CVTECU 31, and includes the identification number indicating the CVTECU 31, the date of manufacture of the CVTECU 31, the vehicle type, and the vehicle type. The destination and the version number of the shift control program PRC to be written to the flash ROM 33b are included. The transmission request in step 7 is made by an operator's operation when the writing unit 2 is connected to the CVTECU 31.

上記ステップ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 step 9, the data representing the version number in the shift writing type data WDCC is set so as to represent a version number one newer than the version number represented by the CVT ECU type data DCC, for example. When the vehicle is manufactured, for example, when the shift control program PRC is not written in the flash ROM 33b and the CVT ECU 31 is in the initial state, the data indicating the version number in the shift write type data WDCC is the initial version number. Is set to represent.

次に、図3を参照しながら、書込みユニット2によって実行される送信処理について説明する。本処理は、燃料書込み用プログラムPRUF及び変速書込み用プログラムPRUCをFIECU21及びCVTECU31にそれぞれ送信するためのものであり、所定時間ごとに繰り返し実行される。   Next, the transmission process executed by the writing unit 2 will be described with reference to FIG. This process is for transmitting the fuel writing program PRUF and the shift writing program PRUC to the FIECU 21 and the CVTECU 31, respectively, and is repeatedly executed at predetermined time intervals.

まず、ステップ21では、前述した燃料書込み用種別データWDCFをFIECU21から受信したか否かを判別する。この答がYESのときには、前述した記録媒体に記録された多数のプログラムから、受信した燃料書込み用種別データWDCFに応じた燃料書込み用プログラムPRUFを読み出す(ステップ22)。次いで、記録媒体に記録された多数のデータから、読み出された燃料書込み用プログラムPRUFに応じたFIECU書込み用種別データDCUFを読み出す(ステップ23)。   First, in step 21, it is determined whether or not the fuel writing type data WDCF is received from the FI ECU 21. When the answer is YES, the fuel writing program PRUF corresponding to the received fuel writing type data WDCF is read out from a number of programs recorded on the recording medium described above (step 22). Next, the FIECU writing type data DUF corresponding to the read fuel writing program PRUF is read from a large number of data recorded on the recording medium (step 23).

次に、ステップ24及び25において、上記ステップ22及び23でそれぞれ読み出された燃料書込み用プログラムPRUF及びFIECU書込み用種別データDCUFをFIECU21に送信し、本処理を終了する。   Next, in Steps 24 and 25, the fuel writing program PRUF and the FIECU writing type data DUF read in Steps 22 and 23, respectively, are transmitted to the FI ECU 21, and this process is terminated.

一方、上記ステップ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 steps 29 and 30, the shift writing program PRUC and the CVTECU writing type data DCUC read in the above steps 27 and 28 are transmitted to the CVTECU 31, and this process ends.

次に、図4を参照しながら、CVTECU31のCPU33aによって実行される第2書込み処理について説明する。本処理は、図3の上記ステップ29および30によりそれぞれ送信された変速書込み用プログラムPRUC及びCVTECU書込み用種別データDCUCを受信するのに伴って実行される。まず、ステップ41では、受信した変速書込み用プログラムPRUCを、変速制御用プログラムPRCとしてフラッシュROM33bに書き込む。   Next, the second writing process executed by the CPU 33a of the CVT ECU 31 will be described with reference to FIG. This process is executed as the shift writing program PRUC and CVTECU writing type data DCUC transmitted in steps 29 and 30 in FIG. 3 are received. First, in step 41, the received shift writing program PRUC is written in the flash ROM 33b as a shift control program PRC.

次いで、受信した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 FIECU 21 by executing this step 43, the received CVTECU type data DCC is written into the EEPROM 24 by the CPU 23a of the FIECU 21. As a result, the updated latest CVT ECU type data DCC is stored in the EEPROM 24.

次に、図5を参照しながら、FIECU21のCPU23aによって実行される前述した書込み判定処理について説明する。本処理は、図4のステップ43により送信されたCVTECU種別データDCCを受信するのに伴って実行される。   Next, the above-described write determination process executed by the CPU 23a of the FIECU 21 will be described with reference to FIG. This process is executed as the CVT ECU type data DCC transmitted at step 43 in FIG. 4 is received.

図5のステップ51では、受信したCVTECU種別データDCCと、図2の前記ステップ9で設定された変速書込み用種別データWDCCとの比較結果に基づいて、CVTECU31において、変速書込み用プログラムPRUCの書込みが適正に行われたか否かを判定し、本処理を終了する。具体的には、CVTECU種別データDCCで表される各種のデータ(バージョン番号、仕向け先など)と、変速書込み用種別データWDCCで表される各種のデータ(バージョン番号、仕向け先など)とがすべて一致しているときには、変速書込み用プログラムPRUCの書込みが適正に行われたと判定され、一致していないときには、適正に行われていないと判定される。   In step 51 of FIG. 5, based on the comparison result between the received CVTECU type data DCC and the shift write type data WDCC set in step 9 of FIG. 2, the CVTECU 31 writes the shift write program PRUC. It is determined whether or not the process has been properly performed, and the present process is terminated. Specifically, all of the various data (version number, destination, etc.) represented by CVTECU type data DCC and the various data (version number, destination, etc.) represented by shift write type data WDCC If they match, it is determined that the writing of the shift writing program PRUC has been properly performed. If they do not match, it is determined that the shift writing program PRUC has not been properly performed.

また、第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 FI ECU 21 and the CVT ECU 31 in the first embodiment correspond to the first and second control units in the present invention, respectively, and the CPU 23a in the first embodiment performs the second writing type data transmission unit and the determination unit in the present invention. It corresponds to. The EEPROM 24 in the first embodiment corresponds to the second type data storage means in the present invention, and the CPU 33a in the first embodiment serves as the second write data writing means and the second type data transfer means in the present invention. Equivalent to.

以上のように、第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 CVTECU 31 is stored in the EEPROM 24 of the FIECU 21, and the FIECU 21 writes the shift write program PRUC into the CVTECU 31. Based on the stored CVTECU type data DCC, shift writing type data WDCC representing the type of data to be written to CVTTEC 31 is set (step 9 in FIG. 2).

このように、変速書込み用種別データ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 CVTECU 31, the type of data to be written in the CVTECU 31 is good. To instruct. Further, the shift writing type data WDCC is set by the FIECU 21 based on the CVTECU type data DCC stored in the EEPROM 24 of the FIECU 21 and transmitted to the writing unit 2 (step 10 in FIG. 2) and the transmitted shift In accordance with the write type data WDCC, the shift write program PRUC which is data to be written to the CVTECU 31 is read (step 27 in FIG. 3) and written to the CVTECU 31 (step 41 in FIG. 4).

また、第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 CVTECU 31 has never been performed at the time of manufacture of the vehicle, or the data written to the CVTECU 31 is for some reason. Even in the initial state of the CVTECU 31 in which data such as the shift control program PRC is not written in the CVTECU 31 due to disappearance or the like, the shift write program PRUC is written into the CVTECU 31 described above. As described above, even in this initial state, the writing of the shift writing program PRUC to the CVTECU 31 can be appropriately performed according to the type of the write data in the CVTECU 31.

さらに、前述したように、変速書込み用種別データ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 CVTECU 31 is set not by the operator but by the FI ECU 21 and the shift write program PRUC is written accordingly. Can be prevented. Further, since it is not necessary for the CVTECU 31 to store the CVTECU type data DCC, the storage capacity can be reduced.

さらに、書き込まれた変速書込み用プログラム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 CVTECU 31 by the writing unit 2 (steps 28 and 30 in FIG. 3) and is set as the latest CVTECU type data DCC. (Step 42 in FIG. 4). The latest set CVTECU type data DCC is transmitted (transferred) from the CVTECU 31 to the FI ECU 21 (step 43). Further, based on the comparison result between the shift writing type data WDCC and the transmitted latest CVTECU type data DCC, the FI ECU 21 determines whether or not the shift writing program PRUC has been properly written to the CVTECU 31. (Step 51 in FIG. 5).

前述したように変速書込み用種別データ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 CVTECU 31, and therefore when the data is properly written to the CVTECU 31, the shift write type data WDCC and the CVT ECU 31 are written. The latest CVTECU type data DCC corresponding to the written shift writing program PRUC coincides with each other. Therefore, it is possible to appropriately determine whether or not the writing of the shift writing program PRUC to the CVTECU 31 is properly performed by the above-described determination, thereby preventing the malfunction of the CVTECU 31 due to the writing mistake.

次に、図6を参照しながら、本発明の第2実施形態によるデータ書込み装置51について説明する。このデータ書込み装置51は、第1実施形態と比較して、動力源としてエンジン3及びモータ(回転電機)7を備えるハイブリッド式の車両(図示せず)に適用されたものであることと、CVTECU31に代えて、MOTECU61及びBATECU71を備えることが、主に異なっている。図6において、第1実施形態と同じ構成要素については、同じ符号を付している。以下、第1実施形態と異なる点を中心に説明する。   Next, a data writing device 51 according to a second embodiment of the present invention will be described with reference to FIG. Compared to the first embodiment, the data writing device 51 is applied to a hybrid vehicle (not shown) including the engine 3 and the motor (rotary electric machine) 7 as a power source, and CVT ECU 31. The main difference is that the MOTECU 61 and the BAT ECU 71 are provided instead. In FIG. 6, the same components as those in the first embodiment are denoted by the same reference numerals. Hereinafter, a description will be given focusing on differences from the first embodiment.

データ書込み装置51は、前述した燃料制御用プログラムPRFに加え、モータ7を制御するためのモータ制御用プログラムPRM、及びバッテリ8を制御するためのバッテリ制御用プログラムPRBの書込みを行うためのものであり、書込みユニット52、FIECU21、MOTECU61及びBATECU71を備えている。バッテリ8は、モータ7に電力を供給するためのものである。MOTECU61及びBATECU71は、モータ7及びバッテリ8の協調制御を行うために、信号線53を介して互いに通信可能に接続されている。   The data writing device 51 is for writing a motor control program PRM for controlling the motor 7 and a battery control program PRB for controlling the battery 8 in addition to the fuel control program PRF described above. Yes, it includes a writing unit 52, FIECU 21, MOTECU 61, and BATECU 71. The battery 8 is for supplying electric power to the motor 7. The MOTECU 61 and the BAT ECU 71 are connected to each other via a signal line 53 so as to perform cooperative control of the motor 7 and the battery 8.

書込みユニット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 FI ECU 21, the MOTECU 61, and the BAT ECU 71 in addition to the fuel writing program PRUF described above when writing the various control programs described above. Is. The motor writing program PRUM is written as a motor control program PRM, and the battery writing program PRUB is written as a battery control program PRB.

また、書込みユニット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 21 as a fuel writing program PRUF, a motor writing program PRUM, and a battery writing program PRUB. A large number of programs classified according to the date of manufacture of the MOTECU 61 and the BAT ECU 71, the vehicle type, the destination of the vehicle, and the like are recorded.

また、記録媒体には、前述した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 EEPROM 24 of the FIECU 21 as MOTECU type data DCM and BAT ECU type data DCB described later, respectively.

さらに、書込みユニット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 FIECU 21, the MOTECU 61, and the BAT ECU 71 during vehicle manufacture and maintenance. When writing, the FIECU 21 and the MOTECU 61 are connected via a connector (not shown) and the signal line 54. During the writing, the fuel writing program PRUF and the motor writing program PRUM are transmitted to the FIECU 21 and the MOTECU 61 through the signal line 54, respectively. The battery writing program PRUB includes the signal line 54, the MOTECU 61, and the signal line 53 described above. To the BAT ECU 71. Details thereof will be described later.

また、MOTECU61は、通信用インターフェース(I/F)62及びマイコン63を有している。通信用I/F62は、書込みユニット52とマイコン63の後述するCPU63aとの間でCAN通信を行うためのものであり、書込みユニット52から送信されたモータ書込み用プログラムPRUMを信号線54を介して受信し、CPU63aに送信する。   The MOTECU 61 includes a communication interface (I / F) 62 and a microcomputer 63. The communication I / F 62 is for performing CAN communication between the writing unit 52 and a CPU 63a (described later) of the microcomputer 63. The motor writing program PRUM transmitted from the writing unit 52 is transmitted via the signal line 54. Receive and send to CPU 63a.

マイコン63は、CPU63a及びフラッシュROM63bなどで構成されている。フラッシュROM63bは、モータ制御用プログラムPRMを記憶するための記憶領域を有している。CPU63aは、書込みユニット52から前述したモータ書込み用プログラムPRUMを受信したときに、モータ書込み用プログラムPRUMをモータ制御用プログラムPRMとしてフラッシュROM63bの記憶領域に書き込む。その詳細については後述する。また、CPU63aは、モータ制御用プログラムPRMを実行することによって、モータ7を制御するための制御信号を生成し、モータ7に出力する。   The microcomputer 63 includes a CPU 63a and a flash ROM 63b. The flash ROM 63b has a storage area for storing the motor control program PRM. When the CPU 63a receives the above-described motor writing program PRUM from the writing unit 52, the CPU 63a writes the motor writing program PRUM into the storage area of the flash ROM 63b as the motor control program PRM. Details thereof will be described later. In addition, the CPU 63 a generates a control signal for controlling the motor 7 by executing the motor control program PRM and outputs the control signal to the motor 7.

また、BATECU71は、MOTECU61と同様、通信用インターフェース(I/F)72及びマイコン73を有している。通信用I/F72は、MOTECU61のCPU63aとマイコン73の後述するCPU73aとの間でCAN通信を行うためのものであり、書込みユニット52から送信されたモータ書込み用プログラムPRUMを信号線54及び53を介して受信し、CPU73aに送信する。   Similarly to the MOT ECU 61, the BAT ECU 71 has a communication interface (I / F) 72 and a microcomputer 73. The communication I / F 72 is used for CAN communication between the CPU 63a of the MOTECU 61 and a CPU 73a described later of the microcomputer 73. The motor writing program PRUM transmitted from the writing unit 52 is transmitted through the signal lines 54 and 53. And transmit it to the CPU 73a.

マイコン73は、CPU73a及びフラッシュROM73bなどで構成されている。フラッシュROM73bは、バッテリ制御用プログラムPRBを記憶するための記憶領域を有している。CPU73aは、書込みユニット52から前述したバッテリ書込み用プログラムPRUBを受信したときに、バッテリ書込み用プログラムPRUBをバッテリ制御用プログラムPRBとしてフラッシュROM73bの記憶領域に書き込む。その詳細については後述する。また、CPU73aは、バッテリ制御用プログラムPRBを実行することによって、バッテリ8とモータ7の間の電力の授受を制御するための制御信号を生成し、バッテリ8及びモータ7に接続された電気回路に出力する。   The microcomputer 73 includes a CPU 73a and a flash ROM 73b. The flash ROM 73b has a storage area for storing the battery control program PRB. When the CPU 73a receives the above-described battery write program PRUB from the write unit 52, the CPU 73a writes the battery write program PRUB as the battery control program PRB in the storage area of the flash ROM 73b. Details thereof will be described later. In addition, the CPU 73a executes the battery control program PRB to generate a control signal for controlling power transfer between the battery 8 and the motor 7, and to an electric circuit connected to the battery 8 and the motor 7. Output.

FIECU21のEEPROM24には、前述したFIECU種別データDCFに加え、MOTECU種別データDCM及びBATECU種別データDCBが記憶されている。このMOTECU種別データDCMは、MOTECU61のフラッシュROM63bにおける書込みデータ(プログラムを含む)の種別を表すものであり、MOTECU61の識別番号や、MOTECU61の製造年月日、車両の車種、車両の仕向け先、フラッシュROM63bに書き込まれているモータ制御用プログラムPRMのバージョン番号などを表す複数のデータで構成されている。   In the EEPROM 24 of the FIECU 21, in addition to the above-described FIECU type data DCF, MOTECU type data DCM and BATECU type data DCB are stored. This MOTECU type data DCM represents the type of data (including a program) written in the flash ROM 63b of the MOTECU 61. The MOTECU 61 identification number, the date of manufacture of the MOTECU 61, the vehicle type, the vehicle destination, the flash It consists of a plurality of data representing the version number of the motor control program PRM written in the ROM 63b.

また、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 flash ROM 73b of the BAT ECU 71, the identification number indicating the BAT ECU 71, the date of manufacture of the BAT ECU 71, the vehicle type, and the destination of the vehicle. The battery control program PRB includes a plurality of data representing the version number of the battery control program PRB written in the flash ROM 73b of the BAT ECU 71.

これらの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 FICU 21 and the MOTECU 61 are connected to each other via a signal line 55 so that they can communicate with each other, and the MOTECU type data DCM and the BAT ECU type data DCB are transmitted from the MOTECU 61 to the FI ECU 21 via the signal line 55. Details thereof will be described later.

次に、図7を参照しながら、FIECU21のCPU23aによって実行される第1書込み処理について説明する。本処理は、燃料書込み用プログラムPRUFの書込みなどを行うためのものであり、所定時間ごとに繰り返し実行される。図7において、第1実施形態における第1書込み処理(図2)と同じ実行内容の部分については、同じステップ番号を付している。同図から明らかなように、ステップ61以降の処理が異なっているので、以下、ステップ61以降の処理について、同図を参照しながら説明する。   Next, the first writing process executed by the CPU 23a of the FIECU 21 will be described with reference to FIG. This process is for performing writing of the fuel writing program PRUF and the like, and is repeatedly executed at predetermined time intervals. In FIG. 7, the same step number is assigned to the portion of the same execution content as the first writing process (FIG. 2) in the first embodiment. As will be apparent from the figure, since the processing after step 61 is different, the processing after step 61 will be described with reference to FIG.

前記ステップ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 step 61, it is determined whether or not the writing unit 52 requests transmission of the motor writing type data WDCM. The motor writing type data WDCM represents the type of data to be written to the flash ROM 63b of the MOTECU 61. The type includes an identification number representing the MOTECU 61 corresponding to the above-described MOTECU type data DCM, The date of manufacture, the type of vehicle, the destination of the vehicle, the version number of the motor control program PRM to be written in the flash ROM 63b, and the like are included. The transmission request in step 61 is made by an operator's operation when the writing unit 52 is connected to the MOTECU 61.

上記ステップ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 step 63, the data representing the version number in the motor writing type data WDCM is set so as to represent a version number one newer than the version number represented by the MOTECU type data DCM, for example. In addition, when the vehicle is in the initial state of the MOTECU 61 in which the motor control program PRM is not written in the flash ROM 63b, for example, when the vehicle is manufactured, the data indicating the version number in the motor writing type data WDCM is the initial version number. Is set to represent.

一方、前記ステップ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 subsequent steps 65 to 68, setting and transmission of the battery writing type data WDCB are executed in the same manner as in steps 61 to 64. Specifically, in step 65, it is determined whether or not the writing unit 52 is requested to transmit the battery writing type data WDCB. The battery write type data WDCB represents the type of data to be written to the flash ROM 73b of the BAT ECU 71. The type includes an identification number indicating the BAT ECU 71 corresponding to the BAT ECU type data DCB described above, and the BAT ECU 71 The date of manufacture, the type of vehicle, the destination of the vehicle, the version number of the battery control program PRB to be written in the flash ROM 73b, and the like are included. The transmission request in step 65 is made by an operator's operation when the writing unit 52 is connected to the BAT ECU 71.

上記ステップ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 FIECU 21, the MOT ECU 61, and the BATECU 71, respectively, and is repeatedly executed at predetermined time intervals. In FIG. 8, the same step numbers are assigned to the same execution contents as in the transmission process (FIG. 3) in the first embodiment. As is apparent from FIG. 8, the processing after step 71 is different, and therefore the processing after step 71 will be described with reference to FIG.

前記ステップ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 step 71 whether or not the motor writing type data WDCM has been received from the MOTECU 61. When the answer is YES, the motor writing program PRUM corresponding to the received motor writing type data WDCM is read out from a number of programs recorded on the recording medium described above (step 72). Next, the MOTECU writing type data DCUM corresponding to the read motor writing program PRUM is read from a large number of data recorded on the recording medium (step 73).

次に、ステップ74及び75において、上記ステップ72及び73においてそれぞれ読み出されたモータ書込み用プログラムPRUM及びMOTECU書込み用種別データDCUMをMOTECU61に送信し、本処理を終了する。   Next, in Steps 74 and 75, the motor writing program PRUM and the MOTECU writing type data DCUM read in Steps 72 and 73 are transmitted to the MOTECU 61, and this process is terminated.

一方、上記ステップ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 steps 76 to 80 in the same manner as steps 71 to 75. Specifically, in step 76, it is determined whether or not the above-described battery writing type data WDCB is received from BAT ECU 71.

このステップ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 steps 79 and 80, the battery write program PRUB and BAT ECU write type data DCUB read in steps 77 and 78, respectively, are transmitted to the MOTECU 61, and this process ends.

次に、図9を参照しながら、MOTECU61のCPU63aによって実行される第2書込み処理について説明する。本処理は、図8の上記ステップ74及び75によりそれぞれ送信されたモータ書込み用プログラムPRUM及びMOTECU書込み用種別データDCUMを受信するのに伴って実行される。まず、ステップ91では、受信したモータ書込み用プログラムPRUMを、モータ制御用プログラムPRMとしてフラッシュROM63bに書き込む。   Next, the second writing process executed by the CPU 63a of the MOTECU 61 will be described with reference to FIG. This process is executed when the motor writing program PRUM and the MOTECU writing type data DCUM transmitted in steps 74 and 75 in FIG. 8 are received. First, in step 91, the received motor writing program PRUM is written in the flash ROM 63b as the motor control program PRM.

次いで、受信した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 FIECU 21 by executing this step 93, the received MOTECU type data DCM is written in the EEPROM 24 by the CPU 23a of the FIECU 21. As a result, the updated latest MOTECU type data DCM is stored in the EEPROM 24.

また、MOTECU61のCPU63aは、図8の前記ステップ79及び80によりそれぞれ送信されたバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBを受信するのに伴って、図10に示す転送処理を実行する。図10のステップ101及び102ではそれぞれ、受信したバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBをBATECU71に送信(転送)し、本処理を終了する。   Further, the CPU 63a of the MOTECU 61 executes the transfer process shown in FIG. 10 in response to receiving the battery write program PRUB and the BAT ECU write type data DCUB transmitted in steps 79 and 80 in FIG. In steps 101 and 102 in FIG. 10, the received battery write program PRUB and BAT ECU write type data DCUB are transmitted (transferred) to BAT ECU 71, and this process is terminated.

次に、図11を参照しながら、BATECU71のCPU73aによって実行される第3書込み処理について説明する。本処理は、図10の前記ステップ101及び102により転送されたバッテリ書込み用プログラムPRUB及びBATECU書込み用種別データDCUBを受信するのに伴って実行される。まず、ステップ111では、受信したバッテリ書込み用プログラムPRUBを、バッテリ制御用プログラムPRBとしてフラッシュROM73bに書き込む。   Next, the third write process executed by the CPU 73a of the BAT ECU 71 will be described with reference to FIG. This process is executed as the battery write program PRUB and BAT ECU write type data DCUB transferred in steps 101 and 102 in FIG. 10 are received. First, in step 111, the received battery write program PRUB is written in the flash ROM 73b as the battery control program PRB.

次いで、受信した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 FI ECU 21 is performed via the signal line 53, the MOTECU 61, and the signal line 55. Further, when the BAT ECU type data DCB is transmitted to the FI ECU 21, the received BAT ECU type data DCB is written into the EEPROM 24 by the CPU 23a of the FI ECU 21. As a result, the updated latest BAT ECU type data DCB is stored in the EEPROM 24.

次に、図12を参照しながら、FIECU21のCPU23aによって実行される書込み判定処理について説明する。本処理は、図9のステップ93及び図11のステップ113によりそれぞれ送信されたMOTECU種別データDCM及びBATECU種別データDCBを受信するのに伴って実行される。   Next, the write determination process executed by the CPU 23a of the FIECU 21 will be described with reference to FIG. This process is executed when the MOTECU type data DCM and the BAT ECU type data DCB transmitted in step 93 of FIG. 9 and step 113 of FIG. 11 are received.

図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 MOTECU 61 based on the comparison result between the received MOTECU type data DCM and the motor write type data WDCM set in step 63 of FIG. It is determined whether or not the process has been performed, and the present process is terminated. Specifically, the various data (version number, destination, etc.) represented by the MOTECU type data DCM and the various data (version number, destination, etc.) represented by the motor write type data WDCM are all When they match, it is determined that the writing of the motor writing program PRUM has been properly performed, and when they do not match, it is determined that the writing has not been performed properly.

上記ステップ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 BAT ECU 71 writes the battery write program PRUB. Is determined properly, and the process is terminated. Specifically, all the various data (version number, destination, etc.) represented by the BAT ECU type data DCB, and all the various data (version number, destination, etc.) represented by the battery write type data WDCB When they match, it is determined that writing of the battery writing program PRUB is properly performed. When they do not match, it is determined that the writing is not properly performed.

また、第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 FI ECU 21, the MOTECU 61, and the BAT ECU 71 in the second embodiment correspond to the first, second, and third control units in the present invention, respectively, and the CPU 23a in the second embodiment performs the second writing type data in the present invention. It corresponds to a transmission means, a third writing type data transmission means, and a determination means.

また、第2実施形態におけるEEPROM24が、本発明における第2種別データ記憶手段及び第3種別データ記憶手段に相当し、第2実施形態におけるCPU63aが、本発明における第2書込み用データ書込み手段及び第2種別データ転送手段に相当するとともに、第2実施形態におけるCPU73aが、本発明における第3書込み用データ書込み手段に相当する。   The EEPROM 24 in the second embodiment corresponds to the second type data storage unit and the third type data storage unit in the present invention, and the CPU 63a in the second embodiment has the second write data write unit and the second type data storage unit in the present invention. The CPU 73a in the second embodiment corresponds to the second type data transfer unit and the third write data writing unit in the present invention.

以上のように、第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 BAT ECU 71 is connected to the writing unit 52 via the MOTECU 61. Also, the battery writing program PRUB, which is data to be written in the BAT ECU 71, is transmitted from the writing unit 52 to the BAT ECU 71 via the MOTECU 61 (step 79 in FIG. 8, step 101 in FIG. 10) and written in the BAT ECU 71 (FIG. 11 step 111).

このように、書込みユニット52に既に接続されているMOTECU61を介して、BATECU71へのバッテリ書込み用プログラムPRUBの送信を行うことができるので、BATECU71を書込みユニット52に接続するための回路を新たに構成する必要がない。したがって、その分、データ書込み装置51の小型化及び製造コストの削減を図ることができる。   In this way, since the battery writing program PRUB can be transmitted to the BAT ECU 71 via the MOTECU 61 already connected to the writing unit 52, a circuit for connecting the BAT ECU 71 to the writing unit 52 is newly configured. There is no need to do. Accordingly, the data writing device 51 can be reduced in size and the manufacturing cost can be reduced accordingly.

また、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 BAT ECU 71 is stored in the EEPROM 24 of the FIECU 21. When the FIECU 21 writes the battery write program PRUB in the BAT ECU 71, based on the stored BAT ECU type data DCB, Battery write type data WDCB representing the type of data to be written to BAT ECU 71 is set (step 67 in FIG. 7).

このように、バッテリ書込み用種別データ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 BAT ECU 71, the type of data to be written in the BAT ECU 71 is good. To instruct. The battery writing type data WDCB is set by the FI ECU 21 based on the BAT ECU type data DCB stored in the EEPROM 24 of the FIECU 21 and transmitted to the writing unit 2 (step 68 in FIG. 7). In accordance with the write type data WDCB, the battery write program PRUB, which is data to be written into the BAT ECU 71, is read (step 77 in FIG. 8) and written into the BAT ECU 71 (step 111 in FIG. 11).

また、第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 BAT ECU 71 has never been performed at the time of manufacture of the vehicle, or the data written to the BAT ECU 71 is for some reason. Even in the initial state of the BAT ECU 71 in which data such as the battery control program PRB is not written in the BAT ECU 71 due to disappearance or the like, the writing of the battery writing program PRUB into the BAT ECU 71 is performed. As described above, even in this initial state, it is possible to appropriately write the battery write program PRUB to the BAT ECU 71 in accordance with the type of write data in the BAT ECU 71.

さらに、前述したように、バッテリ書込み用種別データ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 BAT ECU 71 is set not by the operator but by the FIECU 21 and the battery write program PRUB is written accordingly. Can be prevented. Furthermore, since it is not necessary for the BAT ECU 71 to store the BAT ECU type data DCB, the storage capacity can be reduced.

さらに、書き込まれたバッテリ書込み用プログラム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 BAT ECU 71 by the writing unit 52 (steps 78 and 80 in FIG. 8) and set as the latest BAT ECU type data DCB. (Step 112 in FIG. 11). Further, the latest set BAT ECU type data DCB is transmitted (transferred) from the BAT ECU 71 to the FI ECU 21 (step 113). Further, based on the comparison result between the battery writing type data WDCB and the transmitted latest BAT ECU type data DCB, the FIECU 21 determines whether or not the writing of the battery writing program PRUB to the BAT ECU 71 is properly performed. (Step 122 in FIG. 12).

前述したようにバッテリ書込み用種別データ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 BAT ECU 71. Therefore, when the data writing to the BAT ECU 71 is performed properly, the battery writing type data WDCB and the BAT ECU 71 are written. The latest BAT ECU type data DCB corresponding to the written battery writing program PRUB coincides with each other. Therefore, it is possible to appropriately determine whether or not the writing of the battery writing program PRUB to the BAT ECU 71 is properly performed based on the above-described determination, thereby preventing a failure of the BAT ECU 71 due to the writing mistake.

また、第1実施形態で述べたCVTECU31に関する効果は、前述した図7〜図12に示す処理の実行内容から明らかなように、MOTECU61についても同様に得ることができる。   Further, the effects related to the CVTECU 31 described in the first embodiment can be similarly obtained for the MOTECU 61 as is apparent from the execution contents of the processes shown in FIGS.

なお、本発明は、説明した実施形態に限定されることなく、種々の態様で実施することができる。例えば、第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 FIECU 21 determines whether or not the shift writing program PRUC has been properly written to the CVTECU 31 (hereinafter referred to as “write determination”). Also good.

この場合、CVTECU31からFIECU21に最新のCVTECU種別データDCCを送信せずに、FIECU21からCVTECU31に変速書込み用種別データWDCCを送信するとともに、最新のCVTECU種別データDCCと変速書込み用種別データWDCCとの比較結果に基づいて、上記の書込み判定が行われる。あるいは、上述したCVTECU31による書込み判定と、第1実施形態で述べたFIECU21による書込み判定の双方を行ってもよい。以上のことは、第2実施形態におけるモータ書込み用プログラムPRUM及びバッテリ書込み用プログラムPRUBの書込み判定についても同様に当てはまる。   In this case, the CVTECU 31 does not transmit the latest CVTECU type data DCC to the FIECU 21, but transmits the shift write type data WDCC from the FIECU 21 to the CVTECU 31, and compares the latest CVTECU type data DCC with the shift write type data WDCC. Based on the result, the above writing determination is performed. Alternatively, both the writing determination by the CVTECU 31 described above and the writing determination by the FIECU 21 described in the first embodiment may be performed. The same applies to the writing determination of the motor writing program PRUM and the battery writing program PRUB in the second embodiment.

また、第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 writing unit 2 and the FIECU 21 and the CVTECU 31 are connected via the communication line 11 and between the FIECU 21 and the CVTECU 31 via the communication line 12, that is, by wire. You may connect by radio. This also applies to the connection between the writing unit 52 and the FIECU 21 and the MOTECU 61, the connection between the FIECU 21 and the MOTECU 61, and the connection between the MOTECU 61 and the BAT ECU 71 in the second embodiment.

また、第1及び第2実施形態では、本発明の記憶手段として、EEPROM24を用いているが、データを記憶可能な他の適当な記憶媒体、例えばフラッシュROMを用いてもよい。さらに、第1及び第2実施形態では、本発明の第1制御ユニットとしてFIECU21を、第2制御ユニットとしてCVTECU31及びMOTECU61を、第3制御ユニットとしてBATECU71を、それぞれ用いているが、他の適当な制御ユニットを用いてもよい。その他、本発明の趣旨の範囲内で、細部の構成を適宜、変更することが可能である。   In the first and second embodiments, the EEPROM 24 is used as the storage means of the present invention. However, another appropriate storage medium capable of storing data, such as a flash ROM, may be used. Further, in the first and second embodiments, FIECU 21 is used as the first control unit of the present invention, CVTECU 31 and MOTECU 61 are used as the second control unit, and BATECU 71 is used as the third control unit. A control unit may be used. In addition, it is possible to appropriately change the detailed configuration within the scope of the gist of the present invention.

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 SYMBOLS 1 Data writing apparatus 2 Writing unit 21 FIECU (1st control unit)
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 Writing Unit 61 MOTECU (Second Control Unit)
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)

第1制御ユニット及び第2制御ユニットに通信可能に接続される書込みユニットを用いて前記第1及び第2制御ユニットにデータを書き込むためのデータ書込み方法であって、
前記第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 .
前記第2制御ユニットへの前記第2書込み用データの書込みを、前記第2制御ユニットにデータが書き込まれていない当該第2制御ユニットの初期状態において行うことを特徴とする、請求項1に記載のデータ書込み方法。   2. The writing of the second write data to the second control unit is performed in an initial state of the second control unit in which no data is written to the second control unit. Data writing method. 前記書込みユニットには、前記第2制御ユニットを介して第3制御ユニットが通信可能に接続されており、
前記第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.
前記第3制御ユニットにおける書込みデータの種別を表す第3種別データを前記第1制御ユニットに記憶し、
当該第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制御ユニットと、A first control unit capable of writing 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.
前記第2制御ユニットへの前記第2書込み用データの書込みを、前記第2制御ユニットにデータが書き込まれていない当該第2制御ユニットの初期状態において行うことを特徴とする、請求項5に記載のデータ書込み装置。 6. The writing of the second write data to the second control unit is performed in an initial state of the second control unit in which no data is written to the second control unit. data writing device. 前記書込みユニットには、前記第2制御ユニットを介して第3制御ユニットが通信可能に接続され、
前記第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 .
前記第1制御ユニットは、
前記第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.
JP2012280953A 2012-12-25 2012-12-25 Data writing method and data writing apparatus Expired - Fee Related JP5625036B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Also Published As

Publication number Publication date
JP2014124978A (en) 2014-07-07

Similar Documents

Publication Publication Date Title
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
JP4539757B2 (en) Electronic control unit
CN109491671A (en) Diagnostic software method for down loading, device, terminal device and storage medium
JP2013254264A (en) Electronic control unit
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
JP6060782B2 (en) Relay device
WO2019009115A1 (en) Electronic control system
CN110494847A (en) Trunking, transfer approach and computer program
CN111722864A (en) ECU data flashing method and related device
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
EP2709073B1 (en) Electronic control unit of vehicle
JP6718483B2 (en) vehicle
JP5643058B2 (en) Vehicle fault diagnosis control device
US20230327882A1 (en) Non-reputable vehicle change history
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
JP2014015142A (en) In-vehicle control system
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