JP2018120438A - Electronic control device and program rewriting system - Google Patents

Electronic control device and program rewriting system Download PDF

Info

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
Application number
JP2017011546A
Other languages
Japanese (ja)
Inventor
正志 濱本
Masashi Hamamoto
正志 濱本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2017011546A priority Critical patent/JP2018120438A/en
Publication of JP2018120438A publication Critical patent/JP2018120438A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To make is possible to shorten the time required for reprogramming while reducing labor without limiting a reprogrammable range of an on-vehicle electronic control device.SOLUTION: A target ECU 2 connected to an on-vehicle network includes: a control unit 24 configured to perform reprogramming for rewriting a control program stored in a nonvolatile memory 22 to a rewriting target control program to be received from a Tester 5; and a communication unit 21 configured to perform communication by switching between a normal mode for communicating with a non-target ECU connected to the on-vehicle network in accordance with a common standard and a special mode for performing communication with an upper-grade standard having a communication speed higher than that in the common standard. The communication unit 21, when it receives information that designates reprogramming of the own device via the on-vehicle network, switches from the normal mode to the special mode and receives a computer program to be rewritten.SELECTED DRAWING: Figure 2

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.

特開2011−133974号公報JP 2011-133974 A

しかしながら、特許文献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.

プログラム書換システム1の概略的な構成の一例を示す図である。It is a figure which shows an example of a schematic structure of the program rewriting system. 対象ECU2の概略的な構成の一例を示す図である。It is a figure which shows an example of a schematic structure of object ECU2. 対象ECU2での自リプロ関連処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the self-repro related process in object ECU2. 対象外ECU3の概略的な構成の一例を示す図である。It is a figure which shows an example of a schematic structure of non-target ECU3. 対象外ECU3での他リプロ関連処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the other repro related process in non-target ECU3.

図面を参照しながら、開示のための複数の実施形態を説明する。なお、説明の便宜上、複数の実施形態の間において、それまでの説明に用いた図に示した部分と同一の機能を有する部分については、同一の符号を付し、その説明を省略する場合がある。同一の符号を付した部分については、他の実施形態における説明を参照することができる。   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 target ECU 2, a non-target ECU 3, an in-vehicle network signal line 4, and a Tester 5.

対象ECU2及び対象外ECU3は、車両に搭載されて、この車両に搭載された機器の制御を行う電子制御装置である。対象ECU2及び対象外ECU3を搭載する車両を以降では自車と呼ぶ。対象ECU2及び対象外ECU3では、後述の不揮発性メモリ22に記憶されている制御プログラムに基づいて後述の制御部24が、自車に搭載された機器の制御を行う。この制御プログラムが請求項のコンピュータプログラムに相当する。   The target ECU 2 and the non-target ECU 3 are electronic control devices that are mounted on a vehicle and that control devices mounted on the vehicle. A vehicle equipped with the target ECU 2 and the non-target ECU 3 is hereinafter referred to as a host vehicle. In the target ECU 2 and the non-target ECU 3, a control unit 24 described later controls devices mounted on the host vehicle based on a control program stored in a nonvolatile memory 22 described later. This control program corresponds to the computer program of the claims.

本実施形態において、対象ECU2は、リプログラミングの対象となるECUとし、対象外ECU3は、リプログラミングの対象とならないECUとする。この対象ECU2が請求項の対象電子制御装置に相当し、対象外ECU3が請求項の対象外電子制御装置に相当する。対象ECU2及び対象外ECU3は、それぞれ車載ネットワーク用信号線4に接続されている。また、対象ECU2及び対象外ECU3の電源のオンオフは、自車のイグニッション電源のオンオフに応じて切り替わるものとする。言い換えると、対象ECU2及び対象外ECU3の電源のオンオフは、自車のイグニッションスイッチのオンオフに応じて切り替わる。対象ECU2及び対象外ECU3のさらに詳細な構成については後述する。   In the present embodiment, the target ECU 2 is an ECU that is a target of reprogramming, and the non-target ECU 3 is an ECU that is not a target of reprogramming. The target ECU 2 corresponds to the target electronic control device in the claims, and the non-target ECU 3 corresponds to the non-target electronic control device in the claims. The target ECU 2 and the non-target ECU 3 are connected to the in-vehicle network signal line 4, respectively. The on / off of the power of the target ECU 2 and the non-target ECU 3 is switched according to the on / off of the ignition power of the own vehicle. In other words, the on / off of the power source of the target ECU 2 and the non-target ECU 3 is switched according to the on / off of the ignition switch of the own vehicle. More detailed configurations of the target ECU 2 and the non-target ECU 3 will be described later.

