Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP5880862B2 - Control system - Google Patents
[go: Go Back, main page]

JP5880862B2 - Control system - Google Patents

Control system Download PDF

Info

Publication number
JP5880862B2
JP5880862B2 JP2012251400A JP2012251400A JP5880862B2 JP 5880862 B2 JP5880862 B2 JP 5880862B2 JP 2012251400 A JP2012251400 A JP 2012251400A JP 2012251400 A JP2012251400 A JP 2012251400A JP 5880862 B2 JP5880862 B2 JP 5880862B2
Authority
JP
Japan
Prior art keywords
mode
signal
microcomputers
control signal
cpus
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.)
Active
Application number
JP2012251400A
Other languages
Japanese (ja)
Other versions
JP2014099099A (en
Inventor
上原 一浩
一浩 上原
荒井 総一郎
総一郎 荒井
祐樹 両角
祐樹 両角
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
Toyota Motor Corp
Original Assignee
Denso Corp
Toyota Motor 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, Toyota Motor Corp filed Critical Denso Corp
Priority to JP2012251400A priority Critical patent/JP5880862B2/en
Publication of JP2014099099A publication Critical patent/JP2014099099A/en
Application granted granted Critical
Publication of JP5880862B2 publication Critical patent/JP5880862B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Multi Processors (AREA)
  • Microcomputers (AREA)
  • Stored Programmes (AREA)

Description

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

従来、例えば特許文献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

上記したように、従来、複数のマイクロコンピュータそれぞれに内蔵された不揮発性メモリのデータを書き換える電子制御装置が記載されている。このような電子制御装置では、複数のマイクロコンピュータの内、少なくとも1つのマイクロコンピュータの不揮発性メモリに記憶されたデータを更新する際、全てのマイクロコンピュータは、通常処理を行う通常動作モードから、データの書き換え処理を行う書き換えモードに移行する。このデータ書き換え時に、通信障害などが起きて、各マイクロコンピュータが落ちると、幾つかのマイクロコンピュータで書き換えが未終了のままとなる。この状態で電子制御装置が再起動されると、あるマイクロコンピュータは書き換えモードで立ち上がり、他のマイクロコンピュータは通常動作モードで立ち上がる。   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, when updating the data stored in the nonvolatile memory of at least one of the plurality of microcomputers, all the microcomputers start from the normal operation mode in which normal processing is performed. Transition to the rewrite mode for performing the rewrite process. If a communication failure occurs at the time of data rewriting and each microcomputer falls, rewriting remains unfinished in some microcomputers. When the electronic control unit is restarted in this state, some microcomputers start up in the rewrite mode, and other microcomputers start up in the normal operation mode.

上記したように、通常処理を行う場合、全てのマイクロコンピュータは通常動作モードであり、書き換え処理を行う場合、全てのマイクロコンピュータは書き換えモードである。したがって、各マイクロコンピュータは、同一のモードに適した信号を送受信する。しかしながら、上記のように、通信障害のために、各マイクロコンピュータが異なるモードで立ち上がると、各マイクロコンピュータは、自身のモードに適した信号を送受信しなくなる。そのため、各マイクロコンピュータにて誤動作が起きる可能性がある。   As described above, when the normal process is performed, all the microcomputers are in the normal operation mode, and when the rewrite process is performed, all the microcomputers are in the rewrite mode. Therefore, each microcomputer transmits and receives signals suitable for the same mode. However, as described above, when each microcomputer starts up in a different mode due to a communication failure, each microcomputer does not transmit or receive a signal suitable for its own mode. Therefore, malfunction may occur in each 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)を複数備え、複数のマイコンそれぞれが電気的に接続された制御システムであって、複数のマイコンそれぞれのCPUが、アプリケーションソフトに基づいて動作するアプリモードであるのか、それとも、リプログラミングソフトに基づいて動作するリプログモードであるのかを判定する判定部(30)を有し、判定部は、複数のマイコンのCPUの全てがアプリモードであると判定した場合、複数のマイコンのCPUの全てに、アプリモードに移行する指示を含む第1制御信号を出力し、複数のマイコンのCPUの少なくとも1つがリプログモードであると判定した場合、複数のマイコンのCPUの全てに、リプログモードに移行する指示を含む第2制御信号を出力しており、複数のマイコンそれぞれのCPUは、アプリモードの場合、複数のマイコン間の通信が正常か否かを判定し、通信が正常だと判定した場合、アプリモードを維持し、通信が正常ではないと判定した場合、判定部から、第2制御信号が入力されているか否かを判定し、第2制御信号が入力されていると判定した場合、リプログモードに移行し、第2制御信号が入力されていないと判定した場合、自身と電気的に接続された外部装置にリセット信号の送信指示を含む指示信号を出力することを特徴とする。 To achieve the above object, the present invention includes a memory (12, 22) in which application software and reprogramming software are stored, a CPU (11, 21) that operates based on the application software or reprogramming software, A control system in which a plurality of microcomputers (10, 20) are provided and each of the plurality of microcomputers is electrically connected, and the CPU of each of the plurality of microcomputers is in an application mode that operates based on application software, Or it has the determination part (30) which determines whether it is the reprogram mode which operate | moves based on reprogramming software, and the determination part determines that all of CPUs of a plurality of microcomputers are application modes. All microcomputer CPUs contain instructions for switching to application mode 1 outputs a control signal, when at least one of the plurality of microcomputers CPU but it is determined that the reprogramming mode, all of the plurality of microcomputers CPU, and outputs a second control signal including an instruction to shift to reprogramming mode In the application mode, the CPU of each of the plurality of microcomputers determines whether or not the communication between the plurality of microcomputers is normal. If the communication is determined to be normal, the CPU maintains the application mode and the communication is not normal. If it is determined, the determination unit determines whether or not the second control signal is input. If it is determined that the second control signal is input, the process proceeds to the reprogress mode and the second control signal is input. If it is determined that it is not, an instruction signal including a reset signal transmission instruction is output to an external device electrically connected to itself .

