JP6391373B2 - Master / slave network device - Google Patents

Master / slave network device Download PDF

Info

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
Application number
JP2014178687A
Other languages
Japanese (ja)
Other versions
JP2016054367A (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.)
THE FURUKAW ELECTRIC CO., LTD.
Furukawa Automotive Systems Inc
Original Assignee
THE FURUKAW ELECTRIC CO., LTD.
Furukawa Automotive Systems Inc
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 THE FURUKAW ELECTRIC CO., LTD., Furukawa Automotive Systems Inc filed Critical THE FURUKAW ELECTRIC CO., LTD.
Priority to JP2014178687A priority Critical patent/JP6391373B2/en
Publication of JP2016054367A publication Critical patent/JP2016054367A/en
Application granted granted Critical
Publication of JP6391373B2 publication Critical patent/JP6391373B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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 Patent Documents 1 to 3 are known. In Patent Document 1, a master device and a slave device are distinguished in advance, and a technique for setting an ID to a plurality of slave devices is described. A power line and a switch are provided for setting IDs in a plurality of slave devices, and the configuration is high. Patent Document 2 describes a technique for setting an ID in a slave device without providing a switch. Further, Patent Document 3 describes a technique for setting IDs to a plurality of slave LAN devices, and a management data line is provided for setting IDs.

マスター・スレーブ構成のネットワーク装置として、たとえば車両に搭載された複数の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 network device 90 is shown in which two ECUs 93 and 94 are further connected to a vehicle bus 92 to which a host ECU 91 is connected. Here, the ECU 93 is a master ECU, and the ECU 94 is a slave ECU. The vehicle bus 92 forms a CAN bus.

マスターECU93は、車両バス92を介してスレーブECU94から情報を受信し、これと自身の情報とを統合して所定の処理を行う。またマスターECU93は、処理結果を車両バス92を介して上位ECU91に出力する等、上位ECU91との間で情報の授受を行う。スレーブECU94は、制御等により得られた情報を車両バス92を介してマスターECU93に伝達する。   The master ECU 93 receives information from the slave ECU 94 via the vehicle bus 92 and integrates this information with its own information to perform a predetermined process. Further, the master ECU 93 exchanges information with the host ECU 91 such as outputting the processing result to the host ECU 91 via the vehicle bus 92. The slave ECU 94 transmits information obtained by control or the like to the master ECU 93 via the vehicle bus 92.

図4に例示するようなマスター・スレーブネットワーク装置90において、2つのECU93、94にハードウェア、ソフトウェア及び設定パラメータが同じ機器を用いるとき、それぞれにマスターまたはスレーブであることを認識させる必要がある。各ECUにマスターかスレーブかを認識させる方法として、以下の4つの方法が考えられる。   In the master / slave network device 90 illustrated in FIG. 4, when two ECUs 93 and 94 use the same hardware, software, and setting parameters, it is necessary to recognize that each is a master or a slave. The following four methods are conceivable as a method for making each ECU recognize master or slave.

方法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 master ECU 93, and the ECU in which the slave setting value is written is attached as the slave ECU 94.

方法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 master ECU 93, and the slave is set. The attached ECU is attached as a slave ECU 94. This method differs from Method 1 in that the two ECUs are not distinguished from each other at the time of shipment, and can be shipped as ECUs of the same product.

方法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 Method 2 in that the two ECUs do not distinguish between the master and the slave at the time of shipment. In this method, however, the master or slave is electrically distinguished using an electrical signal from the switch. Yes.

方法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 master ECU 93 to the vehicle bus 92 and an interface connector for connecting the slave ECU 94 is provided with a pin for identifying the master / slave. As an example, FIG. 5 shows a case where pins are provided only on the interface connector to which the master ECU 93 is connected. In the figure, a pin 97 is provided only in the interface connector 95 that connects the master ECU 93, and no pin is provided in the interface connector 96 that connects the slave ECU 94. The ECU connected to the interface connector 95 recognizes that it is a master ECU by reading the information on the pin 97, and the ECU connected to the interface connector 96 is a slave because it cannot obtain the pin information. Can be recognized.