車載ネットワーク用信号線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 network signal line 4 is a signal line used for the in-vehicle network. In the in-vehicle network, communication is performed according to the CAN (registered trademark) protocol. In the present embodiment, it is assumed that the target ECU 2 is compatible with both the Classic CAN and CAN FD (CAN with Flexible Data Rate) standards. Classic CAN is a conventional standard, and the data length carried in one data frame is 8 bytes. On the other hand, CAN FD is a higher standard with a higher communication speed than Classic CAN, and the data length carried in one data frame is 64 bytes. The non-target ECU 3 is assumed to be compatible only with Classic CAN out of Classic CAN and CAN FD. The target ECU 2 and the non-target ECU 3 perform communication in accordance with a common standard, Classic CAN, when controlling devices mounted on the vehicle.

Tester5は、対象ECU2でリプログラミングを行わせるための装置である。Tester5は、リプログラミングを行わせる対象(つまり、対象ECU2)を指定したリプロ開始通知を送信する。一例としては、書換対象のIDといった識別情報をリプロ開始通知に含ませることで、リプログラミングを行わせる対象を指定する構成とする。リプロ開始通知のコマンドの送信は、Classic CANに従った通信によって行うものとする。そして、リプロ開始通知に対して対象ECU2から応答があった場合には、CAN FDに従った通信によって、書換対象の制御プログラムを対象ECU2に送信する。Tester5は、通常時は車載ネットワーク用信号線4に接続されておらず、対象ECU2の制御プログラムの書き換え(つまり、リプログラミング)を行う場合に、一時的に車載ネットワーク用信号線4に接続される。   The Tester 5 is a device for causing the target ECU 2 to perform reprogramming. The Tester 5 transmits a repro start notification specifying a target (that is, the target ECU 2) to be reprogrammed. As an example, a configuration in which identification information such as an ID to be rewritten is included in a repro start notification to designate a target for reprogramming. The repro start notification command is transmitted by communication according to Classic CAN. When there is a response from the target ECU 2 to the repro start notification, the control program to be rewritten is transmitted to the target ECU 2 by communication according to CAN FD. The Tester 5 is not normally connected to the in-vehicle network signal line 4 and is temporarily connected to the in-vehicle network signal line 4 when rewriting (that is, reprogramming) the control program of the target ECU 2. .

なお、図1では、車載ネットワーク用信号線4に対象外ECU3が2つ接続される構成を示したが、必ずしもこれに限らず、2つ以外の数の対象外ECU3が接続される構成であってもよい。   Although FIG. 1 shows a configuration in which the two target ECUs 3 are connected to the in-vehicle network signal line 4, the configuration is not limited to this, and a configuration in which a number other than the two target ECUs 3 is connected. May be.

<対象ECU2の概略構成>
続いて、図2を用いて、対象ECU2の概略構成についての説明を行う。対象ECU2は、図2に示すように、通信部21、不揮発性メモリ22、揮発性メモリ23、及び制御部24を備える。
<Schematic configuration of target ECU 2>
Next, a schematic configuration of the target ECU 2 will be described with reference to FIG. As illustrated in FIG. 2, the target ECU 2 includes a communication unit 21, a nonvolatile memory 22, a volatile memory 23, and a control unit 24.

通信部21は、CANプロトコルに従って通信を行う通信コントローラ211を備えている。通信コントローラ211は、データフレームを作成し、作成したデータフレームを、トランシーバを介して車載ネットワーク用信号線4に送信する送信制御を行う。通信コントローラ211は、トランシーバによって受信したデータフレームからデータやメッセージの抽出等を行う受信制御も行う。他にも、通信コントローラ211は、車載ネットワーク用信号線4上においてデータフレームが衝突した際の送信権の調停制御,データフレームの送受信に関連して生じるエラーの検出,通知等といった、CANプロトコルに従った通信制御を実行する。   The communication unit 21 includes a communication controller 211 that performs communication according to the CAN protocol. The communication controller 211 creates a data frame and performs transmission control to send the created data frame to the in-vehicle network signal line 4 via the transceiver. The communication controller 211 also performs reception control for extracting data and messages from the data frame received by the transceiver. In addition, the communication controller 211 conforms to the CAN protocol, such as arbitration control of transmission right when a data frame collides on the in-vehicle network signal line 4, and detection and notification of an error associated with transmission / reception of the data frame. The communication control is executed accordingly.

さらに、通信コントローラ211は、Classic CANに従った通信を行う通常モードと、CAN FDに従った通信を行う特別モードとを切り替えて通信を行う。この切り替えは、Classic CANに従った通信を行う通信コントローラとCAN FDに従った通信を行う通信コントローラとを切り替えるといったハードウェアの切り替えでなく、ソフトウェアの切り替えで行う構成とすることが好ましい。これは、通信コントローラを複数備えるコストを低減できるためである。   Furthermore, the communication controller 211 performs communication by switching between a normal mode in which communication is performed in accordance with Classic CAN and a special mode in which communication is performed in accordance with CAN FD. This switching is preferably performed by software switching instead of 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. This is because the cost of providing a plurality of communication controllers can be reduced.

通信コントローラ211は、Tester5から自装置を指定するリプロ開始通知をトランシーバで受信するまでは、通常モードで通信を行う。一方、Tester5から自装置を指定するリプロ開始通知をトランシーバで受信した場合には、通常モードから特別モードに切り替えて通信を行う。   The communication controller 211 performs communication in the normal mode until the transceiver 5 receives a repro start notification designating its own device from the Tester 5. On the other hand, when the repro start notification specifying the own device is received from the Tester 5 by the transceiver, the communication is performed by switching from the normal mode to the special mode.

不揮発性メモリ22は、電気的に書き換え可能なフラッシュメモリ等の不揮発性メモリであって、自車に搭載された機器の制御を行うための制御プログラムを記憶している。揮発性メモリ23は、RAM等の揮発性メモリであって、制御部24の動作により発生した情報、不揮発性メモリ22から読み出された各種情報、制御プログラム等が一時的に記憶される。   The non-volatile memory 22 is a non-volatile memory such as an electrically rewritable flash memory, and stores a control program for controlling a device mounted on the own vehicle. The volatile memory 23 is a volatile memory such as a RAM, and temporarily stores information generated by the operation of the control unit 24, various information read from the nonvolatile memory 22, a control program, and the like.

制御部24は、例えばプロセッサであって、通信部21を介して車載ネットワーク用信号線4に接続された対象外ECU3等との間で情報の送受信を行う。制御部24は、不揮発性メモリ22に記憶されている制御プログラムを読み出して、車載ネットワーク用信号線4に接続された対象外ECU3等から受信した情報に基づいて、この制御プログラムを実行することで、自車に搭載された機器の制御を行う。制御部24は、Tester5から送信される書換対象のプログラムを、通信部21を介して取得した場合に、不揮発性メモリ22に記憶済みの制御プログラムを、取得した書換対象のプログラムに書き換えるリプログラミングを行う。よって、この制御部24が請求項のリプログラミング部に相当する。   The control unit 24 is, for example, a processor, and transmits / receives information to / from the non-target ECU 3 connected to the in-vehicle network signal line 4 via the communication unit 21. The control unit 24 reads the control program stored in the nonvolatile memory 22 and executes the control program based on information received from the non-target ECU 3 or the like connected to the in-vehicle network signal line 4. Control the equipment installed in the vehicle. When the control unit 24 acquires the rewrite target program transmitted from the Tester 5 via the communication unit 21, the control unit 24 performs reprogramming to rewrite the control program stored in the nonvolatile memory 22 to the acquired rewrite target program. Do. Therefore, the control unit 24 corresponds to a reprogramming unit in claims.

なお、通信部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 control unit 24 instructing based on the fact that the repro start notification designating the own device is received from the Tester 5 by the transceiver. .

<対象ECU2での自リプロ関連処理>
ここで、図3のフローチャートを用いて、対象ECU2でのリプログラミングに関連する処理(以下、自リプロ関連処理)の流れの一例について説明を行う。図3のフローチャートは、例えば自車のイグニッション電源がオンになって、対象ECU2の電源がオンになった場合に開始される構成とすればよい。
<Self repro-related processing in the target ECU 2>
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 target ECU 2 is turned on.

ステップ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 target ECU 2 is turned off.

通信部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 Tester 5 through communication according to CAN FD, and outputs the control program to the control unit 24. In step S6, the control unit 24 performs reprogramming to rewrite the control program stored in the non-volatile memory 22 with the control program to be rewritten acquired in S5.

ステップ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 target ECU 2 may be configured to return to the normal mode when the reprogramming is completed after switching from the normal mode to the special mode, or to return to the normal mode when the power of the target ECU 2 is turned on again. It is good also as a structure.

<対象外ECU3の概略構成>
続いて、図4を用いて、対象外ECU3の概略構成についての説明を行う。対象外ECU3は、図4に示すように、通信部31、不揮発性メモリ32、揮発性メモリ33、及び制御部34を備える。
<Schematic configuration of non-target ECU 3>
Subsequently, a schematic configuration of the non-target ECU 3 will be described with reference to FIG. As shown in FIG. 4, the non-target ECU 3 includes a communication unit 31, a nonvolatile memory 32, a volatile memory 33, and a control unit 34.

通信部31は、CANプロトコルに従って通信を行う通信コントローラ311を備えている。通信コントローラ311は、Classic CANに従った通信を行う通常モードと、CAN FDに従った通信を行う特別モードとのうちの通常モードのみで通信を行う点を除けば、対象ECU2の通信コントローラ211と同様である。   The communication unit 31 includes a communication controller 311 that performs communication according to the CAN protocol. The communication controller 311 communicates with the communication controller 211 of the target ECU 2 except that communication is performed only in the normal mode of the normal mode in which communication is performed in accordance with Classic CAN and the special mode in which communication is performed in accordance with CAN FD. It is the same.

通信コントローラ311は、Tester5から他装置を指定するリプロ開始通知をトランシーバで受信するまでは、通常モードで通信を行う。一方、Tester5から他装置を指定するリプロ開始通知をトランシーバで受信した場合には、通信を停止する。つまり、対象外ECU3は、車載ネットワークを介して自装置以外のリプログラミングを指定する情報を受信した場合には、車載ネットワークを介した通信を停止する。   The communication controller 311 performs communication in the normal mode until the transceiver receives a repro start notification specifying another device from the Tester 5. On the other hand, when the transceiver 5 receives a repro start notification designating another device from the Tester 5, the communication is stopped. That is, the non-target ECU 3 stops communication via the in-vehicle network when receiving information designating reprogramming other than its own device through the in-vehicle network.

対象外ECU3は、通信を停止した場合であっても、対象外ECU3の電源オフ後の再度の電源オン時に、通常モードでの通信を再開する。これにより、停止した対象外ECU3の通信を容易に復帰させることが可能になる。詳しくは、以下の通りである。対象ECU2でのリプログラミングのために車載ネットワークを介した通信が特別モードでの通信に切り替わった場合、特別モードでの通信による指示では対象外ECU3の通信を再開させることができなくなる。これに対して、本実施形態によれば、対象外ECU3の電源オフ後に再度の電源オンを行うだけで、通常モードでの通信を再開することが可能になるので、停止した対象外ECU3の通信を容易に復帰させることが可能になる。   Even when communication is stopped, the non-target ECU 3 resumes communication in the normal mode when the non-target ECU 3 is turned on again after the power is turned off. Thereby, it is possible to easily return the communication of the stopped non-target ECU 3. Details are as follows. When the communication via the in-vehicle network is switched to the communication in the special mode for reprogramming in the target ECU 2, it is impossible to resume the communication of the non-target ECU 3 by the instruction by the communication in the special mode. On the other hand, according to the present embodiment, it is possible to resume communication in the normal mode only by turning on the power again after the non-target ECU 3 is turned off. Can be easily restored.

制御部34は、特別モードで送信されてくる書換対象の制御プログラムによるリプログラミングを行わない点を除けば、対象ECU2の制御部24と同様である。制御部34は、リプログラミング自体を行わない構成としてもよいし、通常モードで送信されてくる書換対象の制御プログラムによるリプログラミングを行う構成としてもよい。   The control unit 34 is the same as the control unit 24 of the target ECU 2 except that reprogramming is not performed by the rewrite target control program transmitted in the special mode. The control unit 34 may be configured not to perform reprogramming itself, or may be configured to perform reprogramming using a control program to be rewritten that is transmitted in the normal mode.

不揮発性メモリ32及び揮発性メモリ33は、対象ECU2の不揮発性メモリ22及び揮発性メモリ23と同様とすればよい。なお、制御部34がリプログラミング自体を行わない構成とした場合には、不揮発性メモリ32として、ROMといった電気的に書き換え可能でない不揮発性メモリを用いる構成としてもよい。   The non-volatile memory 32 and the volatile memory 33 may be the same as the non-volatile memory 22 and the volatile memory 23 of the target ECU 2. When the control unit 34 is configured not to perform reprogramming itself, the nonvolatile memory 32 may be configured to use a non-electrically rewritable nonvolatile memory such as a ROM.

