JP2016162325A - Electronic control device - Google Patents

Electronic control device Download PDF

Info

Publication number
JP2016162325A
JP2016162325A JP2015041929A JP2015041929A JP2016162325A JP 2016162325 A JP2016162325 A JP 2016162325A JP 2015041929 A JP2015041929 A JP 2015041929A JP 2015041929 A JP2015041929 A JP 2015041929A JP 2016162325 A JP2016162325 A JP 2016162325A
Authority
JP
Japan
Prior art keywords
microcomputer
rewriting
current program
mode
program
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
JP2015041929A
Other languages
Japanese (ja)
Other versions
JP6330699B2 (en
Inventor
和也 山脇
Kazuya Yamawaki
和也 山脇
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 JP2015041929A priority Critical patent/JP6330699B2/en
Publication of JP2016162325A publication Critical patent/JP2016162325A/en
Application granted granted Critical
Publication of JP6330699B2 publication Critical patent/JP6330699B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an electronic control device that comprises a plurality of microcomputers, performs CAN communication, and is able to quickly finish rewriting programs in the microcomputers.SOLUTION: A microcomputer A communicates with a rewriting tool using a first CAN channel in a rewriting mode to rewrite a current program; a microcomputer B communicates with the rewriting tool using a second CAN channel in the rewriting mode to rewrite the current program while the microcomputer A is rewriting the current program; and a microcomputer C waits in the rewriting mode while the microcomputer A and the microcomputer B are rewriting the current program.SELECTED DRAWING: Figure 4

Description

本発明は、複数のマイクロコンピュータを備え、CAN通信を行う電子制御装置に関する。   The present invention relates to an electronic control device that includes a plurality of microcomputers and performs CAN communication.

例えば下記特許文献1に記載されているように、電子制御装置において、マイクロコンピュータのメモリに記憶されたプログラムを書き換え可能としたものが知られている。このプログラムの書き換えは、マイクロコンピュータが、スキャンツール等と称される外部の書換ツールとCAN(Controller Area Network)によって通信を行い、当該書換ツールから新規プログラムを受信することで行うことが一般的となっている。これにより、電子制御装置が市場に供給された後に、メモリに記憶されているプログラムに不具合が発見された場合でも、マイクロコンピュータそのものを交換することなく、プログラムを改良したものに書き換えて対応することが可能となる。   For example, as described in Patent Document 1 below, an electronic control device in which a program stored in a memory of a microcomputer is rewritable is known. This rewriting of the program is generally performed by a microcomputer communicating with an external rewriting tool called a scan tool or the like by a CAN (Controller Area Network) and receiving a new program from the rewriting tool. It has become. As a result, even if a problem is discovered in the program stored in the memory after the electronic control unit is supplied to the market, it can be rewritten and dealt with by improving the program without replacing the microcomputer itself. Is possible.

特開2008−242995号公報JP 2008-242995 A

自動車等に用いられる電子制御装置では、複数のマイクロコンピュータが備えられることが一般的となっている。また、近年の自動車の多機能化に伴い、電子制御装置に備えられるマイクロコンピュータの数は増加傾向にある。このため、電子制御装置の各マイクロコンピュータのメモリに記憶されたプログラムの書き換えが終了するまでに、多くの時間を要していた。   In an electronic control device used for an automobile or the like, a plurality of microcomputers are generally provided. In addition, with the increasing number of functions of automobiles in recent years, the number of microcomputers provided in electronic control devices has been increasing. For this reason, much time is required until the rewriting of the program stored in the memory of each microcomputer of the electronic control device is completed.

当該書き換えに要する時間を短縮するための方法として、予めプログラムを圧縮してデータ量を小さくし、書換ツールからマイクロコンピュータへのプログラムの送信に要する時間を短縮するものが知られている。しかしながら、送信するプログラムの種類によっては圧縮率が小さくなり、十分な効果を得られない場合も少なくなかった。このような背景から、複数のマイクロコンピュータを備えながらも、プログラムの書き換えを迅速に終了させることができる電子制御装置が待望されていた。   As a method for shortening the time required for the rewriting, a method is known in which the program is compressed in advance to reduce the amount of data, and the time required for transmitting the program from the rewriting tool to the microcomputer is shortened. However, depending on the type of program to be transmitted, the compression rate is small, and there are many cases where sufficient effects cannot be obtained. Under such circumstances, there has been a demand for an electronic control device that can quickly rewrite a program while including a plurality of microcomputers.

本発明はこのような課題に鑑みてなされたものであり、その目的は、複数のマイクロコンピュータを備え、CAN通信を行う電子制御装置であって、マイクロコンピュータのプログラムの書き換えを迅速に終了させることが可能な電子制御装置を提供することにある。   The present invention has been made in view of such problems, and an object thereof is an electronic control device that includes a plurality of microcomputers and performs CAN communication, and quickly finishes rewriting of a program of the microcomputer. It is an object of the present invention to provide an electronic control device capable of performing the above.

上記課題を解決するために、本発明に係る電子制御装置は、複数のマイクロコンピュータを備え、CAN通信を行う電子制御装置(1)であって、前記複数のマイクロコンピュータは、少なくとも第1マイクロコンピュータ(20)、第2マイクロコンピュータ(30)及び第3マイクロコンピュータ(40)からなり、現行プログラムを記憶するとともに該現行プログラムを新規プログラムと書き換え可能なメモリ(22,32,42)をそれぞれ有し、前記メモリに記憶されている前記現行プログラムに従って制御を行う通常制御モードと、書換ツール(7)から前記新規プログラムを受信して前記メモリに記憶された前記現行プログラムの書き換えを可能とする書換モードと、で動作可能であり、前記第1マイクロコンピュータは、前記書換モードで第1CANチャネルを用いて前記書換ツールと通信して前記現行プログラムの書き換えを実行し、前記第2マイクロコンピュータは、前記第1マイクロコンピュータが前記現行プログラムの書き換え実行中に、前記書換モードで第2CANチャネルを用いて前記書換ツールと通信して前記現行プログラムの書き換えを実行し、前記第3マイクロコンピュータは、前記第1マイクロコンピュータ及び前記第2マイクロコンピュータが前記現行プログラムの書き換え実行中に、前記書換モードで待機する。   In order to solve the above-described problem, an electronic control device according to the present invention is an electronic control device (1) that includes a plurality of microcomputers and performs CAN communication, and the plurality of microcomputers includes at least a first microcomputer. (20), comprising a second microcomputer (30) and a third microcomputer (40), each having a memory (22, 32, 42) for storing the current program and rewriting the current program with a new program A normal control mode in which control is performed according to the current program stored in the memory, and a rewrite mode in which the new program is received from the rewriting tool (7) and the current program stored in the memory can be rewritten. And the first microcomputer is connected to the previous microcomputer. Communicating with the rewriting tool using the first CAN channel in rewrite mode to rewrite the current program, and the second microcomputer rewrites the rewrite mode while the first microcomputer is rewriting the current program. The third microcomputer performs rewriting of the current program by communicating with the rewriting tool using the second CAN channel, and the third microcomputer performs the rewriting of the current program while the first microcomputer and the second microcomputer are executing rewriting of the current program. And wait in the rewrite mode.

本発明によれば、第1マイクロコンピュータは、第1CANチャネルを用いて書換ツールと通信して現行プログラムの書き換えを実行する。一方、第2マイクロコンピュータは、第1マイクロコンピュータが現行プログラムの書き換え実行中に、第2CANチャネルを用いて書換ツールと通信して現行プログラムの書き換えを実行する。これにより、第1マイクロコンピュータ及び第2マイクロコンピュータは同時にそれぞれの現行プログラムの書き換えを行うことが可能となるため、その書き換えを迅速に終了させることができる。   According to the present invention, the first microcomputer performs rewriting of the current program by communicating with the rewriting tool using the first CAN channel. On the other hand, the second microcomputer performs rewriting of the current program by communicating with the rewriting tool using the second CAN channel while the first microcomputer is performing rewriting of the current program. Thus, the first microcomputer and the second microcomputer can rewrite their current programs at the same time, so that the rewriting can be completed quickly.

ここで、第1マイクロコンピュータ及び第2マイクロコンピュータが書換モードで動作しているときに、第3マイクロコンピュータが通常制御モードで動作していると、各マイクロコンピュータは、相互に異常が生じていると誤って判定してしまうおそれがある。   Here, when the first microcomputer and the second microcomputer are operating in the rewrite mode, if each of the third microcomputers is operating in the normal control mode, each microcomputer has an abnormality. May be erroneously determined.

そこで、本発明によれば、第3マイクロコンピュータは、第1マイクロコンピュータ及び第2マイクロコンピュータが書換モードで現行プログラムの書き換え実行中に、書換モードで待機する。これにより、各マイクロコンピュータが誤った異常判定を行うことなく、現行プログラムの書き換えを迅速に終了させることができる。   Therefore, according to the present invention, the third microcomputer stands by in the rewriting mode while the first microcomputer and the second microcomputer are executing rewriting of the current program in the rewriting mode. As a result, the rewriting of the current program can be quickly terminated without each microcomputer making an erroneous abnormality determination.

本発明によれば、複数のマイクロコンピュータを備え、CAN通信を行う電子制御装置であって、マイクロコンピュータのプログラムの書き換えを迅速に終了させることが可能な電子制御装置を提供することができる。   According to the present invention, it is possible to provide an electronic control device that includes a plurality of microcomputers and performs CAN communication, and can quickly terminate rewriting of a program of the microcomputer.

本発明の実施形態に係る電子制御装置の構成を示すブロック図である。It is a block diagram which shows the structure of the electronic control apparatus which concerns on embodiment of this invention. マイクロコンピュータA及びマイクロコンピュータBが実行する処理を示すフローチャートである。It is a flowchart which shows the process which the microcomputer A and the microcomputer B perform. マイクロコンピュータCが実行する処理を示すフローチャートである。It is a flowchart which shows the process which the microcomputer C performs. 書き換えツール、マイクロコンピュータA、マイクロコンピュータB及びマイクロコンピュータCが実行する処理の流れを示す説明図である。It is explanatory drawing which shows the flow of the process which the rewriting tool, the microcomputer A, the microcomputer B, and the microcomputer C perform.

以下、添付図面を参照しながら本発明の実施形態について説明する。説明の理解を容易にするため、各図面において同一の構成要素については可能な限り同一の符号を付して、重複する説明は省略する。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In order to facilitate the understanding of the description, the same constituent elements in the drawings will be given the same reference numerals as much as possible, and redundant descriptions will be omitted.

まず、図1を参照しながら、本発明の実施形態に係る電子制御装置1の構成について説明する。電子制御装置1は、車両(不図示)に搭載され、当該車両のエンジン(不図示)等を制御する電子機器である。電子制御装置1は、マイクロコンピュータA20、マイクロコンピュータB30及びマイクロコンピュータC40を有している(以下、それぞれ「マイコンA20」、「マイコンB30」、「マイコンC40」とも称する)。   First, the configuration of an electronic control device 1 according to an embodiment of the present invention will be described with reference to FIG. The electronic control device 1 is an electronic device that is mounted on a vehicle (not shown) and controls an engine (not shown) of the vehicle. The electronic control unit 1 includes a microcomputer A20, a microcomputer B30, and a microcomputer C40 (hereinafter also referred to as “microcomputer A20”, “microcomputer B30”, and “microcomputer C40”, respectively).

マイコンAは、例えばエンジンの制御を行い、車両のイグニションスイッチ(不図示)がオン状態である間に供給される電力によって動作する。また、マイコンBは、例えば車両に搭載された他の機器の制御を行う。さらに、マイコンCは、例えば他の電子制御装置に対する電力供給の制御を行う。   The microcomputer A controls the engine, for example, and operates with electric power supplied while an ignition switch (not shown) of the vehicle is on. Further, the microcomputer B controls other devices mounted on the vehicle, for example. Furthermore, the microcomputer C controls power supply to other electronic control devices, for example.

マイコンA20、マイコンB30及びマイコンC40は、その基本的なハードウェア構成が同一である。したがって、以下では、マイコンA20のハードウェア構成について主に説明し、マイコンB30及びマイコンC40のハードウェア構成については説明を適宜省略する。図1では、マイコンA20の要素については、例えば「CPU21」のように20番台の符号を付しているのに対し、マイコンB30及びマイコンC40の要素については、「CPU31」や「CPU41」のように、それぞれ30番台と40番台の符号を付している。また、マイコンA20、マイコンB30及びマイコンC40で互いに対応する要素の符号については、一の位を共通させている。   The microcomputer A20, the microcomputer B30, and the microcomputer C40 have the same basic hardware configuration. Therefore, the hardware configuration of the microcomputer A20 will be mainly described below, and the description of the hardware configurations of the microcomputer B30 and the microcomputer C40 will be omitted as appropriate. In FIG. 1, the elements of the microcomputer A20 are numbered in the 20s, for example, “CPU21”, while the elements of the microcomputer B30 and the microcomputer C40 are “CPU31” and “CPU41”. The numbers of the 30th and 40th are respectively attached. Further, the signs of the elements corresponding to each other in the microcomputer A20, the microcomputer B30, and the microcomputer C40 are common.

マイコンA20は、CPU21と、ROM22と、RAM23と、を有している。   The microcomputer A20 includes a CPU 21, a ROM 22, and a RAM 23.

CPU21は、所定のプログラムに従って演算を行う演算装置である。CPU21は、エンジンを制御するための演算を行うほか、後述するようにROM22に記憶されているプログラムを書き換える際の演算も行う。   The CPU 21 is an arithmetic device that performs an operation according to a predetermined program. The CPU 21 performs calculations for controlling the engine, and also performs calculations for rewriting a program stored in the ROM 22 as will be described later.

ROM22は、マイコンA20内に設けられた記憶素子である。具体的には、ROM22は、エンジンを制御するための制御プログラムと、この制御プログラムを書き換えるための書換処理プログラムと、を少なくとも記憶している。CPU21は、このROM22に記憶されているプログラムに従って各種演算を行う。   The ROM 22 is a storage element provided in the microcomputer A20. Specifically, the ROM 22 stores at least a control program for controlling the engine and a rewrite processing program for rewriting the control program. The CPU 21 performs various calculations according to programs stored in the ROM 22.

ROM22は、記憶している各種データの書き換えを電気的に行うことができるROM(Electrical Erasable Programmable ROM)である。ROM22は、記憶している制御プログラム(以下、これを「現行プログラム」とも称する)を、書換ツール7から受信する新たな制御プログラム(以下、これを「新規プログラム」とも称する)によって書き換えることが可能に構成されている。書換ツール7はスキャンツール等と称され、自動車修理工場等で作業者によってCANバスC0に接続されることで、電子制御装置1との通信が可能となる外部機器である。書き換えによってROM22に記憶された新規プログラムは新たな現行プログラムとなり、CPU21は、書き換え後はこの新たな現行プログラムに従って演算を行う。   The ROM 22 is a ROM (Electrical Erasable Programmable ROM) capable of electrically rewriting various stored data. The ROM 22 can rewrite the stored control program (hereinafter also referred to as “current program”) by a new control program (hereinafter also referred to as “new program”) received from the rewriting tool 7. It is configured. The rewriting tool 7 is called a scan tool or the like, and is an external device that can communicate with the electronic control unit 1 by being connected to the CAN bus C0 by an operator at an automobile repair shop or the like. The new program stored in the ROM 22 by rewriting becomes a new current program, and after rewriting, the CPU 21 performs an operation according to the new current program.

RAM23は、マイコンA20内に設けられた記憶素子である。RAM23は、CPU21による演算結果や、車両に搭載される各種センサ等(不図示)から入力されるデータを一時的に記憶する。   The RAM 23 is a storage element provided in the microcomputer A20. RAM23 memorize | stores temporarily the data input from the calculation result by CPU21, various sensors mounted in a vehicle, etc. (not shown).

マイコンA20は、そのROM22が記憶している現行プログラムを新規プログラムによって書き換える際、ROM22が記憶している書換処理プログラムをRAM23に転送する。CPU21は、このRAM23に転送された書換処理プログラムに従って演算を行い、書換ツール7から受信する新規プログラムをROM22に記憶させる。これにより、ROM22の交換や、ROMライタ等の装置を要することなく、ROM22に記憶されている現行プログラムを更新することが可能となる。   When the microcomputer A20 rewrites the current program stored in the ROM 22 with a new program, the microcomputer A20 transfers the rewrite processing program stored in the ROM 22 to the RAM 23. The CPU 21 performs an operation according to the rewrite processing program transferred to the RAM 23 and stores the new program received from the rewrite tool 7 in the ROM 22. As a result, the current program stored in the ROM 22 can be updated without replacing the ROM 22 or a device such as a ROM writer.

マイコンA20、マイコンB30及びマイコンC40は、それぞれ通信ドライバ3A,3B,3Cを介してCANバスC0の第1CANバスC1及び第2CANバスC2に接続されている。これにより、マイコンA20、マイコンB30及びマイコンC40は、同じく第1CANバスC1及び第2CANバスC2と接続されたエンジンや書換ツール7と、第1CANチャネル及び第2CANチャネルを用いたCAN通信が可能な状態となる。   The microcomputer A20, the microcomputer B30, and the microcomputer C40 are connected to the first CAN bus C1 and the second CAN bus C2 of the CAN bus C0 via the communication drivers 3A, 3B, and 3C, respectively. Thus, the microcomputer A20, the microcomputer B30, and the microcomputer C40 can perform CAN communication using the first CAN channel and the second CAN channel with the engine and the rewriting tool 7 that are also connected to the first CAN bus C1 and the second CAN bus C2. It becomes.

また、マイコンA20、マイコンB30及びマイコンC40は、いずれも「通常制御モード」と「書換モード」とで動作可能である。「通常制御モード」は、マイコンA20等がそのROM22等に記憶されている現行プログラムに従って制御を行うモードである。また、「書換モード」は、マイコンA20等が書換ツール7から新規プログラムを受信可能な状態で待機するとともに、新規プログラムを受信した場合は、そのROM22等に記憶されている現行プログラムを当該新規プログラムによって書き換えるモードである。マイコンA20、マイコンB30及びマイコンC40は、いずれも書換ツール7と書換モード移行通信を行うことで、通常制御モードから書換モードに移行可能となるように構成されている。   Further, the microcomputer A20, the microcomputer B30, and the microcomputer C40 are all operable in the “normal control mode” and the “rewrite mode”. The “normal control mode” is a mode in which the microcomputer A20 or the like performs control according to the current program stored in the ROM 22 or the like. In the “rewrite mode”, the microcomputer A20 or the like waits in a state in which a new program can be received from the rewrite tool 7, and when a new program is received, the current program stored in the ROM 22 or the like is changed to the new program. It is a mode to rewrite by. The microcomputer A20, the microcomputer B30, and the microcomputer C40 are all configured to be able to shift from the normal control mode to the rewrite mode by performing rewrite mode transition communication with the rewrite tool 7.

次に、以上のように構成された電子制御装置1において、マイコンA20及びマイコンB30の現行プログラムを書き換える一方で、マイコンC40の現行プログラムの書き換えを行わない場合の動作について説明する。   Next, in the electronic control device 1 configured as described above, an operation when the current program of the microcomputer A20 and the microcomputer B30 is rewritten while the current program of the microcomputer C40 is not rewritten will be described.

まず、図2及び図4を参照しながら、現行プログラムの書き換えが行われるマイコンA20及びマイコンB30が実行する処理について説明する。尚、図2の各処理において括弧外に付された符号は、マイコンA20が実行する処理を示しており、括弧内に付された符号は、マイコンB30が実行する処理を示している。以下の説明においても、括弧内はマイコンB30が実行する処理について示すものとする。   First, processing executed by the microcomputer A20 and the microcomputer B30 in which the current program is rewritten will be described with reference to FIGS. In addition, the code | symbol attached | subjected outside the parenthesis in each process of FIG. 2 has shown the process which microcomputer A20 performs, and the code | symbol attached | subjected in the parenthesis has shown the process which microcomputer B30 performs. Also in the following description, the parentheses indicate processing executed by the microcomputer B30.

図2に示される処理のうち、ステップS101(S201)からステップS107(S207)の処理は、ROM22(32)が記憶している制御プログラム、すなわち現行プログラムによって実現されるものである。また、図2の処理のうち、ステップS108(S208)からステップS112(S212)の処理は、ROM22(32)からRAM23(33)に一時的に転送される書換処理プログラムによって実現されるものである。   Of the processes shown in FIG. 2, the processes from step S101 (S201) to step S107 (S207) are realized by the control program stored in the ROM 22 (32), that is, the current program. 2, the processing from step S108 (S208) to step S112 (S212) is realized by a rewrite processing program temporarily transferred from the ROM 22 (32) to the RAM 23 (33). .

図2及び図4に示されるように、マイコンA20(マイコンB30)は、初期状態から動作を開始すると、それぞれステップS101(S201)で、通常制御モードで動作する。すなわち、マイコンA20(マイコンB30)は、ROM22(32)に記憶されている現行プログラムA(B)に従って制御を行う。   As shown in FIGS. 2 and 4, when the microcomputer A20 (microcomputer B30) starts operating from the initial state, it operates in the normal control mode in step S101 (S201), respectively. That is, the microcomputer A20 (microcomputer B30) performs control according to the current program A (B) stored in the ROM 22 (32).

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS102(S202)で、通常制御モードでの動作中に、書換ツール7からセキュリティ通信A(B)の信号を受信したか否かを判定する。書換ツール7からセキュリティ通信A(B)の信号を受信していないと判定した場合(S102:NO(S202:NO))、マイコンA20(マイコンB30)は、通常制御モードでの動作を継続する。一方、書換ツール7からセキュリティ通信A(B)の信号を受信したと判定した場合(S102:YES(S202:YES))、マイコンA20(マイコンB30)は、ステップS103(S203)の処理に進む。   Next, as shown in FIG. 2, the microcomputer A20 (microcomputer B30) received the signal of the security communication A (B) from the rewriting tool 7 during the operation in the normal control mode in step S102 (S202). It is determined whether or not. If it is determined that the signal of the security communication A (B) is not received from the rewriting tool 7 (S102: NO (S202: NO)), the microcomputer A20 (microcomputer B30) continues the operation in the normal control mode. On the other hand, when it is determined that the signal of the security communication A (B) has been received from the rewriting tool 7 (S102: YES (S202: YES)), the microcomputer A20 (microcomputer B30) proceeds to the process of step S103 (S203).

次に、図2にステップS103(S203)で示され、図4にステップS103(S203),S401(S402)で示されるように、マイコンA20(マイコンB30)は、引き続き書換ツール7とのセキュリティ通信A(B)を行う。   Next, as shown in step S103 (S203) in FIG. 2 and steps S103 (S203) and S401 (S402) in FIG. 4, the microcomputer A20 (microcomputer B30) continues to perform security communication with the rewriting tool 7. A (B) is performed.

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS104(S204)で、セキュリティを解除可能か否かを判定する。当該判定は、マイコンA20(マイコンB30)と書換ツール7との間での判定値の送受信に基づいて行う。   Next, as shown in FIG. 2, the microcomputer A20 (microcomputer B30) determines whether or not the security can be canceled in step S104 (S204). The determination is performed based on transmission / reception of a determination value between the microcomputer A20 (microcomputer B30) and the rewriting tool 7.

詳細には、まず、マイコンA20(マイコンB30)が、ある判定値に対応する信号を書換ツール7に送信する。第1CANバスC1又は第2CANバスC2を介して当該信号を受信した書換ツール7は、予め定められたセキュリティアルゴリズムに基づいて当該判定値の変換を行うとともに、変換後の判定値に対応する信号をマイコンA20(マイコンB30)に送信する。当該信号を受信したマイコンA20(マイコンB30)は、変換後の判定値がセキュリティアルゴリズムに基づいた適切なものであるか否かを判定し、適切なものであると判定した場合は、セキュリティを解除可能とする。セキュリティを解除可能ではないと判定した場合(S104:NO(S204:NO))、マイコンA20(マイコンB30)は、通常制御モードでの動作を継続する。一方、セキュリティを解除可能であると判定した場合(S104:YES(S204:YES))、マイコンA20(マイコンB30)は、ステップS105(S205)の処理に進む。   Specifically, first, the microcomputer A20 (microcomputer B30) transmits a signal corresponding to a certain determination value to the rewriting tool 7. The rewriting tool 7 that has received the signal via the first CAN bus C1 or the second CAN bus C2 performs conversion of the determination value based on a predetermined security algorithm, and outputs a signal corresponding to the converted determination value. It transmits to microcomputer A20 (microcomputer B30). Receiving the signal, the microcomputer A20 (microcomputer B30) determines whether or not the converted determination value is appropriate based on the security algorithm. If it is determined that it is appropriate, the security is released. Make it possible. When it is determined that the security cannot be canceled (S104: NO (S204: NO)), the microcomputer A20 (microcomputer B30) continues the operation in the normal control mode. On the other hand, if it is determined that the security can be canceled (S104: YES (S204: YES)), the microcomputer A20 (microcomputer B30) proceeds to the process of step S105 (S205).

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS105(S205)で、セキュリティを解除可能と判定してから所定時間内に、書換ツール7からモード切替コマンドA(B)を受信したか否かを判定する。そして、所定時間内にモード切替コマンドA(B)を受信しなかったと判定した場合(S105:NO(S205:NO))、マイコンA20(マイコンB30)は、通常制御モードでの動作を継続する。一方、所定時間内にモード切替コマンドA(B)を受信したと判定した場合(S105:YES(S205:YES))、マイコンA20(マイコンB30)は、ステップS106(S206)の処理に進む。   Next, as shown in FIG. 2, in step S105 (S205), the microcomputer A20 (microcomputer B30) determines that the security can be released, and within a predetermined time from the rewriting tool 7, the mode switching command A (B ) Is received. If it is determined that the mode switching command A (B) has not been received within the predetermined time (S105: NO (S205: NO)), the microcomputer A20 (microcomputer B30) continues to operate in the normal control mode. On the other hand, when it is determined that the mode switching command A (B) has been received within the predetermined time (S105: YES (S205: YES)), the microcomputer A20 (microcomputer B30) proceeds to the process of step S106 (S206).

次に、図2にステップS106(S206)で示され、図4でステップS106(S206),S404(S405)で示されるように、マイコンA20(マイコンB30)は、書換ツール7と書換モード移行通信A(B)を行う。   Next, as shown in step S106 (S206) in FIG. 2 and steps S106 (S206) and S404 (S405) in FIG. 4, the microcomputer A20 (microcomputer B30) communicates with the rewrite tool 7 and the rewrite mode transition communication. A (B) is performed.

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS107(S207)で、書換モードに移行可能か否かを判定する。具体的には、マイコンA20(マイコンB30)は、車両のエンジンが停止しているか否かを判定する。エンジンの駆動中にマイコンA20(マイコンB30)が通常制御モードから書換モードに移行すると、エンジンの制御が不安定となり危険を招くおそれがある。したがって、マイコンA20(マイコンB30)は、エンジンが停止している場合のみ、書換モードに移行可能と判定する。書換モードに移行可能ではないと判定した場合(S107:NO(S207:NO))、マイコンA20(マイコンB30)は、通常制御モードでの動作を継続する。一方、書換モードに移行可能であると判定した場合(S107:YES(S207:YES))、マイコンA20(マイコンB30)は、書換モードに移行するとともに、ステップS108(S208)の処理に進む。   Next, as shown in FIG. 2, the microcomputer A20 (microcomputer B30) determines whether or not it is possible to shift to the rewrite mode in step S107 (S207). Specifically, the microcomputer A20 (microcomputer B30) determines whether or not the vehicle engine is stopped. If the microcomputer A20 (microcomputer B30) shifts from the normal control mode to the rewrite mode while the engine is being driven, the engine control becomes unstable and may cause danger. Therefore, the microcomputer A20 (microcomputer B30) determines that the mode can be shifted to the rewrite mode only when the engine is stopped. If it is determined that the mode cannot be shifted to the rewrite mode (S107: NO (S207: NO)), the microcomputer A20 (microcomputer B30) continues the operation in the normal control mode. On the other hand, if it is determined that the mode can be changed to the rewrite mode (S107: YES (S207: YES)), the microcomputer A20 (microcomputer B30) shifts to the rewrite mode and proceeds to the process of step S108 (S208).

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS108(S208)で、書換データを受信したか否かを判定する。すなわち、マイコンA20(マイコンB30)は、書換ツール7から新規プログラムA(B)のデータを受信したか否かを判定する。書換データを受信したと判定した場合(S108:YES(S208YES))、マイコンA20(マイコンB30)は、ステップS109(S209)の処理に進む。   Next, as shown in FIG. 2, the microcomputer A20 (microcomputer B30) determines whether or not rewrite data is received in step S108 (S208). That is, the microcomputer A20 (microcomputer B30) determines whether or not the data of the new program A (B) has been received from the rewriting tool 7. If it is determined that the rewrite data has been received (S108: YES (S208 YES)), the microcomputer A20 (microcomputer B30) proceeds to the process of step S109 (S209).

次に、図2にステップS109(S209)で示され、図4にステップS109(S209),S407(S408)で示されるように、マイコンA20(マイコンB30)は、書換ツール7とデータ通信A(B)を行って引き続き新規プログラムA(B)のデータを受信し、当該新規プログラムA(B)による書換処理を実行する。このとき、マイコンA20は、第1CANバスC1を介して第1CANチャネルで書換ツール7とのデータ通信Aを行うのに対し、マイコンB30は、第2CANバスC2を介して第2CANチャネルで書換ツール7とのデータ通信Bを行う。   Next, as shown in step S109 (S209) in FIG. 2 and steps S109 (S209) and S407 (S408) in FIG. 4, the microcomputer A20 (microcomputer B30) is connected to the rewriting tool 7 and the data communication A ( B) is performed to continuously receive the data of the new program A (B), and the rewriting process by the new program A (B) is executed. At this time, the microcomputer A20 performs data communication A with the rewriting tool 7 through the first CAN channel via the first CAN bus C1, whereas the microcomputer B30 performs the data rewriting tool 7 through the second CAN channel via the second CAN bus C2. Data communication B is performed.

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS110(S210)で、新規プログラムA(B)による書き換えが終了したか否かを判定する。新規プログラムA(B)による書き換えが終了したと判定した場合(S110:YES(S210:YES))、マイコンA20(マイコンB30)は、ステップS111(S211)の処理に進む。   Next, as shown in FIG. 2, the microcomputer A20 (microcomputer B30) determines whether or not the rewriting by the new program A (B) is completed in step S110 (S210). If it is determined that the rewriting by the new program A (B) has been completed (S110: YES (S210: YES)), the microcomputer A20 (microcomputer B30) proceeds to the process of step S111 (S211).

次に、図2に示されるように、マイコンA20(マイコンB30)は、ステップS111(S211)で、書換ツール7から通信終了信号を受信したか否かを判定する。当該通信終了信号は、マイコンA20、マイコンB30及びマイコンC40の全てがデータ通信を行っていない状態となった場合に、図4にステップS409で示されるように、書換ツール7からマイコンA20、マイコンB30及びマイコンC40の全てに送信する信号である。書換ツール7から通信終了信号を受信していないと判定した場合(S111:NO(S211:NO))、マイコンA20(マイコンB30)は、通信終了信号の受信に待機する。   Next, as shown in FIG. 2, the microcomputer A20 (microcomputer B30) determines whether or not a communication end signal is received from the rewriting tool 7 in step S111 (S211). The communication end signal is transmitted from the rewriting tool 7 to the microcomputer A20, the microcomputer B30, as shown in step S409 in FIG. 4 when all of the microcomputer A20, the microcomputer B30, and the microcomputer C40 are not performing data communication. And a signal transmitted to all of the microcomputer C40. If it is determined that the communication end signal has not been received from the rewriting tool 7 (S111: NO (S211: NO)), the microcomputer A20 (microcomputer B30) waits for reception of the communication end signal.

ここで、図4にステップS109,S209で示されるように、第1CANバスC1と第2CANバスC2とのデータ転送速度の差異や、新規プログラムAと新規プログラムBとのデータサイズの差異等により、マイコンA20がマイコンB30よりも先に新規プログラムAによる書換処理を終了する場合が生じ得る。この場合、マイコンA20は、ステップS111で、通信終了信号の受信(すなわち、マイコンB30の書換処理の終了)に待機する状態となる。書換ツール7から通信終了信号を受信したと判定した場合(S111:YES(S211:YES))、マイコンA20(マイコンB30)は、ステップS112(S212)の処理に進む。   Here, as shown in steps S109 and S209 in FIG. 4, due to a difference in data transfer speed between the first CAN bus C1 and the second CAN bus C2, a difference in data size between the new program A and the new program B, etc. There may occur a case where the microcomputer A20 ends the rewriting process by the new program A before the microcomputer B30. In this case, in step S111, the microcomputer A20 enters a state of waiting for reception of a communication end signal (that is, completion of the rewriting process of the microcomputer B30). If it is determined that a communication end signal has been received from the rewriting tool 7 (S111: YES (S211: YES)), the microcomputer A20 (microcomputer B30) proceeds to the process of step S112 (S212).

次に、図2及び図4に示されるように、マイコンA20(マイコンB30)は、ステップS112(S212)で、リセット処理を実行する。すなわち、マイコンA20(マイコンB30)は、書き換えによってROM22(32)に記憶された新規プログラムA(B)を新たな現行プログラムA(B)とする処理を実行する。   Next, as shown in FIGS. 2 and 4, the microcomputer A20 (microcomputer B30) executes a reset process in step S112 (S212). That is, the microcomputer A20 (microcomputer B30) executes a process of setting the new program A (B) stored in the ROM 22 (32) by rewriting as a new current program A (B).

次に、図2及び図4に示されるように、マイコンA20(マイコンB30)は、ステップS113(S213)で、ROM22に記憶されている現行プログラムA(B)に従って通常制御モードでの動作を開始する。   Next, as shown in FIGS. 2 and 4, the microcomputer A20 (microcomputer B30) starts the operation in the normal control mode in accordance with the current program A (B) stored in the ROM 22 in step S113 (S213). To do.

続いて、図3及び図4を参照しながら、現行プログラムの書き換えが行われないマイコンC40が実行する処理について説明する。   Next, a process executed by the microcomputer C40 in which the current program is not rewritten will be described with reference to FIGS.

図3に示される処理のうち、ステップS301からステップS307の処理は、ROM42が記憶している制御プログラム、すなわち現行プログラムによって実現されるものである。また、図3の処理のうち、ステップS311からステップS313の処理は、ROM42からRAM43に一時的に転送される書換処理プログラムによって実現されるものである。   Of the processes shown in FIG. 3, the processes from step S301 to step S307 are realized by a control program stored in the ROM 42, that is, a current program. 3, the processing from step S311 to step S313 is realized by a rewrite processing program temporarily transferred from the ROM 42 to the RAM 43.

図3及び図4に示されるように、マイコンC40は、初期状態から動作を開始すると、ステップS301で、通常制御モードで動作する。すなわち、マイコンC40は、ROM42に記憶されている現行プログラムCに従って制御を行う。   As shown in FIGS. 3 and 4, when the microcomputer C40 starts operating from the initial state, the microcomputer C40 operates in the normal control mode in step S301. That is, the microcomputer C40 performs control according to the current program C stored in the ROM 42.

次に、図3に示されるように、マイコンC40は、ステップS302で、通常制御モードでの動作中に、書換ツール7からセキュリティ通信Cの信号を受信したか否かを判定する。書換ツール7からセキュリティ通信Cの信号を受信していないと判定した場合(S302:NO)、マイコンC40は、通常制御モードでの動作を継続する。一方、書換ツール7からセキュリティ通信Cの信号を受信したと判定した場合(S302:YES)、マイコンC40は、ステップS303の処理に進む。   Next, as shown in FIG. 3, in step S302, the microcomputer C40 determines whether or not the signal of the security communication C is received from the rewriting tool 7 during the operation in the normal control mode. When it is determined that the signal of the security communication C is not received from the rewriting tool 7 (S302: NO), the microcomputer C40 continues the operation in the normal control mode. On the other hand, when it determines with having received the signal of the security communication C from the rewriting tool 7 (S302: YES), the microcomputer C40 progresses to the process of step S303.

次に、図3にステップS303で示され、図4にステップS303,S403で示されるように、マイコンC40は、引き続き書換ツール7とのセキュリティ通信Cを行う。   Next, as shown in step S303 in FIG. 3 and steps S303 and S403 in FIG. 4, the microcomputer C40 continues to perform security communication C with the rewriting tool 7.

次に、図3に示されるように、マイコンC40は、ステップS304で、セキュリティを解除可能か否かを判定する。当該判定は、前述したマイコンA20及びマイコンB30の場合と同様に、書換ツール7との判定値の送受信に基づいて行う。   Next, as shown in FIG. 3, the microcomputer C40 determines whether or not security can be released in step S304. The determination is performed based on transmission / reception of a determination value with the rewriting tool 7 as in the case of the microcomputer A20 and the microcomputer B30 described above.

次に、図3に示されるように、マイコンC40は、ステップS305で、セキュリティを解除可能と判定してから所定時間内に、書換ツール7からモード切替コマンドCを受信したか否かを判定する。そして、所定時間内にモード切替コマンドCを受信しなかったと判定した場合(S305:NO)、マイコンC40は、通常制御モードでの動作を継続する。一方、所定時間内にモード切替コマンドCを受信したと判定した場合(S305:YES)、マイコンC40は、ステップS306の処理に進む。   Next, as shown in FIG. 3, in step S305, the microcomputer C40 determines whether or not the mode switching command C is received from the rewriting tool 7 within a predetermined time after determining that security can be released. . If it is determined that the mode switching command C has not been received within the predetermined time (S305: NO), the microcomputer C40 continues the operation in the normal control mode. On the other hand, if it is determined that the mode switching command C is received within the predetermined time (S305: YES), the microcomputer C40 proceeds to the process of step S306.

次に、図3にステップS306で示され、図4でステップS306,S406で示されるように、マイコンC40は、書換ツール7と書換モード移行通信Cを行う。   Next, as shown in step S306 in FIG. 3 and in steps S306 and S406 in FIG. 4, the microcomputer C40 performs rewrite mode transition communication C with the rewrite tool 7.

次に、図3に示されるように、マイコンC40は、ステップS307で、書換モードに移行可能か否かを判定する。具体的には、マイコンC40は、車両のエンジンが停止しているか否かを判定する。前述したマイコンA20及びマイコンB30の場合と同様に、マイコンC40は、エンジンが停止している場合のみ、書換モードに移行可能と判定する。書換モードに移行可能ではないと判定した場合(S307:NO)、マイコンC40は、通常制御モードでの動作を継続する。一方、書換モードに移行可能であると判定した場合(S307:YES)、マイコンC40は、書換モードに移行するとともに、ステップS311の処理に進む。   Next, as shown in FIG. 3, in step S307, the microcomputer C40 determines whether or not it is possible to shift to the rewrite mode. Specifically, the microcomputer C40 determines whether or not the vehicle engine is stopped. Similar to the case of the microcomputer A20 and the microcomputer B30 described above, the microcomputer C40 determines that the mode can be shifted to the rewrite mode only when the engine is stopped. If it is determined that the transition to the rewrite mode is not possible (S307: NO), the microcomputer C40 continues the operation in the normal control mode. On the other hand, when it is determined that the rewrite mode can be shifted (S307: YES), the microcomputer C40 shifts to the rewrite mode and proceeds to the process of step S311.

次に、図2に示されるように、マイコンC40は、ステップS311で、書換ツール7から通信終了信号を受信したか否かを判定する。書換ツール7から通信終了信号を受信していないと判定した場合(S311:NO)、マイコンC40は、通信終了信号の受信に待機する。   Next, as shown in FIG. 2, the microcomputer C40 determines whether or not a communication end signal is received from the rewriting tool 7 in step S311. If it is determined that the communication end signal has not been received from the rewriting tool 7 (S311: NO), the microcomputer C40 waits for reception of the communication end signal.

前述したように、マイコンC40は現行プログラムCの書き換えを行わない。したがって、マイコンC40は、書換ツール7から新規プログラムのデータが送信されてくることはなく、書換モードのまま待機する。書換ツール7から通信終了信号を受信したと判定した場合(S311:YES)、マイコンC40は、ステップS312の処理に進む。   As described above, the microcomputer C40 does not rewrite the current program C. Therefore, the microcomputer C40 does not receive new program data from the rewriting tool 7, and waits in the rewriting mode. If it is determined that the communication end signal has been received from the rewriting tool 7 (S311: YES), the microcomputer C40 proceeds to the process of step S312.

次に、図2及び図4に示されるように、マイコンC40は、ステップS312で、リセット処理を実行する。マイコンC40は、そのROM42に記憶されている現行プログラムCの書き換えが行われなかったが、再度その現行プログラムCに従った制御を開始する。   Next, as shown in FIGS. 2 and 4, the microcomputer C40 executes a reset process in step S312. The microcomputer C40 does not rewrite the current program C stored in the ROM 42, but starts control according to the current program C again.

次に、図2及び図4に示されるように、マイコンC40は、ステップS313で、ROM42に記憶されている現行プログラムCに従って通常制御モードでの動作を開始する。   Next, as shown in FIGS. 2 and 4, the microcomputer C40 starts the operation in the normal control mode according to the current program C stored in the ROM 42 in step S313.

以上のように、本実施形態に係る電子制御装置1によれば、マイコンA20は、第1CANチャネルを用いて書換ツール7と通信して現行プログラムAの書き換えを実行する。一方、マイコンB30は、マイコンA20が現行プログラムAの書き換え実行中に、第2CANチャネルを用いて書換ツール7と通信して現行プログラムBの書き換えを実行する。これにより、マイコンA20及びマイコンB30は同時に現行プログラムA,Bの書き換えを実行することが可能となるため、その書き換えを迅速に終了させることができる。   As described above, according to the electronic control apparatus 1 according to the present embodiment, the microcomputer A20 communicates with the rewriting tool 7 using the first CAN channel and executes rewriting of the current program A. On the other hand, the microcomputer B30 communicates with the rewriting tool 7 using the second CAN channel and executes rewriting of the current program B while the microcomputer A20 executes rewriting of the current program A. As a result, the microcomputer A20 and the microcomputer B30 can simultaneously rewrite the current programs A and B, so that the rewriting can be quickly completed.

ここで、マイコンA20及びマイコンB30が書換モードで動作しているときに、第3マイクロコンピュータが通常制御モードで動作していると、マイコンA20、マイコンB30及びマイコンC40は、相互に異常が生じていると誤って判定してしまうおそれがある。   Here, when the microcomputer A20 and the microcomputer B30 are operating in the rewrite mode and the third microcomputer is operating in the normal control mode, the microcomputer A20, the microcomputer B30, and the microcomputer C40 are abnormal. If it is, there is a risk of making a mistaken determination.

そこで、本実施形態に係る電子制御装置1によれば、マイコンC40は、マイコンA20及びマイコンB30が書換モードで現行プログラムA,Bの書き換え実行中に、書換モードで待機する。これにより、マイコンA20、マイコンB30及びマイコンC40の誤った異常判定を防止するとともに、現行プログラムA,Bの書き換えを迅速に終了させることができる。   Therefore, according to the electronic control apparatus 1 according to the present embodiment, the microcomputer C40 stands by in the rewrite mode while the microcomputer A20 and the microcomputer B30 are executing rewriting of the current programs A and B in the rewrite mode. As a result, it is possible to prevent erroneous determination of the microcomputer A20, the microcomputer B30, and the microcomputer C40 and to quickly end rewriting of the current programs A and B.

また、本実施形態に係る電子制御装置1によれば、マイコンA20が現行プログラムAの書き換えを終了したときに、マイコンB30が現行プログラムBの書き換え実行中である場合は、マイコンA20は、その後は書換モードのまま待機する。これにより、マイコンA20、マイコンB30及びマイコンC40の誤った異常判定をさらに確実に防止しながら、現行プログラムA,Bの書き換えを迅速に終了させることができる。   Further, according to the electronic control device 1 according to the present embodiment, when the microcomputer A20 finishes rewriting the current program A and the microcomputer B30 is executing rewriting of the current program B, the microcomputer A20 Wait in rewrite mode. As a result, the rewriting of the current programs A and B can be quickly terminated while further reliably preventing erroneous abnormality determination of the microcomputer A20, the microcomputer B30, and the microcomputer C40.

また、本実施形態に係る電子制御装置1によれば、マイコンA20、マイコンB30及びマイコンC40の現行プログラムA,B,Cの書き換えが終了した場合は、マイコンA20、マイコンB30及びマイコンC40は、ROM22,32、42に記憶されている現行プログラムA,B,Cに従った制御を開始させるためのリセット処理を同時に実行した後、通常制御モードでの動作を同時に開始する。これにより、現行プログラムA,B,Cの書き換え終了後にマイコンA20、マイコンB30及びマイコンC40を全て通常制御モードで動作させ、それらの誤った異常判定をさらに確実に防止しながら、現行プログラムA,B,Cの書き換えを迅速に終了させることができる。   Further, according to the electronic control device 1 according to the present embodiment, when the rewriting of the current programs A, B, and C of the microcomputer A20, the microcomputer B30, and the microcomputer C40 is completed, the microcomputer A20, the microcomputer B30, and the microcomputer C40 are stored in the ROM 22 , 32, and 42, the reset process for starting the control according to the current programs A, B, and C is simultaneously executed, and then the operation in the normal control mode is simultaneously started. As a result, after rewriting the current programs A, B, and C, the microcomputers A20, B30, and C40 are all operated in the normal control mode, and the erroneous determinations of the current programs A and B are more reliably prevented. , C can be quickly rewritten.

以上、具体例を参照しつつ本発明の実施の形態について説明した。しかし、本発明はこれらの具体例に限定されるものではない。すなわち、これら具体例に、当業者が適宜設計変更を加えたものも、本発明の特徴を備えている限り、本発明の範囲に包含される。例えば、前述した各具体例が備える各要素およびその配置、材料、条件、形状、サイズなどは、例示したものに限定されるわけではなく適宜変更することができる。また、前述した各実施の形態が備える各要素は、技術的に可能な限りにおいて組み合わせることができ、これらを組み合わせたものも本発明の特徴を含む限り本発明の範囲に包含される。   The embodiments of the present invention have been described above with reference to specific examples. However, the present invention is not limited to these specific examples. In other words, those specific examples that have been appropriately modified by those skilled in the art are also included in the scope of the present invention as long as they have the characteristics of the present invention. For example, the elements included in each of the specific examples described above and their arrangement, materials, conditions, shapes, sizes, and the like are not limited to those illustrated, but can be changed as appropriate. Moreover, each element with which each embodiment mentioned above is provided can be combined as long as technically possible, and the combination of these is also included in the scope of the present invention as long as it includes the features of the present invention.

1:電子制御装置
7:書換ツール
20:マイクロコンピュータA(第1マイクロコンピュータ)
30:マイクロコンピュータB(第2マイクロコンピュータ)
40:マイクロコンピュータC(第3マイクロコンピュータ)
22,32,42:ROM(メモリ)
1: Electronic control unit 7: Rewriting tool 20: Microcomputer A (first microcomputer)
30: Microcomputer B (second microcomputer)
40: Microcomputer C (third microcomputer)
22, 32, 42: ROM (memory)

Claims (3)

複数のマイクロコンピュータを備え、CAN通信を行う電子制御装置(1)であって、
前記複数のマイクロコンピュータは、
少なくとも第1マイクロコンピュータ(20)、第2マイクロコンピュータ(30)及び第3マイクロコンピュータ(40)からなり、
現行プログラムを記憶するとともに該現行プログラムを新規プログラムと書き換え可能なメモリ(22,32,42)をそれぞれ有し、
前記メモリに記憶されている前記現行プログラムに従って制御を行う通常制御モードと、書換ツール(7)から前記新規プログラムを受信して前記メモリに記憶された前記現行プログラムの書き換えを可能とする書換モードと、で動作可能であり、
前記第1マイクロコンピュータは、前記書換モードで第1CANチャネルを用いて前記書換ツールと通信して前記現行プログラムの書き換えを実行し、
前記第2マイクロコンピュータは、前記第1マイクロコンピュータが前記現行プログラムの書き換え実行中に、前記書換モードで第2CANチャネルを用いて前記書換ツールと通信して前記現行プログラムの書き換えを実行し、
前記第3マイクロコンピュータは、前記第1マイクロコンピュータ及び前記第2マイクロコンピュータが前記現行プログラムの書き換え実行中に、前記書換モードで待機することを特徴とする電子制御装置。
An electronic control device (1) having a plurality of microcomputers and performing CAN communication,
The plurality of microcomputers are:
At least a first microcomputer (20), a second microcomputer (30), and a third microcomputer (40);
A memory (22, 32, 42) for storing the current program and rewriting the current program with a new program, respectively;
A normal control mode in which control is performed in accordance with the current program stored in the memory, and a rewrite mode in which the new program is received from the rewriting tool (7) and the current program stored in the memory can be rewritten. , Can work with
The first microcomputer communicates with the rewriting tool using the first CAN channel in the rewriting mode to rewrite the current program,
The second microcomputer communicates with the rewriting tool using the second CAN channel in the rewriting mode while the first microcomputer performs rewriting of the current program, and rewrites the current program.
The electronic control device according to claim 3, wherein the third microcomputer stands by in the rewriting mode while the first microcomputer and the second microcomputer are executing rewriting of the current program.
前記第1マイクロコンピュータが前記現行プログラムの書き換えを終了したときに、前記第2マイクロコンピュータが前記現行プログラムの書き換え実行中である場合は、前記第1マイクロコンピュータは、その後は前記書換モードのまま待機することを特徴とする請求項1に記載の電子制御装置。   If the second microcomputer is in the process of rewriting the current program when the first microcomputer has finished rewriting the current program, the first microcomputer then waits in the rewrite mode. The electronic control device according to claim 1. 前記複数のマイクロコンピュータの前記現行プログラムの書き換えが終了した場合は、
前記複数のマイクロコンピュータは、いずれも、前記メモリに記憶されている現行プログラムに従った制御を開始させるためのリセット処理を同時に実行した後、前記通常制御モードでの動作を同時に開始することを特徴とする請求項1又は2に記載の電子制御装置。
When rewriting of the current program of the plurality of microcomputers is completed,
Each of the plurality of microcomputers simultaneously starts an operation in the normal control mode after simultaneously executing a reset process for starting control according to a current program stored in the memory. The electronic control device according to claim 1 or 2.
JP2015041929A 2015-03-04 2015-03-04 Electronic control unit Active JP6330699B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015041929A JP6330699B2 (en) 2015-03-04 2015-03-04 Electronic control unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015041929A JP6330699B2 (en) 2015-03-04 2015-03-04 Electronic control unit

Publications (2)

Publication Number Publication Date
JP2016162325A true JP2016162325A (en) 2016-09-05
JP6330699B2 JP6330699B2 (en) 2018-05-30

Family

ID=56847196

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015041929A Active JP6330699B2 (en) 2015-03-04 2015-03-04 Electronic control unit

Country Status (1)

Country Link
JP (1) JP6330699B2 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000259422A (en) * 1999-03-12 2000-09-22 Denso Corp Electronic controller
JP2004310221A (en) * 2003-04-02 2004-11-04 Denso Corp Data rewriting method and electronic control device
JP2010271891A (en) * 2009-05-21 2010-12-02 Fujitsu Ten Ltd Gateway device and data transmission method
JP2014194688A (en) * 2013-03-29 2014-10-09 Hitachi Automotive Systems Ltd Program rewriting method of electronic control device, electronic control device, and rewriting device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000259422A (en) * 1999-03-12 2000-09-22 Denso Corp Electronic controller
JP2004310221A (en) * 2003-04-02 2004-11-04 Denso Corp Data rewriting method and electronic control device
JP2010271891A (en) * 2009-05-21 2010-12-02 Fujitsu Ten Ltd Gateway device and data transmission method
JP2014194688A (en) * 2013-03-29 2014-10-09 Hitachi Automotive Systems Ltd Program rewriting method of electronic control device, electronic control device, and rewriting device

Also Published As

Publication number Publication date
JP6330699B2 (en) 2018-05-30

Similar Documents

Publication Publication Date Title
JP4442524B2 (en) Safety PLC
EP2228699B1 (en) I/O unit and industrial controller
KR20180033238A (en) Program rewriting device of construction machine
CN102969975B (en) Electric motor system and control device of electric motor
EP3608775A1 (en) Electronic control system
JP6139386B2 (en) Programmable controller
EP3249531B1 (en) Control means, in-vehicle program rewriting device equipped with same, and in-vehicle program rewriting method
JP5144409B2 (en) Inverter control system, peripheral equipment of inverter device
US20100070260A1 (en) Verification device, verifying apparatus and verification system
JP2016103114A (en) Inverter and update method of firmware program in inverter
EP3968574A1 (en) Processing device, communication system, and non-transitory storage medium
JP6330699B2 (en) Electronic control unit
JP6895373B2 (en) Electronic control device for automobiles
CN112154399B (en) Rocker calibration method, remote control terminal and computer readable storage medium
CN113613954A (en) Electronic control device and method for setting control data
US6169929B1 (en) Automatic polling for user interrupts in a programmable controller using relay ladder logic
JP2019214353A (en) Communication device and control method
JP6977593B2 (en) Vehicle control unit
JP6946954B2 (en) Monitoring system
JP2015205555A (en) embedded control system
JP2007272827A (en) Sensor system and sensor unit
JP2006199411A (en) Control program rewriting device and control program rewriting method for elevator
WO2019235286A1 (en) Communication device and control method
CN117850838A (en) Method and system for firmware upgrade, electronic device, remote controller and storage medium
JP5330321B2 (en) Programmable display

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170706

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20180316

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20180409

R151 Written notification of patent or utility model registration

Ref document number: 6330699

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250