JP6558264B2 - Vehicle data communication system - Google Patents

Vehicle data communication system Download PDF

Info

Publication number
JP6558264B2
JP6558264B2 JP2016025859A JP2016025859A JP6558264B2 JP 6558264 B2 JP6558264 B2 JP 6558264B2 JP 2016025859 A JP2016025859 A JP 2016025859A JP 2016025859 A JP2016025859 A JP 2016025859A JP 6558264 B2 JP6558264 B2 JP 6558264B2
Authority
JP
Japan
Prior art keywords
rewrite
wecu
rewriting
request
function
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.)
Active
Application number
JP2016025859A
Other languages
Japanese (ja)
Other versions
JP2017146655A (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.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2016025859A priority Critical patent/JP6558264B2/en
Publication of JP2017146655A publication Critical patent/JP2017146655A/en
Application granted granted Critical
Publication of JP6558264B2 publication Critical patent/JP6558264B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Description

本発明は車両用データ通信システムに関する。   The present invention relates to a vehicle data communication system.

従来より、ゲートウェイとして機能する電子制御装置(以下、G/WECUと称する)と、書き換えツールからG/WECUを経由して受信した書き換えデータを書き込んでプログラムを書き換える(即ちリプログする)書き換え対象ECUとを備えた車両用データ通信システムが供されている(例えば特許文献1参照)。   Conventionally, an electronic control device functioning as a gateway (hereinafter referred to as G / WECU), a rewrite target ECU that rewrites a program by writing rewrite data received from the rewrite tool via the G / WECU (ie, reprograms) There is provided a vehicular data communication system (see, for example, Patent Document 1).

特許第5363192号公報Japanese Patent No. 5363192

書き換え対象ECUは、書き換えサービス機能の仕様で規定されている要求メッセージ(例えばISO14229で定義されているメッセージ)を書き換えツールからG/WECUを経由して受信して特定する。そして、書き換え対象ECUは、書き換えツールからG/WECUを経由して受信した書き換えデータを書き込んでプログラムを書き換える。そのため、書き換え対象ECUでは、ROMに格納される書き換えソフトとして、各種サービス機能の要求を実行するための書き換えサービス機能(即ちリプログサービス機能)と、プログラムを書き換えるための書き換え機能(即ちリプログ機能)とが格納される必要がある。   The rewriting target ECU receives and specifies a request message (for example, a message defined in ISO14229) defined in the rewriting service function specification from the rewriting tool via the G / WECU. Then, the rewrite target ECU rewrites the program by writing the rewrite data received from the rewrite tool via the G / WECU. Therefore, in the rewriting target ECU, as rewriting software stored in the ROM, a rewriting service function (that is, a reprogram service function) for executing requests for various service functions, and a rewriting function for rewriting a program (that is, a reprogram function); Need to be stored.

しかしながら、書き換え対象ECUの書き換えソフトに書き換えサービス機能と書き換え機能とが格納されている構成では、車両に新規にECUを搭載しようとする場合に、そのECUの書き換えソフトにも書き換えサービス機能と書き換え機能とが格納される必要がある。そのため、書き換えソフトの開発に要する工数及び費用が増加する問題や、ROMの領域において書き換えソフトが占有する領域が多くなる分、アプリソフトで使用可能な領域が制約を受ける問題がある。   However, in the configuration in which the rewriting service function and the rewriting function are stored in the rewriting software of the ECU to be rewritten, when the ECU is newly installed in the vehicle, the rewriting service function and the rewriting function are also included in the rewriting software of the ECU. And need to be stored. For this reason, there are problems that man-hours and costs required for development of the rewriting software increase, and that the area that can be used by the application software is restricted due to the increase of the area occupied by the rewriting software in the ROM area.

本発明は、上記した事情に鑑みてなされたものであり、その目的は、書き換え対象ECUの書き換えソフトの開発に要する工数及び費用を低減すると共に、書き換え対象ECUのROMの領域においてアプリソフトで使用可能な領域の制約を低減することができる車両用データ通信システムを提供することにある。   The present invention has been made in view of the above circumstances, and its purpose is to reduce the man-hours and costs required for development of rewriting software for the rewriting target ECU and to be used in application software in the ROM area of the rewriting target ECU. It is an object of the present invention to provide a vehicular data communication system capable of reducing restrictions on possible areas.

請求項1に記載した発明によれば、ゲートウェイ電子制御装置(2)は、各種サービス機能の要求を実行するための書き換えサービス機能(251a)と、プログラムを書き換えるための書き換え機能(253a,253b)と、書き換え機能転送機能(251e)と、書き換え要求転送機能(251f)とを保持する。ゲートウェイ電子制御装置は、書き換えツール(6)から書き換え要求を受信すると、書き換え要求を、書き換え要求転送機能を用いて書き換え対象電子制御装置(3,4)に送信し、書き換え機能を、書き換え機能転送機能を用いて書き換え対象電子制御装置に送信する。書き換え対象電子制御装置は、ゲートウェイ電子制御装置から受信した書き換え機能を用い、書き換えツールからゲートウェイ電子制御装置を経由して受信した書き換えデータを書き込んでプログラムを書き換える。 According to the first aspect of the present invention, the gateway electronic control unit (2) includes a rewriting service function (251a) for executing various service function requests and a rewriting function (253a, 253b) for rewriting a program. And a rewrite function transfer function (251e) and a rewrite request transfer function (251f). When the gateway electronic control unit receives a rewrite request from the rewrite tool (6), it transmits the rewrite request to the rewrite target electronic control unit (3, 4) using the rewrite request transfer function, and the rewrite function is transferred to the rewrite function. It is transmitted to the electronic control device to be rewritten using the function. The rewrite target electronic control device uses the rewrite function received from the gateway electronic control device and rewrites the program by writing the rewrite data received from the rewrite tool via the gateway electronic control device.

書き換えサービス機能と書き換え機能とをゲートウェイ電子制御装置に集約し、それらの機能を書き換え対象電子制御装置から省き、それらの機能が書き換え対象電子制御装置の書き換えソフトに格納されない構成とした。これにより、車両に新規にECUを搭載しようとする場合でも、そのECUの書き換えソフトに書き換えサービス機能と書き換え機能とが格納される必要がなくなる。その結果、書き換え対象電子制御装置の書き換えソフトの開発に要する工数及び費用を低減すると共に、書き換え対象電子制御装置のROMの領域においてアプリソフトで使用可能な領域の制約を低減することができる。   The rewriting service function and the rewriting function are integrated into the gateway electronic control device, and these functions are omitted from the rewriting target electronic control device, and those functions are not stored in the rewriting software of the rewriting target electronic control device. Thereby, even when it is going to mount ECU newly in a vehicle, it becomes unnecessary to store the rewriting service function and the rewriting function in the rewriting software of the ECU. As a result, it is possible to reduce the man-hours and costs required for developing rewriting software for the rewriting target electronic control device, and it is possible to reduce restrictions on the area that can be used by the application software in the ROM area of the rewriting target electronic control device.

本発明の第1の実施形態を示す機能ブロック図Functional block diagram showing a first embodiment of the present invention ROM及びRAMの構成を示す図The figure which shows the structure of ROM and RAM シーケンス図Sequence Diagram シーケンス図Sequence Diagram ROM及びRAMの構成を示す図The figure which shows the structure of ROM and RAM 書き換え機能の構成を示す図Diagram showing the configuration of the rewrite function シーケンス図Sequence Diagram シーケンス図Sequence Diagram G/WECUのメイン処理を示すフローチャートThe flowchart which shows the main process of G / WECU G/WECUのCAN受信制御処理を示すフローチャートThe flowchart which shows the CAN reception control processing of G / WECU G/WECUのCAN送信制御処理を示すフローチャートThe flowchart which shows the CAN transmission control processing of G / WECU G/WECUの書き換えサービス処理(アプリソフト)を示すフローチャートFlow chart showing G / WECU rewrite service processing (application software) G/WECUの書き換えサービス処理(書き換えソフト)を示すフローチャートFlowchart showing G / WECU rewrite service process (rewrite software) G/WECUの肯定応答処理を示すフローチャートThe flowchart which shows the acknowledgment process of G / WECU G/WECUの否定応答処理を示すフローチャートThe flowchart which shows the negative response process of G / WECU G/WECUの書き換え要求処理を示すフローチャートThe flowchart which shows the rewrite request processing of G / WECU G/WECUの書き換え機能転送処理を示すフローチャートThe flowchart which shows the rewriting function transfer process of G / WECU G/WECUのセキュリティ開錠準備要求処理を示すフローチャートFlowchart showing G / WECU security unlocking preparation request processing G/WECUのセキュリティ開錠要求処理を示すフローチャートFlow chart showing security unlock request processing of G / WECU G/WECUのプログラム消去要求処理を示すフローチャートFlowchart showing G / WECU program erasure request processing G/WECUのダウンロード要求処理を示すフローチャートFlowchart showing download request processing of G / WECU G/WECUのデータ転送要求処理を示すフローチャートFlowchart showing data transfer request processing of G / WECU G/WECUのデータ転送完了要求処理を示すフローチャートThe flowchart which shows the data transfer completion request processing of G / WECU G/WECUのプログラム妥当性要求処理を示すフローチャートFlow chart showing program validity request processing of G / WECU G/WECUのECUリセット要求処理を示すフローチャートThe flowchart which shows ECU reset request processing of G / WECU G/WECUの書き換え要求転送処理を示すフローチャートThe flowchart which shows the rewrite request transfer process of G / WECU 書き換え対象ECUのメイン処理を示すフローチャートThe flowchart which shows the main process of rewriting object ECU 書き換え対象ECUのCAN受信制御処理を示すフローチャートThe flowchart which shows the CAN reception control processing of ECU for rewriting 書き換え対象ECUのCAN送信制御処理を示すフローチャートThe flowchart which shows CAN transmission control processing of ECU for rewriting 書き換え対象ECUのデータ格納処理を示すフローチャートFlow chart showing data storage processing of ECU to be rewritten 書き換え対象ECUの肯定応答処理を示すフローチャートThe flowchart which shows the affirmative response process of ECU for rewriting 書き換え対象ECUの否定応答処理を示すフローチャートThe flowchart which shows the negative response process of ECU for rewriting 書き換え対象ECUの書き換え機能処理を示すフローチャートFlowchart showing rewrite function processing of ECU to be rewritten 書き換え対象ECUの書き換え処理を示すフローチャートFlowchart showing the rewriting process of the ECU to be rewritten 書き換え対象ECUのプログラム消去処理を示すフローチャートFlowchart showing program erasure process of ECU to be rewritten 書き換え対象ECUのダウンロード処理を示すフローチャートFlowchart showing download processing of ECU to be rewritten 書き換え対象ECUの書き込み処理を示すフローチャートFlow chart showing the writing process of the ECU to be rewritten 書き換え対象ECUの書き込み完了処理を示すフローチャートThe flowchart which shows the write completion process of ECU for rewriting 書き換え対象ECUのプログラム妥当性確認処理を示すフローチャートFlowchart showing program validity confirmation processing of ECU to be rewritten 書き換え対象ECUのリセット処理を示すフローチャートFlowchart showing reset process of ECU to be rewritten 書き換え機能が送信される態様を示す図Diagram showing how the rewrite function is sent 本発明の第2の実施形態の書き換え機能が送信される態様を示す図The figure which shows the aspect by which the rewriting function of the 2nd Embodiment of this invention is transmitted.

(第1の実施形態)
以下、本発明の第1の実施形態について図1から図41を参照して説明する。車両用データ通信システム1は、ゲートウェイとして機能する電子制御装置(以下、G/WECUと称する)2と、G/WECU2から書き換えデータを受信してプログラムを書き換える書き換え対象ECU3,4とを有する。本実施形態では、書き換え対象ECUとして、第1の書き換え対象ECU3と第2の書き換え対象ECU4との2個の書き換え対象ECUを有する構成を例示しているが、3個以上の書き換え対象ECUを有する構成でも良い。G/WECU2と書き換え対象ECU3,4とは、ローカルCANバス5を介して接続されている。又、G/WECU2は、プログラムの書き換え操作を行う作業者により操作される書き換えツール6を接続可能となっている。G/WECU2と書き換えツール6とはグローバルCANバス7を介して接続される。
(First embodiment)
Hereinafter, a first embodiment of the present invention will be described with reference to FIGS. The vehicle data communication system 1 includes an electronic control unit (hereinafter referred to as G / WECU) 2 that functions as a gateway, and rewrite target ECUs 3 and 4 that receive rewrite data from the G / WECU 2 and rewrite a program. In the present embodiment, a configuration having two rewrite target ECUs, ie, a first rewrite target ECU 3 and a second rewrite target ECU 4 is illustrated as the rewrite target ECU. However, the rewrite target ECU includes three or more rewrite target ECUs. It may be configured. The G / WECU 2 and the rewrite target ECUs 3 and 4 are connected via a local CAN bus 5. The G / WECU 2 can be connected to a rewriting tool 6 operated by an operator who performs a program rewriting operation. The G / WECU 2 and the rewriting tool 6 are connected via a global CAN bus 7.

G/WECU2は、マイクロコンピュータを含むMCU21と、CANトランシーバ22とを有する。MCU21は、CAN通信機能23と、フラッシュ機能24と、ROM25と、RAM26とを有し、G/WECU2の動作を制御する。CANトランシーバ22は、ローカルCANバス5及びグローバルCANバス7との間でのCANで規定されている通信プロトコルによるデータ通信を制御する。尚、機能とは特定のプログラムを実行して特定の処理を行うモジュールを意味する。   The G / WECU 2 includes an MCU 21 including a microcomputer and a CAN transceiver 22. The MCU 21 has a CAN communication function 23, a flash function 24, a ROM 25, and a RAM 26, and controls the operation of the G / WECU 2. The CAN transceiver 22 controls data communication between the local CAN bus 5 and the global CAN bus 7 by a communication protocol defined by CAN. The function means a module that executes a specific program and performs a specific process.

第1の書き換え対象ECU3は、マイクロコンピュータを含む第1のMCU31と、CANトランシーバ32とを有する。第1のMCU31は、CAN通信機能33と、フラッシュ機能34と、ROM35と、RAM36とを有し、第1の書き換え対象ECU3の動作を制御する。CANトランシーバ32は、ローカルCANバス5との間でのCANで規定されている通信プロトコルによるデータ通信を制御する。第2の書き換え対象ECU4は、第1の書き換え対象ECU3と同等の構成であり、マイクロコンピュータを含む第2のMCU41と、CANトランシーバ42とを有する。第2のMCU41は、CAN通信機能43と、フラッシュ機能44と、ROM45と、RAM46とを有する。CANトランシーバ42、CAN通信機能43、フラッシュ機能44、ROM45及びRAM46は、それぞれ上記したCANトランシーバ32、CAN通信機能33、フラッシュ機能34、ROM35及びRAM36と同等である。   The first rewrite target ECU 3 includes a first MCU 31 including a microcomputer and a CAN transceiver 32. The first MCU 31 includes a CAN communication function 33, a flash function 34, a ROM 35, and a RAM 36, and controls the operation of the first rewriting target ECU 3. The CAN transceiver 32 controls data communication with the local CAN bus 5 according to a communication protocol defined by CAN. The second rewrite target ECU 4 has a configuration equivalent to that of the first rewrite target ECU 3, and includes a second MCU 41 including a microcomputer and a CAN transceiver 42. The second MCU 41 has a CAN communication function 43, a flash function 44, a ROM 45, and a RAM 46. The CAN transceiver 42, the CAN communication function 43, the flash function 44, the ROM 45, and the RAM 46 are the same as the CAN transceiver 32, the CAN communication function 33, the flash function 34, the ROM 35, and the RAM 36, respectively.

以下、プログラムを書き換えるのに必要な機能である書き換えサービス機能と書き換え機能とを格納する態様について説明する。尚、機能とは特定のプログラムを実行して特定の処理を行うモジュールを意味する。又、これ以降では、書き換え対象ECU3のプログラムを書き換える場合を説明するが、書き換え対象ECU4のプログラムを書き換える場合も同様である。図2は、書き換え対象ECU3の書き換えソフトに書き換えサービス機能と書き換え機能とが格納されている構成を示している。   Hereinafter, an aspect of storing a rewriting service function and a rewriting function, which are functions necessary for rewriting a program, will be described. The function means a module that executes a specific program and performs a specific process. In the following, a case where the program of the rewriting target ECU 3 is rewritten will be described, but the same applies to the case where the program of the rewriting target ECU 4 is rewritten. FIG. 2 shows a configuration in which a rewriting service function and a rewriting function are stored in the rewriting software of the rewriting target ECU 3.

G/WECU2において、MCU21のROM25には、書き換えソフト251と、アプリソフト252とが格納されている。書き換えソフト251には、書き換えサービス機能251aと、データ格納機能251bと、CAN通信制御機能251cと、書き換え機能251dとが格納されている。アプリソフト252には、メッセージ転送機能252aと、CAN通信制御機能252bと、書き換えサービス機能252cとが格納されている。   In the G / WECU 2, rewriting software 251 and application software 252 are stored in the ROM 25 of the MCU 21. The rewriting software 251 stores a rewriting service function 251a, a data storage function 251b, a CAN communication control function 251c, and a rewriting function 251d. The application software 252 stores a message transfer function 252a, a CAN communication control function 252b, and a rewrite service function 252c.

書き換え対象ECU3において、MCU31のROM35には、書き換えソフト351と、アプリソフト352とが格納されている。書き換えソフト351には、書き換えサービス機能351aと、データ格納機能351bと、CAN通信制御機能351cと、書き換え機能351dとが格納されている。アプリソフト352には、CAN通信制御機能352aと、書き換えサービス機能352bとが格納されている。RAM36には、データ格納機能351bによりROM35の書き換え機能351dが格納される。このような構成では、図3及び図4に示すシーケンスにしたがって書き換え対象ECU3のプログラムを書き換える。   In the rewriting target ECU 3, rewriting software 351 and application software 352 are stored in the ROM 35 of the MCU 31. The rewriting software 351 stores a rewriting service function 351a, a data storage function 351b, a CAN communication control function 351c, and a rewriting function 351d. The application software 352 stores a CAN communication control function 352a and a rewrite service function 352b. The RAM 36 stores a rewrite function 351d of the ROM 35 by a data storage function 351b. In such a configuration, the program of the rewrite target ECU 3 is rewritten according to the sequence shown in FIGS. 3 and 4.

書き換えツール6は、グローバルCANバス7を介してG/WECU2と接続されている状態で作業者からのプログラムの書き換え操作を受け付けると、書き換え用のゲートウェイ機能を有効にするための準備をG/WECU2との間で開始する。書き換えツール6は、その準備を正常に終了すると、書き換え要求を例えばSIDを「10」としてG/WECU2に送信する。G/WECU2は、書き換えツール6から書き換え要求を受信すると、その受信した書き換え要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2から書き換え要求を受信すると、データ格納機能351bを用いて書き換え機能351dをRAM36に格納し、肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   When the rewriting tool 6 receives a program rewriting operation from an operator while being connected to the G / WECU 2 via the global CAN bus 7, the rewriting tool 6 prepares for enabling the rewriting gateway function. Start with. When the rewriting tool 6 completes the preparation normally, the rewriting tool 6 transmits a rewriting request to the G / WECU 2 with the SID as “10”, for example. When the G / WECU 2 receives the rewrite request from the rewrite tool 6, the G / WECU 2 transmits the received rewrite request to the rewrite target ECU 3. When the rewrite target ECU 3 receives the rewrite request from the G / WECU 2, the rewrite function 351 d is stored in the RAM 36 using the data storage function 351 b and an affirmative response is transmitted to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、セキュリティ開錠準備要求を例えばSIDを「27」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からセキュリティ開錠準備要求を受信すると、その受信したセキュリティ開錠準備要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からセキュリティ開錠準備要求を受信すると、シードを生成し、その生成したシードを含む肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits a security unlocking preparation request to the G / WECU 2 with the SID “27”, for example. When the G / WECU 2 receives the security unlocking preparation request from the rewriting tool 6, the G / WECU 2 transmits the received security unlocking preparation request to the rewriting target ECU 3. When the rewrite target ECU 3 receives the security unlocking preparation request from the G / WECU 2, the rewrite target ECU 3 generates a seed and transmits an affirmative response including the generated seed to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、セキュリティ開錠要求を例えばSIDを「27」として
G/WECU2に送信する。G/WECU2は、書き換えツール6からセキュリティ開錠要求を受信すると、その受信したセキュリティ開錠要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からセキュリティ開錠要求を受信すると、受信したキーの一致結果を含む肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。
Next, the rewriting tool 6 transmits a security unlocking request to the G / WECU 2 with the SID “27”, for example. When the G / WECU 2 receives the security unlock request from the rewrite tool 6, the G / WECU 2 transmits the received security unlock request to the rewrite target ECU 3. When the rewrite target ECU 3 receives the security unlock request from the G / WECU 2, the rewrite target ECU 3 transmits an affirmative response including the received key matching result to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、プログラム消去要求を例えばSIDを「31」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からプログラム消去要求を受信すると、その受信したプログラム消去要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からプログラム消去要求を受信すると、書き換え機能351dを用いて書き換え対象のROMの領域を消去し、肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits a program erasure request to the G / WECU 2 with the SID “31”, for example. When the G / WECU 2 receives the program erasure request from the rewrite tool 6, the G / WECU 2 transmits the received program erasure request to the rewrite target ECU 3. When receiving the program erasure request from the G / WECU 2, the rewrite target ECU 3 erases the ROM area to be rewritten using the rewrite function 351 d and transmits an affirmative response to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、ダウンロード要求を例えばSIDを「34」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からダウンロード要求を受信すると、その受信したダウンロード要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からダウンロード要求を受信すると、書き換え対象領域(アドレス及びサイズ)を取得し、肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits a download request to the G / WECU 2 with the SID, for example, “34”. When the G / WECU 2 receives a download request from the rewriting tool 6, the G / WECU 2 transmits the received download request to the rewriting target ECU 3. When the rewrite target ECU 3 receives a download request from the G / WECU 2, the rewrite target ECU 3 acquires the rewrite target area (address and size) and transmits an affirmative response to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、書き換えデータを含むデータ転送要求を例えばSIDを「36」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からデータ転送要求を受信すると、その受信したデータ転送要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からデータ転送要求を受信すると、書き換え機能351dを用いてデータ転送要求に含まれる書き換えデータをROMの領域に書き込み、肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits a data transfer request including rewritten data to the G / WECU 2 with the SID “36”, for example. When the G / WECU 2 receives the data transfer request from the rewriting tool 6, the G / WECU 2 transmits the received data transfer request to the rewriting target ECU 3. When the data transfer request is received from the G / WECU 2, the rewrite target ECU 3 writes the rewrite data included in the data transfer request in the ROM area using the rewrite function 351 d and transmits an affirmative response to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、全ての書き換えデータの送信を完了すると、データ転送完了要求を例えばSIDを「37」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からデータ転送完了要求を受信すると、その受信したデータ転送完了要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からデータ転送完了要求を受信すると、書き換えデータの書き込みを完了し、肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, when the rewrite tool 6 completes the transmission of all the rewrite data, the rewrite tool 6 transmits a data transfer completion request to the G / WECU 2 with the SID “37”, for example. When the G / WECU 2 receives the data transfer completion request from the rewriting tool 6, the G / WECU 2 transmits the received data transfer completion request to the rewriting target ECU 3. When the rewrite target ECU 3 receives the data transfer completion request from the G / WECU 2, the rewrite target ECU 3 completes the writing of the rewrite data and transmits an affirmative response to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、プログラム妥当性要求を例えばSIDを「31」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からプログラム妥当性要求を受信すると、その受信したプログラム妥当性要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からプログラム妥当性要求を受信すると、チェックサムやCRC等の書き込み結果の妥当性を含む肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits a program validity request to the G / WECU 2 with the SID “31”, for example. When the G / WECU 2 receives the program validity request from the rewriting tool 6, the G / WECU 2 transmits the received program validity request to the rewriting target ECU 3. When the rewrite target ECU 3 receives the program validity request from the G / WECU 2, the rewrite target ECU 3 transmits an affirmative response including the validity of the write result such as a checksum or CRC to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、ECUリセット要求を例えばSIDを「11」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からECUリセット要求を受信すると、その受信したECUリセット要求を書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2からECUリセット要求を受信すると、肯定応答をG/WECU2に送信し、リセットを実施する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits an ECU reset request to the G / WECU 2 with the SID as “11”, for example. When the G / WECU 2 receives the ECU reset request from the rewriting tool 6, the G / WECU 2 transmits the received ECU reset request to the rewriting target ECU 3. When the ECU 3 to be rewritten receives an ECU reset request from the G / WECU 2, it sends an affirmative response to the G / WECU 2 to perform the reset. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

このような書き換え対象ECU3の書き換えソフト351に書き換えサービス機能351aと書き換え機能351dとが格納されている構成では、書き換えサービス機能351aと書き換え機能351dとを用いてプログラムを書き換える。そのため、前述した[発明が解決しようとする課題]で説明したように、書き換えソフト351の開発に要する工数及び費用が増加する問題や、ROM35の領域において書き換えソフト351が占有する領域が多くなる分、アプリソフト352で使用可能な領域が制約を受ける問題がある。このような問題に対し、本発明では、G/WECU2に書き換えサービス機能と書き換え機能とを集約する。図5は、G/WECU2に書き換えサービス機能と書き換え機能とが集約されて格納されている構成を示している。   In such a configuration in which the rewriting service function 351a and the rewriting function 351d are stored in the rewriting software 351 of the rewriting target ECU 3, the rewriting service function 351a and the rewriting function 351d are used to rewrite the program. For this reason, as described in [Problems to be Solved by the Invention], the man-hour and cost required for development of the rewriting software 351 increase, and the area occupied by the rewriting software 351 in the area of the ROM 35 increases. There is a problem that the area that can be used by the application software 352 is restricted. In order to solve such a problem, the present invention consolidates the rewriting service function and the rewriting function in the G / WECU 2. FIG. 5 shows a configuration in which the rewriting service function and the rewriting function are collected and stored in the G / WECU 2.

G/WECU2において、MCU21のROM25には、前述した書き換えソフト251と、アプリソフト252とに加え、転送用データ253が格納されている。書き換えソフト251には、前述した書き換えサービス機能251aと、データ格納機能251bと、CAN通信制御機能251cと、書き換え機能251dとに加え、書き換え機能転送機能251eと、書き換え要求転送機能251fとが格納されている。転送用データ253には、第1のMCU書き換え機能253aと、第2のMCU書き換え機能253bとが格納されている。RAM26には、データ格納機能251bによりROM25の書き換え機能251dが格納される。   In the G / WECU 2, transfer data 253 is stored in the ROM 25 of the MCU 21 in addition to the above-described rewrite software 251 and application software 252. The rewrite software 251 stores a rewrite function transfer function 251e and a rewrite request transfer function 251f in addition to the rewrite service function 251a, the data storage function 251b, the CAN communication control function 251c, and the rewrite function 251d. ing. The transfer data 253 stores a first MCU rewrite function 253a and a second MCU rewrite function 253b. The RAM 26 stores the rewrite function 251d of the ROM 25 by the data storage function 251b.

第1のMCU書き換え機能253a及び第2のMCU書き換え機能253bは、プログラムを書き換えるための書き換え機能であり、図6に示すように、それぞれヘッダ情報とプログラムとを含む。ヘッダ情報は、プログラムの転送先の書き換え対象ECUを特定可能な情報であり、ローカルCANバス5上のアドレスを示すCANIDである。   The first MCU rewriting function 253a and the second MCU rewriting function 253b are rewriting functions for rewriting a program, and each include header information and a program as shown in FIG. The header information is information that can identify the rewrite target ECU of the program transfer destination, and is a CANID that indicates an address on the local CAN bus 5.

書き換え対象ECU3において、MCU31のROM35には、書き換えソフト351と、アプリソフト352とが格納されている。書き換えソフト351には、前述した書き換えサービス機能351aと、書き換え機能351dとが省かれ、データ格納機能351bと、CAN通信制御機能351cとが格納されている。アプリソフト352には、前述した書き換えサービス機能352bが省かれ、CAN通信制御機能352aと、データ格納機能352cとが格納されている。RAM36には、データ格納機能351bによりG/WECU2のROM25の第1のMCU書き換え機能253aが格納される。   In the rewriting target ECU 3, rewriting software 351 and application software 352 are stored in the ROM 35 of the MCU 31. In the rewriting software 351, the above-described rewriting service function 351a and rewriting function 351d are omitted, and a data storage function 351b and a CAN communication control function 351c are stored. The application software 352 omits the above-described rewrite service function 352b, and stores a CAN communication control function 352a and a data storage function 352c. In the RAM 36, the first MCU rewriting function 253a of the ROM 25 of the G / WECU 2 is stored by the data storage function 351b.

図2に示したソフトウェアの構成と図5に示したソフトウェアの構成とを対比すると、図5では、図2に示した書き換え対象ECU3に格納されていた書き換えサービス機能351a,352bに相当する機能がG/WECU2に書き換えサービス機能251aとして集約されて格納されている。書き換えサービス機能が基本的には車両メーカからの要求にしたがって開発される機能であり、書き換え対象ECU3,4で共通な仕様であるという事情により書き換え対象ECU3の書き換えサービス機能351a,352bをG/WECU2の書き換えサービス機能251aとして集約して格納することが可能である。このような構成では、図7及び図8に示すシーケンスにしたがって書き換え対象ECU3のプログラムを書き換える。   When the software configuration shown in FIG. 2 is compared with the software configuration shown in FIG. 5, in FIG. 5, functions corresponding to the rewrite service functions 351a and 352b stored in the rewrite target ECU 3 shown in FIG. G / WECU 2 stores the rewrite service function 251a in an aggregated manner. The rewriting service function is basically a function developed in accordance with a request from the vehicle manufacturer, and the rewriting service functions 351a and 352b of the rewriting target ECU 3 are changed to the G / WECU 2 due to the fact that it is a specification common to the rewriting target ECUs 3 and 4. The rewrite service functions 251a can be stored together. In such a configuration, the program of the rewrite target ECU 3 is rewritten according to the sequence shown in FIGS.

書き換えツール6は、グローバルCANバス7を介してG/WECU2と接続されている状態で作業者からのプログラムの書き換え操作を受け付けると、書き換え用のゲートウェイ機能を有効にするための準備をG/WECU2との間で開始する。書き換えツール6は、その準備を正常に完了すると、書き換え要求を例えばSIDを「10」としてG/WECU2に送信する。G/WECU2は、書き換えツール6から書き換え要求を受信すると、書き換え機能転送機能251eを用いて第1のMCU書き換え機能253aを書き換え対象ECU3に送信する。書き換え対象ECU3は、G/WECU2から第1のMCU書き換え機能253aを受信すると、その受信した第1のMCU書き換え機能253aをRAM36に格納し、肯定応答をG/WECU2に送信する。G/WECU2は、書き換え対象ECU3から肯定応答を受信すると、その受信した肯定応答を書き換えツール6に送信する。   When the rewriting tool 6 receives a program rewriting operation from an operator while being connected to the G / WECU 2 via the global CAN bus 7, the rewriting tool 6 prepares for enabling the rewriting gateway function. Start with. When the rewriting tool 6 completes the preparation normally, the rewriting tool 6 transmits a rewriting request to the G / WECU 2 with the SID as “10”, for example. When the G / WECU 2 receives the rewrite request from the rewrite tool 6, the G / WECU 2 transmits the first MCU rewrite function 253a to the rewrite target ECU 3 using the rewrite function transfer function 251e. When receiving the first MCU rewriting function 253a from the G / WECU 2, the rewriting target ECU 3 stores the received first MCU rewriting function 253a in the RAM 36 and transmits an affirmative response to the G / WECU 2. When the G / WECU 2 receives a positive response from the rewrite target ECU 3, the G / WECU 2 transmits the received positive response to the rewrite tool 6.

次いで、書き換えツール6は、セキュリティ開錠準備要求を例えばSIDを「27」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からセキュリティ開錠準備要求を受信すると、シードを生成し、その生成したシードを含む肯定応答を書き換えツール6に送信する。G/WECU2は、肯定応答を書き換えツール6にG/WECU2に送信することで、生成したシードを書き換えツール6に応答する。次いで、書き換えツール6は、セキュリティ開錠要求を例えばSIDを「27」としてG/WECU2に送信する。G/WECU2は、書き換えツール6からセキュリティ開錠要求を受信すると、受信したキーの一致結果を含む肯定応答を書き換えツール6に送信する。即ち、G/WECU2は、前述した図3で説明したシーケンスとは異なり、セキュリティ開錠準備要求及びセキュリティ開錠要求を書き換え対象ECU3に送信せず、生成したシードや受信したキーの一致結果を含む応答を書き換えツール6に送信する。   Next, the rewriting tool 6 transmits a security unlocking preparation request to the G / WECU 2 with the SID “27”, for example. When the G / WECU 2 receives the security unlocking preparation request from the rewriting tool 6, the G / WECU 2 generates a seed and transmits an acknowledgment including the generated seed to the rewriting tool 6. The G / WECU 2 responds the generated seed to the rewriting tool 6 by transmitting an affirmative response to the rewriting tool 6 to the G / WECU 2. Next, the rewriting tool 6 transmits a security unlocking request to the G / WECU 2 with the SID “27”, for example. When the G / WECU 2 receives the security unlock request from the rewriting tool 6, the G / WECU 2 transmits an acknowledgment including the received key matching result to the rewriting tool 6. In other words, the G / WECU 2 does not transmit the security unlocking preparation request and the security unlocking request to the rewriting target ECU 3, unlike the sequence described in FIG. 3 described above, and includes the generated seed and the matching result of the received key. The response is transmitted to the rewriting tool 6.

これ以降は、書き換えツール6は、前述した図3及び図4で説明したシーケンスと同様に、プログラム消去要求、ダウンロード要求、データ転送要求、データ転送完了要求、プログラム妥当性要求、ECUリセット要求をG/WECU2に順次送信する。上記した一連のシーケンスでは、G/WECU2は、書き換え対象ECU3への送信を必要としない情報、即ち、セキュリティ開錠準備要求及びセキュリティ開錠要求の要求メッセージについては、書き換え対象ECU3に送信せず、生成したシードや受信したキーの一致結果を書き換えツール6に応答する。一方、G/WECU2は、書き換え対象ECU3への送信を必要とする情報、即ち、プログラム消去要求以降の要求メッセージについては、書き換え要求転送機能251fを用いて書き換え対象ECU3に送信し、書き換え対象ECU3から受信した応答を書き換えツール6に送信する。   Thereafter, the rewriting tool 6 sends a program erase request, a download request, a data transfer request, a data transfer completion request, a program validity request, and an ECU reset request in the same manner as in the sequence described with reference to FIGS. / Sequentially transmitted to WECU2. In the above-described series of sequences, the G / WECU 2 does not transmit information that does not require transmission to the rewrite target ECU 3, that is, security unlock preparation request and security unlock request request messages to the rewrite target ECU 3. The generated seed and the matching result of the received key are returned to the rewriting tool 6. On the other hand, the G / WECU 2 transmits information that needs to be transmitted to the rewrite target ECU 3, that is, a request message after the program erasure request, to the rewrite target ECU 3 using the rewrite request transfer function 251f. The received response is transmitted to the rewriting tool 6.

尚、G/WECU2は、プログラム消去要求以降の要求メッセージを書き換え対象ECU3に送信する場合には、書き換えツール6から受信した要求メッセージをそのまま書き換え対象ECU3に送信しても良いし、書き換えツール6から受信した要求メッセージを変更し、独自の通信プロトコルを用いた専用コマンドによる要求メッセージを書き換え対象ECU3に送信しても良い。書き換えサービスの仕様で規定されている要求メッセージを用いる場合には、書き換えサービスの仕様が変更される毎に書き換え機能のプログラムを変更する必要が発生する。これに対し、専用コマンドによる要求メッセージを用いることで、書き換えサービスの仕様が変更されたとしても書き換え機能のプログラムを変更する必要が発生せず、書き換えサービスの仕様の変更に対して適切な対応が可能となる。   The G / WECU 2 may transmit the request message received from the rewriting tool 6 to the rewriting target ECU 3 as it is when transmitting a request message after the program erasure request to the rewriting target ECU 3. The received request message may be changed, and a request message by a dedicated command using a unique communication protocol may be transmitted to the rewriting target ECU 3. When the request message defined in the rewrite service specification is used, it is necessary to change the rewrite function program every time the rewrite service specification is changed. On the other hand, by using a request message by a dedicated command, it is not necessary to change the program of the rewrite function even if the rewrite service specification is changed, and an appropriate response can be made to the change of the rewrite service specification. It becomes possible.

次に、上記した構成の作用について図9から図41を参照して説明する。ここでは、G/WECU2が行う処理を図9から図25に示し、書き換え対象ECU3が行う処理を図26から図40に示す。以下、G/WECU2及び書き換え対象ECU3が行うそれぞれの処理について説明する。   Next, the operation of the above configuration will be described with reference to FIGS. Here, the process performed by the G / WECU 2 is shown in FIGS. 9 to 25, and the process performed by the rewrite target ECU 3 is shown in FIGS. Hereinafter, each process which G / WECU2 and rewriting object ECU3 perform is demonstrated.

(1)G/WECU2が行う処理
G/WECU2は、CAN通信制御処理、書き換えサービス処理、応答処理、書き換え要求処理、書き換え機能転送処理、セキュリティ開錠準備要求処理、セキュリティ開錠要求処理、プログラム消去要求処理、ダウンロード要求処理、データ転送要求処理、データ転送完了要求処理、プログラム妥当性要求処理、ECUリセット要求処理、書き換え要求転送処理を行う。以下、それぞれの処理について説明する。
(1) Processing performed by G / WECU 2 G / WECU 2 performs CAN communication control processing, rewriting service processing, response processing, rewriting request processing, rewriting function transfer processing, security unlocking preparation request processing, security unlocking request processing, and program deletion. Request processing, download request processing, data transfer request processing, data transfer completion request processing, program validity request processing, ECU reset request processing, and rewrite request transfer processing are performed. Hereinafter, each processing will be described.

(1−1)CAN通信制御処理
G/WECU2は、CAN通信制御処理として、図9に示すメイン処理、図10に示すCAN受信制御処理、図11に示すCAN送信制御処理を行う。
(1-1) CAN Communication Control Process The G / WECU 2 performs a main process shown in FIG. 9, a CAN reception control process shown in FIG. 10, and a CAN transmission control process shown in FIG. 11 as the CAN communication control process.

G/WECU2は、メイン処理を開始すると、CAN受信制御処理に移行する(A1)。G/WECU2は、CAN受信制御処理を開始すると、書き換えツール6からCAN信号を受信したか否かを判定し(A11)、CAN信号を受信したと判定すると(A11:YES)、書き換えサービス処理に移行する(A12)。G/WECU2は、書き換えサービス処理から復帰すると、CAN受信制御処理を終了する。又、G/WECU2は、CAN送信制御処理を開始すると、送信バッファ内の情報をCANレジスタにセットし(A21)、CAN信号を送信し(A22)、CAN送信制御処理を終了する。   When starting the main process, the G / WECU 2 proceeds to the CAN reception control process (A1). When the G / WECU 2 starts the CAN reception control process, the G / WECU 2 determines whether or not a CAN signal has been received from the rewriting tool 6 (A11). If it determines that the CAN signal has been received (A11: YES), the G / WECU 2 performs the rewriting service process. Transition (A12). When the G / WECU 2 returns from the rewriting service process, the G / WECU 2 ends the CAN reception control process. Further, when starting the CAN transmission control process, the G / WECU 2 sets information in the transmission buffer in the CAN register (A21), transmits a CAN signal (A22), and ends the CAN transmission control process.

(1−2)書き換えサービス処理
G/WECU2は、書き換えサービス処理として、図12に示す書き換えサービス処理(アプリソフト)、図13に示す書き換えサービス処理(書き換えソフト)を行う。
(1-2) Rewriting Service Process The G / WECU 2 performs a rewriting service process (application software) shown in FIG. 12 and a rewriting service process (rewriting software) shown in FIG. 13 as the rewriting service process.

G/WECU2は、書き換えサービス処理(アプリソフト)を開始すると、書き換え要求処理に移行する(A31)。G/WECU2は、書き換え要求処理から復帰すると、書き換えサービス処理(アプリソフト)を終了する。   When the G / WECU 2 starts the rewriting service process (application software), the G / WECU 2 proceeds to the rewriting request process (A31). When the G / WECU 2 returns from the rewrite request process, the G / WECU 2 ends the rewrite service process (application software).

G/WECU2は、書き換えサービス処理(書き換えソフト)を開始すると、書き換え要求処理(A41)、セキュリティ開錠準備要求処理(A42)、セキュリティ開錠要求処理(A43)、プログラム消去要求処理(A44)、ダウンロード要求処理(A45)、データ転送要求処理(A46)、データ転送完了要求処理(A47)、プログラム妥当性要求処理(A48)、ECUリセット要求処理(A49)に順次移行する。G/WECU2は、ECUリセット要求処理から復帰すると、書き換えサービス処理(書き換えソフト)を終了する。   When the G / WECU 2 starts the rewriting service process (rewriting software), the rewriting request process (A41), the security unlocking preparation request process (A42), the security unlocking request process (A43), the program deletion request process (A44), The process proceeds to a download request process (A45), a data transfer request process (A46), a data transfer completion request process (A47), a program validity request process (A48), and an ECU reset request process (A49). When the G / WECU 2 returns from the ECU reset request process, the G / WECU 2 ends the rewrite service process (rewrite software).

(1−3)応答処理
G/WECU2は、応答処理として、図14に示す肯定応答処理、図15に示す否定応答処理を行う。G/WECU2は、肯定応答処理を開始すると、送信先のCANID及び肯定応答データを送信バッファにセットし(A51)、CAN送信制御処理に移行する(A52)。G/WECU2は、CAN送信制御処理から復帰すると、肯定応答処理を終了する。又、G/WECU2は、否定応答処理を開始すると、送信先のCANID及び否定応答データを送信バッファにセットし(A61)、CAN送信制御処理に移行する(A62)。G/WECU2は、CAN送信制御処理から復帰すると、否定応答処理を終了する。
(1-3) Response Process The G / WECU 2 performs an affirmative response process shown in FIG. 14 and a negative response process shown in FIG. 15 as the response process. When starting the acknowledgment process, the G / WECU 2 sets the destination CANID and acknowledgment data in the transmission buffer (A51), and proceeds to the CAN transmission control process (A52). When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the acknowledgment process. Further, when the negative response process is started, the G / WECU 2 sets the destination CANID and negative response data in the transmission buffer (A61), and proceeds to the CAN transmission control process (A62). When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the negative response process.

(1−4)書き換え要求処理
G/WECU2は、図16に示す書き換え要求処理を開始すると、書き換えツール6から書き換え要求を受信した否かを判定する(A71)。G/WECU2は、書き換え要求を受信したと判定すると(A71:YES)、アプリソフト252から書き換えソフト251に遷移し(A72)、その書き換え要求が物理アドレスによる要求であるか機能アドレスによる要求であるかを特定し(A73)、書き換え機能転送処理に移行する(A74)。物理アドレスによる要求とは1個の書き換え対象ECUに対する書き換え要求であり、機能アドレスによる要求とは全ての書き換え対象ECUに対する書き換え要求である。
(1-4) Rewrite Request Process When the G / WECU 2 starts the rewrite request process shown in FIG. 16, it determines whether a rewrite request has been received from the rewrite tool 6 (A71). When the G / WECU 2 determines that the rewrite request has been received (A71: YES), the G / WECU 2 transitions from the application software 252 to the rewrite software 251 (A72), and the rewrite request is a request based on a physical address or a function address. Is specified (A73), and the process proceeds to the rewrite function transfer process (A74). The request based on the physical address is a rewrite request for one rewrite target ECU, and the request based on the function address is a rewrite request for all the rewrite target ECUs.

G/WECU2は、書き換え機能転送処理から復帰すると、書き込み対象ECU3から応答の受信を待機する(A75)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A75:YES)、その応答が肯定応答であるか否かを判定する(A76)。G/WECU2は、その応答が肯定応答であると判定すると(A76:YES)、肯定応答を書き換えツール6に送信し(A77)、書き換え要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A76:NO)、否定応答を書き換えツール6に送信し(A78)、書き換え要求処理を終了する。   When the G / WECU 2 returns from the rewrite function transfer process, the G / WECU 2 waits to receive a response from the write target ECU 3 (A75). When the G / WECU 2 determines that the response from the write target ECU 3 has been received (A75: YES), it determines whether the response is an affirmative response (A76). When the G / WECU 2 determines that the response is an affirmative response (A76: YES), the G / WECU 2 transmits an affirmative response to the rewrite tool 6 (A77) and ends the rewrite request process. On the other hand, when the G / WECU 2 determines that the response is not a positive response but a negative response (A76: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A78), and ends the rewriting request process.

(1−5)書き換え機能転送処理
G/WECU2は、図17に示す書き換え機能転送処理を開始すると、書き換え機能の書き換え対象が1個のECUであるか全てのECUであるかを判定する(A81)。G/WECU2は、書き換え機能の書き換え対象が1個のECUであると判定すると(A81:YES)、送信先のCANIDにより転送対象の書き換え機能を検索し(A82)、送信先のCANID、転送対象の書き換え機能、書き換え機能転送IDを送信バッファにセットし(A83)、CAN送信制御処理に移行する(A84)。G/WECU2は、CAN送信制御処理から復帰すると、書き換え機能転送処理を終了する。
(1-5) Rewrite Function Transfer Process When the G / WECU 2 starts the rewrite function transfer process shown in FIG. 17, the G / WECU 2 determines whether the rewrite target of the rewrite function is one ECU or all ECUs (A81). ). When the G / WECU 2 determines that the rewriting target of the rewriting function is one ECU (A81: YES), the G / WECU 2 searches for the rewriting function to be transferred based on the CANID of the transmission destination (A82), the CANID of the transmission destination, and the transfer target The rewrite function and rewrite function transfer ID are set in the transmission buffer (A83), and the process proceeds to the CAN transmission control process (A84). When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite function transfer process.

一方、G/WECU2は、書き換え機能の書き換え対象が全てのECUであると判定すると(A81:NO)、書き換え機能を全ての書き換え対象ECUに送信済みであるか否かを判定する(A85)。G/WECU2は、書き換え機能を全ての書き換え対象ECUに送信済みでない判定すると(A85:NO)、送信先のCANID、転送対象の書き換え機能、書き換え機能転送IDを送信バッファにセットし(A86)、CAN送信制御処理に移行する(A87)。G/WECU2は、CAN送信制御処理から復帰すると、ステップA85に戻る。G/WECU2は、書き換え機能を全ての書き換え対象ECUに送信済みであると判定すると(A85:YES)、書き換え機能転送処理を終了する。   On the other hand, when the G / WECU 2 determines that the rewriting target of the rewriting function is all ECUs (A81: NO), the G / WECU 2 determines whether the rewriting function has been transmitted to all the rewriting target ECUs (A85). If the G / WECU 2 determines that the rewrite function has not been transmitted to all the rewrite target ECUs (A85: NO), the G / WECU 2 sets the destination CANID, the rewrite function to be transferred, and the rewrite function transfer ID in the transmission buffer (A86). The process proceeds to the CAN transmission control process (A87). When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 returns to Step A85. If the G / WECU 2 determines that the rewrite function has been transmitted to all the rewrite target ECUs (A85: YES), the G / WECU 2 ends the rewrite function transfer process.

(1−6)セキュリティ開錠準備要求処理
G/WECU2は、図18に示すセキュリティ開錠準備要求処理を開始すると、書き換えツール6からセキュリティ開錠準備要求を受信したか否かを判定する(A91)。G/WECU2は、書き換えツール6からセキュリティ開錠準備要求を受信したと判定すると(A91:YES)、シードを生成し(A92)、その生成したシードを書き換えツール6に送信し(A93)、セキュリティ開錠準備要求処理を終了する。
(1-6) Security unlocking preparation request process When the G / WECU 2 starts the security unlocking preparation request process shown in FIG. 18, it determines whether or not a security unlocking preparation request has been received from the rewriting tool 6 (A91). ). When the G / WECU 2 determines that a security unlocking preparation request has been received from the rewriting tool 6 (A91: YES), the G / WECU 2 generates a seed (A92), and transmits the generated seed to the rewriting tool 6 (A93). The unlocking preparation request process ends.

(1−7)セキュリティ開錠要求処理
G/WECU2は、図19に示すセキュリティ開錠要求処理を開始すると、書き換えツール6からセキュリティ開錠要求を受信したか否かを判定する(A101)。G/WECU2は、セキュリティ開錠要求を受信したと判定すると(A101:YES)、セキュリティ開錠準備要求済みであるか否かを判定する(A102)。G/WECU2は、セキュリティ開錠準備要求済みであると判定すると(A102:YES)、受信したキーが一致しているか否かを判定する(A103)。G/WECU2は、受信したキーが一致していると判定すると(A103:YES)、肯定応答を書き換えツール6に送信し(A104)、セキュリティ開錠要求処理を終了する。一方、G/WECU2は、セキュリティ開錠準備要求済みでないと判定すると(A102:NO)、又は受信したキーが一致していないと判定すると(A103:NO)、否定応答を書き換えツール6に送信し(A105)、セキュリティ開錠要求処理を終了する。
(1-7) Security Unlocking Request Process When the G / WECU 2 starts the security unlocking request process shown in FIG. 19, it determines whether a security unlocking request has been received from the rewriting tool 6 (A101). If it is determined that the security unlocking request has been received (A101: YES), the G / WECU 2 determines whether a security unlocking preparation request has been made (A102). If it is determined that the security unlocking preparation request has been made (A102: YES), the G / WECU 2 determines whether or not the received keys match (A103). When the G / WECU 2 determines that the received keys match (A103: YES), the G / WECU 2 transmits an affirmative response to the rewriting tool 6 (A104), and ends the security unlocking request process. On the other hand, if the G / WECU 2 determines that the security unlocking preparation request has not been made (A102: NO), or determines that the received keys do not match (A103: NO), it sends a negative response to the rewriting tool 6. (A105), the security unlock request processing is terminated.

(1−8)プログラム消去要求処理
G/WECU2は、図20に示すプログラム消去要求処理を開始すると、書き換えツール6からプログラム消去要求を受信したか否かを判定する(A111)。G/WECU2は、プログラム消去要求を受信したと判定すると(A111:YES)、図26に示す書き換え要求転送処理に移行する(A112)。G/WECU2は、書き換え要求転送処理を開始すると、プログラム消去要求を受信したと判定し(A171:YES)、送信先のCANID、消去開始アドレス、消去サイズ、消去IDを送信バッファにセットし(A172)、CAN送信制御処理に移行する(A173)。
(1-8) Program Erase Request Process When the G / WECU 2 starts the program erase request process shown in FIG. 20, the G / WECU 2 determines whether a program erase request has been received from the rewrite tool 6 (A111). When the G / WECU 2 determines that the program erasure request has been received (A111: YES), the G / WECU 2 proceeds to a rewrite request transfer process shown in FIG. 26 (A112). When the rewrite request transfer process is started, the G / WECU 2 determines that a program erase request has been received (A171: YES), and sets the destination CANID, erase start address, erase size, and erase ID in the transmission buffer (A172). ), The process proceeds to the CAN transmission control process (A173).

G/WECU2は、CAN送信制御処理から復帰すると、書き換え要求転送処理を終了し、書き込み対象ECU3からの応答の受信を待機する(A113)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A113:YES)、その応答が肯定応答であるか否かを判定する(A114)。G/WECU2は、その応答が肯定応答であると判定すると(A114:YES)、肯定応答を書き換えツール6に送信し(A115)、プログラム消去要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A114:NO)、否定応答を書き換えツール6に送信し(A116)、プログラム消去要求処理を終了する。   When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite request transfer process and waits for reception of a response from the write target ECU 3 (A113). If the G / WECU 2 determines that the response from the write target ECU 3 has been received (A113: YES), it determines whether the response is an affirmative response (A114). When the G / WECU 2 determines that the response is an affirmative response (A114: YES), the G / WECU 2 transmits an affirmative response to the rewrite tool 6 (A115), and ends the program erase request process. On the other hand, when the G / WECU 2 determines that the response is not an affirmative response but a negative response (A114: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A116), and ends the program erase request process.

(1−9)ダウンロード要求処理
G/WECU2は、図21に示すダウンロード要求処理を開始すると、書き換えツール6からダウンロード要求を受信したか否かを判定する(A121)。G/WECU2は、ダウンロード要求を受信したと判定すると(A121:YES)、図26に示す書き換え要求転送処理に移行する(A122)。G/WECU2は、書き換え要求転送処理を開始すると、ダウンロード要求を受信したと判定し(A174:YES)、送信先のCANID、書き込み開始アドレス、書き込みサイズ、ダウンロードIDを送信バッファにセットし(A175)、CAN送信制御処理に移行する(A176)。
(1-9) Download Request Process When the G / WECU 2 starts the download request process shown in FIG. 21, the G / WECU 2 determines whether a download request has been received from the rewriting tool 6 (A121). If the G / WECU 2 determines that a download request has been received (A121: YES), the G / WECU 2 proceeds to a rewrite request transfer process shown in FIG. 26 (A122). When the rewrite request transfer process is started, the G / WECU 2 determines that a download request has been received (A174: YES), and sets the CANID, write start address, write size, and download ID of the transmission destination in the transmission buffer (A175). Then, the process proceeds to the CAN transmission control process (A176).

G/WECU2は、CAN送信制御処理から復帰すると、書き換え要求転送処理を終了し、書き込み対象ECU3からの応答の受信を待機する(A123)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A123:YES)、その応答が肯定応答であるか否かを判定する(A124)。G/WECU2は、その応答が肯定応答であると判定すると(A124:YES)、肯定応答を書き換えツール6に送信し(A125)、ダウンロード要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A124:NO)、否定応答を書き換えツール6に送信し(A126)、ダウンロード要求処理を終了する。   When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite request transfer process and waits for reception of a response from the write target ECU 3 (A123). If the G / WECU 2 determines that the response from the write target ECU 3 has been received (A123: YES), it determines whether the response is an affirmative response (A124). When the G / WECU 2 determines that the response is an affirmative response (A124: YES), the G / WECU 2 transmits an affirmative response to the rewriting tool 6 (A125), and ends the download request process. On the other hand, when the G / WECU 2 determines that the response is not an affirmative response but a negative response (A124: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A126), and ends the download request process.

(1−10)データ転送要求処理
G/WECU2は、図22に示すデータ転送要求処理を開始すると、書き換えツール6からデータ転送要求を受信したか否かを判定する(A131)。G/WECU2は、データ転送要求を受信したと判定すると(A131:YES)、図26に示す書き換え要求転送処理に移行する(A132)。G/WECU2は、書き換え要求転送処理を開始すると、データ転送要求を受信したと判定し(A177:YES)、送信先のCANID、書き換えデータ、データ転送IDを送信バッファにセットし(A178)、CAN送信制御処理に移行する(A179)。
(1-10) Data Transfer Request Processing When starting the data transfer request processing shown in FIG. 22, the G / WECU 2 determines whether or not a data transfer request has been received from the rewriting tool 6 (A131). When the G / WECU 2 determines that the data transfer request has been received (A131: YES), the G / WECU 2 proceeds to the rewrite request transfer process shown in FIG. 26 (A132). When the rewrite request transfer process is started, the G / WECU 2 determines that a data transfer request has been received (A177: YES), sets the CANID, rewrite data, and data transfer ID of the transmission destination in the transmission buffer (A178), and CAN. The process proceeds to the transmission control process (A179).

G/WECU2は、CAN送信制御処理から復帰すると、書き換え要求転送処理を終了し、書き込み対象ECU3からの応答の受信を待機する(A133)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A133:YES)、その応答が肯定応答であるか否かを判定する(A134)。G/WECU2は、その応答が肯定応答であると判定すると(A134:YES)、肯定応答を書き換えツール6に送信し(A135)、データ転送要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A134:NO)、否定応答を書き換えツール6に送信し(A136)、データ転送要求処理を終了する。   When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite request transfer process and waits for reception of a response from the write target ECU 3 (A133). When the G / WECU 2 determines that the response from the write target ECU 3 has been received (A133: YES), it determines whether or not the response is an affirmative response (A134). When the G / WECU 2 determines that the response is an affirmative response (A134: YES), the G / WECU 2 transmits an affirmative response to the rewriting tool 6 (A135), and ends the data transfer request process. On the other hand, when the G / WECU 2 determines that the response is not an affirmative response but a negative response (A134: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A136), and ends the data transfer request process.

(1−11)データ転送完了要求処理
G/WECU2は、図23に示すデータ転送完了要求処理を開始すると、書き換えツール6からデータ転送完了要求を受信したか否かを判定する(A141)。G/WECU2は、データ転送完了要求を受信したと判定すると(A141:YES)、図26に示す書き換え要求転送処理に移行する(A142)。G/WECU2は、書き換え要求転送処理を開始すると、データ転送完了要求を受信したと判定し(A180:YES)、送信先のCANID、データ転送完了IDを送信バッファにセットし(A181)、CAN送信制御処理に移行する(A182)。
(1-11) Data Transfer Completion Request Process When starting the data transfer completion request process shown in FIG. 23, the G / WECU 2 determines whether or not a data transfer completion request has been received from the rewriting tool 6 (A141). When the G / WECU 2 determines that the data transfer completion request has been received (A141: YES), the G / WECU 2 proceeds to the rewrite request transfer process shown in FIG. 26 (A142). When the rewrite request transfer process is started, the G / WECU 2 determines that a data transfer completion request has been received (A180: YES), sets the CANID of the transmission destination and the data transfer completion ID in the transmission buffer (A181), and transmits CAN. The process proceeds to control processing (A182).

G/WECU2は、CAN送信制御処理から復帰すると、書き換え要求転送処理を終了し、書き込み対象ECU3からの応答の受信を待機する(A143)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A143:YES)、その応答が肯定応答であるか否かを判定する(A144)。G/WECU2は、その応答が肯定応答であると判定すると(A144:YES)、肯定応答を書き換えツール6に送信し(A145)、データ転送完了要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A144:NO)、否定応答を書き換えツール6に送信し(A146)、データ転送完了要求処理を終了する。   When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite request transfer process and waits for reception of a response from the write target ECU 3 (A143). When the G / WECU 2 determines that the response from the writing target ECU 3 has been received (A143: YES), the G / WECU 2 determines whether the response is an affirmative response (A144). When the G / WECU 2 determines that the response is an affirmative response (A144: YES), the G / WECU 2 transmits an affirmative response to the rewriting tool 6 (A145), and ends the data transfer completion request process. On the other hand, when the G / WECU 2 determines that the response is not an affirmative response but a negative response (A144: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A146), and ends the data transfer completion request processing.

(1−12)プログラム妥当性要求処理
G/WECU2は、図24に示すプログラム妥当性要求処理を開始すると、書き換えツール6からプログラム妥当性要求を受信したか否かを判定する(A151)。G/WECU2は、プログラム妥当性要求を受信したと判定すると(A151:YES)、図26に示す書き換え要求転送処理に移行する(A152)。G/WECU2は、書き換え要求転送処理を開始すると、プログラム妥当性要求を受信したと判定し(A183:YES)、送信先のCANID、対象アドレス、対象サイズ、プログラム妥当性IDを送信バッファにセットし(A184)、CAN送信制御処理に移行する(A185)。
(1-12) Program Validity Request Process When the G / WECU 2 starts the program validity request process shown in FIG. 24, it determines whether a program validity request has been received from the rewriting tool 6 (A151). When the G / WECU 2 determines that the program validity request has been received (A151: YES), the G / WECU 2 proceeds to a rewrite request transfer process shown in FIG. 26 (A152). When the rewrite request transfer process is started, the G / WECU 2 determines that the program validity request has been received (A183: YES), and sets the destination CANID, target address, target size, and program validity ID in the transmission buffer. (A184), the process proceeds to the CAN transmission control process (A185).

G/WECU2は、CAN送信制御処理から復帰すると、書き換え要求転送処理を終了し、書き込み対象ECU3からの応答の受信を待機する(A153)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A153:YES)、その応答が肯定応答であるか否かを判定する(A154)。G/WECU2は、その応答が肯定応答であると判定すると(A154:YES)、肯定応答を書き換えツール6に送信し(A155)、プログラム妥当性要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A154:NO)、否定応答を書き換えツール6に送信し(A156)、プログラム妥当性要求処理を終了する。   When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite request transfer process and waits for a response from the write target ECU 3 (A153). When the G / WECU 2 determines that the response from the write target ECU 3 has been received (A153: YES), the G / WECU 2 determines whether or not the response is an affirmative response (A154). When the G / WECU 2 determines that the response is an affirmative response (A154: YES), the G / WECU 2 transmits an affirmative response to the rewriting tool 6 (A155), and ends the program validity request processing. On the other hand, when the G / WECU 2 determines that the response is not an affirmative response but a negative response (A154: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A156), and ends the program validity request processing.

(1−13)ECUリセット要求処理
G/WECU2は、図25に示すECUリセット要求処理を開始すると、書き換えツール6からECUリセット要求を受信したか否かを判定する(A161)。G/WECU2は、ECUリセット要求を受信したと判定すると(A161:YES)、図26に示す書き換え要求転送処理に移行する(A162)。G/WECU2は、書き換え要求転送処理を開始すると、ECUリセット要求を受信したと判定し(A186:YES)、送信先のCANID、ECUリセットIDを送信バッファにセットし(A187)、CAN送信制御処理に移行する(A188)。
(1-13) ECU Reset Request Process When the G / WECU 2 starts the ECU reset request process shown in FIG. 25, it determines whether or not an ECU reset request has been received from the rewriting tool 6 (A161). If it is determined that the ECU reset request has been received (A161: YES), the G / WECU 2 proceeds to a rewrite request transfer process shown in FIG. 26 (A162). When the G / WECU 2 starts the rewrite request transfer process, it determines that the ECU reset request has been received (A186: YES), sets the CANID and ECU reset ID of the transmission destination in the transmission buffer (A187), and the CAN transmission control process. (A188).

G/WECU2は、CAN送信制御処理から復帰すると、書き換え要求転送処理を終了し、書き込み対象ECU3からの応答の受信を待機する(A163)。G/WECU2は、書き込み対象ECU3からの応答を受信したと判定すると(A163:YES)、その応答が肯定応答であるか否かを判定する(A164)。G/WECU2は、その応答が肯定応答であると判定すると(A164:YES)、肯定応答を書き換えツール6に送信し(A165)、ECUリセット要求処理を終了する。一方、G/WECU2は、その応答が肯定応答でなく否定応答であると判定すると(A164:NO)、否定応答を書き換えツール6に送信し(A166)、ECUリセット要求処理を終了する。   When the G / WECU 2 returns from the CAN transmission control process, the G / WECU 2 ends the rewrite request transfer process and waits for reception of a response from the write target ECU 3 (A163). When the G / WECU 2 determines that the response from the write target ECU 3 has been received (A163: YES), it determines whether or not the response is an affirmative response (A164). When the G / WECU 2 determines that the response is an affirmative response (A164: YES), the G / WECU 2 transmits an affirmative response to the rewriting tool 6 (A165), and ends the ECU reset request process. On the other hand, when the G / WECU 2 determines that the response is not an affirmative response but a negative response (A164: NO), the G / WECU 2 transmits a negative response to the rewriting tool 6 (A166), and ends the ECU reset request process.

(2)書き込み対象ECU3が行う処理
書き込み対象ECU3は、CAN通信制御処理、データ格納処理、応答処理、書き換え機能処理、プログラム消去処理、ダウンロード処理、書き込み処理、書き込み完了処理、プログラム妥当性確認処理、リセット処理を行う。以下、それぞれの処理について説明する。
(2) Processing performed by the write target ECU 3 The write target ECU 3 includes a CAN communication control process, a data storage process, a response process, a rewrite function process, a program erase process, a download process, a write process, a write completion process, a program validity check process, Perform reset processing. Hereinafter, each processing will be described.

(2−1)CAN通信制御処理
書き込み対象ECU3は、CAN通信制御処理として、図27に示すメイン処理、図28に示すCAN受信制御処理、図29に示すCAN送信制御処理を行う。
(2-1) CAN Communication Control Process The write target ECU 3 performs a main process shown in FIG. 27, a CAN reception control process shown in FIG. 28, and a CAN transmission control process shown in FIG. 29 as the CAN communication control process.

書き込み対象ECU3は、メイン処理を開始すると、CAN受信制御処理に移行する(B1)。書き込み対象ECU3は、CAN受信制御処理を開始すると、G/WECU2からCAN信号を受信したか否かを判定し(B11)、CAN信号を受信したと判定すると(B11:YES)、データ格納処理に移行する(B12)。書き込み対象ECU3は、データ格納処理から復帰すると、CAN受信制御処理を終了する。又、書き込み対象ECU3は、CAN送信制御処理を開始すると、送信バッファ内の情報をCANレジスタにセットし(A21)、CAN信号を送信し(B22)、CAN送信制御処理を終了する。   The writing target ECU 3 starts the CAN reception control process when the main process is started (B1). When the writing target ECU 3 starts the CAN reception control process, it determines whether or not the CAN signal has been received from the G / WECU 2 (B11). If it is determined that the CAN signal has been received (B11: YES), the writing target ECU 3 performs the data storage process. Transition (B12). When the writing target ECU 3 returns from the data storage process, the CAN reception control process ends. When the CAN transmission control process is started, the write target ECU 3 sets information in the transmission buffer in the CAN register (A21), transmits a CAN signal (B22), and ends the CAN transmission control process.

(2−2)データ格納処理
書き込み対象ECU3は、図30に示すデータ格納処理を開始すると、G/WECU2から第1のMCU書き換え機能253aを受信したか否かを判定する(B31)。書き込み対象ECU3は、第1のMCU書き換え機能253aを受信したと判定すると(B31:YES)、その受信した第1のMCU書き換え機能253aをRAM36に格納し(B32)、肯定応答をG/WECU2に送信し(B33)、書き換え機能処理に移行する(B34)。書き込み対象ECU3は、書き換え機能処理から復帰すると、データ格納処理を終了する。
(2-2) Data Storage Process When the write target ECU 3 starts the data storage process shown in FIG. 30, it determines whether or not the first MCU rewriting function 253a is received from the G / WECU 2 (B31). When the writing target ECU 3 determines that the first MCU rewriting function 253a has been received (B31: YES), it stores the received first MCU rewriting function 253a in the RAM 36 (B32), and sends an affirmative response to the G / WECU 2. It transmits (B33) and shifts to the rewrite function process (B34). When the write target ECU 3 returns from the rewrite function process, the data storage process ends.

(2−3)応答処理
書き込み対象ECU3は、応答処理として、図31に示す肯定応答処理、図32に示す否定応答処理を行う。書き込み対象ECU3は、肯定応答処理を開始すると、送信先のCANID及び肯定応答データを送信バッファにセットし(B41)、CAN送信制御処理に移行する(B42)。書き込み対象ECU3は、CAN送信制御処理から復帰すると、肯定応答処理を終了する。又、書き込み対象ECU3は、否定応答処理を開始すると、送信先のCANID及び否定応答データを送信バッファにセットし(B51)、CAN送信制御処理に移行する(B52)。書き込み対象ECU3は、CAN送信制御処理から復帰すると、否定応答処理を終了する。
(2-3) Response Process The write target ECU 3 performs an affirmative response process shown in FIG. 31 and a negative response process shown in FIG. 32 as the response process. When the write target ECU 3 starts the acknowledgment process, it sets the CANID and acknowledgment data of the transmission destination in the transmission buffer (B41), and proceeds to the CAN transmission control process (B42). When returning from the CAN transmission control process, the write target ECU 3 ends the acknowledgment process. Further, when starting the negative response process, the write target ECU 3 sets the CANID and negative response data of the transmission destination in the transmission buffer (B51), and proceeds to the CAN transmission control process (B52). When returning from the CAN transmission control process, the writing target ECU 3 ends the negative response process.

(2−4)書き換え機能処理
書き込み対象ECU3は、図33に示す書き換え機能処理を開始すると、CAN信号を受信したか否かを判定する(B61)。書き込み対象ECU3は、CAN信号を受信したと判定すると(B61:YES)、図34に示す書き換え処理に移行する(B62)。書き込み対象ECU3は、書き換え処理から復帰すると、書き換え処理を全て完了したか否かを判定する(B63)。書き込み対象ECU3は、書き換え処理を全て完了したと判定する条件は、後述する書き換え処理内のリセット処理(B82)を実施するか否かで決定する。書き込み対象ECU3は、リセット処理を実施する場合には、リセット処理を正常に終了したことをもって、書き換え処理を全て完了したと判定する。ただし、その場合はリセット処理内でリセットが発生してプログラムの先頭から再起動されるので、書き換え機能処理のリターンを実施しない。一方、書き込み対象ECU3は、リセット処理を実施しない場合には、後述する書き換え処理内のプログラム妥当性確認処理(B80)を正常に終了したことをもって、書き換え処理を全て完了したと判定する。書き込み対象ECU3は、書き換え処理を全て完了したと判定すると(B63:YES)、書き換え機能処理を終了する。
(2-4) Rewriting Function Process When the writing target ECU 3 starts the rewriting function process shown in FIG. 33, it determines whether or not a CAN signal has been received (B61). When the writing target ECU 3 determines that the CAN signal has been received (B61: YES), the writing target ECU 3 proceeds to the rewriting process shown in FIG. 34 (B62). When returning from the rewriting process, the writing target ECU 3 determines whether or not all the rewriting processes have been completed (B63). The writing target ECU 3 determines the condition for determining that all the rewriting processes have been completed depending on whether or not to implement a reset process (B82) in the rewriting process described later. When the reset process is performed, the writing target ECU 3 determines that the rewrite process has been completed when the reset process is normally completed. However, in that case, a reset occurs in the reset process and restarts from the beginning of the program, so the rewrite function process is not returned. On the other hand, when the reset process is not performed, the write target ECU 3 determines that all the rewrite processes have been completed when the program validity confirmation process (B80) in the rewrite process to be described later has been completed normally. When the writing target ECU 3 determines that all the rewriting processes have been completed (B63: YES), the rewriting function process is terminated.

書き込み対象ECU3は、書き換え処理を開始すると、その受信したCAN信号が何れの要求であるかを判定する。書き込み対象ECU3は、プログラム消去要求を受信したと判定すると(B71:YES)、プログラム消去処理に移行し(B72)、ダウンロード要求を受信したと判定すると(B73:YES)、ダウンロード処理に移行する(B74)。書き込み対象ECU3は、データ転送要求を受信したと判定すると(B75:YES)、書き込み処理に移行し(B76)、データ転送完了要求を受信したと判定すると(B77:YES)、書き込み完了処理に移行する(B78)。書き込み対象ECU3は、プログラム妥当性要求を受信したと判定すると(B79:YES)、プログラム妥当性確認処理に移行し(B80)、ECUリセット要求を受信したと判定すると(B81:YES)、リセット処理に移行する(B82)。書き込み対象ECU3は、それぞれの処理から復帰すると、書き換え処理を終了する。   When the rewriting process is started, the writing target ECU 3 determines which request is the received CAN signal. When it is determined that the program erasure request has been received (B71: YES), the write target ECU 3 proceeds to the program erasure process (B72), and when it is determined that the download request has been received (B73: YES), the write target ECU 3 proceeds to the download process (B73: YES). B74). When it is determined that the data transfer request has been received (B75: YES), the write target ECU 3 proceeds to the write process (B76), and when it is determined that the data transfer completion request has been received (B77: YES), the process proceeds to the write completion process. (B78). When it is determined that the program validity request has been received (B79: YES), the writing target ECU 3 proceeds to the program validity confirmation process (B80), and when it is determined that the ECU reset request has been received (B81: YES), the reset process is performed. (B82). When the writing target ECU 3 returns from the respective processes, the rewriting process is terminated.

(2−5)プログラム消去処理
書き込み対象ECU3は、図35に示すプログラム消去処理を開始すると、消去対象アドレス及び消去サイズが適切であるか否かを判定する(B91)。書き込み対象ECU3は、消去対象アドレス及び消去サイズが適切であると判定すると(B91:YES)、消去対象アドレスから消去サイズまでのROMの領域を削除し(B92)、プログラムの消去に成功したか否かを判定する(B93)。書き込み対象ECU3は、プログラムの消去に成功したと判定すると(B93:YES)、肯定応答をG/WECU2に送信し(B94)、プログラム消去処理を終了する。一方、書き込み対象ECU3は、プログラムの消去に失敗したと判定すると(B93:NO)、否定応答をG/WECU2に送信し(B95)、プログラム消去処理を終了する。尚、書き込み対象ECU3は、消去対象アドレス及び消去サイズが適切でないと判定すると(B91:NO)、この場合も、否定応答をG/WECU2に送信し(B95)、プログラム消去処理を終了する。
(2-5) Program Erase Processing When the program target ECU 3 starts the program erase processing shown in FIG. 35, the program target ECU 3 determines whether the erase target address and the erase size are appropriate (B91). If the write target ECU 3 determines that the erase target address and erase size are appropriate (B91: YES), the ROM area from the erase target address to the erase size is deleted (B92), and whether or not the program has been successfully erased. Is determined (B93). If the write target ECU 3 determines that the program has been successfully erased (B93: YES), it sends an affirmative response to the G / WECU 2 (B94), and the program erase process is terminated. On the other hand, if the write target ECU 3 determines that the program erasure has failed (B93: NO), it sends a negative response to the G / WECU 2 (B95), and ends the program erasure process. If the writing target ECU 3 determines that the erasing target address and the erasing size are not appropriate (B91: NO), in this case as well, a negative response is transmitted to the G / WECU 2 (B95), and the program erasing process is terminated.

(2−6)ダウンロード処理
書き込み対象ECU3は、図36に示すダウンロード処理を開始すると、書き込み対象アドレス及び書き込みサイズが適切であるか否かを判定する(B101)。書き込み対象ECU3は、書き込み対象アドレス及び書き込みサイズが適切であると判定すると(B101:YES)、書き込み対象アドレス及び書き込みサイズをRAM36に保存し(B102)、肯定応答をG/WECU2に送信し(B103)、ダウンロード処理を終了する。一方、書き込み対象ECU3は、書き込み対象アドレス及び書き込みサイズが適切でないと判定すると(B101:NO)、否定応答をG/WECU2に送信し(B104)、ダウンロード処理を終了する。
(2-6) Download Process When the write target ECU 3 starts the download process shown in FIG. 36, the write target ECU 3 determines whether the write target address and the write size are appropriate (B101). When the write target ECU 3 determines that the write target address and the write size are appropriate (B101: YES), the write target ECU 3 stores the write target address and the write size in the RAM 36 (B102), and transmits an affirmative response to the G / WECU 2 (B103). ) The download process is terminated. On the other hand, when the write target ECU 3 determines that the write target address and the write size are not appropriate (B101: NO), it sends a negative response to the G / WECU 2 (B104) and ends the download process.

(2−7)書き込み処理
書き込み対象ECU3は、図37に示す書き込み処理を開始すると、書き換えデータを書き込み対象アドレスに書き込み(B111)、書き換えデータの書き込みに成功したか否かを判定する(B112)。書き込み対象ECU3は、書き換えデータの書き込みに成功したと判定すると(B112:YES)、現在の書き込み対象アドレスに今回の書き込みサイズを加算し、現在の書き込み対象アドレスを次回の書き込み処理に備えて更新する(B113)。書き込み対象ECU3は、現在の書き込みサイズから今回の書き込みサイズを減算し、現在の書き込みサイズを次回の書き込み処理に備えて更新し(B114)、肯定応答をG/WECU2に送信し(B115)、書き込み処理を終了する。一方、書き込み対象ECU3は、書き換えデータの書き込みに失敗したと判定すると(B112:NO)、否定応答をG/WECU2に送信し(B116)、書き込み処理を終了する。
(2-7) Write Process When the write target ECU 3 starts the write process shown in FIG. 37, the rewrite data is written to the write target address (B111), and it is determined whether the rewrite data has been successfully written (B112). . If the write target ECU 3 determines that the rewrite data has been successfully written (B112: YES), the write target ECU 3 adds the current write size to the current write target address, and updates the current write target address in preparation for the next write process. (B113). The writing target ECU 3 subtracts the current writing size from the current writing size, updates the current writing size in preparation for the next writing process (B114), and sends an acknowledgment to the G / WECU 2 (B115). The process ends. On the other hand, when the writing target ECU 3 determines that the writing of the rewrite data has failed (B112: NO), the writing target ECU 3 transmits a negative response to the G / WECU 2 (B116) and ends the writing process.

(2−8)書き込み完了処理
書き込み対象ECU3は、図38に示す書き込み完了処理を開始すると、現在の書き込みサイズが「0」であるか否かを判定する(B121)。書き込み対象ECU3は、現在の書き込みサイズが「0」であると判定すると(B121:YES)、肯定応答をG/WECU2に送信し(B122)、書き込み完了処理を終了する。一方、書き込み対象ECU3は、現在の書き込みサイズが「0」でないと判定すると(B122:NO)、否定応答をG/WECU2に送信し(B123)、書き込み完了処理を終了する。
(2-8) Write Completion Process When the write target ECU 3 starts the write completion process shown in FIG. 38, it determines whether or not the current write size is “0” (B121). When the writing target ECU 3 determines that the current writing size is “0” (B121: YES), the writing target ECU 3 transmits an affirmative response to the G / WECU 2 (B122), and ends the writing completion process. On the other hand, if the writing target ECU 3 determines that the current writing size is not “0” (B122: NO), it sends a negative response to the G / WECU 2 (B123), and ends the writing completion process.

(2−9)プログラム妥当性確認処理
書き込み対象ECU3は、図39に示すプログラム妥当性確認処理を開始すると、妥当性の確認対象アドレス及び対象サイズが適切であるか否かを判定する(B131)。書き込み対象ECU3は、妥当性の確認対象アドレス及び対象サイズが適切であると判定すると(B131:YES)、チェックサム演算を実施し(B132)、書き換えデータに格納されているチェックサム演算の期待値を取得する(B133)。書き込み対象ECU3は、チェックサム演算により取得した演算値と期待値とを照合し(B134)、両者が一致していると判定すると(B134:YES)、肯定応答をG/WECU2に送信し(B135)、プログラム妥当性確認処理を終了する。一方、書き込み対象ECU3は、両者が一致していないと判定すると(B134:NO)、否定応答をG/WECU2に送信し(B136)、プログラム妥当性確認処理を終了する。尚、書き込み対象ECU3は、妥当性の確認対象アドレス及び対象サイズが適切でないと判定すると(B131:NO)、この場合も、否定応答をG/WECU2に送信し(B136)、プログラム妥当性確認処理を終了する。
(2-9) Program Validity Confirmation Processing The writing target ECU 3, when starting the program validity confirmation processing shown in FIG. 39, determines whether or not the validity confirmation target address and the target size are appropriate (B131). . When the write target ECU 3 determines that the validity check target address and the target size are appropriate (B131: YES), the write target ECU 3 performs the checksum calculation (B132), and the expected value of the checksum calculation stored in the rewrite data Is acquired (B133). The writing target ECU 3 collates the calculated value obtained by the checksum calculation with the expected value (B134), and when it is determined that they match (B134: YES), sends an affirmative response to the G / WECU 2 (B135). ), The program validity checking process is terminated. On the other hand, if the write target ECU 3 determines that the two do not match (B134: NO), it sends a negative response to the G / WECU 2 (B136) and ends the program validity checking process. If the write target ECU 3 determines that the validity check target address and the target size are not appropriate (B131: NO), a negative response is also sent to the G / WECU 2 in this case (B136), and the program validity check process is performed. Exit.

(2−10)リセット処理
書き込み対象ECU3は、図40に示すリセット処理を開始すると、プログラムの消去中又は書き換えデータの書き込み中であるか否かを判定する(B141)。書き込み対象ECU3は、プログラムの消去中又は書き換えデータの書き込み中でないと判定すると(B141:NO)、肯定応答をG/WECU2に送信し(B142)、リセットを実施し(B143)、リセット処理を終了する。一方、書き込み対象ECU3は、プログラムの消去中又は書き換えデータの書き込み中であると判定すると(B141:YES)、否定応答をG/WECU2に送信し(B144)、リセット処理を終了する。
(2-10) Reset Process When the reset process shown in FIG. 40 is started, the write target ECU 3 determines whether the program is being erased or rewritten data is being written (B141). If the write target ECU 3 determines that the program is not being erased or rewritten data is not being written (B141: NO), it sends an affirmative response to the G / WECU 2 (B142), performs a reset (B143), and ends the reset process. To do. On the other hand, if the write target ECU 3 determines that the program is being erased or rewritten data is being written (B141: YES), a negative response is transmitted to the G / WECU 2 (B144), and the reset process is terminated.

上記した構成では、G/WECU2に書き換えサービス機能251aとMCU書き換え機能253a,253bとが集約されていることで、共通のMCUを使用している書き換え対象ECUについては、G/WECU2が保持するMCU書き換え機能253a,253bを共有することが可能となる。即ち、図41に示すように、G/WECU2とローカルCANバス5を介して書き換え対象ECU3,4が接続されていると共にローカルCANバス9を介して第3の書き換え対象ECU8が接続され、書き換え対象ECU3,8が共通のMCUを使用している構成では、MCU書き換え機能253aを書き換え対象ECU3,8で共有することが可能となる。   In the above-described configuration, the rewriting service function 251a and the MCU rewriting functions 253a and 253b are integrated in the G / WECU 2, so that the rewriting target ECU using the common MCU is the MCU held by the G / WECU 2. The rewriting functions 253a and 253b can be shared. That is, as shown in FIG. 41, the G / WECU 2 and the rewriting target ECUs 3 and 4 are connected via the local CAN bus 5 and the third rewriting target ECU 8 is connected via the local CAN bus 9 and the rewriting target. In the configuration in which the ECUs 3 and 8 use a common MCU, the MCU rewriting function 253a can be shared by the rewriting target ECUs 3 and 8.