<対象外ECU3でのリプロ関連処理>
ここで、図5のフローチャートを用いて、対象ECU2でリプログラミングが行われる場合の対象外ECU3での処理に関連する処理(以下、他リプロ関連処理)の流れの一例について説明を行う。図5のフローチャートは、例えば自車のイグニッション電源がオンになって、対象外ECU3の電源がオンになった場合に開始される構成とすればよい。
<Repro-related processing in the excluded ECU 3>
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 target ECU 2 will be described using the flowchart of FIG. The flowchart in FIG. 5 may be configured to be started when, for example, the ignition power source of the host vehicle is turned on and the power source of the non-target ECU 3 is turned on.

ステップS21では、通信部31が、Classic CANに従った通信を行う通常モードで通信を行う。ここで言うところの通信を行うとは、必要に応じたタイミングで情報の送受信を行うことを示している。ステップS22では、通信部21がTester5から他装置を指定するリプロ開始通知を受信した場合(S22でYES)には、ステップS24に移る。一方、通信部31がTester5から他装置を指定するリプロ開始通知を受信していない場合(S22でNO)には、ステップS23に移る。   In step S <b> 21, the communication unit 31 performs communication in a normal mode in which communication is performed according to Classic CAN. The term “communication” here means that information is transmitted and received at a timing as necessary. In step S22, when the communication unit 21 receives a repro start notification designating another device from Tester 5 (YES in S22), the process proceeds to step S24. On the other hand, if the communication unit 31 has not received a repro start notification designating another device from the Tester 5 (NO in S22), the process proceeds to step S23.

ステップ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 non-target ECU 3 is turned off.

通信部31が他装置を指定するリプロ開始通知を受信した場合に行われる処理であるステップS24では、通信部31が通信を停止する。通信を停止する場合には、エラーメッセージも返信しないものとする。ステップS25では、他リプロ関連処理の終了タイミングであった場合(S25でYES)には、他リプロ関連処理を終了する。一方、他リプロ関連処理の終了タイミングでなかった場合(S25でNO)には、S25の処理を繰り返す。   In step S24, which is a process performed when the communication unit 31 receives a repro start notification specifying another device, the communication unit 31 stops communication. When communication is stopped, no error message is returned. In step S25, if it is the end timing of the other repro related processing (YES in S25), the other repro related processing is ended. On the other hand, if it is not the end timing of the other repro-related process (NO in S25), the process of S25 is repeated.

<実施形態1のまとめ>
実施形態1の構成によれば、対象ECU2が、通常モードでは対象外ECU3と共通の規格で通信を行うので、対象ECU2と対象外ECU3とが相互に通信を行って連携し、自車の機器を制御することができる。一方、対象ECU2は、リプログラミングを行う場合に、特別モードに切り替えて、対象外ECU3と共通の規格よりも通信速度の速い上位規格で通信を行って、Tester5から書換対象の制御プログラムを受信する。よって、対象ECU2のリプログラミング可能な範囲を制限することなく、対象外ECU3と共通の規格での通信によってリプログラミングを行う場合に比べて、リプログラミングに要する時間を短縮することが可能になる。
<Summary of Embodiment 1>
According to the configuration of the first embodiment, the target ECU 2 communicates with the non-target ECU 3 in the normal mode according to a common standard. Therefore, the target ECU 2 and the non-target ECU 3 communicate with each other to cooperate with each other, and the vehicle device Can be controlled. On the other hand, when performing reprogramming, the target ECU 2 switches to the special mode, communicates with a higher standard having a higher communication speed than the standard common to the non-target ECU 3, and receives a rewrite target control program from the Tester 5. . Therefore, it is possible to reduce the time required for reprogramming as compared with the case where reprogramming is performed by communication with a non-target ECU3 in accordance with a standard, without limiting the reprogrammable range of the target ECU2.

また、対象ECU2での特別モードへの切り替えは、リプログラミングを行う場合の一時的なものであって、通常は、対象外ECU3と共通の規格で対象外ECU3と相互に通信を行うことができるので、対象外ECU3を上位規格に対応可能とすることが必須でなくなる。よって、車載ネットワークに接続される対象外ECU3の全てを上位規格に対応可能にする手間を抑えることが可能になる。   Further, the switching to the special mode in the target ECU 2 is temporary when reprogramming is performed, and normally, the target ECU 2 can communicate with the non-target ECU 3 in accordance with the same standard. Therefore, it is not essential to make the non-target ECU 3 compatible with a higher standard. Therefore, it is possible to reduce the trouble of making all the non-target ECUs 3 connected to the in-vehicle network compatible with the higher standard.

さらに、自装置以外のリプログラミングを指定する情報を受信した対象外ECU3は、エラーメッセージの返信を含む通信を停止するので、対象ECU2がTester5と特別モードで通信を行っている際にメッセージの衝突が生じないようにすることができる。よって、この点でも、リプログラミングに要する時間を短縮することが可能になる。   Further, the non-target ECU 3 that has received information specifying reprogramming other than its own device stops communication including the return of the error message, so that when the target ECU 2 is communicating with the Tester 5 in the special mode, a message collision occurs. Can be prevented from occurring. Therefore, also in this respect, the time required for reprogramming can be shortened.

(実施形態2)
実施形態1では、リプログラミングが可能なECUとして対象ECU2が1つ車載ネットワーク用信号線4に接続される構成を示したが、必ずしもこれに限らず、リプログラミングが可能なECUが2つ以上接続される構成(以下、実施形態2)であってもよい。
(Embodiment 2)
In the first embodiment, a configuration is shown in which one target ECU 2 is connected to the in-vehicle network signal line 4 as an ECU capable of reprogramming. However, the present invention is not limited to this, and two or more ECUs that can be reprogrammed are connected. The configuration (hereinafter, Embodiment 2) may be used.

実施形態2を採用する場合、図3のフローチャートに示す対象ECU2での自リプロ関連処理は、以下のように変更すればよい。詳しくは、S2で通信部21がTester5から自装置を指定するリプロ開始通知を受信していない場合において、リプロ開始通知自体を受信していない場合はS3に移り、他装置を指定するリプロ開始通知を受信した場合は通信を停止してS7に移る構成とすればよい。対象ECU2で通信を停止した後は、例えば対象ECU2の電源オフ後の再度の電源オン時に、通常モードでの通信を開始する構成とすればよい。   When the second embodiment is adopted, the self-repro related processing in the target ECU 2 shown in the flowchart of FIG. 3 may be changed as follows. Specifically, if the communication unit 21 has not received the repro start notification specifying the own device from the Tester 5 in S2, the process proceeds to S3 if the repro start notification itself has not been received, and the repro start notification specifying the other device is received. Is received, communication may be stopped and the process may proceed to S7. After the communication is stopped in the target ECU 2, for example, the communication in the normal mode may be started when the power of the target ECU 2 is turned on again after the power is turned off.

(実施形態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 target ECU 2 and the non-target ECU 3 is switched according to the on / off of the ignition power of the host vehicle. However, the present invention is not necessarily limited thereto. For example, the power supply of the target ECU 2 and the non-target ECU 3 may be switched on and off according to the on / off of a battery that supplies power to the target ECU 2 and the non-target ECU 3.

なお、本発明は、上述した各実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能であり、異なる実施形態にそれぞれ開示された技術的手段を適宜組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。   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 .
請求項1において、
前記通信部は、前記通常モードと前記特別モードとの切り替えを、ハードウェアの切り替えでなく、ソフトウェアの切り替えで行う電子制御装置。
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又は2において、
前記特別モードでは、前記通常モードに比べて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.
請求項1〜3のいずれか1項の電子制御装置である対象電子制御装置(2)と、
その電子制御装置以外に車載ネットワークに接続される車載の電子制御装置である対象外電子制御装置(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.
請求項4において、
前記対象外電子制御装置は、前記車載ネットワークを介して自装置以外のリプログラミングを指定する情報を受信した場合には、通信を停止するプログラム書換システム。
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.
請求項5において、
前記対象外電子制御装置は、前記車載ネットワークを介して自装置以外のリプログラミングを指定する情報を受信し、通信を停止した場合であっても、前記対象外電子制御装置の電源オフ後の再度の電源オン時に、通信を再開するプログラム書換システム。
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.
JP2017011546A 2017-01-25 2017-01-25 Electronic control device and program rewriting system Pending JP2018120438A (en)

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)

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

Cited By (3)

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