JP5252374B2 - In-vehicle communication network system - Google Patents

In-vehicle communication network system Download PDF

Info

Publication number
JP5252374B2
JP5252374B2 JP2008312513A JP2008312513A JP5252374B2 JP 5252374 B2 JP5252374 B2 JP 5252374B2 JP 2008312513 A JP2008312513 A JP 2008312513A JP 2008312513 A JP2008312513 A JP 2008312513A JP 5252374 B2 JP5252374 B2 JP 5252374B2
Authority
JP
Japan
Prior art keywords
node
delegation
master
lin
slave
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.)
Expired - Fee Related
Application number
JP2008312513A
Other languages
Japanese (ja)
Other versions
JP2010136286A (en
Inventor
健志 加藤
孝久 松本
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2008312513A priority Critical patent/JP5252374B2/en
Publication of JP2010136286A publication Critical patent/JP2010136286A/en
Application granted granted Critical
Publication of JP5252374B2 publication Critical patent/JP5252374B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Description

この発明は車載通信ネットワークシステムに関する。   The present invention relates to an in-vehicle communication network system.

特開2007−28632号公報JP 2007-28632 A 特開2004−320423号公報JP 2004-320423 A 特開2003−124950号公報JP 2003-124950 A 特開2002−325085号公報JP 2002-325085 A 特開平8−191485号公報JP-A-8-191485

近年、自動車には多くの安全・快適機能が搭載され、こうした個々の機能の制御を司るECU(electronic control unit)を車載ネットワークで接続して連携動作させることが行なわれている。こうした車載ネットワークとして代表的なものにCAN(Controller Area Network)があり、パワートレイン系、シャーシ系、ボデー系及び情報系の標準型シリアル通信ネットワークとして広く採用されている。CANはデータ転送速度が最大1Mbpsに規定された高速通信プロトコルであり、物理層は2線式(グランドを含めると3線)で、通信距離は最大1kmである。すべてのノードは平等の立場であり、どのノードもマスターノードとなることができる。非同期式(調歩同期型)であるが、エッジ検出による再同期処理やビットスタッフィングなど、高精度のノード間同期を実現している。また、ノイズマージンを高めるためにツイストペア線を用いた差動伝送方式を採用し、バスアービトレーションや、エラーカウンタを用いたバス状態遷移など、信頼性の高いマルチマスタ方式通信を実現するため、プロトコル上種々の工夫がなされている。   In recent years, many safety and comfort functions are installed in automobiles, and ECUs (electronic control units) that control these individual functions are connected via an in-vehicle network to perform cooperative operation. A typical example of such an in-vehicle network is a CAN (Controller Area Network), which is widely adopted as a standard serial communication network for powertrain, chassis, body, and information systems. CAN is a high-speed communication protocol in which the maximum data transfer rate is defined as 1 Mbps, the physical layer is a two-wire system (three wires including the ground), and the communication distance is a maximum of 1 km. All nodes are in an equal position and any node can be a master node. Although it is asynchronous (start-stop synchronization type), it achieves highly accurate inter-node synchronization such as resynchronization processing by edge detection and bit stuffing. In order to increase the noise margin, a differential transmission method using twisted pair wires is adopted, and in order to realize highly reliable multi-master communication such as bus arbitration and bus state transition using an error counter, Various ideas have been made.

しかし、上記のようなCANの特徴は、ネットワークコストの高騰化を招きやすい側面も有しており、例えばボデー系に分類される車体装備の中でも、電動ドアミラーやパワーウィンドウなど、高速できめ細かい制御がそれほど求められない機器制御用のネットワークとしては過剰スペックになりやすい欠点がる。そこで、この欠点を補うべく、簡易型のシリアル通信ネットワークとしてLIN(Local Interconnect Network)が提唱され、実搭載が進んでいる(特許文献1〜5)。LINのデータ転送速度は最大19.2kbpsであり、半二重式UART(Universal Asynchronous Receiver Transmitter)通信をもとにしたシンプルなプロトコルが採用され、一つの決まったマスターノードが複数のスレーブノードを管理する。LINはCANと同様、非同期式(調歩同期型)であるが、シングマスタ方式であり、これを受けてUARTによるノード構成やバスのシングルワイヤ化といった簡略なハードウェア構成に加え、マスタータスクをなすヘッダに同期フレームを組み込み、その時間補正用基準波形を参照してスレーブボーレートを補正する簡易型同期プロトコルを採用することにより、伝送レートは低いもののCANと比較して大幅なコスト削減が実現できる。   However, the above-mentioned features of CAN also have a side where network costs are likely to rise. For example, among body equipment classified as body systems, high-speed and detailed control such as electric door mirrors and power windows is possible. As a network for device control that is not so required, there is a drawback that it tends to become excessive specifications. Therefore, in order to make up for this drawback, LIN (Local Interconnect Network) has been proposed as a simple serial communication network, and actual implementation is proceeding (Patent Documents 1 to 5). LIN has a maximum data transfer rate of 19.2 kbps, uses a simple protocol based on half-duplex UART (Universal Asynchronous Receiver Transmitter) communication, and a single master node manages multiple slave nodes. To do. LIN is asynchronous (asynchronous type), similar to CAN, but it is a single master method. In response to this, LIN performs a master task in addition to a simple hardware configuration such as a node configuration by UART and a single wire bus. By adopting a simple synchronization protocol in which a synchronization frame is incorporated in the header and the slave baud rate is corrected by referring to the reference waveform for time correction, a significant cost reduction can be realized compared with CAN although the transmission rate is low.

ところで、車載通信ネットワークを構築する際には、CANとLINはそれぞれ独立に存在するのではなく、一つの車両上で共存させるケースが圧倒的に多い。具体的には、CANクラスタを構成するノードのひとつをゲートウェイとして、これにLINクラスタを接続する形で複合ネットワークが構築される。LINでは1マスター+複数スレーブのプロトコルになっているので、ゲートウェイをなすCANノードをLINのマスターノードとして動作させる方式が一般的に多く採用されている。図22は、ボデー系CANクラスタにおける実例を示すもので、ボデー系主幹バス103(A)により接続されたCANノード、具体的にはボデーECU106(A)とA/C(エアコン)ECU106(B)とをそれぞれゲートウェイとして、P/W(パワーウィンドウ)ECU104(A)〜104(D)(「D」「P」「RR」「RL」は、それぞれ「運転席」「助手席」「後部右席」「後部左席」を示す)をスレーブノードとする2つのLINクラスタが形成されている。   By the way, when constructing an in-vehicle communication network, CAN and LIN do not exist independently of each other, but there are overwhelming cases where they coexist on one vehicle. Specifically, a composite network is constructed in such a way that one of the nodes constituting the CAN cluster is used as a gateway and a LIN cluster is connected to the gateway. Since the LIN has a protocol of 1 master + multiple slaves, a system in which a CAN node forming a gateway operates as a LIN master node is generally employed. FIG. 22 shows an actual example in the body-system CAN cluster. The CAN nodes connected by the body-system trunk bus 103 (A), specifically, the body ECU 106 (A) and the A / C (air conditioner) ECU 106 (B). And P / W (power window) ECUs 104 (A) to 104 (D) (“D”, “P”, “RR”, “RL” are “driver's seat”, “passenger seat”, “rear right seat”, respectively. Two LIN clusters are formed with the slave node “indicating“ rear left seat ”).

図22においては、同じP/WECU104(A)〜104(D)からなるスレーブノード群が、マスターノードをなすボデーECU106(A)とA/CECU106(B)とに対応して冗長化して設けられており、それぞれ独立したLINクラスタを構成していたが、機能的には全く同一のスレーブノード群が重複して設けられているため高コスト化が避けがたい。この場合、ボデーECU106(A)とA/CECU106(B)との間で1つのLINクラスタを共用化できれば無駄を省くことができるが、LINはシングルマスタ方式であり、1本のLIN通信バス上に2つのマスターノードが存在することはプロトコル上許されない。   In FIG. 22, slave node groups including the same P / WECUs 104 (A) to 104 (D) are provided in a redundant manner corresponding to the body ECU 106 (A) and the A / CECU 106 (B) forming the master node. However, since the same slave node group is provided redundantly, it is difficult to avoid high cost. In this case, if one LIN cluster can be shared between the body ECU 106 (A) and the A / CECU 106 (B), waste can be saved. However, the LIN is a single master system and can be used on one LIN communication bus. It is not allowed in the protocol that there are two master nodes.

一方、プロトコル上の矛盾を生ずることなく、2つのマスターノードにより1つのスレーブノード群を共有化する接続方法としては、図21に示すような方式が可能である。ここでは、ボデー系主幹バス103(A)に接続されたボデー系ECU106(A)が一方のゲートウェイを、走行系専用バス103(A)に接続された走行系ECU106(B)が他方のゲートウェイを構成しており、これら2つのゲートウェイに4つのスレーブノード104(A)〜104(D)からなるLINクラスタが共有化されている。4つのスレーブノード104(A)〜104(D)は、具体的には、シート位置調整機構を制御するシートECU104(A)、ハンドルの上下位置ないし前後位置を調整するチルト・テレスコ機構を制御するチルテレECU104(B)、アクセルやブレーキのペダル位置調整機構を制御するペダル調整ECU104(C)、シートベルト位置調整機構を制御するシートベルトECU104(D)からなる。   On the other hand, as a connection method for sharing one slave node group by two master nodes without causing protocol inconsistency, a method as shown in FIG. 21 is possible. Here, body system ECU 106 (A) connected to body system main bus 103 (A) serves as one gateway, and travel system ECU 106 (B) connected to travel system dedicated bus 103 (A) serves as the other gateway. In these two gateways, a LIN cluster composed of four slave nodes 104 (A) to 104 (D) is shared. Specifically, the four slave nodes 104 (A) to 104 (D) control the seat ECU 104 (A) that controls the seat position adjusting mechanism and the tilt / telescopic mechanism that adjusts the vertical position or the front / rear position of the handle. It includes a chill tele ECU 104 (B), a pedal adjustment ECU 104 (C) that controls a pedal position adjustment mechanism for an accelerator and a brake, and a seat belt ECU 104 (D) that controls a seat belt position adjustment mechanism.

各スレーブノード104(A)〜104(D)は、いずれもLINトランシーバを2個ずつ内蔵しており、それぞれ異なるゲートウェイにつながる2系統のLIN通信バス105(A),105(B)により重複して接続されている。つまり、各スレーブノード104(A)〜104(D)は、ボデー系ECU106(A)をマスターノードとする第一のLINクラスタ(105(A))と、走行系ECU106(B)をマスターノードとする第二のLINクラスタ(105(B))とに重複して所属する形となっている。   Each of the slave nodes 104 (A) to 104 (D) includes two LIN transceivers, and is duplicated by two LIN communication buses 105 (A) and 105 (B) connected to different gateways. Connected. That is, each of the slave nodes 104 (A) to 104 (D) has the first LIN cluster (105 (A)) having the body system ECU 106 (A) as a master node and the traveling system ECU 106 (B) as the master node. It belongs to the second LIN cluster (105 (B)) that overlaps.

例えば、ユーザの利便や快適が優先されるシーンでは、上記LINクラスタに、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置を、ユーザの運転しやすさや乗り込みやすさを考慮した適性位置に自動調整させる制御を行なうのが好適である。一方、衝突安全が重視されるシーンでは、上記各位置を、車がぶつかりそうなときの衝撃吸収を考慮した適性位置に自動調整させる制御を行なうのが好適である。しかし、各シーンの到来検知に必要なセンシングインフラ構成やシーン到来判定条件、及び目標となる適正位置はいずれも全く異なるので、前者においてはボデー系ECU106(A)をマスターノードとして、後者においては走行系ECU106(B)をマスターノードとして、同じスレーブノード104(A)〜104(D)を、敢えて異なるLIN通信バスを介して別系統制御する必要がある。   For example, in a scene where user convenience and comfort are prioritized, the seat position, steering wheel position, pedal position or seat belt position is automatically adjusted to the LIN cluster to an appropriate position taking into account the ease of driving and getting on the user. It is preferable to perform control. On the other hand, in a scene where collision safety is important, it is preferable to perform control for automatically adjusting each position to an appropriate position in consideration of shock absorption when a car is likely to hit. However, the sensing infrastructure configuration and scene arrival determination conditions necessary for detecting the arrival of each scene, and the appropriate target position are all different, so the body ECU 106 (A) is used as the master node in the former and the traveling in the latter. The system ECU 106 (B) is used as a master node, and the same slave nodes 104 (A) to 104 (D) need to be dared to be separately controlled via different LIN communication buses.

スレーブノード104(A)〜104(D)を、どちらのCANノードをマスターノードとして制御するかは、上記のごとく到来しているシーン内容に応じて決定される。しかし、ゲートウェイをなす各CANノード(106(A),106(B))は、いずれも独立したLINマスターノードであり、シーン内容によってはそれら複数のCANノードが、同じスレーブノード104(A)〜104(D)を同時に(つまり、競合して)制御しようとすることがありえる。この場合、いずれのCANノードがマスターノードの権限を獲得するかを、シーン内容に応じて調停する必要がある。これに対応して、次のような問題が発生する。
(1)上記調停を行なうための専用の通信線を上記CANノード間に設ける必要がある。それらCANノードが同一のCANクラスタ上にある場合でも、CANプロトコルに規定された調停方式は、CSMA/CA方式による、いわば早い者勝ちのバスアービトレーション方式が採用されているに過ぎず、特有のシーン到来に基づいて調停がなされるわけではないから、結局専用の通信線を設けるか、あるいは、設けない場合でも、LINマスターノード調停を行なうためのCAN通信ソフトウェアを別途搭載する必要が生じる。
(2)LINクラスタの物理層(通信線及びノード内のLINトランシーバ)を全て冗長化して設けなければならず、シングルワイヤ方式のLINのコストメリットが著しく阻害される。
Which CAN node is to be controlled as the master node for the slave nodes 104 (A) to 104 (D) is determined according to the contents of the incoming scene as described above. However, each of the CAN nodes (106 (A), 106 (B)) forming the gateway is an independent LIN master node, and depending on the scene contents, the plurality of CAN nodes may be the same slave node 104 (A)- It is possible to attempt to control 104 (D) simultaneously (ie, in competition). In this case, it is necessary to mediate which CAN node acquires the authority of the master node according to the contents of the scene. Correspondingly, the following problem occurs.
(1) It is necessary to provide a dedicated communication line for performing the arbitration between the CAN nodes. Even when these CAN nodes are on the same CAN cluster, the arbitration method defined in the CAN protocol is merely a first-come-first-served bus arbitration method based on the CSMA / CA method. Since arbitration is not performed on the basis of arrival, it is necessary to separately install CAN communication software for performing LIN master node arbitration even when a dedicated communication line is provided or not provided.
(2) All physical layers (communication lines and LIN transceivers in the nodes) of the LIN cluster must be made redundant, and the cost merit of the single-wire LIN is significantly hindered.

本発明の課題は、シングルワイヤ方式のLINのコストメリットを損ねることなく、そのマスターノードを随時切替可能なLINクラスタを含む車載通信ネットワークシステムを提供することにある。   An object of the present invention is to provide an in-vehicle communication network system including a LIN cluster in which a master node can be switched at any time without impairing the cost merit of a single-wire LIN.

課題を解決するための手段及び発明の効果Means for Solving the Problems and Effects of the Invention

本発明の車載通信ネットワークシステムは、複数のLINノードが単一のLIN通信バスにより接続されたLINクラスタを含むもので、上記の課題を解決するために、LINクラスタをなすLINノードの2以上のものが、マスターノードとスレーブノードとの切り替えが可能な属性切替可能型ノードとされ、それら属性切替可能型ノードのいずれか1つをLINクラスタのマスターノードに、残余のものを該LINクラスタのスレーブノードに、それぞれ切り替え可能に設定するマスター/スレーブ設定切替手段が設けられ、LIN通信におけるデータ伝送に際してのメッセージフレーム構造が、マスタータスクとして送信されるヘッダと、スレーブタスクとして送信されるレスポンスとからなり、ヘッダ送受信とレスポンス送受信とを交互に繰り返す形で通信メッセージのやり取りがなされるとともに、前記属性切替可能型ノードには、前記マスターノードとして作動する際に前記ヘッダを前記LIN通信バスに送出するヘッダ送出手段と、同じく前記レスポンスを受信するレスポンス受信手段と、前記スレーブノードとして作動する際に前記ヘッダを受信するヘッダ受信手段と、同じく前記レスポンスを前記通信バスに送出するレスポンス送出手段とが設けられていることを特徴とする。
The in-vehicle communication network system of the present invention includes a LIN cluster in which a plurality of LIN nodes are connected by a single LIN communication bus. In order to solve the above problem, two or more LIN nodes forming the LIN cluster are included. Is an attribute switchable node that can be switched between a master node and a slave node, and one of these attribute switchable nodes is the master node of the LIN cluster, and the remaining one is a slave of the LIN cluster. Each node is provided with a master / slave setting switching means for setting each switchable , and a message frame structure for data transmission in LIN communication includes a header transmitted as a master task and a response transmitted as a slave task. , Header transmission and reception and response transmission and reception Communication messages are exchanged in a repetitive manner, and the attribute switchable node has a header sending means for sending the header to the LIN communication bus when operating as the master node, and the response is also sent to the LIN communication bus. Response receiving means for receiving, header receiving means for receiving the header when operating as the slave node, and response sending means for sending the response to the communication bus are also provided .

この発明では、複数のLINノードが単一のLIN通信バスにより接続されたLINクラスタにおいて、含まれるLINノードの2以上のものを、マスターノードとスレーブノードとの切り替えが可能な属性切替可能型ノードとして構成し、それら属性切替可能型ノードのいずれか1つをLINクラスタのマスターノードに、残余のものを該LINクラスタのスレーブノードに、それぞれ切り替え可能に設定するマスター/スレーブ設定切替手段を設けた。複数の属性切替可能型ノード間では、マスターノードの権限が随時受け渡し可能になるので、ある瞬間にマスターノードであるLINノードは常に1つに維持でき、LINのプロトコルに反しない。従って、マスターノードとなりえるLINノードが同一スレーブノード群に対して複数設けられているにもかかわらず、LIN通信バスは単一であり、物理層の無駄な冗長化を防止できる。また、属性切替可能型ノード間でどちらがマスターノードになるかの調停も、そのLIN通信バスを介して行なえばよいので、属性切替可能型ノード間に新たな通信線を設ける必要がない。   In the present invention, in an LIN cluster in which a plurality of LIN nodes are connected by a single LIN communication bus, two or more of the included LIN nodes can be switched between a master node and a slave node. There is provided a master / slave setting switching means for setting any one of these attribute switchable nodes to the master node of the LIN cluster and the remaining nodes to the slave nodes of the LIN cluster to be switchable. . Since the authority of the master node can be transferred at any time between the plurality of attribute-switchable nodes, the LIN node that is the master node can always be maintained at one moment, and does not violate the LIN protocol. Therefore, even though a plurality of LIN nodes that can serve as master nodes are provided for the same slave node group, there is a single LIN communication bus, and wasteful redundancy of the physical layer can be prevented. In addition, it is only necessary to perform arbitration between the attribute-switchable nodes as the master node via the LIN communication bus, so there is no need to provide a new communication line between the attribute-switchable nodes.

なお、属性切替可能型ノードは、マスターノードとスレーブノードとのいずれに設定されている場合でも、同じLIN通信バスによりLINクラスタ内の通信を行なうから、該属性切替可能型ノードを含めた各LINノードは、LIN通信バスに対応してLINトランシーバを1つのみ有したものとして構成すればよい。これにより、LIN物理層の無駄な冗長化を防止する効果が一層高められる。   Note that, even if the attribute switchable node is set to either the master node or the slave node, communication within the LIN cluster is performed using the same LIN communication bus, so each LIN including the attribute switchable node is included. The node may be configured as having only one LIN transceiver corresponding to the LIN communication bus. This further enhances the effect of preventing unnecessary redundancy of the LIN physical layer.

LIN通信では、データ伝送に際してのメッセージフレーム構造がプロトコルにより規定されている。LIN通信におけるデータ伝送に際してのメッセージフレーム構造は、マスタータスクとして送信されるヘッダと、スレーブタスクとして送信されるレスポンスとからなり、LINプロトコルでは、ヘッダ送受信とレスポンス送受信とを交互に繰り返す形で通信メッセージのやり取りがなされる。本発明において各属性切替可能型ノードには、マスターノードとして作動する際にヘッダをLIN通信バスに送出するヘッダ送出手段と、同じくレスポンスを受信するレスポンス受信手段と、スレーブノードとして作動する際にヘッダを受信するヘッダ受信手段と、同じくレスポンスを通信バスに送出するレスポンス送出手段とが設けられる。つまり、従来のLINノードは、マスターノードかスレーブノードのどちらかに固定的に設定されていたので、マスターノードについてはヘッダ送信手段とレスポンス受信手段のみが、スレーブノードについてはヘッダ受信手段とレスポンス送信手段のみが設けられていた。しかし、本発明の属性切替可能型ノードは、ヘッダ及びレスポンスの送受信に係る上記4つの手段を全て具備することで、同一LINノードでありながら、マスターノードとスレーブノードとのいずれかに随時切替が可能となる。   In LIN communication, a message frame structure for data transmission is defined by a protocol. The message frame structure for data transmission in LIN communication is composed of a header transmitted as a master task and a response transmitted as a slave task. In the LIN protocol, communication messages are alternately repeated between header transmission and reception and response transmission and reception. Is exchanged. In the present invention, each attribute-switchable node includes a header sending means for sending a header to the LIN communication bus when operating as a master node, a response receiving means for receiving a response, and a header when operating as a slave node. Header receiving means for receiving, and response sending means for sending a response to the communication bus. In other words, since the conventional LIN node is fixedly set to either the master node or the slave node, only the header transmission means and the response reception means for the master node, and the header reception means and the response transmission for the slave node. Only means were provided. However, the attribute-switchable node of the present invention has all the above four means related to the transmission and reception of headers and responses, so that it can be switched at any time to either the master node or the slave node while being the same LIN node. It becomes possible.

マスターノード権限の移転、すなわちノード属性切り替えの態様には、現在マスターノードとなっている属性切替可能型ノードが現在スレーブノードとなっている他の属性切替可能型ノードに対し、自分からマスターノード権限の委譲を申し出る委譲型移転パターンと、現在スレーブノードとなっている属性切替可能型ノードが、現在マスターノードとなっている他の属性切替可能型ノードにマスターノード権限の明け渡しを要求する要求型移転パターンとの2種類がある。いずれの場合も、委譲ないし要求を行なう相手のノードの了解を得た後、実際のマスターノード権限の移転が行なわれる形となる。しかし、マスターノードからのヘッダに対しスレーブノードがレスポンスにより応答するという、ヘッダ/レスポンスを単位としたメッセージ構造をプロトコルの基本とするLINにおいては、LIN通信に基づく一連のノード属性切り替え処理が、スレーブノードからマスターノードへのレスポンス送信で終了しなければならない要請がある。この点を考慮すれば、ノード属性切り替え処理の開始側がマスターノードとなる委譲型移転パターンのほうが通信シーケンスは簡略となり、要求型移転パターンの通信シーケンスは、委譲型移転パターンの通信シーケンスを発展させる形で構築できる。以下、具体的に説明する。   The master node authority transfer, that is, the node attribute switching mode, is that the master node authority from the attribute switching type node that is currently the master node to the other attribute switching type node that is currently the slave node Delegation-type transfer pattern for requesting delegation and request-type transfer in which an attribute switchable node that is currently a slave node requests the transfer of master node authority to another attribute switchable node that is currently a master node There are two types of patterns. In either case, the master node authority is actually transferred after obtaining the consent of the partner node to which the delegation or request is made. However, in the LIN based on the protocol of the message structure based on the header / response in which the slave node responds to the header from the master node as a response, a series of node attribute switching processing based on the LIN communication is performed by the slave. There is a request that must be terminated by sending a response from the node to the master node. Considering this point, the delegation-type transfer pattern in which the start side of the node attribute switching process is the master node has a simpler communication sequence, and the communication sequence of the request-type transfer pattern is a form that develops the communication sequence of the delegation-type transfer pattern. You can build with. This will be specifically described below.

まず、委譲型移転パターンを実現するには、各属性切替可能型ノードに次のような手段を設ける必要がある。
・マスター権限委譲申出通知手段:マスターノードに設定されている状態にて切替条件が成立した場合に、スレーブノードに設定されている他の属性切替可能型ノードのうち、当該切替条件と対応付けて予め指定されているものにマスター権限委譲を申し出るためのマスター権限委譲申出通知を、LIN通信バスを介して行なう。この通知は、LINプロトコルに従い、該マスターノードからのヘッダ送信にてなされる。
・マスター切替制御手段:スレーブノードに設定されている状態にてマスター権限委譲申出通知を受けた場合に、当該マスター権限を受諾するか否かを判定し、その判定結果を返信する。この返信は、LINプロトコルに従い、該マスレーブノードからのレスポンス送信にてなされる。そして、権限を受諾する判定を行った場合に自身のノード設定をスレーブノードからマスターノードへ切り替える(スレーブノードでの内部処理である)。
・スレーブ切替制御手段:マスターノードに設定されている状態にて上記判定結果を受け、かつ、当該判定結果が権限受諾に関して肯定的であった場合に、自身のノード設定をマスターノードからスレーブノードに切り替える(マスターノードでの内部処理である)。
First, in order to realize the delegation type transfer pattern, it is necessary to provide the following means for each attribute switchable type node.
-Master authority transfer offer notification means: When the switching condition is satisfied in the state set in the master node, it is associated with the switching condition among the other attribute switchable nodes set in the slave node. A master authority delegation notification for requesting master authority delegation to a designated one is performed via the LIN communication bus. This notification is made by sending a header from the master node according to the LIN protocol.
Master switching control means: When a master authority delegation notification is received in the state set in the slave node, it is determined whether or not to accept the master authority, and the determination result is returned. This reply is made by sending a response from the slave node according to the LIN protocol. Then, when it is determined to accept the authority, its own node setting is switched from the slave node to the master node (internal processing in the slave node).
・ Slave switching control means: When the above determination result is received in a state where the master node is set, and the determination result is affirmative with respect to authority acceptance, the own node setting is changed from the master node to the slave node. Switch (this is internal processing at the master node).

さて、LINのメッセージ構造では、ヘッダにおいて、次の3つのフィールドを必須フィールドとして組み込むことがプロトコル上の要請となっている。
・ブレークフィールド(Synch Break):メッセージの開始を示す。すなわち、LINメッセージフレームの開始の通知を目的として、マスタータスクが送信する領域である。
・同期フィールド(Synch Field):時間補正用基準波形が組み込まれる。すなわち、クロック精度を必要とするスレーブノードが、クロック補正を行なうための領域である。
・識別子フィールド(Ident Field):通信先となるスレーブノードを特定する。すなわち、マスタータスクがレスポンス送信を行なうスレーブタスクを指定するための領域である。
Now, in the LIN message structure, it is a protocol requirement to incorporate the following three fields as essential fields in the header.
Break field (Sync Break): indicates the start of a message. That is, it is an area transmitted by the master task for the purpose of notifying the start of the LIN message frame.
Sync field: A time correction reference waveform is incorporated. That is, a slave node that requires clock accuracy is an area for clock correction.
Identifier field (Ident Field): specifies a slave node as a communication destination. That is, this is an area for designating a slave task to which the master task sends a response.

また、レスポンスにおいては、次の2つのフィールドを必須フィールドとして組み込むことがプロトコル上の要請となっている。
・データフィールド(Data Field):ヘッダの識別子フィールドにより通信先として指定されるに伴ない、送信対象となるデータを組み込まれる。つまり、スレーブタスクが、マスタータスクに対してデータを通知するための領域である。
・エラーチェックフィールド(Check Sum):スレーブタスクのレスポンスの正常/異常を判定するための領域である。異常判定はチェックサムにより行なわれる。
Also, in the response, it is a protocol requirement to incorporate the following two fields as essential fields.
Data field (Data Field): The data to be transmitted is incorporated as it is designated as the communication destination by the identifier field of the header. That is, this is an area for the slave task to notify the master task of data.
Error check field (Check Sum): An area for determining whether the response of the slave task is normal or abnormal. Abnormality determination is performed by checksum.

他方、LINプロトコルは、ヘッダないしレスポンスから上記各フィールドが欠けることは禁じているが、上記以外のフィールドが含まれることについては特に禁じていない。委譲型移転パターンでは、マスターノード権限の委譲をマスターノード側から申し出る形となり、ヘッダ送信により該マスターノード権限の委譲申出通知を行なうので、この委譲申出通知を行なうための新たなフィールドをヘッダに設けることで、LINプロトコルに整合しつつマスター権限委譲申出通知が可能となる。具体的には、ヘッダに次の追加フィールドを組み込む。
・委譲フィールド:マスターノードとなる属性切替可能型ノードがマスター権限委譲を行なうか否かを特定する。つまり、マスターノードがマスターの権限をスレーブノードに委任する領域である(以下、「Delegation_1 Field」とも称する)。
On the other hand, the LIN protocol prohibits the above fields from being missing from the header or response, but does not specifically prohibit the inclusion of other fields. In the delegation-type transfer pattern, the master node authority is delegated from the master node side, and the master node authority delegation notification is sent by sending a header. Therefore, a new field is provided in the header for performing this delegation application notification. As a result, master authority delegation offer notification can be made consistent with the LIN protocol. Specifically, the following additional fields are incorporated into the header.
Delegation field: Specifies whether or not the attribute-switchable node serving as the master node performs master authority delegation. That is, this is an area where the master node delegates the authority of the master to the slave node (hereinafter also referred to as “Deletion_1 Field”).

また、マスター権限委譲申出の対象となるスレーブノードでは、上記委譲フィールドによるマスターノードからの申出を受諾するか否かの判定結果をマスターノードに通知するための新たなフィールドをレスポンスに設けることで、LINプロトコルに整合しつつマスター権限の委譲申出を受諾するか否かを通知することが可能となる。具体的には、レスポンスに次の追加フィールドを組み込む。
・委譲承認フィールド:スレーブノードとなる属性切替可能型ノードが、ヘッダの委譲フィールドが示すマスター権限委譲を承認するか否かを特定する。例えば、マスターノードからのマスター権限委任に対するエラー応答内容を返す領域(Slave Error Field)として構成可能である。
In addition, in the slave node that is the target of the master authority delegation offer, by providing a new field in the response for notifying the master node of the determination result of whether or not to accept the offer from the master node by the delegation field, It becomes possible to notify whether or not to accept the delegation of master authority while conforming to the LIN protocol. Specifically, the following additional fields are included in the response.
Delegation approval field: Specifies whether or not the attribute switchable node serving as the slave node approves the master authority delegation indicated by the delegation field of the header. For example, it can be configured as an area (Slave Error Field) for returning error response contents for master authority delegation from the master node.

LINクラスタ内に複数のスレーブノードが含まれる場合、マスターノードは、いわゆるポーリング方式により、各スレーブノードに対し指定された順序にてヘッダ/レスポンスによるメッセージのやり取りを行なうことが可能である。ポーリング方式を採用する場合は、まず、属性切替可能型ノードを含む複数のLINノードに、予め定められたポーリングサイクルを規定するための通信順位が一義的に付与しておく。そして、各属性切替可能型ノードは、マスターノードに設定されている場合は、ヘッダ送出手段とレスポンス受信手段とに対し、LIN通信バス上へのヘッダの送信を、対応するスレーブノードからのレスポンスの受信と交替しつつ、通信先となるスレーブノードをポーリングサイクルに従い順次変更しつつ繰り返し行なうようにする。   When a plurality of slave nodes are included in the LIN cluster, the master node can exchange messages using headers / responses in a specified order with respect to each slave node by a so-called polling method. When the polling method is adopted, first, a communication order for prescribing a predetermined polling cycle is uniquely assigned to a plurality of LIN nodes including an attribute switchable node. When each attribute switchable node is set as a master node, the header transmission means and the response reception means send the header on the LIN communication bus to the response from the corresponding slave node. While alternating with reception, the slave node as the communication destination is repeatedly changed in accordance with the polling cycle.

本発明において上記ポーリング方式を採用する場合、LINクラスタ内の属性切替可能型ノードを含む全てのノードに上記通信順位が付与される。他方、本発明では、同じLINクラスタ内の複数の属性切替可能型ノード間でマスターノードが交代可能になっている点に特徴がある。こうしたマスターノードの交代を生じた場合も、上記ポーリングサイクルに従った通信シーケンスがなるべく維持されるように動作することが、該通信シーケンスへの各スレーブノードの参加公平性を保つ上で望ましいといえる。   When the polling method is adopted in the present invention, the communication rank is given to all nodes including the attribute switchable node in the LIN cluster. On the other hand, the present invention is characterized in that a master node can be switched between a plurality of attribute switchable nodes in the same LIN cluster. Even when such a master node change occurs, it is desirable to maintain the fairness of participation of each slave node in the communication sequence so that the communication sequence according to the polling cycle is maintained as much as possible. .

例えば、マスター権限の委譲元となるマスターノードを委譲元ノード、マスター権限の委譲先となるスレーブノードを委譲先ノードとして、委譲型移転パターンでは、委譲元ノードは、ポーリングサイクルにおいて委譲先ノードの通信順位が到来するに伴ない、委譲フィールドに当該委譲先ノードをマスター権限委譲先として指定する内容を記述したヘッダを委譲先指定ヘッダとして送出することになる。委譲先ノードは該委譲先指定ヘッダを受信してマスター権限の委譲を承認するか否かを判断し、承認する場合は該委譲先指定ヘッダに続くレスポンスを、委譲承認フィールドにマスター権限委譲を承認する内容を記述した委譲承認レスポンスとして送信するとともに自ノードをマスターノードに切り替え設定する。また、委譲元ノードは委譲承認レスポンスを受信して自ノードをスレーブノードに切り替え設定する。この場合、切り替え後のマスターノードは、自ノードの次に通信順位が定められたスレーブノードからポーリングサイクルを更新する形でヘッダの送信を開始するように定めておけば、切り替え前のマスターノードからのポーリングサイクルを円滑に引き継ぐことができる。   For example, with a master node that is a master authority delegation source as a delegation source node and a slave node that is a master authority delegation destination as a delegation destination node, in the delegation-type transfer pattern, the delegation source node communicates with the delegation destination node in the polling cycle. As the order arrives, a header in which the contents specifying the delegation destination node as the master authority delegation destination in the delegation field is transmitted as the delegation destination designation header. The delegation destination node receives the delegation destination designation header and determines whether or not to approve the delegation of the master authority, and if so, approves the response following the delegation destination designation header and approves the master authority delegation in the delegation approval field. Is sent as a delegation approval response describing the contents to be performed, and the own node is switched to the master node and set. In addition, the delegation source node receives the delegation approval response and switches its own node to the slave node. In this case, if it is determined that the master node after switching starts transmission of the header in the form of updating the polling cycle from the slave node whose communication order is determined next to its own node, the master node before switching The polling cycle can be taken over smoothly.

他方、マスターノードの切替が行なわれない場合、すなわち、委譲先ノードが委譲先指定ヘッダを受信した後、マスター権限の委譲を承認しない場合は、該委譲先ノードは、委譲先指定ヘッダに続くレスポンスを、委譲承認フィールドにマスター権限委譲を承認しない内容を記述して委譲非承認レスポンスとして送信するとともに自ノードをスレーブノードに設定維持するように構成する。他方、委譲元ノードは委譲非承認レスポンスを受信して自ノードをマスターノードに設定維持しつつ、委譲先ノードの次順位のスレーブノードを指定するヘッダを送出する。これにより、ポーリングサイクルに何ら乱れを生ずることなく継続することができる。   On the other hand, when the master node is not switched, that is, after the delegation destination node receives the delegation destination designation header and does not approve the delegation of the master authority, the delegation destination node responds following the delegation destination designation header. Is described in the delegation approval field, the content not approving the master authority delegation is described and transmitted as a delegation non-approval response, and the own node is set and maintained in the slave node. On the other hand, the delegation source node receives the delegation non-approval response and sends the header specifying the slave node of the next rank of the delegation destination node while maintaining its own node as the master node. As a result, the polling cycle can be continued without causing any disturbance.

次に、要求型移転パターンを実現するには、各属性切替可能型ノードに次のような手段を設ける必要がある。
・マスター委譲要求通知手段:スレーブノードに設定されている状態にて切替条件が成立した場合に、マスターノードに設定されている他の属性切替可能型ノードに、マスター権限委譲を要求するマスター権限委譲要求通知を、LIN通信バスを介して行なう。この通知は、LINプロトコルに従い、該スレーブノードからのレスポンス送信にてなされる。
・スレーブ切替制御手段:マスターノードに設定されている状態にてマスター委譲要求通知を受けた場合に、要求されたマスター権限の委譲を受諾するか否かを判断し、その判断結果を返信する。この返信は、該マスターノードからのヘッダ送信にてなされる。そして、委譲受諾する場合に自身のノード設定をマスターノードからスレーブノードへ切り替える(マスターノードでの内部処理である)。
・マスター切替制御手段:スレーブノードに設定されている状態にて上記の判断結果を受け、かつ、当該判断結果がマスター権限の委譲に関して肯定的であった場合に、自身のノード設定をスレーブノードからマスターノードに切り替える(スレーブノードでの内部処理である)。
Next, in order to realize the request type transfer pattern, it is necessary to provide the following means for each attribute switchable type node.
Master delegation request notifying means: Master authority delegation that requests master authority delegation to other attribute switchable nodes set in the master node when the switching condition is satisfied in the state set in the slave node Request notification is performed via the LIN communication bus. This notification is made by sending a response from the slave node according to the LIN protocol.
Slave switching control means: When a master delegation request notification is received in a state set in the master node, it is determined whether to accept the delegation of the requested master authority, and the determination result is returned. This reply is made by sending a header from the master node. Then, when accepting the delegation, its own node setting is switched from the master node to the slave node (internal processing in the master node).
Master switching control means: When the above determination result is received in a state where the slave node is set, and the determination result is affirmative with respect to delegation of master authority, the own node setting is set from the slave node. Switch to master node (internal processing at slave node).

このように、要求型移転パターンでは、マスターノード権限の移転に直接関与する通信シーケンスが、委譲先ノードをなすスレーブノード(属性切替可能型ノード)のレスポンス送信から開始される。しかし、その後は、その要求を承認した委譲元ノードからのマスターノード権限の移転申出を行なうヘッダ(委譲フィールド)が続き、その申出を委譲先ノードが受諾するレスポンス(委譲承認フィールド)で通信シーケンスが完了する。つまり、要求型移転パターンでの通信シーケンスは、委譲型移転パターンの通信シーケンスの要部をなすヘッダ/レスポンスに先立って、権限要求のためのレスポンスが追加された構造をとることになる。   Thus, in the request type transfer pattern, the communication sequence directly involved in the transfer of the master node authority is started from the response transmission of the slave node (attribute switchable type node) forming the delegation destination node. However, after that, a header (delegation field) for requesting transfer of master node authority from the delegation source node that approved the request follows, and the communication sequence is a response (delegation approval field) that the delegation destination node accepts the offer. Complete. That is, the communication sequence in the request type transfer pattern has a structure in which a response for the authority request is added prior to the header / response that forms the main part of the communication sequence in the delegation type transfer pattern.

すなわち、要求型移転パターンでは、マスターノード権限の委譲をスレーブノード側から要求する形となり、レスポンス送信により該マスターノード権限の委譲要求を行なうので、この委譲要求を行なうための新たなフィールドをレスポンスに設けることで、LINプロトコルに整合しつつマスター権限委譲要求が可能となる。具体的には、レスポンスに次の追加フィールドを組み込む。
・委譲要求フィールド:マスターノードとなる属性切替可能型ノードに対しマスター権限委譲を要求するか否かを特定する。つまり、スレーブノードからマスターノードになるという要求を出す領域である(以下、「Delegation_2 Field」ともいう)。
That is, in the request-type transfer pattern, the master node authority is requested to be delegated from the slave node side, and the master node authority delegation request is made by sending a response. Therefore, a new field for making this delegation request is used as a response. By providing, it becomes possible to make a master authority delegation request consistent with the LIN protocol. Specifically, the following additional fields are included in the response.
Delegation request field: Specifies whether or not to request master authority delegation to an attribute switchable node that becomes a master node. In other words, this is an area for issuing a request to become a master node from a slave node (hereinafter also referred to as “Delegation_2 Field”).

また、マスター権限委譲要求の対象となるマスターノードでは、上記委譲要求フィールドによるスレーブノードからの要求を受諾するか否かの判定結果をマスターノードに通知するための新たなフィールドをヘッダに設けることで、LINプロトコルに整合しつつマスター権限の委譲要求を受諾するか否かを通知することが可能となる。具体的には、ヘッダに次の追加フィールドを組み込む。
・委譲要求承認フィールド:スレーブノードとなる属性切替可能型ノードがマスター権限委譲要求を承認するか否かを特定する。例えば、スレーブノードからのマスター権限委任要求に対するエラー応答内容を返す領域(Master Error Field)として構成可能である。
In addition, in the master node that is the target of the master authority delegation request, a new field is provided in the header for notifying the master node of the determination result of whether or not to accept the request from the slave node by the delegation request field. Thus, it is possible to notify whether or not to accept the master authority delegation request while conforming to the LIN protocol. Specifically, the following additional fields are incorporated into the header.
Delegation request approval field: Specifies whether or not the attribute switchable node serving as the slave node approves the master authority transfer request. For example, it can be configured as an area (Master Error Field) for returning an error response content to a master authority delegation request from a slave node.

要求型移転パターンにおいては、委譲先ノードは、委譲要求フィールドに当該委譲先ノードをマスター権限委譲先とする要求を記述したレスポンスを委譲先指定レスポンスとして送出し、委譲元ノードは該委譲先指定レスポンスを受信してマスター権限の委譲を承認するか否かを判断する。そして、委譲元ノードが該委譲を承認する場合であるが、委譲型移転パターンと同様のシーケンスを採用すると、マスターノードの交代タイミングは、次にマスターノードとなるべき委譲先ノードの通信順位がすでに過ぎてしまっているので、委譲先ノードの通信順位が次に到来するまで、約1ポーリングサイクル分だけ待ち時間が生ずることとなる。もちろん、当該方式も本発明においては採用可能であるが、マスターノードの交代をより迅速に行なうには、次のような方式が好適である。   In the request-type transfer pattern, the delegation destination node sends a response in which a request in which the delegation destination node is a master authority delegation destination is described in the delegation request field as a delegation destination designation response, and the delegation source node sends the delegation destination designation response To determine whether to approve the delegation of master authority. Then, when the delegation source node approves the delegation, when the same sequence as the delegation type transfer pattern is adopted, the master node replacement timing is determined so that the communication order of the delegation destination node to be the next master node is already Since the time has passed, there is a waiting time of about one polling cycle until the communication order of the delegation destination node comes next. Of course, this method can also be employed in the present invention, but the following method is suitable for more quickly changing the master node.

すなわち、委譲元ノードが該委譲を承認する場合は、現在マスターノードとなっている委譲元ノードがポーリングサイクルを、委譲先ノードから委譲先指定レスポンスを受けた段階で一旦打ち切る。そして、該委譲先指定レスポンスに続くヘッダを、委譲要求承認フィールドにマスター権限委譲要求を承認する内容を記述し、委譲フィールドに当該委譲先ノードをマスター権限委譲先として指定する内容を記述したヘッダを委譲先指定ヘッダとして、当該委譲先ノードからポーリングサイクルを再開する形で送出する。つまり、この場合に限っては、すでに過ぎたはずの委譲先ノードの通信順位を1回反復する形でポーリングサイクルを継続するのである。これにより、上記の待ち時間の短縮を図ることができる。その後、委譲先ノードは該委譲先指定ヘッダを受信してマスター権限の委譲を承認するか否かを判断し、承認する場合は該委譲先指定ヘッダに続くレスポンスを、委譲承認フィールドにマスター権限委譲を承認する内容を記述した委譲承認レスポンスとして送信するとともに自ノードをマスターノードに切り替え設定し、自ノードの次に通信順位が定められたスレーブノードからポーリングサイクルを引き継ぐ形でヘッダの送信を新たに開始する。また、委譲元ノードは委譲承認レスポンスを受信して自ノードをスレーブノードに切り替え設定する。   That is, when the delegation source node approves the delegation, the delegation source node that is currently the master node stops the polling cycle once it receives the delegation destination designation response from the delegation destination node. Then, the header following the delegation destination designation response is described in the delegation request approval field, the contents for approving the master authority delegation request, and in the delegation field, the header describing the contents for designating the delegation destination node as the master authority delegation destination As the delegation destination designation header, the polling cycle is restarted from the delegation destination node. That is, only in this case, the polling cycle is continued by repeating the communication order of the delegation destination node that should have already passed once. Thereby, shortening of said waiting time can be aimed at. After that, the delegation destination node receives the delegation destination designation header and determines whether or not to approve the delegation of master authority. If so, the response following the delegation destination designation header is transferred, and the master authority delegation is transferred to the delegation approval field. Is sent as a delegation approval response that describes the content to approve, and the own node is switched to the master node and the header is newly sent in the form of taking over the polling cycle from the slave node whose communication order is set next to the own node Start. In addition, the delegation source node receives the delegation approval response and switches its own node to the slave node.

なお、委譲元ノードが委譲先指定レスポンスを受信した後、マスター権限の委譲要求を拒否する場合は、委譲先指定レスポンスに続くヘッダを、委譲要求承認フィールドにマスター権限委譲要求を拒否する内容を記述した委譲要求拒否ヘッダとして送信するとともに自ノードをマスターノードに設定維持し、委譲先ノードの次順位のスレーブノードを指定するヘッダを送出する形でポーリングサイクルを継続する。これにより、ポーリングサイクルに何ら乱れを生ずることなく継続することができる。   If the delegation source node receives the delegation destination designation response and rejects the master authority delegation request, describe the header following the delegation destination designation response and the contents to deny the master authority delegation request in the delegation request approval field. The delegation request rejection header is transmitted, the own node is set and maintained as the master node, and the polling cycle is continued by sending a header designating the slave node of the next rank of the delegation destination node. As a result, the polling cycle can be continued without causing any disturbance.

メッセージフレームを、委譲型移転パターンと要求型移転パターンとの双方に対応可能に構築したい場合、ヘッダには委譲フィールドと委譲要求承認フィールドとの双方を、レスポンスには、委譲承認フィールドと委譲要求フィールドとの双方を設けることになる。ヘッダ及びレスポンスの各フィールドは、ヘッダないしレスポンスの先頭からの配置位置とフィールド長とを固定化することにより、それぞれスタートビットとストップビットとによりフィールドの切れ目さえ識別できれば、個々のフィールドを特定するための領域を設けずとも、受信側にて現在どのフィールドを受信中であるかを問題なく識別することができる。   If you want to build a message frame that can handle both delegation-type transfer patterns and request-type transfer patterns, both a delegation field and a delegation request approval field are included in the header, and a delegation approval field and a delegation request field are included in the response. Both will be provided. Each field of the header and response can be identified by fixing the position of the header or response from the beginning and the field length so that each field can be identified as long as the start and stop bits can be identified. Even if this area is not provided, it is possible to identify which field is currently being received on the receiving side without any problem.

次に、本発明の車載通信ネットワークシステムは、複数のCANノードがCAN通信バスにより接続されたCANクラスタと、複数のLINノードが単一のLIN通信バスにより接続され、前記CANノードをゲートウェイノードとしてCANクラスタに接続されたLINクラスタとからなる複合車載通信ネットワークシステムとして構成できる。そして、複数のCANノードをゲートウェイノードとしてとして、LINクラスタを構成する1つのLIN通信バスがそれら複数のゲートウェイノードに分配接続されるとともに、各ゲートウェイノードを属性切替可能型ノードとして構成することができる。   Next, in the in-vehicle communication network system of the present invention, a CAN cluster in which a plurality of CAN nodes are connected by a CAN communication bus, a plurality of LIN nodes are connected by a single LIN communication bus, and the CAN node is used as a gateway node. It can be configured as a composite in-vehicle communication network system composed of LIN clusters connected to CAN clusters. A plurality of CAN nodes can be used as gateway nodes, and one LIN communication bus constituting the LIN cluster can be distributed and connected to the plurality of gateway nodes, and each gateway node can be configured as an attribute-switchable node. .

CANノードをゲートウェイとして、これをLINマスターノードとして動作させる構成は、設計が簡単で安価であり、使用するマイコンに必要な数の通信チャネルとCPU性能があれば、一つのゲートウェイに複数のLIN通信バスを接続する設計も容易なので、車載通信ネットワークシステムの代表的なインフラ形態として幅広く実用化されている。しかし、この方式は、ゲートウェイとなるCANノードが故障すると、それにつながるLINクラスタ全体がダウンする恐れがあり、大きな欠点の一つとなっている。例えば、LINノードのすべての機能が、接続先となるCANクラスタからの指令でのみ従属的に動作するような場合、特に、対象のLINクラスタがそれだけで機能的に閉じているような場合(例えば、スレーブノードにスイッチとランプが接続され、スイッチを入れればランプが点灯するといった機能)は、ゲートウェイが故障すれば、他のスレーブノードが全て正常であっても機能的には全く意味を成さず、そのLINクラスタが担う車載機能が一括して失われる可能性もある。   A configuration in which a CAN node is used as a gateway and this is operated as a LIN master node is simple and inexpensive in design, and if there are the necessary number of communication channels and CPU performance for the microcomputer used, a plurality of LIN communications can be performed on one gateway. Since the design to connect the bus is easy, it is widely used as a typical infrastructure form for in-vehicle communication network systems. However, this method is one of the major drawbacks when a CAN node serving as a gateway fails, the entire LIN cluster connected thereto may go down. For example, when all functions of a LIN node operate subordinately only with a command from a CAN cluster as a connection destination, in particular, when a target LIN cluster is functionally closed by itself (for example, The function that the switch and the lamp are connected to the slave node and the lamp is turned on when the switch is turned on) is functionally meaningless if the gateway fails, even if all other slave nodes are normal. In addition, the in-vehicle functions that the LIN cluster is responsible for may be lost at once.

他方、上記のようなゲートウェイのトラブルからLINクラスタを守ることができる一つの方法として、ゲートウェイとなるCANノードをLINスレーブノードとして動作させる方式も実用化されている。例えば、LIN2.0では、故障ノードの切り離しがプロトコルで規定されており、ゲートウェイの故障に対してはCANとほぼ同等の信頼性を確保することができる。しかしながら、ゲートウェイはLINスレーブノードとして働くので、LINクラスタ内の(ゲートウェイをなさない)マスターノードには、ゲートウェイをなすLINスレーブノードに対し、CANクラスタ側からのメッセージを定期的に確認するためのポーリング機能を追加しなければならない問題がある。   On the other hand, as a method that can protect the LIN cluster from the troubles of the gateway as described above, a method of operating a CAN node as a gateway as a LIN slave node has been put into practical use. For example, in LIN2.0, the disconnection of a failed node is defined by a protocol, and the reliability almost equal to that of CAN can be ensured for a gateway failure. However, since the gateway acts as a LIN slave node, the master node in the LIN cluster (which does not form a gateway) polls the LIN slave node that forms the gateway periodically to check messages from the CAN cluster side. There is a problem that requires additional functionality.

また、LINでは、マスタータスクをなすヘッダに同期フレームを組み込み、その時間補正用基準波形を参照してスレーブボーレートを補正する簡易型同期プロトコルが採用されている。つまり、データ送信を行なう毎にマスターノードからの時間補正用基準波形に合わせてスレーブノードがボーレートを補正し、同期をとるようにしているのである。他方、CANは比較的高伝送レートに対応できるマルチマスタ方式のシリアル通信プロトコルであり、エッジ検出による再同期処理やビットスタッフィングなど、より高精度のノード間同期機構を有する。従って、同期精度の高いCANノードを、LINクラスタ内のマスターノードとして採用すれば、LINクラスタ内の同期精度も高めることができる。しかし、CANノードがスレーブノードとして使用される場合は、CAN通信バスから切り離されたLINマスターノードが採用される限り、同等の同期精度を実現するのは困難になるか、たとえ実現できたとしても、LINマスターノードの発振回路の高性能化や同期方式の複雑化など、コストアップが避けられなくなる。   In LIN, a simple synchronization protocol is adopted in which a synchronization frame is incorporated in a header constituting a master task, and a slave baud rate is corrected by referring to the time correction reference waveform. That is, every time data is transmitted, the slave node corrects the baud rate in accordance with the time correction reference waveform from the master node, and synchronizes. On the other hand, CAN is a multi-master serial communication protocol that can cope with a relatively high transmission rate, and has a more accurate inter-node synchronization mechanism such as resynchronization processing by edge detection and bit stuffing. Therefore, if a CAN node with high synchronization accuracy is adopted as a master node in the LIN cluster, the synchronization accuracy in the LIN cluster can be improved. However, if the CAN node is used as a slave node, it is difficult to achieve the same synchronization accuracy as long as the LIN master node separated from the CAN communication bus is adopted, even if it can be realized. Therefore, it is inevitable to increase the cost, such as higher performance of the oscillation circuit of the LIN master node and complicated synchronization method.

しかしながら、本発明のごとく、LINクラスタを構成する1つのLIN通信バスを、CANノードをなす複数のゲートウェイノードに分配接続し、各ゲートウェイノードを属性切替可能型ノードとしてマスター/スレーブの切替を可能に構成しておくことで、現在マスターノードになっている属性切替可能型ノードが仮にダウンしても、他の生きている属性切替可能型ノードをマスターノードに切り替えることができる。これにより、当該LINクラスタのフェールセーフ機能は格段に向上し、信頼性を飛躍的に高めることができる。また、マスターノードとなりうる属性切替可能型ノードはいずれもCANノードであるから、LINクラスタ内の同期精度の確保も容易である。   However, as in the present invention, one LIN communication bus that constitutes a LIN cluster is distributed and connected to a plurality of gateway nodes that form CAN nodes, and each gateway node can be switched between attributes to enable master / slave switching. By configuring, even if the attribute switchable node that is currently the master node goes down, another live attribute switchable node can be switched to the master node. As a result, the fail-safe function of the LIN cluster is remarkably improved, and the reliability can be dramatically increased. In addition, since any attribute-switchable node that can be a master node is a CAN node, it is easy to ensure synchronization accuracy in the LIN cluster.

マスター/スレーブ設定切替手段は、CANクラスタ又はLINクラスタの通信状態を監視する通信状態監視手段を有し、監視中の通信状態において予め定められた切替条件が成立した場合に、複数の属性切替可能型ノードにおけるマスターノード及びスレーブノードの設定切替を行なうように構成できる。監視中の通信状態、つまり、複数の属性切替可能型ノードのうちシーンに応じてふさわしいものをマスターノードに随時切り替えることができ、よりきめ細かい制御が可能となる。この場合、通信状態(シーン)の予め定められた種別毎に、複数の属性切替可能型ノードについてマスターノードに設定するための優先順位を定めておくことができ、マスター/スレーブ設定切替手段は成立した通信状態(シーン)に対応する該優先順位に基づいて、マスターノード及びスレーブノードの設定切替を行なうように構成することができる。シーン別にマスターノードとするための優先順位を定めておくことで、マスターノード切り替えの判定アルゴリズムを大幅に簡略化することができる。   The master / slave setting switching unit has a communication state monitoring unit that monitors the communication state of the CAN cluster or the LIN cluster, and can switch a plurality of attributes when a predetermined switching condition is satisfied in the communication state being monitored. It can be configured to switch the setting of the master node and the slave node in the type node. The communication state being monitored, that is, a node suitable for a scene among a plurality of attribute-switchable nodes can be switched to the master node at any time, and finer control is possible. In this case, for each predetermined type of communication state (scene), a priority order for setting a plurality of attribute switchable nodes as a master node can be determined, and master / slave setting switching means is established. The master node and the slave node can be switched based on the priority order corresponding to the communication state (scene). By determining the priority order for setting a master node for each scene, the master node switching determination algorithm can be greatly simplified.

LIN通信バスが分配接続される複数のゲートウェイノードは、互いに異なる制御系をなす複数のCANクラスタに振り分けて設けることができる。通信状態監視手段は、各CANクラスタがCAN通信バスを介して取得する通信情報に基づき対応する制御系の制御状態を監視するものとして構成でき、マスター/スレーブ設定切替手段は、監視中の制御状態が予め定められた切替条件を成立した場合に、当該制御状態と対応付ける形で予め指定されたCANクラスタに属するゲートウェイノードをマスターノードに設定するように構成できる。制御目的の異なるCANクラスタ間で1つのLINクラスタを共有化することで、当該LINクラスタが担う車載機能の適用対象シーンを顕著に拡大でき、LINクラスタのさらなる有効活用を図ることができる。   The plurality of gateway nodes to which the LIN communication bus is distributed and connected can be distributed and provided to a plurality of CAN clusters forming different control systems. The communication status monitoring means can be configured to monitor the control status of the corresponding control system based on the communication information acquired by each CAN cluster via the CAN communication bus, and the master / slave setting switching means can control the control status being monitored. When a predetermined switching condition is established, a gateway node belonging to a CAN cluster designated in advance in association with the control state can be set as a master node. By sharing one LIN cluster among CAN clusters having different control purposes, it is possible to remarkably expand the scenes to which the in-vehicle functions applied by the LIN cluster are applied, and to further effectively use the LIN cluster.

一方、LIN通信バスが分配接続される複数の上記ゲートウェイノードの一つを、LINクラスタの正規マスターノードとして定める一方、残余のゲートウェイノードをなすスレーブノードを、正規マスターノードの機能の少なくとも一部を引継ぎ可能な代替マスターノード候補として定めておくこともできる。通信状態監視手段は、各CANクラスタがCAN通信バスを介して取得する通信情報に基づき正規マスターノードの動作状態を監視するものであり、マスター/スレーブ設定切替手段は、監視中の正規マスターノードの動作状態に予め定められた内容の異常が検出された場合に、代替マスターノード候補をなすスレーブノードをマスターノードに設定切り替えするものとして構成できる。これにより、当該LINクラスタの正規マスターノードがダウンしても、代替マスターノードによる引継ぎを迅速に行なうことができ、フェールセーフ機能を格段に向上させることができる。   On the other hand, one of the plurality of gateway nodes to which the LIN communication bus is distributed and connected is defined as a regular master node of the LIN cluster, while a slave node constituting the remaining gateway node is defined as at least a part of the function of the regular master node. It can also be determined as an alternative master node candidate that can be taken over. The communication status monitoring means monitors the operation status of the regular master node based on the communication information acquired by each CAN cluster via the CAN communication bus. The master / slave setting switching means is used to monitor the regular master node being monitored. When an abnormality having a predetermined content is detected in the operation state, a slave node that is an alternative master node candidate is set and switched to a master node. As a result, even if the regular master node of the LIN cluster goes down, the takeover by the alternative master node can be performed quickly, and the fail-safe function can be significantly improved.

以下、本発明の実施の形態を、図面を参照して説明する。
図1は、本発明の車載通信ネットワークシステムの一構成例を示すブロック図である。この車載通信ネットワークシステム1は、複数のLINノード4(A)〜4(D),6(A),6(B)が単一のLIN通信バス5により接続されたLINクラスタ50を含む。LINクラスタ50をなすLINノード4(A)〜4(D)、6(A),6(B)の2以上のもの、すなわち、本実施形態においては、ノード6(A),6(B)の2つが、マスターノードとスレーブノードとの切り替えが可能な属性切替可能型ノード6(A),6(B)とされている。これら属性切替可能型ノード6(A),6(B)のいずれか1つがLINクラスタ50のマスターノードに、残余のものが該LINクラスタ50のスレーブノードに、それぞれ切り替え可能に設定される。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a configuration example of an in-vehicle communication network system according to the present invention. This in-vehicle communication network system 1 includes a LIN cluster 50 in which a plurality of LIN nodes 4 (A) to 4 (D), 6 (A), and 6 (B) are connected by a single LIN communication bus 5. Two or more of the LIN nodes 4 (A) to 4 (D), 6 (A), and 6 (B) forming the LIN cluster 50, that is, in this embodiment, the nodes 6 (A) and 6 (B). Are the attribute-switchable nodes 6 (A) and 6 (B) that can be switched between the master node and the slave node. Any one of these attribute-switchable nodes 6 (A) and 6 (B) is set to be a switchable node to the master node of the LIN cluster 50, and the remaining ones to the slave nodes of the LIN cluster 50.

図1の構成においては、複数のCANノード(2(A),6(A)‥、及び2(B),6(B)‥)が、それぞれCAN通信バス3(A),3(B)により接続されてCANクラスタ100(A),100(B)を形成している。そして、そのうちのCANノード6(A),6(B)をゲートウェイノード(以下、ゲートウェイノード6(A),6(B)ともいう)として、上記のLINクラスタ50がCANクラスタ100(A),100(B)に接続され、複合車載通信ネットワークシステムが構成されている。LINクラスタ50を構成する単一のLIN通信バス5は、それら複数のゲートウェイノード6(A),6(B)に分配接続されるとともに、各ゲートウェイノード6(A),6(B)が属性切替可能型ノードとして構成されている。   In the configuration of FIG. 1, a plurality of CAN nodes (2 (A), 6 (A)..., 2 (B), 6 (B)...) Are respectively connected to CAN communication buses 3 (A) and 3 (B). To form CAN clusters 100 (A) and 100 (B). Of these, the CAN nodes 6 (A) and 6 (B) are used as gateway nodes (hereinafter also referred to as gateway nodes 6 (A) and 6 (B)), and the LIN cluster 50 is connected to the CAN clusters 100 (A), 100 (B), a composite in-vehicle communication network system is configured. The single LIN communication bus 5 constituting the LIN cluster 50 is distributedly connected to the plurality of gateway nodes 6 (A) and 6 (B), and each gateway node 6 (A) and 6 (B) has attributes. It is configured as a switchable node.

LINノード4(A)〜4(D),6(A),6(B)のうち、属性切替可能型ノード6(A),6(B)を除いた残りのもの4(A)〜4(D)は、LINのスレーブノードとしてのみ機能することが可能であり、図2に示すように、それぞれ、例えば8ビットマイコン(16ビットマイコンでもよい)を主体とするUARTコントローラ41を有し、LINトランシーバ42を介してシングルメタルワイヤからなるLIN通信バス5に接続される。   Of the LIN nodes 4 (A) to 4 (D), 6 (A), and 6 (B), the remaining 4 (A) to 4 (A) to 4 (A) to 4 (A) to 4 (A) are excluded except for the attribute switchable nodes 6 (A) and 6 (B) (D) can function only as a slave node of LIN. As shown in FIG. 2, each has a UART controller 41 mainly composed of, for example, an 8-bit microcomputer (or a 16-bit microcomputer), The LIN transceiver 42 is connected to the LIN communication bus 5 made of a single metal wire.

一方、CANノード(2(A),6(A)‥、及び2(B),6(B)‥)のうち、属性切替可能型ノード6(A),6(B)を除いた残りのもの2(A),2(B)は、図2に示すように、それぞれ例えば32ビットマイコン(16ビットマイコンあるいは8ビットマイコンでもよい)を主体とするCANコントローラ41を有し、CANトランシーバ42を介してツイストペア線からなるCAN通信バス3に接続される。   On the other hand, of the CAN nodes (2 (A), 6 (A)... And 2 (B), 6 (B)...), The remaining ones except for the attribute switchable nodes 6 (A) and 6 (B). As shown in FIG. 2, each of the products 2 (A) and 2 (B) has a CAN controller 41 mainly composed of, for example, a 32-bit microcomputer (may be a 16-bit microcomputer or an 8-bit microcomputer), and a CAN transceiver 42 is provided. To the CAN communication bus 3 including a twisted pair line.

そして、ゲートウェイノード6(A),6(B)は、それぞれ例えば32ビットマイコンを主体とするCAN/LINゲートウェイプロセッサ61を有し、CANトランシーバ22を介してCAN通信バス3に、さらに、LINトランシーバ42を介してLIN通信バス5に、それぞれ接続される。   Each of the gateway nodes 6 (A) and 6 (B) has a CAN / LIN gateway processor 61 mainly composed of, for example, a 32-bit microcomputer, and is further connected to the CAN communication bus 3 via the CAN transceiver 22. 42 to the LIN communication bus 5.

本発明においてCAN/LINゲートウェイプロセッサ61の動作には、LINマスターノード、LINスレーブノード及びCANノードとして動作することに加えて、データのバッファリング、タイミング制御、LINとCANのプロトコル変換などのソフトウェアが必要となる。図3に、必要となる主なソフトウェアモジュールを、その相互関係ととともに図示する。   In the present invention, the CAN / LIN gateway processor 61 operates as software such as data buffering, timing control, and protocol conversion between LIN and CAN in addition to operating as a LIN master node, a LIN slave node, and a CAN node. Necessary. FIG. 3 illustrates the main software modules required along with their interrelationships.

・LINドライバ609:LIN通信を実現するためのソフトウェアである。LINマスターノードとして動作させるためのマスタードライバ622と、LINスレーブノードとして動作させるためのスレーブドライバ623と、属性切替部621とを有し、属性切替部621は、メッセージ・スケジューラ607を経由して送られてくる、後述のLINメッセージフレーム(ヘッダないしレスポンス)の記述内容に従い、マスタードライバ622とスレーブドライバ623とのどちらかを動作させる。これにより、LINマスターノード及びLINスレーブノードのいずれかとして、マイコン内のUARTやタイマなどを制御しつつ通信を行なう。
・CANドライバ610:CAN通信を実現するためのソフトウェア。マイコン内のCANコントローラを制御して通信を行なう。
LIN driver 609: software for realizing LIN communication. It has a master driver 622 for operating as a LIN master node, a slave driver 623 for operating as a LIN slave node, and an attribute switching unit 621. The attribute switching unit 621 transmits the message via the message scheduler 607. Then, either the master driver 622 or the slave driver 623 is operated according to the description content of the LIN message frame (header or response) described later. As a result, communication is performed while controlling the UART, timer, etc. in the microcomputer as either the LIN master node or the LIN slave node.
CAN driver 610: Software for realizing CAN communication. It communicates by controlling the CAN controller in the microcomputer.

・IDマッピング・テーブル606/メッセージ・フィルタ603:プロトコル変換を司る。IDマッピング・テーブル606には、LINとCANのID(識別子)変換情報を格納している。ゲートウェイ通信が必要なIDの場合、メッセージ・フィルタ603はIDマッピング・テーブル606に従って、CANプロトコルのIDとLINプロトコルのIDを変換する。また、LINメッセージ・バッファ604及びCANメッセージ・バッファ605へのメッセージ送受信要求の格納処理も行なう。
・エラー・ハンドラ608:エラー制御を司る。LINドライバ609、CANドライバ610、又は、ゲートウェイ自身からのエラーを含むエラー処理を行なう。
ID mapping table 606 / message filter 603: Controls protocol conversion. The ID mapping table 606 stores ID (identifier) conversion information of LIN and CAN. When the ID requires gateway communication, the message filter 603 converts the CAN protocol ID and the LIN protocol ID according to the ID mapping table 606. In addition, message transmission / reception requests are stored in the LIN message buffer 604 and the CAN message buffer 605.
Error handler 608: Controls error control. Error processing including errors from the LIN driver 609, the CAN driver 610, or the gateway itself is performed.

・LINメッセージ・バッファ604/CANメッセージ・バッファ605:データ・バッファリングを司る。FIFO(first-in first-out)リング・バッファで構成されており、LIN又はCANへのメッセージ送受信要求を格納する。LIN用及びCAN用の各独立のバッファで構成される。
・メッセージ・スケジューラ607:タイミング制御を司り、各メッセージ・バッファ604,605に問い合わせるためのタイミング機能を提供する。また、LINメッセージ・バッファ604又はCANメッセージ・バッファ605から送受信要求を取得し、送受信データをLINドライバ609やCANドライバ610に引き渡す。
LIN message buffer 604 / CAN message buffer 605: It manages data buffering. It consists of a FIFO (first-in first-out) ring buffer and stores message transmission / reception requests to the LIN or CAN. It is composed of independent buffers for LIN and CAN.
Message scheduler 607: It manages timing control and provides a timing function for inquiring each message buffer 604, 605. Also, a transmission / reception request is acquired from the LIN message buffer 604 or the CAN message buffer 605, and the transmission / reception data is transferred to the LIN driver 609 and the CAN driver 610.

・ゲートウェイAPI(Application Programming Interface)602:各ノードからのデータ・フォワーディングのほか、ゲートウェイ自身の送受信機能を備える。基本APIは、例えば、CANネットワークへの送信要求、CANネットワークへの受信要求(以上、マスター/スレーブ共通)、LINマスターノードへの受信要求(ヘッダ受信+レスポンス送信:スレーブノードとして機能時)、LINスレーブノードへの送信要求(ヘッダ送信のみ)、LINスレーブノードからの受信要求(ヘッダ送信+レスポンス受信)、LINスリープ・コマンド送信、LINウェイクアップ送信(以上、マスターノードとして機能時)などからなる。
・ユーザ・アプリケーション601:後述のごとく、シーンに応じたマスター/スレーブの切替指令ならびに各スレーブノードでの上位制御指令とを司る。
Gateway API (Application Programming Interface) 602: In addition to data forwarding from each node, the gateway itself has a transmission / reception function. The basic API is, for example, a transmission request to the CAN network, a reception request to the CAN network (above master / slave common), a reception request to the LIN master node (header reception + response transmission: when functioning as a slave node), LIN It consists of a transmission request to the slave node (only header transmission), a reception request from the LIN slave node (header transmission + response reception), LIN sleep command transmission, LIN wakeup transmission (when functioning as a master node).
User application 601: As will be described later, it administers a master / slave switching command corresponding to a scene and a higher-level control command at each slave node.

図1のシステム構成においては、LINクラスタ50が接続されるゲートウェイノードはボデー系ECU6(A)と走行系ECU6(B)であり、これらゲートウェイノードがそれぞれ属性切替可能型ノードとして、それぞれ異なるCANクラスタ100A,100B上に設けられている。LINクラスタ50を構成する単一のLIN通信バス5は、これら2つのゲートウェイノード6(A),6(B)に分配接続され、4つのスレーブノード4(A)〜4(D)が上記CANクラスタ100A,100Bに共有化されている。   In the system configuration of FIG. 1, the gateway nodes to which the LIN cluster 50 is connected are the body system ECU 6 (A) and the travel system ECU 6 (B), and these gateway nodes are respectively different CAN clusters as attribute-switchable nodes. It is provided on 100A and 100B. A single LIN communication bus 5 constituting the LIN cluster 50 is distributedly connected to these two gateway nodes 6 (A) and 6 (B), and four slave nodes 4 (A) to 4 (D) are connected to the CAN. It is shared by the clusters 100A and 100B.

4つのスレーブノード4(A)〜4(D)は、具体的には、シート位置調整機構を制御するシートECU4(A)、ハンドルの上下位置ないし前後位置を調整するチルト・テレスコ機構を制御するチルテレECU4(B)、アクセルやブレーキのペダル位置調整機構を制御するペダル調整ECU4(C)、シートベルト位置調整機構を制御するシートベルトECU4(D)からなる。   Specifically, the four slave nodes 4 (A) to 4 (D) control the seat ECU 4 (A) that controls the seat position adjusting mechanism and the tilt / telescopic mechanism that adjusts the vertical position or the front / rear position of the handle. It includes a tilt tele ECU 4 (B), a pedal adjustment ECU 4 (C) that controls a pedal position adjustment mechanism for an accelerator and a brake, and a seat belt ECU 4 (D) that controls a seat belt position adjustment mechanism.

ユーザの利便や快適が優先されるシーンでは、上記LINクラスタ50に、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置を、ユーザの運転しやすさや乗り込みやすさを考慮した適性位置に自動調整させる制御を行なう。一方、衝突安全が重視されるシーンでは、上記各位置を、車がぶつかりそうなときの衝撃吸収を考慮した適性位置に自動調整させる制御を行なう。前者においては、図4に示すようにボデー系ECU6(A)をマスターノード、走行系ECU6(B)をスレーブノードとする形で、後者においては図6に示すように、走行系ECU6(B)をマスターノード、ボデー系ECU6(A)をスレーブノードとする形で、ノード属性を切り替えつつ制御がなされる。以下、ノード属性設定状態を区別して表示する必要がある場合には、スレーブノードに設定されているゲートウェイードの符号には「’(ダッシュ)」を付与し、マスターノードに設定されているゲートウェイードの符号には「’(ダッシュ)」を付与しないことにより、両者を区別して表示するものとする。   In a scene where user convenience and comfort are prioritized, the LIN cluster 50 automatically adjusts the seat position, the handle position, the pedal position, or the seat belt position to an appropriate position in consideration of the user's ease of driving and boarding. Take control. On the other hand, in a scene where collision safety is important, control is performed to automatically adjust each position to an appropriate position in consideration of shock absorption when a car is likely to hit. In the former, the body ECU 6 (A) is a master node and the traveling ECU 6 (B) is a slave node as shown in FIG. 4, and in the latter, the traveling ECU 6 (B) is as shown in FIG. Is the master node, and the body ECU 6 (A) is the slave node, and control is performed while switching the node attributes. Hereinafter, when it is necessary to display the node attribute setting status separately, "'(dash)" is added to the gatewayed code set for the slave node, and the gatewayed set for the master node. By not attaching “'(dash)” to the reference numeral, they are displayed separately.

属性切替可能型ノードとして構成される各ゲートウェイノード6(A),6(B)は、図2に示すごとく、マスタードライバ622とスレーブドライバ623との双方を備えており(例えば、図1のスレーブノード4(A)〜4(D)にはスレーブドライバ623のみが設けられる)、マスターノードとして作動する際にはLINメッセージフレームのヘッダを送出し(ヘッダ送出手段)、レスポンスを受信する(レスポンス受信手段)。他方、スレーブノード4として作動する際にはヘッダを受信し(ヘッダ受信手段)、レスポンスを送出する(レスポンス送出手段)。   Each gateway node 6 (A), 6 (B) configured as an attribute switchable node includes both a master driver 622 and a slave driver 623 as shown in FIG. 2 (for example, the slave in FIG. 1). The nodes 4 (A) to 4 (D) are provided with only the slave driver 623. When operating as a master node, the header of the LIN message frame is sent (header sending means) and the response is received (response reception). means). On the other hand, when operating as the slave node 4, the header is received (header receiving means) and the response is sent (response sending means).

ゲートウェイノード6(A),6(B)の間でのノード属性切り替えパターン、すなわち、マスターノード権限の移転パターンには、次の2種類がある。
・委譲型移転パターン:現在マスターノードとなっているゲートウェイノード(図4では走行系ECU6(B))が現在スレーブノードとなっているゲートウェイノード(図4ではボデー系ECU6(A)’)に対し、自分からマスターノード権限の委譲を申し出る。
・要求型移転パターン:現在スレーブノードとなっているゲートウェイノード(図4ではボデー系ECU6(A)’)が、現在マスターノードとなっているゲートウェイノード(図4では走行系ECU6(B))にマスターノード権限の明け渡しを要求する。いずれの場合も、委譲ないし要求を行なう相手のノードの了解を得た後、実際のマスターノード権限の移転が行なわれる形となる。
There are the following two types of node attribute switching patterns between the gateway nodes 6 (A) and 6 (B), that is, master node authority transfer patterns.
Delegation-type transfer pattern: For the gateway node (the body system ECU 6 (A) ′ in FIG. 4) that the gateway node (the traveling system ECU 6 (B) in FIG. 4) is the current slave node. Apply for delegation of master node authority from yourself.
Request type transfer pattern: The gateway node (body ECU 6 (A) ′ in FIG. 4) that is currently a slave node is changed to the gateway node (travel ECU 6 (B) in FIG. 4) that is currently the master node. Request surrender of master node authority. In either case, the master node authority is actually transferred after obtaining the consent of the partner node to which the delegation or request is made.

LINプロトコルでは、マスターノードからのヘッダに対しスレーブノードがレスポンス返すメッセージフレーム構造が基本となる。従って上記ノード属性の切替処理に係るシーケンスも、スレーブノードからマスターノードへのレスポンス送信で終了しなければならない要請がある。   The LIN protocol is basically based on a message frame structure in which a slave node returns a response to a header from a master node. Therefore, there is a request that the sequence related to the node attribute switching process must be terminated by sending a response from the slave node to the master node.

本発明においては、図7に示すごとく、LINのメッセージ構造に、プロトコル上必須のフィールドを維持しつつ、マスター権限の移転シーケンスを実現するための新たなフィールドを組み込むことにより、同一ノードのマスター/スレーブ属性切り替えを実現している。ヘッダには次のようなフィールドが設けられる。いずれのフィールドもスタートビットとストップビットとを除いて、
・ブレークフィールド(Synch Break):LINメッセージフレームの開始の通知を目的として、マスタータスクが送信する領域である。
・同期フィールド(Synch Field):クロック精度を必要とするスレーブノードが、クロック補正を行なうための領域である。
・識別子フィールド(Ident Field):マスタータスクが、レスポンス送信を行なうスレーブタスクを指定するための領域である。
・委譲フィールド(Delegation_1 Field):マスターノードとなるゲートウェイノードがマスター権限委譲を行なうか否かを特定する。つまり、マスターノードがマスターの権限をスレーブノードに委任する領域である。
・委譲要求承認フィールド(Master Error Field):スレーブノードとなる属性切替可能型ノードがマスター権限委譲要求を承認するか否かを特定する。スレーブノードからのマスター権限委任要求に対するエラー応答内容を返す領域として構成される。
In the present invention, as shown in FIG. 7, by incorporating a new field for realizing a master authority transfer sequence in the LIN message structure while maintaining a field essential for the protocol, the master / master of the same node is incorporated. Slave attribute switching is realized. The following fields are provided in the header. All fields except for the start bit and stop bit,
Break field (Sync Break): An area transmitted by the master task for the purpose of notifying the start of the LIN message frame.
Synchronization field (Sync Field): An area for a slave node that requires clock accuracy to perform clock correction.
Identifier field (Ident Field): This is an area for the master task to specify a slave task that performs response transmission.
Delegation field (Delegation_1 Field): specifies whether or not the gateway node serving as a master node performs master authority delegation. That is, this is an area where the master node delegates the authority of the master to the slave node.
Delegation request approval field (Master Error Field): Specifies whether or not the attribute switchable node serving as the slave node approves the master authority transfer request. It is configured as an area that returns error response contents for master authority delegation requests from slave nodes.

また、レスポンスにおいては、次の2つのフィールドを必須フィールドとして組み込むことがプロトコル上の要請となっている。
・データフィールド(Data Field):ヘッダの識別子フィールドにより通信先として指定されるに伴ない、送信対象となるデータを組み込まれる。つまり、スレーブタスクが、マスタータスクに対してデータを通知するための領域である。
・エラーチェックフィールド(Check Sum):スレーブタスクのレスポンスの正常/異常を判定するための領域である。異常判定はチェックサムにより行なわれる。
・委譲承認フィールド(Slave Error Field):スレーブノードとなるゲートウェイノードが、ヘッダの委譲フィールドが示すマスター権限委譲を承認するか否かを特定する。マスターノードからのマスター権限委任に対するエラー応答内容を返す領域として構成される。
・委譲要求フィールド(Delegation_2 Field):マスターノードとなるゲートウェイノードに対しマスター権限委譲を要求するか否かを特定する。つまり、スレーブノードからマスターノードになるという要求を出す領域である。
Also, in the response, it is a protocol requirement to incorporate the following two fields as essential fields.
Data field (Data Field): The data to be transmitted is incorporated as it is designated as the communication destination by the identifier field of the header. That is, this is an area for the slave task to notify the master task of data.
Error check field (Check Sum): An area for determining whether the response of the slave task is normal or abnormal. Abnormality determination is performed by checksum.
Delegation approval field (Slave Error Field): Specifies whether or not the gateway node serving as the slave node approves the master authority transfer indicated by the delegation field of the header. It is configured as an area for returning error response contents for master authority delegation from the master node.
Delegation request field (Delegation_2 Field): specifies whether or not to request master authority delegation to the gateway node as the master node. That is, it is an area for issuing a request to become a master node from a slave node.

すなわち、図7の上に示す従来のLINメッセージフレーム構造に対し、本実施形態においては、委譲フィールド(Delegation_1 Field)と委譲要求承認フィールド(Master Error Field)とがヘッダに、委譲承認フィールド(Slave Error Field)と委譲要求フィールド(Delegation_2 Field)とがレスポンスにそれぞれ追加された特有のメッセージフレーム構造が採用され、これによって委譲型移転パターンと要求型移転パターンとのいずれにも対応可能となっている。   That is, in contrast to the conventional LIN message frame structure shown in FIG. 7, in this embodiment, a delegation field (Delegation_1 Field) and a delegation request approval field (Master Error Field) are included in the header, and a delegation approval field (Slave Error). A unique message frame structure in which a field) and a delegation request field (Delegation_2 Field) are respectively added to the response is adopted, and thereby, both a delegation type transfer pattern and a request type transfer pattern can be supported.

ブレークフィールド、同期フィールド、識別子フィールド、データフィールド及びエラーチェックフィールドの構造については周知であるので、詳細な説明は略する。他方、本発明に特有の新たな4つのフィールドの構成例を図8〜図11に示す。いずれのフィールドも、先頭にスタートビット、末尾にストップビットが付与される点については、上記周知のフィールドと同様である。   Since the structures of the break field, the synchronization field, the identifier field, the data field, and the error check field are well known, detailed description thereof will be omitted. On the other hand, examples of the configuration of four new fields unique to the present invention are shown in FIGS. In any field, a start bit is given at the beginning and a stop bit is given at the end, as in the known field.

図8は、委譲フィールド(Delegation_1 Field)の構成例を示すもので、委譲元ノード(マスター)のIDと委譲先ノード(スレーブ)のIDとを特定するそれぞれ所定数ビット(この実施形態では各4ビット)のコード領域が形成されている。   FIG. 8 shows a configuration example of the delegation field (Delegation_1 Field), and each of a predetermined number of bits (4 in this embodiment) that specifies the ID of the delegation source node (master) and the delegation destination node (slave). Bit) code area is formed.

図9は、委譲要求承認フィールド(Master Error Field)の構成例を示すもので、スレーブノードからのマスター権限委任要求に対するエラー応答内容として、エラー種別を特定する所定数ビット(この実施形態では8ビット)のコード領域が形成されている。該領域に記述されるエラー種別特定コードは、「マスター権限委譲要求」の承認及び非承認が互いに識別可能に記述される(例えば、特定ビット(例えば先頭ビット(ID0))が「1」のとき「承認」、「0」のとき非承認とするなど。このとき、残余ビットは、エラー詳細内容などの記述等に自由に使用可能である)。   FIG. 9 shows an example of the configuration of a delegation request approval field (Master Error Field). As an error response content to a master authority delegation request from a slave node, a predetermined number of bits that specify an error type (8 bits in this embodiment). ) Code region is formed. The error type identification code described in the area is described so that the approval and non-approval of the “master authority delegation request” can be distinguished from each other (for example, when the specific bit (for example, the first bit (ID0)) is “1”. (“Approve”, “0” means non-approval, etc. At this time, the remaining bits can be freely used for description of error details, etc.).

図10は、委譲承認フィールド(Slave Error Field)の構成例を示すもので、マスターノードからのマスター権限委譲申出に対するエラー応答内容として、エラー種別を特定する所定数ビット(この実施形態では8ビット)のコード領域が形成されている。該領域に記述されるエラー種別特定コードは、「マスター権限委譲申出」の承認及び非承認が互いに識別可能に記述される(例えば、特定ビット(例えば先頭ビット(ID0))が「1」のとき「承認」、「0」のとき非承認とするなど。このとき、残余ビットは、エラー詳細内容などの記述等に自由に使用可能である)。   FIG. 10 shows an example of the configuration of a delegation approval field (Slave Error Field), and a predetermined number of bits (8 bits in this embodiment) that specify an error type as an error response content to the master authority delegation offer from the master node. The code region is formed. The error type identification code described in the area is described so that the approval and non-approval of “master authority transfer offer” can be distinguished from each other (for example, when the specific bit (for example, the first bit (ID0)) is “1”. (“Approve”, “0” means non-approval, etc. At this time, the remaining bits can be freely used for description of error details, etc.).

図11は、委譲要求フィールド(Delegation_2 Field)の構成例を示すもので、委譲元ノード(マスター)のIDと委譲先ノード(スレーブ)のIDとを特定するそれぞれ所定数ビット(この実施形態では各4ビット)のコード領域が形成されている。   FIG. 11 shows an example of the configuration of the delegation request field (Delegation_2 Field), and each of a predetermined number of bits (in this embodiment, each identifying the delegation source node (master) ID and delegation destination node (slave) ID). (4 bits) code area is formed.

以下、図1の車載通信ネットワークシステム1の具体的な作動形態について説明する。図6を参照して説明すれば、ボデー系ECU6(A)がマスターノードとして設定されている場合、該マスターノード6(A)は、LINクラスタ50内の複数のスレーブノード4(A)〜4(D)及び6(B)’に対し、ポーリング方式により指定された順序にてヘッダ/レスポンスによるメッセージのやり取りを順次行なう。具体的には、ゲートウェイノード(属性切替可能型ノード)を含む複数のLINノード6(A),6(B),4(A)〜4(D)に、ポーリングサイクルを規定するための通信順位を一義的に付与しておく(例えば、6(A)→6(B)→4(A)→4(B)→4(C)→4(D)(→6(A)):これを、以下ベースサイクルという)。そして、各ゲートウェイノード6(A),6(B)は、自分がマスターノードに設定されている場合は(例えば、6(A)とする)、上記ベースサイクルから自分自身を除いたものをポーリングサイクル(6(B)→4(A)→4(B)→4(C)→4(D)(→6(B))として、LIN通信バス5上へのヘッダの送信を、対応するスレーブノードからのレスポンスの受信と交替しつつ、通信先となるスレーブノードを該ポーリングサイクルに従い順次変更しつつ繰り返し行なう。   Hereinafter, a specific operation mode of the in-vehicle communication network system 1 of FIG. 1 will be described. Referring to FIG. 6, when the body system ECU 6 (A) is set as a master node, the master node 6 (A) includes a plurality of slave nodes 4 (A) to 4 in the LIN cluster 50. For (D) and 6 (B) ′, messages are exchanged sequentially by header / response in the order specified by the polling method. Specifically, a communication order for defining a polling cycle for a plurality of LIN nodes 6 (A), 6 (B), 4 (A) to 4 (D) including a gateway node (attribute switchable type node). (For example, 6 (A) → 6 (B) → 4 (A) → 4 (B) → 4 (C) → 4 (D) (→ 6 (A)): , Hereinafter referred to as the base cycle). When each gateway node 6 (A), 6 (B) is set as a master node (for example, 6 (A)), the gateway node 6 (A), 6 (B) polls what is excluded from the base cycle. As a cycle (6 (B) → 4 (A) → 4 (B) → 4 (C) → 4 (D) (→ 6 (B)), the transmission of the header on the LIN communication bus 5 While repeating the reception of the response from the node, the slave node as the communication destination is repeatedly changed in accordance with the polling cycle.

LINクラスタ50において、ゲートウェイノード6(A),6(B)以外のLINノード4(A)〜4(D)は、前述のごとく、ゲートウェイノード6(A),6(B)に共有化されている形となっているが、この場合、2つのゲートウェイノード6(A),6(B)のうち、LINノード4(A)〜4(D)に対して通常時にマスターノードとなる主ゲートウェイノード6(A)と、予め定められたマスター権限移転条件が成立した場合にのみマスターノードとなる副ゲートウェイノード6(B)とを定めておくことができる。そして、マスター権限移転条件が成立したか否かを副ゲートウェイノード6(B)側で判定し、成立した場合は、副ゲートウェイノード6(B)から主ゲートウェイノード6(A)にマスター権限委譲要求を行なう要求型移転パターンにより、マスター権限を副ゲートウェイノード6(B)に移転させ、その後、マスター権限移転条件の成立状態が解消された場合は、副ゲートウェイノード6(B)から主ゲートウェイノード6(A)にマスター権限委譲申出を行なう委譲型移転パターンにより、副ゲートウェイノード6(B)から主ゲートウェイノード6(A)にマスター権限を返還するように構成すると、より円滑な制御が可能となる。   In the LIN cluster 50, the LIN nodes 4 (A) to 4 (D) other than the gateway nodes 6 (A) and 6 (B) are shared by the gateway nodes 6 (A) and 6 (B) as described above. In this case, in this case, of the two gateway nodes 6 (A) and 6 (B), the main gateway that normally serves as the master node for the LIN nodes 4 (A) to 4 (D) The node 6 (A) and the sub-gateway node 6 (B) that becomes a master node only when a predetermined master authority transfer condition is established can be determined. Then, it is determined on the side of the secondary gateway node 6 (B) whether or not the master authority transfer condition is satisfied. If it is satisfied, a request for delegating the master authority from the secondary gateway node 6 (B) to the main gateway node 6 (A). When the master authority is transferred to the secondary gateway node 6 (B) by the request type transfer pattern for performing the master authority transfer condition and then the established state of the master authority transfer condition is canceled, the secondary gateway node 6 (B) to the primary gateway node 6 If the master authority is returned from the secondary gateway node 6 (B) to the primary gateway node 6 (A) by the delegation-type transfer pattern in which the master authority delegation application is performed in (A), smoother control becomes possible. .

例えば、図4に示す例では、4つのスレーブノード4(A)〜4(D)が、シート位置調整機構、ハンドルの上下位置ないし前後位置を調整するチルト・テレスコ機構、アクセルやブレーキのペダル位置調整機構及びシートベルト位置調整機構の各制御ECUを構成している。これら機構は、いずれもユーザの運転しやすさや乗り込みやすさを考慮して、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置を適性位置に調整させるのが通常時に求められる機能である(つまり、ユーザの利便や快適が優先されるシーンに該当する)。従って、ボデー系ECU6(A)が主ゲートウェイノードとして定められ、通常時は上記4つのスレーブノード4(A)〜4(D)に対するマスターノードとなって各機構の上位制御を司る。ボデー系ECU6(A)は、図1のCANクラスタ100(A)を構成する他のCANノード2(A)‥から、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置に係る適正値を取得するか、あるいは、ユーザの身体サイズを計測するセンサ群の出力情報(これも、CANクラスタ100(A)から取得する)に基づき、上記各位置の適正地を自律的に作成して、LIN通信によりスレーブノード4(A)〜4(D)に送信する。   For example, in the example shown in FIG. 4, four slave nodes 4 (A) to 4 (D) are provided with a seat position adjusting mechanism, a tilt / telescopic mechanism for adjusting the vertical position or front / rear position of the steering wheel, and the accelerator / brake pedal position. Each control ECU of the adjustment mechanism and the seat belt position adjustment mechanism is configured. These mechanisms are functions that are normally required to adjust the seat position, handle position, pedal position, or seat belt position to an appropriate position in consideration of ease of driving and boarding by the user (that is, This corresponds to a scene where user convenience and comfort are prioritized). Therefore, the body system ECU 6 (A) is determined as the main gateway node, and normally serves as a master node for the four slave nodes 4 (A) to 4 (D), and supervises the upper control of each mechanism. The body system ECU 6 (A) acquires appropriate values related to the seat position, the handle position, the pedal position, or the seat belt position from the other CAN nodes 2 (A)... Constituting the CAN cluster 100 (A) of FIG. Alternatively, based on output information of a sensor group that measures the user's body size (also acquired from the CAN cluster 100 (A)), appropriate locations at the respective positions are autonomously created, and LIN communication is performed. Transmit to slave nodes 4 (A) to 4 (D).

一方、通常時にスレーブノードとなっている走行系ECU6(B)は副ゲートウェイノードとして定められ、CANクラスタ100(B)を構成する他のCANノード2(B)‥から、衝突情報(例えば、衝突検出用加速度センサの出力値)を取得して、衝突の有無を判定する。そして、衝突ありと判定した場合は、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置を、車がぶつかりそうなときの衝撃吸収を考慮した適性位置に調整させるための制御を、スレーブノード4(A)〜4(D)を介して緊急対応的に実施する。この場合、走行系ECU6(B)は、マスター権限を走行系ECU6(B)から一時的に譲り受けることで、スレーブノード4(A)〜4(D)に対するマスターノードとして機能することが可能となる。   On the other hand, the traveling ECU 6 (B), which is normally a slave node, is determined as a sub-gateway node and receives collision information (for example, a collision) from other CAN nodes 2 (B) constituting the CAN cluster 100 (B). The output value of the acceleration sensor for detection) is acquired to determine the presence or absence of a collision. If it is determined that there is a collision, control for adjusting the seat position, the handle position, the pedal position, or the seat belt position to an appropriate position in consideration of shock absorption when the car is likely to hit is performed by the slave node 4 ( Implement in an emergency response via A) to 4 (D). In this case, the traveling system ECU 6 (B) can function as a master node for the slave nodes 4 (A) to 4 (D) by temporarily taking over the master authority from the traveling system ECU 6 (B). .

図12は、この場合のポーリングシーケンスを示すものであり、走行系ECU6(B)が委譲先ノード、ボデー系ECU6(A)が委譲元ノードとなる。まず、走行系ECU6(B)は、ボデー系ECU6(A)からの先行するヘッダHPへ応答する形で、自身をマスター権限委譲先とする要求を委譲要求フィールド(Delegation_2 Field:図11)に記述したレスポンスを委譲先指定レスポンスRBとして送出する。委譲元ノードであるボデー系ECU6(A)は、該委譲先指定レスポンスRBを受信してマスター権限の委譲を承認するか否かを判断する(衝突対応の場合は緊急性を有するので、走行系ECU6(B)からのマスター権限委譲要求は最優先させる形で受諾するように構成しておくことが望ましい)。   FIG. 12 shows a polling sequence in this case, where the traveling system ECU 6 (B) is the delegation destination node and the body system ECU 6 (A) is the delegation source node. First, the traveling system ECU 6 (B) describes a request to make itself a master authority delegation destination in the delegation request field (Delegation_2 Field: FIG. 11) in response to the preceding header HP from the body system ECU 6 (A). Is sent as a delegation destination designation response RB. The body ECU 6 (A), which is the delegation source node, receives the delegation destination designation response RB and determines whether or not to approve the delegation of the master authority (because it has urgency in the case of collision, the traveling system It is desirable that the master authority delegation request from the ECU 6 (B) is accepted in the form of the highest priority).

ボデー系ECU6(A)(委譲元ノード)が該委譲を承認する場合は、現在のマスターノードであるボデー系ECU6(A)がポーリングサイクルを、走行系ECU6(B)(委譲先ノード)からの委譲先指定レスポンスRBを受けた段階で一旦打ち切る。そして、該委譲先指定レスポンスRBに続くヘッダにおいて、委譲要求承認フィールド(Master Error Field:図9)にマスター権限委譲要求を承認する内容(すなわち、エラー種別特定コードの内容=「正常」)を記述し、かつ、委譲フィールド(Delegation_1 Field:図8)に、走行系ECU6(B)をマスター権限委譲先として(また、ボデー系ECU6(A)をマスター権限委譲元として)指定する内容を記述し、これを委譲先指定ヘッダHAとして送出する。委譲先ノードである走行系ECU6(B)は、該委譲先指定ヘッダHAを受信してマスター権限の委譲を承認するか否かを判断し、承認する場合は該委譲先指定ヘッダHAに続くレスポンスに、委譲承認フィールド(Slave Error Field:図10)にマスター権限委譲を承認する内容(エラー種別特定コードの内容=「正常」)を記述して、これを委譲承認レスポンスRAとして送信するとともに自ノードをマスターノードに切り替え設定する。そして、自ノードの次に通信順位が定められたスレーブノード(図12ではシートECU2(A))からポーリングサイクルを引き継ぐ形でヘッダの送信を新たに開始する。他方、委譲元ノードであるボデー系ECU6(A)は、該委譲承認レスポンスRAを受信して自ノードをスレーブノードに切り替え設定する。   When the body system ECU 6 (A) (delegation source node) approves the delegation, the body system ECU 6 (A), which is the current master node, performs a polling cycle from the traveling system ECU 6 (B) (delegation destination node). Once the delegation destination designation response RB is received, it is terminated once. Then, in the header following the delegation destination designation response RB, the contents for approving the master authority delegation request (that is, the content of the error type identification code = “normal”) are described in the delegation request approval field (Master Error Field: FIG. 9). In addition, in the delegation field (Delegation_1 Field: FIG. 8), the contents specifying the traveling system ECU 6 (B) as the master authority delegation destination (and the body system ECU 6 (A) as the master authority delegation source) are described. This is sent out as a delegation destination designation header HA. The traveling system ECU 6 (B), which is the delegation destination node, receives the delegation destination designation header HA, determines whether or not to approve delegation of master authority, and if so, a response following the delegation destination designation header HA In the delegation approval field (Slave Error Field: FIG. 10), the contents for approving the master authority delegation (contents of error type identification code = “normal”) are described and transmitted as a delegation approval response RA and the own node Switch to the master node. Then, the header transmission is newly started in the form of taking over the polling cycle from the slave node (the seat ECU 2 (A) in FIG. 12) whose communication order is determined next to the own node. On the other hand, the body ECU 6 (A), which is the delegation source node, receives the delegation approval response RA and switches and sets its own node to the slave node.

なお、ボデー系ECU6(A)(委譲元ノード)が委譲先指定レスポンスRBを受信した後、マスター権限の委譲要求を拒否する場合は、図13に示すように、委譲先指定レスポンスRBに続くヘッダを、委譲要求承認フィールドにマスター権限委譲要求を拒否する内容(エラー種別特定コードの内容=「異常」)を記述した委譲要求拒否ヘッダHA’として送信する。そして、自ノードをマスターノードに設定維持し、走行系ECU6(B)(要求としては「委譲先ノード」であるが、実際には権限委譲はなされない)の次順位のスレーブノード(図13ではシートECU2(A))を指定するヘッダを送出する形でポーリングサイクルを継続する。結局、ポーリングサイクルは、通信順位の飛びや重複を生ずることなく継続されていることがわかる。   When the body ECU 6 (A) (delegation source node) receives the delegation destination designation response RB and rejects the master authority delegation request, the header following the delegation destination designation response RB as shown in FIG. Is transmitted as a delegation request rejection header HA ′ in which the content for rejecting the master authority delegation request (the content of the error type identification code = “abnormal”) is described in the delegation request approval field. Then, the own node is set and maintained as the master node, and the slave node (in FIG. 13) of the next rank of the traveling system ECU 6 (B) (which is a “delegation destination node” as a request but is not actually delegated authority) The polling cycle is continued by sending out a header designating the seat ECU 2 (A). Eventually, it can be seen that the polling cycle is continued without causing a jump or duplication of communication order.

この状態で、衝突検出状態が解消され、シート位置、ハンドル位置、ペダル位置及びシートベルト位置の衝突対応制御が不要となった場合は、スレーブノード4(A)〜4(D)に係る上位制御主体、すなわちマスターノードを、通常通り主ゲートウェイノードであるボデー系ECU6(A)に速やかに復帰させる必要がある。衝突検出は引き続き走行系ECU6(B)が行なうので、衝突検出状態が解消された場合は、走行系ECU6(B)が委譲元ノード、ボデー系ECU6(A)が委譲先ノードとなる形で、委譲型移転パターンでによりマスター権限がボデー系ECU6(A)に移転・返還される。   In this state, when the collision detection state is canceled and the collision corresponding control of the seat position, the handle position, the pedal position, and the seat belt position is not necessary, the host control related to the slave nodes 4 (A) to 4 (D). It is necessary to promptly return the main body, that is, the master node to the body system ECU 6 (A) that is the main gateway node as usual. Since the traveling system ECU 6 (B) continues to detect the collision, when the collision detection state is resolved, the traveling system ECU 6 (B) becomes the delegation source node and the body system ECU 6 (A) becomes the delegation destination node. The master authority is transferred / returned to the body system ECU 6 (A) by the delegation-type transfer pattern.

図12は、この場合のポーリングシーケンスを示すものである。委譲元ノードである走行系ECU6(B)は、ポーリングサイクルにおいて委譲先ノードであるボデー系ECU6(A)の通信順位が到来するに伴ない、委譲フィールド(Delegation_1 Field:図8))に、ボデー系ECU6(A)をマスター権限委譲先として(また走行系ECU6(B)をマスター権限委譲元として)指定する内容を記述し、これを委譲先指定ヘッダHAとして送出する。ボデー系ECU6(A)は該委譲先指定ヘッダHAを受信してマスター権限の委譲を承認するか否かを判断し、承認する場合は該委譲先指定ヘッダHAに続くレスポンスにおいて、委譲承認フィールド(Slave Error Field:図10)にマスター権限委譲を承認する内容(エラー種別特定コードの内容=「正常」)を記述し、これを委譲承認レスポンスRAとして送信するとともに自ノードをマスターノードに切り替え設定する。また、走行系ECU6(B)は委譲承認レスポンスRAを受信して自ノードをスレーブノードに切り替え設定する。切り替え後のマスターノードであるボデー系ECU6(A)は、自ノードの次に通信順位が定められたスレーブノード(図14では、走行系ECU6(B))からポーリングサイクルを更新する形でヘッダの送信を開始する。   FIG. 12 shows a polling sequence in this case. The traveling system ECU 6 (B), which is the delegation source node, enters the body in the delegation field (Delegation_1 Field: FIG. 8) as the communication order of the body system ECU 6 (A), which is the delegation destination node, arrives in the polling cycle. The contents specifying the system ECU 6 (A) as the master authority delegation destination (and the traveling system ECU 6 (B) as the master authority delegation source) are described, and this is transmitted as the delegation destination designation header HA. The body system ECU 6 (A) receives the delegation destination designation header HA and determines whether or not to approve the delegation of the master authority, and if so, in the response following the delegation destination designation header HA, the delegation approval field ( In Slave Error Field: FIG. 10), the content for authorizing master authority delegation (error type identification code content = “normal”) is described, and this is transmitted as delegation approval response RA, and the own node is switched to the master node and set. . The traveling ECU 6 (B) receives the delegation approval response RA and switches the own node to the slave node. The body-system ECU 6 (A), which is the master node after switching, updates the polling cycle by updating the polling cycle from the slave node (the traveling system ECU 6 (B) in FIG. 14) whose communication order is determined next to its own node. Start sending.

他方、マスターノードの切替が行なわれない場合、すなわち、ボデー系ECU6(A)が委譲先指定ヘッダHAを受信した後、マスター権限の委譲を承認しない場合は、図15に示すように、該ボデー系ECU6(A)は、委譲先指定ヘッダHAに続くレスポンスにおいて、委譲承認フィールド(Slave Error Field:図10)にマスター権限委譲を承認しない内容(エラー種別特定コードの内容=「異常」)を記述し、委譲非承認レスポンスRA’として送信するとともに自ノードをスレーブノードに設定維持する。他方、走行系ECU6(B)は委譲非承認レスポンスRA’を受信して自ノードをマスターノードに設定維持しつつ、委譲先ノードの次順位のスレーブノード(図15ではシートECU2(A))を指定するヘッダを送出する。   On the other hand, when the master node is not switched, that is, when the body ECU 6 (A) does not approve the delegation of the master authority after receiving the delegation destination designation header HA, as shown in FIG. In the response following the delegation destination designation header HA, the system ECU 6 (A) describes the content not approving the master authority delegation (content of the error type identification code = “abnormal”) in the delegation approval field (Slave Error Field: FIG. 10). Then, it is transmitted as a delegation non-approval response RA ′ and the own node is set and maintained as a slave node. On the other hand, the traveling system ECU 6 (B) receives the delegation non-approval response RA ′ and maintains its own node as a master node while maintaining the slave node (seat ECU 2 (A) in FIG. 15) next to the delegation destination node. Send the specified header.

なお、上記実施形態では、LINのメッセージフレームを、図7に示すように、委譲型移転パターンと要求型移転パターンとの双方に対応可能とするため、ヘッダには委譲フィールド(Delegation_1 Field)と委譲要求承認フィールド(Master Error Field)との双方を、レスポンスには、委譲承認フィールド(Slave Error Field)と委譲要求フィールド(Delegation_2 Field)との双方を設けている。マスター権限の移転を行なうか否かは、委譲型移転パターンにおいてはヘッダに含まれる委譲フィールドの記述内容と、レスポンスに含まれる委譲承認フィールドの記述内容とを特定できれば十分であり、要求型移転パターンにおいてはレスポンスに含まれる委譲要求フィールドの記述内容と、ヘッダに含まれる委譲要求承認フィールドの記述内容とを特定できれば十分である(これらのフィールドを、以下、「有効フィールド」と称する)。従って、委譲型移転パターンにおいては委譲要求承認フィールドと委譲要求フィールドとが、要求型移転パターンにおいては委譲フィールドと委譲承認フィールドとが、それぞれ一見不要に見える(これらのフィールドを、以下、「冗長フィールド」と称する)。しかし、委譲型移転パターンと要求型移転パターンとのいずれを実施中であるかを判断して、個々の移転パターンでの冗長フィールドをその都度削除したりすると、ヘッダないしレスポンス中の追加フィールドが何を目的とした追加フィールドであるかを特定するのに、移転パターン種別の判別を含めた煩雑な内部処理が必要となる。従って、どちらの移転パターンが実施中であっても、ヘッダないしレスポンス内のフィールド構成は常に一定とされ、個々の移転パターンで冗長フィールドとなる追加フィールドも特に削除等は行なわれないようになっている。   In the above embodiment, as shown in FIG. 7, the LIN message frame can correspond to both the delegation-type transfer pattern and the request-type transfer pattern, so that a delegation field (Delegation_1 Field) and a delegation are included in the header. Both a request approval field (Master Error Field) and a response include both a delegation approval field (Slave Error Field) and a delegation request field (Delegation_2 Field). Whether or not to transfer the master authority is sufficient if it is possible to specify the description contents of the delegation field included in the header and the description contents of the delegation approval field included in the response in the delegation-type transfer pattern. It is sufficient that the description contents of the delegation request field included in the response and the description contents of the delegation request approval field included in the header can be specified (these fields are hereinafter referred to as “valid fields”). Therefore, the delegation request approval field and the delegation request field in the delegation-type transfer pattern, and the delegation field and the delegation approval field in the request-type transfer pattern, respectively, seem to be unnecessary at first glance. "). However, if it is determined whether a delegation-type transfer pattern or a request-type transfer pattern is being implemented, and redundant fields in each transfer pattern are deleted each time, what are the additional fields in the header or response? In order to identify whether the field is an additional field, complicated internal processing including determination of the transfer pattern type is required. Therefore, regardless of which transfer pattern is being implemented, the field configuration in the header or response is always constant, and additional fields that are redundant fields in each transfer pattern are not specifically deleted. Yes.

上記実施形態の車載通信ネットワークシステム1の構成によると、LINクラスタ50において、複数のLINノード(ゲートウェイノード)6(A),6(B)がマスターノードとスレーブノードとの切り替えが可能な属性切替可能型ノードとして構成され、それら属性切替可能型ノードのいずれか1つがLINクラスタ50のマスターノードに、残余のものが該LINクラスタ50のスレーブノードに、シーンに応じて随時切り替え設定される(マスター/スレーブ設定切替手段)。それら属性切替可能型ノード6(A),6(B)間では、マスターノードの権限が随時受け渡し可能になるので、ある瞬間にマスターノードであるLINノード4は常に1つに維持でき、LINのプロトコルに反しない。従って、マスターノードとなりえるLINノード6(A),6(B)が同一スレーブノード群に対して複数設けられているにもかかわらず、LIN通信バス5は単一であり、物理層の無駄な冗長化を防止できる。また、属性切替可能型ノード(A),6(B)間でどちらがマスターノードになるかの調停も、そのLIN通信バス5を介して行なえばよいので、両ノード(A),6(B)間に図21のような新たな通信線107を設ける必要もない。   According to the configuration of the in-vehicle communication network system 1 of the above embodiment, in the LIN cluster 50, the attribute switching that enables switching of a plurality of LIN nodes (gateway nodes) 6 (A) and 6 (B) between a master node and a slave node. This is configured as a possible type node, and any one of the attribute switchable type nodes is set as a master node of the LIN cluster 50, and the remaining one is set as a slave node of the LIN cluster 50 according to the scene (master). / Slave setting switching means). Since the authority of the master node can be transferred at any time between these attribute switchable type nodes 6 (A) and 6 (B), the LIN node 4 that is the master node can always be maintained at one at a certain moment. Not against the protocol. Therefore, even though a plurality of LIN nodes 6 (A) and 6 (B) that can serve as master nodes are provided for the same slave node group, the LIN communication bus 5 is single, and the physical layer is wasted. Redundancy can be prevented. Further, arbitration as to which of the attribute-switchable nodes (A) and 6 (B) becomes the master node may be performed via the LIN communication bus 5, so both nodes (A) and 6 (B). There is no need to provide a new communication line 107 as shown in FIG.

そして、属性切替可能型ノード(ゲートウェイノード)6(A),6(B)は、マスターノードとスレーブノードとのいずれに設定されている場合でも、同じLIN通信バス5によりLINクラスタ50内の通信を行なう。従って、図2に示すように、各LINノード(図2では、6(A),6(B),4(A)のみを図示)は、LIN通信バス5に対応してLINトランシーバを1つのみ有したものとして構成できる。これにより、LIN物理層の無駄な冗長化を防止する効果が一層高められている。   The attribute-switchable nodes (gateway nodes) 6 (A) and 6 (B) communicate with each other in the LIN cluster 50 via the same LIN communication bus 5 regardless of whether the node is set as a master node or a slave node. To do. Therefore, as shown in FIG. 2, each LIN node (only 6 (A), 6 (B), 4 (A) is shown in FIG. 2) has one LIN transceiver corresponding to the LIN communication bus 5. It can be configured as having only. Thereby, the effect of preventing unnecessary redundancy of the LIN physical layer is further enhanced.

次に、LINクラスタ50を構成する1つのLIN通信バス5を、CANノードをなす複数のゲートウェイノード6(A),6(B)に分配接続し、各ゲートウェイノード6(A),6(B)を属性切替可能型ノードとしてマスター/スレーブの切替を可能に構成しているので、現在マスターノードになっている属性切替可能型ノード(例えばボデー系ECU6(A))が仮にダウンしても、他の生きている属性切替可能型ノード(例えば走行系ECU6(B))をマスターノードに切り替えることができる。これにより、当該LINクラスタ50のフェールセーフ機能は格段に向上し、信頼性を飛躍的に高めることができる。また、マスターノードとなりうるゲートウェイノード(属性切替可能型ノード)6(A),6(B)はいずれもCANノードでもあるから、LINクラスタ50内の同期精度の確保も容易である。   Next, one LIN communication bus 5 constituting the LIN cluster 50 is distributedly connected to a plurality of gateway nodes 6 (A) and 6 (B) forming CAN nodes, and the gateway nodes 6 (A) and 6 (B ) As an attribute switchable type node so that master / slave switching is possible. Therefore, even if the attribute switchable type node (for example, body system ECU 6 (A)) that is the current master node goes down, Another living attribute switchable node (for example, traveling system ECU 6 (B)) can be switched to the master node. Thereby, the fail-safe function of the LIN cluster 50 is remarkably improved, and the reliability can be dramatically increased. Further, since the gateway nodes (attribute switchable nodes) 6 (A) and 6 (B) that can be master nodes are both CAN nodes, it is easy to ensure synchronization accuracy in the LIN cluster 50.

この場合、ボデー系ECU6(A)をLINクラスタ50の正規マスターノードとして定め、走行系ECU6(B)を、その正規マスターノードの機能の少なくとも一部、例えばシート位置、ハンドル位置、ペダル位置あるいはシートベルト位置の、設定値(快適優先時)に自動調整する機能を引継ぎ可能な代替マスターノード候補として定めておけばよい。   In this case, the body system ECU 6 (A) is determined as a regular master node of the LIN cluster 50, and the travel system ECU 6 (B) is defined as at least a part of the functions of the regular master node, for example, the seat position, the handle position, the pedal position, or the seat. The function of automatically adjusting the belt position to the set value (when comfort is prioritized) may be determined as alternative master node candidates that can be taken over.

図4を用いて説明したごとく、属性切替可能型ノードをなすボデー系ECU6(A)と走行系ECU6(B)とは、それぞれ各ノードが監視中の通信状態に応じ、ユーザの利便や快適が優先されるシーン(つまり、通常時)と、安全性が優先されるシーン(つまり、衝突検出時)とを判別・検出し、各シーンふさわしいノード、すなわち前者においてはボデー系ECU6(A)を、後者においては走行系ECU6(B)を、それぞれマスターノードに随時切り替えるので、シーンに応じたきめ細かい制御が可能となっている。なお、ユーザの利便や快適が優先されるシーン(通信状態)ではボデー系ECU6(A)に、安全性が優先されるシーン(通信状態)では走行系ECU6(B)に、マスターノードに設定するための優先順位がそれぞれ高く設定され、各シーンに対応する該優先順位に基づいて、マスターノード及びスレーブノードの設定切替が行なわれていることも明らかである。   As described with reference to FIG. 4, the body system ECU 6 (A) and the traveling system ECU 6 (B), which are attribute-switchable nodes, have user convenience and comfort according to the communication state being monitored by each node. The priority scene (that is, normal time) and the safety priority scene (that is, when a collision is detected) are determined and detected, and each scene suitable node, that is, the body ECU 6 (A) in the former, In the latter, since the traveling system ECU 6 (B) is switched to the master node as needed, fine control according to the scene is possible. Note that the body node ECU 6 (A) is set as the master node in the scene (communication state) where user convenience and comfort are prioritized, and the driving system ECU 6 (B) is set as the master node in the scene (communication state) where safety is prioritized. It is also clear that the priority order is set high, and the master node and the slave node are switched based on the priority order corresponding to each scene.

また、図1に示すごとく、LIN通信バス5が分配接続される複数のゲートウェイノード6(A),6(B)は、互いに異なる制御系(つまり、ボデー系と走行系)をなす複数のCANクラスタ100(A)と100(B)とに振り分けて設けされている。制御目的の異なるCANクラスタ100(A),100(B)間で1つのLINクラスタ50を共有化することで、当該LINクラスタ50が担う車載機能(図1では、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置の自動調整機能)の適用対象シーンを、例えばボデー系が担う快適・利便性優先シーンだけでなく、走行系が担う安全優先シーンにも拡大でき、LINクラスタ50のさらなる有効活用が図られている。   Further, as shown in FIG. 1, a plurality of gateway nodes 6 (A) and 6 (B) to which the LIN communication bus 5 is distributed and connected are a plurality of CANs forming different control systems (that is, a body system and a traveling system). Clusters 100 (A) and 100 (B) are provided separately. By sharing one LIN cluster 50 between the CAN clusters 100 (A) and 100 (B) having different control purposes, the in-vehicle functions that the LIN cluster 50 plays (in FIG. 1, seat position, handle position, pedal position) Or, the seat belt position automatic adjustment function) can be applied to not only the comfort / convenience priority scenes of the body system, but also the safety priority scenes of the traveling system, and the LIN cluster 50 can be used more effectively. It is illustrated.

なお、図1の車載通信ネットワークシステム1は、次のように動作させることも可能である。具体的には、駐車時のキースイッチポジションに応じて、ゲートウェイノード(属性切替可能型ノード)6(A),6(B)の属性を切り替える態様である。車両には周知のスマートエントリー機能が実装されているものとする。車両が駐車状態であることは、車速センサの検出値が0で、シフトポジションセンサがパーキング(P)を検出していることで特定できる。図5に示すように、IG信号がOFF状態を示し、かつ、バッテリー電圧+Bを受電している状態では、ボデー系ECU6(A)がマスターノード設定され、走行系ECU6(B)は動作停止(つまり、電源OFF)される。この状態では、ボデー系ECU6(A)は、例えばキー(無線携帯機)の接近を検知して、キーIDを検出・照合し、ドアロック施開錠制御のための制御指令等を行なう。   Note that the in-vehicle communication network system 1 in FIG. 1 can be operated as follows. Specifically, this is a mode in which the attributes of the gateway nodes (attribute switchable nodes) 6 (A) and 6 (B) are switched according to the key switch position during parking. It is assumed that a well-known smart entry function is implemented in the vehicle. The fact that the vehicle is parked can be identified by the fact that the detection value of the vehicle speed sensor is 0 and the shift position sensor detects parking (P). As shown in FIG. 5, when the IG signal indicates the OFF state and the battery voltage + B is being received, the body system ECU 6 (A) is set as the master node, and the traveling system ECU 6 (B) stops operating ( That is, the power is turned off. In this state, the body system ECU 6 (A) detects, for example, the approach of a key (wireless portable device), detects and collates the key ID, and issues a control command for door lock locking / unlocking control.

次に、図6に示すように、IG信号がONとなり、かつ、車室内に乗員が検出されていない場合は、走行系ECU6(B)はノードとしての作動を開始するが、駐車状態であることをボデー系ECU6(A)が検知し、ボデー系ECU6(A)は走行系ECU6(B)にスレーブノード設定(つまり、マスター機能の停止)を要求する。そして、キーのIDから乗員を特定できた場合に、当該乗員が、運転しやすさや乗り込みやすさを考慮して予め設定登録した、シート位置、ハンドル位置、ペダル位置あるいはシートベルト位置を適性位置に自動調整する。   Next, as shown in FIG. 6, when the IG signal is ON and no occupant is detected in the passenger compartment, the traveling system ECU 6 (B) starts operating as a node, but is in a parking state. This is detected by the body system ECU 6 (A), and the body system ECU 6 (A) requests the traveling system ECU 6 (B) to set the slave node (that is, stop the master function). When the occupant can be identified from the key ID, the seat position, the handle position, the pedal position, or the seat belt position, which the occupant has set and registered in advance in consideration of ease of driving and boarding, is set to an appropriate position. Adjust automatically.

この状態で、車速が一定以上に増加して走行検出状態に移行した場合は、快適性を優先した各位置の調整はすでに終わっているので、走行系ECU6(B)にマスター権限の委譲を申し出ることで、走行系ECU6(B)を上記位置調整機構に係るLINクラスタ50のマスターノードに切り替える。走行系ECU6(B)は、ボデー系ECU6(A)が設定済みの各位置を基本位置として、衝突時(あるいは急加速、急減速等)等の衝撃吸収のために必要な各位置の制御を行なう。   In this state, when the vehicle speed increases to a certain level or more and shifts to the driving detection state, the adjustment of each position giving priority to comfort has already been completed, so the driving system ECU 6 (B) is requested to delegate master authority. Thus, the traveling system ECU 6 (B) is switched to the master node of the LIN cluster 50 related to the position adjustment mechanism. The traveling system ECU 6 (B) controls each position necessary for absorbing the impact at the time of a collision (or sudden acceleration, rapid deceleration, etc.) with each position set by the body ECU 6 (A) as a basic position. Do.

次に、図16は、他の制御系への本発明の適用例を示すものである。該例においては、ボデーECU6(A)とA/C(エアコン)ECU6(B)とが属性切替可能型ノード(それぞれ、図示しないCANクラスタ上に設けられたゲートウェイノードである)とされている。また、LINクラスタ50の残余のスレーブノード4(A)〜4(D)は、それぞれP/W(パワーウィンドウ)ECU104(A)〜104(D)(「D」「P」「RR」「RL」は、それぞれ「運転席」「助手席」「後部右席」「後部左席」を示す)である。   Next, FIG. 16 shows an application example of the present invention to another control system. In this example, the body ECU 6 (A) and the A / C (air conditioner) ECU 6 (B) are attribute-switchable type nodes (each is a gateway node provided on a CAN cluster not shown). Further, the remaining slave nodes 4 (A) to 4 (D) of the LIN cluster 50 are respectively connected to P / W (power window) ECUs 104 (A) to 104 (D) (“D”, “P”, “RR”, “RL”). "Represents" driver's seat "," passenger seat "," rear right seat ", and" rear left seat ").

上記の構成は、エアコンをより効率的に動作させるために、パワーウィンドウをエアコンと連係制御することを目的とする。図16の上に示すように、ボデー系ECU6(A)は、ドアロックやIG信号の状態あるいはシフトポジションセンサの検出状態などを参照することにより駐車状態かどうかを判断し、A/C ECU6(B)にその判断結果に係る情報を送信する。この時、ボデー系ECU6(A)はマスターノードに設定され、A/CECU6(B)はスレーブノードに設定される。   The above configuration is intended to control the power window in association with the air conditioner in order to operate the air conditioner more efficiently. As shown in the upper part of FIG. 16, the body system ECU 6 (A) determines whether the vehicle is in the parking state by referring to the door lock, the state of the IG signal, the detection state of the shift position sensor, and the like, and the A / C ECU 6 ( Information relating to the determination result is transmitted to B). At this time, the body system ECU 6 (A) is set as a master node, and the A / CECU 6 (B) is set as a slave node.

この状態でA/CECU6(B)によるエアコン制御が開始された場合、ボデー系ECU6(A)のシーン判断情報、例えば窓に設けられた凍結センサが凍結状態を検出した場合は、ボデー系ECU6(A)からA/CECU6(B)にマスター権限委譲申出がなされ、マスターノードをA/CECU6(B)に切り替える。図17は、この場合のノード属性切替えを含むポーリングシーケンスを示すものであるが、基本的な流れは図14と全く同じなので、詳細な説明は略する(図19は、A/CECU6(B)が該委譲申出を拒否する場合のポーリングシーケンスを示す:基本的な流れは図15と全く同じである)。A/CECU6(B)がマスターノードとなってパワーウィンドウを制御する場合は、パワーウィンドウスイッチがユーザにより手動操作された場合も、例えば凍結状態が解消されるまでは特定座席(例えば運転席以外の全ての座席)のパワーウィンドウ動作を禁止する態様を例示できる。一方、凍結状態が解消されてエアコン制御との連携が不要となった場合は、ボデー系ECU6(A)からA/CECU6(B)にマスター権限委譲要求がなされ、マスターノードをデー系ECU6(A)に復帰させる。図18は、この場合のノード属性切替えを含むポーリングシーケンスを示すものであるが、基本的な流れは図12と全く同じなので、詳細な説明は略する。   When the air conditioner control by the A / CECU 6 (B) is started in this state, when the scene determination information of the body system ECU 6 (A), for example, the freezing sensor provided in the window detects the frozen state, the body system ECU 6 ( A master authority transfer application is made from A) to A / CECU 6 (B), and the master node is switched to A / CECU 6 (B). FIG. 17 shows a polling sequence including node attribute switching in this case, but since the basic flow is exactly the same as FIG. 14, detailed description is omitted (FIG. 19 shows A / CECU 6 (B)). Shows the polling sequence when refusing the delegation offer: the basic flow is exactly the same as in FIG. 15). When the power window is controlled by the A / CECU 6 (B) as a master node, even if the power window switch is manually operated by the user, for example, a specific seat (for example, other than the driver's seat) until the frozen state is eliminated. A mode in which the power window operation of all seats) is prohibited can be exemplified. On the other hand, when the frozen state is eliminated and the cooperation with the air conditioner control becomes unnecessary, a request for delegating master authority is made from the body system ECU 6 (A) to the A / CECU 6 (B), and the master node is assigned to the day system ECU 6 (A ). FIG. 18 shows a polling sequence including node attribute switching in this case, but since the basic flow is exactly the same as FIG. 12, detailed description thereof is omitted.

なお、凍結時以外にも、例えば炎天下の駐車状態にてエアコンが作動したとき、パワーウィンドウを開方向に作動させ、車室内の熱気の車外放出促進を行なうような制御態様を例示できる。この場合は、車室内温度が閾値異常に上昇している場合、ボデー系ECU6(A)からA/CECU6(B)にマスターノードを切り替える。このとき、A/CECU6(B)は、パワーウィンドウスイッチがユーザにより手動操作されずとも、特定座席(例えば全ての座席)のパワーウィンドウを自動的に開動作させる制御等を行なう。そして、車室内温度が一定レベル以下に下がり、連携制御の必要がなくなった場合は、ボデー系ECU6(A)をマスターノードに復帰させる。   In addition to the time of freezing, for example, when the air conditioner is operated in a parking state under a hot sun, a control mode can be exemplified in which the power window is operated in the opening direction to accelerate the release of hot air inside the vehicle interior. In this case, when the vehicle interior temperature rises abnormally, the master node is switched from the body system ECU 6 (A) to the A / CECU 6 (B). At this time, the A / CECU 6 (B) performs control to automatically open the power window of a specific seat (for example, all seats) even if the power window switch is not manually operated by the user. When the vehicle interior temperature falls below a certain level and the cooperation control is no longer necessary, the body system ECU 6 (A) is returned to the master node.

次に、図20は、パワーウィンドウ制御系をなすLINクラスタ50において、ボデー系ECU6(A)をLINクラスタ50の正規マスターノードとし、ボデー系ECU6(A)と同じCANクラスタ上にある管理ECU6(B)(通常時はスレーブノード)を、正規マスターノードの機能の少なくとも一部を引継ぎ可能な代替マスターノード候補として定めている。管理ECU6(B)は、各CANクラスタ100がCAN通信バス3を介して取得する通信情報に基づき正規マスターノードであるボデー系ECU6(A)の動作状態を監視する。そして、監視中のボデー系ECU6(A)(正規マスターノード)の動作状態に予め定められた内容の異常が検出された場合は、代替マスターノード候補をなす管理ECU6(B)をマスターノードに設定切り替えする。これにより、当該LINクラスタ50の正規マスターノードがダウンしても、代替マスターノードによる引継ぎを迅速に行なうことができ、フェールセーフ機能を格段に向上させることができる。   Next, in FIG. 20, in the LIN cluster 50 forming the power window control system, the body ECU 6 (A) is a regular master node of the LIN cluster 50, and the management ECU 6 (on the same CAN cluster as the body ECU 6 (A)) B) (normally a slave node) is defined as an alternative master node candidate capable of taking over at least a part of the functions of the regular master node. The management ECU 6 (B) monitors the operating state of the body system ECU 6 (A), which is a regular master node, based on communication information acquired by each CAN cluster 100 via the CAN communication bus 3. If an abnormality of a predetermined content is detected in the operating state of the body ECU 6 (A) (regular master node) being monitored, the management ECU 6 (B) that constitutes an alternative master node candidate is set as the master node. Switch. Thereby, even if the regular master node of the LIN cluster 50 goes down, the takeover by the alternative master node can be performed quickly, and the fail-safe function can be remarkably improved.

この場合、管理ECU6(B)は、例えばCAN通信にてボデー系ECU6(A)との交信を試み、交信不能になった場合はLINクラスタ50のマスターノードに切り替える。このとき、正規マスターノードであるボデー系ECU6(A)は、LINフレームを経由したマスター権限移転のシーケンスが実行不能になっている可能性が高いので、上位プロトコルをなすCAN通信側からの指令によりボデー系ECU6(A)をLIN通信バス5から切り離し、管理ECU6(B)をマスターノードに切り替える。   In this case, the management ECU 6 (B) attempts to communicate with the body ECU 6 (A) by, for example, CAN communication, and switches to the master node of the LIN cluster 50 when communication becomes impossible. At this time, the body system ECU 6 (A), which is a regular master node, has a high possibility that the master authority transfer sequence via the LIN frame is not executable. The body ECU 6 (A) is disconnected from the LIN communication bus 5 and the management ECU 6 (B) is switched to the master node.

なお、以上説明した実施形態においては、1つのLINクラスタに含まれる属性切替可能型ノードの数は2つであったが、これは3つ以上であってもよい。この場合、3つ以上の属性切替可能型ノードの一つをマスターノードに設定し、残余のものはスレーブノードに設定するか、LINクラスタから切り離す。また、属性切替可能型ノードは必ずしもCANノード(すなわち、ゲートウェイノード)である必要はなく、例えば、CANクラスタから独立したLINクラスタにおいても本発明の概念は適用可能である。また、複数の属性切替可能型ノードの一部のみをゲートウェイノードとし、残余のものを、ゲートウェイノードを構成しないLINノードとして構成してもよい。   In the embodiment described above, the number of attribute switchable nodes included in one LIN cluster is two. However, this may be three or more. In this case, one of the three or more attribute-switchable nodes is set as a master node, and the remaining one is set as a slave node or separated from the LIN cluster. Further, the attribute switchable node is not necessarily a CAN node (that is, a gateway node). For example, the concept of the present invention can be applied to a LIN cluster independent of a CAN cluster. Alternatively, only some of the plurality of attribute-switchable nodes may be configured as gateway nodes, and the remaining nodes may be configured as LIN nodes that do not configure gateway nodes.

本発明の車載通信ネットワークシステムの第一構成例を示す概略ブロック図。The schematic block diagram which shows the 1st structural example of the vehicle-mounted communication network system of this invention. 図1の車載通信ネットワークシステムの要部を、各ノードの内部ブロックとともに示す図。The figure which shows the principal part of the vehicle-mounted communication network system of FIG. 1 with the internal block of each node. ゲートウェイノードのソフトウェアモジュール構造の一例を示すブロック図。The block diagram which shows an example of the software module structure of a gateway node. 図1の車載通信ネットワークシステムの第一の作用説明図。FIG. 3 is a first operation explanatory diagram of the in-vehicle communication network system of FIG. 1. 図1の車載通信ネットワークシステムの第二の作用説明図。The 2nd operation explanatory view of the in-vehicle communication network system of Drawing 1. 図1の車載通信ネットワークシステムの第三の作用説明図。FIG. 4 is a third operation explanatory diagram of the in-vehicle communication network system of FIG. 1. 図1の車載通信ネットワークシステムにて使用するLINフレーム構造を、従来のLINフレーム構造と対比して示す説明図。FIG. 2 is an explanatory diagram showing a LIN frame structure used in the in-vehicle communication network system of FIG. 1 in comparison with a conventional LIN frame structure. 委譲フィールドの構成例を示す説明図。Explanatory drawing which shows the structural example of a delegation field. 委譲要求承認フィールドの構成例を示す説明図。Explanatory drawing which shows the structural example of a delegation request | requirement approval field. 委譲承認フィールドの構成例を示す説明図。Explanatory drawing which shows the structural example of a transfer approval field. 委譲要求フィールドの構成例を示す説明図。Explanatory drawing which shows the structural example of a delegation request | requirement field. 図1の車載通信ネットワークシステムにおける要求型移転パターンでのポーリングシーケンスを示す図(正常時)。The figure which shows the polling sequence in the request type | mold transfer pattern in the vehicle-mounted communication network system of FIG. 1 (at the time of normal). 図1の車載通信ネットワークシステムにおける要求型移転パターンでのポーリングシーケンスを示す図(異常時)。The figure which shows the polling sequence in the request type | mold transfer pattern in the vehicle-mounted communication network system of FIG. 1 (at the time of abnormality). 同じく委譲型移転パターンでのポーリングシーケンスを示す図(正常時)。The figure which shows the polling sequence in the same delegation type transfer pattern (at the time of normal). 同じく委譲型移転パターンでのポーリングシーケンスを示す図(異常時)。The figure which similarly shows the polling sequence in a delegation type transfer pattern (at the time of abnormality). 本発明の車載通信ネットワークシステムの第二構成例を示す概略ブロック図。The schematic block diagram which shows the 2nd structural example of the vehicle-mounted communication network system of this invention. 図16の車載通信ネットワークシステムにおける委譲型移転パターンでのポーリングシーケンスを示す図(正常時)。The figure which shows the polling sequence in the transfer type transfer pattern in the vehicle-mounted communication network system of FIG. 16 (at the time of normal). 同じく要求型移転パターンでのポーリングシーケンスを示す図(正常時)。The figure which similarly shows the polling sequence by a request type | mold transfer pattern (at the time of normal). 同じく委譲型移転パターンでのポーリングシーケンスを示す図(異常時)。The figure which similarly shows the polling sequence in a delegation type transfer pattern (at the time of abnormality). 本発明の車載通信ネットワークシステムの第三構成例を示す概略ブロック図。The schematic block diagram which shows the 3rd structural example of the vehicle-mounted communication network system of this invention. 従来の車載通信ネットワークシステムの構成を示す第一のブロック図。The 1st block diagram which shows the structure of the conventional vehicle-mounted communication network system. 従来の車載通信ネットワークシステムの構成を示す第二のブロック図。The 2nd block diagram which shows the structure of the conventional vehicle-mounted communication network system.

符号の説明Explanation of symbols

1 車載通信ネットワークシステム
2 CANノード
3 CAN通信バス
5 LIN通信バス
4 LINノード(スレーブノード)
6 ゲートウェイノード(属性切替可能型ノード)
HA 委譲先指定ヘッダ
RA 委譲承認レスポンス
RB 委譲先指定レスポンス
DESCRIPTION OF SYMBOLS 1 In-vehicle communication network system 2 CAN node 3 CAN communication bus 5 LIN communication bus 4 LIN node (slave node)
6 Gateway node (attribute switching type node)
HA Delegation destination designation header RA Delegation approval response RB Delegation destination designation response

Claims (14)

複数のLINノードが単一のLIN通信バスにより接続されたLINクラスタを含む車載通信ネットワークシステムであって、
前記LINクラスタをなす前記LINノードの2以上のものが、マスターノードとスレーブノードとの切り替えが可能な属性切替可能型ノードとされ、それら属性切替可能型ノードのいずれか1つを前記LINクラスタのマスターノードに、残余のものを該LINクラスタのスレーブノードに、それぞれ切り替え可能に設定するマスター/スレーブ設定切替手段が設けられ
LIN通信におけるデータ伝送に際してのメッセージフレーム構造が、マスタータスクとして送信されるヘッダと、スレーブタスクとして送信されるレスポンスとからなり、ヘッダ送受信とレスポンス送受信とを交互に繰り返す形で通信メッセージのやり取りがなされるとともに、
前記属性切替可能型ノードには、前記マスターノードとして作動する際に前記ヘッダを前記LIN通信バスに送出するヘッダ送出手段と、同じく前記レスポンスを受信するレスポンス受信手段と、前記スレーブノードとして作動する際に前記ヘッダを受信するヘッダ受信手段と、同じく前記レスポンスを前記通信バスに送出するレスポンス送出手段とが設けられていることを特徴とする車載通信ネットワークシステム。
An in-vehicle communication network system including a LIN cluster in which a plurality of LIN nodes are connected by a single LIN communication bus,
Two or more of the LIN nodes forming the LIN cluster are attribute-switchable nodes that can be switched between a master node and a slave node, and any one of these attribute-switchable nodes is designated as the LIN cluster. Master / slave setting switching means is provided in the master node, so that the remaining ones can be switched to the slave nodes of the LIN cluster, respectively .
The message frame structure for data transmission in LIN communication consists of a header transmitted as a master task and a response transmitted as a slave task, and communication messages are exchanged by alternately repeating header transmission / reception and response transmission / reception. And
The attribute-switchable node includes a header sending means for sending the header to the LIN communication bus when operating as the master node, a response receiving means for receiving the response, and a slave node. The vehicle-mounted communication network system further comprises: a header receiving unit that receives the header; and a response sending unit that sends the response to the communication bus .
前記属性切替可能型ノードには、
前記マスターノードに設定されている状態にて前記切替条件が成立した場合に、前記スレーブノードに設定されている他の前記属性切替可能型ノードのうち、当該切替条件と対応付けて予め指定されているものにマスター権限委譲を申し出るためのマスター権限委譲申出通知を、前記LIN通信バスを介して行なうマスター権限委譲申出通知手段と、
前記スレーブノードに設定されている状態にて前記マスター権限委譲申出通知を受けた場合に、当該マスター権限を受諾するか否かを判定し、その判定結果を返信するとともに、権限を受諾する判定を行った場合に自身のノード設定をスレーブノードから前記マスターノードへ切り替えるマスター切替制御手段と、
前記マスターノードに設定されている状態にて前記判定結果を受け、かつ、当該判定結果が前記権限受諾に関して肯定的であった場合に、自身のノード設定をマスターノードから前記スレーブノードに切り替えるスレーブ切替制御手段と、
を有する請求項1記載の車載通信ネットワークシステム。
The attribute switchable node includes
When the switching condition is satisfied in the state set in the master node, the other attribute-switchable type nodes set in the slave node are designated in advance in association with the switching condition. A master authority delegation notification means for performing a master authority delegation notification for applying for a master authority delegation to the existing person via the LIN communication bus;
When the master authority transfer offer notification is received in the state set in the slave node, it is determined whether or not to accept the master authority, the determination result is returned, and the determination to accept the authority is performed. A master switching control means for switching the node setting of the own node from the slave node to the master node,
Slave switching for switching the node setting of the master node from the master node to the slave node when the determination result is received in the state set in the master node and the determination result is positive with respect to the authority acceptance Control means;
The in-vehicle communication network system according to claim 1, comprising:
前記ヘッダには、メッセージの開始を示すブレークフィールドと、時間補正用基準波形を組み込んだ同期フィールドと、通信先となるスレーブノードを特定する識別子フィールドと、前記マスターノードとなる属性切替可能型ノードが前記マスター権限委譲を行なうか否かを特定するための委譲フィールドとが組み込まれ、
他方、前記レスポンスには、前記ヘッダの前記識別子フィールドにより通信先として指定されるに伴ない、送信対象となるデータを組み込んだデータフィールドと、エラーチェックフィールドと、前記スレーブノードとなる属性切替可能型ノードが、前記ヘッダの前記委譲フィールドが示す前記マスター権限委譲を承認するか否かを特定する委譲承認フィールドとが組み込まれている請求項記載の車載通信ネットワークシステム。
The header includes a break field indicating the start of a message, a synchronization field incorporating a time correction reference waveform, an identifier field for specifying a slave node as a communication destination, and an attribute switchable node as the master node. And a delegation field for specifying whether to perform the master authority delegation,
On the other hand, in the response, as specified as the communication destination by the identifier field of the header, a data field incorporating data to be transmitted, an error check field, and an attribute switchable type serving as the slave node node, wherein the vehicle communication network system according to claim 1, wherein the delegation authorization field specifying whether or not to approve the master authority delegation is incorporated indicated by the delegation field of the header.
前記属性切替可能型ノードを含む複数の前記LINノードには、予め定められたポーリングサイクルを規定するための通信順位が一義的に付与されており、
各前記属性切替可能型ノードは、前記マスターノードに設定されている場合は、前記ヘッダ送出手段と前記レスポンス受信手段とに対し、前記LIN通信バス上への前記ヘッダの送信を、対応するスレーブノードからの前記レスポンスの受信と交替しつつ、通信先となるスレーブノードを前記ポーリングサイクルに従い順次変更しつつ繰り返し行なうものであり、
前記マスター権限の委譲元となるマスターノードを委譲元ノード、前記マスター権限の委譲先となるスレーブノードを委譲先ノードとして、
前記委譲元ノードは、前記ポーリングサイクルにおいて前記委譲先ノードの通信順位が到来するに伴ない、前記委譲フィールドに当該委譲先ノードをマスター権限委譲先として指定する内容を記述したヘッダを委譲先指定ヘッダとして送出し、
前記委譲先ノードは該委譲先指定ヘッダを受信して前記マスター権限の委譲を承認するか否かを判断し、承認する場合は該委譲先指定ヘッダに続くレスポンスを、前記委譲承認フィールドに前記マスター権限委譲を承認する内容を記述した委譲承認レスポンスとして送信するとともに自ノードをマスターノードに切替設定し、自ノードの次に通信順位が定められたスレーブノードから前記ポーリングサイクルを更新する形で前記ヘッダの送信を開始する一方、
前記委譲元ノードは前記委譲承認レスポンスを受信して自ノードをスレーブノードに切替設定する請求項記載の車載通信ネットワークシステム。
A communication order for prescribing a predetermined polling cycle is uniquely given to the plurality of LIN nodes including the attribute switchable node,
When each of the attribute switchable nodes is set as the master node, the header transmission unit and the response reception unit transmit the header on the LIN communication bus to the corresponding slave node. It is performed repeatedly while changing the slave node as a communication destination sequentially according to the polling cycle while alternating with the reception of the response from
The master node that is the delegation source of the master authority is the delegation source node, the slave node that is the delegation destination of the master authority is the delegation destination node,
As the communication order of the delegation destination node arrives in the polling cycle, the delegation source node has a delegation destination designation header including a description describing the delegation field as a master authority delegation destination in the delegation field Send out as
The delegation destination node receives the delegation destination designation header, determines whether to approve the delegation of the master authority, and if so, sends a response following the delegation destination designation header in the delegation approval field to the master The header is transmitted in the form of transmitting as a delegation approval response describing the contents for authorizing the authority delegation and switching the own node to the master node and updating the polling cycle from the slave node whose communication order is determined next to the own node. While starting to send
4. The in-vehicle communication network system according to claim 3, wherein the delegation source node receives the delegation approval response and switches and sets its own node to a slave node.
前記委譲先ノードが前記委譲先指定ヘッダを受信した後、前記マスター権限の委譲を承認しない場合は前記委譲先指定ヘッダに続くレスポンスを、前記委譲承認フィールドに前記マスター権限委譲を承認しない内容を記述して委譲非承認レスポンスとして送信するとともに自ノードをスレーブノードに設定維持し、
前記委譲元ノードは前記委譲非承認レスポンスを受信して自ノードをマスターノードに設定維持しつつ、前記委譲先ノードの次順位のスレーブノードを指定するヘッダを送出する形で前記ポーリングサイクルを継続する請求項記載の車載通信ネットワークシステム。
After the delegation destination node receives the delegation destination designation header, if the master authority delegation is not approved, a response following the delegation destination designation header is described, and the delegation approval field describes the content that does not approve the master authority delegation And send it as a delegation non-approval response and maintain the own node as a slave node,
The delegation source node receives the delegation non-approval response and maintains its own node as a master node, and continues the polling cycle by sending a header designating the slave node of the next rank of the delegation destination node. The in-vehicle communication network system according to claim 4 .
前記属性切替可能型ノードには、
前記スレーブノードに設定されている状態にて前記切替条件が成立した場合に、前記マスターノードに設定されている他の前記属性切替可能型ノードに、マスター権限委譲を要求するマスター権限委譲要求通知を、前記LIN通信バスを介して行なうマスター委譲要求通知手段と、
前記マスターノードに設定されている状態にて前記マスター委譲要求通知を受けた場合に、要求されたマスター権限の委譲を受諾するか否かを判断し、その判断結果を返信するとともに、委譲受諾する場合に自身のノード設定をマスターノードから前記スレーブノードへ切り替えるスレーブ切替制御手段と、
前記スレーブノードに設定されている状態にて前記判断結果を受け、かつ、当該判断結果が前記マスター権限の委譲に関して肯定的であった場合に、自身のノード設定をスレーブノードから前記マスターノードに切り替えるマスター切替制御手段と、
を有する請求項ないし請求項のいずれか1項に記載の車載通信ネットワークシステム。
The attribute switchable node includes
When the switching condition is satisfied in the state set in the slave node, a master authority delegation request notification for requesting master authority delegation is sent to the other attribute switchable node set in the master node. Master delegation request notifying means for performing via the LIN communication bus;
When the master delegation request notification is received in the state set in the master node, it is determined whether or not to accept the delegation of the requested master authority, and the determination result is returned and the delegation is accepted. Slave switching control means for switching its own node setting from the master node to the slave node,
When the determination result is received in a state where the slave node is set, and the determination result is positive with respect to the delegation of the master authority, the node setting is switched from the slave node to the master node. Master switching control means;
The in-vehicle communication network system according to any one of claims 2 to 5 , comprising:
請求項に記載の要件を備え、
前記レスポンスには、前記マスターノードとなる属性切替可能型ノードに対し前記マスター権限委譲を要求するか否かを特定する委譲要求フィールドが組み込まれ、
前記ヘッダには、前記スレーブノードとなる属性切替可能型ノードが前記マスター権限委譲要求を承認するか否かを特定するための委譲要求承認フィールドが組み込まれている請求項記載の車載通信ネットワークシステム。
Comprising the requirements of claim 3 ;
The response incorporates a delegation request field that specifies whether or not to request the master authority delegation to the attribute switchable node that is the master node,
The in-vehicle communication network system according to claim 6 , wherein the header incorporates a delegation request approval field for specifying whether or not the attribute switchable node serving as the slave node approves the master authority delegation request. .
前記属性切替可能型ノードを含む複数の前記LINノードには、予め定められたポーリングサイクルを規定するための通信順位が一義的に付与されており、
各前記属性切替可能型ノードは、前記マスターノードに設定されている場合は、前記ヘッダ送出手段と前記レスポンス受信手段とに対し、前記LIN通信バス上への前記ヘッダの送信を、対応するスレーブノードからの前記レスポンスの受信と交替しつつ、通信先となるスレーブノードを前記ポーリングサイクルに従い順次変更しつつ繰り返し行なうものであり、
前記委譲先ノードは、前記委譲要求フィールドに当該委譲先ノードをマスター権限委譲先とする要求を記述したレスポンスを委譲先指定レスポンスとして送出し、
前記委譲元ノードは該委譲先指定レスポンスを受信して前記マスター権限の委譲を承認するか否かを判断し、承認する場合は、前記ポーリングサイクルを前記委譲先ノードから前記委譲先指定レスポンスを受けた段階で一旦打ち切るとともに、該委譲先指定レスポンスに続くヘッダを、前記委譲要求承認フィールドに前記マスター権限委譲要求を承認する内容を記述し、前記委譲フィールドに当該委譲先ノードをマスター権限委譲先として指定する内容を記述したヘッダを委譲先指定ヘッダとして、当該委譲先ノードから前記ポーリングサイクルを再開する形で送出し、
前記委譲先ノードは該委譲先指定ヘッダを受信して前記マスター権限の委譲を承認するか否かを判断し、承認する場合は該委譲先指定ヘッダに続くレスポンスを、前記委譲承認フィールドに前記マスター権限委譲を承認する内容を記述した委譲承認レスポンスとして送信するとともに自ノードをマスターノードに切替設定し、自ノードの次に通信順位が定められたスレーブノードから前記ポーリングサイクルを引き継ぐ形で前記ヘッダの送信を新たに開始する一方、
前記委譲元ノードは前記委譲承認レスポンスを受信して自ノードをスレーブノードに切替設定する請求項記載の車載通信ネットワークシステム。
A communication order for prescribing a predetermined polling cycle is uniquely given to the plurality of LIN nodes including the attribute switchable node,
When each of the attribute switchable nodes is set as the master node, the header transmission unit and the response reception unit transmit the header on the LIN communication bus to the corresponding slave node. It is performed repeatedly while changing the slave node as a communication destination sequentially according to the polling cycle while alternating with the reception of the response from
The delegation destination node sends out a response describing a request that designates the delegation destination node as a master authority delegation destination in the delegation request field as a delegation destination designation response,
The delegation source node receives the delegation destination designation response, determines whether to approve the delegation of the master authority, and if so, receives the delegation destination designation response from the delegation destination node. At the stage, the header following the delegation destination designation response is described, the contents for approving the master authority delegation request are described in the delegation request approval field, and the delegation destination node is set as the master authority delegation destination in the delegation field Sending out the polling cycle from the delegation destination node as a delegation destination designation header with the header describing the contents to be specified,
The delegation destination node receives the delegation destination designation header, determines whether to approve the delegation of the master authority, and if so, sends a response following the delegation destination designation header in the delegation approval field to the master Sending as a delegation approval response describing the contents of approval of authority delegation, switching the own node to the master node, and taking over the polling cycle from the slave node whose communication order is determined next to the own node While starting a new transmission,
8. The in-vehicle communication network system according to claim 7, wherein the delegation source node receives the delegation approval response and switches and sets its own node to a slave node.
前記委譲元ノードが前記委譲先指定レスポンスを受信した後、前記マスター権限の委譲要求を拒否する場合は、前記委譲先指定レスポンスに続くヘッダを、前記委譲要求承認フィールドに前記マスター権限委譲要求を拒否する内容を記述した委譲要求拒否ヘッダとして送信するとともに自ノードを前記マスターノードに設定維持し、前記委譲先ノードの次順位のスレーブノードを指定するヘッダを送出する形で前記ポーリングサイクルを継続する請求項記載の車載通信ネットワークシステム。 When the delegation source node receives the delegation destination designation response and rejects the master authority delegation request, the master authority delegation request is rejected in the delegation request approval field with a header following the delegation destination designation response. The delegation request rejection header describing the contents to be transmitted, the own node is set and maintained in the master node, and the polling cycle is continued by sending a header designating the next-ranked slave node of the delegation destination node. Item 9. The in-vehicle communication network system according to Item 8 . 複数のCANノードがCAN通信バスにより接続されたCANクラスタと、複数の前記LINノードが単一の前記LIN通信バスにより接続され、前記CANノードをゲートウェイノードとして前記CANクラスタに接続された前記LINクラスタとからなる複合車載通信ネットワークシステムとして構成され、
複数の前記CANノードを前記ゲートウェイノードとして、前記LINクラスタを構成する1つの前記LIN通信バスがそれら複数のゲートウェイノードに分配接続されるとともに、各ゲートウェイノードが前記属性切替可能型ノードとして構成されてなる請求項1ないし請求項のいずれか1項に記載の車載通信ネットワークシステム。
A CAN cluster in which a plurality of CAN nodes are connected by a CAN communication bus, and a plurality of the LIN nodes are connected by a single LIN communication bus, and the LIN cluster is connected to the CAN cluster by using the CAN node as a gateway node It is configured as a composite in-vehicle communication network system consisting of
A plurality of the CAN node and said gateway node, wherein with one of the LIN communication bus constituting the LIN cluster is dispensed connected to the plurality of gateway nodes, are configured each gateway node as the attribute switchable type node The in-vehicle communication network system according to any one of claims 1 to 9 .
前記マスター/スレーブ設定切替手段は、前記CANクラスタ又は前記LINクラスタの通信状態を監視する通信状態監視手段を有し、監視中の通信状態において予め定められた切替条件が成立した場合に、複数の前記属性切替可能型ノードにおける前記マスターノード及び前記スレーブノードの設定切替を行なう請求項10記載の車載通信ネットワークシステム。 The master / slave setting switching unit includes a communication state monitoring unit that monitors a communication state of the CAN cluster or the LIN cluster, and when a predetermined switching condition is satisfied in the communication state being monitored, The in-vehicle communication network system according to claim 10, wherein setting switching of the master node and the slave node in the attribute switchable node is performed. 前記通信状態の予め定められた種別毎に、複数の前記属性切替可能型ノードについて前記マスターノードに設定するための優先順位が定められており、前記マスター/スレーブ設定切替手段は成立した通信状態に対応する該優先順位に基づいて、前記マスターノード及び前記スレーブノードの設定切替を行なう請求項11記載の車載通信ネットワークシステム。 For each predetermined type of the communication state, a priority order for setting a plurality of the attribute switchable type nodes as the master node is determined, and the master / slave setting switching means is set to the established communication state. The in-vehicle communication network system according to claim 11 , wherein setting switching of the master node and the slave node is performed based on the corresponding priority order. 前記LIN通信バスが分配接続される複数の前記ゲートウェイノードが、互いに異なる制御系をなす複数のCANクラスタに振り分けて設けられ、
前記通信状態監視手段は、各前記CANクラスタが前記CAN通信バスを介して取得する通信情報に基づき対応する前記制御系の制御状態を監視するものであり、前記マスター/スレーブ設定切替手段は、監視中の制御状態が予め定められた切替条件を成立した場合に、当該制御状態と対応付ける形で予め指定されたCANクラスタに属するゲートウェイノードを前記マスターノードに設定するものである請求項11又は請求項12に記載の車載通信ネットワークシステム。
The plurality of gateway nodes to which the LIN communication bus is distributed and connected are provided to be distributed to a plurality of CAN clusters forming different control systems,
The communication status monitoring means monitors the control status of the control system corresponding to each CAN cluster based on communication information acquired via the CAN communication bus, and the master / slave setting switching means when the control state in is satisfied a predetermined switching condition, claim 11 or claim a gateway node belonging to the pre-designated cAN clusters in a manner that associates with the control state is to set the master node 12. The in-vehicle communication network system according to 12 .
前記LIN通信バスが分配接続される複数の前記ゲートウェイノードの一つが、前記LINクラスタの正規マスターノードとして定められる一方、残余のゲートウェイノードをなすスレーブノードが、前記正規マスターノードの機能の少なくとも一部を引継ぎ可能な代替マスターノード候補として定められ、
前記通信状態監視手段は、各前記CANクラスタが前記CAN通信バスを介して取得する通信情報に基づき前記正規マスターノードの動作状態を監視するものであり、前記マスター/スレーブ設定切替手段は、監視中の前記正規マスターノードの動作状態に予め定められた内容の異常が検出された場合に、前記代替マスターノード候補をなすスレーブノードを前記マスターノードに設定切り替えするものである請求項13記載の車載通信ネットワークシステム。
One of the plurality of gateway nodes to which the LIN communication bus is distributed and connected is defined as a regular master node of the LIN cluster, while a slave node constituting the remaining gateway node is at least a part of the function of the regular master node As an alternative master node candidate that can take over,
The communication state monitoring means monitors the operating state of the regular master node based on communication information acquired by each CAN cluster via the CAN communication bus, and the master / slave setting switching means is under monitoring. The in-vehicle communication according to claim 13 , wherein when an abnormality having a predetermined content is detected in an operation state of the regular master node, a slave node that is a candidate for the alternative master node is switched to the master node. Network system.
JP2008312513A 2008-12-08 2008-12-08 In-vehicle communication network system Expired - Fee Related JP5252374B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008312513A JP5252374B2 (en) 2008-12-08 2008-12-08 In-vehicle communication network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008312513A JP5252374B2 (en) 2008-12-08 2008-12-08 In-vehicle communication network system

Publications (2)

Publication Number Publication Date
JP2010136286A JP2010136286A (en) 2010-06-17
JP5252374B2 true JP5252374B2 (en) 2013-07-31

Family

ID=42347080

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008312513A Expired - Fee Related JP5252374B2 (en) 2008-12-08 2008-12-08 In-vehicle communication network system

Country Status (1)

Country Link
JP (1) JP5252374B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101980375B1 (en) * 2018-12-21 2019-05-20 (주)아이트로닉스 Method For Controlling LIN Slave Unit of LIN Communication Vehicle

Families Citing this family (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9187038B2 (en) 2010-10-13 2015-11-17 Hewlett-Packard Development Company, L.P. Dashboard including rules to display data
KR101664410B1 (en) * 2010-10-14 2016-10-10 현대모비스 주식회사 Passive Start and Entry Electronic Control Unit and Processing Method of Key Searching Request
KR101185649B1 (en) 2010-11-30 2012-09-24 주식회사 케피코 Calibration tool control apparatus and method for lin communication module of vehicle
KR101206231B1 (en) 2010-12-22 2012-11-28 삼성중공업 주식회사 Network system and data transmitting method using half duplex
JP5578366B2 (en) * 2011-01-12 2014-08-27 横河電機株式会社 Communications system
JP5997980B2 (en) * 2012-08-31 2016-09-28 日立オートモティブシステムズ株式会社 Vehicle control system and vehicle electronic control device
KR101405682B1 (en) 2012-10-08 2014-06-10 현대자동차주식회사 Method for dealing with the gateway failing in centralized vehicle network
KR101958477B1 (en) * 2012-11-13 2019-03-14 현대모비스 주식회사 Lin communication system for vehicle and method for driving slave module in the system
WO2015050092A1 (en) * 2013-10-02 2015-04-09 株式会社村田製作所 Power supply system
CN105580259B (en) * 2013-10-02 2018-05-22 株式会社村田制作所 Power-supply system and supply unit
JP6198175B2 (en) * 2014-02-20 2017-09-20 株式会社デンソー Communication circuit
CN105644389B (en) * 2014-11-12 2019-06-07 海马汽车有限公司 The redundancy control method and system of automobile
KR102253158B1 (en) * 2014-11-21 2021-05-18 현대모비스 주식회사 Vehicels network system and the operation method
KR101593338B1 (en) * 2014-12-31 2016-02-11 현대다이모스(주) Apparatus for lin communication of vehicle and control method thereof
CN104908682B (en) * 2015-07-01 2017-01-25 合肥创源车辆控制技术有限公司 Terminal system of intelligent electrical apparatus
KR101696594B1 (en) * 2015-07-10 2017-01-16 현대자동차주식회사 Vehicle and method for controlling thereof
JP6535572B2 (en) 2015-10-26 2019-06-26 日立オートモティブシステムズ株式会社 Vehicle control device, vehicle control system
US9866563B2 (en) * 2016-04-12 2018-01-09 Gaurdknox Cyber Technologies Ltd. Specially programmed computing systems with associated devices configured to implement secure communication lockdowns and methods of use thereof
JP6981755B2 (en) 2017-01-25 2021-12-17 トヨタ自動車株式会社 In-vehicle network system
JP6981357B2 (en) * 2018-04-25 2021-12-15 株式会社デンソー Vehicle control device
DE102020113977A1 (en) * 2020-05-25 2021-11-25 Bayerische Motoren Werke Aktiengesellschaft SYSTEM FOR DATA TRANSFER IN A MOTOR VEHICLE, PROCEDURES AND MOTOR VEHICLE
DE102020124549A1 (en) 2020-09-21 2022-03-24 Bayerische Motoren Werke Aktiengesellschaft SYSTEM FOR DATA TRANSMISSION IN A MOTOR VEHICLE, MOTOR VEHICLE AND METHOD

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008259124A (en) * 2007-04-09 2008-10-23 Toyota Motor Corp On-vehicle communication system and electronic control unit

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101980375B1 (en) * 2018-12-21 2019-05-20 (주)아이트로닉스 Method For Controlling LIN Slave Unit of LIN Communication Vehicle

Also Published As

Publication number Publication date
JP2010136286A (en) 2010-06-17

Similar Documents

Publication Publication Date Title
JP5252374B2 (en) In-vehicle communication network system
JP4483694B2 (en) Vehicle communication system
JP6094439B2 (en) Vehicle control system
EP3119038B1 (en) Communication device, communication method and communication system
CN102658801B (en) Controller area network (CAN) system network management method for new energy vehicle
CN109196904B (en) Communication management device and communication system
JP3994821B2 (en) Vehicle communication system
EP3407566A1 (en) Automobile electrical system and isolation system for automobile electrical system
JP5050653B2 (en) Electronic control device
WO2019242492A1 (en) Vehicle-mounted network system and communication method thereof
US7415508B2 (en) Linked vehicle active networks
US20080306647A1 (en) In-vehicle network system and control method thereof
US11082130B2 (en) System for managing a fibre-optic ethernet network of a vehicle
JP5296515B2 (en) Vehicle communication system
CN111147338B (en) Interface design method from vehicle-mounted wired network to wireless network
CN100414917C (en) In-vehicle communication system
JP4548260B2 (en) Vehicle communication system
US11337184B2 (en) Method and apparatus for transmitting and receiving data stream performed in vehicle network
JP2009302783A (en) Failure detecting method and failure detection system of communication network
JP5780310B2 (en) Electronic control device and microcomputer control method
KR102219603B1 (en) Network system
US6745144B2 (en) Circuit arrangement for a motor vehicle
WO2024090220A1 (en) In-vehicle device, in-vehicle system, control method, and control program
CN219761329U (en) Vehicle communication system and vehicle
KR101654720B1 (en) A method for controlling can by can coordinator

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110829

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121004

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20121003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20121012

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20121207

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130407

R151 Written notification of patent or utility model registration

Ref document number: 5252374

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160426

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees