JP2014164596A - Control system - Google Patents

Control system Download PDF

Info

Publication number
JP2014164596A
JP2014164596A JP2013036051A JP2013036051A JP2014164596A JP 2014164596 A JP2014164596 A JP 2014164596A JP 2013036051 A JP2013036051 A JP 2013036051A JP 2013036051 A JP2013036051 A JP 2013036051A JP 2014164596 A JP2014164596 A JP 2014164596A
Authority
JP
Japan
Prior art keywords
microcomputers
mode
command
rewriting
signal
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
JP2013036051A
Other languages
Japanese (ja)
Other versions
JP5920243B2 (en
Inventor
Kazuhiro Uehara
一浩 上原
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 JP2013036051A priority Critical patent/JP5920243B2/en
Publication of JP2014164596A publication Critical patent/JP2014164596A/en
Application granted granted Critical
Publication of JP5920243B2 publication Critical patent/JP5920243B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a control system which suppresses generation of malfunction in a micro computer.SOLUTION: A control system includes:a micro computers (10,20) with memories (12,22) for storing applications and reprogrammings and CPU (11,21) which runs on the basis of an application or a reprogramming; and a rewriter (40) which successively rewrites pieces of data stored in each of memories in multiple micro computers one by one. Each CPU of the multiple micro computers in an application mode determines whether a communication among the multiple micro computers is normal, and when determining that it is not normal, the CPU determines whether a transition command to transit the CPU from the application mode to a reprogramming mode was input from the rewriter within a first prescribed time. When the transition command was input within the first prescribed time, the mode is transited to the reprogramming mode.

Description

本発明は、複数のマイコンと書換装置を備える制御システムに関するものである。   The present invention relates to a control system including a plurality of microcomputers and a rewriting device.

従来、例えば特許文献1に示されるように、第一及び第二のマイクロコンピュータを備える電子制御装置が提案されている。各マイクロコンピュータは、データ書換可能な不揮発性メモリと、通信ラインに接続された通信回路と、を内蔵している。各マイクロコンピュータは、通信回路を介して自身宛の書込対象のデータを受信すると、書込対象のデータを不揮発性メモリに書き込み、不揮発性メモリが記憶するデータを更新する。   Conventionally, as disclosed in, for example, Patent Document 1, an electronic control device including first and second microcomputers has been proposed. Each microcomputer has a built-in nonvolatile memory capable of rewriting data and a communication circuit connected to a communication line. When each microcomputer receives the write target data addressed to itself via the communication circuit, the microcomputer writes the write target data in the nonvolatile memory and updates the data stored in the nonvolatile memory.

特開2006−268107号公報JP 2006-268107 A

上記したように、従来、複数のマイクロコンピュータそれぞれに内蔵された不揮発性メモリのデータを書き換える電子制御装置が記載されている。このような電子制御装置では、複数のマイクロコンピュータの不揮発性メモリ内の一つに対してデータの書き換え処理が行われた後、残りの不揮発性メモリに対して、データの書き換え処理が順次行われる。したがって、電子制御装置が2つのマイクロコンピュータを有する場合、一方のマイクロコンピュータの不揮発性メモリの書き換えが終了した時点で、他方のマイクロコンピュータの不揮発性メモリの書き換えは全く行われていないことになる。この時点で、通信障害などが起きて、2つのマイクロコンピュータが落ちると、他方のマイクロコンピュータで書き換えが全く行われないままになる。しかしながら、この状態で電子制御装置が再起動されると、一方のマイクロコンピュータは、書き換えられたデータに基づいて立ち上がり、他方のマイクロコンピュータは、書き換えられていないデータに基づいて立ち上がることとなる。この結果、各マイクロコンピュータは、適した信号を送受信しなくなり、各マイクロコンピュータ(マイコン)にて誤動作が生じる可能性がある。   As described above, there has been conventionally described an electronic control device that rewrites data in a nonvolatile memory built in each of a plurality of microcomputers. In such an electronic control device, after data rewrite processing is performed on one of the nonvolatile memories of a plurality of microcomputers, data rewrite processing is sequentially performed on the remaining nonvolatile memory. . Therefore, when the electronic control unit has two microcomputers, when the rewriting of the nonvolatile memory of one microcomputer is completed, the rewriting of the nonvolatile memory of the other microcomputer is not performed at all. At this point, when a communication failure occurs and the two microcomputers are dropped, the other microcomputer is not rewritten at all. However, when the electronic control unit is restarted in this state, one microcomputer starts up based on the rewritten data, and the other microcomputer starts up based on the unwritten data. As a result, each microcomputer does not transmit / receive a suitable signal, and malfunction may occur in each microcomputer (microcomputer).

そこで、本発明は上記問題点に鑑み、マイコンにて誤動作が生じることが抑制された制御システムを提供することを目的とする。   In view of the above problems, an object of the present invention is to provide a control system in which malfunctions are prevented from occurring in a microcomputer.

上記した目的を達成するために、本発明は、データとしてアプリケーションソフト及びリプログラミングソフトが記憶されたメモリ(12,22)と、アプリケーションソフト若しくはリプログラミングソフトに基づいて動作するCPU(11,21)と、を有する複数のマイコン(10,20)、及び、複数のマイコンそれぞれのメモリに記憶されたデータを書き換えるためのコマンドをマイコンに送信する書換装置(40)を備える制御システムであって、書換装置は、コマンドとして、アプリケーションソフトに基づいて動作するアプリモードから、リプログラミングソフトに基づいて動作するリプログモードへの移行をCPUに指示する移行コマンドと、メモリのデータの書き換え処理をCPUに指示する書換コマンドと、を有し、書換装置は、移行コマンドを送信した後、複数のマイコンそれぞれに応じた書換コマンドを順次送信することで、複数のマイコンそれぞれのメモリに記憶されたデータを順次一つずつ書き換えることをCPUに指示し、複数のマイコンそれぞれのCPUは、自身がアプリモードの場合、複数のマイコン間の通信が正常か否かを判定し、通信が正常だと判定した場合、アプリモードを維持し、通信が正常ではないと判定した場合、書換装置から移行コマンドが第1所定時間以内に入力されたか否かを判定し、移行コマンドが第1所定時間以内に入力された場合、リプログモードに移行することを特徴とする。   To achieve the above object, the present invention provides a memory (12, 22) in which application software and reprogramming software are stored as data, and a CPU (11, 21) that operates based on the application software or reprogramming software. And a rewriting device (40) for transmitting a command for rewriting data stored in a memory of each of the plurality of microcomputers to the microcomputer. As a command, the apparatus instructs the CPU to perform a transition command for instructing the CPU to switch from an application mode that operates based on application software to a reprogress mode that operates based on reprogramming software, and to rewrite memory data. A rewrite command, and After transmitting the transition command, the conversion device sequentially transmits a rewrite command corresponding to each of the plurality of microcomputers to instruct the CPU to rewrite the data stored in the memory of each of the plurality of microcomputers one by one. The CPU of each of the plurality of microcomputers determines whether or not the communication between the plurality of microcomputers is normal when the CPU is in the application mode. If the communication is determined to be normal, the CPU maintains the application mode and the communication is not normal. If it is determined that the transfer command is input from the rewriting device within the first predetermined time, it is determined whether the transfer command is input within the first predetermined time, and the mode is shifted to the reprogress mode. To do.

このように本発明によれば、複数のマイコン(10,20)それぞれのCPU(11,21)は、アプリモードの場合、複数のマイコン(10,20)間の通信が正常ではないと判定した場合、書換装置(40)から移行コマンドが第1所定時間以内に入力されたか否かを判定する。そして、複数のマイコン(10,20)それぞれのCPU(11,21)は、移行コマンドが第1所定時間以内に入力された場合、リプログモードに移行する。これによれば、通信障害などによって、複数のマイコンの内の一部が、書き換えられたアプリケーションソフトに基づいて立ち上がり、残りのマイコンが、書き換えられていないアプリケーションソフトに基づいて立ち上がったとしても、各マイコン(10,20)のCPU(11,21)が、強制的にリプログモードに移行される。そのため、各マイコン(10,20)のメモリ(12,22)に記憶されたアプリケーションソフトが不一致となった結果、各マイコン(10,20)間で適した信号を送受信しなくなることが抑制される。この結果、各マイコン(10,20)にて誤動作が生じることが抑制される。   As described above, according to the present invention, the CPU (11, 21) of each of the plurality of microcomputers (10, 20) determines that the communication between the plurality of microcomputers (10, 20) is not normal in the application mode. In this case, it is determined whether or not the transfer command is input from the rewriting device (40) within the first predetermined time. Then, the CPU (11, 21) of each of the plurality of microcomputers (10, 20) shifts to the reprogress mode when the shift command is input within the first predetermined time. According to this, even if a part of the multiple microcomputers starts up based on the rewritten application software due to a communication failure, etc., and the remaining microcomputers start up based on the non-rewritten application software, The CPU (11, 21) of the microcomputer (10, 20) is forcibly shifted to the replog mode. For this reason, the application software stored in the memories (12, 22) of the microcomputers (10, 20) does not match, and as a result, it is possible to prevent a suitable signal from being transmitted / received between the microcomputers (10, 20). . As a result, malfunctions in the microcomputers (10, 20) are suppressed.

複数のマイコンそれぞれのCPUが、アプリモードであるのか、それとも、リプログモードであるのかを判定する判定部(30)を有し、判定部は、複数のマイコンのCPUの全てがアプリモードであると判定した場合、複数のマイコンのCPUの全てに、アプリモードに移行する指示を含む第1制御信号を出力し、複数のマイコンのCPUの少なくとも1つがリプログモードであると判定した場合、複数のマイコンのCPUの全てに、リプログモードに移行する指示を含む第2制御信号を出力する構成が好適である。   It has a determination unit (30) for determining whether the CPU of each of the plurality of microcomputers is in the application mode or the reprolog mode, and the determination unit indicates that all the CPUs of the plurality of microcomputers are in the application mode. If it is determined, the first control signal including an instruction to shift to the application mode is output to all the CPUs of the plurality of microcomputers, and if it is determined that at least one of the CPUs of the plurality of microcomputers is in the reprogress mode, the plurality of microcomputers A configuration in which the second control signal including an instruction to shift to the reprogress mode is output to all of the CPUs.

これによれば、通信障害などによって、リプログラミングが未終了のマイコンがあったとしても、各マイコン(10,20)のCPU(11,21)が、強制的にリプログモードに移行される。そのため、各マイコン(10,20)のモードが不一致となった結果、各マイコン(10,20)間で適した信号を送受信しなくなることが抑制される。これにより、各マイコン(10,20)にて誤動作が生じることが抑制される。   According to this, even if there is a microcomputer that has not been reprogrammed due to a communication failure or the like, the CPU (11, 21) of each microcomputer (10, 20) is forcibly shifted to the reprogress mode. Therefore, as a result of the mismatch between the modes of the microcomputers (10, 20), it is possible to prevent a suitable signal from being transmitted / received between the microcomputers (10, 20). Thereby, it is suppressed that a malfunction occurs in each microcomputer (10, 20).

第1実施形態に係る制御システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the control system which concerns on 1st Embodiment. 図1に示す制御システムの信号を説明するための概念図である。It is a conceptual diagram for demonstrating the signal of the control system shown in FIG. 図1に示すCPUの処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of CPU shown in FIG. 書換装置の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of a rewriting apparatus. 書換装置の処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of a rewriting apparatus. 画面の概略構成を示す正面図である。It is a front view which shows schematic structure of a screen. 画面の概略構成を示す正面図である。It is a front view which shows schematic structure of a screen. 第2実施形態における制御システムの信号を説明するための概念図である。It is a conceptual diagram for demonstrating the signal of the control system in 2nd Embodiment. 第2実施形態における第2CPUの処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of 2nd CPU in 2nd Embodiment. 制御システムの変形例を示すブロック図である。It is a block diagram which shows the modification of a control system. 図10に示す制御システムの信号を説明するための概念図である。It is a conceptual diagram for demonstrating the signal of the control system shown in FIG. 図10に示すマイコンの処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of the microcomputer shown in FIG.

以下、本発明の実施の形態を図に基づいて説明する。
(第1実施形態)
図1〜図7に基づいて、本実施形態に係る制御システムを説明する。なお、図2は、CPU11,21それぞれが、アプリモードで起動した場合を示しており、図3のステップS40〜ステップS80に対応している。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
Based on FIGS. 1-7, the control system which concerns on this embodiment is demonstrated. FIG. 2 shows a case where each of the CPUs 11 and 21 is activated in the application mode, and corresponds to step S40 to step S80 in FIG.

図1に示すように、制御システム100は、第1マイコン10と、第2マイコン20と、書換装置40と、を有する。本実施形態に係る制御システム100は、判定部30を有し、マイコン10,20それぞれと判定部30とが電気的に接続され、マイコン10,20それぞれと書換装置40とが電気的に接続されている。   As shown in FIG. 1, the control system 100 includes a first microcomputer 10, a second microcomputer 20, and a rewriting device 40. The control system 100 according to the present embodiment includes a determination unit 30, each of the microcomputers 10 and 20 and the determination unit 30 are electrically connected, and each of the microcomputers 10 and 20 and the rewrite device 40 are electrically connected. ing.

図2に示すように、マイコン10,20それぞれは、後述するモード信号を判定部30に出力し、判定部30は、入力されるモード信号に応じた制御信号をマイコン10,20に出力する。これにより、マイコン10,20それぞれの駆動モードが制御される。書換装置40は、ユーザーからの書換指示の入力に応じて、マイコン10,20それぞれが有するデータを書き換えるためのコマンド(命令文)をマイコン10,20それぞれに出力する。これにより、マイコン10,20それぞれは、入力されるコマンドにしたがって、自身が有するデータの書き換え処理を行う。マイコン10,20それぞれは、書き換え処理の際、コマンドに含まれる指示に対する応答信号を書換装置40に返信するが、図2では、その応答信号の代表として、後述する照合完了信号のみを示している。   As shown in FIG. 2, each of the microcomputers 10 and 20 outputs a mode signal described later to the determination unit 30, and the determination unit 30 outputs a control signal corresponding to the input mode signal to the microcomputers 10 and 20. Thereby, the drive modes of the microcomputers 10 and 20 are controlled. The rewriting device 40 outputs a command (instruction sentence) for rewriting data held in each of the microcomputers 10 and 20 to each of the microcomputers 10 and 20 in response to a rewrite instruction input from the user. Thereby, each of the microcomputers 10 and 20 performs rewriting processing of the data that the microcomputers 10 and 20 have in accordance with the input command. Each of the microcomputers 10 and 20 returns a response signal to the instruction included in the command to the rewriting device 40 during the rewriting process. In FIG. 2, only a verification completion signal described later is shown as a representative of the response signal. .

マイコン10,20それぞれは、外部から入力される信号によって起動が制御される。具体的に言えば、マイコン10,20それぞれは、外部から入力されるリセット信号の入力が解除されると、起動される。リセット信号が解除されるタイミングは、マイコン10,20それぞれで同時となっており、マイコン10,20それぞれは、同時に起動される。   The activation of each of the microcomputers 10 and 20 is controlled by a signal input from the outside. Specifically, each of the microcomputers 10 and 20 is activated when the reset signal input from the outside is canceled. The timing at which the reset signal is released is the same for each of the microcomputers 10 and 20, and each of the microcomputers 10 and 20 is activated simultaneously.

図1に示すように、第1マイコン10は、第1CPU11と、第1メモリ12と、を有し、第2マイコン20は、第2CPU21と、第2メモリ22と、を有する。メモリ12,22それぞれには、データとして、アプリケーションソフト(以下、アプリと示す)及びリプログラミングソフト(以下、リプログと示す)が記憶されており、CPU11,21それぞれは、アプリ若しくはリプログに基づいて動作する。   As shown in FIG. 1, the first microcomputer 10 has a first CPU 11 and a first memory 12, and the second microcomputer 20 has a second CPU 21 and a second memory 22. Each of the memories 12 and 22 stores application software (hereinafter referred to as an application) and reprogramming software (hereinafter referred to as a replog) as data, and each of the CPUs 11 and 21 operates based on the application or the replog. To do.

CPU11,21それぞれは、アプリに基づいて動作するアプリモードの場合、通常処理を行い、リプログに基づいて動作するリプログモードの場合、書換装置40から入力されるコマンドに基づいて、メモリ12,22に記憶されたデータを書き換える書き換え処理を行う。CPU11,21それぞれは、アプリモードで終了した場合、アプリモードで起動し、リプログモードで終了した場合、リプログモードで起動する。通常、CPU11,21それぞれは、アプリモードで終了する。CPU11,21それぞれが、リプログモードで終了するのは、通信障害などによって、リプログラミングが途中で終了した場合(未終了の場合)である。   Each of the CPUs 11 and 21 performs normal processing in the application mode that operates based on the application, and stores data in the memories 12 and 22 based on a command input from the rewriting device 40 in the reprogram mode that operates based on the reprogramming. Rewrite processing is performed to rewrite the stored data. Each of the CPUs 11 and 21 starts in the application mode when it ends in the application mode, and starts in the reprogress mode when it ends in the reprolog mode. Normally, each of the CPUs 11 and 21 ends in the application mode. Each of the CPUs 11 and 21 ends in the reprogress mode when reprogramming ends in the middle due to a communication failure or the like (when it has not ended).

CPU11,21それぞれは、アプリモードの場合、自身がアプリモードである旨を含む第1モード信号を判定部30に出力し、リプログモードの場合、自身がリプログモードである旨を含む第2モード信号を判定部30に出力する。CPU11,21それぞれは、判定部30から、後述する第1制御信号が入力されると、アプリモードに強制的に移行され、後述する第2制御信号が入力されると、リプログモードに強制的に移行される。また、CPU11,21それぞれは、書換装置40から、後述する移行コマンドが入力されると、リプログモードに強制的に移行される。本実施形態に係る第1モード信号は、電圧レベルの低いLo信号であり、第2モード信号は、Lo信号よりも電圧レベルの高いHi信号である。   In the application mode, each of the CPUs 11 and 21 outputs a first mode signal including the fact that it is in the application mode to the determination unit 30, and in the reprogress mode, the second mode signal including that it is in the reprogress mode. Is output to the determination unit 30. Each of the CPUs 11 and 21 is forcibly shifted to the application mode when a first control signal to be described later is input from the determination unit 30, and is forced to enter the reprogress mode when a second control signal to be described later is input. Migrated. Further, each of the CPUs 11 and 21 is forcibly shifted to the reprogress mode when a transition command described later is input from the rewriting device 40. The first mode signal according to the present embodiment is a Lo signal having a low voltage level, and the second mode signal is a Hi signal having a voltage level higher than that of the Lo signal.

メモリ12,22それぞれには、上記したアプリとリプログの他に、照合キーが記憶されている。第1メモリ12に記憶された照合キーと第2メモリ22に記憶された照合キーとは、互いに異なっている。CPU11,21それぞれは、後述する、メモリ12,22に記憶された照合キーのいずれか一方と等しい照合キーを含む照合コマンドが入力されると、入力された照合キーとメモリ12,22に記憶された照合キーとを照合する。そして、CPU11,21それぞれは、照合コマンドに含まれる照合キーとメモリ12,22に記憶された照合キーとが合致したと判定した場合、書換装置40へ照合完了信号を送信する。その後、CPU11,21それぞれに、後述する消去コマンド、書込コマンド、及び、チェックコマンドが書換装置40から送信される。CPU11,21それぞれは、これらのコマンドに基づいて書き換え処理を行うが、その処理については後述する。   In each of the memories 12 and 22, a collation key is stored in addition to the above-described application and replog. The collation key stored in the first memory 12 and the collation key stored in the second memory 22 are different from each other. When a collation command including a collation key equal to one of the collation keys stored in the memories 12 and 22, which will be described later, is input, the CPUs 11 and 21 are stored in the input collation key and the memories 12 and 22, respectively. Match the matching key. When each of the CPUs 11 and 21 determines that the collation key included in the collation command matches the collation key stored in the memories 12 and 22, it transmits a collation completion signal to the rewriting device 40. Thereafter, an erase command, a write command, and a check command to be described later are transmitted from the rewriting device 40 to each of the CPUs 11 and 21. Each of the CPUs 11 and 21 performs a rewriting process based on these commands, which will be described later.

判定部30は、CPU11,21それぞれが、アプリモードであるのか、それとも、リプログモードであるのかを判定するものである。判定部30は、CPU11,21それぞれがアプリモードであると判定した場合、CPU11,21それぞれに、アプリモードに移行する指示を含む第1制御信号を出力し、CPU11,21の少なくとも1つがリプログモードであると判定した場合、CPU11,21それぞれに、リプログモードに移行する指示を含む第2制御信号を出力する。上記したように、CPU11,21それぞれは、各モードに対応したモード信号を判定部30に出力する。判定部30は、CPU11,21それぞれから第1モード信号が入力された場合、CPU11,21それぞれに、第1制御信号を出力する。こうすることで、CPU11,21それぞれを、アプリモードにする。これとは異なり、判定部30は、CPU11,21の少なくとも1つから第2モード信号が入力された場合、CPU11,21それぞれに、第2制御信号を出力する。こうすることで、判定部30は、CPU11,21それぞれを、リプログモードにする。本実施形態に係る判定部30は、ORを含み、第1制御信号はLo信号、第2制御信号はHi信号である。   The determination unit 30 determines whether each of the CPUs 11 and 21 is in the application mode or the reprogress mode. When the determination unit 30 determines that each of the CPUs 11 and 21 is in the application mode, the determination unit 30 outputs a first control signal including an instruction to shift to the application mode to each of the CPUs 11 and 21, and at least one of the CPUs 11 and 21 is in the reprogram mode. When it is determined that the second control signal is included, the CPU 11 and the CPU 21 output a second control signal including an instruction to shift to the reprogress mode. As described above, each of the CPUs 11 and 21 outputs a mode signal corresponding to each mode to the determination unit 30. When the first mode signal is input from each of the CPUs 11 and 21, the determination unit 30 outputs the first control signal to each of the CPUs 11 and 21. In this way, each of the CPUs 11 and 21 is set to the application mode. In contrast, when the second mode signal is input from at least one of the CPUs 11 and 21, the determination unit 30 outputs a second control signal to each of the CPUs 11 and 21, respectively. By doing so, the determination unit 30 sets each of the CPUs 11 and 21 to the replog mode. The determination unit 30 according to the present embodiment includes an OR, the first control signal is a Lo signal, and the second control signal is a Hi signal.

書換装置40は、メモリ12,22それぞれに記憶されたデータ(アプリ)を書き換えるためのコマンドをCPU11,21それぞれに送信するものである。書換装置40は、コマンドとして、移行コマンドと、書換コマンドと、を有する。移行コマンドは、アプリモードからリプログモードへの移行をCPU11,21に指示するコマンドであり、書換コマンドは、メモリ12,22のデータの書き換え処理をCPU11,21に指示するコマンドである。書換装置40は、移行コマンドをCPU11,21それぞれに送信した後、マイコン10,20それぞれに応じた書換コマンドを順次送信する。こうすることで、メモリ12,22それぞれに記憶されたデータを順次一つずつ書き換えることをCPU11,21に指示する。   The rewriting device 40 transmits a command for rewriting data (application) stored in each of the memories 12 and 22 to each of the CPUs 11 and 21. The rewrite device 40 has a migration command and a rewrite command as commands. The transfer command is a command for instructing the CPUs 11 and 21 to shift from the application mode to the reprolog mode, and the rewrite command is a command for instructing the CPUs 11 and 21 to rewrite data in the memories 12 and 22. The rewriting device 40 sequentially transmits rewrite commands corresponding to the microcomputers 10 and 20 after transmitting the migration command to the CPUs 11 and 21, respectively. This instructs the CPUs 11 and 21 to rewrite the data stored in the memories 12 and 22 one by one sequentially.

書換装置40は、書換コマンドとして、照合コマンドと、消去コマンドと、書込コマンドと、チェックコマンドと、を有する。CPU11,21それぞれは、書換コマンドが入力されると、書き換え処理として、照合処理と、消去処理と、書込処理と、チェック処理と、を行う。   The rewrite device 40 has a verification command, an erase command, a write command, and a check command as rewrite commands. When a rewrite command is input, each of the CPUs 11 and 21 performs a rewrite process, a verification process, an erase process, a write process, and a check process.

照合コマンドは、メモリ12,22の内の一つに記憶された照合キーを含み、この照合キーと自身が有する照合キーとが合致した場合、書換装置40への照合完了信号の返信をCPU11,21に指示するコマンドである。したがって、CPU11,21それぞれは、照合コマンドが入力されると、照合コマンドに含まれる照合キーと、メモリ12,22に記憶された照合キーとを照合し、両者が合致したと判定した場合、書換装置40へ照合完了信号を返信する照合処理を行う。   The collation command includes a collation key stored in one of the memories 12 and 22, and when the collation key and the collation key that the collation command has are matched, the CPU 11, sends back a collation completion signal to the rewriting device 40. This is a command to instruct 21. Therefore, when each of the CPUs 11 and 21 receives a collation command, the collation key included in the collation command and the collation key stored in the memories 12 and 22 are collated. A verification process for returning a verification completion signal to the device 40 is performed.

消去コマンドは、メモリ12,22に記憶されたデータにおける消去対象のデータの消去をCPU11,21に指示するコマンドである。したがって、CPU11,21それぞれは、消去コマンドが入力されると、メモリ12,22に記憶されたデータを消去する消去処理を行う。   The erase command is a command for instructing the CPUs 11 and 21 to erase the data to be erased in the data stored in the memories 12 and 22. Therefore, each of the CPUs 11 and 21 performs an erasing process for erasing data stored in the memories 12 and 22 when an erasing command is input.

書込コマンドは、メモリ12,22へ、書換装置40から送信された新たなデータの書き込みをCPU11,21に指示するコマンドである。したがって、CPU11,21それぞれは、書込コマンドが入力されると、メモリ12,22へデータを書き込む書込処理を行う。   The write command is a command for instructing the CPUs 11 and 21 to write new data transmitted from the rewriting device 40 to the memories 12 and 22. Therefore, each of the CPUs 11 and 21 performs a writing process of writing data to the memories 12 and 22 when a write command is input.

チェックコマンドは、メモリ12,22に書き込んだデータと書換装置40から送信されたデータとを照合して、書き換えが成功したか否かのチェックをCPU11,21に指示するコマンドである。したがって、CPU11,21それぞれは、チェックコマンドが入力されると、書き換えが成功したか否かのチェックするチェック処理を行う。   The check command is a command for instructing the CPUs 11 and 21 to check whether or not the rewriting is successful by comparing the data written in the memories 12 and 22 with the data transmitted from the rewriting device 40. Therefore, each of the CPUs 11 and 21 performs a check process for checking whether or not the rewriting is successful when a check command is input.

本実施形態に係る書換装置40は、先ず、第2マイコン20に応じた書換コマンドとして、第2メモリ22に記憶された照合キーを含む書換コマンドを送信する。その後、書換装置40は、第1マイコン10に応じた書換コマンドとして、第1メモリ12に記憶された照合キーを含む書換コマンドを送信する。こうすることで、書換装置40は、メモリ12,22に記憶されたデータを、CPU11,21に順次一つずつ書き換えさせる。   First, the rewrite device 40 according to the present embodiment transmits a rewrite command including a verification key stored in the second memory 22 as a rewrite command corresponding to the second microcomputer 20. Thereafter, the rewrite device 40 transmits a rewrite command including a verification key stored in the first memory 12 as a rewrite command corresponding to the first microcomputer 10. By doing so, the rewriting device 40 causes the CPUs 11 and 21 to rewrite the data stored in the memories 12 and 22 one by one.

書換装置40は、図6及び図7に示すように、画面41を有する。画面41は、タッチパネルになっており、書き換え処理の判定と、どのマイコン10,20の書き換え処理を行うかを選択する選択スイッチと、書き換え開始を指示する開始スイッチと、を表示する。書換装置40は、図6及び図7に示すように、マイコン10,20の書き換え処理が異常であるのか、それとも、正常に終了したのかを画面41に表示する。   As shown in FIGS. 6 and 7, the rewriting device 40 has a screen 41. The screen 41 is a touch panel, and displays a determination of rewriting processing, a selection switch for selecting which microcomputer 10 or 20 to perform rewriting processing, and a start switch for instructing start of rewriting. As shown in FIGS. 6 and 7, the rewriting device 40 displays on the screen 41 whether the rewriting process of the microcomputers 10 and 20 is abnormal or has been completed normally.

書換装置40は、マイコン10,20の書き換え処理の終了状態に応じて、いずれのマイコン10,20の書き換え処理を再度行うかを設定するためのパラメータを有している。このパラメータは、ユーザーによって設定可能となっている。   The rewriting device 40 has a parameter for setting which of the microcomputers 10 and 20 is to be rewritten according to the end state of the rewriting process of the microcomputers 10 and 20. This parameter can be set by the user.

次に、本実施形態に係るCPU11,21の起動動作を図3に基づいて説明する。CPU11,21それぞれは、リセット信号の入力が解除されて起動すると、先ず、メモリ12,22の書き込み処理が正常に終了しているか否かを判定する。CPU11,21それぞれは、メモリ12,22の書き込み処理が正常に終了していないと判定した場合、ステップS20に移行し、メモリ12,22の書き込み処理が正常に終了していると判定した場合、ステップS40に移行する。以上が、ステップS10である。   Next, the starting operation of the CPUs 11 and 21 according to the present embodiment will be described with reference to FIG. When the reset signal input is canceled and the CPUs 11 and 21 are started up, the CPUs 11 and 21 first determine whether or not the writing process of the memories 12 and 22 has been completed normally. When each of the CPUs 11 and 21 determines that the writing process in the memories 12 and 22 has not been normally completed, the process proceeds to step S20, and when the CPU 11 and 21 determines that the writing process in the memories 12 and 22 has been normally completed. Control goes to step S40. The above is step S10.

ステップS20に移行すると、CPU11,21それぞれは、リプログモードに移行する。以上が、ステップS20である。   After shifting to step S20, each of the CPUs 11 and 21 shifts to the reprolog mode. The above is step S20.

ステップS20後、CPU11,21それぞれは、第2モード信号を判定部30に出力して、書き換え処理を行う。以上が、ステップS30である。   After step S20, each of the CPUs 11 and 21 outputs a second mode signal to the determination unit 30, and performs a rewrite process. The above is step S30.

これとは異なり、ステップS40に移行すると、CPU11,21それぞれは、アプリモードに移行する。以上が、ステップS40である。   In contrast, when the process proceeds to step S40, each of the CPUs 11 and 21 transitions to the application mode. The above is step S40.

ステップS40後、CPU11,21それぞれは、第1モード信号を判定部30に出力する。以上が、ステップS50である。   After step S40, each of the CPUs 11 and 21 outputs a first mode signal to the determination unit 30. The above is step S50.

ステップS50後、CPU11,21それぞれは、マイコン10,20間の通信が正常か否かを判定する。CPU11,21それぞれは、マイコン10,20間の通信が正常だと判定した場合、アプリモードを維持して、通常処理を行う。これとは異なり、CPU11,21それぞれは、マイコン10,20間の通信が正常ではないと判定した場合、ステップS70に移行する。以上が、ステップS60である。   After step S50, each of the CPUs 11 and 21 determines whether or not the communication between the microcomputers 10 and 20 is normal. When each of the CPUs 11 and 21 determines that communication between the microcomputers 10 and 20 is normal, the CPUs 11 and 21 perform normal processing while maintaining the application mode. On the other hand, if each of the CPUs 11 and 21 determines that the communication between the microcomputers 10 and 20 is not normal, the process proceeds to step S70. The above is step S60.

ところで、マイコン10,20間の通信が正常ではない場合とは、2つの場合が考えられる。1つは、マイコン10,20間の通信系統に異常がある場合で、これは、リセット処理を行うことで解消される。もう一つは、通信障害などによって、マイコン10,20の一方が、書き換えられたアプリに基づいてアプリモードになり、マイコン10,20の他方が、書き換えられていないアプリに基づいてアプリモードになった結果、マイコン10,20間で適した信号を受信しなかった場合である。これは、全てのマイコン10,20のアプリを同一のアプリ(相互関係が成立したアプリ)に書き換えることで解消される。以下、CPU11,21の起動動作の説明を再開する。   There are two cases where the communication between the microcomputers 10 and 20 is not normal. One is a case where there is an abnormality in the communication system between the microcomputers 10 and 20, and this is solved by performing a reset process. The other is that, due to a communication failure or the like, one of the microcomputers 10 and 20 enters the application mode based on the rewritten application, and the other of the microcomputers 10 and 20 enters the application mode based on the application that has not been rewritten. As a result, a suitable signal is not received between the microcomputers 10 and 20. This can be solved by rewriting the applications of all the microcomputers 10 and 20 to the same application (an application having a mutual relationship). Hereinafter, the description of the activation operation of the CPUs 11 and 21 is resumed.

ステップS70に移行すると、CPU11,21それぞれは、判定部30から第2制御信号が入力されているか否かを判定する。CPU11,21それぞれは、第2制御信号が入力されていると判定した場合、ステップS20に移行して、リプログモードに移行する。そして、上記したステップS30を経て、書き換え処理を行う。これとは異なり、CPU11,21それぞれは、第2制御信号が入力されていないと判定した場合、ステップS80に移行する。なお、CPU11,21それぞれが、第2制御信号が入力されていないと判定したということは、判定部30から第1制御信号が入力されている、ということであり、CPU11,21それぞれがアプリモードであることを示している。   In step S <b> 70, each of the CPUs 11 and 21 determines whether or not the second control signal is input from the determination unit 30. When each of the CPUs 11 and 21 determines that the second control signal is input, the CPU 11 and 21 shift to step S20 and shift to the reprogress mode. Then, the rewriting process is performed through step S30 described above. In contrast, if each of the CPUs 11 and 21 determines that the second control signal has not been input, the process proceeds to step S80. Note that each of the CPUs 11 and 21 determining that the second control signal is not input means that the first control signal is input from the determination unit 30, and each of the CPUs 11 and 21 is in the application mode. It is shown that.

ステップS80に移行すると、CPU11,21それぞれは、移行コマンドが第1所定時間以内に書換装置40から入力されたか否かを判定する。CPU11,21それぞれは、第1所定時間以内に移行コマンドが入力されたと判断した場合、ステップS20に移行して、リプログモードに移行する。そして、上記したステップS30を経て、書き換え処理を行う。これにより、全てのマイコン10,20のアプリが同一のアプリ(相互関係が成立したアプリ)に書き換えられる。これとは異なり、CPU11,21それぞれは、第1所定時間以内に移行コマンドが入力されなかったと判断した場合、CPU11,21の通信系統に異常が生じていると判断して、リセット処理(相手マイコンへのリセット発行)を行う。これにより、CPU11,21の通信系統の異常が解消される。   In step S80, each of the CPUs 11 and 21 determines whether or not a transfer command has been input from the rewrite device 40 within the first predetermined time. When each of the CPUs 11 and 21 determines that the shift command has been input within the first predetermined time, the CPU 11 and 21 shift to step S20 and shift to the reprogress mode. Then, the rewriting process is performed through step S30 described above. As a result, the applications of all the microcomputers 10 and 20 are rewritten to the same application (an application in which a mutual relationship is established). On the other hand, if each of the CPUs 11 and 21 determines that the transition command has not been input within the first predetermined time, it determines that an abnormality has occurred in the communication system of the CPUs 11 and 21, and reset processing (the counterpart microcomputer) Issue a reset to. Thereby, the abnormality of the communication system of CPU11,21 is eliminated.

次に、本実施形態に係る書換装置40の動作を図4及び図5に基づいて説明する。書換装置40は、先ず、書換指示が、ユーザーから入力されたか否かを判定する。ユーザーから書換指示が入力されていないと判定した場合、現在の状態を維持し、ユーザーから書換指示が入力されている判定した場合、ステップS220に移行する。以上が、ステップS210である。ユーザーは、書換装置40が有する画面41に表示されるスイッチを適宜タッチすることで、書換指示を書換装置40に入力する。書換対象は、全てのマイコン10,20の場合もあれば、マイコン10,20のいずれか一方の場合もある。   Next, the operation of the rewriting device 40 according to the present embodiment will be described with reference to FIGS. The rewrite device 40 first determines whether or not a rewrite instruction has been input from the user. When it is determined that no rewrite instruction is input from the user, the current state is maintained, and when it is determined that a rewrite instruction is input from the user, the process proceeds to step S220. The above is step S210. The user inputs a rewriting instruction to the rewriting device 40 by appropriately touching a switch displayed on the screen 41 of the rewriting device 40. The rewrite target may be all of the microcomputers 10 and 20, or may be one of the microcomputers 10 and 20.

ステップS220に移行すると、書換装置40は、移行コマンドをマイコン10,20それぞれに出力する。以上が、ステップS220である。   In step S220, the rewriting device 40 outputs a transfer command to each of the microcomputers 10 and 20. The above is step S220.

ステップS220後、書換装置40は、ユーザーの書換対象が、全てのマイコン10,20なのか、それとも、マイコン10,20のどちらか一方なのかを判定する。書換装置40は、書換対象が全てのマイコン10,20であると判定した場合、ステップS240に移行し、書換対象が第1マイコン10のみであると判定した場合、ステップS280に移行する。以上が、ステップS230である。   After step S220, the rewrite device 40 determines whether the user's rewrite target is all the microcomputers 10 and 20, or one of the microcomputers 10 and 20. The rewriting device 40 proceeds to step S240 when it is determined that the rewriting target is all the microcomputers 10 and 20, and proceeds to step S280 when it is determined that the rewriting target is only the first microcomputer 10. The above is step S230.

ステップS240に移行すると、書換装置40は、第2メモリ22に記憶された照合キーの含まれた照合コマンドを第2マイコン20に送信して、ステップS250に移行する。第2マイコン20は、照合コマンドに含まれる照合キーと第2メモリ22に記憶された照合キーとを照合し、両者が合致したと判定すると、書換装置40へ照合完了信号を返信する。   When the process proceeds to step S240, the rewriting device 40 transmits the collation command including the collation key stored in the second memory 22 to the second microcomputer 20, and the process proceeds to step S250. When the second microcomputer 20 collates the collation key included in the collation command with the collation key stored in the second memory 22 and determines that they match, it returns a collation completion signal to the rewriting device 40.

ステップS250において、書換装置40は、照合コマンドを送信してから、照合完了信号を第2所定時間以内に受信したか否かを判定する。書換装置40は、照合完了信号を第2所定時間以内に受信しなかったと判定した場合、第2マイコン20の書き換え処理(照合処理)は異常であると判定して、ステップS260に移行する。これとは異なり、書換装置40は、照合完了信号を第2所定時間以内に受信したと判定した場合、第2マイコン20の照合処理は正常に終了したと判定し、ステップS270に移行する。   In step S250, the rewriting device 40 determines whether or not the verification completion signal has been received within the second predetermined time after transmitting the verification command. If the rewriting device 40 determines that the collation completion signal has not been received within the second predetermined time, it determines that the rewriting process (collation process) of the second microcomputer 20 is abnormal, and proceeds to step S260. On the other hand, when it is determined that the verification completion signal is received within the second predetermined time, the rewriting device 40 determines that the verification processing of the second microcomputer 20 has ended normally, and proceeds to step S270.

ステップS260に移行すると、書換装置40は、第2マイコン20の書き換えは異常である旨を、画面41に表示する。そして、ステップS210に移行して、ユーザーの指示を待つ。   In step S260, the rewriting device 40 displays on the screen 41 that rewriting of the second microcomputer 20 is abnormal. Then, the process proceeds to step S210 and waits for a user instruction.

ステップS270に移行すると、書換装置40は、第2マイコン20に適した、消去コマンドと、書込コマンドと、チェックコマンドとを順次第2マイコン20に出力する。これにより、第2メモリ22のデータを書き換える。   In step S270, the rewrite device 40 sequentially outputs an erase command, a write command, and a check command suitable for the second microcomputer 20 to the second microcomputer 20. Thereby, the data in the second memory 22 is rewritten.

ステップS270後、ステップS280に移行すると、書換装置40は、第1メモリ12に記憶された照合キーの含まれた照合コマンドを第1マイコン10に送信して、ステップS290に移行する。第1マイコン10は、照合コマンドに含まれる照合キーと第1メモリ12に記憶された照合キーとを照合し、両者が合致したと判定すると、書換装置40へ照合完了信号を返信する。   When the process proceeds to step S280 after step S270, the rewriting device 40 transmits the collation command including the collation key stored in the first memory 12 to the first microcomputer 10, and the process proceeds to step S290. When the first microcomputer 10 collates the collation key included in the collation command with the collation key stored in the first memory 12 and determines that they match, it returns a collation completion signal to the rewriting device 40.

ステップS290において、書換装置40は、照合コマンドを送信してから、照合完了信号を第2所定時間以内に受信したか否かを判定する。書換装置40は、照合完了信号を第2所定時間以内に受信しなかったと判定した場合、第1マイコン10の書き換え処理(照合処理)は異常であると判定して、ステップS300に移行する。これとは異なり、書換装置40は、照合完了信号を第2所定時間以内に受信したと判定した場合、第1マイコン10の書き換え処理は正常に終了したと判定し、ステップS310に移行する。   In step S290, the rewriting device 40 determines whether or not the verification completion signal has been received within the second predetermined time after transmitting the verification command. If the rewriting device 40 determines that the verification completion signal has not been received within the second predetermined time, it determines that the rewrite processing (verification processing) of the first microcomputer 10 is abnormal, and proceeds to step S300. On the other hand, when it is determined that the verification completion signal is received within the second predetermined time, the rewriting device 40 determines that the rewriting process of the first microcomputer 10 has ended normally, and proceeds to step S310.

ステップS300に移行すると、書換装置40は、第1マイコン10の書き換えは異常である旨を、画面41に表示する。そして、ステップS210に移行して、ユーザーの指示を待つ。   In step S300, the rewriting device 40 displays on the screen 41 that the rewriting of the first microcomputer 10 is abnormal. Then, the process proceeds to step S210 and waits for a user instruction.

ステップS310に移行すると、書換装置40は、第1マイコン10に適した、消去コマンドと、書込コマンドと、チェックコマンドとを順次第1マイコン10に出力する。これにより、第1メモリ12のデータを書き換える。   In step S <b> 310, the rewriting device 40 sequentially outputs an erase command, a write command, and a check command suitable for the first microcomputer 10 to the first microcomputer 10. As a result, the data in the first memory 12 is rewritten.

ステップS310後、ステップS320に移行すると、書換装置40は、全てのマイコン10,20の書き換えが終了したか否かをチェックする。全てのマイコン10,20の書き換えが終了していないと判定した場合、書換装置40は、マイコン10,20の書き換えは異常である旨を、画面41に表示する。そして、ステップS210に移行して、ユーザーの指示を待つ。これとは異なり、マイコン10,20の書き換えが正常に終了したと判定した場合、書換装置40は、ステップS330に移行する。   In step S320 after step S310, the rewriting device 40 checks whether or not rewriting of all the microcomputers 10 and 20 has been completed. When it is determined that rewriting of all the microcomputers 10 and 20 has not been completed, the rewriting device 40 displays on the screen 41 that rewriting of the microcomputers 10 and 20 is abnormal. Then, the process proceeds to step S210 and waits for a user instruction. On the other hand, when it is determined that the rewriting of the microcomputers 10 and 20 has been normally completed, the rewriting device 40 proceeds to step S330.

ステップS330に移行すると、マイコン10,20の書き換えは正常に終了した旨を、画面41に表示する。そして、書き換えるためのコマンドのマイコン10,20への送信を終了する。   In step S330, a message indicating that the rewriting of the microcomputers 10 and 20 has been completed normally is displayed on the screen 41. Then, the transmission of the command for rewriting to the microcomputers 10 and 20 is terminated.

次に、本実施形態に係る制御システム100の作用効果を説明する。上記したように、CPU11,21それぞれは、アプリモードにおいて、マイコン10,20間の通信が正常ではないと判定した場合、書換装置40から移行コマンドが第1所定時間以内に入力されたか否かを判定する。そして、CPU11,21それぞれは、移行コマンドが第1所定時間以内に入力された場合、リプログモードに移行する。これによれば、通信障害などによって、第2マイコン20が、書き換えられたアプリに基づいて立ち上がり、第1マイコン10が、書き換えられていないアプリに基づいて立ち上がったとしても、各マイコン10,20のCPU11,21が、強制的にリプログモードに移行される。そのため、各マイコン10,20のメモリ12,22に記憶されたアプリが不一致となった結果、各マイコン10,20間で適した信号を送受信しなくなることが抑制される。この結果、各マイコン10,20にて誤動作が生じることが抑制される。   Next, effects of the control system 100 according to the present embodiment will be described. As described above, when each of the CPUs 11 and 21 determines that the communication between the microcomputers 10 and 20 is not normal in the application mode, whether or not the transition command is input from the rewriting device 40 within the first predetermined time is determined. judge. Then, each of the CPUs 11 and 21 shifts to the reprogress mode when the shift command is input within the first predetermined time. According to this, even if the second microcomputer 20 starts up based on the rewritten application and the first microcomputer 10 starts up based on the application that has not been rewritten due to a communication failure or the like, The CPUs 11 and 21 are forcibly shifted to the replog mode. Therefore, as a result of the mismatch between the apps stored in the memories 12 and 22 of the microcomputers 10 and 20, it is possible to prevent a suitable signal from being transmitted and received between the microcomputers 10 and 20. As a result, malfunctions in the microcomputers 10 and 20 are suppressed.

また、本実施形態に係る制御システム100によれば、通信障害などのため、第1マイコン10にて書き換え処理が正常に終了したが、第2マイコン20にて書き換えが未終了(書き換えが途中までした実施できていない状態)となった場合、各マイコン10,20それぞれの起動時に、第1マイコン10から第1モード信号が出力され、第2マイコン20から第2モード信号が出力される。この結果、判定部30から第2制御信号がCPU11,21に入力され、CPU11,21は、リプログモードに移行する。これとは逆に、第1マイコン10にて書き換え処理が未終了だが、第2マイコン20にて書き換えが正常に終了した場合、各マイコン10,20それぞれの起動時に、第1マイコン10から第2モード信号が出力され、第2マイコン20から第1モード信号が出力される。この結果、判定部30から第2制御信号がCPU11,21に入力され、CPU11,21は、リプログモードに移行する。   Further, according to the control system 100 according to the present embodiment, the rewriting process is normally completed in the first microcomputer 10 due to a communication failure or the like, but the rewriting is not completed in the second microcomputer 20 (the rewriting is halfway). When the microcomputers 10 and 20 are activated, the first microcomputer 10 outputs the first mode signal and the second microcomputer 20 outputs the second mode signal. As a result, the second control signal is input from the determination unit 30 to the CPUs 11 and 21, and the CPUs 11 and 21 enter the reprogress mode. On the contrary, if the rewriting process is not completed in the first microcomputer 10 but the rewriting is normally completed in the second microcomputer 20, the second microcomputer 20 starts the second process from the first microcomputer 10 to the second process. A mode signal is output, and a first mode signal is output from the second microcomputer 20. As a result, the second control signal is input from the determination unit 30 to the CPUs 11 and 21, and the CPUs 11 and 21 enter the reprogress mode.

これによれば、第1マイコン10と第2マイコン20それぞれが、通信障害のために、異なるモードで起動したとしても、同一のモードに移行される。そのため、マイコン10,20それぞれのモードが不一致となった結果、マイコン10,20間で適した信号を送受信しなくなることが抑制される。このため、マイコン10,20それぞれにて誤動作が生じることが抑制される。   According to this, even if each of the first microcomputer 10 and the second microcomputer 20 is activated in different modes due to communication failure, the first microcomputer 10 and the second microcomputer 20 are shifted to the same mode. Therefore, as a result of the mismatch between the modes of the microcomputers 10 and 20, it is possible to suppress the transmission and reception of suitable signals between the microcomputers 10 and 20. For this reason, it is suppressed that malfunction occurs in each of the microcomputers 10 and 20.

なお、マイコン10,20それぞれにて書き換え処理が正常に終了した場合、マイコン10,20それぞれの起動時に、マイコン10,20それぞれから第1モード信号が出力される。そのため、判定部30から第1制御信号がCPU11,21に入力され、CPU11,21それぞれは、アプリモードに移行する。これとは異なり、マイコン10,20それぞれにて書き換え処理が未終了の場合、マイコン10,20それぞれの起動時に、マイコン10,20それぞれから第2モード信号が出力される。そのため、判定部30から第2制御信号がCPU11,21に入力され、CPU11,21それぞれは、リプログモードに移行する。   If the rewriting process is normally completed in each of the microcomputers 10 and 20, the first mode signal is output from each of the microcomputers 10 and 20 when the microcomputers 10 and 20 are started up. Therefore, the first control signal is input from the determination unit 30 to the CPUs 11 and 21, and each of the CPUs 11 and 21 shifts to the application mode. On the other hand, when the rewriting process is not completed in each of the microcomputers 10 and 20, the second mode signal is output from each of the microcomputers 10 and 20 when the microcomputers 10 and 20 are activated. Therefore, the second control signal is input from the determination unit 30 to the CPUs 11 and 21, and each of the CPUs 11 and 21 shifts to the reprogress mode.

以上、示したように、第1マイコン10と第2マイコン20それぞれが、いかなるモードで起動したとしても、同一のモードに移行される。そのため、マイコン10,20それぞれのモードが不一致となった結果、マイコン10,20間で適した信号を送受信しなくなることが抑制される。このため、マイコン10,20それぞれにて誤動作が生じることが抑制される。   As described above, the first microcomputer 10 and the second microcomputer 20 are shifted to the same mode regardless of which mode is activated. Therefore, as a result of the mismatch between the modes of the microcomputers 10 and 20, it is possible to suppress the transmission and reception of suitable signals between the microcomputers 10 and 20. For this reason, it is suppressed that malfunction occurs in each of the microcomputers 10 and 20.

上記したように、判定部30により、第1マイコン10と第2マイコン20それぞれが、いかなるモードで起動したとしても、同一のモードに移行される。しかしながら、通信障害などによって、第2マイコン20が、書き換えられたアプリに基づいて立ち上がり、第1マイコン10が、書き換えられていないアプリに基づいて立ち上がった結果、同一のモードであるにも関わらず、マイコン10,20間で適した信号を送受信しなくなる虞がある。   As described above, regardless of the mode in which the first microcomputer 10 and the second microcomputer 20 are activated, the determination unit 30 shifts to the same mode. However, due to a communication failure or the like, the second microcomputer 20 rises based on the rewritten application, and the first microcomputer 10 rises based on the application that has not been rewritten. There is a possibility that a suitable signal may not be transmitted and received between the microcomputers 10 and 20.

また、制御システム100では、CPU11,21それぞれは、アプリモードにおいて、マイコン10,20間の通信が正常ではないと判定した場合、書換装置40から移行コマンドが第1所定時間以内に入力されたか否かを判定する。そして、CPU11,21それぞれは、移行コマンドが第1所定時間以内に入力された場合、リプログモードに移行する。これによれば、通信障害などによって、第2マイコン20が、書き換えられたアプリに基づいて立ち上がり、第1マイコン10が、書き換えられていないアプリに基づいて立ち上がったとしても、各マイコン10,20のCPU11,21が、強制的にリプログモードに移行される。そのため、各マイコン10,20のメモリ12,22に記憶されたアプリが不一致となった結果、各マイコン10,20間で適した信号を送受信しなくなることが抑制される。この結果、各マイコン10,20にて誤動作が生じることが抑制される。   Further, in the control system 100, when each of the CPUs 11 and 21 determines that the communication between the microcomputers 10 and 20 is not normal in the application mode, whether or not the transition command is input from the rewriting device 40 within the first predetermined time. Determine whether. Then, each of the CPUs 11 and 21 shifts to the reprogress mode when the shift command is input within the first predetermined time. According to this, even if the second microcomputer 20 starts up based on the rewritten application and the first microcomputer 10 starts up based on the application that has not been rewritten due to a communication failure or the like, The CPUs 11 and 21 are forcibly shifted to the replog mode. Therefore, as a result of the mismatch between the apps stored in the memories 12 and 22 of the microcomputers 10 and 20, it is possible to prevent a suitable signal from being transmitted and received between the microcomputers 10 and 20. As a result, malfunctions in the microcomputers 10 and 20 are suppressed.

CPU11,21それぞれは、ステップS70にて、判定部30から第2制御信号が入力されているか否かを判定する。そして、CPU11,21それぞれは、第2制御信号が入力されていると判定した場合、ステップS20に移行して、リプログモードに移行する。また、CPU11,21それぞれは、第2制御信号が入力されていないと判定した場合、ステップS80に移行して、移行コマンドが第1所定時間以内に書換装置40から入力されたか否かを判定する。そして、CPU11,21それぞれは、第1所定時間以内に移行コマンドが入力されたと判断した場合、ステップS20に移行して、リプログモードに移行する。   Each of the CPUs 11 and 21 determines whether or not the second control signal is input from the determination unit 30 in step S70. When each of the CPUs 11 and 21 determines that the second control signal is input, the CPU 11 and 21 shift to step S20 and shift to the reprogress mode. If each of the CPUs 11 and 21 determines that the second control signal has not been input, the process proceeds to step S80 to determine whether or not the transfer command has been input from the rewrite device 40 within the first predetermined time. . If each of the CPUs 11 and 21 determines that the shift command has been input within the first predetermined time, the CPU 11 and 21 shift to step S20 and shift to the reprogress mode.

通信障害などによって、リプログラミングが未終了のマイコンが生じる方が、リプログラミングが全く行われないマイコンが生じるよりも、起こり易い。換言すれば、書き換えられたアプリに基づいて第2CPU21が起動し、アプリが書き換え途中であるために、リプログに基づいて第1CPU11が起動する方が、書き換えられたアプリに基づいて第2CPU21が起動し、全く書き換えられてないアプリに基づいて第1CPU11が起動するよりも、起こり易い。したがって、上記のように、先ず、ステップS70にて、リプログラミングが未終了のマイコンが生じた場合に、強制的にリプログモードに移行させ、その後、リプログラミングが全く行われないマイコンが生じた場合に、ステップS80にて、強制的にリプログモードに移行させる。   The occurrence of a microcomputer that has not been reprogrammed due to a communication failure or the like is more likely to occur than a microcomputer that is not reprogrammed at all. In other words, since the second CPU 21 is activated based on the rewritten application and the application is in the middle of rewriting, the second CPU 21 is activated based on the rewritten application when the first CPU 11 is activated based on the reprogram. This is more likely to occur than when the first CPU 11 is activated based on an application that has not been rewritten at all. Therefore, as described above, first, in step S70, when a microcomputer that has not been reprogrammed is generated, the microcomputer is forcibly shifted to the reprogram mode, and then a microcomputer that is not reprogrammed at all is generated. In step S80, the mode is forcibly shifted to the reprogress mode.

CPU11,21それぞれは、ステップS60において、マイコン10,20間の通信が正常か否かを判定する。そして、CPU11,21それぞれは、マイコン10,20間の通信が正常ではないと判定した場合、ステップS70に移行する。その後、CPU11,21それぞれは、ステップS80において、移行コマンドが第1所定時間以内に書換装置40から入力されたか否かを判定する。そして、CPU11,21それぞれは、第1所定時間以内に移行コマンドが入力されなかったと判断した場合、リセット処理(相手マイコンへのリセット発行)を行う。   In step S60, each of the CPUs 11 and 21 determines whether or not the communication between the microcomputers 10 and 20 is normal. If each of the CPUs 11 and 21 determines that the communication between the microcomputers 10 and 20 is not normal, the process proceeds to step S70. Thereafter, each of the CPUs 11 and 21 determines whether or not the migration command is input from the rewrite device 40 within the first predetermined time in step S80. If each of the CPUs 11 and 21 determines that the transition command has not been input within the first predetermined time, it performs a reset process (issues a reset to the counterpart microcomputer).

マイコン10,20間の通信が正常ではなく、第1所定時間以内に移行コマンドが入力されない、ということは、マイコン10,20の通信系統に異常があるということである。したがって、上記したリセット処理により、CPU11,21の通信系統の異常が解消される。   The fact that the communication between the microcomputers 10 and 20 is not normal and the transfer command is not input within the first predetermined time means that there is an abnormality in the communication system of the microcomputers 10 and 20. Therefore, the abnormality in the communication system of the CPUs 11 and 21 is resolved by the reset process described above.

書換装置40は、画面41を有する。画面41には、マイコン10,20の書き換え処理が異常であるのか、それとも、正常に終了したのかが表示される。これにより、書き換え処理が正常に終了したか否かがユーザーに認識される。   The rewriting device 40 has a screen 41. The screen 41 displays whether the rewriting process of the microcomputers 10 and 20 is abnormal or has ended normally. Thereby, the user recognizes whether or not the rewriting process has been normally completed.

画面41は、タッチパネルになっており、画面41には、書き換え処理の判定とともに、どのマイコン10,20の書き換え処理を行うかを選択する選択スイッチと、書き換え開始を指示する開始スイッチと、が表示される。これにより、ユーザーによって、書き換え処理の対象とするマイコンを選択することができる。そのため、全てのマイコンを書き換え処理の対象とする構成と比べて、書き換え処理の時間が短くなる。   The screen 41 is a touch panel. The screen 41 displays a selection switch for selecting which microcomputer 10 or 20 to perform the rewriting process and a start switch for instructing the start of the rewriting along with the determination of the rewriting process. Is done. As a result, the user can select a microcomputer to be rewritten. Therefore, the time for the rewriting process is shortened as compared with the configuration in which all the microcomputers are subjected to the rewriting process.

書換装置40は、マイコン10,20の書き換え処理の終了状態に応じて、いずれのマイコン10,20の書き換え処理を再度行うかを設定するためのパラメータを有している。このパラメータは、ユーザーによって設定可能となっている。これにより、ユーザーの嗜好に応じて、マイコンの書き換え処理の対象がオートで選択され、書き換え処理がオートで行われる。例えば、第2マイコン20の書き換え処理が正常に終了し、第1マイコン10の書き換え処理が異常となった場合、第1マイコン10のみを再度書き換え処理するように、パラメータを設定することができる。   The rewriting device 40 has a parameter for setting which of the microcomputers 10 and 20 is to be rewritten according to the end state of the rewriting process of the microcomputers 10 and 20. This parameter can be set by the user. Thereby, the target of the rewriting process of the microcomputer is automatically selected according to the user's preference, and the rewriting process is automatically performed. For example, when the rewriting process of the second microcomputer 20 ends normally and the rewriting process of the first microcomputer 10 becomes abnormal, the parameter can be set so that only the first microcomputer 10 is rewritten.

(第2実施形態)
次に、本発明の第2実施形態を、図8及び図9に基づいて説明する。第2実施形態に係る制御システム100は、第1実施形態によるものと共通するところが多いので、以下、共通部分については詳しい説明を省略し、異なる部分を重点的に説明する。なお、第1実施形態で示した要素と同一の要素には、同一の符号を付与している。
(Second Embodiment)
Next, a second embodiment of the present invention will be described with reference to FIGS. Since the control system 100 according to the second embodiment is often in common with the control system 100 according to the first embodiment, the detailed description of the common parts will be omitted below, and different parts will be described mainly. In addition, the same code | symbol is provided to the element same as the element shown in 1st Embodiment.

第1実施形態では、書換装置40は、CPU11,21それぞれに、移行コマンドを出力する例を示した。これに対して、本実施形態では、書換装置40は、図8に示すように、第1CPU11のみに、移行コマンドを出力する点を特徴とする。この場合、移行コマンドの入力のためにリプログモードに移行された第1CPU11から出力された第2モード信号が、判定部30に入力される。この結果、判定部30から出力された第2制御信号が、第2CPU21に入力される。これにより、第2CPU21がリプログモードに移行する。これによれば、書換装置40が、CPU11,21それぞれに、CPU11,21それぞれに適した移行コマンドを出力する構成とは異なり、移行コマンドの数が低減される。この結果、書換装置40の設計が簡素化され、書換装置40の品質をチェックする時間が短くなる。   In the first embodiment, an example in which the rewriting device 40 outputs a migration command to each of the CPUs 11 and 21 has been described. In contrast, the present embodiment is characterized in that the rewriting device 40 outputs a migration command only to the first CPU 11 as shown in FIG. In this case, the second mode signal output from the first CPU 11 that has been shifted to the reprogress mode for the input of the shift command is input to the determination unit 30. As a result, the second control signal output from the determination unit 30 is input to the second CPU 21. As a result, the second CPU 21 shifts to the replog mode. According to this, unlike the configuration in which the rewriting device 40 outputs a migration command suitable for each of the CPUs 11 and 21 to each of the CPUs 11 and 21, the number of migration commands is reduced. As a result, the design of the rewriting device 40 is simplified, and the time for checking the quality of the rewriting device 40 is shortened.

なお、この場合、第2CPU21は、図9に示すように、ステップS70において、第3所定時間以内に第2制御信号が入力されるか否かを判定する。第3所定時間以内に第2制御信号が入力された場合、第2CPU21は、リプログモードに移行する。第3所定時間以内に第2制御信号が入力されなかった場合、第2CPU21は、リセット処理を行う。   In this case, as shown in FIG. 9, in step S70, the second CPU 21 determines whether or not the second control signal is input within the third predetermined time. When the second control signal is input within the third predetermined time, the second CPU 21 shifts to the replog mode. When the second control signal is not input within the third predetermined time, the second CPU 21 performs a reset process.

本実施形態では、書換装置40が、第1CPU11のみに移行コマンドを出力する例を示した。しかしながら、書換装置40が、第2CPU21のみに移行コマンドを出力する構成を採用することもできる。この場合、第1CPU11が、図9に示す処理を行う。   In this embodiment, the rewriting apparatus 40 showed the example which outputs a transfer command only to 1st CPU11. However, a configuration in which the rewriting device 40 outputs a migration command only to the second CPU 21 may be employed. In this case, the first CPU 11 performs the process shown in FIG.

以上、本発明の好ましい実施形態について説明したが、本発明は上記した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することが可能である。   The preferred embodiments of the present invention have been described above. However, the present invention is not limited to the above-described embodiments, and various modifications can be made without departing from the spirit of the present invention.

各実施形態では、制御システム100が判定部30を有する例を示した。しかしながら、図10〜図12に示すように、制御システム100は、判定部30を有していなくともよい。この場合においても、通信障害などによって、第2マイコン20が、書き換えられたアプリに基づいて立ち上がり、第1マイコン10が、書き換えられていないアプリに基づいて立ち上がったとしても、各マイコン10,20のCPU11,21が、書換装置40から出力された移行コマンドによって、強制的にリプログモードに移行される。そのため、各マイコン10,20のメモリ12,22に記憶されたアプリが不一致となった結果、各マイコン10,20間で適した信号を送受信しなくなることが抑制される。この結果、各マイコン10,20にて誤動作が生じることが抑制される。なお、この変形例の場合、CPU11,21それぞれは、起動処理において、判定部30と関わりのある処理を行わなくなる。具体的に言えば、図12に示すように、ステップS30,S50,S70を行わなくなる。   In each embodiment, the example which the control system 100 has the determination part 30 was shown. However, as illustrated in FIGS. 10 to 12, the control system 100 may not include the determination unit 30. Even in this case, even if the second microcomputer 20 starts up based on the rewritten application and the first microcomputer 10 starts up based on the application that has not been rewritten due to a communication failure or the like, The CPUs 11 and 21 are forcibly shifted to the replog mode by the transfer command output from the rewriting device 40. Therefore, as a result of the mismatch between the apps stored in the memories 12 and 22 of the microcomputers 10 and 20, it is possible to prevent a suitable signal from being transmitted and received between the microcomputers 10 and 20. As a result, malfunctions in the microcomputers 10 and 20 are suppressed. In the case of this modification, each of the CPUs 11 and 21 does not perform a process related to the determination unit 30 in the startup process. Specifically, as shown in FIG. 12, steps S30, S50, and S70 are not performed.

各実施形態では、第2マイコン20の書き換え処理をした後、第1マイコン10の書き換え処理を行う例を示した。しかしながら、これとは逆に、第1マイコン10の書き換え処理をした後、第2マイコン20の書き換え処理を行ってもよい。   In each embodiment, the example which performs the rewriting process of the 1st microcomputer 10 after performing the rewriting process of the 2nd microcomputer 20 was shown. However, on the contrary, the rewriting process of the second microcomputer 20 may be performed after the rewriting process of the first microcomputer 10.

各実施形態では、制御システム100が2つのマイコン10,20を有する例を示した。しかしながら、マイコンの数としては複数であればよく、制御システム100が3つ以上のマイコンを有する構成を採用することもできる。   In each embodiment, the example which the control system 100 has the two microcomputers 10 and 20 was shown. However, the number of microcomputers may be plural, and a configuration in which the control system 100 includes three or more microcomputers may be employed.

各実施形態では、第1モード信号がLo信号であり、第2モード信号がHi信号である例を示した。しかしながら、第1モード信号がHi信号であり、第2モード信号がLo信号であってもよい。   In each embodiment, the first mode signal is the Lo signal, and the second mode signal is the Hi signal. However, the first mode signal may be a Hi signal and the second mode signal may be a Lo signal.

各実施形態では、第1制御信号がLo信号であり、第2制御信号がHi信号である例を示した。しかしながら、第1制御信号がHi信号であり、第2制御信号がLo信号であってもよい。   In each embodiment, the example in which the first control signal is the Lo signal and the second control signal is the Hi signal has been described. However, the first control signal may be a Hi signal and the second control signal may be a Lo signal.

各実施形態では、判定部30がORを含む例を示した。しかしながら、図示しないが、判定部30がNOR、NAND、若しくは、ANDを含む構成を採用することもできる。なお、判定部30がNORを含む場合、第1モード信号がLo信号、第2モード信号がHi信号となり、第1制御信号がHi信号、第2制御信号がLo信号となる。判定部30がNANDを含む場合、第1モード信号がHi信号、第2モード信号がLo信号となり、第1制御信号がLo信号、第2制御信号がHi信号となる。そして、判定部30がANDを含む場合、第1モード信号がHi信号、第2モード信号がLo信号となり、第1制御信号がHi信号、第2制御信号がLo信号となる。   In each embodiment, the determination part 30 showed the example containing OR. However, although not illustrated, a configuration in which the determination unit 30 includes NOR, NAND, or AND may be employed. When the determination unit 30 includes NOR, the first mode signal is the Lo signal, the second mode signal is the Hi signal, the first control signal is the Hi signal, and the second control signal is the Lo signal. When the determination unit 30 includes a NAND, the first mode signal is a Hi signal, the second mode signal is a Lo signal, the first control signal is a Lo signal, and the second control signal is a Hi signal. When the determination unit 30 includes AND, the first mode signal is the Hi signal, the second mode signal is the Lo signal, the first control signal is the Hi signal, and the second control signal is the Lo signal.

10・・・第1マイコン
11・・・第1CPU
12・・・第1メモリ
20・・・第2マイコン
21・・・第2CPU
22・・・第2メモリ
40・・・書換装置
100・・・制御システム
10 ... 1st microcomputer 11 ... 1st CPU
12 ... 1st memory 20 ... 2nd microcomputer 21 ... 2nd CPU
22 ... second memory 40 ... rewrite device 100 ... control system

Claims (12)

データとしてアプリケーションソフト及びリプログラミングソフトが記憶されたメモリ(12,22)と、前記アプリケーションソフト若しくは前記リプログラミングソフトに基づいて動作するCPU(11,21)と、を有する複数のマイコン(10,20)、及び、複数の前記マイコンそれぞれのメモリに記憶された前記データを書き換えるためのコマンドを前記マイコンに送信する書換装置(40)を備える制御システムであって、
前記書換装置は、前記コマンドとして、
前記アプリケーションソフトに基づいて動作するアプリモードから、前記リプログラミングソフトに基づいて動作するリプログモードへの移行を前記CPUに指示する移行コマンドと、
前記メモリのデータの書き換え処理を前記CPUに指示する書換コマンドと、を有し、
前記書換装置は、前記移行コマンドを送信した後、複数の前記マイコンそれぞれに応じた前記書換コマンドを順次送信することで、複数の前記マイコンそれぞれのメモリに記憶された前記データを順次一つずつ書き換えることを前記CPUに指示し、
複数の前記マイコンそれぞれのCPUは、
自身が前記アプリモードの場合、複数の前記マイコン間の通信が正常か否かを判定し、
通信が正常だと判定した場合、前記アプリモードを維持し、
通信が正常ではないと判定した場合、前記書換装置から前記移行コマンドが第1所定時間以内に入力されたか否かを判定し、
前記移行コマンドが前記第1所定時間以内に入力された場合、前記リプログモードに移行することを特徴とする制御システム。
A plurality of microcomputers (10, 20) having memories (12, 22) in which application software and reprogramming software are stored as data, and CPUs (11, 21) operating based on the application software or the reprogramming software ), And a control system comprising a rewriting device (40) for transmitting a command for rewriting the data stored in the memory of each of the plurality of microcomputers to the microcomputer,
The rewriting device has the command as
A transition command for instructing the CPU to transition from an application mode that operates based on the application software to a reprogram mode that operates based on the reprogramming software;
A rewrite command for instructing the CPU to rewrite data in the memory,
The rewrite device sequentially rewrites the data stored in the memory of each of the plurality of microcomputers one by one by sequentially transmitting the rewrite command corresponding to each of the plurality of microcomputers after transmitting the migration command. To the CPU,
The CPU of each of the plurality of microcomputers is
If the device itself is in the application mode, determine whether or not the communication between the plurality of microcomputers is normal,
If it is determined that the communication is normal, the application mode is maintained,
If it is determined that the communication is not normal, it is determined whether or not the transition command is input from the rewriting device within a first predetermined time,
When the transition command is input within the first predetermined time, the control system shifts to the replog mode.
複数の前記マイコンそれぞれのCPUが、前記アプリモードであるのか、それとも、前記リプログモードであるのかを判定する判定部(30)を有し、
前記判定部は、
複数の前記マイコンのCPUの全てが前記アプリモードであると判定した場合、複数の前記マイコンのCPUの全てに、前記アプリモードに移行する指示を含む第1制御信号を出力し、
複数の前記マイコンのCPUの少なくとも1つが前記リプログモードであると判定した場合、複数の前記マイコンのCPUの全てに、前記リプログモードに移行する指示を含む第2制御信号を出力することを特徴とする請求項1に記載の制御システム。
The CPU of each of the plurality of microcomputers includes a determination unit (30) that determines whether the application mode or the reprolog mode is set,
The determination unit
When it is determined that all of the CPUs of the plurality of microcomputers are in the application mode, a first control signal including an instruction to shift to the application mode is output to all of the CPUs of the plurality of microcomputers,
When it is determined that at least one of the CPUs of the plurality of microcomputers is in the reprolog mode, a second control signal including an instruction to shift to the reprolog mode is output to all of the CPUs of the plurality of microcomputers. The control system according to claim 1.
複数の前記マイコンそれぞれのCPUは、前記アプリモードの場合、複数の前記マイコン間の通信が正常か否かを判定する前に、自身が前記アプリモードである旨を含む第1モード信号を前記判定部に出力し、前記リプログモードの場合、前記書き換え処理を行う前に、自身が前記リプログモードである旨を含む第2モード信号を前記判定部に出力し、
前記判定部は、複数の前記マイコンのCPUの全てから前記第1モード信号が入力された場合、複数の前記マイコンのCPUの全てに、前記第1制御信号を出力し、複数の前記マイコンのCPUの少なくとも1つから前記第2モード信号が入力された場合、複数の前記マイコンのCPUの全てに、前記第2制御信号を出力することを特徴とする請求項2に記載の制御システム。
In the application mode, the CPU of each of the plurality of microcomputers determines the first mode signal including the fact that it is in the application mode before determining whether communication between the plurality of microcomputers is normal. In the case of the reprogress mode, before performing the rewriting process, the second mode signal including the fact that it is the reprolog mode is output to the determination unit,
When the first mode signal is input from all of the CPUs of the plurality of microcomputers, the determination unit outputs the first control signal to all of the CPUs of the plurality of microcomputers. 3. The control system according to claim 2, wherein when the second mode signal is input from at least one of the plurality of microcomputers, the second control signal is output to all of the CPUs of the plurality of microcomputers.
前記書換装置は、複数の前記マイコンの内の1つに前記移行コマンドを出力しており、
前記移行コマンドの入力のために前記リプログモードに移行されたマイコンから前記第2モード信号が前記判定部に入力され、前記判定部から前記第2制御信号が自身に入力されることで、前記移行コマンドが入力されないマイコンは、前記リプログモードに移行することを特徴とする請求項3に記載の制御システム。
The rewriting device outputs the migration command to one of the plurality of microcomputers,
The second mode signal is input to the determination unit from the microcomputer that has been shifted to the reprogress mode for inputting the shift command, and the second control signal is input to the determination unit from the determination unit. 4. The control system according to claim 3, wherein a microcomputer to which no command is input shifts to the reprolog mode.
複数の前記マイコンそれぞれのCPUは、
通信が正常ではないと判定した場合、前記書換装置から、前記移行コマンドが前記第1所定時間以内に入力されたか否かを判定する前に、前記判定部から、前記第2制御信号が入力されたか否かを判定し、
前記第2制御信号が入力されたと判定した場合、前記リプログモードに移行し、
前記第2制御信号が入力されなかったと判定した場合、前記書換装置から、前記移行コマンドが前記第1所定時間以内に入力されたか否かを判定することを特徴とする請求項2〜4いずれか1項に記載の制御システム。
The CPU of each of the plurality of microcomputers is
When it is determined that the communication is not normal, the second control signal is input from the determination unit before determining whether the transition command is input within the first predetermined time from the rewriting device. Whether or not
When it is determined that the second control signal has been input, the mode proceeds to the reprogress mode,
5. The method according to claim 2, wherein when it is determined that the second control signal is not input, it is determined whether or not the transition command is input within the first predetermined time from the rewriting device. The control system according to item 1.
複数の前記マイコンそれぞれのCPUは、前記移行コマンドが前記第1所定時間以内に入力されなかった場合、自身と電気的に接続された前記CPUにリセット信号の送信指示を含む指示信号を出力することを特徴とする請求項1〜5いずれか1項に記載の制御システム。   The CPU of each of the plurality of microcomputers outputs an instruction signal including a reset signal transmission instruction to the CPU electrically connected to the CPU when the transition command is not input within the first predetermined time. The control system according to claim 1, wherein: 複数の前記マイコンそれぞれは、互いに異なる照合キーを有しており、
前記書換装置は、前記書換コマンドとして、
複数の前記マイコンの内の一つが有する前記照合キーを含み、この照合キーと自身が有する前記照合キーとが合致した場合、前記書換装置への照合完了信号の返信を前記CPUに指示する照合コマンドと、
前記メモリに記憶されたデータの消去を前記CPUに指示する消去コマンドと、
前記メモリへの新たなデータの書き込みを前記CPUに指示する書込コマンドと、を有し、
前記書換装置は、複数の前記マイコンそれぞれに応じた前記書換コマンドとして、複数の前記マイコンそれぞれが有する前記照合キーを含む前記書換コマンドを順次送信することで、複数の前記マイコンそれぞれのメモリに記憶された前記データを順次一つずつ書き換えることを特徴とする請求項1〜6いずれか1項に記載の制御システム。
Each of the plurality of microcomputers has a different verification key,
The rewriting device, as the rewriting command,
A verification command including the verification key of one of the plurality of microcomputers, and instructing the CPU to return a verification completion signal to the rewriting device when the verification key and the verification key of the microcomputer match. When,
An erase command for instructing the CPU to erase the data stored in the memory;
A write command for instructing the CPU to write new data to the memory,
The rewriting device sequentially stores the rewrite command including the verification key of each of the plurality of microcomputers as the rewrite command corresponding to each of the plurality of microcomputers, and is stored in the memory of each of the plurality of microcomputers. The control system according to claim 1, wherein the data is rewritten one by one sequentially.
前記書換装置は、
前記照合コマンドを送信してから、前記照合完了信号を第2所定時間以内に受信したか否かを判定し、
前記照合完了信号を前記第2所定時間以内に受信したと判定した場合、前記照合完了信号を送信したマイコンの書き換え処理は正常に終了したと判定し、
前記照合完了信号を前記第2所定時間以内に受信しなかったと判定した場合、前記照合完了信号を送信したマイコンの書き換え処理は異常であると判定することを特徴とする請求項7に記載の制御システム。
The rewriting device is:
Determining whether or not the verification completion signal is received within a second predetermined time after transmitting the verification command;
If it is determined that the verification completion signal has been received within the second predetermined time, it is determined that the rewriting process of the microcomputer that has transmitted the verification completion signal has ended normally;
8. The control according to claim 7, wherein if it is determined that the verification completion signal has not been received within the second predetermined time, it is determined that the rewriting process of the microcomputer that has transmitted the verification completion signal is abnormal. system.
前記書換装置は、前記書き換え処理の判定を表示する画面(41)を有し、
前記書換装置は、前記照合完了信号を送信したマイコンの書き換え処理は正常に終了したと判定した場合、その旨を前記画面に表示することを特徴とする請求項8に記載の制御システム。
The rewriting device has a screen (41) for displaying the determination of the rewriting process,
9. The control system according to claim 8, wherein when the rewriting device determines that the rewriting process of the microcomputer that has transmitted the verification completion signal has been normally completed, the rewriting device displays that effect on the screen.
前記書換装置は、前記照合完了信号を送信したマイコンの書き換え処理は異常であると判定した場合、その旨を前記画面に表示することを特徴とする請求項9に記載の制御システム。   10. The control system according to claim 9, wherein when the rewriting device determines that the rewriting process of the microcomputer that has transmitted the verification completion signal is abnormal, the rewriting device displays the fact on the screen. 前記画面は、タッチパネルになっており、
前記画面には、複数の前記マイコンの内、いずれのマイコンの書き換え処理を行うかを選択する選択スイッチが表示されることを特徴とする請求項10に記載の制御システム。
The screen is a touch panel,
The control system according to claim 10, wherein a selection switch for selecting which of the plurality of microcomputers is to be rewritten is displayed on the screen.
前記書換装置は、複数の前記マイコンの書き換え処理の終了状態に応じて、いずれのマイコンの書き換え処理を再度行うかを設定するためのパラメータを有し、該パラメータは、ユーザーによって設定可能となっていることを特徴とする請求項1〜11のいずれか1項に記載の制御システム。   The rewriting device has a parameter for setting which microcomputer rewrite process is to be performed again according to the completion state of the rewrite process of the plurality of microcomputers, and the parameter can be set by the user. The control system according to any one of claims 1 to 11, wherein:
JP2013036051A 2013-02-26 2013-02-26 Control system Active JP5920243B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013036051A JP5920243B2 (en) 2013-02-26 2013-02-26 Control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013036051A JP5920243B2 (en) 2013-02-26 2013-02-26 Control system

Publications (2)

Publication Number Publication Date
JP2014164596A true JP2014164596A (en) 2014-09-08
JP5920243B2 JP5920243B2 (en) 2016-05-18

Family

ID=51615131

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013036051A Active JP5920243B2 (en) 2013-02-26 2013-02-26 Control system

Country Status (1)

Country Link
JP (1) JP5920243B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004028000A (en) * 2002-06-27 2004-01-29 Mitsubishi Electric Corp Memory rewriting device of on-vehicle ecu by communication
JP2008165729A (en) * 2006-12-07 2008-07-17 Denso Corp Microcomputer
JP2008242995A (en) * 2007-03-28 2008-10-09 Denso Corp Electronic control device
JP2012098955A (en) * 2010-11-02 2012-05-24 Denso Corp Electronic control device
JP2014099099A (en) * 2012-11-15 2014-05-29 Denso Corp Control system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004028000A (en) * 2002-06-27 2004-01-29 Mitsubishi Electric Corp Memory rewriting device of on-vehicle ecu by communication
JP2008165729A (en) * 2006-12-07 2008-07-17 Denso Corp Microcomputer
JP2008242995A (en) * 2007-03-28 2008-10-09 Denso Corp Electronic control device
JP2012098955A (en) * 2010-11-02 2012-05-24 Denso Corp Electronic control device
JP2014099099A (en) * 2012-11-15 2014-05-29 Denso Corp Control system

Also Published As

Publication number Publication date
JP5920243B2 (en) 2016-05-18

Similar Documents

Publication Publication Date Title
JP5623593B2 (en) Rack and method for simultaneously updating a basic input / output system
JP2006065857A (en) Method and device for forcibly downloading program in mobile communication terminal
CN112947977A (en) Software online upgrading method and system
US20130080751A1 (en) Method and device for updating bios program for computer system
JP5880862B2 (en) Control system
CN112306937B (en) Setting selection circuit, method, device and medium for mainboard device in server
JP6001962B2 (en) Inverter device
CN112925569A (en) Firmware data processing method, device, equipment and storage medium
CN103593252A (en) Memorizer having dynamic error detecting and correcting function
JP5920243B2 (en) Control system
JP2009009323A (en) Setting device, electronic equipment, and setting program
JP6301820B2 (en) Reprogramming system
JP2012118904A (en) Information processing apparatus
JP6021597B2 (en) Information processing apparatus, information processing method, and computer program
US20140181492A1 (en) Method of booting an electronic system and an electronic system applying the same
JP5158883B2 (en) Firmware update method and firmware update apparatus
JP2010117944A (en) Software update system, software update method, mobile phone terminal, and program
JPWO2016136014A1 (en) Surveillance recorder
JP5535090B2 (en) Display device and screen data creation device for display device
JP2016057817A (en) Information processing device
JP2017123017A (en) Electronic equipment and program update method
JP5484641B1 (en) Programmable display
CN113467842B (en) Method for starting embedded device suitable for industrial application scene, embedded device and computer readable storage medium
JP5774941B2 (en) Configuration device and configuration method
JP2018181167A (en) Electronic controller

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150417

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20151228

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160126

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160229

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160328

R151 Written notification of patent or utility model registration

Ref document number: 5920243

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

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250