JP6391373B2 - Master / slave network device - Google Patents
Master / slave network device Download PDFInfo
- Publication number
- JP6391373B2 JP6391373B2 JP2014178687A JP2014178687A JP6391373B2 JP 6391373 B2 JP6391373 B2 JP 6391373B2 JP 2014178687 A JP2014178687 A JP 2014178687A JP 2014178687 A JP2014178687 A JP 2014178687A JP 6391373 B2 JP6391373 B2 JP 6391373B2
- Authority
- JP
- Japan
- Prior art keywords
- slave
- master
- ecu
- port
- network device
- 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
Links
Images
Description
本発明は、マスター・スレーブの構成を有するネットワーク装置に関し、特にマスター・スレーブが同一品番の機器で構成されるマスター・スレーブネットワーク装置に関するものである。 The present invention relates to a network device having a master / slave configuration, and more particularly to a master / slave network device in which a master / slave is composed of devices of the same product number.
マスター・スレーブの構成を有するネットワーク装置に関する従来の技術として、例えば特許文献1〜3に記載されたものが知られている。特許文献1ではマスター装置とスレーブ装置とがあらかじめ区別されており、複数あるスレーブ装置にIDを設定するための技術が記載されている。複数のスレーブ装置にIDを設定するために電源線とスイッチが設けられており、高コストな構成となっている。また特許文献2では、スイッチを設けずにスレーブ装置にIDを設定するための技術が記載されている。さらに特許文献3でも、複数のスレーブLAN機器にIDを設定するための技術が記載されており、ID設定のために管理用データ線が設けられている。
As a conventional technique related to a network device having a master / slave configuration, for example, those described in
マスター・スレーブ構成のネットワーク装置として、たとえば車両に搭載された複数のECU(Electric Control Unit)が車両のCAN(Controller Area Network)バスに接続されて構成されたものが知られている。車両に搭載されたネットワーク装置の一例を図4に示す。同図では、上位ECU91が接続された車両バス92に、さらに2つのECU93、94が接続されたネットワーク装置90が示されている。ここでは、ECU93をマスターECUとし、ECU94をスレーブECUとしている。また、車両バス92はCANバスを形成している。
As a network device having a master / slave configuration, for example, a device in which a plurality of ECUs (Electric Control Units) mounted on a vehicle are connected to a vehicle CAN (Controller Area Network) bus is known. An example of a network device mounted on a vehicle is shown in FIG. In the figure, a
マスターECU93は、車両バス92を介してスレーブECU94から情報を受信し、これと自身の情報とを統合して所定の処理を行う。またマスターECU93は、処理結果を車両バス92を介して上位ECU91に出力する等、上位ECU91との間で情報の授受を行う。スレーブECU94は、制御等により得られた情報を車両バス92を介してマスターECU93に伝達する。
The master ECU 93 receives information from the slave ECU 94 via the
図4に例示するようなマスター・スレーブネットワーク装置90において、2つのECU93、94にハードウェア、ソフトウェア及び設定パラメータが同じ機器を用いるとき、それぞれにマスターまたはスレーブであることを認識させる必要がある。各ECUにマスターかスレーブかを認識させる方法として、以下の4つの方法が考えられる。
In the master /
方法1:出荷前に各ECUの所定のパラメータにマスターまたはスレーブの設定値を書き込み、当該パラメータへの書き込み後に出荷する。各ECUを車両に取り付けるとき、当該パラメータにマスターの設定値が書き込まれたECUをマスターECU93として車両に取り付け、スレーブの設定値が書き込まれたECUをスレーブECU94として取り付ける。
Method 1: A master or slave setting value is written in a predetermined parameter of each ECU before shipment, and shipment is performed after writing the parameter. When each ECU is attached to the vehicle, the ECU in which the master setting value is written in the parameter is attached to the vehicle as the
方法2:各ECUの出荷後車両への取り付け前に、ディーラーが各ECUにマスターまたはスレーブの設定を行い、マスターの設定が行われたECUをマスターECU93として車両に取り付け、スレーブの設定が行われたECUをスレーブECU94として取り付ける。この方法では、2つのECUは出荷時にマスターとスレーブの区別がなく、同じ製品のECUとして出荷することができる点で方法1と異なっている。
Method 2: After each ECU is shipped and before installation on the vehicle, the dealer sets each ECU as a master or slave, and the master on which the master is set is attached to the vehicle as a
方法3:各ECUにマスターまたはスレーブを選択するスイッチを出荷前に設置しておき、車両への取り付け時に当該スイッチでマスターかスレーブかを選択する。これにより、各ECUはスイッチからの電気信号によりマスターであるかあるいはスレーブであるかを認識することができる。この方法でも、2つのECUが出荷時にマスターとスレーブの区別がないという点で方法2に類似しているが、本方法ではスイッチからの電気信号を用いてマスターかスレーブかを電気的に区別している。
Method 3: A switch for selecting a master or a slave is installed in each ECU before shipment, and when the switch is attached to a vehicle, the switch is selected as a master or a slave. Thereby, each ECU can recognize whether it is a master or a slave by the electrical signal from a switch. This method is similar to
方法4:車両バス92にマスターECU93を接続するためのインターフェースコネクタとスレーブECU94を接続するためのインターフェースコネクタの少なくともいずれか一方に、マスター/スレーブを識別するためのピンを設けておく。一例として、マスターECU93を接続するインターフェースコネクタのみにピンを設けたものを図5に示す。同図では、マスターECU93を接続するインターフェースコネクタ95のみにピン97を設け、スレーブECU94を接続するインターフェースコネクタ96にはピンを設けていない。インターフェースコネクタ95に接続されたECUは、ピン97の情報を読み取ることでマスターECUであることを認識し、インターフェースコネクタ96に接続されたECUは、ピン情報が得られないことでスレーブであることを認識することができる。
Method 4: At least one of an interface connector for connecting the
上記の方法1〜4のうち方法1では、出荷時にマスターECU93に用いるECUとスレーブECU94に用いるECUとで、パラメータの設定値が異なっている。そのため、出荷後各ECUをマスターとスレーブに区別して管理する必要があり、各ECUを区別して車両に取り付ける必要がある。これに対し方法2〜4では、出荷時には各ECUにマスターとスレーブの区別がなく、ハードウェア、ソフトウェア及び設定されているパラメータがすべて同じとなっている。以下では、ハードウェア、ソフトウェア及び設定パラメータがすべて同じECUを同一品番ECUと称することとする。方法2〜4で各ECUにマスターとスレーブの区別が付加されるのは、各ECUが車両に取り付けられる直前あるいは取り付けられた後である。
Among the above-described
上記の方法2〜4では、マスターECU93とスレーブECU94に同一品番ECUを用いることから、ECUのメーカ側及びユーザ側とも各ECUを区別することなく同一種類の機器として管理することができ、ECUの管理コストを下げることができるといった利点を有している。
In the
しかしながら、特許文献1〜3に記載の従来技術では、マスターの機器とスレーブの機器とがあらかじめ区別されており、同一品番の機器を用いてそれぞれをマスターとスレーブに認識させるための技術については何ら記載がない。マスターの機器とスレーブの機器とをあらかじめ区別してネットワーク装置に用いる場合には、それぞれを別々に管理する必要があることから、管理コストが上昇するといった問題がある。なお、特許文献1では電源線とスイッチが必要となり、特許文献3では管理用データ線が必要となることから、高コストになるといった問題も有している。
However, in the prior art described in
また、複数のECUを備えたマスター・スレーブネットワーク装置において、各ECUがマスターかスレーブかを認識させる上記4つの方法では、それぞれ以下のような課題がある。方法1では、あらかじめマスターECUとスレーブECUとに区別されて異なる品番として出荷されることから、特許文献1〜3と同様にそれぞれを別々に管理する必要があり、高コストになるといった問題がある。
Further, in the master / slave network device including a plurality of ECUs, the above four methods for recognizing whether each ECU is a master or a slave have the following problems. In
方法2〜4では、マスターECUとスレーブECUに同一品番ECUを用いることから管理コストを下げることができるといった利点があるが、それぞれ以下のような問題を有している。まず方法2では、ディーラーが各ECUにマスターまたはスレーブの設定を行う必要があることから、ディーラーで新たな工数が発生する。また、各ECUにマスターかスレーブの設定を行ために、新たにCAN通信ツールが必要になる、といった問題もある。
The
方法3では、ディーラーがスイッチを操作してマスターかスレーブかの選択を行う必要があり、やはりディーラーで新たな工数が発生する。また、各ECUにあらかじめスイッチを設置しておく必要があるため、コストの上昇につながる。
In the
さらに方法4では、同一品番ECUを接続するインターフェースコネクタに、マスター/スレーブを識別するためのピンをあらかじめ設けておき、マスターとスレーブとで所定の差分(例えば所定の電圧印加の有無)を与えるようにする必要がある。このように、マスターに用いるECUとスレーブに用いるECUとで異なるコネクタを用いる必要が生じる。また、この用途のためにインターフェースコネクタに専用ピンを1ピン分用意する必要があり、コネクタのピン数が増加してコストの上昇につながる。 Further, in the method 4, a pin for identifying the master / slave is provided in advance in the interface connector that connects the same product number ECU so that a predetermined difference (for example, whether or not a predetermined voltage is applied) is given between the master and the slave. It is necessary to. Thus, it is necessary to use different connectors for the ECU used for the master and the ECU used for the slave. In addition, it is necessary to prepare one dedicated pin for the interface connector for this application, which increases the number of pins of the connector and leads to an increase in cost.
さらに、マスターECUとスレーブECUをともに車両バスに接続する従来のネットワーク装置では、スレーブECUからマスターECUへの情報伝達を車両バスを介して行うことから、車両バスに伝達される情報量が増大して通信負荷が大きくなるといった問題もある。 Furthermore, in the conventional network device in which both the master ECU and the slave ECU are connected to the vehicle bus, information is transmitted from the slave ECU to the master ECU via the vehicle bus, so the amount of information transmitted to the vehicle bus increases. There is also a problem that the communication load increases.
本発明はこのような問題を解決するためになされたものであり、同一品番の機器を用いてそれぞれがマスターかスレーブかを自動認識することが可能なマスター・スレーブネットワーク装置を提供することを目的とする。 The present invention has been made to solve such problems, and an object of the present invention is to provide a master / slave network device capable of automatically recognizing whether each device is a master or a slave using the same product number. And
本発明のマスター・スレーブネットワーク装置の第1の態様は、マスターとなる1の機器に対してスレーブとなる1または2以上の機器を配置して構成されたマスター・スレーブネットワーク装置であって、前記マスターとなる機器及び前記スレーブとなる機器は、ハードウェア、ソフトウェア及びパラメータの設定値が同じ同一品番の機器であり、それぞれマスターまたはスレーブを自動認識するマスター/スレーブ判定部を有し、前記機器はそれぞれ2つのポートを有し、情報を伝達するバスとして、システム全体を統括する基幹バスであり前記マスターとなる機器の一方のポートが接続されるメインバスと、前記マスターとなる機器の他方のポートと前記スレーブとなる機器の一方のポートとが接続されるローカルバスとを有し、前記マスター/スレーブ判定部は、所定の処理により前記一方のポートが前記メインバスに接続されているか否かを判定し、前記メインバスに接続されていると判定すると当該の前記機器が前記マスターとなることを自動認識するとともに、前記他方のポートにスレーブ認識信号を出力し、前記一方のポートから前記スレーブ認識信号を入力すると当該の前記機器が前記スレーブとなることを自動認識することを特徴とする。
A first aspect of the master / slave network device of the present invention is a master / slave network device configured by arranging one or more devices serving as slaves with respect to one device serving as a master, The master device and the slave device are devices of the same product number with the same hardware, software, and parameter setting values, each having a master / slave determination unit that automatically recognizes the master or slave, Each bus has two ports and is a backbone bus that supervises the entire system as a bus for transmitting information. A main bus to which one port of the master device is connected, and the other port of the master device And a local bus to which one port of the slave device is connected, and The star / slave determination unit determines whether or not the one port is connected to the main bus by a predetermined process, and when determining that the one port is connected to the main bus, the device becomes the master. The device automatically recognizes this, outputs a slave recognition signal to the other port, and automatically recognizes that the device becomes the slave when the slave recognition signal is input from the one port. .
本発明のマスター・スレーブネットワーク装置の他の態様は、前記マスター/スレーブ判定部は、前記所定の処理として、前記一方のポートから前記メインバスに伝達される情報を入力したときに前記メインバスに接続されていると判定することを特徴とする。 According to another aspect of the master / slave network device of the present invention, the master / slave determination unit inputs the information transmitted from the one port to the main bus as the predetermined process. It is characterized by determining that it is connected.
本発明のマスター・スレーブネットワーク装置の他の態様は、前記マスター/スレーブ判定部は、前記所定の処理として、前記メインバスに接続されている別の機器と所定の通信を行ったときに前記メインバスに接続されていると判定することを特徴とする。 In another aspect of the master / slave network device of the present invention, the master / slave determination unit performs the main communication when performing predetermined communication with another device connected to the main bus as the predetermined processing. It is determined that it is connected to a bus.
本発明のマスター・スレーブネットワーク装置の他の態様は、前記機器はそれぞれ不揮発性のメモリを有し、前記マスター/スレーブ判定部は、当該の前記機器が前記マスターまたは前記スレーブと自動認識した結果を前記メモリに保存し、前記自動認識した結果が前記メモリに保存されているときは、前記メモリから前記自動認識した結果を読み込んで当該の前記機器が前記マスターまたは前記スレーブとなることを自動認識することを特徴とする。 In another aspect of the master / slave network device of the present invention, each of the devices has a non-volatile memory, and the master / slave determination unit determines whether the device automatically recognizes the master or the slave. When the result of automatic recognition stored in the memory is saved in the memory, the automatic recognition result is read from the memory and the device is automatically recognized as the master or the slave. It is characterized by that.
本発明のマスター・スレーブネットワーク装置の他の態様は、前記機器は、前記2つのポートのいずれか一方から入力した信号を他方の前記ポートに出力するゲートウェイ部をそれぞれ有しており、前記マスターとなる機器の前記ゲートウェイ部は、前記メインバスに接続されている別の機器と前記スレーブとなる機器との間の信号を送受信させ、前記スレーブとなる機器の前記ゲートウェイ部は、不動作に処理されていることを特徴とする。 In another aspect of the master / slave network device of the present invention, the device includes a gateway unit that outputs a signal input from one of the two ports to the other port, and The gateway unit of the device to be transmitted / receives a signal between another device connected to the main bus and the device to be the slave, and the gateway unit of the device to be the slave is processed inoperatively It is characterized by.
本発明のマスター・スレーブネットワーク装置の他の態様は、前記スレーブとなる機器の前記2つのポートに前記マスターとなる機器または別の前記スレーブとなる機器が接続されて前記スレーブとなる機器が2以上デイジーチェーン状に接続されており、前記2つのポートの一方から前記スレーブ認識信号を入力すると、当該の前記機器が前記スレーブとなることを自動認識するとともに、前記2つのポートの他方に前記スレーブ認識信号を出力することを特徴とする。 According to another aspect of the master / slave network device of the present invention, two or more devices serving as the slave are connected by connecting the device serving as the master or another device serving as the slave to the two ports of the device serving as the slave. When the slave recognition signal is input from one of the two ports and connected to the daisy chain, it automatically recognizes that the device is the slave and recognizes the slave to the other of the two ports. A signal is output.
本発明によれば、同一品番の機器を用いてそれぞれがマスターかスレーブかを自動認識することが可能なマスター・スレーブネットワーク装置を提供することができる。 According to the present invention, it is possible to provide a master / slave network device capable of automatically recognizing whether each is a master or a slave by using devices of the same product number.
本発明の好ましい実施の形態におけるマスター・スレーブネットワーク装置について、図面を参照して詳細に説明する。なお、同一機能を有する各構成部については、図示及び説明簡略化のため、同一符号を付して示す。以下では、車両に搭載された複数のECUが車両のCANバスに接続されて構成されたマスター・スレーブネットワーク装置を例に説明するが、これに限定されるものではない。 A master / slave network device according to a preferred embodiment of the present invention will be described in detail with reference to the drawings. In addition, about each structural part which has the same function, the same code | symbol is attached | subjected and shown for simplification of illustration and description. In the following, a master / slave network apparatus configured by connecting a plurality of ECUs mounted on a vehicle to a CAN bus of the vehicle will be described as an example. However, the present invention is not limited to this.
(第1実施形態)
本発明の第1実施形態に係るマスター・スレーブネットワーク装置を、図1を用いて説明する。図1は、本実施形態のマスター・スレーブネットワーク装置100の構成を示すブロック図である。本実施形態のマスター・スレーブネットワーク装置100は、メインバスである車両バス110と、車両バス110に接続されたマスターECU120と、ローカルバス140を介してマスターECU120に接続されたスレーブECU130とを備えている。また車両バス110には、マスターECU120及びスレーブECU130の上位に位置付けられる上位ECU10が接続されている。
(First embodiment)
A master / slave network device according to a first embodiment of the present invention will be described with reference to FIG. FIG. 1 is a block diagram illustrating a configuration of a master / slave network device 100 according to the present embodiment. The master / slave network device 100 of the present embodiment includes a
マスターECU120とスレーブECU130は、ハードウェア、ソフトウェア及び設定されているパラメータがすべて同じ同一品番ECUである。また、車両バス110とローカルバス140は、ともにCANバスを形成している。マスターECU120及びスレーブECU130は、それぞれCANポートを2つ有しているものとする。図1では、マスターECU120がCANポート121、122を有し、スレーブECU130がCANポート131、132を有している。
The
本実施形態のマスター・スレーブネットワーク装置100では、マスターECU120の1つのCANポート121が車両バス110に接続され、スレーブECU130の1つのCANポート131がローカルバス140を介してマスターECU120の別の1つのCANポート122に接続されることを特徴としている。
In the master / slave network device 100 of this embodiment, one CAN port 121 of the
マスターECU120及びスレーブECU130をそれぞれ車両バス110及びローカルバス140に接続することで、本実施形態ではECU120がマスターでありECU130がスレーブであることを、下記のようにして自動認識させることが可能となる。
By connecting the
まずECU120は、CANポート121が車両バス110に接続されていることから、車両バス110に伝達される情報をCANポート121から入力することができ、上位ECU10との通信を行うことも可能である。これに対しECU130は、CANポート131、132とも車両バス110に接続されていないことから、車両バス110に伝達される情報を入力することができず、上位ECU10との通信もできない。本実施形態のマスター・スレーブネットワーク装置100では、このような車両バス110を介した処理が可能か否かによってマスターか否かを判定するようにしている。
First, since the CAN port 121 is connected to the
マスターか否かを判定するために、ECU120,130はそれぞれマスター/スレーブ判定部101を備えている。マスター/スレーブ判定部101は、車両バス110を介した所定の処理が行えるか否かにより、当該のECUがマスターか否かを判定するものである。所定の処理として上記のように、車両バス110に伝達される情報の入力、あるいは上位ECU10との通信、があり、これらの処理が可能か否かを判定することでマスターか否かを判定することができる。
In order to determine whether or not it is a master, the
ECU120は、CANポート121が車両バス110に接続されていることから、CANポート121から車両バス110に伝達される情報を入力することができ、該情報を入力したと判定することで、当該のECU120がマスターであると自動認識することができる。これに対しECU130は、CANポート131、132とも車両バス110に接続されていないことから、車両バス110に伝達される情報を入力することができず、マスターであるとの自動認識は行われない。
Since the CAN port 121 is connected to the
車両バス110に伝達される情報として、例えば車速、ブレーキ状態、等の情報をあらかじめ選択しておき、この情報を入力したときにマスターであると判定するようにすることができる。あるいは、何らかの情報を入力するとマスターであると判定するようにしてもよい。起動時はローカルバス140に何の情報も伝達されていないことから、ECU130が何らかの情報を入力してマスターであると判定することはない。
As information transmitted to the
マスター/スレーブ判定部101による車両バス110を介した所定の処理として、上位ECU10との通信が可能か否かを判定するものであってもよい。一例として、上位ECU10が所定の周期で出力する所定のパケットを受信したか否かを判定し、受信したと判定したときに当該のECU120がマスターであると自動認識させる。
As a predetermined process via the
あるいは、ECU120、130のそれぞれのマスター/スレーブ判定部101がそれぞれのCANポートに所定の確認信号を出力し、これに対する上位ECU10からの応答信号を受信したときに、当該のECU120がマスターであると自動認識させるようにしてもよい。ECU120のマスター/スレーブ判定部101から出力された確認信号は、CANポート121から車両バス110を介して上位ECU10に伝達されることから、上位ECU10から応答信号が送信され、ECU120のマスター/スレーブ判定部101がCANポート121から該応答信号を入力することができる。
Alternatively, when each master /
これに対しECU130のマスター/スレーブ判定部101から出力された確認信号は、CANポート131、132のいずれからも車両バス110に出力することができない。また、ECU120からの確認信号に応じて上位ECU10が応答信号を車両バス110に出力しても、ECU130のマスター/スレーブ判定部101はこれを入力することができない。よって、ECU130がマスターであると自動認識されることはない。
On the other hand, the confirmation signal output from the master /
ECU120がマスターであると自動認識されると、ECU120のマスター/スレーブ判定部101は、車両バス110に接続されたCANポート121とは別のCANポート122にスレーブ認識信号を出力するものとする。CANポート122はローカルバス140に接続され、ローカルバス140はECU130のCANポート131に接続されていることから、ECU120のCANポート122に出力されたスレーブ認識信号は、ローカルバス140を介してECU130に伝達される。ECU130のマスター/スレーブ判定部101は、CANポート131からスレーブ認識信号を入力すると、当該のECU130がスレーブであると自動認識する。
When the
ECU120、130に設けられたマスター/スレーブ判定部101は、車両の電源が投入されてECU120、130がそれぞれ起動したときに上記の処理を開始する。そして、それぞれがマスターまたはスレーブに自動認識されたときにマスター/スレーブ判定部101の処理を終了する。ECU120、130がそれぞれマスター、スレーブに自動認識されると、その結果をそれぞれのメモリ102に記憶させておくことができる。メモリ102として、例えばNVM(Non−Volatile Memory)を用いるのがよい。これにより、以降のECU120、130の起動時には、メモリ102に記憶された自動認識結果を読み込んでそれぞれをマスター、スレーブに設定することができる。
The master /
これに対し、自動認識結果をメモリ102に記憶させず、ECU120、130の起動毎に、マスター/スレーブ判定部101によるマスター/スレーブの自動認識を行わせるようにしてもよい。この場合には、例えばECUの不具合等のため車両から一旦取り外されたとき、修理・調整等の後再び車両に取り付けるにあたって、各ECUが取り外し前にマスターであったかスレーブであったかを確認する必要がない、といった効果が得られる。例えば、ECU130をマスターの位置に取り付けECU120をスレーブの位置に取り付けたとしても、起動後にマスター/スレーブ判定部101によってECU130、120がそれぞれマスター、スレーブであると自動認識される。
On the other hand, the automatic recognition result may not be stored in the
上記説明のように、本実施形態のマスター・スレーブネットワーク装置100では、マスター用のECU及びスレーブ用のECUに同一品番のものを用いることができ、ECUの出荷時や出荷後の管理コストを低減させることができる。また、車両バス110及びローカルバス140に接続された各ECUに対し、マスターかスレーブかをマスター/スレーブ判定部101を用いて自動認識させることができる。その結果、ディーラー等による作業や特別なハードウェア等が不要となり、コストの増加を抑制することができる。
As described above, in the master / slave network device 100 of this embodiment, the master ECU and the slave ECU can have the same product number, which reduces the management cost at the time of shipment of the ECU and after shipment. Can be made. In addition, each ECU connected to the
さらに、本実施形態のマスター・スレーブネットワーク装置100では、マスターECU120とスレーブECU130との間のデータ送受信を、車両バス110を用いずローカルバス140を用いて行っていることから、車両バス110の通信負荷を増大させないといった効果も得られる。とくに、CANバスは低速のバスであることから、ローカルバスを用いることで車両バスの負荷を増大させないようにすることは大きな利点となる。
Furthermore, in the master / slave network device 100 of the present embodiment, data transmission / reception between the
(第2実施形態)
本発明の第2実施形態に係るマスター・スレーブネットワーク装置を、図2を用いて説明する。図2は、本実施形態のマスター・スレーブネットワーク装置200の構成を示すブロック図である。第1実施形態のマスター・スレーブネットワーク装置100では、上位ECU10との間で直接通信可能なのはマスターECU120のみであり、スレーブECU130は上位ECU10と直接通信を行うことはできない。これに対し、スレーブECU130も上位ECU10との直接通信が必要になることが考えられる。例えば、上位ECU10からECU120、130のそれぞれにソフトウェアをダウンロードするとき、あるいは故障情報を送信するとき等には、上位ECU10とECU120、130のそれぞれとの間で直接通信が必要になることがある。
(Second Embodiment)
A master / slave network device according to a second embodiment of the present invention will be described with reference to FIG. FIG. 2 is a block diagram showing the configuration of the master /
そこで、本実施形態のマスター・スレーブネットワーク装置200では、マスターECU220及びスレーブECU230のそれぞれにゲートウェイ部202が設けられている。マスターECU220のゲートウェイ部202は、2つのCANポート221、222の一方から入力したパケットを他方のCANポートに転送して出力する。これにより、上位ECU10とスレーブECU230との間の直接通信は、マスターECU220のゲートウェイ202を用いて行われる。
Therefore, in the master /
より具体的には、上位ECU10からスレーブECU230に直接送信されるパケットは、上位ECU10からマスターECU220のCANポート221に送信され、マスターECU220のゲートウェイ202によりCANポート221からCANポート222に転送され、CANポート222からスレーブECU230のCANポート231に送信される。また、スレーブECU230から上位ECU10に直接送信されるパケットは、スレーブECU230のCANポート231からマスターECU220のCANポート222に送信され、マスターECU220のゲートウェイ202によりCANポート222からCANポート221に転送され、CANポート221から上位ECU10に送信される。
More specifically, a packet directly transmitted from the
マスターECU220とスレーブECU230は同一品番であることから、スレーブECU230にもゲートウェイ部202が設けられている。しかし、スレーブECU230のCANポート232には別のECUが接続されていないことから、スレーブECU230のゲートウェイ部202が動作しないように処理しておく必要がある。
Since the
上位ECU10とECU220、230との間で直接通信が適切に行えるようにするには、通信パケットがECU220に送信されるものなのか、あるいはECU230に送信されるものなのか、を識別できるようにしておく必要がある。そこで、ECU220、230に対応する固有のIDを通信パケットに付加させるものとする。これにより、上位ECU10から送信されたパケットにマスターECU220のIDが付加されているときは、マスターECU220がこれを受信する。また、上位ECU10から送信されたパケットにスレーブECU230のIDが付加されているときは、マスターECU220のゲートウェイ部202を経由してスレーブECU230がこれを受信する。
In order to enable proper direct communication between the
本実施形態のマスター・スレーブネットワーク装置200によれば、マスターECU220だけでなくスレーブECU230でも、上位ECU10との間で直接通信が可能となる。
According to the master /
(第3実施形態)
本発明の第3実施形態に係るマスター・スレーブネットワーク装置を、図3を用いて説明する。図3は、本実施形態のマスター・スレーブネットワーク装置300の構成を示すブロック図である。本実施形態のマスター・スレーブネットワーク装置300は、複数のスレーブECU330がマスターECU320にデイジーチェーン状に接続されて構成されており、図3では3つのスレーブECU330が接続されている。以下では、3つのスレーブECU330をそれぞれ330(1)〜330(3)で表す。
(Third embodiment)
A master / slave network device according to a third embodiment of the present invention will be described with reference to FIG. FIG. 3 is a block diagram showing the configuration of the master /
スレーブECU330(1)は、CANポート331(1)がローカルバス341でマスターECU320のCANポート322に接続され、CANポート332(1)はローカルバス342に接続されている。また、スレーブECU330(2)は、CANポート331(2)がローカルバス342でスレーブECU330(1)のCANポート332(1)に接続され、CANポート332(2)はローカルバス343に接続されている。さらに、スレーブECU330(3)は、CANポート331(3)がローカルバス343でスレーブECU330(2)のCANポート332(2)に接続され、CANポート332(3)には何も接続されていない。
In the slave ECU 330 (1), the CAN port 331 (1) is connected to the
本実施形態でも、マスターECU320及びスレーブECU330(1)〜330(3)は、すべて同一品番のECUを用いており、それぞれマスターかスレーブかをそれぞれのマスター/スレーブ判定部301を用いて自動認識する。ここで、マスターECU320に接続されたスレーブECU330(1)では、マスター/スレーブ判定部301がマスターECU320から出力されたスレーブ認識信号をCANポート331(1)から入力してスレーブであることを自動認識すると、つぎにスレーブ認識信号をCANポート332(1)に出力する。
Also in this embodiment, the
ローカルバス342でスレーブECU330(1)に接続されたスレーブECU330(2)では、マスター/スレーブ判定部301がCANポート331(2)からスレーブ認識信号を入力してスレーブであることを自動認識する。その後、スレーブ認識信号をCANポート332(2)に出力する。さらに、ローカルバス343でスレーブECU330(2)に接続されたスレーブECU330(3)では、マスター/スレーブ判定部301がCANポート331(3)からスレーブ認識信号を入力してスレーブであることを自動認識する。その後、スレーブ認識信号をCANポート332(3)に出力するが、CANポート332(3)には別のスレーブECUが接続されていないため、スレーブ自動認識の処理が終了する。
In the slave ECU 330 (2) connected to the slave ECU 330 (1) by the
上記のように本実施形態のマスター・スレーブネットワーク装置300では、スレーブECU330のマスター/スレーブ判定部301がスレーブ認識信号をCANポート331から入力すると、スレーブであることを自動認識した後スレーブ認識信号をCANポート332に出力するように構成されている。これにより、スレーブECUが複数(以下ではn(自然数)個とする)デイジーチェーン状に接続されている場合でも、n個すべてのスレーブECUに対してスレーブであることを自動認識させることが可能となっている。
As described above, in the master /
本実施形態のマスター・スレーブネットワーク装置300においても、各スレーブECU330が上位ECU10と直接通信可能となるようにゲートウェイ部202を有する構成とすることができる。この場合、マスターECU320及びn個のスレーブECU330(1)〜330(n)はすべて同一品番のECUを用いていることから、マスターECU320及びn個のスレーブECU330(1)〜330(n)のすべてがゲートウェイ部202を有することになる。
The master /
n個のスレーブECU330(1)〜330(n)は、順次デイジーチェーン接続されていることから、n番目のスレーブECU330(n)のCANポート332(n)には別のスレーブECU330が接続されていない。そのため、n番目のスレーブECU330(n)のゲートウェイ部202が動作しないように処理しておく必要がある。そこで、n番目のスレーブECU330(n)が最終端に接続されていることを、以下のようにして自動認識できるようにすることで、スレーブECU330(n)のゲートウェイ部202を自動で不動作にすることができる。
Since the n slave ECUs 330 (1) to 330 (n) are sequentially daisy chained, another
各スレーブECU330のマスター/スレーブ判定部301がCANポート331からスレーブ認識信号を入力したとき、所定の応答信号をCANポート331に出力するようにする。応答信号は、CANポート331からローカルバスを経由してスレーブ認識信号の送信元であるスレーブECU330のCANポート332に伝達される。そこで、各スレーブECU330のマスター/スレーブ判定部301は、スレーブ認識信号をCANポート332に出力した後、送信先からの応答信号がCANポート332に返されるのを待つ。このとき、スレーブ認識信号を出力してから所定時間経過しても応答信号が返されないときは、マスター/スレーブ判定部301は当該のスレーブECU330が最終端のスレーブECU330であると判定する。最終端のスレーブECU330であると判定したときは、当該のスレーブECU330のゲートウェイ部202が動作しないように処理する。
When the master /
本実施形態のマスター・スレーブネットワーク装置300では、マスターECU320及びn個のスレーブECU330に同一品番のものを用いることができ、それぞれマスターかスレーブかを自動認識させることが可能となっている。これにより、ECUの出荷時や出荷後の管理コストを低減させることができるとともに、ディーラー等による作業や特別なハードウェア等が不要となり、コストの増加を抑制することができる。
In the master /
なお、本実施の形態における記述は、本発明に係るマスター・スレーブネットワーク装置の一例を示すものであり、これに限定されるものではない。本実施の形態におけるマスター・スレーブネットワーク装置の細部構成及び詳細な動作等に関しては、本発明の趣旨を逸脱しない範囲で適宜変更可能である。 Note that the description in the present embodiment shows an example of the master / slave network device according to the present invention, and the present invention is not limited to this. The detailed configuration and detailed operation of the master / slave network device according to the present embodiment can be appropriately changed without departing from the gist of the present invention.
10 上位ECU
100、200、300 マスター・スレーブネットワーク装置
101、301 マスター/スレーブ判定部
102 メモリ
110 車両バス
120、220、320 マスターECU
130、230、330 スレーブECU
121、122、131、132、221、222、231、232、321、322、331、332 CANポート
140,341〜343 ローカルバス
202 ゲートウェイ部
10 Host ECU
100, 200, 300 Master /
130, 230, 330 Slave ECU
121, 122, 131, 132, 221, 222, 231, 232, 321, 322, 331, 332
Claims (6)
前記マスターとなる機器及び前記スレーブとなる機器は、ハードウェア、ソフトウェア及びパラメータの設定値が同じ同一品番の機器であり、それぞれマスターまたはスレーブを自動認識するマスター/スレーブ判定部を有し、
前記機器はそれぞれ2つのポートを有し、
情報を伝達するバスとして、システム全体を統括する基幹バスであり前記マスターとなる機器の一方のポートが接続されるメインバスと、前記マスターとなる機器の他方のポートと前記スレーブとなる機器の一方のポートとが接続されるローカルバスとを有し、
前記マスター/スレーブ判定部は、
所定の処理により前記一方のポートが前記メインバスに接続されているか否かを判定し、前記メインバスに接続されていると判定すると当該の前記機器が前記マスターとなることを自動認識するとともに、前記他方のポートにスレーブ認識信号を出力し、
前記一方のポートから前記スレーブ認識信号を入力すると当該の前記機器が前記スレーブとなることを自動認識する
ことを特徴とするマスター・スレーブネットワーク装置。 A master / slave network device configured by arranging one or more devices as slaves with respect to one device as a master,
The master device and the slave device are devices of the same product number with the same hardware, software, and parameter setting values, each having a master / slave determination unit that automatically recognizes the master or slave ,
Each of the devices has two ports,
As a bus for transmitting information, a main bus that controls the entire system and is connected to a main bus to which one port of the master device is connected; one of the other port of the master device and the slave device A local bus to which the port is connected,
The master / slave determination unit
It is determined whether or not the one port is connected to the main bus by a predetermined process, and when it is determined that the one port is connected to the main bus, the device is automatically recognized as the master, Outputs a slave recognition signal to the other port;
The master / slave network device, wherein when the slave recognition signal is input from the one port, the device is automatically recognized as the slave.
ことを特徴とする請求項1に記載のマスター・スレーブネットワーク装置。 The master / slave determination unit determines that it is connected to the main bus when the information transmitted from the one port to the main bus is input as the predetermined processing. 2. The master / slave network device according to 1.
ことを特徴とする請求項1に記載のマスター・スレーブネットワーク装置。 The master / slave determination unit determines, as the predetermined process, that it is connected to the main bus when performing predetermined communication with another device connected to the main bus. The master / slave network device according to claim 1 .
前記マスター/スレーブ判定部は、当該の前記機器が前記マスターまたは前記スレーブと自動認識した結果を前記メモリに保存し、前記自動認識した結果が前記メモリに保存されているときは、前記メモリから前記自動認識した結果を読み込んで当該の前記機器が前記マスターまたは前記スレーブとなることを自動認識する
ことを特徴とする請求項1乃至3のいずれか1項に記載のマスター・スレーブネットワーク装置。 Each of the devices has a non-volatile memory,
The master / slave determination unit stores the result of automatic recognition of the device as the master or the slave in the memory, and when the result of automatic recognition is stored in the memory, The master / slave network device according to any one of claims 1 to 3 , wherein a result of automatic recognition is read to automatically recognize that the device is the master or the slave.
前記マスターとなる機器の前記ゲートウェイ部は、前記メインバスに接続されている別の機器と前記スレーブとなる機器との間の信号を送受信させ、
前記スレーブとなる機器の前記ゲートウェイ部は、不動作に処理されている
ことを特徴とする請求項1に記載のマスター・スレーブネットワーク装置。 The devices each have a gateway unit that outputs a signal input from one of the two ports to the other port,
The gateway unit of the master device transmits and receives signals between another device connected to the main bus and the slave device,
The master / slave network device according to claim 1 , wherein the gateway unit of the slave device is processed inoperative.
前記2つのポートの一方から前記スレーブ認識信号を入力すると、当該の前記機器が前記スレーブとなることを自動認識するとともに、前記2つのポートの他方に前記スレーブ認識信号を出力する
ことを特徴とする請求項1に記載のマスター・スレーブネットワーク装置。
The master device or another slave device is connected to the two ports of the slave device, and two or more slave devices are connected in a daisy chain,
When the slave recognition signal is input from one of the two ports, the device automatically recognizes that the device becomes the slave, and outputs the slave recognition signal to the other of the two ports. The master / slave network device according to claim 1 .
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014178687A JP6391373B2 (en) | 2014-09-03 | 2014-09-03 | Master / slave network device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2014178687A JP6391373B2 (en) | 2014-09-03 | 2014-09-03 | Master / slave network device |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2016054367A JP2016054367A (en) | 2016-04-14 |
JP6391373B2 true JP6391373B2 (en) | 2018-09-19 |
Family
ID=55744391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2014178687A Active JP6391373B2 (en) | 2014-09-03 | 2014-09-03 | Master / slave network device |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP6391373B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP6460080B2 (en) | 2016-11-07 | 2019-01-30 | トヨタ自動車株式会社 | In-vehicle network system |
EP3626571B1 (en) * | 2018-09-18 | 2022-08-17 | KNORR-BREMSE Systeme für Nutzfahrzeuge GmbH | Control architecture for a vehicle |
WO2020203672A1 (en) * | 2019-03-29 | 2020-10-08 | 株式会社ラプラス・システム | Relay module and relay terminal block using same |
CN113556270B (en) * | 2021-07-20 | 2023-03-14 | 苏州苏试试验集团股份有限公司 | CAN network |
Family Cites Families (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2807269B2 (en) * | 1989-08-01 | 1998-10-08 | 富士通株式会社 | Interface unit used for multi-drop access method |
JPH05314036A (en) * | 1992-05-13 | 1993-11-26 | Yokogawa Electric Corp | Interface equipment for communication |
JP2007082077A (en) * | 2005-09-16 | 2007-03-29 | Sony Corp | Data transmission system, terminal apparatus, transmission direction automatic setting apparatus and method, and program |
JP4648166B2 (en) * | 2005-11-24 | 2011-03-09 | 新電元工業株式会社 | System power supply and power supply system |
JP4591383B2 (en) * | 2006-02-28 | 2010-12-01 | 株式会社デンソー | Bus communication system |
JP4656421B2 (en) * | 2006-02-28 | 2011-03-23 | 株式会社デンソー | Bus communication system |
JP5296515B2 (en) * | 2008-12-17 | 2013-09-25 | 株式会社東海理化電機製作所 | Vehicle communication system |
JP4957813B2 (en) * | 2010-01-26 | 2012-06-20 | 株式会社デンソー | Communication slave and communication network system |
-
2014
- 2014-09-03 JP JP2014178687A patent/JP6391373B2/en active Active
Also Published As
Publication number | Publication date |
---|---|
JP2016054367A (en) | 2016-04-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6391373B2 (en) | Master / slave network device | |
US10365624B2 (en) | Slave device, method for controlling slave device, and non-transitory computer-readable recording medium | |
WO2017118441A1 (en) | Method and apparatus for configuring interface pin | |
CN108920173B (en) | Method, chip and communication system for configuring equalization time | |
WO2017158954A1 (en) | Relay device, control method for relay device, control program, and recording medium | |
CN107113211B (en) | Function connection unit containing service module | |
WO2017111053A1 (en) | Control device and control system | |
TW202004510A (en) | Bus system | |
JP4758276B2 (en) | Power supply system and system power supply | |
WO2020184056A1 (en) | Settings information generation device, settings information generation method, and control program | |
JP5476956B2 (en) | Communication system and communication method | |
JP2014108695A (en) | Network system | |
JP2006243988A (en) | Usb device, usb system and usb control program | |
JP6762546B1 (en) | Serial communication method and serial communication system | |
KR100972510B1 (en) | Servo driver unit identifier auto configuration apparatus for network-based motion control system | |
JP5107153B2 (en) | Programmable controller system | |
JP4446189B2 (en) | Programmable controller remote terminal device. | |
CN112698076A (en) | Concept for communication between a microcontroller and at least one sensor chip | |
KR101082110B1 (en) | Timing controller, apparatus for data sending and receving using timing controller | |
US11435950B2 (en) | Data rewriting method and data rewriting system | |
JP7149460B2 (en) | Communication terminal device and its address setting method | |
CN113169908B (en) | Line monitoring device and network switch | |
CN110023921B (en) | Command and notification system for automation technology | |
CN109845155A (en) | By method, sensor and controller of the data grouping from sensor transmissions to controller | |
JP6489426B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20170713 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20180528 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20180622 |
|
A521 | Written amendment |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20180720 |
|
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: 20180803 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20180821 |
|
R151 | Written notification of patent or utility model registration |
Ref document number: 6391373 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R151 |
|
S531 | Written request for registration of change of domicile |
Free format text: JAPANESE INTERMEDIATE CODE: R313531 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |