WO2019159347A1 - 電子機器 - Google Patents

電子機器 Download PDF

Info

Publication number
WO2019159347A1
WO2019159347A1 PCT/JP2018/005669 JP2018005669W WO2019159347A1 WO 2019159347 A1 WO2019159347 A1 WO 2019159347A1 JP 2018005669 W JP2018005669 W JP 2018005669W WO 2019159347 A1 WO2019159347 A1 WO 2019159347A1
Authority
WO
WIPO (PCT)
Prior art keywords
port
ports
microcomputer
microcontroller
communication
Prior art date
Application number
PCT/JP2018/005669
Other languages
English (en)
French (fr)
Inventor
崇明 杉本
Original Assignee
三菱電機株式会社
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 三菱電機株式会社 filed Critical 三菱電機株式会社
Priority to PCT/JP2018/005669 priority Critical patent/WO2019159347A1/ja
Priority to JP2019571931A priority patent/JP6851513B2/ja
Publication of WO2019159347A1 publication Critical patent/WO2019159347A1/ja

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F15/00Digital computers in general; Data processing equipment in general
    • G06F15/76Architectures of general purpose stored program computers
    • G06F15/78Architectures of general purpose stored program computers comprising a single central processing unit

Definitions

  • the present invention relates to an electronic device having a plurality of microcontrollers and performing a control operation while the microcontrollers transmit and receive data.
  • Patent Document 1 An example of a conventional electronic device having a plurality of microcontrollers (hereinafter referred to as microcomputers) is described in Patent Document 1.
  • the invention described in Patent Document 1 includes a main microcomputer and an expansion microcomputer.
  • the main microcomputer resets the expansion microcomputer to return to a normal state. Has returned to a state where it can be acquired.
  • the present invention has been made in view of the above, and an object of the present invention is to obtain an electronic device capable of improving the reliability of communication between microcomputers.
  • an electronic apparatus includes a first microcontroller and a second microcontroller that communicate with each other.
  • Each of the first microcontroller and the second microcontroller can be used for transmitting a signal and can be used as an input port, and a second port used for receiving a signal.
  • one of the plurality of first ports is set as a transmission port that is a port used for signal transmission, and the remaining ports of the plurality of first ports are set as input ports.
  • the electronic device according to the present invention has an effect that the reliability of communication between microcomputers can be improved.
  • the figure which shows the structural example of the electronic device concerning embodiment of this invention The flowchart which shows an example of operation
  • movement which the microcomputer with which the electronic device concerning embodiment of this invention is provided switches a communication port
  • FIG. 1 is a diagram illustrating a configuration example of an electronic device according to the present invention.
  • the electronic device 1 includes a microcomputer 10A that is a first microcontroller and a microcomputer 10B that is a second microcontroller.
  • the microcomputers 10 ⁇ / b> A and 10 ⁇ / b> B control a control target such as each component (not shown) constituting the electronic device 1 or a device external to the electronic device 1.
  • the microcomputer 10A and the microcomputer 10B may be mounted on different electronic devices.
  • the microcomputers 10A and 10B have a communication function, and transmit / receive information necessary for the control operation to / from each other.
  • the microcomputer 10A includes ports P11 and P12 which are first ports and a port P21 which is a second port, and communicates with the microcomputer 10B using these ports. At least the ports P11 and P12 can be used as both transmission ports and input ports. Here, the transmission port is an output port.
  • the port P21 is an input port and functions as a reception port.
  • the microcomputer 10B includes ports P31 and P32 that are first ports and a port P41 that is a second port, and communicates with the microcomputer 10A using these ports. Similar to the microcomputer 10A, at least the ports P31 and P32 can be used as both transmission ports and input ports.
  • the port P41 is an input port and functions as a reception port.
  • the ports P11 and P12 of the microcomputer 10A are connected to the port P41 of the microcomputer 10B.
  • Port P21 of microcomputer 10A is connected to ports P31 and P32 of microcomputer 10B.
  • Each of the ports P11 and P12 of the microcomputer 10A can be used as a transmission port for transmitting a signal to the microcomputer 10B.
  • the microcomputer 10A does not use both ports P11 and P12 as transmission ports at the same time, but uses either one as a transmission port. If the ports P11 and P12 are set as transmission ports at the same time, there is a possibility that the microcomputer 10A will be broken due to a reverse current flowing through the port not transmitting signals. For example, when the port P11 transmits a signal, there is a possibility that a reverse current flows through the port P12 and the microcomputer 10A is broken. Therefore, ports on the side that does not transmit signals, that is, ports that are not used as transmission ports are set as input ports. Ports P11 and P12 are a plurality of first ports that can be used for signal transmission provided in the microcomputer 10A.
  • the port P21 of the microcomputer 10A is used as a reception port that receives a signal from the microcomputer 10B.
  • Each of the ports P31 and P32 of the microcomputer 10B can be used as a transmission port for transmitting a signal to the microcomputer 10A.
  • the microcomputer 10B does not use both ports P31 and P32 as transmission ports at the same time, but uses either one as a transmission port.
  • a port that does not transmit a signal that is, a port that is not used as a transmission port is set as an input port.
  • the ports P31 and P32 are a plurality of first ports that can be used for signal transmission provided in the microcomputer 10B.
  • the port P41 of the microcomputer 10B is used as a reception port that receives a signal from the microcomputer 10A.
  • the above input port refers to an input port of an I / O (Input / Output) function that the microcomputers 10A and 10B have.
  • the receiving port is also an input port in a broad sense, the receiving port is an input port having a function of analyzing the data length of received data, and therefore, the description is used as a receiving port and is distinguished from the above input port. That is, when the ports P11, P12, P31 and P32 are set as input ports, the input data is not analyzed and the data is discarded.
  • the number of ports that the microcomputers 10A and 10B can use as the transmission ports is two, but may be three or more. In other words, the microcomputers 10A and 10B only need to have a plurality of ports that can be used as transmission ports. Further, the numbers of ports that can be used as the transmission ports by the microcomputers 10A and 10B do not have to match.
  • the microcomputer 10A may include two ports that can be used as transmission ports, and the microcomputer 10B may include three ports that can be used as transmission ports.
  • FIG. 2 is a flowchart showing an example of the operation of the microcomputer 10A provided in the electronic apparatus 1 according to the present invention.
  • the microcomputer 10A performs an operation according to the flowchart shown in FIG. 2 when communicating with the microcomputer 10B.
  • the microcomputer 10A When communicating with the microcomputer 10B, the microcomputer 10A first sets one of the ports P11 and P12 as an input port (step S11), and sets the other of the ports P11 and P12 as a transmission port (step S12). In these steps S11 and S12, for example, the microcomputer 10A sets the port P12 as an input port and sets the port P11 as a transmission port.
  • the microcomputer 10A initializes count values m and n of each counter described later (step S13). Specifically, the microcomputer 10A sets m and n to 0.
  • the microcomputer 10A communicates with the microcomputer 10B using the port set as the transmission port and the port P21 which is the reception port (step S14), and checks whether or not a communication abnormality has occurred (step S15).
  • a communication abnormality For example, when the microcomputer 10A transmits data to the microcomputer 10B from the transmission port that is the port P11 or P12 and receives a response signal, for example, a signal indicating that the data has been normally received, the communication is normally performed. If a response signal is not received, it is determined that a communication error has occurred.
  • the method for detecting the communication abnormality is an example, and the abnormality detection may be performed by any other method.
  • the microcomputer 10A may send a signal requesting data transmission to the microcomputer 10B, and may determine that communication is normal when data is transmitted and communication is abnormal when data is not transmitted.
  • the microcomputer 10A may determine that a communication error has occurred when no signal is sent from the microcomputer 10B over a predetermined time period, that is, when no signal is received at the port P21.
  • step S15 the microcomputer 10A initializes the count value n of the first counter, which is a counter that counts the number of continuous occurrences of communication abnormality (step S21), and returns to step S14. Continue operation.
  • step S15 When a communication abnormality occurs (step S15: Yes), the microcomputer 10A adds 1 to n (step S16), and confirms whether n is equal to or greater than a predetermined upper limit value N (step S17). .
  • step S17 No
  • the microcomputer 10A returns to step S14 and continues the operation.
  • the microcomputer 10A determines that communication with the microcomputer 10B is impossible, and counts a second counter that is a counter that counts the number of times the communication port setting is switched. It is confirmed whether or not the value m is less than a predetermined upper limit value M (step S18).
  • the upper limit value M of m is determined by the number of ports that can be used as transmission ports of the microcomputer 10A.
  • step S18 When m is less than M (step S18: Yes), the microcomputer 10A determines that the communication port can be switched, adds 1 to m (step S19), and performs processing for switching the communication port. (Step S20). The operation in which the microcomputer 10A switches the communication port in step S20 will be described separately. After executing step S20, the microcomputer 10A returns to step S14 and continues the operation.
  • step S18 determines that the communication port cannot be switched, and does not switch the communication port as a failure confirmation (step S22).
  • the microcomputer 10A stops the communication with the microcomputer 10B, and notifies the user that the communication has been stopped due to the buzzer sounding, the display on the display unit, and the like.
  • FIG. 3 is a flowchart showing an example of an operation in which the microcomputer 10A included in the electronic apparatus 1 according to the present invention switches the communication port.
  • the microcomputer 10A first checks whether or not the communication port is the port P11, that is, whether or not the port P11 is set as the transmission port (step S31).
  • step S31 When the communication port is the port P11 (step S31: Yes), the microcomputer 10A sets the port P11 as an input port (step S32) and sets the port P12 as a transmission port (step S33).
  • step S31 If the communication port is not the port P11 (step S31: No), the microcomputer 10A sets the port P12 as an input port (step S34) and sets the port P11 as a transmission port (step S35).
  • the reason for setting the input port first is that there are a plurality of transmission ports temporarily and a collision between the transmission ports occurs. This is because a signal output from one transmission port is input to the other transmission port and a reverse current flows to prevent the microcomputer 10A from being broken.
  • the case where the number of ports that can be used for signal transmission is 3 or more is as follows.
  • the microcomputer 10A cannot communicate with the microcomputer 10B, which is another microcomputer, and switches the communication port, first, the port set as the transmission port is set as the input port, and then set as the input port.
  • the plurality of ports that have been set one of the ports that has never been set as a transmission port in the past is set as a transmission port.
  • each microcomputer includes a plurality of ports used for signal transmission to other microcomputers and a port used for signal reception from other microcomputers.
  • One of a plurality of ports used for transmission is set as a transmission port, and the rest is set as an input port.
  • each microcomputer checks whether the communication port can be switched. If switching is possible, the port set as the transmission port is set as the input port. The communication port switching operation for setting one of the ports set as the input port as the transmission port is executed. Also, if each microcomputer cannot communicate with other microcomputers and the communication port cannot be switched, communication with other microcomputers is stopped and communication cannot be performed. Inform the user. Thereby, the electronic device which can improve the reliability of communication performed between microcomputers is realizable.
  • the configuration described in the above embodiment shows an example of the contents of the present invention, and can be combined with another known technique, and can be combined with other configurations without departing from the gist of the present invention. It is also possible to omit or change the part.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • Microcomputers (AREA)
  • Hardware Redundancy (AREA)

Abstract

電子機器(1)は、相互に通信を行うマイクロコントローラ(10A)およびマイクロコントローラ(10B)を備え、マイクロコントローラ(10A)およびマイクロコントローラ(10B)のそれぞれは、信号の送信に使用可能であり、かつ入力ポートとして使用可能な複数の第1のポート(P11,P12,P31,P32)と、信号の受信に使用する第2のポート(P21,P41)と、を備え、複数の第1のポートの中の1つを、信号の送信に使用するポートである送信ポートに設定し、かつ複数の第1のポートの残りのポートを入力ポートに設定する。

Description

電子機器
 本発明は、複数のマイクロコントローラを有し、マイクロコントローラ同士がデータを送受信しながら制御動作を行う電子機器に関する。
 複数のマイクロコントローラ(以下、マイコンと称する)を有する従来の電子機器の一例が特許文献1に記載されている。特許文献1に記載の発明は、主マイコンと拡張マイコンとを備え、主マイコンは、拡張マイコンが異常状態となりデータを取得できない状態になると、拡張マイコンにリセットをかけて正常状態に復帰させ、データを取得できる状態に戻している。
特開平9-133394号公報
 特許文献1に記載の発明では、データを取得できない通信異常が発生した場合、マイコンをリセットすることにより通信を復帰させているが、通信ポートの断線等が原因で通信異常が発生した場合には通信を復帰させることができないという問題点があった。
 本発明は、上記に鑑みてなされたものであって、マイコン間の通信の信頼性を向上させることが可能な電子機器を得ることを目的とする。
 上述した課題を解決し、目的を達成するために、本発明にかかる電子機器は、相互に通信を行う第1のマイクロコントローラおよび第2のマイクロコントローラを備える。第1のマイクロコントローラおよび第2のマイクロコントローラのそれぞれは、信号の送信に使用可能であり、かつ入力ポートとして使用可能な複数の第1のポートと、信号の受信に使用する第2のポートと、を備え、複数の第1のポートの中の1つを、信号の送信に使用するポートである送信ポートに設定し、かつ複数の第1のポートの残りのポートを入力ポートに設定する。
 本発明にかかる電子機器は、マイコン間の通信の信頼性を向上させることができるという効果を奏する。
本発明の実施の形態にかかる電子機器の構成例を示す図 本発明の実施の形態にかかる電子機器が備えるマイコンの動作の一例を示すフローチャート 本発明の実施の形態にかかる電子機器が備えるマイコンが通信ポートを切り替える動作の一例を示すフローチャート
 以下に、本発明の実施の形態にかかる電子機器を図面に基づいて詳細に説明する。なお、この実施の形態によりこの発明が限定されるものではない。
実施の形態.
 図1は、本発明にかかる電子機器の構成例を示す図である。電子機器1は第1のマイクロコントローラであるマイコン10Aおよび第2のマイクロコントローラであるマイコン10Bを備える。マイコン10Aおよび10Bは、電子機器1を構成する各構成要素(図示せず)または電子機器1の外部の装置といった制御対象を制御する。本実施の形態ではマイコン10Aおよび10Bの両方が1つの電子機器1に搭載される場合について説明を行うが、マイコン10Aおよびマイコン10Bがそれぞれ異なる電子機器に搭載されていてもよい。また、マイコン10Aおよび10Bは通信機能を有し、制御動作に必要な情報などを相互に送受信する。
 マイコン10Aは、第1のポートであるポートP11およびP12と、第2のポートであるポートP21とを備え、これらの各ポートを用いてマイコン10Bと通信を行う。少なくともポートP11およびP12については、送信ポートおよび入力ポートのいずれにも用いることができる。ここで、送信ポートは出力ポートである。ポートP21は入力ポートであり受信ポートとして機能する。マイコン10Bは、第1のポートであるポートP31およびP32と、第2のポートであるポートP41とを備え、これらの各ポートを用いてマイコン10Aと通信を行う。マイコン10Aと同様に、少なくともポートP31およびP32については、送信ポートおよび入力ポートのいずれにも用いることができる。ポートP41は入力ポートであり受信ポートとして機能する。
 マイコン10AのポートP11およびP12は、マイコン10BのポートP41と接続される。マイコン10AのポートP21は、マイコン10BのポートP31およびP32と接続される。
 マイコン10AのポートP11およびP12のそれぞれは、マイコン10Bに対して信号を送信する送信ポートとして使用可能である。ただし、マイコン10Aは、ポートP11およびP12の両方を同時に送信ポートとして使用するのではなく、いずれか一方を送信ポートとして使用する。ポートP11およびP12を同時に送信ポートに設定すると、信号の送信を行わない側のポートに逆電流が流れてマイコン10Aが壊れてしまう可能性がある。例えば、ポートP11が信号を送信する時にポートP12に逆電流が流れてマイコン10Aが壊れる可能性がある。そのため、信号の送信を行わない側のポート、すなわち送信ポートとして使用しないポートについては入力ポートに設定する。ポートP11およびP12は、マイコン10Aが備える、信号送信に使用可能な複数の第1のポートである。また、マイコン10AのポートP21はマイコン10Bから信号を受信する受信ポートとして使用される。
 マイコン10BのポートP31およびP32のそれぞれは、マイコン10Aに対して信号を送信する送信ポートとして使用可能である。ただし、マイコン10Bは、ポートP31およびP32の両方を同時に送信ポートとして使用するのではなく、いずれか一方を送信ポートとして使用する。上記のマイコン10Aと同様に、信号の送信を行わない側のポート、すなわち送信ポートとして使用しないポートについては入力ポートに設定する。ポートP31およびP32は、マイコン10Bが備える、信号の送信に使用可能な複数の第1のポートである。また、マイコン10BのポートP41はマイコン10Aから信号を受信する受信ポートとして使用される。
 上記の入力ポートとは、マイコン10Aおよび10Bが有するI/O(Input/Output、入出力)機能の入力ポートを指している。受信ポートも広義では入力ポートであるが、受信ポートは受信データのデータ長解析などを行う機能を持つ入力ポートであるため、記載を受信ポートとし、上記の入力ポートとは区別する。すなわち、上記のポートP11、P12、P31およびP32は、入力ポートと設定されているときに、入力されたデータの解析などは行わず、データを破棄する。
 なお、図1に示した構成例ではマイコン10Aおよび10Bが送信ポートとして使用可能なポートの数を2としているが、3以上であっても構わない。すなわち、マイコン10Aおよび10Bは、送信ポートとして使用可能なポートの数が複数であればよい。また、マイコン10Aおよび10Bのそれぞれが送信ポートとして使用可能なポートの数は一致していなくてもよい。例えば、マイコン10Aは送信ポートとして使用可能なポートを2つ備え、マイコン10Bは送信ポートとして使用可能なポートを3つ備えていてもよい。
 次にマイコン10Aがマイコン10Bと通信する場合の全体動作について説明する。なお、マイコン10Aの動作について説明を行うが、マイコン10Bの動作も同様である。以下の説明において、マイコン10Aをマイコン10Bに置き換え、さらに、ポートP11、P12およびP21のそれぞれをポートP31、P32およびP41に置き換えたものがマイコン10Bの動作説明となる。
 図2は、本発明にかかる電子機器1が備えるマイコン10Aの動作の一例を示すフローチャートである。マイコン10Aは、マイコン10Bと通信する場合に図2に示したフローチャートに従った動作を行う。
 マイコン10Aは、マイコン10Bと通信する場合、まず、ポートP11およびP12の一方を入力ポートに設定し(ステップS11)、ポートP11およびP12の他方を送信ポートに設定する(ステップS12)。これらのステップS11およびS12において、マイコン10Aは、例えば、ポートP12を入力ポートに設定し、ポートP11を送信ポートに設定する。
 次に、マイコン10Aは、後述する各カウンタのカウント値mおよびnを初期化する(ステップS13)。具体的には、マイコン10Aは、mおよびnを0に設定する。
 次に、マイコン10Aは、送信ポートに設定したポートおよび受信ポートであるポートP21を使用してマイコン10Bと通信を行い(ステップS14)、通信異常が発生したか否かを確認する(ステップS15)。例えば、マイコン10Aは、ポートP11またはP12である送信ポートからマイコン10Bへデータを送信し、何らかの応答信号、例えばデータを正常に受信したことを示す信号をポートP21で受信した場合は通信が正常に行われ、応答信号を受信しない場合は通信異常が発生したと判断する。通信異常の検出方法は一例であり他のどのような方法で異常検出を行ってもよい。マイコン10Aは、マイコン10Bに対してデータの送信を要求する信号を送り、データが送信されて来た場合は通信正常、データが送信されてこない場合は通信異常と判断してもよい。マイコン10Aは、予め定められた一定時間にわたってマイコン10Bから信号が送られてこない場合、すなわちポートP21で信号を受信しない場合に通信異常と判断してもよい。
 通信異常が発生しない場合(ステップS15:No)、マイコン10Aは、通信異常の連続発生回数をカウントするカウンタである第1のカウンタのカウント値nを初期化し(ステップS21)、ステップS14に戻って動作を継続する。
 通信異常が発生した場合(ステップS15:Yes)、マイコン10Aは、nに1を加算し(ステップS16)、nが予め定められた上限値N以上であるか否かを確認する(ステップS17)。マイコン10Aは、nがN未満の場合(ステップS17:No)、すなわち、通信異常の連続発生回数が上限値Nに達していない場合、ステップS14に戻って動作を継続する。
 マイコン10Aは、nがN以上の場合(ステップS17:Yes)、マイコン10Bとの通信が不可能な状態と判断し、通信ポートの設定切り替え実施回数をカウントするカウンタである第2のカウンタのカウント値mが予め定められた上限値M未満であるか否かを確認する(ステップS18)。ここで、mの上限値Mはマイコン10Aが有する送信ポートとして使用可能なポートの数により決まる。例えば、図1に示した例ではマイコン10Aが有する送信ポートとして使用可能なポートはポートP11およびP12であり、送信ポートとして使用可能なポートの数は2となる。この場合、M=1となる。仮に、マイコン10Aが有する送信ポートとして使用可能なポートの数が3の場合はM=2となる。すなわち、Mは、マイコン10Aが有する送信ポートとして使用可能なポートの数から1を減じた数となる。
 マイコン10Aは、mがM未満である場合(ステップS18:Yes)、通信ポートの切り替えが可能な状態であると判断してmに1を加算し(ステップS19)、通信ポートを切り替える処理を行う(ステップS20)。ステップS20においてマイコン10Aが通信ポートを切り替える動作については別途説明する。マイコン10Aは、ステップS20を実行した後はステップS14に戻って動作を継続する。
 マイコン10Aは、mがM以上である場合(ステップS18:No)、通信ポートの切り替えが可能ではない状態と判断し、異常確定として通信ポートの切り替えは行わない(ステップS22)。マイコン10Aは、異常確定となった場合、マイコン10Bとの通信を停止し、ブザーの鳴動、表示部への表示等の方法により、通信ができない状態となり通信を停止したことをユーザに知らせる。
 例えば、図1に示した構成の場合、マイコン10Aが有する送信ポートとして使用可能なポートの数が2である。そのため、マイコン10Aは、m=1となっている、過去に通信ポートの切り替えを1回実施済みの状態で連続N回通信異常が発生すると、異常確定と判断してマイコン10Bとの通信を停止し、その旨をブザーの鳴動、表示部への表示などによってユーザに報知する。
 上記のステップS20においてマイコン10Aが通信ポートを切り替える処理について、図3を用いて説明する。図3は、本発明にかかる電子機器1が備えるマイコン10Aが通信ポートを切り替える動作の一例を示すフローチャートである。
 マイコン10Aは、通信ポートを切り替える場合、まず、通信用のポートがポートP11か否か、すなわち、ポートP11が送信ポートに設定されているか否かを確認する(ステップS31)。
 マイコン10Aは、通信用のポートがポートP11である場合(ステップS31:Yes)、ポートP11を入力ポートに設定し(ステップS32)、ポートP12を送信ポートに設定する(ステップS33)。
 マイコン10Aは、通信用のポートがポートP11ではない場合(ステップS31:No)、ポートP12を入力ポートに設定し(ステップS34)、ポートP11を送信ポートに設定する(ステップS35)。
 図3のフローチャートに示した入力ポートおよび送信ポートの設定順序について、先に入力ポートの設定を行うようにする理由は、一時的に送信ポートが複数になり送信ポート同士の衝突が発生し、すなわち、一方の送信ポートから出力された信号が他方の送信ポートに入力し、逆電流が流れてマイコン10Aが壊れることを防ぐためである。
 なお、マイコン10Aおよび10Bが備える信号送信に使用可能なポートの数が2の場合の例について説明したが、信号送信に使用可能なポートの数が3以上の場合は以下のようになる。マイコン10Aは、他のマイコンであるマイコン10Bとの通信が不可能な状態となり通信ポートを切り替える場合、まず、送信ポートに設定していたポートを入力ポートに設定し、次に、入力ポートに設定していた複数のポートのうち、過去に送信ポートに設定されたことが無いポートの中の1つを送信ポートに設定する。
 以上のように、本実施の形態にかかる電子機器1において、各マイコンは、他のマイコンへの信号送信に使用する複数のポートと他のマイコンからの信号受信に使用するポートとを備え、信号送信に使用する複数のポートの中の1つを送信ポートに設定し、残りを入力ポートに設定する。また、各マイコンは、他のマイコンと通信ができない状態になると、通信ポートの切り替えが可能か否かを確認し、切り替えが可能な場合、送信ポートに設定していたポートを入力ポートに設定し、入力ポートに設定していたポートの中の1つを送信ポートに設定する通信ポート切り替え動作を実行する。また、各マイコンは、他のマイコンと通信ができない状態になり、かつ通信ポートの切り替えができない状態の場合、他のマイコンとの通信を停止して、通信ができない状態となり通信を停止したことをユーザに報知する。これにより、マイコン間で行う通信の信頼性を向上させることが可能な電子機器を実現できる。
 以上の実施の形態に示した構成は、本発明の内容の一例を示すものであり、別の公知の技術と組み合わせることも可能であるし、本発明の要旨を逸脱しない範囲で、構成の一部を省略、変更することも可能である。
 1 電子機器、10A,10B マイクロコントローラ(マイコン)、P11,P12,P21,P31,P32,P41 ポート。