以上説明したように第1の実施形態によれば、次に示す効果を得ることができる。
車両用データ通信システム1において、書き換えサービス機能251aとMCU書き換え機能253a,253bとをG/WECU2に集約し、それらの機能を書き換え対象ECU3,4から省き、それらの機能が書き換え対象ECU3,4の書き換えソフトに格納されない構成とした。これにより、車両に新規にECUを搭載しようとする場合でも、そのECUの書き換えソフトに書き換えサービス機能と書き換え機能とが格納される必要がなくなる。その結果、書き換え対象ECU3,4の書き換えソフトの開発に要する工数及び費用を低減すると共に、書き換え対象ECU3,4のROM35,45の領域においてアプリソフトで使用可能な領域の制約を低減することができる。
As described above, according to the first embodiment, the following effects can be obtained.
In the vehicular data communication system 1, the rewriting service function 251 a and the MCU rewriting functions 253 a and 253 b are integrated into the G / WECU 2, and these functions are omitted from the rewriting target ECUs 3 and 4. The configuration is not stored in the rewriting software. Thereby, even when it is going to mount ECU newly in a vehicle, it becomes unnecessary to store the rewriting service function and the rewriting function in the rewriting software of the ECU. As a result, it is possible to reduce the man-hours and costs required to develop the rewriting software for the rewriting target ECUs 3 and 4, and to reduce the restrictions on the areas usable by the application software in the areas of the ROMs 35 and 45 of the rewriting target ECUs 3 and 4. .

又、共通のMCUを使用している書き換え対象ECUについては、G/WECU2が保持するMCU書き換え機能253a,253bを共有することができ、車両に新規にECUを搭載しようとする場合に、そのECUのMCUと、既に車両に搭載されているECUのMCUとが同じ仕様であれば、新規に機能を追加せずにプログラムを書き換えることができる。更に、プログラム消去要求以降の要求メッセージとして、独自の通信プロトコルを用いた専用コマンドによる要求メッセージを用いることで、書き換えサービスの仕様が変更されたとしても書き換え機能のプログラムを変更する必要が発生せず、書き換えサービスの仕様の変更に対して適切に対応することができる。   In addition, regarding the ECU to be rewritten using a common MCU, the MCU rewriting functions 253a and 253b held by the G / WECU 2 can be shared, and when the ECU is newly installed in the vehicle, the ECU If the MCU and the MCU of the ECU already mounted on the vehicle have the same specifications, the program can be rewritten without adding a new function. Furthermore, by using a request message by a dedicated command using a unique communication protocol as a request message after the program erasure request, it is not necessary to change the program of the rewrite function even if the rewrite service specifications are changed. Therefore, it is possible to appropriately cope with a change in the specification of the rewriting service.

(第2の実施形態)
次に、本発明の第2の実施形態について図42を参照して説明する。尚、上記した第1の実施形態と同一の部分については説明を省略し、異なる部分について説明する。第1の実施形態は、書き換えサービス機能251aとMCU書き換え機能253a,253bとがG/WECU2に集約される構成であるが、第2の実施形態は、書き換えサービス機能251aがG/WECU2に集約され、MCU書き換え機能253a,253bが書き換えツール6に集約される構成である。この場合、G/WECU2は、書き換えツール6から受信したMCU書き換え機能253a,253bを書き換え対象ECU3,4に送信する。第2の実施形態によれば、第1の実施形態と同様の作用効果を得ることができる。又、MCU書き換え機能253a,253bを書き換えツール6に集約することで、G/WECU2のROM25の領域においてアプリソフトで使用可能な領域の制約を低減することができる。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to FIG. In addition, description is abbreviate | omitted about the same part as above-mentioned 1st Embodiment, and a different part is demonstrated. In the first embodiment, the rewriting service function 251a and the MCU rewriting functions 253a and 253b are integrated into the G / WECU 2, but in the second embodiment, the rewriting service function 251a is integrated into the G / WECU 2. The MCU rewriting functions 253a and 253b are integrated into the rewriting tool 6. In this case, the G / WECU 2 transmits the MCU rewriting functions 253 a and 253 b received from the rewriting tool 6 to the rewriting target ECUs 3 and 4. According to the second embodiment, the same effect as that of the first embodiment can be obtained. Further, by consolidating the MCU rewriting functions 253a and 253b into the rewriting tool 6, it is possible to reduce restrictions on the area that can be used by application software in the ROM 25 area of the G / WECU 2.

(その他の実施形態)
本発明は、上記した実施形態で例示したものに限定されることなく、その範囲を逸脱しない範囲で任意に変形又は拡張することができる。
MCU書き換え機能がG/WECU2に集約される構成と、MCU書き換え機能が書き換えツール6に集約される構成とが混在して良い。即ち、一の車両用通信システムにおいて、一のMCU書き換え機能がG/WECU2に集約される共に別のMCU書き換え機能が書き換えツール6に集約される構成でも良い。
(Other embodiments)
The present invention is not limited to those exemplified in the above-described embodiment, and can be arbitrarily modified or expanded without departing from the scope thereof.
A configuration in which the MCU rewriting function is integrated into the G / WECU 2 and a configuration in which the MCU rewriting function is integrated into the rewriting tool 6 may be mixed. That is, in one vehicle communication system, one MCU rewriting function may be integrated into the G / WECU 2 and another MCU rewriting function may be integrated into the rewriting tool 6.

図面中、1は車両用データ通信システム、2はG/WECU(ゲートウェイ電子制御装置)、3,4は書き換え対象ECU(書き換え対象電子制御装置)、251aは書き換えサービス機能、251eは書き換え機能転送機能、251fは書き換え要求転送機能、253a,253bはMCU書き換え機能(書き換え機能)である。   In the drawings, 1 is a vehicle data communication system, 2 is a G / WECU (gateway electronic control device), 3 and 4 are rewrite target ECUs (rewrite target electronic control devices), 251a is a rewrite service function, and 251e is a rewrite function transfer function. 251f is a rewrite request transfer function, and 253a and 253b are MCU rewrite functions (rewrite functions).

Claims (3)

書き換えツール(6)から書き換え要求を受信するゲートウェイ電子制御装置(2)と、前記書き換えツールから前記ゲートウェイ電子制御装置を経由して受信した書き換えデータを書き込んでプログラムを書き換える書き換え対象電子制御装置(3,4)と、を備えた車両用データ通信システム(1)において、
前記ゲートウェイ電子制御装置は、各種サービス機能の要求を実行するための書き換えサービス機能(251a)と、プログラムを書き換えるための書き換え機能(253a,253b)と、書き換え機能転送機能(251e)と、書き換え要求転送機能(251f)とを保持し、前記書き換えツールから書き換え要求を受信すると、前記書き換え要求を、前記書き換え要求転送機能を用いて前記書き換え対象電子制御装置に送信し、前記書き換え機能を、前記書き換え機能転送機能を用いて前記書き換え対象電子制御装置に送信し、
前記書き換え対象電子制御装置は、前記ゲートウェイ電子制御装置から受信した前記書き換え機能を用い、前記書き換えツールから前記ゲートウェイ電子制御装置を経由して受信した書き換えデータを書き込んでプログラムを書き換える車両用データ通信システム。
A gateway electronic control unit (2) that receives a rewrite request from the rewrite tool (6), and a rewrite target electronic control unit (3) that writes the rewrite data received from the rewrite tool via the gateway electronic control unit and rewrites the program. 4) and a vehicle data communication system (1) comprising:
The gateway electronic control unit includes a rewrite service function (251a) for executing various service function requests, a rewrite function (253a, 253b) for rewriting a program, a rewrite function transfer function (251e), and a rewrite request. When the rewrite request is received from the rewrite tool, the rewrite request is transmitted to the rewrite target electronic control device using the rewrite request transfer function, and the rewrite function is transferred to the rewrite function. Send to the electronic controller to be rewritten using the function transfer function,
The vehicular data communication system wherein the rewriting target electronic control device uses the rewriting function received from the gateway electronic control device and rewrites the program by rewriting data received from the rewriting tool via the gateway electronic control device. .
請求項1に記載した車両用データ通信システムにおいて、
前記ゲートウェイ電子制御装置は、前記書き換え機能を、複数の書き換え対象電子制御装置で共有する車両用データ通信システム。
The vehicle data communication system according to claim 1,
The gateway electronic control device is a vehicle data communication system in which the rewrite function is shared by a plurality of rewrite target electronic control devices.
請求項1又は2に記載した車両用データ通信システムにおいて、
前記ゲートウェイ電子制御装置は、前記書き換えデータの前記書き換え対象電子制御装置への送信を含むデータ通信を独自の通信プロトコルで行う車両用データ通信システム。
In the vehicle data communication system according to claim 1 or 2,
The gateway electronic control device is a vehicle data communication system for performing data communication including transmission of the rewrite data to the rewrite target electronic control device using a unique communication protocol .
JP2016025859A 2016-02-15 2016-02-15 Vehicle data communication system Active JP6558264B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016025859A JP6558264B2 (en) 2016-02-15 2016-02-15 Vehicle data communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016025859A JP6558264B2 (en) 2016-02-15 2016-02-15 Vehicle data communication system

Publications (2)

Publication Number Publication Date
JP2017146655A JP2017146655A (en) 2017-08-24
JP6558264B2 true JP6558264B2 (en) 2019-08-14

Family

ID=59683102

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016025859A Active JP6558264B2 (en) 2016-02-15 2016-02-15 Vehicle data communication system

Country Status (1)

Country Link
JP (1) JP6558264B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111273931B (en) * 2020-01-20 2023-05-26 宁波吉利汽车研究开发有限公司 Parallel upgrading method and device for vehicle-mounted traveling crane computers

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001319267A (en) * 2000-05-09 2001-11-16 Sanden Corp Control system for automatic vending machine
JP2006221274A (en) * 2005-02-08 2006-08-24 Denso Corp Electronic control device for vehicle and rewriting method of control program
JP5363192B2 (en) * 2009-05-21 2013-12-11 富士通テン株式会社 Gateway device and data transmission method
JP5641181B2 (en) * 2009-11-26 2014-12-17 横河電機株式会社 Redundant processing equipment
JP6217543B2 (en) * 2014-06-27 2017-10-25 株式会社デンソー Electronic control device and system for rewriting stored contents for electronic control device

Also Published As

Publication number Publication date
JP2017146655A (en) 2017-08-24

Similar Documents

Publication Publication Date Title
US10783090B2 (en) Storage system and method for performing and authenticating write-protection thereof
CN110457236B (en) Storage system and method for executing and verifying write protection of storage system
US10257192B2 (en) Storage system and method for performing secure write protect thereof
CN103678144B (en) Data storage device and flash memory control method
KR101986355B1 (en) A embedded Multimedia Card(eMMC), eMMC system including the eMMC, and a method for operating the eMMC
CN105511806B (en) The method and mobile terminal of processing write requests
TW200935234A (en) System and method for setting access and modification for synchronous serial interface NAND
TW200928736A (en) A controller for one type of NAND flash memory for emulating another type of NAND flash memory
CN104541280A (en) Alternative boot path support for utilizing non-volatile memory devices
CN104699621A (en) Data storage device and flash memory control method
WO2021139109A1 (en) Method and apparatus for writing into state database, electronic device, and storage medium
JP6558264B2 (en) Vehicle data communication system
CN104679672A (en) Data storage device and flash memory control method
CN111144866A (en) Data transfer method, device, node equipment and storage medium
CN112000358B (en) Upgrading method of charging pile and intelligent charging pile
KR20200023757A (en) Memory system
CN112992231A (en) Data storage device and parameter rewriting method
CN106648758A (en) Multi-core processor BOOT starting system and method
EP3232320A1 (en) Transaction conflict detection method and apparatus and computer system
JP2009134497A (en) Reprogramming system for non-volatile memory of in-vehicle control unit
TW202143054A (en) Method for performing access management of memory device with aid of dedicated bit information, memory device, electronic device, controller of memory device, and host device
US20190196967A1 (en) Device including access controller, system on chip and system including the same
CN114371860A (en) Controller batch upgrading method and device
CN115774681A (en) Information processing apparatus
US11650738B2 (en) Integrity check of a memory

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180529

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190125

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190205

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190327

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190423

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190531

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190701

R151 Written notification of patent or utility model registration

Ref document number: 6558264

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250