このように本発明によれば、判定部によって、複数のマイコン(10,20)のCPU(11,21)の少なくとも1つがリプログラモードであると判定された場合、複数のマイコン(10,20)のCPU(11,21)の全てに、リプログモードに移行する指示を含む第2制御信号が出力される。これによれば、通信障害などによって、リプログラミングが未終了のマイコンがあったとしても、各マイコン(10,20)のCPU(11,21)が、強制的にリプログモードに移行される。そのため、各マイコン(10,20)のモードが不一致となった結果、各マイコン(10,20)間で適した信号を送受信しなくなることが抑制される。この結果、各マイコン(10,20)にて誤動作が生じることが抑制される。   Thus, according to the present invention, when the determination unit determines that at least one of the CPUs (11, 21) of the plurality of microcomputers (10, 20) is in the reprogram mode, the plurality of microcomputers (10, 20). The second control signal including an instruction to shift to the reprogress mode is output to all the CPUs (11, 21). 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). As a result, malfunctions in the microcomputers (10, 20) are suppressed.

第1実施形態に係る制御システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the control system which concerns on 1st Embodiment. マイコンの処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of a microcomputer. 第2実施形態に係る制御システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the control system which concerns on 2nd Embodiment. 第1マイコンの処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of a 1st microcomputer. 第2マイコンの処理を説明するためのフローチャートである。It is a flowchart for demonstrating the process of a 2nd microcomputer. 制御システムの変形例を示すブロック図である。It is a block diagram which shows the modification of a control system.

以下、本発明の実施の形態を図に基づいて説明する。
(第1実施形態)
図1及び図2に基づいて、本実施形態に係る制御システムを説明する。図1に示すように、制御システム100は、要部として、第1マイコン10と、第2マイコン20と、判定部30と、を有する。マイコン10,20それぞれと判定部30とは電気的に接続されており、マイコン10,20それぞれは、書き換え装置などの外部装置と電気的に接続されている。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(First embodiment)
Based on FIG.1 and FIG.2, the control system which concerns on this embodiment is demonstrated. As shown in FIG. 1, the control system 100 includes a first microcomputer 10, a second microcomputer 20, and a determination unit 30 as main parts. Each of the microcomputers 10 and 20 and the determination unit 30 are electrically connected, and each of the microcomputers 10 and 20 is electrically connected to an external device such as a rewriting device.