上記の方法1〜4のうち方法1では、出荷時にマスターECU93に用いるECUとスレーブECU94に用いるECUとで、パラメータの設定値が異なっている。そのため、出荷後各ECUをマスターとスレーブに区別して管理する必要があり、各ECUを区別して車両に取り付ける必要がある。これに対し方法2〜4では、出荷時には各ECUにマスターとスレーブの区別がなく、ハードウェア、ソフトウェア及び設定されているパラメータがすべて同じとなっている。以下では、ハードウェア、ソフトウェア及び設定パラメータがすべて同じECUを同一品番ECUと称することとする。方法2〜4で各ECUにマスターとスレーブの区別が付加されるのは、各ECUが車両に取り付けられる直前あるいは取り付けられた後である。   Among the above-described methods 1 to 4, in method 1, the set values of the parameters differ between the ECU used for the master ECU 93 and the ECU used for the slave ECU 94 at the time of shipment. Therefore, it is necessary to manage each ECU separately from a master and a slave after shipment, and it is necessary to distinguish each ECU and attach it to the vehicle. On the other hand, in the methods 2 to 4, there is no distinction between master and slave in each ECU at the time of shipment, and the hardware, software, and set parameters are all the same. Hereinafter, ECUs having the same hardware, software, and setting parameters are referred to as the same product number ECU. In the methods 2 to 4, the distinction between the master and the slave is added to each ECU immediately before or after the ECU is attached to the vehicle.

上記の方法2〜4では、マスターECU93とスレーブECU94に同一品番ECUを用いることから、ECUのメーカ側及びユーザ側とも各ECUを区別することなく同一種類の機器として管理することができ、ECUの管理コストを下げることができるといった利点を有している。   In the above methods 2 to 4, since the same product number ECU is used for the master ECU 93 and the slave ECU 94, the ECU manufacturer side and the user side can manage each ECU as a same type of device without distinguishing each ECU. It has the advantage that the management cost can be reduced.

特開2003−152741号公報JP 2003-152741 A 特許第4957813号公報Japanese Patent No. 4957813 特許第2959403号公報Japanese Patent No. 2959403

しかしながら、特許文献1〜3に記載の従来技術では、マスターの機器とスレーブの機器とがあらかじめ区別されており、同一品番の機器を用いてそれぞれをマスターとスレーブに認識させるための技術については何ら記載がない。マスターの機器とスレーブの機器とをあらかじめ区別してネットワーク装置に用いる場合には、それぞれを別々に管理する必要があることから、管理コストが上昇するといった問題がある。なお、特許文献1では電源線とスイッチが必要となり、特許文献3では管理用データ線が必要となることから、高コストになるといった問題も有している。   However, in the prior art described in Patent Documents 1 to 3, a master device and a slave device are distinguished in advance, and there is no technique for causing a master and a slave to recognize each using a device having the same product number. There is no description. When the master device and the slave device are distinguished from each other and used in the network device, there is a problem in that the management cost increases because it is necessary to manage each device separately. In Patent Document 1, a power supply line and a switch are required, and in Patent Document 3, a management data line is required, which causes a problem of high cost.

また、複数の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 Method 1, since the master ECU and the slave ECU are preliminarily distinguished and shipped as different product numbers, it is necessary to manage each separately separately as in Patent Documents 1 to 3, and there is a problem of high cost. .

方法2〜4では、マスターECUとスレーブECUに同一品番ECUを用いることから管理コストを下げることができるといった利点があるが、それぞれ以下のような問題を有している。まず方法2では、ディーラーが各ECUにマスターまたはスレーブの設定を行う必要があることから、ディーラーで新たな工数が発生する。また、各ECUにマスターかスレーブの設定を行ために、新たにCAN通信ツールが必要になる、といった問題もある。   The methods 2 to 4 have the advantage that the management cost can be reduced because the same product number ECU is used for the master ECU and the slave ECU, but each has the following problems. First, in method 2, since the dealer needs to set the master or slave in each ECU, a new man-hour is generated at the dealer. There is also a problem that a CAN communication tool is newly required to set each ECU as a master or a slave.

方法3では、ディーラーがスイッチを操作してマスターかスレーブかの選択を行う必要があり、やはりディーラーで新たな工数が発生する。また、各ECUにあらかじめスイッチを設置しておく必要があるため、コストの上昇につながる。   In the method 3, it is necessary for the dealer to select a master or a slave by operating a switch, and a new man-hour is generated at the dealer. Moreover, since it is necessary to install a switch in each ECU beforehand, it leads to an increase in cost.

さらに方法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.

本発明の第1実施形態のマスター・スレーブネットワーク装置の構成を示すブロック図である。It is a block diagram which shows the structure of the master / slave network apparatus of 1st Embodiment of this invention. 第2実施形態のマスター・スレーブネットワーク装置の構成を示すブロック図である。It is a block diagram which shows the structure of the master / slave network apparatus of 2nd Embodiment. 第3実施形態のマスター・スレーブネットワーク装置の構成を示すブロック図である。It is a block diagram which shows the structure of the master / slave network apparatus of 3rd Embodiment. 車両に搭載された従来のネットワーク装置の一例を示すブロック図である。It is a block diagram which shows an example of the conventional network device mounted in the vehicle. マスターECUを接続するインターフェースコネクタにピンが設けられた従来のネットワーク装置の一例を示すブロック図である。It is a block diagram which shows an example of the conventional network device by which the pin was provided in the interface connector which connects master ECU.

本発明の好ましい実施の形態におけるマスター・スレーブネットワーク装置について、図面を参照して詳細に説明する。なお、同一機能を有する各構成部については、図示及び説明簡略化のため、同一符号を付して示す。以下では、車両に搭載された複数の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 vehicle bus 110 that is a main bus, a master ECU 120 connected to the vehicle bus 110, and a slave ECU 130 connected to the master ECU 120 via a local bus 140. Yes. The host bus 10 is connected to a host ECU 10 positioned above the master ECU 120 and the slave ECU 130.

マスターECU120とスレーブECU130は、ハードウェア、ソフトウェア及び設定されているパラメータがすべて同じ同一品番ECUである。また、車両バス110とローカルバス140は、ともにCANバスを形成している。マスターECU120及びスレーブECU130は、それぞれCANポートを2つ有しているものとする。図1では、マスターECU120がCANポート121、122を有し、スレーブECU130がCANポート131、132を有している。   The master ECU 120 and the slave ECU 130 are the same part number ECU with the same hardware, software, and set parameters. Further, the vehicle bus 110 and the local bus 140 together form a CAN bus. Each of the master ECU 120 and the slave ECU 130 has two CAN ports. In FIG. 1, the master ECU 120 has CAN ports 121 and 122, and the slave ECU 130 has CAN ports 131 and 132.

本実施形態のマスター・スレーブネットワーク装置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 master ECU 120 is connected to the vehicle bus 110, and one CAN port 131 of the slave ECU 130 is connected to another one of the master ECU 120 via the local bus 140. It is connected to the CAN port 122.

マスターECU120及びスレーブECU130をそれぞれ車両バス110及びローカルバス140に接続することで、本実施形態ではECU120がマスターでありECU130がスレーブであることを、下記のようにして自動認識させることが可能となる。   By connecting the master ECU 120 and the slave ECU 130 to the vehicle bus 110 and the local bus 140, respectively, in this embodiment, it is possible to automatically recognize that the ECU 120 is the master and the ECU 130 is the slave as follows. .

まず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 vehicle bus 110, the ECU 120 can input information transmitted to the vehicle bus 110 from the CAN port 121 and can communicate with the host ECU 10. . On the other hand, since the ECU 130 is not connected to the vehicle bus 110 with the CAN ports 131 and 132, information transmitted to the vehicle bus 110 cannot be input and communication with the host ECU 10 is not possible. In the master / slave network device 100 of the present embodiment, it is determined whether or not it is a master depending on whether or not processing via the vehicle bus 110 is possible.

マスターか否かを判定するために、ECU120,130はそれぞれマスター/スレーブ判定部101を備えている。マスター/スレーブ判定部101は、車両バス110を介した所定の処理が行えるか否かにより、当該のECUがマスターか否かを判定するものである。所定の処理として上記のように、車両バス110に伝達される情報の入力、あるいは上位ECU10との通信、があり、これらの処理が可能か否かを判定することでマスターか否かを判定することができる。   In order to determine whether or not it is a master, the ECUs 120 and 130 each include a master / slave determination unit 101. The master / slave determination unit 101 determines whether or not the ECU is a master depending on whether or not a predetermined process can be performed via the vehicle bus 110. As described above, there is input of information transmitted to the vehicle bus 110 or communication with the host ECU 10 as described above, and whether or not these processes are possible is determined to determine whether or not the master is a master. be able to.

ECU120は、CANポート121が車両バス110に接続されていることから、CANポート121から車両バス110に伝達される情報を入力することができ、該情報を入力したと判定することで、当該のECU120がマスターであると自動認識することができる。これに対しECU130は、CANポート131、132とも車両バス110に接続されていないことから、車両バス110に伝達される情報を入力することができず、マスターであるとの自動認識は行われない。   Since the CAN port 121 is connected to the vehicle bus 110, the ECU 120 can input information transmitted from the CAN port 121 to the vehicle bus 110. By determining that the information has been input, the ECU 120 The ECU 120 can automatically recognize that it is the master. On the other hand, since the ECU 130 is not connected to the vehicle bus 110 with the CAN ports 131 and 132, information transmitted to the vehicle bus 110 cannot be input, and automatic recognition of the master is not performed. .

車両バス110に伝達される情報として、例えば車速、ブレーキ状態、等の情報をあらかじめ選択しておき、この情報を入力したときにマスターであると判定するようにすることができる。あるいは、何らかの情報を入力するとマスターであると判定するようにしてもよい。起動時はローカルバス140に何の情報も伝達されていないことから、ECU130が何らかの情報を入力してマスターであると判定することはない。   As information transmitted to the vehicle bus 110, for example, information such as a vehicle speed and a brake state can be selected in advance, and when this information is input, it can be determined that the vehicle is a master. Alternatively, when some information is input, it may be determined that the user is the master. Since no information is transmitted to the local bus 140 at the time of activation, the ECU 130 does not input any information and determine that it is the master.

マスター/スレーブ判定部101による車両バス110を介した所定の処理として、上位ECU10との通信が可能か否かを判定するものであってもよい。一例として、上位ECU10が所定の周期で出力する所定のパケットを受信したか否かを判定し、受信したと判定したときに当該のECU120がマスターであると自動認識させる。   As a predetermined process via the vehicle bus 110 by the master / slave determination unit 101, it may be determined whether or not communication with the host ECU 10 is possible. As an example, it is determined whether or not the upper ECU 10 has received a predetermined packet output at a predetermined cycle, and when it is determined that it has been received, the ECU 120 is automatically recognized as a master.

あるいは、ECU120、130のそれぞれのマスター/スレーブ判定部101がそれぞれのCANポートに所定の確認信号を出力し、これに対する上位ECU10からの応答信号を受信したときに、当該のECU120がマスターであると自動認識させるようにしてもよい。ECU120のマスター/スレーブ判定部101から出力された確認信号は、CANポート121から車両バス110を介して上位ECU10に伝達されることから、上位ECU10から応答信号が送信され、ECU120のマスター/スレーブ判定部101がCANポート121から該応答信号を入力することができる。   Alternatively, when each master / slave determination unit 101 of each of the ECUs 120 and 130 outputs a predetermined confirmation signal to each CAN port and receives a response signal from the higher-level ECU 10, the ECU 120 is the master. You may make it recognize automatically. Since the confirmation signal output from the master / slave determination unit 101 of the ECU 120 is transmitted from the CAN port 121 to the host ECU 10 via the vehicle bus 110, a response signal is transmitted from the host ECU 10 to determine the master / slave determination of the ECU 120. The unit 101 can input the response signal from the CAN port 121.

これに対しECU130のマスター/スレーブ判定部101から出力された確認信号は、CANポート131、132のいずれからも車両バス110に出力することができない。また、ECU120からの確認信号に応じて上位ECU10が応答信号を車両バス110に出力しても、ECU130のマスター/スレーブ判定部101はこれを入力することができない。よって、ECU130がマスターであると自動認識されることはない。   On the other hand, the confirmation signal output from the master / slave determination unit 101 of the ECU 130 cannot be output to the vehicle bus 110 from any of the CAN ports 131 and 132. Further, even if the host ECU 10 outputs a response signal to the vehicle bus 110 in response to the confirmation signal from the ECU 120, the master / slave determination unit 101 of the ECU 130 cannot input it. Therefore, the ECU 130 is not automatically recognized as 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 ECU 120 is automatically recognized as a master, the master / slave determination unit 101 of the ECU 120 outputs a slave recognition signal to a CAN port 122 different from the CAN port 121 connected to the vehicle bus 110. Since the CAN port 122 is connected to the local bus 140, and the local bus 140 is connected to the CAN port 131 of the ECU 130, the slave recognition signal output to the CAN port 122 of the ECU 120 is sent to the ECU 130 via the local bus 140. Communicated. When a slave recognition signal is input from the CAN port 131, the master / slave determination unit 101 of the ECU 130 automatically recognizes that the ECU 130 is a slave.

ECU120、130に設けられたマスター/スレーブ判定部101は、車両の電源が投入されてECU120、130がそれぞれ起動したときに上記の処理を開始する。そして、それぞれがマスターまたはスレーブに自動認識されたときにマスター/スレーブ判定部101の処理を終了する。ECU120、130がそれぞれマスター、スレーブに自動認識されると、その結果をそれぞれのメモリ102に記憶させておくことができる。メモリ102として、例えばNVM(Non−Volatile Memory)を用いるのがよい。これにより、以降のECU120、130の起動時には、メモリ102に記憶された自動認識結果を読み込んでそれぞれをマスター、スレーブに設定することができる。   The master / slave determination unit 101 provided in the ECUs 120 and 130 starts the above processing when the vehicle is powered on and the ECUs 120 and 130 are activated. Then, when each of them is automatically recognized by the master or slave, the processing of the master / slave determination unit 101 is terminated. When the ECUs 120 and 130 are automatically recognized by the master and slave, respectively, the results can be stored in the respective memories 102. As the memory 102, for example, NVM (Non-Volatile Memory) may be used. As a result, when the ECUs 120 and 130 are subsequently activated, the automatic recognition results stored in the memory 102 can be read and set as masters and slaves, respectively.

これに対し、自動認識結果をメモリ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 memory 102 but the master / slave determination unit 101 may automatically perform master / slave recognition each time the ECUs 120 and 130 are activated. In this case, it is not necessary to check whether each ECU was a master or a slave before removal when it is once removed from the vehicle due to a malfunction of the ECU, etc. The effect such as is obtained. For example, even if the ECU 130 is attached to the master position and the ECU 120 is attached to the slave position, the master / slave determination unit 101 automatically recognizes that the ECUs 130 and 120 are the master and slave, respectively.

上記説明のように、本実施形態のマスター・スレーブネットワーク装置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 vehicle bus 110 and the local bus 140 can be automatically recognized using the master / slave determination unit 101 as a master or a slave. As a result, work by a dealer or the like, special hardware, or the like is unnecessary, and an increase in cost can be suppressed.

さらに、本実施形態のマスター・スレーブネットワーク装置100では、マスターECU120とスレーブECU130との間のデータ送受信を、車両バス110を用いずローカルバス140を用いて行っていることから、車両バス110の通信負荷を増大させないといった効果も得られる。とくに、CANバスは低速のバスであることから、ローカルバスを用いることで車両バスの負荷を増大させないようにすることは大きな利点となる。   Furthermore, in the master / slave network device 100 of the present embodiment, data transmission / reception between the master ECU 120 and the slave ECU 130 is performed using the local bus 140 instead of the vehicle bus 110, so that the communication of the vehicle bus 110 is performed. An effect of not increasing the load is also obtained. In particular, since the CAN bus is a low-speed bus, it is a great advantage not to increase the load on the vehicle bus by using the local bus.

(第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 / slave network device 200 of this embodiment. In the master / slave network device 100 of the first embodiment, only the master ECU 120 can communicate directly with the host ECU 10, and the slave ECU 130 cannot communicate directly with the host ECU 10. On the other hand, it is conceivable that the slave ECU 130 also needs direct communication with the host ECU 10. For example, when software is downloaded from the host ECU 10 to each of the ECUs 120 and 130, or when failure information is transmitted, direct communication may be required between the host ECU 10 and each of the ECUs 120 and 130.

そこで、本実施形態のマスター・スレーブネットワーク装置200では、マスターECU220及びスレーブECU230のそれぞれにゲートウェイ部202が設けられている。マスターECU220のゲートウェイ部202は、2つのCANポート221、222の一方から入力したパケットを他方のCANポートに転送して出力する。これにより、上位ECU10とスレーブECU230との間の直接通信は、マスターECU220のゲートウェイ202を用いて行われる。   Therefore, in the master / slave network device 200 of the present embodiment, the gateway unit 202 is provided in each of the master ECU 220 and the slave ECU 230. The gateway unit 202 of the master ECU 220 transfers a packet input from one of the two CAN ports 221 and 222 to the other CAN port and outputs it. Thus, direct communication between the host ECU 10 and the slave ECU 230 is performed using the gateway 202 of the master ECU 220.

より具体的には、上位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 host ECU 10 to the slave ECU 230 is transmitted from the host ECU 10 to the CAN port 221 of the master ECU 220, and is transferred from the CAN port 221 to the CAN port 222 by the gateway 202 of the master ECU 220. The data is transmitted from the port 222 to the CAN port 231 of the slave ECU 230. Further, a packet directly transmitted from the slave ECU 230 to the host ECU 10 is transmitted from the CAN port 231 of the slave ECU 230 to the CAN port 222 of the master ECU 220, transferred from the CAN port 222 to the CAN port 221 by the gateway 202 of the master ECU 220, and CAN. It is transmitted from the port 221 to the host ECU 10.

マスターECU220とスレーブECU230は同一品番であることから、スレーブECU230にもゲートウェイ部202が設けられている。しかし、スレーブECU230のCANポート232には別のECUが接続されていないことから、スレーブECU230のゲートウェイ部202が動作しないように処理しておく必要がある。   Since the master ECU 220 and the slave ECU 230 have the same product number, the gateway unit 202 is also provided in the slave ECU 230. However, since another ECU is not connected to the CAN port 232 of the slave ECU 230, it is necessary to perform processing so that the gateway unit 202 of the slave ECU 230 does not operate.

上位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 host ECU 10 and the ECUs 220 and 230, it is possible to identify whether the communication packet is transmitted to the ECU 220 or the ECU 230. It is necessary to keep. Therefore, a unique ID corresponding to the ECU 220 or 230 is added to the communication packet. Thereby, when the ID of the master ECU 220 is added to the packet transmitted from the host ECU 10, the master ECU 220 receives the ID. When the ID of the slave ECU 230 is added to the packet transmitted from the host ECU 10, the slave ECU 230 receives this via the gateway unit 202 of the master ECU 220.

本実施形態のマスター・スレーブネットワーク装置200によれば、マスターECU220だけでなくスレーブECU230でも、上位ECU10との間で直接通信が可能となる。   According to the master / slave network apparatus 200 of this embodiment, not only the master ECU 220 but also the slave ECU 230 can directly communicate with the host ECU 10.

(第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 / slave network device 300 of this embodiment. The master / slave network device 300 of this embodiment is configured by connecting a plurality of slave ECUs 330 to the master ECU 320 in a daisy chain, and in FIG. 3, three slave ECUs 330 are connected. Hereinafter, the three slave ECUs 330 are represented by 330 (1) to 330 (3), respectively.

スレーブ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 CAN port 322 of the master ECU 320 via the local bus 341, and the CAN port 332 (1) is connected to the local bus 342. The slave ECU 330 (2) has a CAN port 331 (2) connected to the CAN port 332 (1) of the slave ECU 330 (1) via the local bus 342, and the CAN port 332 (2) connected to the local bus 343. Yes. Further, in the slave ECU 330 (3), the CAN port 331 (3) is connected to the CAN port 332 (2) of the slave ECU 330 (2) via the local bus 343, and nothing is connected to the CAN port 332 (3). .

本実施形態でも、マスターECU320及びスレーブECU330(1)〜330(3)は、すべて同一品番のECUを用いており、それぞれマスターかスレーブかをそれぞれのマスター/スレーブ判定部301を用いて自動認識する。ここで、マスターECU320に接続されたスレーブECU330(1)では、マスター/スレーブ判定部301がマスターECU320から出力されたスレーブ認識信号をCANポート331(1)から入力してスレーブであることを自動認識すると、つぎにスレーブ認識信号をCANポート332(1)に出力する。   Also in this embodiment, the master ECU 320 and the slave ECUs 330 (1) to 330 (3) all use the same part number ECU, and automatically recognize each master / slave using the respective master / slave determination unit 301. . Here, in the slave ECU 330 (1) connected to the master ECU 320, the master / slave determination unit 301 inputs the slave recognition signal output from the master ECU 320 from the CAN port 331 (1) and automatically recognizes that it is a slave. Then, a slave recognition signal is output to the CAN port 332 (1).

ローカルバス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 local bus 342, the master / slave determination unit 301 inputs a slave recognition signal from the CAN port 331 (2) and automatically recognizes that it is a slave. Thereafter, the slave recognition signal is output to the CAN port 332 (2). Further, in the slave ECU 330 (3) connected to the slave ECU 330 (2) via the local bus 343, the master / slave determination unit 301 inputs a slave recognition signal from the CAN port 331 (3) to automatically recognize that it is a slave. To do. Thereafter, the slave recognition signal is output to the CAN port 332 (3). However, since another slave ECU is not connected to the CAN port 332 (3), the slave automatic recognition processing is completed.

上記のように本実施形態のマスター・スレーブネットワーク装置300では、スレーブECU330のマスター/スレーブ判定部301がスレーブ認識信号をCANポート331から入力すると、スレーブであることを自動認識した後スレーブ認識信号をCANポート332に出力するように構成されている。これにより、スレーブECUが複数(以下ではn(自然数)個とする)デイジーチェーン状に接続されている場合でも、n個すべてのスレーブECUに対してスレーブであることを自動認識させることが可能となっている。   As described above, in the master / slave network apparatus 300 according to the present embodiment, when the master / slave determination unit 301 of the slave ECU 330 inputs the slave recognition signal from the CAN port 331, the slave recognition signal is automatically recognized after being recognized as a slave. It is configured to output to the CAN port 332. Thereby, even when a plurality of slave ECUs (hereinafter referred to as n (natural number)) are connected in a daisy chain, all n slave ECUs can automatically recognize that they are slaves. It has become.

本実施形態のマスター・スレーブネットワーク装置300においても、各スレーブECU330が上位ECU10と直接通信可能となるようにゲートウェイ部202を有する構成とすることができる。この場合、マスターECU320及びn個のスレーブECU330(1)〜330(n)はすべて同一品番のECUを用いていることから、マスターECU320及びn個のスレーブECU330(1)〜330(n)のすべてがゲートウェイ部202を有することになる。   The master / slave network device 300 of the present embodiment can also be configured to have the gateway unit 202 so that each slave ECU 330 can directly communicate with the host ECU 10. In this case, since the master ECU 320 and the n slave ECUs 330 (1) to 330 (n) all use the same part number, all of the master ECU 320 and the n slave ECUs 330 (1) to 330 (n) are used. Has a gateway unit 202.

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 slave ECU 330 is connected to the CAN port 332 (n) of the nth slave ECU 330 (n). Absent. Therefore, it is necessary to perform processing so that the gateway unit 202 of the nth slave ECU 330 (n) does not operate. Therefore, the gateway unit 202 of the slave ECU 330 (n) is automatically deactivated by automatically recognizing that the nth slave ECU 330 (n) is connected to the final end as follows. can do.

各スレーブ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 / slave determination unit 301 of each slave ECU 330 receives a slave recognition signal from the CAN port 331, a predetermined response signal is output to the CAN port 331. The response signal is transmitted from the CAN port 331 to the CAN port 332 of the slave ECU 330 that is the transmission source of the slave recognition signal via the local bus. Therefore, the master / slave determination unit 301 of each slave ECU 330 waits for a response signal from the transmission destination to be returned to the CAN port 332 after outputting the slave recognition signal to the CAN port 332. At this time, if a response signal is not returned even after a predetermined time has elapsed since the slave recognition signal was output, the master / slave determination unit 301 determines that the slave ECU 330 is the last slave ECU 330. When it is determined that the slave ECU 330 is at the final end, processing is performed so that the gateway unit 202 of the slave ECU 330 does not operate.

本実施形態のマスター・スレーブネットワーク装置300では、マスターECU320及びn個のスレーブECU330に同一品番のものを用いることができ、それぞれマスターかスレーブかを自動認識させることが可能となっている。これにより、ECUの出荷時や出荷後の管理コストを低減させることができるとともに、ディーラー等による作業や特別なハードウェア等が不要となり、コストの増加を抑制することができる。   In the master / slave network apparatus 300 according to the present embodiment, the master ECU 320 and the n slave ECUs 330 can have the same product number, and can automatically recognize the master or slave respectively. As a result, the management cost at the time of shipment of the ECU and after the shipment can be reduced, and work by a dealer or special hardware or the like becomes unnecessary, and an increase in cost can be suppressed.

なお、本実施の形態における記述は、本発明に係るマスター・スレーブネットワーク装置の一例を示すものであり、これに限定されるものではない。本実施の形態におけるマスター・スレーブネットワーク装置の細部構成及び詳細な動作等に関しては、本発明の趣旨を逸脱しない範囲で適宜変更可能である。   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 / slave network device 101, 301 Master / slave determination unit 102 Memory 110 Vehicle bus 120, 220, 320 Master ECU
130, 230, 330 Slave ECU
121, 122, 131, 132, 221, 222, 231, 232, 321, 322, 331, 332 CAN port 140, 341-343 Local bus 202 Gateway unit

Claims (6)

マスターとなる1の機器に対してスレーブとなる1または2以上の機器を配置して構成されたマスター・スレーブネットワーク装置であって、
前記マスターとなる機器及び前記スレーブとなる機器は、ハードウェア、ソフトウェア及びパラメータの設定値が同じ同一品番の機器であり、それぞれマスターまたはスレーブを自動認識するマスター/スレーブ判定部を有し
前記機器はそれぞれ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.
前記マスター/スレーブ判定部は、前記所定の処理として、前記一方のポートから前記メインバスに伝達される情報を入力したときに前記メインバスに接続されていると判定する
ことを特徴とする請求項に記載のマスター・スレーブネットワーク装置。
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.
前記マスター/スレーブ判定部は、前記所定の処理として、前記メインバスに接続されている別の機器と所定の通信を行ったときに前記メインバスに接続されていると判定する
ことを特徴とする請求項に記載のマスター・スレーブネットワーク装置。
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.
前記機器は、前記2つのポートのいずれか一方から入力した信号を他方の前記ポートに出力するゲートウェイ部をそれぞれ有しており、
前記マスターとなる機器の前記ゲートウェイ部は、前記メインバスに接続されている別の機器と前記スレーブとなる機器との間の信号を送受信させ、
前記スレーブとなる機器の前記ゲートウェイ部は、不動作に処理されている
ことを特徴とする請求項に記載のマスター・スレーブネットワーク装置。
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以上デイジーチェーン状に接続されており、
前記2つのポートの一方から前記スレーブ認識信号を入力すると、当該の前記機器が前記スレーブとなることを自動認識するとともに、前記2つのポートの他方に前記スレーブ認識信号を出力する
ことを特徴とする請求項に記載のマスター・スレーブネットワーク装置。
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 .
JP2014178687A 2014-09-03 2014-09-03 Master / slave network device Active JP6391373B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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