JP2018120438A - Electronic control device and program rewriting system - Google Patents
Electronic control device and program rewriting system Download PDFInfo
- Publication number
- JP2018120438A JP2018120438A JP2017011546A JP2017011546A JP2018120438A JP 2018120438 A JP2018120438 A JP 2018120438A JP 2017011546 A JP2017011546 A JP 2017011546A JP 2017011546 A JP2017011546 A JP 2017011546A JP 2018120438 A JP2018120438 A JP 2018120438A
- Authority
- JP
- Japan
- Prior art keywords
- communication
- electronic control
- control device
- reprogramming
- vehicle network
- 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.)
- Pending
Links
Images
Abstract
Description
本発明は、プログラムの書き換えを行うことができる車載の電子制御装置及びこの電子制御装置を含むプログラム書換システムに関するものである。 The present invention relates to an in-vehicle electronic control device capable of rewriting a program and a program rewriting system including the electronic control device.
従来、車両の多くの機能を、車載の電子制御装置(以下、ECU)で実現することが知られている。また、ECUで実現する機能の向上の際には、ECUのプログラムの書き換え(以下、リプログラミング)によって対応することが知られている。ECUのリプログラミングを行うためには、対象となるECUとの電気接続が必要だが、ECUは車両の各所の構造物内に設置され、簡単にはアクセスできない。よって、通常は、既に各ECUに接続された車載ネットワークの伝送路を利用したECUのリプログラミングにより、車両の分解といった手間なしに、ECUで実現する機能の向上を行う。しかしながら、近年では、ECUの高機能化に伴ってプログラムサイズが大きくなることで、リプログラミングに要する時間が長くなってきている。 Conventionally, it is known that many functions of a vehicle are realized by an on-vehicle electronic control device (hereinafter referred to as ECU). In addition, it is known that the improvement of functions realized by the ECU can be dealt with by rewriting the ECU program (hereinafter, reprogramming). In order to perform reprogramming of the ECU, electrical connection with the target ECU is required, but the ECU is installed in the structure of each part of the vehicle and cannot be easily accessed. Therefore, usually, by reprogramming the ECU using the transmission path of the in-vehicle network already connected to each ECU, the functions realized by the ECU are improved without the trouble of disassembling the vehicle. However, in recent years, the time required for reprogramming has become longer due to the increase in the program size as the functionality of ECUs increases.
そこで、ECUのリプログラミングに要する時間を短縮するための技術が提案されている。例えば特許文献1には、ECUのプログラムのうち、リプログラミング可能なプログラムを予め制限し、書き換えるプログラムサイズを小さくすることで短縮しようとする技術が開示されている。 Therefore, techniques for reducing the time required for ECU reprogramming have been proposed. For example, Patent Document 1 discloses a technique for limiting a reprogrammable program among ECU programs in advance and reducing the rewritten program size to reduce the program size.
しかしながら、特許文献1に開示の技術では、予め制限した範囲を越えてECUのプログラムを書き換えることができないという問題点が生じる。また、車載ネットワークにおいて用いる通信プロトコル自体を通信速度のより速いものに変更することでリプログラミングに要する時間を短縮することも考えられる。しかしながら、車載ネットワークにおいて用いる通信プロトコル自体を変更する場合、車載ネットワークに接続する全てのECUを利用可能にするためには、この全てのECUを新たな通信プロトコルに対応させる手間が生じてしまう。 However, the technique disclosed in Patent Document 1 has a problem in that the ECU program cannot be rewritten beyond a predetermined range. It is also conceivable to reduce the time required for reprogramming by changing the communication protocol itself used in the in-vehicle network to one having a higher communication speed. However, when the communication protocol itself used in the in-vehicle network is changed, in order to make all the ECUs connected to the in-vehicle network available, it is necessary to make all the ECUs correspond to the new communication protocol.
本発明は、上記従来の問題点に鑑みなされたものであって、その目的は、車載の電子制御装置のリプログラミング可能な範囲を制限することなく、手間を抑えてリプログラミングに要する時間を短縮することを可能にする電子制御装置及びプログラム書換システムを提供することにある。 The present invention has been made in view of the above-described conventional problems, and its purpose is to reduce the time required for reprogramming by reducing the time and effort without limiting the reprogrammable range of the in-vehicle electronic control device. An object of the present invention is to provide an electronic control device and a program rewriting system that make it possible.
上記目的は独立請求項に記載の特徴の組み合わせにより達成され、また、下位請求項は、発明の更なる有利な具体例を規定する。特許請求の範囲に記載した括弧内の符号は、一つの態様として後述する実施形態に記載の具体的手段との対応関係を示すものであって、本発明の技術的範囲を限定するものではない。 The above object is achieved by a combination of the features described in the independent claims, and the subclaims define further advantageous embodiments of the invention. Reference numerals in parentheses described in the claims indicate a correspondence relationship with specific means described in the embodiments described later as one aspect, and do not limit the technical scope of the present invention. .
上記目的を達成するために、本発明の電子制御装置は、複数の電子制御装置が接続される車載ネットワークに接続される車載の電子制御装置であって、自装置に記憶しているコンピュータプログラムを、車載ネットワークを介して受信する書換対象のコンピュータプログラムに書き換えるリプログラミングを行うリプログラミング部(24)と、車載ネットワークに接続される他の電子制御装置と共通の規格で通信を行う通常モードと、その規格での通信よりも通信速度の速い上位規格で通信を行う特別モードとを切り替えて通信可能な通信部(21)とを備え、通信部は、車載ネットワークを介して自装置のリプログラミングを指定する情報を受信した場合には、通常モードから特別モードに切り替えて、書換対象のコンピュータプログラムを受信する。 In order to achieve the above object, an electronic control device of the present invention is an in-vehicle electronic control device connected to an in-vehicle network to which a plurality of electronic control devices are connected, and stores a computer program stored in the own device. A reprogramming unit (24) that performs reprogramming to rewrite a computer program to be rewritten that is received via an in-vehicle network, and a normal mode that communicates with other electronic control units connected to the in-vehicle network, A communication unit (21) that can communicate by switching to a special mode in which communication is performed at a higher standard that is faster than communication in the standard, and the communication unit reprograms its own device via an in-vehicle network. When the specified information is received, the normal mode is switched to the special mode, and the computer program to be rewritten To receive.
また、上記目的を達成するために、本発明のプログラム書換システムは、前述の電子制御装置である対象電子制御装置(2)と、その電子制御装置以外に車載ネットワークに接続される車載の電子制御装置である対象外電子制御装置(3)とを含む。 In order to achieve the above object, the program rewriting system of the present invention includes a target electronic control device (2) which is the above-described electronic control device, and an on-vehicle electronic control connected to an on-vehicle network in addition to the electronic control device. A non-target electronic control device (3) which is a device.
これらによれば、車載ネットワークに接続される他の電子制御装置と共通の規格で通信を行う場合よりも通信速度の速い上位規格で通信を行って、書換対象のコンピュータプログラムを受信し、リプログラミングを行うので、電子制御装置のリプログラミング可能な範囲を制限することなく、リプログラミングに要する時間を短縮することが可能になる。また、共通の規格で通信を行う通常モードと、その規格での通信よりも通信速度の速い上位規格で通信を行う特別モードとを切り替えて通信可能であって、リプログラミングの場合に一時的に特別モードで通信を行うことができるので、車載ネットワークに接続される他の電子制御装置の全てを上位規格に対応可能にする必要がない。よって、車載ネットワークに接続される他の電子制御装置の全てを上位規格に対応可能にする手間を抑えることが可能になる。その結果、車載の電子制御装置のリプログラミング可能な範囲を制限することなく、手間を抑えてリプログラミングに要する時間を短縮することが可能になる。 According to these, it communicates with a higher standard whose communication speed is faster than when communicating with other electronic control units connected to the in-vehicle network, receives the computer program to be rewritten, and reprograms it. Therefore, the time required for reprogramming can be shortened without limiting the reprogrammable range of the electronic control unit. In addition, communication is possible by switching between the normal mode that communicates with a common standard and the special mode that communicates with a higher standard communication speed that is faster than that standard communication. Since communication can be performed in the special mode, it is not necessary to make all other electronic control devices connected to the in-vehicle network compliant with the higher standard. Therefore, it is possible to reduce the trouble of making all other electronic control devices connected to the in-vehicle network compatible with the higher standard. As a result, it is possible to reduce the time required for reprogramming while reducing labor without limiting the reprogrammable range of the on-vehicle electronic control device.
図面を参照しながら、開示のための複数の実施形態を説明する。なお、説明の便宜上、複数の実施形態の間において、それまでの説明に用いた図に示した部分と同一の機能を有する部分については、同一の符号を付し、その説明を省略する場合がある。同一の符号を付した部分については、他の実施形態における説明を参照することができる。 A plurality of embodiments for disclosure will be described with reference to the drawings. For convenience of explanation, among the embodiments, parts having the same functions as those shown in the drawings used in the explanation so far may be given the same reference numerals and explanation thereof may be omitted. is there. For the parts denoted by the same reference numerals, the description in other embodiments can be referred to.
(実施形態1)
<プログラム書換システム1の概略構成>
以下、本発明の実施形態1について図面を用いて説明する。図1に示すように、プログラム書換システム1は、対象ECU2、対象外ECU3、車載ネットワーク用信号線4、及びTester5を含んでいる。
(Embodiment 1)
<Schematic configuration of program rewriting system 1>
Embodiment 1 of the present invention will be described below with reference to the drawings. As shown in FIG. 1, the program rewriting system 1 includes a
対象ECU2及び対象外ECU3は、車両に搭載されて、この車両に搭載された機器の制御を行う電子制御装置である。対象ECU2及び対象外ECU3を搭載する車両を以降では自車と呼ぶ。対象ECU2及び対象外ECU3では、後述の不揮発性メモリ22に記憶されている制御プログラムに基づいて後述の制御部24が、自車に搭載された機器の制御を行う。この制御プログラムが請求項のコンピュータプログラムに相当する。
The
本実施形態において、対象ECU2は、リプログラミングの対象となるECUとし、対象外ECU3は、リプログラミングの対象とならないECUとする。この対象ECU2が請求項の対象電子制御装置に相当し、対象外ECU3が請求項の対象外電子制御装置に相当する。対象ECU2及び対象外ECU3は、それぞれ車載ネットワーク用信号線4に接続されている。また、対象ECU2及び対象外ECU3の電源のオンオフは、自車のイグニッション電源のオンオフに応じて切り替わるものとする。言い換えると、対象ECU2及び対象外ECU3の電源のオンオフは、自車のイグニッションスイッチのオンオフに応じて切り替わる。対象ECU2及び対象外ECU3のさらに詳細な構成については後述する。
In the present embodiment, the
車載ネットワーク用信号線4は、車載ネットワークに用いられる信号線である。車載ネットワークでは、CAN(登録商標)プロトコルに従って通信が行われるものとする。本実施形態では、対象ECU2は、Classic CANとCAN FD(CAN with Flexible Data Rate)との両方の規格に対応しているものとする。Classic CANは、従来型の規格であって、1つのデータフレームに載せられるデータ長が8バイトとなっている。一方、CAN FDは、Classic CANよりも通信速度の速い上位規格であって、1つのデータフレームに載せられるデータ長が64バイトとなっている。対象外ECU3は、Classic CANとCAN FDとのうちのClassic CANにのみ対応しているものとする。対象ECU2及び対象外ECU3は、車両に搭載された機器の制御を行う場合には、共通の規格であるClassic CANに従った通信を行うものとする。
The in-vehicle
Tester5は、対象ECU2でリプログラミングを行わせるための装置である。Tester5は、リプログラミングを行わせる対象(つまり、対象ECU2)を指定したリプロ開始通知を送信する。一例としては、書換対象のIDといった識別情報をリプロ開始通知に含ませることで、リプログラミングを行わせる対象を指定する構成とする。リプロ開始通知のコマンドの送信は、Classic CANに従った通信によって行うものとする。そして、リプロ開始通知に対して対象ECU2から応答があった場合には、CAN FDに従った通信によって、書換対象の制御プログラムを対象ECU2に送信する。Tester5は、通常時は車載ネットワーク用信号線4に接続されておらず、対象ECU2の制御プログラムの書き換え(つまり、リプログラミング)を行う場合に、一時的に車載ネットワーク用信号線4に接続される。
The
なお、図1では、車載ネットワーク用信号線4に対象外ECU3が2つ接続される構成を示したが、必ずしもこれに限らず、2つ以外の数の対象外ECU3が接続される構成であってもよい。
Although FIG. 1 shows a configuration in which the two
<対象ECU2の概略構成>
続いて、図2を用いて、対象ECU2の概略構成についての説明を行う。対象ECU2は、図2に示すように、通信部21、不揮発性メモリ22、揮発性メモリ23、及び制御部24を備える。
<Schematic configuration of
Next, a schematic configuration of the
通信部21は、CANプロトコルに従って通信を行う通信コントローラ211を備えている。通信コントローラ211は、データフレームを作成し、作成したデータフレームを、トランシーバを介して車載ネットワーク用信号線4に送信する送信制御を行う。通信コントローラ211は、トランシーバによって受信したデータフレームからデータやメッセージの抽出等を行う受信制御も行う。他にも、通信コントローラ211は、車載ネットワーク用信号線4上においてデータフレームが衝突した際の送信権の調停制御,データフレームの送受信に関連して生じるエラーの検出,通知等といった、CANプロトコルに従った通信制御を実行する。
The communication unit 21 includes a
さらに、通信コントローラ211は、Classic CANに従った通信を行う通常モードと、CAN FDに従った通信を行う特別モードとを切り替えて通信を行う。この切り替えは、Classic CANに従った通信を行う通信コントローラとCAN FDに従った通信を行う通信コントローラとを切り替えるといったハードウェアの切り替えでなく、ソフトウェアの切り替えで行う構成とすることが好ましい。これは、通信コントローラを複数備えるコストを低減できるためである。
Furthermore, the
通信コントローラ211は、Tester5から自装置を指定するリプロ開始通知をトランシーバで受信するまでは、通常モードで通信を行う。一方、Tester5から自装置を指定するリプロ開始通知をトランシーバで受信した場合には、通常モードから特別モードに切り替えて通信を行う。
The
不揮発性メモリ22は、電気的に書き換え可能なフラッシュメモリ等の不揮発性メモリであって、自車に搭載された機器の制御を行うための制御プログラムを記憶している。揮発性メモリ23は、RAM等の揮発性メモリであって、制御部24の動作により発生した情報、不揮発性メモリ22から読み出された各種情報、制御プログラム等が一時的に記憶される。
The
制御部24は、例えばプロセッサであって、通信部21を介して車載ネットワーク用信号線4に接続された対象外ECU3等との間で情報の送受信を行う。制御部24は、不揮発性メモリ22に記憶されている制御プログラムを読み出して、車載ネットワーク用信号線4に接続された対象外ECU3等から受信した情報に基づいて、この制御プログラムを実行することで、自車に搭載された機器の制御を行う。制御部24は、Tester5から送信される書換対象のプログラムを、通信部21を介して取得した場合に、不揮発性メモリ22に記憶済みの制御プログラムを、取得した書換対象のプログラムに書き換えるリプログラミングを行う。よって、この制御部24が請求項のリプログラミング部に相当する。
The
なお、通信部21での通常モードと特別モードとの切替は、Tester5から自装置を指定するリプロ開始通知をトランシーバで受信したことに基づいて、制御部24が指示することで行う構成としてもよい。
Note that the switching between the normal mode and the special mode in the communication unit 21 may be performed by the
<対象ECU2での自リプロ関連処理>
ここで、図3のフローチャートを用いて、対象ECU2でのリプログラミングに関連する処理(以下、自リプロ関連処理)の流れの一例について説明を行う。図3のフローチャートは、例えば自車のイグニッション電源がオンになって、対象ECU2の電源がオンになった場合に開始される構成とすればよい。
<Self repro-related processing in the
Here, an example of the flow of processing related to reprogramming in the target ECU 2 (hereinafter referred to as self-repro related processing) will be described using the flowchart of FIG. The flowchart of FIG. 3 may be configured to be started when, for example, the ignition power of the own vehicle is turned on and the power of the
ステップS1では、通信部21が、Classic CANに従った通信を行う通常モードで通信を行う。ここで言うところの通信を行うとは、必要に応じたタイミングで情報の送受信を行うことを示している。ステップS2では、通信部21がTester5から自装置を指定するリプロ開始通知を受信した場合(S2でYES)には、ステップS4に移る。一方、通信部21がTester5から自装置を指定するリプロ開始通知を受信していない場合(S2でNO)には、ステップS3に移る。 In step S1, the communication unit 21 performs communication in a normal mode in which communication according to Classic CAN is performed. The term “communication” here means that information is transmitted and received at a timing as necessary. In step S2, when the communication unit 21 receives a repro start notification designating its own device from Tester 5 (YES in S2), the process proceeds to step S4. On the other hand, when the communication unit 21 has not received a repro start notification for designating its own device from the Tester 5 (NO in S2), the process proceeds to Step S3.
ステップS3では、リプロ関連処理の終了タイミングであった場合(S3でYES)には、自リプロ関連処理を終了する。一方、自リプロ関連処理の終了タイミングでなかった場合(S3でNO)には、S1に戻って処理を繰り返す。自リプロ関連処理の終了タイミングとしては、例えば自車のイグニッション電源がオフになって、対象ECU2の電源がオフになった場合等が挙げられる。
In step S3, if it is the end timing of the repro related process (YES in S3), the self repro related process is ended. On the other hand, if it is not the end timing of the own repro related process (NO in S3), the process returns to S1 and the process is repeated. Examples of the end timing of the own repro-related process include a case where the ignition power of the own vehicle is turned off and the power of the
通信部21が自装置を指定するリプロ開始通知を受信した場合に行われる処理であるステップS4では、通信部21が、通常モードでの通信から、CAN FDに従った通信を行う特別モードでの通信に切り替える。ステップS5では、CAN FDに従った通信によってTester5から送信されてくる書換対象の制御プログラムを通信部21が受信し、制御部24に出力する。ステップS6では、制御部24が、不揮発性メモリ22に記憶済みの制御プログラムを、S5で取得した書換対象の制御プログラムに書き換えるリプログラミングを行う。
In step S4, which is a process performed when the communication unit 21 receives a repro start notification specifying its own device, the communication unit 21 performs communication in the special mode in which communication is performed in accordance with CAN FD from communication in the normal mode. Switch to communication. In step S <b> 5, the communication unit 21 receives the rewrite target control program transmitted from the
ステップS7では、自リプロ関連処理の終了タイミングであった場合(S7でYES)には、自リプロ関連処理を終了する。一方、自リプロ関連処理の終了タイミングでなかった場合(S7でNO)には、S7の処理を繰り返す。なお、対象ECU2は、通常モードから特別モードに切り替えた後は、リプログラミングの完了時に通常モードに復帰する構成としてもよいし、対象ECU2の電源オフ後の再度の電源オン時に通常モードに復帰する構成としてもよい。
In step S7, if it is the end timing of the own repro related process (YES in S7), the own repro related process is ended. On the other hand, if it is not the end timing of the own repro related process (NO in S7), the process of S7 is repeated. The
<対象外ECU3の概略構成>
続いて、図4を用いて、対象外ECU3の概略構成についての説明を行う。対象外ECU3は、図4に示すように、通信部31、不揮発性メモリ32、揮発性メモリ33、及び制御部34を備える。
<Schematic configuration of
Subsequently, a schematic configuration of the
通信部31は、CANプロトコルに従って通信を行う通信コントローラ311を備えている。通信コントローラ311は、Classic CANに従った通信を行う通常モードと、CAN FDに従った通信を行う特別モードとのうちの通常モードのみで通信を行う点を除けば、対象ECU2の通信コントローラ211と同様である。
The
通信コントローラ311は、Tester5から他装置を指定するリプロ開始通知をトランシーバで受信するまでは、通常モードで通信を行う。一方、Tester5から他装置を指定するリプロ開始通知をトランシーバで受信した場合には、通信を停止する。つまり、対象外ECU3は、車載ネットワークを介して自装置以外のリプログラミングを指定する情報を受信した場合には、車載ネットワークを介した通信を停止する。
The
対象外ECU3は、通信を停止した場合であっても、対象外ECU3の電源オフ後の再度の電源オン時に、通常モードでの通信を再開する。これにより、停止した対象外ECU3の通信を容易に復帰させることが可能になる。詳しくは、以下の通りである。対象ECU2でのリプログラミングのために車載ネットワークを介した通信が特別モードでの通信に切り替わった場合、特別モードでの通信による指示では対象外ECU3の通信を再開させることができなくなる。これに対して、本実施形態によれば、対象外ECU3の電源オフ後に再度の電源オンを行うだけで、通常モードでの通信を再開することが可能になるので、停止した対象外ECU3の通信を容易に復帰させることが可能になる。
Even when communication is stopped, the
制御部34は、特別モードで送信されてくる書換対象の制御プログラムによるリプログラミングを行わない点を除けば、対象ECU2の制御部24と同様である。制御部34は、リプログラミング自体を行わない構成としてもよいし、通常モードで送信されてくる書換対象の制御プログラムによるリプログラミングを行う構成としてもよい。
The
不揮発性メモリ32及び揮発性メモリ33は、対象ECU2の不揮発性メモリ22及び揮発性メモリ23と同様とすればよい。なお、制御部34がリプログラミング自体を行わない構成とした場合には、不揮発性メモリ32として、ROMといった電気的に書き換え可能でない不揮発性メモリを用いる構成としてもよい。
The
<対象外ECU3でのリプロ関連処理>
ここで、図5のフローチャートを用いて、対象ECU2でリプログラミングが行われる場合の対象外ECU3での処理に関連する処理(以下、他リプロ関連処理)の流れの一例について説明を行う。図5のフローチャートは、例えば自車のイグニッション電源がオンになって、対象外ECU3の電源がオンになった場合に開始される構成とすればよい。
<Repro-related processing in the excluded
Here, an example of a flow of processing related to processing in the non-target ECU 3 (hereinafter, other repro-related processing) when reprogramming is performed in the
ステップS21では、通信部31が、Classic CANに従った通信を行う通常モードで通信を行う。ここで言うところの通信を行うとは、必要に応じたタイミングで情報の送受信を行うことを示している。ステップS22では、通信部21がTester5から他装置を指定するリプロ開始通知を受信した場合(S22でYES)には、ステップS24に移る。一方、通信部31がTester5から他装置を指定するリプロ開始通知を受信していない場合(S22でNO)には、ステップS23に移る。
In step S <b> 21, the
ステップS23では、他リプロ関連処理の終了タイミングであった場合(S23でYES)には、他リプロ関連処理を終了する。一方、他リプロ関連処理の終了タイミングでなかった場合(S23でNO)には、S21に戻って処理を繰り返す。他リプロ関連処理の終了タイミングとしては、例えば自車のイグニッション電源がオフになって、対象外ECU3の電源がオフになった場合等が挙げられる。
In step S23, when it is the end timing of the other repro related process (YES in S23), the other repro related process is ended. On the other hand, if it is not the end timing of the other repro-related process (NO in S23), the process returns to S21 and is repeated. Examples of the end timing of the other repro-related processing include a case where the ignition power of the host vehicle is turned off and the power of the
通信部31が他装置を指定するリプロ開始通知を受信した場合に行われる処理であるステップS24では、通信部31が通信を停止する。通信を停止する場合には、エラーメッセージも返信しないものとする。ステップS25では、他リプロ関連処理の終了タイミングであった場合(S25でYES)には、他リプロ関連処理を終了する。一方、他リプロ関連処理の終了タイミングでなかった場合(S25でNO)には、S25の処理を繰り返す。
In step S24, which is a process performed when the
<実施形態1のまとめ>
実施形態1の構成によれば、対象ECU2が、通常モードでは対象外ECU3と共通の規格で通信を行うので、対象ECU2と対象外ECU3とが相互に通信を行って連携し、自車の機器を制御することができる。一方、対象ECU2は、リプログラミングを行う場合に、特別モードに切り替えて、対象外ECU3と共通の規格よりも通信速度の速い上位規格で通信を行って、Tester5から書換対象の制御プログラムを受信する。よって、対象ECU2のリプログラミング可能な範囲を制限することなく、対象外ECU3と共通の規格での通信によってリプログラミングを行う場合に比べて、リプログラミングに要する時間を短縮することが可能になる。
<Summary of Embodiment 1>
According to the configuration of the first embodiment, the
また、対象ECU2での特別モードへの切り替えは、リプログラミングを行う場合の一時的なものであって、通常は、対象外ECU3と共通の規格で対象外ECU3と相互に通信を行うことができるので、対象外ECU3を上位規格に対応可能とすることが必須でなくなる。よって、車載ネットワークに接続される対象外ECU3の全てを上位規格に対応可能にする手間を抑えることが可能になる。
Further, the switching to the special mode in the
さらに、自装置以外のリプログラミングを指定する情報を受信した対象外ECU3は、エラーメッセージの返信を含む通信を停止するので、対象ECU2がTester5と特別モードで通信を行っている際にメッセージの衝突が生じないようにすることができる。よって、この点でも、リプログラミングに要する時間を短縮することが可能になる。
Further, the
(実施形態2)
実施形態1では、リプログラミングが可能なECUとして対象ECU2が1つ車載ネットワーク用信号線4に接続される構成を示したが、必ずしもこれに限らず、リプログラミングが可能なECUが2つ以上接続される構成(以下、実施形態2)であってもよい。
(Embodiment 2)
In the first embodiment, a configuration is shown in which one
実施形態2を採用する場合、図3のフローチャートに示す対象ECU2での自リプロ関連処理は、以下のように変更すればよい。詳しくは、S2で通信部21がTester5から自装置を指定するリプロ開始通知を受信していない場合において、リプロ開始通知自体を受信していない場合はS3に移り、他装置を指定するリプロ開始通知を受信した場合は通信を停止してS7に移る構成とすればよい。対象ECU2で通信を停止した後は、例えば対象ECU2の電源オフ後の再度の電源オン時に、通常モードでの通信を開始する構成とすればよい。
When the second embodiment is adopted, the self-repro related processing in the
(実施形態3)
特別モードでは、通常モードに比べて1つのデータフレームに載せられるデータ長が拡張されている構成を示したが、なお、特別モードでは通信速度の異なる通信コントローラを切り替える。
(Embodiment 3)
In the special mode, a configuration has been shown in which the data length carried in one data frame is extended compared to the normal mode. However, in the special mode, communication controllers having different communication speeds are switched.
(実施形態4)
なお、通常モードと特別モードとの切り替えは、Classic CANに従った通信を行う通信コントローラとCAN FDに従った通信を行う通信コントローラとを切り替えるといったハードウェアの切り替えによって行う構成としても構わない。
(Embodiment 4)
Note that the switching between the normal mode and the special mode may be performed by hardware switching such as switching between a communication controller that performs communication according to Classic CAN and a communication controller that performs communication according to CAN FD.
(実施形態5)
特別モードでは、通常モードに比べて1つのデータフレームに載せられるデータ長が拡張されている構成を示したが、必ずしもこれに限らない。特別モードが他の手段によって通常モードよりも通信速度を速くする構成としてもよい。
(Embodiment 5)
In the special mode, the configuration in which the data length carried in one data frame is extended as compared with the normal mode is shown, but the configuration is not necessarily limited thereto. The special mode may be configured to make the communication speed faster than the normal mode by other means.
(実施形態6)
実施形態1では、特別モードでの通信をCAN FDに従って行い、通常モードでの通信をClassic CANに従って行う構成を示したが、必ずしもこれに限らない。例えば、CANプロトコルに限らず、通信速度がより遅い規格に対して、通信速度がより速い上位規格が存在する通信プロトコルであれば、他の通信プロトコルを用いる構成としてもよい。
(Embodiment 6)
In the first embodiment, the configuration in which the communication in the special mode is performed according to CAN FD and the communication in the normal mode is performed according to Classic CAN is shown, but the configuration is not necessarily limited thereto. For example, the communication protocol is not limited to the CAN protocol, and other communication protocols may be used as long as the communication protocol includes a higher standard with a higher communication speed with respect to a standard with a lower communication speed.
(実施形態7)
実施形態1では、対象ECU2及び対象外ECU3の電源のオンオフは、自車のイグニッション電源のオンオフに応じて切り替わる構成を示したが、必ずしもこれに限らない。例えば、対象ECU2及び対象外ECU3に電力供給を行うバッテリのオンオフに応じて、対象ECU2及び対象外ECU3の電源のオンオフを切り替える構成としてもよい。
(Embodiment 7)
In the first embodiment, the power on / off of the
なお、本発明は、上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。 The present invention is not limited to the above-described embodiments, and various modifications can be made within the scope of the claims, and the technical means disclosed in different embodiments can be appropriately combined. Such embodiments are also included in the technical scope of the present invention.
1 プログラム書換システム、2 対象ECU(電子制御装置,対象電子制御装置)、3 対象外ECU(他の電子制御装置,対象外電子制御装置)、4 車載ネットワーク用信号線、5 Tester、21 通信部、22 不揮発性メモリ、23 揮発性メモリ、24 制御部(リプログラミング部)、31 通信部、32 不揮発性メモリ、33 揮発性メモリ、34 制御部 1 program rewriting system, 2 target ECU (electronic control device, target electronic control device), 3 non-target ECU (other electronic control device, non-target electronic control device), 4 signal line for in-vehicle network, 5 Tester, 21 communication unit , 22 Non-volatile memory, 23 Volatile memory, 24 Control unit (reprogramming unit), 31 Communication unit, 32 Non-volatile memory, 33 Volatile memory, 34 Control unit
Claims (6)
自装置に記憶しているコンピュータプログラムを、前記車載ネットワークを介して受信する書換対象のコンピュータプログラムに書き換えるリプログラミングを行うリプログラミング部(24)と、
前記車載ネットワークに接続される他の電子制御装置と共通の規格で通信を行う通常モードと、その規格での通信よりも通信速度の速い上位規格で通信を行う特別モードとを切り替えて通信可能な通信部(21)とを備え、
前記通信部は、前記車載ネットワークを介して自装置のリプログラミングを指定する情報を受信した場合には、前記通常モードから前記特別モードに切り替えて、前記書換対象のコンピュータプログラムを受信する電子制御装置。 An in-vehicle electronic control device connected to an in-vehicle network to which a plurality of electronic control devices are connected,
A reprogramming unit (24) for performing reprogramming to rewrite a computer program stored in the own device into a computer program to be rewritten received via the in-vehicle network;
Communication is possible by switching between a normal mode in which communication is performed with a common standard with other electronic control devices connected to the in-vehicle network, and a special mode in which communication is performed with a higher standard having a higher communication speed than communication with the standard. A communication unit (21),
When the communication unit receives information specifying reprogramming of its own device via the in-vehicle network, the communication unit switches from the normal mode to the special mode and receives the computer program to be rewritten .
前記通信部は、前記通常モードと前記特別モードとの切り替えを、ハードウェアの切り替えでなく、ソフトウェアの切り替えで行う電子制御装置。 In claim 1,
The electronic control device, wherein the communication unit performs switching between the normal mode and the special mode by switching software instead of switching hardware.
前記特別モードでは、前記通常モードに比べて1つのデータフレームに載せられるデータ長が拡張されている電子制御装置。 In claim 1 or 2,
In the special mode, an electronic control device in which a data length carried in one data frame is extended as compared with the normal mode.
その電子制御装置以外に車載ネットワークに接続される車載の電子制御装置である対象外電子制御装置(3)とを含むプログラム書換システム。 A target electronic control device (2) which is the electronic control device according to any one of claims 1 to 3,
A program rewriting system including a non-target electronic control device (3) which is an in-vehicle electronic control device connected to the in-vehicle network in addition to the electronic control device.
前記対象外電子制御装置は、前記車載ネットワークを介して自装置以外のリプログラミングを指定する情報を受信した場合には、通信を停止するプログラム書換システム。 In claim 4,
The non-target electronic control device is a program rewriting system that stops communication when receiving information specifying reprogramming other than its own device via the in-vehicle network.
前記対象外電子制御装置は、前記車載ネットワークを介して自装置以外のリプログラミングを指定する情報を受信し、通信を停止した場合であっても、前記対象外電子制御装置の電源オフ後の再度の電源オン時に、通信を再開するプログラム書換システム。 In claim 5,
Even if the non-target electronic control device receives information specifying reprogramming other than its own device via the in-vehicle network and stops communication, the non-target electronic control device again after powering off the non-target electronic control device. Program rewriting system that resumes communication when the power is turned on.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017011546A JP2018120438A (en) | 2017-01-25 | 2017-01-25 | Electronic control device and program rewriting system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2017011546A JP2018120438A (en) | 2017-01-25 | 2017-01-25 | Electronic control device and program rewriting system |
Publications (1)
Publication Number | Publication Date |
---|---|
JP2018120438A true JP2018120438A (en) | 2018-08-02 |
Family
ID=63043113
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2017011546A Pending JP2018120438A (en) | 2017-01-25 | 2017-01-25 | Electronic control device and program rewriting system |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2018120438A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020032123A1 (en) * | 2018-08-10 | 2020-02-13 | 株式会社デンソー | Vehicular master device, power supply management method for object for which rewriting is not to be carried out, and power supply management program for object for which rewriting is not to be carried out |
CN111556459A (en) * | 2019-02-08 | 2020-08-18 | 丰田自动车株式会社 | Vehicle-mounted communication system |
JP7382246B2 (en) | 2020-02-12 | 2023-11-16 | 日立Astemo株式会社 | How to rewrite the program of vehicle control device |
-
2017
- 2017-01-25 JP JP2017011546A patent/JP2018120438A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020032123A1 (en) * | 2018-08-10 | 2020-02-13 | 株式会社デンソー | Vehicular master device, power supply management method for object for which rewriting is not to be carried out, and power supply management program for object for which rewriting is not to be carried out |
CN111556459A (en) * | 2019-02-08 | 2020-08-18 | 丰田自动车株式会社 | Vehicle-mounted communication system |
JP7382246B2 (en) | 2020-02-12 | 2023-11-16 | 日立Astemo株式会社 | How to rewrite the program of vehicle control device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5741480B2 (en) | Communication system, relay device, and power supply control method | |
JP6390302B2 (en) | Program transmission system and program transmission apparatus | |
JP7192415B2 (en) | Program update system and update processing program | |
JP2017157007A (en) | System, method, and computer program for updating programs | |
US20200174783A1 (en) | Electronic control system | |
JP2018120438A (en) | Electronic control device and program rewriting system | |
JP7207301B2 (en) | Update controller, control method and computer program | |
JP2008242995A (en) | Electronic control device | |
KR20130043453A (en) | Lin network multi-channel bootloader apparatus and loading method thereof | |
JP2015179888A (en) | Communication system and repeating device | |
US11498497B2 (en) | Communication device and control method | |
KR101744998B1 (en) | Re-programming control module and re-programming system and method using the re-programming control module | |
JP6551244B2 (en) | In-vehicle control system | |
KR102109125B1 (en) | Method for managing state of ECU in vehicle based on automotive open system architecture | |
WO2019187535A1 (en) | Control device, control method, and computer program | |
JP4763580B2 (en) | In-vehicle communication system, in-vehicle device, and in-vehicle communication method | |
WO2021205825A1 (en) | Vehicle-mounted device, information processing method, and computer program | |
JP2004040649A (en) | On-vehicle communication equipment | |
US20180276169A1 (en) | Bus arrangement and method for operating a bus arrangement | |
WO2020195034A1 (en) | Vehicle-mounted update device, update processing system, update processing method, and processing program | |
WO2023112645A1 (en) | Communication system and communication equipment | |
KR101602225B1 (en) | System and method for reprogramming of vehicle | |
JP2015054582A (en) | On-vehicle device, and on-vehicle communication system | |
US11967188B2 (en) | Vehicle mounted update apparatus, update processing program, and program update method | |
US20220405226A1 (en) | Electronic control device and calculation method |