マイコン10,20それぞれは、外部装置から入力される信号によって起動が制御される構成となっている。具体的に言えば、マイコン10,20それぞれは、外部装置から入力されるリセット信号の入力が解除されると、起動される構成となっている。リセット信号が解除されるタイミングは、マイコン10,20それぞれで同時となっており、マイコン10,20それぞれは、同時に起動される。   Each of the microcomputers 10 and 20 is configured to be activated by a signal input from an external device. Specifically, each of the microcomputers 10 and 20 is configured to be activated when the reset signal input from the external device is released. 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マイコン10は、第1CPU11と、第1メモリ12と、を有し、第2マイコン20は、第2CPU21と、第2メモリ22と、を有する。メモリ12,22それぞれには、アプリケーションソフト(以下、アプリと示す)及びリプログラミングソフト(以下、リプログと示す)が記憶されており、CPU11,21それぞれは、アプリ若しくはリプログに基づいて動作する。   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), and each of the CPUs 11 and 21 operates based on the application or the replog.

CPU11,21それぞれは、アプリに基づいて動作するアプリモードの場合、通常処理を行い、リプログに基づいて動作するリプログモードの場合、書き換え装置から入力されるデータに基づいて、メモリ12,22に記憶されたデータの書き換え処理を行う。また、CPU11,21それぞれは、アプリモードの場合、自身がアプリモードである旨を含む第1モード信号を判定部30に出力し、リプログモードの場合、自身がリプログモードである旨を含む第2モード信号を判定部30に出力する。CPU11,21それぞれは、判定部30から、後述する第1制御信号が入力されると、アプリモードに強制的に移行され、後述する第2制御信号が入力されると、リプログモードに強制的に移行される。ちなみに、本実施形態に係る第1モード信号は、電圧レベルの低いLo信号であり、第2モード信号は、Lo信号よりも電圧レベルの高いHi信号である。   Each of the CPUs 11 and 21 performs normal processing in the case of the application mode that operates based on the application, and stores in the memories 12 and 22 based on the data input from the rewriting device in the case of the reprogram mode that operates based on the reprogramming. The rewriting process of the recorded data is performed. In addition, each of the CPUs 11 and 21 outputs a first mode signal including that it is in the application mode to the determination unit 30 in the application mode, and includes a second information that indicates that it is in the reprogram mode in the reprogress mode. The mode signal 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. To be migrated. Incidentally, 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.

判定部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.

次に、本実施形態に係る制御システム100の起動動作を図2に基づいて説明する。CPU11,21それぞれに入力されているリセット信号が解除され、CPU11,21それぞれが起動すると、図2に示す処理を同時に行う。   Next, the starting operation of the control system 100 according to the present embodiment will be described with reference to FIG. When the reset signals input to the CPUs 11 and 21 are canceled and the CPUs 11 and 21 are activated, the processes shown in FIG. 2 are performed simultaneously.

CPU11,21それぞれは、先ず、メモリ12,22の書き込み処理が正常に終了しているか否かを判定する。CPU11,21それぞれは、メモリ12,22の書き込み処理が正常に終了していないと判定した場合、ステップS20に移行し、メモリ12,22の書き込み処理が正常に終了していると判定した場合、ステップS40に移行する。以上が、ステップS10である。   First, each of the CPUs 11 and 21 determines 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.

ステップS70に移行すると、CPU11,21それぞれは、判定部30から第2制御信号が入力されているか否かを判定する。CPU11,21それぞれは、第2制御信号が入力されていると判定した場合、ステップS20に移行して、リプログモードに移行する。そして、上記したステップS30を経て、書き換え処理を行う。これとは異なり、CPU11,21それぞれは、第2制御信号が入力されていないと判定した場合、通信障害が起きていると判定して、書き込み装置に、リセット信号の送信指示を含む指示信号を出力して、リセット処理を行う。   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 to this, when each of the CPUs 11 and 21 determines that the second control signal is not input, it determines that a communication failure has occurred and sends an instruction signal including a reset signal transmission instruction to the writing device. Output and perform reset processing.

なお、CPU11,21それぞれは、ステップS40にてアプリモードに移行すると、マイコン10,20間の通信が正常か否かの判定と、第2制御信号が入力されているか否かの判定と、を同時にし始める。通信が正常か否かを判定する時間の長さは、第2制御信号が入力されているか否かを判定する時間の長さよりも長くなっている。具体的に言えば、通信が正常か否かを判定する時間は、第2制御信号が入力されているか否かを判定する時間の2倍程度に設定されている。そのため、通信が正常か否かの判定がなされた後に、第2制御信号が入力されているか否かの判定がなされる。   Each of the CPUs 11 and 21 determines whether the communication between the microcomputers 10 and 20 is normal and whether or not the second control signal is input when the application mode is entered in step S40. Start doing at the same time. The length of time for determining whether or not communication is normal is longer than the length of time for determining whether or not the second control signal is input. Specifically, the time for determining whether the communication is normal is set to about twice the time for determining whether the second control signal is input. Therefore, after determining whether or not the communication is normal, it is determined whether or not the second control signal is input.

次に、本実施形態に係る制御システム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は、リプログモードに移行する。   Next, effects of the control system 100 according to the present embodiment will be described. For example, when 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 first microcomputer 10, 20 is activated at the first time. A first mode signal is output from the microcomputer 10 and a second 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. 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それぞれは、リプログモードに移行する。   Incidentally, when 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 activated. 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.

CPU11,21それぞれは、図2に示す処理を行う。これによれば、CPU11,21それぞれが、異なる処理を行う構成と比べて、その処理を行うためのプログラムを作成する時間が短くなる。   Each of the CPUs 11 and 21 performs the process shown in FIG. According to this, compared with the configuration in which each of the CPUs 11 and 21 performs different processes, the time for creating a program for performing the processes is shortened.

通信障害が起きると、リプログラミングが未終了となるマイコンが生じる虞がある。したがって、本実施形態では、CPU11,21それぞれは、マイコン10,20間の通信が正常か否かを判定する。こうすることで、リプログラミングが未終了となるマイコンが生じたか否かが判定される。   When a communication failure occurs, there is a possibility that a microcomputer in which reprogramming is not completed may occur. Therefore, in this embodiment, each of the CPUs 11 and 21 determines whether or not the communication between the microcomputers 10 and 20 is normal. In this way, it is determined whether or not a microcomputer for which reprogramming has not been completed has occurred.

CPU11,21それぞれは、マイコン10,20間の通信が正常か否かの判定と、第2制御信号が入力されているか否かの判定と、を同時にし始める。そして、通信が正常か否かを判定する時間の長さは、第2制御信号が入力されているか否かを判定する時間の長さよりも長くなっている。これによれば、通信が正常か否かを判定する時間の長さが、第2制御信号が入力されているか否かを判定する時間の長さよりも短い構成とは異なり、CPU11,21が、通信が正常か否かを判定する前に、第2制御信号が入力されているか否かを判定する、という誤動作をすることが抑制される。   Each of the CPUs 11 and 21 starts to simultaneously determine whether or not the communication between the microcomputers 10 and 20 is normal and whether or not the second control signal is input. The length of time for determining whether the communication is normal is longer than the length of time for determining whether the second control signal is input. According to this, unlike the configuration in which the length of time for determining whether or not the communication is normal is shorter than the length of time for determining whether or not the second control signal is input, It is possible to suppress a malfunction of determining whether or not the second control signal is input before determining whether or not the communication is normal.

(第2実施形態)
次に、本発明の第2実施形態を、図3〜図5に基づいて説明する。第2実施形態に係る制御システム100は、第1実施形態によるものと共通するところが多いので、以下、共通部分については詳しい説明を省略し、異なる部分を重点的に説明する。なお、第1実施形態で示した要素と同一の要素には、同一の符号を付与している。
(Second Embodiment)
Next, 2nd Embodiment of this invention is described based on 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実施形態では、マイコン10,20それぞれは、外部装置から入力されるリセット信号の入力が解除されることで起動される構成となっており、リセット信号が解除されるタイミングは、マイコン10,20それぞれで同時となっている例を示した。これに対して、本実施形態では、第1マイコン10は、外部装置から入力されるリセット信号の入力が解除されることで起動されるのに対して、第2マイコン20は、第1マイコン10から入力されるリセット信号の入力が解除されることで起動される点を特徴とする。したがって、第1実施形態とは異なり、本実施形態では、第1マイコン10が起動した後、第2マイコン20が起動される。   In the first embodiment, each of the microcomputers 10 and 20 is configured to be activated by canceling an input of a reset signal input from an external device. An example in which each of the 20 is simultaneous is shown. On the other hand, in the present embodiment, the first microcomputer 10 is activated by releasing the input of the reset signal input from the external device, whereas the second microcomputer 20 is activated by the first microcomputer 10. It is characterized in that it is activated by canceling the input of the reset signal input from. Therefore, unlike the first embodiment, in the present embodiment, after the first microcomputer 10 is activated, the second microcomputer 20 is activated.

更に、本実施形態では、第1マイコン10は、自身が、アプリ若しくはリプログに基づいて動作した後に、第2マイコン20を起動させる。そして、第2マイコン20は、図5に示すように、起動した後、先ず、判定部30から第2制御信号が入力されているかを判定する(ステップS90)。第2CPU21は、第2制御信号が入力されていると判定した場合、ステップS20に移行して、リプログモードに移行する。そして、上記したステップS30を経て、書き換え処理を行う。また、第2CPU21は、第2制御信号が入力されていないと判定した場合、第1実施形態と同様にして、ステップS10〜ステップS70の処理を行う。   Further, in the present embodiment, the first microcomputer 10 activates the second microcomputer 20 after it operates based on an application or a reprogram. Then, as shown in FIG. 5, the second microcomputer 20 first determines whether or not the second control signal is input from the determination unit 30 after being activated (step S <b> 90). When determining that the second control signal is input, the second CPU 21 proceeds to step S20 and transitions to the reprogress mode. Then, the rewriting process is performed through step S30 described above. Further, when the second CPU 21 determines that the second control signal is not input, the second CPU 21 performs the processes of steps S10 to S70 in the same manner as in the first embodiment.

これによれば、第2マイコンの立ち上がり時、第2CPUが、リプログの書き換え処理が終了したか否かを判定した後、判定部から第2制御信号が入力されているかを判定する構成と比べて、第2CPU21が、アプリに基づいて動作するのか、それとも、リプログに基づいて動作するのか、を判定する時間が短くなる。この結果、外乱ノイズによる誤作動が第2CPU21で生じることが抑制される。   According to this, when the second microcomputer starts up, the second CPU determines whether or not the reprogram rewriting process has been completed, and then determines whether or not the second control signal is input from the determination unit. The time for determining whether the second CPU 21 operates based on the app or whether it operates based on the reprogram is shortened. As a result, it is possible to prevent the second CPU 21 from malfunctioning due to disturbance noise.

第1実施形態では、CPU11,21それぞれは、ステップS40にてアプリモードに移行すると、マイコン10,20間の通信が正常か否かの判定と、第2制御信号が入力されているか否かの判定と、を同時にし始める。そして、通信が正常か否かを判定する時間の長さは、第2制御信号が入力されているか否かを判定する時間の長さよりも長くなっている例を示した。これに対して、本実施形態では、第1CPU11が、ステップS40にてアプリモードに移行すると、マイコン10,20間の通信が正常か否かの判定と、第2制御信号が入力されているか否かの判定と、を同時にし始める。そして、第1CPU11は、ステップS50にて第1モード信号を出力した後、通信が正常か否かを判定するのに要する時間、及び、第2制御信号が入力されているか否かを判定するのに要する時間よりも長い待機時間だけ待機する(図4に示すステップS80を行う)。待機時間が経過した後、第1CPU11は、ステップS60に移行して、マイコン10,20間の通信が正常か否かを判定する処理を行う。   In the first embodiment, each of the CPUs 11 and 21 determines whether or not the communication between the microcomputers 10 and 20 is normal and whether or not the second control signal is input when the mode is changed to the application mode in step S40. Start making judgments at the same time. In the example, the length of time for determining whether the communication is normal is longer than the length of time for determining whether the second control signal is input. On the other hand, in this embodiment, when the first CPU 11 shifts to the application mode in step S40, it is determined whether or not the communication between the microcomputers 10 and 20 is normal and whether the second control signal is input. Start to make the same judgment. Then, after the first CPU 11 outputs the first mode signal in step S50, the first CPU 11 determines whether the time required for determining whether the communication is normal and whether the second control signal is input. The system waits for a standby time longer than the time required for (step S80 shown in FIG. 4 is performed). After the standby time has elapsed, the first CPU 11 proceeds to step S60 and performs a process of determining whether or not the communication between the microcomputers 10 and 20 is normal.

これによれば、第1CPU11が、通信が正常か否かを判定する前に、第2制御信号が入力されているか否かを判定する、という誤動作をすることが抑制される。   According to this, it is possible to prevent the first CPU 11 from malfunctioning to determine whether or not the second control signal is input before determining whether or not the communication is normal.

以上、本発明の好ましい実施形態について説明したが、本発明は上記した実施形態になんら制限されることなく、本発明の主旨を逸脱しない範囲において、種々変形して実施することが可能である。   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.

各実施形態では、マイコン10,20それぞれが外部装置と電気的に接続された例を示した。しかしながら、図6に示すように、第1マイコン10のみが外部装置と電気的に接続された構成を採用することもできる。   In each embodiment, the example in which each of the microcomputers 10 and 20 is electrically connected to an external device is shown. However, as shown in FIG. 6, a configuration in which only the first microcomputer 10 is electrically connected to an external device may be employed.

本実施形態では、第1モード信号がLo信号であり、第2モード信号がHi信号である例を示した。しかしながら、第1モード信号がHi信号であり、第2モード信号がLo信号であってもよい。   In the present embodiment, an example in which the first mode signal is the Lo signal and the second mode signal is the Hi signal is shown. 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 the present embodiment, an 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を含む例を示した。しかしながら、図6に示すように、判定部30がNORを含む構成を採用することができる。また、図示しないが、判定部30がNAND、若しくは、ANDを含む構成を採用することもできる。   In each embodiment, the determination part 30 showed the example containing OR. However, as illustrated in FIG. 6, a configuration in which the determination unit 30 includes NOR can be employed. Although not shown, the determination unit 30 may employ a configuration including NAND or 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信号となる。   Incidentally, 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メモリ
30・・・判定部
100・・・制御システム
10 ... 1st microcomputer 11 ... 1st CPU
12 ... 1st memory 20 ... 2nd microcomputer 21 ... 2nd CPU
22 ... Second memory 30 ... Determination unit 100 ... Control system

Claims (5)

アプリケーションソフト及びリプログラミングソフトが記憶されたメモリ(12,22)と、前記アプリケーションソフト若しくは前記リプログラミングソフトに基づいて動作するCPU(11,21)と、を有するマイコン(10,20)を複数備え、複数の前記マイコンそれぞれが電気的に接続された制御システムであって、
複数の前記マイコンそれぞれのCPUが、前記アプリケーションソフトに基づいて動作するアプリモードであるのか、それとも、前記リプログラミングソフトに基づいて動作するリプログモードであるのかを判定する判定部(30)を有し、
前記判定部は、
複数の前記マイコンのCPUの全てが前記アプリモードであると判定した場合、複数の前記マイコンのCPUの全てに、前記アプリモードに移行する指示を含む第1制御信号を出力し、
複数の前記マイコンのCPUの少なくとも1つが前記リプログモードであると判定した場合、複数の前記マイコンのCPUの全てに、前記リプログモードに移行する指示を含む第2制御信号を出力しており、
複数の前記マイコンそれぞれのCPUは、
前記アプリモードの場合、複数の前記マイコン間の通信が正常か否かを判定し、
通信が正常だと判定した場合、前記アプリモードを維持し、
通信が正常ではないと判定した場合、前記判定部から、前記第2制御信号が入力されているか否かを判定し、
前記第2制御信号が入力されていると判定した場合、前記リプログモードに移行し、
前記第2制御信号が入力されていないと判定した場合、自身と電気的に接続された外部装置にリセット信号の送信指示を含む指示信号を出力することを特徴とする制御システム。
A plurality of microcomputers (10, 20) having memories (12, 22) storing application software and reprogramming software and CPUs (11, 21) operating based on the application software or the reprogramming software are provided. A control system in which each of the plurality of microcomputers is electrically connected,
A determination unit (30) for determining whether a CPU of each of the plurality of microcomputers is in an application mode that operates based on the application software or a reprogram mode that operates based on the reprogramming software; ,
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,
If 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 CPU of each of the plurality of microcomputers is
In the case of the application mode, it is determined whether communication between the plurality of microcomputers is normal,
If it is determined that the communication is normal, the application mode is maintained,
When it is determined that the communication is not normal, the determination unit determines whether the second control signal is input,
When it is determined that the second control signal is input, the mode is shifted to the reprogress mode,
When it is determined that the second control signal is not input , the control system outputs an instruction signal including a reset signal transmission instruction to an external device electrically connected to the second control signal .
複数の前記マイコンそれぞれのCPUは、前記アプリモードの場合、第1モード信号を前記判定部に出力し、前記リプログモードの場合、第2モード信号を前記判定部に出力し、
前記判定部は、複数の前記マイコンのCPUの全てから前記第1モード信号が入力された場合、複数の前記マイコンのCPUの全てに、前記第1制御信号を出力し、複数の前記マイコンのCPUの少なくとも1つから前記第2モード信号が入力された場合、複数の前記マイコンのCPUの全てに、前記第2制御信号を出力することを特徴とする請求項1に記載の制御システム。
The CPU of each of the plurality of microcomputers outputs a first mode signal to the determination unit in the application mode, and outputs a second mode signal to the determination unit in the reprogress mode,
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. 2. The control system according to claim 1, wherein when the second mode signal is input from at least one of the second control signal, the second control signal is output to all of the CPUs of the plurality of microcomputers.
前記第1モード信号及び前記第2モード信号の一方は、Hi信号であり、
前記第1モード信号及び前記第2モード信号の他方は、前記Hi信号よりも電圧レベルの低いLo信号であり、
前記第1制御信号及び前記第2制御信号の一方は、前記Hi信号であり、
前記第1制御信号及び前記第2制御信号の他方は、前記Lo信号であることを特徴とする請求項2に記載の制御システム。
One of the first mode signal and the second mode signal is a Hi signal,
The other of the first mode signal and the second mode signal is a Lo signal having a lower voltage level than the Hi signal.
One of the first control signal and the second control signal is the Hi signal,
The control system according to claim 2, wherein the other of the first control signal and the second control signal is the Lo signal.
前記CPUは、通信が正常か否かを判定するのに要する時間、及び、前記第2制御信号が入力されているか否かを判定するのに要する時間が経過した後に、複数の前記マイコン間の通信が正常か否かを判定する処理を行うことを特徴とする請求項1〜3のいずれか1項に記載の制御システム。 The CPU determines whether or not communication between the plurality of microcomputers has elapsed after the time required to determine whether the communication is normal and the time required to determine whether the second control signal is input. The control system according to claim 1 , wherein a process for determining whether or not the communication is normal is performed . 複数の前記マイコンの内の一つである第1マイコン(10)によって、第2マイコン(20)の起動が制御され、
前記第1マイコンのCPU(11)は、自身が、前記アプリモード若しくは前記リプログモードで動作した後に、前記第2マイコンを起動させ、
前記第2マイコンのCPU(21)は、起動した後、先ず、前記判定部から前記第1制御信号若しくは前記第2制御信号が入力されているかを判定することを特徴とする請求項1〜4のいずれか1項に記載の制御システム。
The activation of the second microcomputer (20) is controlled by the first microcomputer (10) which is one of the plurality of microcomputers,
The CPU (11) of the first microcomputer activates the second microcomputer after operating in the application mode or the reprolog mode,
CPU (21) of the second microcomputer, after started, claims 1 to 4, wherein the first control signal or the second control signal from said decision unit is characterized in that determining whether the inputted The control system according to any one of the above.
JP2012251400A 2012-11-15 2012-11-15 Control system Active JP5880862B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012251400A JP5880862B2 (en) 2012-11-15 2012-11-15 Control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012251400A JP5880862B2 (en) 2012-11-15 2012-11-15 Control system

Publications (2)

Publication Number Publication Date
JP2014099099A JP2014099099A (en) 2014-05-29
JP5880862B2 true JP5880862B2 (en) 2016-03-09

Family

ID=50941047

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012251400A Active JP5880862B2 (en) 2012-11-15 2012-11-15 Control system

Country Status (1)

Country Link
JP (1) JP5880862B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5920243B2 (en) * 2013-02-26 2016-05-18 株式会社デンソー Control system
JP6102692B2 (en) 2013-11-22 2017-03-29 株式会社デンソー Electronic control unit
JP6753388B2 (en) * 2017-11-13 2020-09-09 株式会社デンソー Automatic driving control device, automatic driving control method for vehicles
JP7271973B2 (en) * 2019-02-01 2023-05-12 株式会社デンソー VEHICLE CONTROL DEVICE AND OPERATING CLOCK SWITCHING METHOD

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0650473B2 (en) * 1987-01-05 1994-06-29 日本電気株式会社 Emulator for multiple computers with built-in multiple processors
JPH06332752A (en) * 1993-05-19 1994-12-02 Nippondenso Co Ltd Computer system
JP4755123B2 (en) * 2007-02-19 2011-08-24 ルネサスエレクトロニクス株式会社 Operation mode control circuit for information processing apparatus and information processing apparatus
JP4367513B2 (en) * 2007-03-28 2009-11-18 株式会社デンソー Electronic control unit
JP5488405B2 (en) * 2010-11-02 2014-05-14 株式会社デンソー Electronic control unit

Also Published As

Publication number Publication date
JP2014099099A (en) 2014-05-29

Similar Documents

Publication Publication Date Title
JP6044316B2 (en) In-vehicle electronic control unit
JP6692763B2 (en) Control device and control program updating method
JP6021597B2 (en) Information processing apparatus, information processing method, and computer program
JP5880862B2 (en) Control system
JP6175788B2 (en) Electronic devices that can update microprograms
JP6723941B2 (en) Control device and control program updating method
JP6001962B2 (en) Inverter device
JP5084853B2 (en) Firmware update device, communication device, electronic device, firmware update system, firmware update method, and program
WO2016136014A1 (en) Monitoring recorder
KR100849212B1 (en) Memory card and method for updating of memory card program
JP2008226111A (en) Duplex controller system, operating system controller
JP5920243B2 (en) Control system
JP6102692B2 (en) Electronic control unit
JP2007122151A (en) Boot controller and boot control method
JP5774941B2 (en) Configuration device and configuration method
JP6351882B1 (en) Programmable logic controller and program
JP2007172096A (en) Information processing apparatus and activation control method thereof
JP5944017B2 (en) Information processing apparatus and program
JP2010176182A (en) Electronic equipment
JP2018180608A (en) Program execution device and program execution method
JP5413809B2 (en) Data processing apparatus and data processing method
JP5720206B2 (en) Microprocessor
JP2014016947A (en) Programmable controller
JP2018032312A (en) Memory access device and memory access method
JP2009205569A (en) Electronic apparatus, and program rewriting method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20150203

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150908

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20151020

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20151208

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20160119

R150 Certificate of patent or registration of utility model

Ref document number: 5880862

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

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