Claims (8)

  1.  相互に通信を行う第1のマイクロコントローラおよび第2のマイクロコントローラを備え、
     前記第1のマイクロコントローラおよび前記第2のマイクロコントローラのそれぞれは、
     信号の送信に使用可能であり、かつ入力ポートとして使用可能な複数の第1のポートと、
     信号の受信に使用する第2のポートと、
     を備え、
     前記複数の第1のポートの中の1つを、信号の送信に使用するポートである送信ポートに設定し、かつ前記複数の第1のポートの残りのポートを入力ポートに設定する、
     電子機器。
  2.  前記第1のマイクロコントローラが備える前記複数の第1のポートと前記第2のマイクロコントローラが備える前記第2のポートとが接続され、前記第2のマイクロコントローラが備える前記複数の第1のポートと前記第1のマイクロコントローラが備える前記第2のポートとが接続される、
     請求項1に記載の電子機器。
  3.  前記第1のマイクロコントローラおよび前記第2のマイクロコントローラは、
     他のコントローラとの通信が不可能な状態となった場合、通信ポートの切り替えが可能な状態であれば、送信ポートに設定されている前記第1のポートを入力ポートに設定するとともに、入力ポートに設定されている前記第1のポートの中の1つを送信ポートに設定する、
     請求項1または2に記載の電子機器。
  4.  前記第1のマイクロコントローラおよび前記第2のマイクロコントローラは、
     送信ポートに設定されている前記第1のポートを入力ポートに設定した後、入力ポートに設定されている前記第1のポートの中の1つを送信ポートに設定する、
     請求項3に記載の電子機器。
  5.  前記第1のマイクロコントローラおよび前記第2のマイクロコントローラは、
     予め定められた回数にわたって連続して通信異常が発生すると、他のコントローラとの通信が不可能な状態と判断する、
     請求項3または4に記載の電子機器。
  6.  前記第1のマイクロコントローラおよび前記第2のマイクロコントローラは、
     入力ポートに設定されている前記第1のポートの中に、過去に送信ポートに設定されたことが無いポートが存在する場合、通信ポートの切り替えが可能な状態であると判断する、
     請求項3から5のいずれか一つに記載の電子機器。
  7.  前記第1のマイクロコントローラおよび前記第2のマイクロコントローラは、
     入力ポートに設定されている前記第1のポートの中の1つを送信ポートに設定する場合、過去に送信ポートに設定されたことが無いポートを送信ポートに設定する、
     請求項3から6のいずれか一つに記載の電子機器。
  8.  前記第1のマイクロコントローラおよび前記第2のマイクロコントローラは、
     通信異常が発生し、かつ通信ポートの切り替えが可能ではない状態の場合、
     通信ができない状態となり通信を停止したことをユーザに報知する、
     請求項3から7のいずれか一つに記載の電子機器。
PCT/JP2018/005669 2018-02-19 2018-02-19 電子機器 WO2019159347A1 (ja)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/JP2018/005669 WO2019159347A1 (ja) 2018-02-19 2018-02-19 電子機器
JP2019571931A JP6851513B2 (ja) 2018-02-19 2018-02-19 電子機器

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/JP2018/005669 WO2019159347A1 (ja) 2018-02-19 2018-02-19 電子機器

Publications (1)

Publication Number Publication Date
WO2019159347A1 true WO2019159347A1 (ja) 2019-08-22

Family

ID=67619236

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/005669 WO2019159347A1 (ja) 2018-02-19 2018-02-19 電子機器

Country Status (2)

Country Link
JP (1) JP6851513B2 (ja)
WO (1) WO2019159347A1 (ja)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1196034A (ja) * 1997-09-16 1999-04-09 Anritsu Corp 現用・予備切替装置及び方法
JP2009048409A (ja) * 2007-08-20 2009-03-05 Canon Inc インターフェース回路及び該回路を備えた集積回路装置
JP2010061606A (ja) * 2008-09-08 2010-03-18 Nec Corp Pciカード、マザーボード、pciバスシステム、制御方法、及びプログラム
JP2015207239A (ja) * 2014-04-23 2015-11-19 富士電機株式会社 制御システム、制御装置およびプログラム
JP2017163776A (ja) * 2016-03-11 2017-09-14 日立オートモティブシステムズ株式会社 制御装置及び複数の演算処理装置における異常通知方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1196034A (ja) * 1997-09-16 1999-04-09 Anritsu Corp 現用・予備切替装置及び方法
JP2009048409A (ja) * 2007-08-20 2009-03-05 Canon Inc インターフェース回路及び該回路を備えた集積回路装置
JP2010061606A (ja) * 2008-09-08 2010-03-18 Nec Corp Pciカード、マザーボード、pciバスシステム、制御方法、及びプログラム
JP2015207239A (ja) * 2014-04-23 2015-11-19 富士電機株式会社 制御システム、制御装置およびプログラム
JP2017163776A (ja) * 2016-03-11 2017-09-14 日立オートモティブシステムズ株式会社 制御装置及び複数の演算処理装置における異常通知方法

Also Published As

Publication number Publication date
JPWO2019159347A1 (ja) 2020-08-27
JP6851513B2 (ja) 2021-03-31

Similar Documents

Publication Publication Date Title
JP5060547B2 (ja) インターフェース装置およびマスター・スレーブ構造を有する通信システム
JP3978617B2 (ja) 安全ユニットの入力装置
JP2005277978A (ja) 識別番号自動設定方法及び識別番号自動設定装置
WO2019159347A1 (ja) 電子機器
CN111083198B (zh) 通信链路的切换方法、主域服务器、从域服务器及***
JP6496747B2 (ja) 通信するホストから離れた、シリアル半二重トランシーバにおけるtx/rxモード制御
US10574514B2 (en) Duplex control device and duplex system
JP6274436B2 (ja) 二重化制御システム
JP2002063080A (ja) インターフェース装置
JP2008301141A (ja) 交換器
JP6296487B2 (ja) 断線の検知及び通知機能を有する通信装置
JP6234388B2 (ja) 2重系制御装置
JP2737294B2 (ja) 受信部二重化回路
JP2009130536A (ja) 回線接続装置及び通信システム
JP4544015B2 (ja) 二重系遠方監視制御システム
JP6600542B2 (ja) 制御装置及び制御方法
KR20230130710A (ko) 스위칭 시스템 및 스위치
JPS63197197A (ja) 負荷制御システム
JP2021012517A (ja) コントローラ冗長化システム及びその制御方法
JP6332905B2 (ja) プラント制御装置
KR100788014B1 (ko) 방송신호 송출 시스템 및 방법
JPH11283167A (ja) 伝送線路断線補償装置およびトンネル防災システム
KR101563932B1 (ko) 이중화 시스템의 이중화 상태 전환 장치 및 방법
JP2013164763A (ja) 二重化システム系切替制御装置
JPH10294723A (ja) 多重通信システム

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18906532

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019571931

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18906532

Country of ref document: EP

Kind code of ref document: A1