JP2016188017A - Program rewriting device and program rewriting method - Google Patents

Program rewriting device and program rewriting method Download PDF

Info

Publication number
JP2016188017A
JP2016188017A JP2015068885A JP2015068885A JP2016188017A JP 2016188017 A JP2016188017 A JP 2016188017A JP 2015068885 A JP2015068885 A JP 2015068885A JP 2015068885 A JP2015068885 A JP 2015068885A JP 2016188017 A JP2016188017 A JP 2016188017A
Authority
JP
Japan
Prior art keywords
program
rewriting
ecu
target
ecus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2015068885A
Other languages
Japanese (ja)
Other versions
JP6147791B2 (en
Inventor
邦治 成瀬
Kuniharu NARUSE
邦治 成瀬
伸也 吉野
Shinya Yoshino
伸也 吉野
俊 藤塚
Takashi Fujitsuka
俊 藤塚
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 JP2015068885A priority Critical patent/JP6147791B2/en
Priority to CN201680020073.4A priority patent/CN107531198B/en
Priority to US15/562,153 priority patent/US20180081671A1/en
Priority to PCT/JP2016/058908 priority patent/WO2016158547A1/en
Priority to DE112016000992.5T priority patent/DE112016000992T5/en
Publication of JP2016188017A publication Critical patent/JP2016188017A/en
Application granted granted Critical
Publication of JP6147791B2 publication Critical patent/JP6147791B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a program rewriting device and a program rewriting method capable of facilitating program rewriting.SOLUTION: A rewriting control unit of a program rewriting device causes intercommunication to be stopped and storage of a DTC to be prohibited in all of ECUs before program rewriting of each object ECU. When the continuous program rewriting in all the object ECUs is finished, the rewriting control unit cancels stop of intercommunication and storage prohibition of the DTC after confirming stop of all the object ECUs. Then, the rewriting control unit confirms whether or not version information from the object ECU is the latest version.SELECTED DRAWING: Figure 3

Description

本発明は、車両の外部から前記車両内の電子制御装置(以下「ECU」という。)のネットワークに接続し、プログラム書換えが必要なECUを選択してプログラム書換えを行うプログラム書換装置及びプログラム書換方法に関する。   The present invention relates to a program rewriting apparatus and a program rewriting method which are connected to a network of an electronic control device (hereinafter referred to as “ECU”) in the vehicle from the outside of the vehicle, select an ECU requiring program rewriting, and perform program rewriting. About.

近年の車両には多数のECUが搭載されているが、制御仕様の一部改良等に対応してプログラムのバージョンアップが行われることがある。その場合、関連する複数のECUに対してプログラム書換えが必要になる場合がある。   Many recent ECUs are equipped with a lot of ECUs, but the version of a program may be upgraded in response to a partial improvement in control specifications. In that case, the program may need to be rewritten for a plurality of related ECUs.

ところで、車両に搭載された複数のECUの多くは、通信によって相互に異常を監視する機能を有している。このため、プログラム書換えに当たっては、1つのECUのプログラムを書き換える場合に、外部のプログラム書換装置からの書込み要求と併せて、書換対象ECUと他のECUとの間で発生する通信異常を故障と判断しないように故障診断を停止する必要がある。さらに、書換え後にはこの停止解除のために、車両のイグニッションスイッチをオフした後に再オンさせる再起動操作が必要になる。   Incidentally, many of the plurality of ECUs mounted on the vehicle have a function of monitoring each other for abnormality by communication. For this reason, when rewriting a program of one ECU, a communication abnormality occurring between the ECU to be rewritten and another ECU is judged as a failure in addition to a write request from an external program rewriting device. It is necessary to stop the fault diagnosis so as not to Furthermore, after rewriting, in order to release this stop, a restart operation is required to turn on the vehicle after turning off the ignition switch of the vehicle.

従って、車両をメンテナンスする販売店等での書換作業では、1回の書換えに対応する複数の書換対象ECUについて、1つずつ順番に書換えを行い、各ECUの書換えの都度イグニッションスイッチに対するオフ操作及び再オン操作を行う大変手間のかかる作業が行われていた。   Therefore, in a rewriting operation at a store or the like that maintains a vehicle, a plurality of rewriting target ECUs corresponding to one rewriting are sequentially rewritten one by one, and each ECU is rewritten to turn off the ignition switch and A very time-consuming work to perform the re-on operation was performed.

これに対して、特許文献1のように、書換対象となる複数のECUの書換データを、CD−ROM等の媒体又は移動通信網等を介して入手し、互いに協調制御を行う複数のECUについて、それぞれの書換えを行った後に、その複数のECUをまとめて再起動することも検討されている。   On the other hand, as in Patent Document 1, rewrite data of a plurality of ECUs to be rewritten is obtained via a medium such as a CD-ROM or a mobile communication network, and a plurality of ECUs that perform cooperative control with each other. It is also considered to restart the plurality of ECUs collectively after rewriting each.

特開2012−091755号公報JP 2012-091755 A

特許文献1の方法では、書換作業自体は容易に行えるようになる。しかしながら、書換対象となる複数のECUの識別情報、プログラムの互換性情報、協調制御の対象ECUの組合せ等のデータを考慮して書換順番の指定を予め作成する必要がある。このため、1回の書換えの度にデータの作成に大変手間がかかる。   In the method of Patent Document 1, the rewriting work itself can be easily performed. However, it is necessary to create a rewrite order specification in advance in consideration of data such as identification information of a plurality of ECUs to be rewritten, program compatibility information, and combinations of target ECUs for cooperative control. For this reason, it takes time and effort to create data each time rewriting is performed.

また、プログラム等のデータの量が大きいため、データに間違いがないか又は正常かを照合するためのセット情報を併せて設けること等の必要がある。さらには、書換対象となるECUのうち一部のECUで書換えの失敗があった場合に、再度の書換えを行うに当たり、正常な書換え終了部分との兼ね合いでの書換順番の配慮が必要になる。このため、修復に大変手間がかかる場合があった。   In addition, since the amount of data such as programs is large, it is necessary to provide set information for checking whether the data is correct or normal. Furthermore, when rewriting is failed in some ECUs among the ECUs to be rewritten, it is necessary to consider the rewriting order in consideration of the normal rewriting end part when performing rewriting again. For this reason, it may take a lot of time to repair.

本発明は上記のような課題を考慮してなされたものであり、プログラム書換えを簡易に行うことが可能なプログラム書換装置及びプログラム書換方法を提供することを目的とする。   The present invention has been made in view of the above-described problems, and an object thereof is to provide a program rewriting apparatus and a program rewriting method capable of easily performing program rewriting.

本発明に係るプログラム書換装置は、車両の外部から前記車両内の電子制御装置(以下「ECU」という。)のネットワークに接続するネットワーク接続部と、プログラム書換えが必要な複数のECU(以下「対象ECU」という。)を選択してプログラム書換えを行う書換制御部とを備えるものであって、前記書換制御部は、全ての前記ECUそれぞれに対して、相互通信の停止及び故障コードの保存禁止を要求する停止/禁止要求信号を送信し、前記停止/禁止要求信号を送信している状態で、前記対象ECUに対して前記プログラム書換動作を順番に行い、全ての前記対象ECUにおける前記プログラム書換動作の終了後に、前記対象ECUそれぞれに対して動作確認信号を送信するように構成し、前記動作確認信号に対する応答がないことをもって全ての前記対象ECUの停止を検出したとき、前記停止/禁止要求信号の送信を終了し、その後、前記対象ECUに対して搭載プログラムのバージョン情報を要求するバージョン情報要求信号を送信し、前記対象ECUから受信した前記バージョン情報が最新バージョンであるか否かを確認することを特徴とする。   A program rewriting device according to the present invention includes a network connection unit that connects to the network of an electronic control device (hereinafter referred to as “ECU”) in the vehicle from the outside of the vehicle, and a plurality of ECUs that require program rewriting (hereinafter referred to as “targets”). ECU ”) and a rewrite control unit that rewrites the program, and the rewrite control unit prohibits mutual communication from being stopped and failure code storage prohibited for each of the ECUs. The program rewriting operation in all the target ECUs is performed in order by performing the program rewriting operation on the target ECUs in a state where the requested stop / prohibition request signal is transmitted and the stop / prohibition request signal is transmitted. After the operation is completed, an operation confirmation signal is transmitted to each of the target ECUs, and there is no response to the operation confirmation signal. When the stop of all the target ECUs is detected, the transmission of the stop / prohibition request signal is terminated, and then a version information request signal for requesting the version information of the installed program is transmitted to the target ECU. Whether the version information received from the target ECU is the latest version is confirmed.

本発明によれば、プログラム書換え前に、全てのECUにおける相互通信の停止及び故障コードの保存禁止をさせる。また、全ての対象ECUにおける連続的なプログラム書換えが終了すると、全ての対象ECUの停止を確認した上で、相互通信の停止及び故障コードの保存禁止を解除する。その後、対象ECUに対して搭載プログラムのバージョン情報を要求するバージョン情報要求信号を送信し、対象ECUから受信したバージョン情報に基づいてプログラム書換えの完了を確認する。   According to the present invention, before rewriting the program, the mutual communication in all the ECUs is stopped and the failure code is prohibited to be stored. Further, when the continuous program rewriting in all the target ECUs is completed, after confirming the stop of all the target ECUs, the suspension of mutual communication and the prohibition of storing the fault codes are canceled. Thereafter, a version information request signal for requesting version information of the installed program is transmitted to the target ECU, and the completion of the program rewriting is confirmed based on the version information received from the target ECU.

従って、対象ECUを再起動させるための操作(再起動操作)を、全ての対象ECUの連続的なプログラム書換えの後にまとめて行うことで、作業者の作業負担を大幅に低減することが可能となる。よって、市場に出回っている車両に対するプログラム書換えを、販売店等の整備事業者で行う場合も、適切な書換作業を容易に実施することが可能になる。   Therefore, the operation for restarting the target ECU (restart operation) is collectively performed after the continuous program rewriting of all the target ECUs, so that it is possible to greatly reduce the work burden on the operator. Become. Therefore, even when a program rewriting for a vehicle on the market is performed by a maintenance company such as a dealer, an appropriate rewriting operation can be easily performed.

前記書換制御部は、全ての前記対象ECUにおける前記プログラム書換動作の終了後に、前記対象ECU1つ1つに対して前記動作確認信号を順番に送信し、前記動作確認信号に対する応答がないことをもって全ての前記対象ECUの停止を検出してもよい。これにより、書換え可能な全ECU(対象ECU)に対して一度にまとめて動作確認信号を送信する場合と比較して、書き換えたECUのみの停止を検出するだけなので判断が容易であると共に、確認に必要な時間を短くすることができる。また、書換作業を行った対象ECUについて、動作確認信号に対する応答がないことをもって停止を検出し、その後の処理を行うため、各対象ECUを確実に再起動することが可能となる。   The rewrite control unit sequentially transmits the operation confirmation signal to each of the target ECUs after the completion of the program rewriting operation in all the target ECUs, and all of the responses have no response to the operation confirmation signals. The stop of the target ECU may be detected. As a result, it is easier to make a decision as it only detects the stop of the rewritten ECU as compared to the case where the operation confirmation signal is sent to all rewritable ECUs (target ECUs) at once. The time required for the process can be shortened. In addition, since the target ECU that has performed the rewriting operation is detected as having no response to the operation confirmation signal, and the subsequent processing is performed, each target ECU can be reliably restarted.

前記書換制御部は、全ての前記対象ECUに対する前記プログラム書換動作が終了した後、前記車両内の前記ECU用の電源のオフ操作を要求するオフ操作要求を表示部に表示させ、全ての前記対象ECUの停止を検出して前記停止/禁止要求信号の送信を終了した後に、前記ECU用の電源の再オン操作を要求する再オン操作要求を前記表示部に表示させてもよい。これにより、再オン操作要求を行うためには、全ての対象ECUにおける電源オフの確認が条件となる。このため、対象ECUの数が多い場合や、電源オフまでの時間が長い対象ECUが存在する場合でも、全ての対象ECUを確実に電源オフさせた後に再起動の操作を指示することが可能となる。   The rewrite control unit displays on the display unit an off operation request for requesting an off operation of the power source for the ECU in the vehicle after the program rewriting operation for all the target ECUs is completed, After detecting the stop of the ECU and finishing the transmission of the stop / prohibition request signal, a re-on operation request for requesting a re-on operation of the power source for the ECU may be displayed on the display unit. Thus, in order to make a re-on operation request, it is necessary to confirm that all the target ECUs are turned off. For this reason, even when there are a large number of target ECUs or there are target ECUs that take a long time to power off, it is possible to instruct a restart operation after powering off all target ECUs reliably. Become.

前記プログラム書換装置は、前記車両に搭載されている書換え可能な全ての前記ECUの識別記号に対応させて、書換えの優先順番を予め記憶した順番データベースと、プログラム書換えが必要な前記車両の変更対象動作毎に、前記対象ECUの候補である書換候補ECUの識別記号と、前記書換候補ECUの搭載プログラムの最新バージョン情報との組合せを書換候補情報として記憶する書換候補情報データベースと、書換プログラムを記憶する書換プログラムデータベースとを備え、前記書換制御部は、前記ネットワークに含まれる書換え可能な全ての前記ECUから前記ECUの識別記号及び搭載プログラムの現在バージョン情報を対にして読み出し、読み出した前記現在バージョン情報と、当該現在バージョン情報に対応する前記最新バージョン情報とを比較して、前記最新バージョン情報と一致しない前記現在バージョン情報と対になる前記書換候補ECUを前記対象ECUとして抽出し、抽出した前記対象ECUに対して前記順番データベースに記憶されている前記優先順番でプログラム書換動作を連続して実行してもよい。   The program rewriting device includes an order database in which priority order of rewriting is stored in advance in correspondence with identification symbols of all the rewritable ECUs mounted on the vehicle, and a change target of the vehicle requiring program rewriting. For each operation, a rewrite candidate information database for storing a combination of an identification symbol of a rewrite candidate ECU that is a candidate for the target ECU and the latest version information of a program installed in the rewrite candidate ECU as rewrite candidate information, and a rewrite program are stored. The rewriting control unit reads out the current version information read from the rewritable ECUs included in the network in pairs with the identification symbols of the ECUs and the current version information of the installed programs. Information and the latest version corresponding to the current version information. The version information is compared, the rewrite candidate ECU paired with the current version information that does not match the latest version information is extracted as the target ECU, and the extracted target ECU is stored in the order database. The program rewriting operation may be continuously executed in the priority order.

本発明によれば、車両の各変更対象動作で書換えが必要となるECU(対象ECU)の組合せに対応する優先順番でプログラム書換えを行う。このため、その車両に最適な順番でプログラム書換えを行うことが可能となる。   According to the present invention, program rewriting is performed in a priority order corresponding to combinations of ECUs (target ECUs) that need to be rewritten in each change target operation of the vehicle. For this reason, it becomes possible to perform the program rewriting in the optimal order for the vehicle.

また、本発明によれば、現在バージョン情報と最新バージョン情報とが一致しない書換候補ECUである対象ECUに対して、変更対象動作毎の優先順番に従って最新バージョンのプログラムへの書換えを連続して実行する。このため、書換えが必要な書換候補ECUのみについて書換えを行うので、書換作業を効率よく行うことが可能となる。   Further, according to the present invention, for the target ECU that is the rewriting candidate ECU whose current version information and the latest version information do not match, the rewriting to the latest version program is continuously executed according to the priority order for each operation to be changed. To do. For this reason, only the rewriting candidate ECU that needs to be rewritten is rewritten, so that the rewriting work can be performed efficiently.

以上によれば、市場に出回っている車両に対するプログラム書換えを、販売店等の整備事業者が行う場合も、整備事業者(作業者)による対象ECUの選定を誤ることがない。加えて、書換順番を特定する作業負担を軽減でき、適切な書換作業の容易な実施が可能になる。   According to the above, even when a maintenance company such as a dealer performs rewriting of a program for vehicles on the market, the maintenance company (operator) does not mistakenly select the target ECU. In addition, it is possible to reduce the work load for specifying the rewriting order, and it is possible to easily perform appropriate rewriting work.

また、プログラム書換え中に書換えを失敗した対象ECUが存在しても、再度書換作業を行うことにより、既に書換えが成功している対象ECUを除いて、書換えが終了していない対象ECUに対して書換えを行うことが可能となる。   In addition, even if there is a target ECU that has failed to be rewritten during program rewriting, by performing the rewriting operation again, the target ECUs for which rewriting has not been completed can be performed except for the target ECU that has already been rewritten. Rewriting can be performed.

本発明に係るプログラム書換方法は、車両の外部から前記車両内の電子制御装置(以下「ECU」という。)のネットワークに接続するネットワーク接続部と、プログラム書換えが必要な複数のECU(以下「対象ECU」という。)を選択してプログラム書換えを行う書換制御部とを備えるプログラム書換装置におけるプログラム書換方法であって、前記書換制御部は、全ての前記ECUそれぞれに対して、相互通信の停止及び故障コードの保存禁止を要求する停止/禁止要求信号を送信し、前記停止/禁止要求信号を送信している状態で、前記対象ECUに対して前記プログラム書換動作を順番に行い、全ての前記対象ECUにおける前記プログラム書換動作の終了後に、前記対象ECUそれぞれに対して動作確認信号を送信するように構成し、前記動作確認信号に対する応答がないことをもって全ての前記対象ECUの停止を検出したとき、前記停止/禁止要求信号の送信を終了し、その後、前記対象ECUに対して搭載プログラムのバージョン情報を要求するバージョン情報要求信号を送信し、前記対象ECUから受信した前記バージョン情報が最新バージョンであるか否かを確認することを特徴とする。   A program rewriting method according to the present invention includes a network connection unit that connects to a network of an electronic control device (hereinafter referred to as “ECU”) in the vehicle from the outside of the vehicle, and a plurality of ECUs that require program rewriting (hereinafter referred to as “target”). The program rewriting apparatus includes a rewrite control unit that selects and rewrites the program by selecting the ECU, and the rewrite control unit is configured to stop mutual communication with respect to each of all the ECUs. Sending a stop / prohibition request signal requesting prohibition of storage of a fault code, in a state where the stop / prohibition request signal is being transmitted, sequentially performing the program rewrite operation on the target ECU, and After completion of the program rewriting operation in the ECU, an operation confirmation signal is transmitted to each of the target ECUs When the stop of all the target ECUs is detected when there is no response to the operation confirmation signal, the transmission of the stop / prohibition request signal is terminated, and then the version information of the installed program for the target ECU A version information request signal for requesting is sent to check whether or not the version information received from the target ECU is the latest version.

本発明によれば、複数の前記対象ECUのプログラム書換えを簡易に行うことが可能となる。   According to the present invention, it is possible to easily perform program rewriting of a plurality of the target ECUs.

本発明の一実施形態に係るプログラム書換装置を含むプログラム書換システムを簡略的に示す概略構成図である。It is a schematic structure figure showing simply a program rewriting system containing a program rewriting device concerning one embodiment of the present invention. 前記実施形態における記憶部の構成を概念的に記載した図である。It is the figure which described notionally the structure of the memory | storage part in the said embodiment. 前記実施形態においてプログラム書換えを行うフローチャートである。It is a flowchart which performs program rewriting in the said embodiment. 前記実施形態における書換候補ECU組合せ選択処理のフローチャート(図3のS4の詳細)である。It is a flowchart (details of S4 of Drawing 3) of rewriting candidate ECU combination selection processing in the above-mentioned embodiment. 前記実施形態におけるプログラム連続書換処理のフローチャート(図3のS8の詳細)である。It is a flowchart (detail of S8 of FIG. 3) of the program continuous rewriting process in the said embodiment. 前記実施形態におけるプログラム連続書換処理及び書換完了確認処理において前記プログラム書換装置及び各電子制御装置の通信状態及び動作状態を説明するための図である。It is a figure for demonstrating the communication state and operation | movement state of the said program rewriting apparatus and each electronic control unit in the program continuous rewriting process and rewriting completion confirmation process in the said embodiment. 前記実施形態における書換完了確認処理のフローチャート(図3のS9の詳細)である。It is a flowchart (detail of S9 of FIG. 3) of the rewriting completion confirmation process in the said embodiment. 比較例において、各対象電子制御装置の電源オフを順番に確認していく様子の一例を示す図である。In a comparative example, it is a figure which shows an example of a mode that the power-off of each object electronic controller is confirmed in order. 前記実施形態において、各対象電子制御装置の電源オフを順番に確認していく様子の一例を示す図である。In the said embodiment, it is a figure which shows an example of a mode that the power-off of each object electronic control apparatus is confirmed in order.

A.一実施形態
[A1.プログラム書換システム10の構成]
(A1−1.全体構成)
図1は、本発明の一実施形態に係るプログラム書換装置12(以下「書換装置12」ともいう。)を含むプログラム書換システム10(以下「書換システム10」又は「システム10」ともいう。)を簡略的に示す概略構成図である。システム10は、書換装置12に加え、車両14を含む。図1では、書換装置12及び車両14をそれぞれ1つずつ示しているが、それぞれ複数設けることも可能である。
A. One Embodiment [A1. Configuration of Program Rewriting System 10]
(A1-1. Overall configuration)
FIG. 1 shows a program rewriting system 10 (hereinafter also referred to as “rewriting system 10” or “system 10”) including a program rewriting device 12 (hereinafter also referred to as “rewriting device 12”) according to an embodiment of the present invention. It is a schematic block diagram shown simply. The system 10 includes a vehicle 14 in addition to the rewriting device 12. In FIG. 1, one rewriting device 12 and one vehicle 14 are shown, but a plurality of them can be provided.

(A1−2.プログラム書換装置12)
(A1−2−1.プログラム書換装置12の全体構成)
書換装置12は、車両14の第1〜第10電子制御装置62a〜62j(以下「第1〜第10ECU62a〜62j」又は「ECU62a〜62j」という。)のうちプログラム書換対象のECUに記憶されたプログラムを書き換える(又は更新する)。以下では、ECU62a〜62jをECU62と総称する。プログラム書換対象のECU62を「対象ECU62tar」ともいう。ECU62に記憶されているプログラムを「搭載プログラムPi」又は「プログラムPi」ともいう。
(A1-2. Program rewriting device 12)
(A1-2-1. Overall configuration of program rewriting device 12)
The rewriting device 12 is stored in the ECU to be rewritten among the first to tenth electronic control devices 62a to 62j (hereinafter referred to as “first to tenth ECUs 62a to 62j” or “ECUs 62a to 62j”) of the vehicle 14. Rewrite (or update) the program. Below, ECU62a-62j is named ECU62 generically. The program rewriting target ECU 62 is also referred to as a “target ECU 62 tar”. The program stored in the ECU 62 is also referred to as “installed program Pi” or “program Pi”.

図1に示すように、書換装置12は、信号入出力部20、操作入力部22、演算部24、記憶部26及び表示部28を有する。   As illustrated in FIG. 1, the rewriting device 12 includes a signal input / output unit 20, an operation input unit 22, a calculation unit 24, a storage unit 26, and a display unit 28.

信号入出力部20(ネットワーク接続部)は、車両14との間で信号の入出力を行う。信号入出力部20は、データケーブル30及びデータリンクコネクタ32(以下「DLC32」ともいう。)を有し、車両14の外部から車両14内の通信ネットワーク60に接続する。   The signal input / output unit 20 (network connection unit) inputs and outputs signals to and from the vehicle 14. The signal input / output unit 20 includes a data cable 30 and a data link connector 32 (hereinafter also referred to as “DLC 32”), and is connected to the communication network 60 in the vehicle 14 from the outside of the vehicle 14.

操作入力部22は、書換装置12のユーザ(又は作業者)からの操作入力を受け付ける。本実施形態において、操作入力部22は、車両14の変更対象動作Otarを選択する変更対象動作選択部として機能する。ここにいう変更対象動作Otarは、例えば、車両14の性能(燃費、旋回性能等)を向上するため又は車両14における不具合を解消するために車両14に施す動作をいう。   The operation input unit 22 receives an operation input from a user (or a worker) of the rewriting device 12. In the present embodiment, the operation input unit 22 functions as a change target operation selection unit that selects the change target operation Otar of the vehicle 14. The change target operation Otar mentioned here refers to, for example, an operation performed on the vehicle 14 in order to improve the performance (fuel consumption, turning performance, etc.) of the vehicle 14 or to solve problems in the vehicle 14.

演算部24(書換制御部)は、書換装置12の各部を制御すると共に、車両14の対象ECU62tarに対するプログラム書換えを制御する。演算部24は、例えば、中央演算装置(CPU)を含む。演算部24の動作の詳細は、図2〜図9を参照して後述する。   The calculation unit 24 (rewrite control unit) controls each unit of the rewriting device 12 and also controls program rewriting for the target ECU 62tar of the vehicle 14. The calculation unit 24 includes, for example, a central processing unit (CPU). Details of the operation of the calculation unit 24 will be described later with reference to FIGS.

記憶部26は、図示しない揮発性メモリ及び不揮発性メモリを有し、演算部24が実行する各種のプログラム及び各種のデータ並びに書換え用のプログラム(以下「書換プログラムPr」又は「プログラムPr」ともいう。)を記憶する。以下では、搭載プログラムPiと書換プログラムPrを合わせてプログラムPともいう。   The storage unit 26 includes a volatile memory and a non-volatile memory (not shown), and various programs executed by the arithmetic unit 24, various data, and a rewrite program (hereinafter also referred to as “rewrite program Pr” or “program Pr”). .) Is memorized. Hereinafter, the installed program Pi and the rewrite program Pr are collectively referred to as a program P.

表示部28は、プログラム書換え等に関する表示画面を表示する。表示部28をタッチパネルとすることで、操作入力部22と表示部28とを統合してもよい。   The display unit 28 displays a display screen related to program rewriting and the like. The operation input unit 22 and the display unit 28 may be integrated by using the display unit 28 as a touch panel.

(A1−2−2.記憶部26)
図2は、本実施形態における記憶部26の構成を概念的に記載した図である。図2では、1つのECU62のみを示し、その他のECU62の図示を省略している。図1及び図2に示すように、記憶部26は、プログラムID履歴データベース50(以下「プログラムID履歴DB50」ともいう。)と、書換順番データベース52(以下「順番DB52」ともいう。)と、書換組合せ情報データベース54(以下「組合せDB54」ともいう。)と、書換プログラムデータベース56(以下「プログラムDB56」ともいう。)と、プログラム書換え用リスト58(以下「書換え用リスト58」又は「リスト58」ともいう。)とを有する。
(A1-2-2. Storage unit 26)
FIG. 2 is a diagram conceptually describing the configuration of the storage unit 26 in the present embodiment. In FIG. 2, only one ECU 62 is shown, and the other ECUs 62 are not shown. As shown in FIGS. 1 and 2, the storage unit 26 includes a program ID history database 50 (hereinafter also referred to as “program ID history DB 50”), a rewrite order database 52 (hereinafter also referred to as “order DB 52”), Rewrite combination information database 54 (hereinafter also referred to as “combination DB 54”), rewrite program database 56 (hereinafter also referred to as “program DB 56”), and program rewrite list 58 (hereinafter referred to as “rewrite list 58” or “list 58”). ").

プログラムID履歴DB50は、プログラムPの識別情報(以下「プログラムID」という。)の変更履歴を、ECU62の識別情報(以下「ECU ID」という。)及び日付と共に記憶する(図2参照)。本実施形態において、プログラムIDは、プログラム名とバージョン情報Iverとを含む。例えば、プログラムIDは、「XXXX.001」のように表記される。このうち「XXXX」がプログラム名に対応し、「001」がバージョン情報Iverである。また、ECU IDは、各ECU62が制御する下位システムの識別情報(システムID)をも意味する。   The program ID history DB 50 stores the change history of the identification information of the program P (hereinafter referred to as “program ID”) together with the identification information of the ECU 62 (hereinafter referred to as “ECU ID”) and the date (see FIG. 2). In the present embodiment, the program ID includes a program name and version information Iver. For example, the program ID is expressed as “XXXX.001”. Among these, “XXXX” corresponds to the program name, and “001” is the version information Iver. The ECU ID also means identification information (system ID) of a lower system controlled by each ECU 62.

順番DB52は、車両14に搭載されている書換え可能な全てのECU62の識別情報(ECU ID)に対応させて、書換えの優先順番Opを示す優先順番情報Ipo(以下「順番情報Ipo」ともいう。)を予め記憶する(図2参照)。本実施形態の順番情報Ipoは、複数車種の車両14に搭載されるECU62の優先順番Opを含む。本実施形態の優先順番Opは、ECU IDの並び順によって示される。このため、順番情報Ipoは、例えば、第1車種の車両14に搭載されるECU62(図2においてECU IDが例えばXX、YY、ZZのもの)の優先順番Opと、第2車種の車両14に搭載されるECU62(図2においてECU IDが例えばAA、BB、CC、DDのもの)の優先順番Opをまとめて示す。或いは、順番情報Ipoは、単一車種の車両14に搭載されるECU62の優先順番Opのみを示すものであってもよい。   The order DB 52 is also referred to as priority order information Ipo (hereinafter also referred to as “order information Ipo”) indicating the priority order Op of rewriting in correspondence with identification information (ECU ID) of all rewritable ECUs 62 mounted on the vehicle 14. ) In advance (see FIG. 2). The order information Ipo of the present embodiment includes the priority order Op of the ECU 62 mounted on the plurality of vehicle types 14. The priority order Op of the present embodiment is indicated by the arrangement order of ECU IDs. For this reason, the order information Ipo is, for example, given to the priority order Op of the ECU 62 (the ECU ID is XX, YY, ZZ in FIG. 2, for example) mounted on the vehicle 14 of the first vehicle type and the vehicle 14 of the second vehicle type. The priority order Op of the mounted ECUs 62 (in FIG. 2, the ECU IDs are AA, BB, CC, DD, for example) is shown collectively. Alternatively, the order information Ipo may indicate only the priority order Op of the ECU 62 mounted on the vehicle 14 of a single vehicle type.

図2の例では、並び順が優先順番Op(以下「書換優先順番Op」又は「書換順番Op」ともいう。)を示しているが、例えば、「1:ZZ、2:YY、3:XX」のように、書換順番Opを順番情報Ipoに含めることも可能である。   In the example of FIG. 2, the arrangement order indicates the priority order Op (hereinafter also referred to as “rewrite priority order Op” or “rewrite order Op”). For example, “1: ZZ, 2: YY, 3: XX”. It is also possible to include the rewrite order Op in the order information Ipo.

また、書換順番Opは、対象ECU62tarのプログラム書換えを行う順番である。書換順番Opの更なる詳細については、図5のステップS41と関連させて後述する。   The rewrite order Op is an order in which the target ECU 62tar is rewritten. Further details of the rewrite order Op will be described later in connection with step S41 of FIG.

組合せDB54(書換候補データベース)は、車両14の変更対象動作Otar毎に、書換候補のECU62(以下「書換候補ECU62can」又は「候補ECU62can」という。)の組合せを記憶する。より具体的には、組合せDB54は、組合せ番号Nsetと、変更対象動作Otarと、日付と、候補ECU62canの識別記号(以下「書換候補ECU ID」又は「候補ECU ID」ともいう。)と、候補ECU62canに対応するプログラムID(以下「書換候補プログラムID」又は「候補プログラムID」ともいう。)とを組み合せて記憶する(図2参照)。候補プログラムIDは、プログラム名とバージョン情報Iverとを含む。以下では、組合せDB54に記憶される情報を書換候補情報Icanともいう。   The combination DB 54 (rewrite candidate database) stores a combination of rewrite candidate ECUs 62 (hereinafter referred to as “rewrite candidate ECU 62 can” or “candidate ECU 62 can”) for each change target operation Otar of the vehicle 14. More specifically, the combination DB 54 has a combination number Nset, a change target operation Otar, a date, an identification symbol of the candidate ECU 62can (hereinafter also referred to as “rewrite candidate ECU ID” or “candidate ECU ID”), and a candidate. A program ID corresponding to the ECU 62can (hereinafter also referred to as “rewrite candidate program ID” or “candidate program ID”) is stored in combination (see FIG. 2). The candidate program ID includes a program name and version information Iver. Hereinafter, the information stored in the combination DB 54 is also referred to as rewrite candidate information Ican.

書換プログラムDB56は、書換プログラムPrを記憶する。本実施形態のプログラムDB56は、同一のプログラム名を有する書換プログラムPrについて最新バージョンのものを記憶する。図2では、書換プログラムPrとしてプログラムP1、P2が示されている。書換え用リスト58は、プログラム書換えのために一時的に作成されるリスト(記憶領域)である。リスト58の利用方法は、図4、図5及び図7のフローチャート等を参照して後述する。   The rewrite program DB 56 stores a rewrite program Pr. The program DB 56 of this embodiment stores the latest version of the rewrite program Pr having the same program name. In FIG. 2, programs P1 and P2 are shown as the rewrite program Pr. The rewrite list 58 is a list (storage area) temporarily created for program rewriting. A method of using the list 58 will be described later with reference to the flowcharts of FIGS. 4, 5, and 7.

(A1−3.車両14)
図1に示すように、車両14は、通信ネットワーク60(以下「車内ネットワーク60」又は「ネットワーク60」ともいう。)を備える。ネットワーク60は、通信線64で接続された複数のECU62a〜62jを備える。また、ネットワーク60は、データリンクコネクタ66(以下「DLC66」ともいう。)を介してプログラム書換装置12に接続される。
(A1-3. Vehicle 14)
As shown in FIG. 1, the vehicle 14 includes a communication network 60 (hereinafter also referred to as “in-vehicle network 60” or “network 60”). The network 60 includes a plurality of ECUs 62 a to 62 j connected by a communication line 64. The network 60 is connected to the program rewriting device 12 via a data link connector 66 (hereinafter also referred to as “DLC 66”).

各ECU62a〜62jは、車両14の各部を制御する。複数のECU62a〜62jのうち第1ECU62aは、ゲートウェイ機能を有する。すなわち、第1ECU62aは、ネットワーク60をプロトコルの異なるプログラム書換装置12のネットワークと接続するためのネットワークノードである。以下では、第1ECU62aをゲートウェイECU62aともいう。なお、図1では、ゲートウェイECU62aが1つのみ示されているが、複数のゲートウェイECU62aを設けることも可能である。また、1つ又は複数のゲートウェイECU62aは、図1に示すような位置に配置される制限はなく、ネットワーク60内の任意の位置に配置されてもよい。   Each of the ECUs 62 a to 62 j controls each part of the vehicle 14. Among the plurality of ECUs 62a to 62j, the first ECU 62a has a gateway function. That is, the first ECU 62a is a network node for connecting the network 60 to the network of the program rewriting device 12 having a different protocol. Hereinafter, the first ECU 62a is also referred to as a gateway ECU 62a. In FIG. 1, only one gateway ECU 62a is shown, but a plurality of gateway ECUs 62a may be provided. Further, one or a plurality of gateway ECUs 62 a are not limited to positions as shown in FIG. 1, and may be disposed at any position in the network 60.

第2〜第10ECU62b〜62jには、例えば、エンジン電子制御装置(以下「ENG ECU」という。)と、アンチロックブレーキシステム電子制御装置(以下「ABS ECU」という。)と、補助拘束システム電子制御装置(以下「SRS ECU」という。)と、イモビライザ電子制御装置とが含まれる。ENG ECUは、図示しないエンジンの出力を制御する。ENG ECUは、エンジン回転数Ne[rpm]を検出するエンジン回転数センサ(図示せず)と、車両14の車速V[km/h]を検出する車速センサ(図示せず)とに接続されている。ABS ECUは、図示しないブレーキシステムの制御を行う。SRS ECUは、図示しないエアバッグの制御を行う。イモビライザECUは、図示しないイモビライザ装置の制御を行う。   The second to tenth ECUs 62b to 62j include, for example, an engine electronic control device (hereinafter referred to as “ENG ECU”), an antilock brake system electronic control device (hereinafter referred to as “ABS ECU”), and an auxiliary restraint system electronic control. A device (hereinafter referred to as “SRS ECU”) and an immobilizer electronic control device are included. The ENG ECU controls the output of an engine (not shown). The ENG ECU is connected to an engine speed sensor (not shown) that detects the engine speed Ne [rpm] and a vehicle speed sensor (not shown) that detects the vehicle speed V [km / h] of the vehicle 14. Yes. The ABS ECU controls a brake system (not shown). The SRS ECU controls an airbag (not shown). The immobilizer ECU controls an immobilizer device (not shown).

各ECU62a〜62jは、通信線64を介して互いにデータ通信を行う。より具体的には、各ECU62a〜62jは、特定のECU62(例えば、ENG ECU)からの通信データ(例えば、エンジン回転数Neや車速Vのデータ)に基づいて、他のECU62(例えば、ABS ECU、SRS ECU及びイモビライザECU)は車両14の協調制御を行う。さらに、各ECU62a〜62jは、相互に故障診断(通信データの異常検出)を行う。   Each of the ECUs 62 a to 62 j performs data communication with each other via the communication line 64. More specifically, each of the ECUs 62a to 62j receives another ECU 62 (for example, ABS ECU) based on communication data (for example, engine speed Ne or vehicle speed V data) from a specific ECU 62 (for example, ENG ECU). , SRS ECU and immobilizer ECU) perform cooperative control of the vehicle 14. Furthermore, each of the ECUs 62a to 62j performs a fault diagnosis (detection of communication data abnormality) with each other.

第2〜第4ECU62b、62c、62dは、第1下位ネットワーク68aを形成する。第5〜第7ECU62e、62f、62gは、第2下位ネットワーク68bを形成する。第8〜第10ECU62h、62i、62jは、第3下位ネットワーク68cを形成する。第1〜第3下位ネットワーク68a〜68cは、例えば、CAN(Controller Area Network)を構成する。ここでのCANは、例えば、高速CANとすることができる。なお、図1の例では、10個のECU62a〜62jの例を示しているが、ECU62の数は、これに限らず、例えば、3〜200のいずれかの値であってもよい。   The second to fourth ECUs 62b, 62c, 62d form a first lower network 68a. The fifth to seventh ECUs 62e, 62f, 62g form a second lower network 68b. The eighth to tenth ECUs 62h, 62i, 62j form a third lower network 68c. The first to third lower networks 68a to 68c constitute, for example, a CAN (Controller Area Network). The CAN here can be, for example, a high-speed CAN. In addition, although the example of ten ECU62a-62j is shown in the example of FIG. 1, the number of ECU62 is not restricted to this, For example, the value in any one of 3-200 may be sufficient.

図1に示すように、第1ECU62aは、信号入出力部70、演算部72及び記憶部74を有する。図1では示していないが、第2〜第10ECU62b〜62jも第1ECU62aと同様の構成を有する。但し、具体的な仕様は、第1〜第10ECU62a〜62jで異なる。   As shown in FIG. 1, the first ECU 62 a includes a signal input / output unit 70, a calculation unit 72, and a storage unit 74. Although not shown in FIG. 1, the second to tenth ECUs 62b to 62j have the same configuration as the first ECU 62a. However, specific specifications differ between the first to tenth ECUs 62a to 62j.

各ECU62a〜62jは、起動スイッチとしてのイグニッションスイッチ80(以下「IGSW80」という。)によりオン及びオフされる。より具体的には、各ECU62a〜62jは、図示しない電力線及びこの電力線上に配置されたIGSW80を介してバッテリ82(蓄電装置)と接続されている。   Each of the ECUs 62a to 62j is turned on and off by an ignition switch 80 (hereinafter referred to as “IGSW 80”) as a start switch. More specifically, each of the ECUs 62a to 62j is connected to a battery 82 (power storage device) via a power line (not shown) and an IGSW 80 disposed on the power line.

本実施形態のIGSW80は、ロータリ式であり、図示しないインスツルメントパネルに向かって左側から「オフ」、「ACC」(アクセサリ)及び「オン」の位置を選択可能である。また、IGSW80は、「オン」の位置からさらに右側(時計回り)に回すと、「ST」(エンジンスタート)の位置となり、エンジンが始動する。   The IGSW 80 of the present embodiment is a rotary type, and can select the positions of “off”, “ACC” (accessory), and “on” from the left side toward an instrument panel (not shown). Further, when the IGSW 80 is further turned to the right (clockwise) from the “ON” position, the IGSW 80 becomes the “ST” (engine start) position, and the engine is started.

本実施形態では、IGSW80が「ACC」及び「オン」の位置にあるとき、バッテリ82から各ECU62への電力供給が行われる。IGSW80が「オフ」の位置にあるとき、バッテリ82から各ECU62への電力供給は、基本的に停止される。   In the present embodiment, when the IGSW 80 is in the “ACC” and “ON” positions, power is supplied from the battery 82 to each ECU 62. When the IGSW 80 is in the “off” position, the power supply from the battery 82 to each ECU 62 is basically stopped.

なお、車両14がいわゆるスマートスタート機能を有している場合、IGSW80は、いわゆるスマートスタート機能で用いるプッシュスイッチであってもよい。   When the vehicle 14 has a so-called smart start function, the IGSW 80 may be a push switch used for the so-called smart start function.

第1〜第10ECU62a〜62jは、自らの動作に関連して異常が発生した場合、故障履歴としての故障コード(DTC)を自らの記憶部74に記憶する。また、ゲートウェイECU62は、第2〜第10ECU62b〜62jとの通信に関連して異常が発生した場合もDTCを記憶部26に記憶する。ここでの故障履歴には、通信に関する故障履歴(以下「通信故障履歴」という。)と、それ以外の故障履歴(以下「非通信故障履歴」ともいう。)とが含まれる。通信故障履歴及び非通信故障履歴を合わせて全般故障履歴ともいう。   The first to tenth ECUs 62 a to 62 j store a failure code (DTC) as a failure history in its own storage unit 74 when an abnormality occurs in connection with its own operation. The gateway ECU 62 also stores the DTC in the storage unit 26 even when an abnormality occurs in connection with the communication with the second to tenth ECUs 62b to 62j. The failure history here includes a communication failure history (hereinafter referred to as “communication failure history”) and other failure history (hereinafter also referred to as “non-communication failure history”). The communication failure history and the non-communication failure history are collectively referred to as a general failure history.

例えば、第8ECU62hの手前(図1の地点84)で断線が発生した場合、ゲートウェイECU62a及び第8ECU62hの両方が記憶部74にDTCを記憶する。但し、断線が発生している状態では、第8ECU62hは、ゲートウェイECU62aと通信ができない。このため、書換装置12は、第8ECU62hに記憶されたDTCを読み出すことができない。また、各ECU62a〜62jにおいてプログラム書換えが中断してしまった場合も、各ECU62a〜62jは、通信故障履歴としてのDTCを自らの記憶部74に記憶する。   For example, when a disconnection occurs before the eighth ECU 62h (point 84 in FIG. 1), both the gateway ECU 62a and the eighth ECU 62h store the DTC in the storage unit 74. However, the eighth ECU 62h cannot communicate with the gateway ECU 62a in a state where the disconnection has occurred. For this reason, the rewriting device 12 cannot read out the DTC stored in the eighth ECU 62h. Further, even when the program rewriting is interrupted in each of the ECUs 62a to 62j, each of the ECUs 62a to 62j stores the DTC as a communication failure history in its own storage unit 74.

[A2.プログラム書換え]
次に、本実施形態において、対象ECU62tarに記憶されている搭載プログラムPiの書換えについて説明する。
[A2. Program rewriting]
Next, rewriting of the mounted program Pi stored in the target ECU 62tar in the present embodiment will be described.

(A2−1.事前準備)
特定の変更対象動作Otarについてプログラム書換えを行う前に、書換装置12のユーザ(又は作業者)は、当該変更対象動作Otarに対応するデータを書換装置12の記憶部26に記憶させる。より具体的には、ユーザは、当該特定の変更対象動作Otarに対応する複数の書換プログラムPrをプログラムDB56(書換プログラムデータベース)に記憶させる。
(A2-1. Advance preparation)
Before rewriting a program for a specific change target operation Otar, the user (or worker) of the rewrite device 12 stores data corresponding to the change target operation Otar in the storage unit 26 of the rewrite device 12. More specifically, the user stores a plurality of rewrite programs Pr corresponding to the specific change target operation Otar in the program DB 56 (rewrite program database).

また、ユーザは、変更対象動作Otarに対応させて書換プログラムPrそれぞれのプログラムID(バージョン情報Iverを含む。)等をプログラムID履歴DB50に記憶させる(図2参照)。さらに、ユーザは、書換プログラムPrの優先順番情報Ipoを順番DB52に記憶させる(図2参照)。さらにまた、ユーザは、書換プログラムPrの組合せ番号Nset、候補ECU ID、候補プログラムID等を組合せDB54に記憶させる(図2参照)。例えば、書換装置12のDLC32を図示しないパーソナルコンピュータに接続し、当該パーソナルコンピュータから記憶部26に上記データをコピーする。   Further, the user stores the program ID (including version information Iver) and the like of each rewrite program Pr in the program ID history DB 50 in association with the change target operation Otar (see FIG. 2). Further, the user stores the priority order information Ipo of the rewriting program Pr in the order DB 52 (see FIG. 2). Furthermore, the user stores the combination number Nset, candidate ECU ID, candidate program ID, and the like of the rewriting program Pr in the combination DB 54 (see FIG. 2). For example, the DLC 32 of the rewriting device 12 is connected to a personal computer (not shown), and the data is copied from the personal computer to the storage unit 26.

なお、書換装置12にコピーされるデータは、プログラム書換システム10の管理者が作成し、図示しない外部サーバに保存する。当該外部サーバに保存されたデータは、前記パーソナルコンピュータにダウンロードされる。書換装置12に外部サーバとの通信機能がある場合、書換装置12は、外部サーバから直接データを取得することも可能である。   The data to be copied to the rewriting device 12 is created by the administrator of the program rewriting system 10 and stored in an external server (not shown). Data stored in the external server is downloaded to the personal computer. When the rewriting device 12 has a communication function with an external server, the rewriting device 12 can also acquire data directly from the external server.

(A2−2.実際の書換え)
(A2−2−1.書換え時の全体的な流れ)
図3は、本実施形態においてプログラム書換えを行うフローチャートである。図3及び後述する図4、図5及び図7の処理は、主として、書換装置12の演算部24(書換制御部)が実行する。図3のステップS1において、ユーザが書換装置12の電源スイッチ(図示せず)をオンにすると、書換装置12が起動する。ステップS2において、書換装置12は、選択メニューを表示部28に表示させる。当該選択メニューとしては、例えば、プログラムPの連続書換え、プログラムPの個別書換え等を含む。連続書換えは、複数の対象ECU62tarのプログラムPiを連続して書き換えるためのメニューであり、個別書換えは、単一の対象ECU62tarのプログラムPiを書き換えるためのメニューである。
(A2-2. Actual rewriting)
(A2-2-1. Overall flow during rewriting)
FIG. 3 is a flowchart for rewriting a program in the present embodiment. The processing of FIG. 3, FIG. 4, FIG. 5, and FIG. 7 to be described later is mainly executed by the arithmetic unit 24 (rewrite control unit) of the rewrite device 12. In step S1 of FIG. 3, when the user turns on a power switch (not shown) of the rewriting device 12, the rewriting device 12 is activated. In step S <b> 2, the rewriting device 12 displays a selection menu on the display unit 28. The selection menu includes, for example, continuous rewriting of program P, individual rewriting of program P, and the like. The continuous rewriting is a menu for continuously rewriting the program Pi of the plurality of target ECUs 62tar, and the individual rewriting is a menu for rewriting the program Pi of the single target ECU 62tar.

選択メニューのうちプログラムPの連続書換えが選択されると(S3:YES)、ステップS4〜S10においてプログラムPの連続書換えを行う。プログラムPの連続書換え以外のメニューが選択されると(S3:NO)、当該メニューを行う(図3では、当該メニューに対応するステップの図示を省略している。)。   When continuous rewriting of program P is selected from the selection menu (S3: YES), continuous rewriting of program P is performed in steps S4 to S10. When a menu other than continuous rewriting of the program P is selected (S3: NO), the menu is performed (in FIG. 3, the steps corresponding to the menu are not shown).

ステップS4において、書換装置12は、書換候補ECU62canの組合せを選択する処理(以下「書換候補ECU組合せ選択処理」又は「組合せ選択処理」という。)を実行する。ステップS4の詳細は、図4を参照して後述する。ステップS5において、書換装置12は、組合せ選択処理の結果、選択可能な書換候補ECU62canの組合せが存在するか否かを判定する。選択可能な組合せが存在する場合(S5:YES)、ステップS6に進む。   In step S4, the rewrite device 12 executes a process of selecting a combination of the rewrite candidate ECUs 62can (hereinafter referred to as “rewrite candidate ECU combination selection process” or “combination selection process”). Details of step S4 will be described later with reference to FIG. In step S <b> 5, the rewrite device 12 determines whether or not a combination of selectable rewrite candidate ECUs 62 can exist as a result of the combination selection process. When there is a selectable combination (S5: YES), the process proceeds to step S6.

ステップS6において、書換装置12は、選択可能な組合せを表示部28に表示させる。なお、選択可能な組合せが1つしかない場合、当該1つの組合せを表示する。また、書換候補ECU組合せ選択処理において選択可能と判断された組合せであっても、その組合せの中に、書換えの禁止設定がなされているECU62が含まれている場合、書換装置12は、その旨を表示部28に表示させてもよい。   In step S <b> 6, the rewriting device 12 displays selectable combinations on the display unit 28. When there is only one selectable combination, the one combination is displayed. Even if the combination is determined to be selectable in the rewrite candidate ECU combination selection process, if the combination includes the ECU 62 for which rewrite prohibition is set, the rewrite device 12 does so. May be displayed on the display unit 28.

選択可能な組合せが複数ある場合、書換装置12は、組合せDB54に記憶された日付が新しいもののみを表示してもよい。これにより、各組合せに同じECU62に関する異なるバージョン情報Iverが含まれている場合、より新しいバージョンのプログラムPrを先に書き換えることが可能となる。これにより、より旧いバージョンのプログラムPrについては書換えを省略することができる。   When there are a plurality of combinations that can be selected, the rewriting device 12 may display only the newest date stored in the combination DB 54. Thereby, when different version information Iver regarding the same ECU 62 is included in each combination, a newer version of the program Pr can be rewritten first. As a result, rewriting of an older version of the program Pr can be omitted.

ステップS7において、書換装置12は、操作入力部22を介してユーザによりいずれかの組合せが選択されたか否かを判定する。いずれかの組合せが選択された場合(S7:YES)、ステップS8に進む。いずれかの組合せも選択されずに連続書換えの終了が選択された場合(S7:NO)、ステップS10に進む。   In step S <b> 7, the rewriting device 12 determines whether any combination has been selected by the user via the operation input unit 22. If any combination is selected (S7: YES), the process proceeds to step S8. When the end of continuous rewriting is selected without selecting any combination (S7: NO), the process proceeds to step S10.

ステップS8において、書換装置12は、選択した組合せに含まれる複数の書換候補ECU62canの中から実際にプログラム書換えを行うECU62(対象ECU62tar)それぞれについてプログラム書換えを連続して行う処理(以下「プログラム連続書換処理」という。)を実行する。ステップS8の詳細は、図5を参照して後述する。ステップS9において、書換装置12は、プログラム書換えの完了を確認する処理(以下「書換完了確認処理」という。)を実行する。ステップS9の詳細は、図7を参照して後述する。ステップS9の後、ステップS5に戻る。   In step S8, the rewriting device 12 continuously performs program rewriting for each ECU 62 (target ECU 62tar) that actually performs program rewriting from among a plurality of rewrite candidate ECUs 62can included in the selected combination (hereinafter referred to as “program continuous rewriting”). Process "). Details of step S8 will be described later with reference to FIG. In step S <b> 9, the rewriting device 12 executes processing for confirming completion of program rewriting (hereinafter referred to as “rewriting completion confirmation processing”). Details of step S9 will be described later with reference to FIG. After step S9, the process returns to step S5.

ステップS5において選択可能な書換候補ECU62canの組合せが存在しない場合(S5:NO)、ステップS10において、書換装置12は、プログラム書換えのために一時的に作成していた書換え用リスト58を消去してプログラムPの連続書換えを終了する。リスト58については、図4のステップS30等において後述する。   If there is no combination of rewrite candidate ECUs 62can that can be selected in step S5 (S5: NO), in step S10, the rewriting device 12 deletes the rewriting list 58 temporarily created for rewriting the program. The continuous rewriting of the program P is finished. The list 58 will be described later in step S30 in FIG.

(A2−2−2.書換候補ECU組合せ選択処理(図3のS4の詳細))
図4は、本実施形態における書換候補ECU組合せ選択処理のフローチャート(図3のS4の詳細)である。図4のステップS21において、書換装置12は、車内ネットワーク60とのリンクを確立する。リンクの確立に際し、書換装置12は、各ECU62a〜62jにおけるセッションが終了するまで、所定時間待機する。
(A2-2-2. Rewrite candidate ECU combination selection process (details of S4 in FIG. 3))
FIG. 4 is a flowchart of the rewrite candidate ECU combination selection process in this embodiment (details of S4 in FIG. 3). In step S <b> 21 of FIG. 4, the rewriting device 12 establishes a link with the in-vehicle network 60. In establishing the link, the rewriting device 12 waits for a predetermined time until the session in each of the ECUs 62a to 62j is completed.

ステップS22において、書換装置12は、ゲートウェイECU62aに対してDTCを要求する。当該要求に対し、ゲートウェイECU62aは、自らの記憶部74に記憶されているDTCがあれば、当該DTCを書換装置12に送信する。DTCがなければ、ゲートウェイECU62aは、DTCが記録されていない旨の回答を行う。或いは、DTCがない場合、ゲートウェイECU62aは、応答しないことも可能である。   In step S22, the rewriting device 12 requests the DTC from the gateway ECU 62a. In response to the request, if there is a DTC stored in its storage unit 74, the gateway ECU 62a transmits the DTC to the rewriting device 12. If there is no DTC, the gateway ECU 62a replies that no DTC is recorded. Alternatively, when there is no DTC, the gateway ECU 62a may not respond.

ステップS23において、書換装置12は、ゲートウェイECU62aからの応答に基づいて、ゲートウェイECU62aに通信故障がないか否かを判定する。例えば、書換装置12は、ゲートウェイECU62aからDTCを受信した場合、当該DTCが通信故障履歴に関するものであるか否かを判定する。或いは、DTCが記録されていない旨の回答をゲートウェイECU62aが出力する場合、書換装置12は、ゲートウェイECU62aから何らかの応答があるか否かに基づいて、ゲートウェイECU62aに通信故障があるか否かを判定することも可能である。   In step S23, the rewriting device 12 determines whether or not there is a communication failure in the gateway ECU 62a based on the response from the gateway ECU 62a. For example, when the rewriting device 12 receives the DTC from the gateway ECU 62a, the rewriting device 12 determines whether or not the DTC is related to the communication failure history. Alternatively, when the gateway ECU 62a outputs an answer that the DTC is not recorded, the rewriting device 12 determines whether or not the gateway ECU 62a has a communication failure based on whether or not there is any response from the gateway ECU 62a. It is also possible to do.

ゲートウェイECU62aに通信故障がない場合(S23:YES)、ステップS24において、書換装置12は、ゲートウェイECU62a以外の他のECU62(第2〜第10ECU62b〜62j)に対してDTCを要求する。当該要求に対し、第2〜第10ECU62b〜62jは、自らの記憶部74に記憶されているDTCがあれば、書換装置12に送信する。DTCがなければ、第2〜第10ECU62b〜62jは、DTCが記録されていない旨の回答を行う。或いは、第2〜第10ECU62b〜62jは、DTCが記録されていない場合、応答しないことも可能である。   When there is no communication failure in the gateway ECU 62a (S23: YES), in step S24, the rewriting device 12 requests DTC from other ECUs 62 (second to tenth ECUs 62b to 62j) other than the gateway ECU 62a. In response to the request, the second to tenth ECUs 62b to 62j transmit the DTC stored in their own storage unit 74 to the rewrite device 12. If there is no DTC, the second to tenth ECUs 62b to 62j respond that the DTC is not recorded. Alternatively, the second to tenth ECUs 62b to 62j may not respond when the DTC is not recorded.

ステップS25において、書換装置12は、他のECU62(第2〜第10ECU62b〜62j)からの応答に基づいて、他のECU62(第2〜第10ECU62b〜62j)に通信故障がないか否かを判定する。当該判定は、ステップS23と同様に行うことができる。他のECU62(第2〜第10ECU62b〜62j)に通信故障がない場合(S25:YES)、ステップS27に進む。   In step S25, the rewriting device 12 determines whether or not there is a communication failure in the other ECU 62 (second to tenth ECUs 62b to 62j) based on a response from the other ECU 62 (second to tenth ECUs 62b to 62j). To do. This determination can be performed in the same manner as in step S23. When there is no communication failure in the other ECUs 62 (second to tenth ECUs 62b to 62j) (S25: YES), the process proceeds to step S27.

ステップS23においてゲートウェイECU62aに通信故障がある場合(S23:NO)又はステップS25においてゲートウェイECU62a以外のECU62(第2〜第10ECU62b〜62j)のいずれかに通信故障がある場合(S25:NO)、ステップS26において、書換装置12は、当該通信故障を通知するエラーメッセージを表示部28に表示させる。   If there is a communication failure in the gateway ECU 62a in step S23 (S23: NO), or if there is a communication failure in any of the ECUs 62 (second to tenth ECUs 62b to 62j) other than the gateway ECU 62a in step S25 (S25: NO), step In S26, the rewrite device 12 causes the display unit 28 to display an error message notifying the communication failure.

ステップS27において、書換装置12は、ネットワーク60に含まれ且つプログラム書換えが可能な全てのECU62(第1〜第10ECU62a〜62j)からECU ID(システムID)及び現在のプログラムID(以下「現在プログラムID」ともいう。)を読み出す。現在プログラムIDには、プログラム名と、現在のバージョン情報Iver(以下「現在バージョン情報Iver」ともいう。)が含まれる。   In step S27, the rewrite device 12 receives the ECU ID (system ID) and the current program ID (hereinafter “current program ID”) from all the ECUs 62 (first to tenth ECUs 62a to 62j) that are included in the network 60 and can be rewritten. Is also read.). The current program ID includes a program name and current version information Iver (hereinafter also referred to as “current version information Iver”).

続くステップS28〜S30では、車両14において必要とされる変更対象動作Otarを特定する。すなわち、ステップS28において、書換装置12は、ステップS28で読み出した現在プログラムIDそれぞれに対応する最新のプログラムID(以下「最新プログラムID」ともいう。)をプログラムID履歴DB50から抽出する。そして、書換装置12は、抽出した最新プログラムIDを、ECU ID及び現在プログラムIDと組み合わせて保持する。   In subsequent steps S28 to S30, the change target operation Otar required in the vehicle 14 is specified. That is, in step S28, the rewrite device 12 extracts the latest program ID (hereinafter also referred to as “latest program ID”) corresponding to each of the current program IDs read in step S28 from the program ID history DB 50. Then, the rewriting device 12 holds the extracted latest program ID in combination with the ECU ID and the current program ID.

なお、本実施形態では、1つのECU62は、1つのプログラムPiのみを有している(図2参照)。このため、最新プログラムIDの抽出(S28)に際しては、現在プログラムIDに代えて、ECU IDを用いて最新プログラムIDを特定してもよい。   In the present embodiment, one ECU 62 has only one program Pi (see FIG. 2). For this reason, when extracting the latest program ID (S28), the latest program ID may be specified using the ECU ID instead of the current program ID.

ステップS29において、書換装置12は、抽出した最新プログラムIDの組合せの一部又は全部と完全一致する候補プログラムIDの組合せ及び組合せ番号Nset(換言すると変更対象動作Otar)を組合せDB54から抽出して保持する。これにより、車両14において必要とされる1つ又は複数の変更対象動作Otarの候補を特定することができる。   In step S29, the rewriting device 12 extracts the combination of candidate program IDs and the combination number Nset (in other words, the operation to be changed Otar) that completely matches a part or all of the extracted latest program ID combinations from the combination DB 54 and holds them. To do. Thereby, the candidate of one or several change object operation | movement Otar required in the vehicle 14 can be specified.

ステップS30において、書換装置12は、車両14においてプログラム書換えを要する変更対象動作Otarを特定してリスト58に登録する。   In step S <b> 30, the rewriting device 12 identifies the change target operation Otar that needs to be rewritten in the vehicle 14 and registers it in the list 58.

すなわち、書換装置12は、プログラム名が同じであるにもかかわらず、最新プログラムIDと一致しない現在プログラムIDが存在するか否かを組合せ(変更対象動作Otar)毎に判定する。そして、書換装置12は、最新プログラムIDと一致しない現在プログラムIDが存在する組合せ(変更対象動作Otar)を、プログラム書換えを要する組合せ(変更対象動作Otar)として抽出する。書換装置12は、抽出した当該組合せに関する情報(組合せ番号Nset、ECU ID、現在プログラムID及び最新プログラムID)をリスト58に登録する。このリスト58に登録された組合せが、図3のステップS5における選択可能な組合せとなる。   That is, the rewriting device 12 determines, for each combination (change target operation Otar), whether or not there is a current program ID that does not match the latest program ID even though the program names are the same. Then, the rewriting device 12 extracts a combination (change target operation Otar) in which a current program ID that does not match the latest program ID exists as a combination that requires program rewriting (change target operation Otar). The rewriting device 12 registers information (combination number Nset, ECU ID, current program ID, and latest program ID) regarding the extracted combination in the list 58. The combinations registered in the list 58 are selectable combinations in step S5 of FIG.

一方、最新プログラムIDと一致しない現在プログラムIDが存在しない組合せについては、プログラム書換えが完了済みであり、プログラム書換えを要さないと判定可能である。このため、書換装置12は、最新プログラムIDと一致しない現在プログラムIDが存在しない組合せに関する情報を消去する(又は保持を終了する)。なお、リスト58に登録する組合せが1つもない場合、書換装置12は、その旨を表示部28に表示させる。   On the other hand, for combinations where there is no current program ID that does not match the latest program ID, it is possible to determine that program rewriting has been completed and program rewriting is not required. For this reason, the rewriting device 12 deletes (or terminates) the information related to the combination in which there is no current program ID that does not match the latest program ID. If there is no combination to be registered in the list 58, the rewriting device 12 causes the display unit 28 to display that effect.

(A2−2−3.プログラム連続書換処理(図3のS8の詳細))
図5は、本実施形態におけるプログラム連続書換処理のフローチャート(図3のS8の詳細)である。図6は、本実施形態におけるプログラム連続書換処理及び書換完了確認処理において書換装置12及び各ECU62の通信状態及び動作状態を説明するための図である。上記のように、プログラム連続書換処理(図3のS8)は、図3のステップS7において選択可能な組合せの1つをユーザが選択した後に行われる。図6において、プログラム連続書換処理のうち実際の連続的なプログラム書換え(プログラム連続書換え(図5のS48等))は、時点t2〜t3の間に実行され、書換完了確認処理は、時点t3〜t6の間に実行される。
(A2-2-3. Program continuous rewrite processing (details of S8 in FIG. 3))
FIG. 5 is a flowchart (details of S8 in FIG. 3) of the program continuous rewriting process in the present embodiment. FIG. 6 is a diagram for explaining communication states and operation states of the rewrite device 12 and each ECU 62 in the program continuous rewrite process and the rewrite completion confirmation process in the present embodiment. As described above, the program continuous rewriting process (S8 in FIG. 3) is performed after the user selects one of the combinations that can be selected in step S7 in FIG. In FIG. 6, the actual continuous program rewriting (program continuous rewriting (S48 in FIG. 5 and the like)) of the program continuous rewriting processing is executed between time points t2 and t3, and the rewriting completion confirmation processing is performed at time points t3 to t3. It is executed during t6.

図5のステップS41において、書換装置12は、ユーザが選択した組合せ(又は組合せ番号Nset若しくは変更対象動作Otar)に対応する書換優先順番Opを順番DB52の優先順番情報Ipoを用いて特定する。   In step S41 of FIG. 5, the rewrite device 12 specifies the rewrite priority order Op corresponding to the combination (or combination number Nset or change target operation Otar) selected by the user using the priority order information Ipo of the order DB 52.

順番DB52における書換順番Opを設定する規則(又は基準)としては、例えば、次のものを用いる。
(規則1) ゲートウェイECU62a(上位ECU)については、それ以外のECU62b〜62j(下位ECU)よりも書換えの順番を後にする。
(規則2) 他のECU62の書換えに用いるデータを出力するECU62(データ提供ECU)については、当該他のECU62よりも書換えの順番を後にする。
As a rule (or standard) for setting the rewrite order Op in the order DB 52, for example, the following is used.
(Rule 1) The gateway ECU 62a (high-order ECU) is rewritten later than the other ECUs 62b to 62j (low-order ECU).
(Rule 2) The order of rewriting of the ECU 62 (data providing ECU) that outputs data used for rewriting of the other ECU 62 is set behind the other ECU 62.

規則1に関し、ゲートウェイECU62aのプログラムPを先に書き換えてしまうと、ゲートウェイECU62aは、再起動するまで通信仲介機能を停止することになる。このため、ゲートウェイECU62aの書換えを後にする。   Regarding rule 1, if the program P of the gateway ECU 62a is rewritten first, the gateway ECU 62a stops the communication mediation function until it is restarted. For this reason, the gateway ECU 62a is rewritten later.

規則2に関し、データ提供ECUのプログラムPを先に書き換えてしまうと、データ提供ECUは、再起動するまで他のECU62の書換えに必要なデータの提供を停止することになる。このため、データ提供ECUの書換えを後にする。なお、規則2に関連する場合として、例えば、他のECU62の書換えの開始条件として、車速Vがゼロ[km/h]であることが設定されており且つ車速Vはデータ提供ECUから他のECU62に提供される場合がある。   Regarding rule 2, if the program P of the data providing ECU is rewritten first, the data providing ECU stops providing data necessary for rewriting the other ECUs 62 until restarting. For this reason, the data providing ECU is rewritten later. As a case related to rule 2, for example, as a rewriting start condition of another ECU 62, the vehicle speed V is set to zero [km / h], and the vehicle speed V is set from the data providing ECU to another ECU 62. May be provided.

図5のステップS42において、書換装置12は、ステップS41で特定した書換順番Opを用いて、候補ECU ID、現在プログラムID及び最新プログラムIDの組合せを並べ直す。並べ直す前の候補ECU ID、現在プログラムID及び最新プログラムIDの組合せは、図4のステップS27〜S30を介してリスト58に登録されたものである。   In step S42 of FIG. 5, the rewriting device 12 rearranges the combinations of the candidate ECU ID, the current program ID, and the latest program ID using the rewriting order Op specified in step S41. The combination of the candidate ECU ID, the current program ID, and the latest program ID before rearrangement is registered in the list 58 through steps S27 to S30 in FIG.

ステップS43において、書換装置12は、並べ直した候補ECU ID、現在プログラムID及び最新プログラムIDの組合せそれぞれに整理番号Nrefを割り当てる。整理番号Nrefは、各組合せに関する書換え順を示す。   In step S43, the rewriting device 12 assigns a reference number Nref to each of the rearranged candidate ECU ID, current program ID, and latest program ID combination. The reference number Nref indicates the rewrite order for each combination.

ステップS44において、書換装置12は、書換え順が来た整理番号Nrefを示す書換対象番号Ntar(以下「対象番号Ntar」ともいう。)をリセットしてゼロにする。ステップS45において、書換装置12は、書換対象番号Ntarの現在値に1を足して新たな対象番号Ntarとする。なお、あるECU62に対してプログラム書換えを終えた後、別のECU62に対してプログラム書換えを開始する際、ステップS44の前又は後において、書換装置12は、別のECU62におけるセッションが終了するまで所定時間待機する。   In step S44, the rewrite device 12 resets the rewrite target number Ntar (hereinafter also referred to as “target number Ntar”) indicating the reference number Nref in which the rewrite order has come to zero. In step S45, the rewrite device 12 adds 1 to the current value of the rewrite target number Ntar to obtain a new target number Ntar. In addition, when the program rewriting for another ECU 62 is started after the program rewriting for one ECU 62 is completed, the rewriting device 12 is predetermined until the session in the other ECU 62 ends before or after step S44. Wait for time.

ステップS46において、書換装置12は、書換対象番号Ntarと一致する整理番号Nrefを有する候補ECU62canに対応する現在プログラムID(以下「対象プログラムID」ともいう。)を特定する。ステップS47において、書換装置12は、プログラム名が同じ対象プログラムIDと最新プログラムIDとを比較し、両者が一致するか否かを確認する。両者が一致する場合(S47:YES)、既に搭載プログラムPiは最新バージョンである。この場合、書換対象番号Ntarと一致する整理番号Nrefを有する候補ECU62canに対してプログラム書換えを行わずにステップS49に進む。   In step S46, the rewriting device 12 specifies the current program ID (hereinafter also referred to as “target program ID”) corresponding to the candidate ECU 62can having the reference number Nref that matches the rewriting target number Ntar. In step S47, the rewriting device 12 compares the target program ID having the same program name with the latest program ID, and confirms whether or not they match. If the two match (S47: YES), the installed program Pi is already the latest version. In this case, the program proceeds to step S49 without rewriting the program with respect to the candidate ECU 62can having the reference number Nref that matches the rewrite target number Ntar.

一方、両者が一致しない場合(S47:NO)、搭載プログラムPiは最新バージョンではないため、搭載プログラムPiの書換えが必要である。この場合、候補ECU62canは、対象ECU62tarとされる。そして、ステップS48において、書換装置12は、書換対象番号Ntarと一致する整理番号Nrefを有する対象ECU62tarに対してプログラム書換えを実行する。   On the other hand, if the two do not match (S47: NO), the installed program Pi is not the latest version, and the installed program Pi needs to be rewritten. In this case, the candidate ECU 62can is the target ECU 62tar. In step S48, the rewriting device 12 executes program rewriting on the target ECU 62tar having the reference number Nref that matches the rewriting target number Ntar.

さらに、書換装置12は、各ECU62に対してネットワーク通信停止要求信号Sstp(以下「通信停止要求信号Sstp」又は「停止要求信号Sstp」ともいう。)の定期的送信を開始する。停止要求信号Sstpは、各ECU62a〜62j(対象ECU62tar及びそれ以外のECU62)に対し、各ECU62間相互通信の停止及びDTC保存の禁止を要求する信号である。停止要求信号Sstpの送信は、プログラム書換えの実行開始前に開始される(図6参照)。   Furthermore, the rewriting device 12 starts periodic transmission of a network communication stop request signal Sstp (hereinafter also referred to as “communication stop request signal Sstp” or “stop request signal Sstp”) to each ECU 62. The stop request signal Sstp is a signal for requesting the ECUs 62a to 62j (the target ECU 62tar and the other ECUs 62) to stop the mutual communication between the ECUs 62 and prohibit the DTC storage. The transmission of the stop request signal Sstp is started before the start of program rewriting (see FIG. 6).

停止要求信号Sstpの送信は、所定の間隔(例えば、2〜4秒毎)に行われる。停止要求信号Sstpを受信した各ECU62a〜62jは、ネットワーク60における通信並びに通信関連のDTCの保存及び出力を所定期間(例えば、4〜10秒のいずれか)停止する。これにより、書換装置12が停止要求信号Sstpの送信を継続している間、対象ECU62tar以外のECU62は、ネットワーク通信を停止し続けると共に、通信関連のDTCを保存しない。停止要求信号Sstpは、ネットワーク通信停止解除要求信号(解除要求信号Sfin)が送信されるまでネットワーク通信の停止を要求するものとしてもよい。   The stop request signal Sstp is transmitted at a predetermined interval (for example, every 2 to 4 seconds). Receiving the stop request signal SStp, each of the ECUs 62a to 62j stops communication in the network 60 and storage and output of communication-related DTC for a predetermined period (for example, any one of 4 to 10 seconds). Thus, while the rewriting device 12 continues to transmit the stop request signal Sstp, the ECUs 62 other than the target ECU 62tar continue to stop network communication and do not store communication-related DTCs. The stop request signal Sstp may be requested to stop the network communication until the network communication stop cancellation request signal (release request signal Sfin) is transmitted.

なお、ステップS48では、プログラム書換えを終了した対象ECU62tarの再起動を行わないことに留意されたい。対象ECU62tarの再起動は、書換完了確認処理(後述する図7のS51〜S55)において行われる。   Note that in step S48, the target ECU 62tar that has finished rewriting the program is not restarted. The restart of the target ECU 62tar is performed in a rewrite completion confirmation process (S51 to S55 in FIG. 7 described later).

図6では、時点t1〜t3の間において、書換装置12が通信停止要求信号Sstpを定期的に送信する様子が示されている。停止要求信号Sstpを受信した各ECU62a〜62jは、相互の通信を停止する通信停止状態となる。但し、実際にプログラム書換えが行われる対象ECU62tarについては、プログラム書換えのため、書換装置12との間で通信が可能である。   FIG. 6 shows a state in which the rewriting device 12 periodically transmits a communication stop request signal Sstp between time points t1 to t3. The ECUs 62a to 62j that have received the stop request signal SStp enter a communication stop state in which mutual communication is stopped. However, the target ECU 62tar for which program rewriting is actually performed can communicate with the rewriting device 12 for program rewriting.

ステップS49において、書換装置12は、書換対象番号Ntarが整理番号Nrefの最大値Nref_maxと等しいか否かを判定する。書換対象番号Ntarが最大値Nref_maxと等しくない場合(S49:NO)、搭載プログラムPiが最新バージョンか否かの確認を終えていない候補ECU62canがある。そのため、ステップS45に戻る。書換対象番号Ntarが最大値Nref_maxと等しい場合(S49:YES)、組合せの中の全ての候補ECU62canが、搭載プログラムPiが最新バージョンか否かの確認を終えている。そこで、書換装置12は、プログラム連続書換処理を終え、書換完了確認処理(図3のS9、図7)に進む。   In step S49, the rewrite device 12 determines whether or not the rewrite target number Ntar is equal to the maximum value Nref_max of the reference number Nref. When the rewrite target number Ntar is not equal to the maximum value Nref_max (S49: NO), there is a candidate ECU 62can that has not finished checking whether the installed program Pi is the latest version. Therefore, the process returns to step S45. When the rewrite target number Ntar is equal to the maximum value Nref_max (S49: YES), all candidate ECUs 62can in the combination have finished checking whether the installed program Pi is the latest version. Therefore, the rewriting device 12 finishes the program continuous rewriting process, and proceeds to the rewriting completion confirmation process (S9 in FIG. 3, FIG. 7).

(A2−2−4.書換完了確認処理(図3のS9の詳細))
(A2−2−4−1.全体的な流れ)
図7は、本実施形態における書換完了確認処理のフローチャート(図3のS9の詳細)である。ステップS51において、書換装置12は、各対象ECU62tarの電源オフをユーザに求める電源オフ要求を表示部28に表示させる。本実施形態における電源オフ要求では、IGSW80をオフにすることをユーザに求める。なお、通信停止要求信号Sstpは、図5のステップS48の時点から定期的に送信され続けている。
(A2-2-4. Rewriting completion confirmation process (details of S9 in FIG. 3))
(A2-2-4-1. Overall flow)
FIG. 7 is a flowchart (details of S9 in FIG. 3) of the rewrite completion confirmation process in the present embodiment. In step S51, the rewriting device 12 causes the display unit 28 to display a power-off request for requesting the user to turn off the power of each target ECU 62tar. In the power-off request in this embodiment, the user is requested to turn off the IGSW 80. Note that the communication stop request signal Sstp has been transmitted periodically from the time of step S48 in FIG.

ステップS52において、書換装置12は、各対象ECU62tarが電源オフであるか否かを確認する。具体的には、書換装置12は、全ての対象ECU62tarに対して第1動作確認信号Scnf1を送信する。そして、書換装置12は、第1動作確認信号Scnf1に対する応答がないことをもって各対象ECU62tarの電源オフを確認する。第1動作確認信号Scnf1としては、例えば、バッテリ82の電圧の読出しを要求するバッテリ電圧要求信号を用いることができる。なお、IGSW80のオンオフ信号を書換装置12に出力することにより、当該判定を行うことも可能である。本実施形態では、電源オフであるか否かの確認を、対象ECU62tar1つ1つ順番に行う(詳細は、図8及び図9を参照して後述する。)。   In step S52, the rewriting device 12 checks whether or not each target ECU 62tar is powered off. Specifically, the rewriting device 12 transmits the first operation confirmation signal Scnf1 to all the target ECUs 62tar. Then, the rewriting device 12 confirms that each target ECU 62tar is powered off when there is no response to the first operation confirmation signal Scnf1. As the first operation confirmation signal Scnf1, for example, a battery voltage request signal for requesting reading of the voltage of the battery 82 can be used. Note that this determination can also be made by outputting an on / off signal of the IGSW 80 to the rewriting device 12. In the present embodiment, whether or not the power is off is confirmed in order for each target ECU 62tar (details will be described later with reference to FIGS. 8 and 9).

いずれかの対象ECU62tarが電源オフでない場合(S52:NO)、ステップS52に戻る。但し、所定期間を経過しても、いずれかの対象ECU62tarが電源オフとならない場合、書換装置12は、その旨を表示部28に表示させてもよい。全ての対象ECU62tarが電源オフである場合(S52:YES)、ステップS53に進む。   If any target ECU 62tar is not powered off (S52: NO), the process returns to step S52. However, if any of the target ECUs 62tar does not turn off even after the predetermined period has elapsed, the rewriting device 12 may display the fact on the display unit 28. When all the target ECUs 62tar are powered off (S52: YES), the process proceeds to step S53.

ステップS53において、書換装置12は、各ECU62a〜62jに対する通信停止要求信号Sstpの送信を終了する(図6の時点t4)。ステップS54において、書換装置12は、各対象ECU62tarの電源再オンをユーザに求める電源再オン要求を表示部28に表示させる。本実施形態における電源再オン要求では、IGSW80を再オンにすることをユーザに求める。   In step S53, the rewriting device 12 ends the transmission of the communication stop request signal Sstp to the ECUs 62a to 62j (time t4 in FIG. 6). In step S54, the rewriting device 12 causes the display unit 28 to display a power-on request for requesting the user to turn on the power of each target ECU 62tar. In the power supply re-on request in the present embodiment, the user is requested to turn on the IGSW 80 again.

ステップS55において、書換装置12は、全ての対象ECU62tarが電源オンになったか否か(換言すると、全ての対象ECU62tarが再起動したか否か)を判定する。具体的には、書換装置12は、全ての対象ECU62tarに対して第2動作確認信号Scnf2を送信する。そして、書換装置12は、第2動作確認信号Scnf2に対する応答があることをもって各対象ECU62tarの電源オンを確認する。   In step S55, the rewriting device 12 determines whether or not all the target ECUs 62tar are powered on (in other words, whether or not all the target ECUs 62tar are restarted). Specifically, the rewriting device 12 transmits the second operation confirmation signal Scnf2 to all the target ECUs 62tar. The rewriting device 12 confirms that each target ECU 62tar is turned on when there is a response to the second operation confirmation signal Scnf2.

第2動作確認信号Scnf2としては、各対象ECU62tarの現在プログラムIDを要求する現在プログラムID要求信号Sreqpid(以下「ID要求信号Sreqpid」ともいう。)を用いることができる。上記のように、現在プログラムIDは、プログラム名と現在バージョン情報Iverを含む。このため、ID要求信号Sreqpidは、バージョン情報要求信号としても機能する。第2動作確認信号Scnf2としてID要求信号Sreqpidを用いることで、後述するステップS56の処理を円滑に行うことが可能である。なお、IGSW80のオンオフ信号を書換装置12に出力することにより、ステップS56の判定を行うことも可能である。   As the second operation confirmation signal Scnf2, a current program ID request signal Sreqpid (hereinafter also referred to as “ID request signal Sreqpid”) for requesting the current program ID of each target ECU 62tar can be used. As described above, the current program ID includes the program name and the current version information Iver. For this reason, the ID request signal Sreqpid also functions as a version information request signal. By using the ID request signal Sreqpid as the second operation confirmation signal Scnf2, it is possible to smoothly perform the process of step S56 described later. Note that the determination in step S56 can also be made by outputting an on / off signal of the IGSW 80 to the rewriting device 12.

いずれかの対象ECU62tarが電源オンでない場合(S55:NO)、ステップS55を繰り返す。すなわち、書換装置12は、現在プログラムIDを受信していない対象ECU62tarに対して、ID要求信号Sreqpidを連続的に送信し続ける。但し、所定期間を経過しても、いずれかの対象ECU62tarが電源オンとならない場合、書換装置12は、その旨を表示部28に表示させてもよい。全ての対象ECU62tarが電源オンである場合(S55:YES)、ステップS56に進む。   If any target ECU 62tar is not powered on (S55: NO), step S55 is repeated. That is, the rewriting device 12 continuously transmits the ID request signal Sreqpid to the target ECU 62tar that has not currently received the program ID. However, if any of the target ECUs 62tar does not turn on even after the predetermined period has elapsed, the rewriting device 12 may display that fact on the display unit 28. When all the target ECUs 62tar are powered on (S55: YES), the process proceeds to step S56.

ステップS56において、書換装置12は、全ての対象ECU62tarの現在プログラムIDが最新プログラムIDと一致するか否かを判定する。換言すると、書換装置12は、各対象ECU62tarの搭載プログラムPiについて現在バージョン情報Iverと最新バージョン情報Iverとが一致するか否かを判定する。なお、ここでの最新プログラムIDは、リスト58に登録されているものである。また、ステップS55において、各対象ECU62tarの電源オンの確認をID要求信号Sreqpid以外によって行う場合、ステップS55、S56の間において、各対象ECU62tarに対してID要求信号Sreqpidを送信して、各対象ECU62tarの現在プログラムIDを取得する。   In step S56, the rewriting device 12 determines whether or not the current program IDs of all target ECUs 62tar match the latest program ID. In other words, the rewriting device 12 determines whether or not the current version information Iver and the latest version information Iver match the installed program Pi of each target ECU 62tar. Here, the latest program ID is registered in the list 58. In step S55, when confirmation of power-on of each target ECU 62tar is performed by means other than the ID request signal Sreqpid, the ID request signal Sreqpid is transmitted to each target ECU 62tar between steps S55 and S56, and each target ECU 62tar is sent. To obtain the current program ID.

全ての対象ECU62tarの現在プログラムIDが最新プログラムIDと一致する場合(S56:YES)、書換装置12は、ステップS57において、書換え完了を表示部28に表示させた後、書換完了確認処理を終了する。いずれかの対象ECU62tarの現在プログラムIDが最新プログラムIDと一致しない場合(S56:NO)、ステップS58において、書換装置12は、その旨のエラーメッセージを表示部28に表示させる。   When the current program ID of all target ECUs 62tar matches the latest program ID (S56: YES), the rewriting device 12 displays the completion of rewriting on the display unit 28 in step S57, and then ends the rewriting completion confirmation process. . If the current program ID of any target ECU 62tar does not match the latest program ID (S56: NO), the rewriting device 12 causes the display unit 28 to display an error message to that effect in step S58.

(A2−2−4−2.各対象ECU62tarが電源オフしたか否かの判定(図7のS52)と表示部28の表示(S51、S54)の関係)
上記のように、図7のステップS52では、各対象ECU62tarの電源オフを順番に確認していく。この場合、各対象ECU62tarが電源オフであることを確実に確認できる。その一方、当該確認にかかる時間は比較的長くなるため、IGSW80がオフにされてから再オンまでの時間が短いと、各対象ECU62tarが電源オフであるとの判定を確定することができなくなる。その場合、図7のステップS52を繰り返すのみで、ステップS53に進めなくなる可能性がある。
(A2-2-4-2. Relationship between determination of whether each target ECU 62tar is powered off (S52 in FIG. 7) and display on display unit 28 (S51, S54))
As described above, in step S52 of FIG. 7, the power-off of each target ECU 62tar is sequentially confirmed. In this case, it can be reliably confirmed that each target ECU 62tar is powered off. On the other hand, since the time required for the confirmation is relatively long, if the time from when the IGSW 80 is turned off to when it is turned on again is short, it is not possible to determine that each target ECU 62tar is powered off. In that case, there is a possibility that it is not possible to proceed to Step S53 only by repeating Step S52 of FIG.

そこで、本実施形態では、表示部28の表示(S51、S54)を用いることで、各対象ECU62tarが電源オフであるとの判定を確実に確定することができる。この点について、図8及び図9を用いてより具体的に説明する。   Therefore, in the present embodiment, by using the display (S51, S54) on the display unit 28, it is possible to reliably determine that each target ECU 62tar is powered off. This point will be described more specifically with reference to FIGS.

図8は、比較例において、各対象ECU62tarの電源オフを順番に確認していく様子の一例を示す図である。当該比較例(及び図9の例)では、対象ECU62tarの数は3個である。当該比較例では、本実施形態における表示部28の表示(図7のS51、S54)を用いない。代わりに、書換装置12のユーザ(又は作業者)は、整備マニュアル等から作業の情報を得る。図8の比較例では、ユーザによるIGSW80のオフ操作から再オン操作までの時間が短いため、第3対象ECU62tar(例えば、第1ECU62a)が電源オフになったことを書換装置12が確定することができない。   FIG. 8 is a diagram illustrating an example of how the target ECUs 62tar are sequentially confirmed to be turned off in the comparative example. In the comparative example (and the example of FIG. 9), the number of target ECUs 62tar is three. In the comparative example, the display (S51 and S54 in FIG. 7) on the display unit 28 in the present embodiment is not used. Instead, the user (or worker) of the rewriting device 12 obtains work information from a maintenance manual or the like. In the comparative example of FIG. 8, since the time from the OFF operation of the IGSW 80 to the re-ON operation by the user is short, the rewriting device 12 may determine that the third target ECU 62tar (for example, the first ECU 62a) has been powered off. Can not.

すなわち、図8において、書換装置12は、時点t11から第1対象ECU62tar(例えば、第4ECU62d)が電源オフであるか否かの判定を開始する。時点t12において、ユーザがIGSW80をオフにすると、各対象ECU62tarは電源オフとなる。時点t12から時点t13になると、書換装置12は、第1対象ECU62tarが電源オフであるとの判定を確定する。次いで、書換装置12は、第2対象ECU62tar(例えば、第7ECU62g)が電源オフであるか否かの判定を開始する。時点t13から時点t14になると、書換装置12は、第2対象ECU62tarが電源オフであるとの判定を確定する。   That is, in FIG. 8, the rewriting device 12 starts determining whether or not the first target ECU 62tar (for example, the fourth ECU 62d) is powered off from the time point t11. When the user turns off the IGSW 80 at time t12, each target ECU 62tar is turned off. From time t12 to time t13, the rewriting device 12 determines the determination that the first target ECU 62tar is powered off. Next, the rewriting device 12 starts determining whether or not the second target ECU 62tar (for example, the seventh ECU 62g) is powered off. From time t13 to time t14, the rewriting device 12 finalizes the determination that the second target ECU 62tar is powered off.

次いで、書換装置12は、第3対象ECU62tar(例えば、第1ECU62a)が電源オフであるか否かの判定を開始する。時点t15において、ユーザは、IGSW80をオンにする。これにより、3つの対象ECU62tarは、全て再起動する。その一方、時点t15において、書換装置12は、第3対象ECU62tarが電源オフであるとの判定を確定していない。このため、書換装置12は、第3対象ECU62tarが電源オフでないため、図7のステップS53に進めなくなる。   Next, the rewriting device 12 starts determining whether or not the third target ECU 62tar (for example, the first ECU 62a) is powered off. At time t15, the user turns on the IGSW 80. Thereby, all the three target ECUs 62tar are restarted. On the other hand, at time t15, the rewriting device 12 has not yet determined that the third target ECU 62tar is powered off. For this reason, the rewriting device 12 cannot proceed to step S53 of FIG. 7 because the third target ECU 62tar is not powered off.

図9は、本実施形態において、各対象ECU62tarの電源オフを順番に確認していく様子の一例を示す図である。図9の例では、全ての対象ECU62tarが電源オフになったとの判定が確定するまで、電源再オン要求(IGSWオン要求)が表示部28に表示されない。このため、作業者によるIGSW80のオフ操作から再オン操作までの時間を十分に取ることが可能となり、第3対象ECU62tar(例えば、第1ECU62a)が電源オフになったことを書換装置12が確定することができる。   FIG. 9 is a diagram illustrating an example of how the target ECUs 62tar are sequentially confirmed to be turned off in the present embodiment. In the example of FIG. 9, the power supply re-on request (IGSW on request) is not displayed on the display unit 28 until it is determined that all the target ECUs 62 tar have been turned off. For this reason, it becomes possible to take sufficient time from the OFF operation of the IGSW 80 by the operator to the re-ON operation, and the rewriting device 12 determines that the third target ECU 62tar (for example, the first ECU 62a) has been powered off. be able to.

すなわち、図9において、書換装置12は、時点t21から第1対象ECU62tar(例えば、第4ECU62d)が電源オフであるか否かの判定を開始する。この際、書換装置12は、表示部28に電源オフ要求を表示させる(図7のS51)。   That is, in FIG. 9, the rewriting device 12 starts determining whether or not the first target ECU 62tar (for example, the fourth ECU 62d) is powered off from the time point t21. At this time, the rewriting device 12 displays a power-off request on the display unit 28 (S51 in FIG. 7).

時点t22において、ユーザがIGSW80をオフにすると、各対象ECU62tarは電源オフとなる。時点t22から時点t23になると、書換装置12は、第1対象ECU62tarが電源オフであるとの判定を確定する。次いで、書換装置12は、第2対象ECU62tar(例えば、第7ECU62g)が電源オフであるか否かの判定を開始する。時点t23から時点t24になると、書換装置12は、第2対象ECU62tarが電源オフであるとの判定を確定する。   When the user turns off the IGSW 80 at time t22, each target ECU 62tar is turned off. From time t22 to time t23, the rewriting device 12 finalizes the determination that the first target ECU 62tar is powered off. Next, the rewriting device 12 starts determining whether or not the second target ECU 62tar (for example, the seventh ECU 62g) is powered off. From time t23 to time t24, the rewriting device 12 finalizes the determination that the second target ECU 62tar is powered off.

次いで、書換装置12は、第3対象ECU62tar(例えば、第1ECU62a)が電源オフであるか否かの判定を開始する。図9の例では、表示部28における電源オフ要求は表示部28に表示され続けている。このため、図8の比較例と異なり、ユーザは、IGSW80をオンにすることがない。なお、書換装置12は、第1対象ECU62tarが電源オフであるとの判定を確定した時点等で、表示部28の表示を電源オフ要求から待機要求に切り替えてもよい。   Next, the rewriting device 12 starts determining whether or not the third target ECU 62tar (for example, the first ECU 62a) is powered off. In the example of FIG. 9, the power-off request on the display unit 28 continues to be displayed on the display unit 28. For this reason, unlike the comparative example of FIG. 8, the user does not turn on the IGSW 80. Note that the rewriting device 12 may switch the display on the display unit 28 from the power-off request to the standby request at the time when it is determined that the first target ECU 62tar is powered off.

時点t24から時点t25になると、書換装置12は、第3対象ECU62tarが電源オフであるとの判定を確定する。これに伴い、書換装置12は、表示部28の表示を電源再オン要求に切り替える(図7のS54)。時点t26において、作業者は、IGSW80をオンにする。これにより、3つの対象ECU62tarは、全て再起動する。各対象ECU62tarが電源オンになると(図7のS55:YES)、書換装置12は、電源再オン要求の表示を終了する(時点t27)。   From time t24 to time t25, the rewriting device 12 finalizes the determination that the third target ECU 62tar is powered off. Accordingly, the rewriting device 12 switches the display on the display unit 28 to a power-on request (S54 in FIG. 7). At time t26, the operator turns on the IGSW 80. Thereby, all the three target ECUs 62tar are restarted. When each target ECU 62tar is powered on (S55: YES in FIG. 7), the rewriting device 12 finishes displaying the power re-on request (time t27).

以上より、図9の例において、書換装置12は、全ての対象ECU62tarが電源オフになったとの判定を確定できたため、図7のステップS53に進むことができる。   As described above, in the example of FIG. 9, the rewriting device 12 can determine that all the target ECUs 62tar have been powered off, and thus can proceed to step S53 of FIG.

[A3.本実施形態における効果]
以上のような本実施形態によれば、プログラム書換え前に、全てのECU62a〜62jにおける相互通信の停止及びDTCの保存禁止をさせる(図6、図5のS48)。また、全ての対象ECU62tarにおける連続的なプログラム書換え(図3のS8、図5)が終了すると、全ての対象ECU62tarの停止を確認した上で(図7のS52:YES)、ネットワーク通信停止要求信号Sstp(停止/禁止要求信号)の送信を停止する(S53)。加えて、停止要求信号Sstpの送信停止後に、対象ECU62tarに対して現在バージョン情報Iver(搭載プログラムPiのバージョン情報)を要求する現在プログラムID要求信号Sreqpid(バージョン情報要求信号)を送信する(S55)。さらに、対象ECU62tarから受信した現在バージョン情報Iverに基づいてプログラム書換えの完了を確認する(S56)。
[A3. Effects in this embodiment]
According to the present embodiment as described above, before rewriting the program, the communication between all the ECUs 62a to 62j is stopped and the DTC storage is prohibited (S48 in FIGS. 6 and 5). When the continuous program rewriting in all the target ECUs 62tar (S8 in FIG. 3, FIG. 5) is completed, after confirming the stop of all the target ECUs 62tar (S52 in FIG. 7: YES), the network communication stop request signal Transmission of Sstp (stop / prohibition request signal) is stopped (S53). In addition, after stopping the transmission of the stop request signal Sstp, a current program ID request signal Sreqpid (version information request signal) for requesting the current version information Iver (version information of the installed program Pi) is transmitted to the target ECU 62tar (S55). . Further, the completion of the program rewriting is confirmed based on the current version information Iver received from the target ECU 62tar (S56).

従って、対象ECU62tarを再起動させるための操作(再起動操作)を、全ての対象ECU62tarの連続的なプログラム書換えの後にまとめて行うことで、作業者の作業負担を大幅に低減することが可能となる。よって、市場に出回っている車両14に対するプログラム書換えを、販売店等の整備事業者で行う場合も、適切な書換作業を容易に実施することが可能になる。   Therefore, the operation for restarting the target ECU 62tar (restarting operation) is collectively performed after the continuous program rewriting of all the target ECUs 62tar, so that it is possible to greatly reduce the work burden on the operator. Become. Therefore, even when the program rewriting for the vehicle 14 on the market is performed by a maintenance company such as a dealer, an appropriate rewriting operation can be easily performed.

本実施形態において、書換装置12の演算部24(書換制御部)は、全ての対象ECU62tarにおけるプログラム書換え(図3のS8)の終了後に、対象ECU62tar1つ1つに対して第1動作確認信号Scnf1を順番に送信する(図3のS9、図7のS52)。そして、演算部24は、第1動作確認信号Scnf1に対する応答がないことをもって全ての対象ECU62tarの停止を検出する(図7のS52)。   In the present embodiment, the calculation unit 24 (rewrite control unit) of the rewriting device 12 receives the first operation confirmation signal Scnf1 for each target ECU 62tar after the program rewriting (S8 in FIG. 3) in all the target ECUs 62tar is completed. Are transmitted in order (S9 in FIG. 3, S52 in FIG. 7). Then, the calculation unit 24 detects the stop of all the target ECUs 62tar when there is no response to the first operation confirmation signal Scnf1 (S52 in FIG. 7).

これにより、書換え可能な全ECU62(対象ECU62tar)に対して一度にまとめて第1動作確認信号Scnf1を送信する場合と比較して、書き換えたECU62のみの停止を検出するだけなので判断が容易であると共に、確認に必要な時間を短くすることができる。また、書換えを行った対象ECU62tarについて、第1動作確認信号Scnf1に対する応答がないことをもって各対象ECU62tarの停止を検出し、その後の処理を行うため、各対象ECU62tarを確実に再起動することが可能となる。   Accordingly, as compared with the case where the first operation confirmation signal Scnf1 is transmitted to all the rewritable ECUs 62 (target ECU 62tar) all at once, determination is easy because only the stop of the rewritten ECU 62 is detected. At the same time, the time required for confirmation can be shortened. In addition, since the target ECU 62tar that has been rewritten is detected as having no response to the first operation confirmation signal Scnf1 to detect the stop of the target ECU 62tar and the subsequent processing is performed, each target ECU 62tar can be reliably restarted. It becomes.

本実施形態において、書換装置12の演算部24(書換制御部)は、全ての対象ECU62tarに対するプログラム書換え(図3のS8)が終了した後、車両14内のIGSW80(又はバッテリ82(ECU62用の電源))のオフ操作を要求するオフ操作要求を表示部28に表示させる(図3のS9、図7のS51)。また、演算部24は、全ての対象ECU62tarの停止を検出して停止要求信号Sstpの送信を終了した後に(図7のS52:YES)、IGSW80の再オン操作を要求する再オン操作要求を表示部28に表示させる(S54)。これにより、再オン操作要求を行うためには、全ての対象ECU62tarにおける電源オフの確認が条件となる。このため、対象ECU62tarの数が多い場合や、電源オフまでの時間が長い対象ECU62tarが存在する場合でも、全ての対象ECU62tarを確実に電源オフさせた後に再起動の動作を指示することが可能となる。   In the present embodiment, the calculation unit 24 (rewrite control unit) of the rewrite device 12 completes the IGSW 80 (or battery 82 (for the ECU 62) for the ECU 62) after the program rewrite (S8 in FIG. 3) for all the target ECUs 62tar is completed. The off operation request for requesting the off operation of the power source) is displayed on the display unit 28 (S9 in FIG. 3, S51 in FIG. 7). In addition, the calculation unit 24 detects a stop of all the target ECUs 62tar and ends the transmission of the stop request signal Sstp (S52: YES in FIG. 7), and then displays a re-on operation request for requesting a re-on operation of the IGSW 80. The data is displayed on the unit 28 (S54). Thus, in order to make a re-on operation request, it is necessary to confirm that all the target ECUs 62tar are turned off. For this reason, even when there are a large number of target ECUs 62tar or there are target ECUs 62tar that take a long time to power off, it is possible to instruct the restart operation after powering off all target ECUs 62tar reliably. Become.

本実施形態において、書換装置12は、順番DB52と、組合せDB54(書換候補情報データベース)と、プログラムDB56(書換プログラムデータベース)とを備える(図1、図2)。また、書換装置12の演算部24(書換制御部)は、ネットワーク60に含まれる書換え可能な全てのECU62a〜62jからECU ID及び現在プログラムID(搭載プログラムPiの現在バージョン情報Iverを含む。)を対にして読み出す(図4のS27)。演算部24は、読み出した現在バージョン情報Iverと、当該現在バージョン情報Iverに対応する最新バージョン情報Iverとを比較して、最新バージョン情報Iverと一致しない現在バージョン情報Iverと対になる書換候補ECU62canを対象ECU62tarとして抽出する(図5のS47)。演算部24は、抽出した対象ECU62tarに対して順番DB52に記憶されている優先順番Opでプログラム書換動作を連続して実行する(図3のS8、図5のS48)。   In the present embodiment, the rewriting device 12 includes an order DB 52, a combination DB 54 (rewriting candidate information database), and a program DB 56 (rewriting program database) (FIGS. 1 and 2). Further, the calculation unit 24 (rewrite control unit) of the rewriting device 12 receives the ECU ID and the current program ID (including the current version information Iver of the installed program Pi) from all the rewritable ECUs 62a to 62j included in the network 60. Reading in pairs (S27 in FIG. 4). The calculation unit 24 compares the read current version information Iver with the latest version information Iver corresponding to the current version information Iver, and determines the rewrite candidate ECU 62can paired with the current version information Iver that does not match the latest version information Iver. Extracted as the target ECU 62tar (S47 in FIG. 5). The calculation unit 24 continuously executes the program rewriting operation on the extracted target ECU 62tar in the priority order Op stored in the order DB 52 (S8 in FIG. 3 and S48 in FIG. 5).

本実施形態によれば、車両14の各変更対象動作Otarで書換えが必要となるECU62(対象ECU62tar)の組合せに対応する優先順番Opでプログラム書換えを行う(図5)。このため、その車両14に最適な順番でプログラム書換えを行うことが可能となる。   According to this embodiment, the program is rewritten in the priority order Op corresponding to the combination of the ECUs 62 (target ECU 62tar) that needs to be rewritten in each change target operation Otar of the vehicle 14 (FIG. 5). For this reason, it becomes possible to perform the program rewriting in the order optimal for the vehicle 14.

また、本実施形態によれば、現在プログラムID(現在バージョン情報Iver)と最新プログラムID(最新バージョン情報Iver)とが一致しない書換候補ECU62canである対象ECU62tarに対して、変更対象動作Otar毎の優先順番Opに従って最新バージョンのプログラムPへの書換えを連続して実行する(図4及び図5)。このため、書換えが必要な候補ECU62canのみについて書換えを行うので、書換作業を効率よく行うことが可能となる。   Further, according to the present embodiment, the priority for each change target operation Otar is given to the target ECU 62tar that is the rewrite candidate ECU 62can whose current program ID (current version information Iver) and the latest program ID (latest version information Iver) do not match. Rewriting to the latest version of the program P is continuously executed according to the order Op (FIGS. 4 and 5). For this reason, since only the candidate ECU 62can that needs to be rewritten is rewritten, the rewriting work can be performed efficiently.

以上によれば、市場に出回っている車両14に対するプログラム書換えを、販売店等の整備事業者が行う場合も、整備事業者(作業者)による対象ECU62tarの選定を誤ることがない。加えて、書換順番を特定する作業負担を軽減でき、適切な書換作業の容易な実施が可能になる。   According to the above, even when a maintenance company such as a dealer performs program rewriting for the vehicle 14 on the market, the maintenance operator (operator) does not erroneously select the target ECU 62tar. In addition, it is possible to reduce the work load for specifying the rewriting order, and it is possible to easily perform appropriate rewriting work.

また、プログラム書換え中に書換えを失敗した対象ECU62tarが存在しても、再度書換作業を行うことにより、既に書換えが成功している対象ECU62tarを除いて、書換えが終了していない対象ECU62tarに対して書換えを行うことが可能となる。   Further, even if there is a target ECU 62tar that has failed to be rewritten during program rewriting, by performing the rewriting operation again, with respect to the target ECU 62tar that has not been rewritten except for the target ECU 62tar that has already been successfully rewritten. Rewriting can be performed.

B.変形例
なお、本発明は、上記実施形態に限らず、本明細書の記載内容に基づき、種々の構成を採り得ることはもちろんである。例えば、以下の構成を採用することができる。
B. Modifications It should be noted that the present invention is not limited to the above-described embodiment, and it is needless to say that various configurations can be adopted based on the description of the present specification. For example, the following configuration can be adopted.

[B1.適用対象]
上記実施形態では、システム10を車両14用に用いたが、これに限らず、例えば、その他の移動体(飛行機、船舶、ヘリコプタ等)であってもよい。
[B1. Applicable to]
In the above-described embodiment, the system 10 is used for the vehicle 14, but is not limited thereto, and may be other moving bodies (airplanes, ships, helicopters, etc.), for example.

[B2.プログラム書換システム10の構成]
(B2−1.プログラム書換装置12)
(B2−1−1.全般)
上記実施形態では、書換装置12を車両14の外部から接続するものとした(図1)。しかしながら、例えば、プログラム書換えの前に通信故障がないことを確認する観点(図4のS23、S25)からすれば、これに限らず、書換装置12を車両14に搭載することも可能である。
[B2. Configuration of Program Rewriting System 10]
(B2-1. Program rewriting device 12)
(B2-1-1. General)
In the above embodiment, the rewriting device 12 is connected from the outside of the vehicle 14 (FIG. 1). However, for example, from the viewpoint of confirming that there is no communication failure before the rewriting of the program (S23, S25 in FIG. 4), the rewriting device 12 can be mounted on the vehicle 14 without being limited to this.

上記実施形態では、書換装置12と車内ネットワーク60との通信を有線で行った(図1)。しかしながら、例えば、車内ネットワーク60との通信の観点からすれば、これに限らず、無線で通信することも可能である。   In the above embodiment, communication between the rewriting device 12 and the in-vehicle network 60 is performed by wire (FIG. 1). However, for example, from the viewpoint of communication with the in-vehicle network 60, the communication is not limited to this, and wireless communication is also possible.

(B2−1−2.記憶部26)
上記実施形態の順番DB52は、複数車種のECU62の書換優先順番Opを一緒に記憶した(図2)。しかしながら、例えば、特定の変更対象動作Otarについて優先順番Opを特定する観点からすれば、これに限らない。例えば、順番DB52は、単一車種のECU62の優先順番Opのみを記憶することも可能である。或いは、順番DB52は、変更対象動作Otar毎に優先順番Opを記憶してもよい。
(B2-1-2. Storage unit 26)
The order DB 52 of the above embodiment stores the rewrite priority order Op of the ECUs 62 of a plurality of vehicle types together (FIG. 2). However, for example, from the viewpoint of specifying the priority order Op for a specific change target operation Otar, the present invention is not limited to this. For example, the order DB 52 can store only the priority order Op of the ECU 62 of a single vehicle type. Alternatively, the order DB 52 may store the priority order Op for each change target operation Otar.

上記実施形態では、各DB50、52、54、56及びリスト58を書換装置12に設けた(図1)。しかしながら、例えば、書換装置12が外部サーバとの通信機能を有する場合、DB50、52、54、56及びリスト58のうちの1つ又は複数を前記外部サーバに設け、書換装置12は、外部サーバから必要なデータを取得してもよい。   In the above embodiment, each DB 50, 52, 54, 56 and list 58 are provided in the rewriting device 12 (FIG. 1). However, for example, when the rewriting device 12 has a communication function with an external server, one or more of the DBs 50, 52, 54, 56 and the list 58 are provided in the external server, and the rewriting device 12 is connected to the external server. Necessary data may be acquired.

(B2−2.車両14)
上記実施形態では、車両14がガソリン車であることを想定していたが、これに限らない。車両14は、例えば、電動車両(ハイブリッド車、燃料電池車等を含む。)であってもよい。
(B2-2. Vehicle 14)
In the above embodiment, it is assumed that the vehicle 14 is a gasoline vehicle, but the present invention is not limited to this. The vehicle 14 may be, for example, an electric vehicle (including a hybrid vehicle and a fuel cell vehicle).

[B3.プログラム書換え]
(B3−1.全般)
上記実施形態では、プログラム名とバージョン情報Iverとを一体化したプログラムIDの形で処理を行った。例えば、プログラムID履歴DB50、組合せDB54等では、プログラムIDとしてデータを管理した(図2)。しかしながら、プログラム名とバージョン情報Iverとを用いる観点からすれば、プログラム名とバージョン情報Iverとを別々に管理することも可能である。
[B3. Program rewriting]
(B3-1. General)
In the above embodiment, processing is performed in the form of a program ID in which the program name and version information Iver are integrated. For example, in the program ID history DB 50, the combination DB 54, etc., data is managed as a program ID (FIG. 2). However, from the viewpoint of using the program name and the version information Iver, the program name and the version information Iver can be managed separately.

上記実施形態では、ECU IDとプログラムIDとを分けて設定した(図2)。しかしながら、例えば、各ECU62で用いられるプログラムPが1種類のみである場合、ECU IDとプログラムIDとを統合して用いることも可能である。   In the above embodiment, the ECU ID and the program ID are set separately (FIG. 2). However, for example, when there is only one type of program P used in each ECU 62, the ECU ID and the program ID can be integrated and used.

(B3−2.対象ECU組合せ選択処理(図3のS4、図4))
上記実施形態において、書換装置12は、プログラムID履歴DB50を用いて最新プログラムIDを特定した(図4のS28)。しかしながら、例えば、候補ECU62canにおける現在プログラムIDが最新バージョンであるか否かを確認する観点からすれば、これに限らない。
(B3-2. Target ECU combination selection process (S4 in FIG. 3, FIG. 4))
In the above embodiment, the rewriting device 12 identifies the latest program ID using the program ID history DB 50 (S28 in FIG. 4). However, for example, from the viewpoint of confirming whether the current program ID in the candidate ECU 62can is the latest version, the present invention is not limited to this.

例えば、書換装置12は、組合せDB54に記憶されている候補プログラムIDを最新プログラムIDとして扱うことも可能である。この場合、同じプログラム名であるにもかかわらず、変更対象動作Otar毎に最新バージョン情報Iverが相違する可能性がある。この場合、書換装置12は、特定の変更対象動作Otar(第1変更対象動作)に関してプログラム書換えを行う場合、他の変更対象動作Otar(第2変更対象動作)に関する候補プログラムIDと比較してもよい。そして、第2変更対象動作に関する候補プログラムIDの方が、第1変更対象動作に関する候補プログラムIDよりも新しいバージョンである場合、第2変更対象動作に関する候補プログラムIDを用いることができる。   For example, the rewriting device 12 can handle the candidate program ID stored in the combination DB 54 as the latest program ID. In this case, even though the program names are the same, the latest version information Iver may be different for each change target operation Otar. In this case, when the rewriting device 12 performs the program rewriting with respect to the specific change target operation Otar (first change target operation), the rewriting device 12 compares the candidate program ID with respect to another change target operation Otar (second change target operation). Good. If the candidate program ID related to the second change target action is a newer version than the candidate program ID related to the first change target action, the candidate program ID related to the second change target action can be used.

上記実施形態では、書換候補ECU組合せ選択処理(図4)において、現在バージョン情報Iverが最新バージョン情報Iverと一致する書換候補ECU62canの情報についてもリスト58に登録した(図4のS30)。そして、プログラム連続書換処理(図5)において、対象プログラムID(現在プログラムID)が最新プログラムIDと一致する場合(S47:YES)、プログラム書換えを行わないこととした。   In the above embodiment, in the rewrite candidate ECU combination selection process (FIG. 4), information on the rewrite candidate ECU 62can whose current version information Iver matches the latest version information Iver is also registered in the list 58 (S30 in FIG. 4). In the continuous program rewriting process (FIG. 5), when the target program ID (current program ID) matches the latest program ID (S47: YES), the program rewriting is not performed.

しかしながら、例えば、現在バージョン情報Iverが最新バージョン情報Iverと一致しない書換候補ECU62canに対してプログラム書換えを行う観点からすれば、これに限らない。例えば、図4のステップS30においてリスト58に登録する候補ECU ID(及び候補プログラムID)は、現在バージョン情報Iverが最新バージョン情報Iverと一致しない書換候補ECU62canのみに限定してもよい。これにより、図5のステップS47の処理を省略することが可能となる。なお、図4のステップS30(図3のS4の一部)において組合せ番号Nsetを合わせてリスト58に登録しておけば、その後の図3のステップS5では、登録した組合せ番号Nsetを用いて選択可能な組合せを判定することが可能となる。   However, for example, from the viewpoint of rewriting a program for a rewrite candidate ECU 62can whose current version information Iver does not match the latest version information Iver, the present invention is not limited to this. For example, the candidate ECU ID (and candidate program ID) registered in the list 58 in step S30 of FIG. 4 may be limited to only the rewrite candidate ECU 62can whose current version information Iver does not match the latest version information Iver. As a result, the process of step S47 in FIG. 5 can be omitted. If the combination number Nset is combined and registered in the list 58 in step S30 of FIG. 4 (part of S4 of FIG. 3), then the selected combination number Nset is selected in step S5 of FIG. Possible combinations can be determined.

上記実施形態では、通信故障がないことを、ゲートウェイECU62aとその他のECU62(ECU62b〜62j)とに分けて判定した(図4のS23、S25)。しかしながら、例えば、ネットワーク60全体又は対象ECU62tarにおける通信故障を判定する観点からすれば、これに限らない。例えば、図4のステップS23、S25を統合することも可能である。その際、通信故障がないことの確認を、全ECU62a〜62jではなく、対象ECU62tarとゲートウェイECU62aの組合せのみ又は対象ECU62tarのみに限ることも可能である。   In the above embodiment, it is determined that there is no communication failure in the gateway ECU 62a and the other ECUs 62 (ECUs 62b to 62j) (S23 and S25 in FIG. 4). However, for example, from the viewpoint of determining a communication failure in the entire network 60 or the target ECU 62tar, the present invention is not limited to this. For example, steps S23 and S25 in FIG. 4 can be integrated. At this time, it is also possible to limit the confirmation that there is no communication failure to only the combination of the target ECU 62tar and the gateway ECU 62a or only the target ECU 62tar instead of all the ECUs 62a to 62j.

また、例えば、プログラム書換えを要する変更対象動作Otarを特定する観点からすれば、通信故障がないことの確認(図4のS22〜S25)を省略することも可能である。   Further, for example, from the viewpoint of specifying the change target operation Otar that needs to be rewritten, it is possible to omit confirmation that there is no communication failure (S22 to S25 in FIG. 4).

上記実施形態では、プログラム書換えを要する変更対象動作Otarを、プログラムIDの対比に基づいて特定した(図4のS27〜S30)。しかしながら、例えば、プログラム書換えを要する変更対象動作Otarを特定する観点からすれば、これに限らない。例えば、プログラム書換えを要する変更対象動作OtarをECU IDの対比に基づいて特定してもよい。車両14毎にプログラム書換えの履歴を管理しており、プログラム書換えを要する変更対象動作Otarが予め特定可能な場合、書換装置12自身で変更対象動作Otarを選択することも可能である。   In the above embodiment, the change target operation Otar that requires program rewriting is specified based on the comparison of program IDs (S27 to S30 in FIG. 4). However, for example, from the viewpoint of specifying the change target operation Otar that requires program rewriting, the present invention is not limited to this. For example, the change target operation Otar that needs to be rewritten may be specified based on the contrast of the ECU ID. When the history of program rewriting is managed for each vehicle 14 and the change target operation Otar that needs to be rewritten can be specified in advance, the rewrite device 12 itself can select the change target operation Otar.

(B3−3.プログラム連続書換処理(図3のS8、図5のS48))
上記実施形態では、ネットワーク通信停止要求信号Sstpを定期的に送信した。しかしながら、例えば、各ECU62を所望の状態に維持させる観点からすれば、送信する信号は、これに限らない。例えば、書換装置12は、各ECU62に対して定期的に現状の状態(DTCの保存を禁止した状態と、各ECU62間相互通信の停止状態)の維持を要求する信号を送信することも可能である。
(B3-3. Program Continuous Rewrite Processing (S8 in FIG. 3, S48 in FIG. 5))
In the above embodiment, the network communication stop request signal Sstp is periodically transmitted. However, for example, from the viewpoint of maintaining each ECU 62 in a desired state, the signal to be transmitted is not limited to this. For example, the rewriting device 12 can periodically transmit a signal requesting the maintenance of the current state (a state in which DTC storage is prohibited and a state in which mutual communication between the ECUs 62 is stopped) to each ECU 62. is there.

(B3−4.書換完了確認処理(図3のS9、図7))
上記実施形態では、各対象ECU62tarを再起動させるため、書換装置12のユーザによるIGSW80のオフ操作及び再オン操作を求めた(図7のS51、S54)。しかしながら、例えば、各対象ECU62tarを再起動させる観点からすれば、これに限らない。例えば、書換装置12から各対象ECU62tarに対して再起動信号を出力することも可能である。
(B3-4. Rewriting completion confirmation process (S9 in FIG. 3, FIG. 7))
In the above embodiment, in order to restart each target ECU 62tar, the user of the rewriting device 12 asked for the IGSW 80 off operation and the re-on operation (S51 and S54 in FIG. 7). However, for example, from the viewpoint of restarting each target ECU 62tar, the present invention is not limited to this. For example, a reactivation signal can be output from the rewriting device 12 to each target ECU 62tar.

上記実施形態では、プログラム書換え後の各対象ECU62tarの電源オフの確認(図7のS52)を、対象ECU62tar1つ1つについて順番に行った(図9)。しかしながら、例えば、変更対象動作Otar毎にプログラム書換えを行う観点からすれば、これに限らない。例えば、書換装置12は、複数の対象ECU62tarの電源オフの確認を同時に行うことも可能である。   In the embodiment described above, confirmation of power-off of each target ECU 62tar after the rewriting of the program (S52 in FIG. 7) was performed in order for each target ECU 62tar (FIG. 9). However, for example, from the viewpoint of rewriting the program for each change target operation Otar, the present invention is not limited to this. For example, the rewriting device 12 can simultaneously confirm that the plurality of target ECUs 62tar are turned off.

(B3−5.その他)
上記実施形態では、変更対象動作Otarの選択を書換装置12のユーザが行った(図3のS6、S7)。換言すると、変更対象動作Otarを選択する変更対象動作選択部は、ユーザの操作を入力する操作入力部22であった。しかしながら、例えば、変更対象動作Otarを選択する観点からすれば、これに限らない。例えば、書換装置12自身で変更対象動作Otarを選択することも可能である。
(B3-5. Others)
In the above embodiment, the user of the rewriting device 12 selects the change target operation Otar (S6 and S7 in FIG. 3). In other words, the change target operation selection unit that selects the change target operation Otar is the operation input unit 22 that inputs a user operation. However, for example, from the viewpoint of selecting the change target operation Otar, the present invention is not limited to this. For example, the rewriting device 12 itself can select the change target operation Otar.

12…プログラム書換装置 14…車両
20…信号入出力部(ネットワーク接続部)
24…演算部(書換制御部) 28…表示部
52…順番DB 54…組合せDB
56…プログラムDB(書換プログラムデータベース)
60…ネットワーク 62…ECU
62can…書換候補ECU 62tar…対象ECU
Op…優先順番 Otar…変更対象動作
P…プログラム Pi…搭載プログラム
Pr…書換プログラム
Scnf1…第1動作確認信号(動作確認信号)
Sreqpid…現在プログラムID要求信号(バージョン情報要求信号)
Sstp…ネットワーク通信停止要求信号(停止/禁止要求信号)
DESCRIPTION OF SYMBOLS 12 ... Program rewriting apparatus 14 ... Vehicle 20 ... Signal input / output part (network connection part)
24 ... Calculation unit (rewrite control unit) 28 ... Display unit 52 ... Order DB 54 ... Combination DB
56 ... Program DB (Rewrite Program Database)
60 ... Network 62 ... ECU
62can: Rewrite candidate ECU 62tar: Target ECU
Op ... Priority order Otar ... Change target operation P ... Program Pi ... Installed program Pr ... Rewrite program Scnf1 ... First operation confirmation signal (operation confirmation signal)
Sreqpid ... Current program ID request signal (version information request signal)
Sstp ... Network communication stop request signal (stop / inhibit request signal)

Claims (5)

車両の外部から前記車両内の電子制御装置(以下「ECU」という。)のネットワークに接続するネットワーク接続部と、プログラム書換えが必要な複数のECU(以下「対象ECU」という。)を選択してプログラム書換えを行う書換制御部とを備えるプログラム書換装置であって、
前記書換制御部は、
全ての前記ECUそれぞれに対して、相互通信の停止及び故障コードの保存禁止を要求する停止/禁止要求信号を送信し、
前記停止/禁止要求信号を送信している状態で、前記対象ECUに対してプログラム書換動作を順番に行い、
全ての前記対象ECUにおけるプログラム書換動作の終了後に、前記対象ECUそれぞれに対して動作確認信号を送信するように構成し、
前記動作確認信号に対する応答がないことをもって全ての前記対象ECUの停止を検出したとき、前記停止/禁止要求信号の送信を終了し、
その後、前記対象ECUに対して搭載プログラムのバージョン情報を要求するバージョン情報要求信号を送信し、
前記対象ECUから受信した前記バージョン情報が最新バージョンであるか否かを確認する
ことを特徴とするプログラム書換装置。
A network connection unit connected to a network of an electronic control device (hereinafter referred to as “ECU”) in the vehicle and a plurality of ECUs (hereinafter referred to as “target ECUs”) that require program rewriting are selected from outside the vehicle. A program rewriting device comprising a rewrite control unit for performing program rewriting,
The rewrite control unit
To each of the ECUs, a stop / prohibition request signal for requesting the mutual communication stop and the failure code storage prohibition is transmitted,
In a state where the stop / prohibition request signal is transmitted, a program rewrite operation is sequentially performed on the target ECU,
After completion of the program rewriting operation in all the target ECUs, an operation confirmation signal is transmitted to each of the target ECUs,
When the stop of all the target ECUs is detected with no response to the operation confirmation signal, the transmission of the stop / prohibition request signal is terminated,
Then, a version information request signal for requesting the version information of the installed program is sent to the target ECU,
A program rewriting device for confirming whether or not the version information received from the target ECU is the latest version.
請求項1に記載のプログラム書換装置において、
前記書換制御部は、
全ての前記対象ECUにおける前記プログラム書換動作の終了後に、前記対象ECU1つ1つに対して前記動作確認信号を順番に送信し、
前記動作確認信号に対する応答がないことをもって全ての前記対象ECUの停止を検出する
ことを特徴とするプログラム書換装置。
The program rewriting device according to claim 1,
The rewrite control unit
After completion of the program rewriting operation in all the target ECUs, the operation confirmation signals are sequentially transmitted to the target ECUs one by one.
A program rewriting device that detects stop of all the target ECUs when there is no response to the operation confirmation signal.
請求項1又は2に記載のプログラム書換装置において、
前記書換制御部は、
全ての前記対象ECUに対するプログラム書換動作が終了した後、前記車両内の前記ECU用の電源のオフ操作を要求するオフ操作要求を表示部に表示させ、
全ての前記対象ECUの停止を検出して前記停止/禁止要求信号の送信を終了した後に、前記ECU用の電源の再オン操作を要求する再オン操作要求を前記表示部に表示させる
ことを特徴とするプログラム書換装置。
The program rewriting device according to claim 1 or 2,
The rewrite control unit
After the program rewriting operation for all the target ECUs is completed, an off operation request for requesting an off operation of the power source for the ECU in the vehicle is displayed on the display unit,
After the stop of all the target ECUs is detected and the transmission of the stop / prohibition request signal is finished, a re-on operation request for requesting a re-on operation of the power supply for the ECU is displayed on the display unit. Program rewriting device.
請求項1〜3のいずれか1項に記載のプログラム書換装置において、
前記プログラム書換装置は、
前記車両に搭載されている書換え可能な全ての前記ECUの識別記号に対応させて、書換えの優先順番を予め記憶した順番データベースと、
プログラム書換えが必要な前記車両の変更対象動作毎に、前記対象ECUの候補である書換候補ECUの識別記号と、前記書換候補ECUの搭載プログラムの最新バージョン情報との組合せを書換候補情報として記憶する書換候補情報データベースと、
書換プログラムを記憶する書換プログラムデータベースと
を備え、
前記書換制御部は、
前記ネットワークに含まれる書換え可能な全ての前記ECUから前記ECUの識別記号及び搭載プログラムの現在バージョン情報を対にして読み出し、
読み出した前記現在バージョン情報と、当該現在バージョン情報に対応する前記最新バージョン情報とを比較して、前記最新バージョン情報と一致しない前記現在バージョン情報と対になる前記書換候補ECUを前記対象ECUとして抽出し、
抽出した前記対象ECUに対して前記順番データベースに記憶されている前記優先順番でプログラム書換動作を連続して実行する
ことを特徴とするプログラム書換装置。
In the program rewriting apparatus of any one of Claims 1-3,
The program rewriting device is:
In order to correspond to the identification symbols of all the rewritable ECUs mounted on the vehicle, an order database in which the priority order of rewriting is stored in advance,
For each change target operation of the vehicle that requires program rewriting, a combination of the identification symbol of the rewriting candidate ECU that is the candidate for the target ECU and the latest version information of the installed program of the rewriting candidate ECU is stored as rewriting candidate information. Rewriting candidate information database;
A rewriting program database for storing the rewriting program,
The rewrite control unit
Read the ECU identification symbol and the current version information of the installed program from all the rewritable ECUs included in the network,
The read current version information is compared with the latest version information corresponding to the current version information, and the rewrite candidate ECU paired with the current version information that does not match the latest version information is extracted as the target ECU. And
A program rewriting device that continuously executes a program rewriting operation in the priority order stored in the order database for the extracted target ECU.
車両の外部から前記車両内の電子制御装置(以下「ECU」という。)のネットワークに接続するネットワーク接続部と、プログラム書換えが必要な複数のECU(以下「対象ECU」という。)を選択してプログラム書換えを行う書換制御部とを備えるプログラム書換装置におけるプログラム書換方法であって、
前記書換制御部は、
全ての前記ECUそれぞれに対して、相互通信の停止及び故障コードの保存禁止を要求する停止/禁止要求信号を送信し、
前記停止/禁止要求信号を送信している状態で、前記対象ECUに対してプログラム書換動作を順番に行い、
全ての前記対象ECUにおけるプログラム書換動作の終了後に、前記対象ECUそれぞれに対して動作確認信号を送信するように構成し、
前記動作確認信号に対する応答がないことをもって全ての前記対象ECUの停止を検出したとき、前記停止/禁止要求信号の送信を終了し、
その後、前記対象ECUに対して現在のプログラムのバージョン情報を要求するバージョン情報要求信号を送信し、
前記対象ECUから受信した前記バージョン情報が最新バージョンであるか否かを確認する
ことを特徴とするプログラム書換方法。
A network connection unit connected to a network of an electronic control device (hereinafter referred to as “ECU”) in the vehicle and a plurality of ECUs (hereinafter referred to as “target ECUs”) that require program rewriting are selected from outside the vehicle. A program rewriting method in a program rewriting device comprising a rewrite control unit for performing program rewriting,
The rewrite control unit
To each of the ECUs, a stop / prohibition request signal for requesting the mutual communication stop and the failure code storage prohibition is transmitted,
In a state where the stop / prohibition request signal is transmitted, a program rewrite operation is sequentially performed on the target ECU,
After completion of the program rewriting operation in all the target ECUs, an operation confirmation signal is transmitted to each of the target ECUs,
When the stop of all the target ECUs is detected with no response to the operation confirmation signal, the transmission of the stop / prohibition request signal is terminated,
Thereafter, a version information request signal for requesting the version information of the current program is sent to the target ECU,
A program rewriting method comprising: checking whether or not the version information received from the target ECU is the latest version.
JP2015068885A 2015-03-30 2015-03-30 Program rewriting device and program rewriting method Expired - Fee Related JP6147791B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2015068885A JP6147791B2 (en) 2015-03-30 2015-03-30 Program rewriting device and program rewriting method
CN201680020073.4A CN107531198B (en) 2015-03-30 2016-03-22 Program rewriting device and program rewriting method
US15/562,153 US20180081671A1 (en) 2015-03-30 2016-03-22 Program rewriting device and program rewriting method
PCT/JP2016/058908 WO2016158547A1 (en) 2015-03-30 2016-03-22 Program rewriting device and program rewriting method
DE112016000992.5T DE112016000992T5 (en) 2015-03-30 2016-03-22 PROGRAM RESTORE DEVICE AND PROGRAM RETRIEVER PROCESS

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015068885A JP6147791B2 (en) 2015-03-30 2015-03-30 Program rewriting device and program rewriting method

Publications (2)

Publication Number Publication Date
JP2016188017A true JP2016188017A (en) 2016-11-04
JP6147791B2 JP6147791B2 (en) 2017-06-14

Family

ID=57239316

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015068885A Expired - Fee Related JP6147791B2 (en) 2015-03-30 2015-03-30 Program rewriting device and program rewriting method

Country Status (1)

Country Link
JP (1) JP6147791B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018025685A1 (en) * 2016-08-05 2018-02-08 株式会社オートネットワーク技術研究所 On-board update device, on-board update system, and communication device update method
JP2020136804A (en) * 2019-02-15 2020-08-31 株式会社リコー Network apparatus, system including network apparatus, and firmware update method
WO2022239613A1 (en) * 2021-05-14 2022-11-17 株式会社デンソー Vehicular electronic control device, vehicular electronic control system, and updated configuration information determination program

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020170406A1 (en) 2019-02-22 2020-08-27 本田技研工業株式会社 Software update device, vehicle, and software update method
JP6943903B2 (en) 2019-02-22 2021-10-06 本田技研工業株式会社 Software update device, vehicle and software update method
JP6832374B2 (en) 2019-02-22 2021-02-24 本田技研工業株式会社 Software update device, vehicle and software update method
JP7061725B2 (en) 2019-02-22 2022-04-28 本田技研工業株式会社 Software update device, vehicle and software update method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004310221A (en) * 2003-04-02 2004-11-04 Denso Corp Data rewriting method and electronic control device
JP2008168649A (en) * 2007-01-05 2008-07-24 Mazda Motor Corp Vehicular control system
JP2011070307A (en) * 2009-09-24 2011-04-07 Toyota Motor Corp Program update device
JP2012091755A (en) * 2010-10-29 2012-05-17 Honda Motor Co Ltd Program rewriting system for vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004310221A (en) * 2003-04-02 2004-11-04 Denso Corp Data rewriting method and electronic control device
JP2008168649A (en) * 2007-01-05 2008-07-24 Mazda Motor Corp Vehicular control system
JP2011070307A (en) * 2009-09-24 2011-04-07 Toyota Motor Corp Program update device
JP2012091755A (en) * 2010-10-29 2012-05-17 Honda Motor Co Ltd Program rewriting system for vehicle

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018025685A1 (en) * 2016-08-05 2018-02-08 株式会社オートネットワーク技術研究所 On-board update device, on-board update system, and communication device update method
JP2018020718A (en) * 2016-08-05 2018-02-08 株式会社オートネットワーク技術研究所 On-vehicle updating device, on-vehicle updating system and updating method for communication device
JP2020136804A (en) * 2019-02-15 2020-08-31 株式会社リコー Network apparatus, system including network apparatus, and firmware update method
JP7163811B2 (en) 2019-02-15 2022-11-01 株式会社リコー NETWORK DEVICE, SYSTEM HAVING NETWORK DEVICE, AND FIRMWARE UPDATE METHOD
WO2022239613A1 (en) * 2021-05-14 2022-11-17 株式会社デンソー Vehicular electronic control device, vehicular electronic control system, and updated configuration information determination program

Also Published As

Publication number Publication date
JP6147791B2 (en) 2017-06-14

Similar Documents

Publication Publication Date Title
CN107531198B (en) Program rewriting device and program rewriting method
JP6147792B2 (en) Program rewriting device and program rewriting method
JP6147791B2 (en) Program rewriting device and program rewriting method
JP6665728B2 (en) In-vehicle update device, in-vehicle update system and communication device update method
JP6390644B2 (en) Program update system, program update method, and computer program
US11960877B2 (en) Updating system, electronic control unit, updating management device, and updating management method
WO2018070156A1 (en) Software update device, software update method, and software update system
JP6486484B2 (en) In-vehicle control device and information update system for in-vehicle control device
JP7035635B2 (en) Software consistency check method in vehicle control system and vehicle control system
JP6147790B2 (en) Program rewriting device and program rewriting method
JP6465258B1 (en) Control device, control method, and computer program
JP7192415B2 (en) Program update system and update processing program
JP6060782B2 (en) Relay device
CN108008964B (en) Vehicle-mounted network system, management method of vehicle-mounted software and vehicle
US20240069906A1 (en) Server, software update system, distribution method, and non-transitory storage medium
JP5551045B2 (en) Program rewriting system for vehicles
US11861347B2 (en) Server, update managing method, non-transitory storage medium, software updating device, center, and OTA master
WO2021205825A1 (en) Vehicle-mounted device, information processing method, and computer program
CN113853580A (en) Electronic Control Unit (ECU) updating method, ECU and terminal
JP2019200789A (en) Electronic controller and session establishing program
US20220222054A1 (en) Center, update management method, and non-transitory storage medium
WO2019221118A1 (en) Electronic control unit and session establishment program
JP2023131640A (en) On-vehicle device, program, and updating method of program
JP2023057798A (en) On-vehicle device, program and updating method of program
JP2021018162A (en) Failure detection system

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160802

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160928

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20170110

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170309

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170517

R150 Certificate of patent or registration of utility model

Ref document number: 6147791

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees