JP2015177365A - Communication node, communication system and communication method - Google Patents
Communication node, communication system and communication method Download PDFInfo
- Publication number
- JP2015177365A JP2015177365A JP2014052586A JP2014052586A JP2015177365A JP 2015177365 A JP2015177365 A JP 2015177365A JP 2014052586 A JP2014052586 A JP 2014052586A JP 2014052586 A JP2014052586 A JP 2014052586A JP 2015177365 A JP2015177365 A JP 2015177365A
- Authority
- JP
- Japan
- Prior art keywords
- communication node
- message
- communication
- identifier
- area
- 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.)
- Withdrawn
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
【課題】通信ノードを複数有する多重通信システムにおいて、メッセージに付帯されるソースIDの数を増加させること。【解決手段】車両に搭載されるとともに、通信バスに接続される複数の通信ノードの1つは、送信元の通信ノードの識別子、及び送信先の通信ノードの識別子を付帯したメッセージを作成する制御部と、制御部で作成したメッセージを送信する送信部とを有する。制御部は、メッセージに送信元の通信ノードの識別子を付帯する際に、送信元の通信ノードの識別子を付帯する領域と運用していない付加情報領域とを併せた第1の領域に、自通信ノードの識別子を付帯する。【選択図】図3PROBLEM TO BE SOLVED: To increase the number of source IDs attached to a message in a multiplex communication system having a plurality of communication nodes. SOLUTION: One of a plurality of communication nodes mounted on a vehicle and connected to a communication bus is a control for creating a message with an identifier of a source communication node and an identifier of a destination communication node. It has a unit and a transmission unit that transmits a message created by the control unit. When attaching the identifier of the communication node of the source to the message, the control unit communicates with itself in the first area that combines the area with the identifier of the communication node of the source and the additional information area that is not in operation. Attach the identifier of the node. [Selection diagram] Fig. 3
Description
本発明は、車両に搭載される通信システムに関する。 The present invention relates to a communication system mounted on a vehicle.
イグニッションオフ(IG-OFF)などによって車両が停止したときの電力消費を低減するため、IG-OFF中に通信を行う電子制御ユニット(ECU: Electronic Control Unit)には、ネットワークマネジメント(NM: Network Management)機能が搭載されたものがある。ネットワークマネジメント機能が搭載されたECUは、バス上の他のネットワークマネジメント機能が搭載されたECUと協調して省電力モードへ移行するために、ネットワークマネジメントメッセージ(以下、「NMメッセージ」という)を用いて、省電力モードへ移行できるか否かを判断する。 In order to reduce the power consumption when the vehicle stops due to ignition off (IG-OFF), etc., network management (NM: Network Management) is included in the electronic control unit (ECU) that communicates during IG-OFF. ) Some functions are installed. An ECU equipped with a network management function uses a network management message (hereinafter referred to as “NM message”) in order to shift to a power saving mode in cooperation with an ECU equipped with other network management functions on the bus. To determine whether or not the mode can be shifted to the power saving mode.
データの送信先の識別子を付加したデータを送信する通信制御装置が知られている(例えば、特許文献1参照)。 There is known a communication control device that transmits data to which an identifier of a data transmission destination is added (see, for example, Patent Document 1).
図1は、NMメッセージのフォーマットの一例を示す。NMメッセージには、CANフレームが適用される。図1において、(1)はNMメッセージ全体のフォーマットを示し、(2)はNMメッセージの一部分の詳細を示す。 FIG. 1 shows an example of the format of the NM message. A CAN frame is applied to the NM message. In FIG. 1, (1) shows the format of the entire NM message, and (2) shows the details of a part of the NM message.
NMメッセージは、スタートオブフレーム(SOF: Start Of Frame)と、調停フィールド(Arbitration Field)と、制御フィールド(Control Field)と、データフィールド(Data Field)と、CRCフィールドと、ACKフィールドと、エンドオブフレーム(EOF: End of Frame)とにより構成される。 The NM message includes a start of frame (SOF), an arbitration field, a control field, a data field, a CRC field, an ACK field, and an end of frame. (EOF: End of Frame).
スタートオブフレームは、フレームの先頭を示し、ドミナント(論理0)ビットで示される。調停フィールドは、フレームの優先順位を示す。調停フィールドにはメッセージIDが付帯され、このメッセージIDによりメッセージが識別され、メッセージの優先順位が示される。メッセージIDは、11ビットで表されてもよいし(標準フレーム)、29ビットで表されてもよい(拡張フレーム)。 The start of frame indicates the head of the frame and is indicated by a dominant (logic 0) bit. The arbitration field indicates the priority order of frames. A message ID is attached to the arbitration field, the message is identified by this message ID, and the priority of the message is indicated. The message ID may be represented by 11 bits (standard frame) or 29 bits (extended frame).
制御フィールドは、予約ビットとデータのバイト数が付帯される。データフィールドは、0-8バイトの各種データ、スイッチ信号及び制御信号などが付帯される。CRCフィールドは、フレームの伝送誤りをチェックする際に使用され、CRCフィールドには、15ビットの巡回冗長検査コードとリセッシブデリミタビットが付帯される。 The control field is accompanied by a reserved bit and the number of data bytes. The data field is accompanied by various data of 0-8 bytes, a switch signal, a control signal, and the like. The CRC field is used when checking a frame transmission error, and a 15-bit cyclic redundancy check code and a recessive delimiter bit are attached to the CRC field.
ACKフィールドは、メッセージを正しく受信した場合に、メッセージの最後に送信する。受信側のノードは通信バス上でACKビットの有無をチェックし、ACKが検出されなかった場合は再度送信を試みるのが好ましい。エンドオブフレームは、データフレームやリモートフレームの終了位置を示す。エンドオブフレームは、7ビットで構成され、ビットレベルは全て"リセッシブ"である。 The ACK field is transmitted at the end of the message when the message is correctly received. It is preferable that the receiving side node checks the presence or absence of the ACK bit on the communication bus, and tries again if no ACK is detected. The end of frame indicates the end position of the data frame or the remote frame. The end-of-frame is composed of 7 bits, and all bit levels are “recessive”.
図1の(2)は、調停フィールド、及びデータフィールドの詳細を示す。調停フィールド、及びデータフィールドには、ヘッダフィールド、オペレーションフィールド、及びデータフィールドが用意される。さらに、ヘッダフィールドには、IDベースと、アドレスフィールドが用意され、アドレスフィールドには、ソースID(Source ID)と、デスティネイションID(Dest.ID)が付帯される。オペレーションフィールドにはオペレーションコード(Op Code)が付帯され、データフィールドにはデータが付帯される。 (2) of FIG. 1 shows the details of the arbitration field and the data field. In the arbitration field and the data field, a header field, an operation field, and a data field are prepared. Further, an ID base and an address field are prepared in the header field, and a source ID (Source ID) and a destination ID (Dest. ID) are attached to the address field. An operation code (Op Code) is attached to the operation field, and data is attached to the data field.
NMメッセージのアドレスフィールドには、ソースIDを付帯するために8ビットが用意され、そのアドレスフィールドにCAN IDの11ビットのうち下位8ビットが付帯される。一方、NM機能が搭載されたECUの増加に伴い、ソースIDの数を増加させることが要求されているが、現状では、アドレスフィールドにCAN IDの下位8ビットを重複しないように付帯しなければならず、ソースIDの数を増加させるのは難しい。 In the address field of the NM message, 8 bits are prepared to attach the source ID, and the lower 8 bits of the 11 bits of CAN ID are attached to the address field. On the other hand, as the number of ECUs equipped with NM functions increases, it is required to increase the number of source IDs, but at present, the lower 8 bits of CAN ID must be added to the address field so as not to overlap. It is difficult to increase the number of source IDs.
本発明の目的は、通信ノードを複数有する多重通信システムにおいて、メッセージに付帯されるソースIDの数を増加させることである。 An object of the present invention is to increase the number of source IDs attached to a message in a multiple communication system having a plurality of communication nodes.
開示の一実施例の通信ノードは、
車両に搭載されるとともに、通信バスに接続される複数の通信ノードの1つであって、
送信元の通信ノードの識別子、及び送信先の通信ノードの識別子を付帯したメッセージを作成する制御部と、
前記制御部で作成したメッセージを送信する送信部と
を有し、
前記制御部は、前記メッセージに前記送信元の通信ノードの識別子を付帯する際に、前記送信元の通信ノードの識別子を付帯する領域と運用していない付加情報領域とを併せた第1の領域に、自通信ノードの識別子を付帯する。
The communication node of one embodiment of the disclosure is
One of a plurality of communication nodes mounted on a vehicle and connected to a communication bus,
A control unit for creating a message attached with an identifier of a communication node of a transmission source and an identifier of a communication node of a transmission destination;
A transmission unit for transmitting the message created by the control unit,
When the control unit appends the identifier of the transmission source communication node to the message, the control unit includes a first region that combines a region that accompanies the identifier of the transmission source communication node and a non-operating additional information region In addition, the identifier of the own communication node is attached.
開示の実施例によれば、通信ノードを複数有する多重通信システムにおいて、メッセージに付帯されるソースIDの数を増加させることができる。 According to the disclosed embodiment, the number of source IDs attached to a message can be increased in a multiple communication system having a plurality of communication nodes.
次に、本発明を実施するための形態を、以下の実施例に基づき図面を参照しつつ説明する。以下で説明する実施例は一例に過ぎず、本発明が適用される実施の形態は、以下の実施例に限られない。
なお、実施例を説明するための全図において、同一機能を有するものは同一符号を用い、繰り返しの説明は省略する。
Next, the form for implementing this invention is demonstrated, referring drawings based on the following Examples. Examples described below are merely examples, and embodiments to which the present invention is applied are not limited to the following examples.
In all the drawings for explaining the embodiments, the same reference numerals are used for those having the same function, and repeated explanation is omitted.
<第1の実施例>
<通信システム>
図2は、通信システムの一実施例を示す。
<First embodiment>
<Communication system>
FIG. 2 shows an embodiment of a communication system.
通信システムは、例えば車両等の移動体に搭載される。通信システムの一実施例は、車両に搭載され、CAN(Controller Area Network)等のイベントドリブン型のネットワークが適用される。通信システムは、情報系LAN、パワートレイン系LAN、ボディ系LANなどに適用できる。各通信ノードは、電子制御ユニット(ECU: Electronic Control Unit)などの制御装置によって実現される。また、各通信ノードに、センサ、アクチュエータなどが実装されてもよい。 The communication system is mounted on a moving body such as a vehicle. One embodiment of a communication system is mounted on a vehicle, and an event-driven network such as CAN (Controller Area Network) is applied. The communication system can be applied to information LAN, powertrain LAN, body LAN, and the like. Each communication node is realized by a control device such as an electronic control unit (ECU). Moreover, a sensor, an actuator, etc. may be mounted in each communication node.
通信システムは、第1の通信ノード100と、第2の通信ノード200と、第3の通信ノード300とを備える。第1の通信ノード100−第3の通信ノード300は、通信バス10により有線接続される。図1には、3個の通信ノードによって通信システムを構成する場合について示すが、2個の通信ノードによって通信システムを構成してもよいし、4個以上の通信ノードによって通信システムを構成してもよい。
The communication system includes a
通信システムにCANが適用される場合、通信バス10は、ツイストペアの形態を有する2本の通信線(CANバス)からなる。CANバスのツイストペア線は一方がCAN High(以下、CANHという)、他方がCAN Low(以下、CANLという)と呼ばれる母線である。通信バス10の両端には終端抵抗(図示なし)が接続される。図2では、1本の実線でCANH、CANLを表す。
When CAN is applied to the communication system, the
通信システムの一実施例では、第1の通信ノード100は第2の通信ノード200を送信先としてメッセージを送信し、第2の通信ノード200は第3の通信ノード300を送信先としてメッセージを送信し、第3の通信ノード300は第1の通信ノード100を送信先としてメッセージを送信することにより論理リンクが形成される。
In one embodiment of the communication system, the
第1の通信ノード100は、IDベース領域とソースID領域とを併せた領域(以下、「第1の領域」という)に自第1の通信ノード100のIDを付帯し、デスティネイションID領域(以下、「第2の領域」という)に送信先の第2の通信ノード200のIDを付帯するとともに、オペレーションフィールド、及びデータフィールドに自第1の通信ノード100の状態を表す情報を付帯したNMメッセージを送信する。自第1の通信ノード100の状態を表す情報の一例は、起動を継続する状態を表す情報、省電力モードへ移行可能である状態を表す情報などである。
The
第2の通信ノード200、及び第3の通信ノード300は、第1の通信ノード100により送信されたNMメッセージの第2の領域に付帯されるデスティネイションIDを参照し、デスティネイションIDが自通信ノードのIDである場合、そのNMメッセージを処理する。ここでは、NMメッセージの第2の領域には第2の通信ノード200のIDが付帯されるため、第2の通信ノード200は、NMメッセージを処理する。
The
第2の通信ノード200は、NMメッセージに付帯される第1の通信ノード100の状態を表す情報を取得し、そのNMメッセージの第1の領域に自第2の通信ノード200のIDを付帯し、第2の領域に送信先の第3の通信ノード300のIDを付帯するとともに、オペレーションフィールド、及びデータフィールドに自第2の通信ノード200の状態を表す情報を付帯したNMメッセージを作成し、送信する。
The
第3の通信ノード300、及び第1の通信ノード100は、第2の通信ノード200により送信されたNMメッセージの第2の領域に付帯されるデスティネイションIDを参照し、デスティネイションIDが自通信ノードのIDである場合、そのNMメッセージを処理する。ここでは、NMメッセージの第2の領域には第3の通信ノード300のIDが付帯されるため、第3の通信ノード300は、NMメッセージを処理する。
The
第3の通信ノード300は、NMメッセージに付帯される第2の通信ノード200の状態を表す情報を取得し、そのNMメッセージの第1の領域に自第3の通信ノード300のIDを付帯し、第2の領域に宛先の第1の通信ノード100のIDを付帯するとともに、オペレーションフィールド、及びデータフィールドに自第3の通信ノード300の状態を表す情報を付帯したNMメッセージを作成し、送信する。
The
第1の通信ノード100、及び第2の通信ノード200は、第3の通信ノード300により送信されたNMメッセージの第2の領域に付帯されるデスティネイションIDを参照し、デスティネイションIDが自通信ノードのIDである場合、そのNMメッセージを処理する。ここでは、NMメッセージの第2の領域には第1の通信ノード100のIDが付帯されるため、第1の通信ノード100は、NMメッセージを処理する。
The
第1の通信ノード100は、NMメッセージに付帯される第3の通信ノード300の状態を表す情報を取得し、そのNMメッセージの第1の領域に自第1の通信ノード100のIDを付帯し、第2の領域に宛先の第2の通信ノード200のIDを付帯するとともに、オペレーションフィールド、及びデータフィールドに他の通信ノードの情報を付帯したNMメッセージを作成し、送信する。ここで、他の通信ノードの情報は、通信ノードの状態を表す情報が論理リンクを伝送した後に、通信ノードの状態を変更してよいことを通知するメッセージである。 以上の動作が繰り返されることにより、通信バス10の接続される第1の通信ノード100−第3の通信ノード300の各々は、他の通信ノードが起動を継続する状態であるのか、省電力モードへ移行可能である状態であるのかを判別できるため、全通信ノードが省電力モードへ移行可能である状態であると判別できる場合に、全通信ノードの間で協調して、省電力モードへ移行できる。
The
<メッセージのフォーマット>
図3は、通信システムの一実施例に係る各通信ノードが送信するメッセージのフォーマットの一実施例を示す。メッセージには、CANフレームが適用される。図3において、(1)はメッセージ全体のフォーマットを示し、(2)はメッセージの一部分の詳細を示す。
<Message format>
FIG. 3 shows an embodiment of a format of a message transmitted by each communication node according to an embodiment of the communication system. A CAN frame is applied to the message. In FIG. 3, (1) shows the format of the entire message, and (2) shows the details of a part of the message.
図1を参照して説明した従来のメッセージのフォーマットと、IDベース領域とソースID領域とを併せた第1の領域をソースIDを付帯する領域として使用する点で異なる。IDベース領域の3ビットをソースIDを付帯する領域として使用することにより、従来の8ビットから11ビットへソースIDを付帯する領域を拡張できる。これにより、使用できるソースIDの数を増大できる。また、11ビットへソースIDを付帯する領域を拡張できることにより、CAN IDなどの各通信ノードのIDをそのままソースIDに使用でき、CAN IDの下位8ビットを重複しないように付帯しなければならない問題を解決できる。 The difference is that the conventional message format described with reference to FIG. 1 and the first area, which is a combination of the ID base area and the source ID area, are used as an area associated with the source ID. By using 3 bits of the ID base area as an area for attaching the source ID, the area for attaching the source ID can be expanded from the conventional 8 bits to 11 bits. This can increase the number of source IDs that can be used. In addition, since the area where the source ID is attached to 11 bits can be expanded, the ID of each communication node such as CAN ID can be used as the source ID as it is, and the lower 8 bits of the CAN ID must be attached so as not to overlap. Can be solved.
一方、デスティネイションID領域などの第2の領域は、データフィールドに用意されるため、8ビットから拡張することは難しい。そこで、デスティネイションID領域の8ビットのうち、上位2ビットはオフセットを示す情報を付帯する領域とし、下位6ビットはオフセットに対応する値(以下、「オフセット値」という)からの差分を付帯する領域とすることにより、11ビットで表されるCAN IDを表す。ここで、オフセットとは、複数の通信ノードに連続するIDが割り当てられる場合に、予め設定される起点となるIDである。上位2ビットにオフセットを付帯し、下位6ビットにオフセット値からの差分を付帯することにより、オフセットに対応する任意のIDから6ビットで表される数(63個)分のメッセージを表すことができる。 On the other hand, since the second area such as the destination ID area is prepared in the data field, it is difficult to expand from 8 bits. Therefore, among the 8 bits of the destination ID area, the upper 2 bits are used as an area for attaching information indicating an offset, and the lower 6 bits are attached with a difference from a value corresponding to the offset (hereinafter referred to as an “offset value”). By making it an area, it represents a CAN ID represented by 11 bits. Here, the offset is an ID that is a starting point set in advance when consecutive IDs are assigned to a plurality of communication nodes. By attaching an offset to the upper 2 bits and attaching a difference from the offset value to the lower 6 bits, it is possible to represent the number of messages (63) represented by 6 bits from any ID corresponding to the offset. it can.
<第1の通信ノード100>
図4は、第1の通信ノード100の一実施例を示す。図4には、主に、第1の通信ノード100のハードウェア構成を示す。第2の通信ノード200−第3の通信ノード300のハードウェア構成についても、図4を適用できる。
<
FIG. 4 shows an example of the
第1の通信ノード100は、通信トランシーバ102、通信回路104、CPU106、RAM108、ROM110、及びHD112を有し、それぞれはバス20を介して接続される。
The
通信トランシーバ102は、通信バス10に接続され、通信ドライバによる制御によって、通信回路104からのデータを通信バス10に送信するとともに、通信バス10からのデータを受信し、通信回路104に入力する。通信トランシーバ102は、データを送信する場合には、CANHとCANLに反転信号を送出する。通信トランシーバ102は、データを受信する場合には、CANHとCANLとの電圧差から、通信バス10上のデータが"1"であるか"0"であるかを判定する。
The
通信回路104は、通信トランシーバ102と接続され、通信バス10を介して、他の通信ノードとシリアル通信を行う。通信回路104は、CPU106からのデータを通信トランシーバ102から送信するとともに、通信トランシーバ102からのデータをCPU106に入力する。
The
CPU106は、通信回路104により実行される通信処理や、第1の通信ノード100を制御する処理を実行する。CPU106には、バッテリ電源(+B電源)が供給されるとともに、IG(イグニッション)信号が入力される。また、CPU106は、第1の通信ノード100の動作状態を制御する。第1の通信ノード100の動作状態は、CPU106が通常モードで動作しているときに起動状態(通常状態)となり、CPU106がスリープ状態に入ると、CPU106の動作に伴う消費電力が低減するとともに、通信回路104への電源供給が遮断されるため、消費電力が少ない状態である省電力モードとなる。
The
RAM108は、CPU106のワークエリアとして使用される。ROM110は、IPL(Initial Program Loader)等のCPU106の駆動に用いられるプログラムを記憶する。さらに、ROM110は、ソースIDオフセットテーブルを記憶する。
The
図5は、ソースIDオフセットテーブルの一例を示す。ソースIDオフセットテーブルは、オフセットと、オフセット値とが紐付けられることにより対応付けられる。図5に示される例では、オフセット「0h」(hは16進数を示す。以下同様)、「1h」、「2h」、及び「3h」に対して、それぞれ「360h」、「440h」、「570h」、及び「600h」が紐付けられることにより対応付けられる。図5は、一例であり、図5とは異なる2ビットでオフセットが表されてもよいし、更に、オフセット値も図5とは異なる11ビットで表されてもよい。 FIG. 5 shows an example of the source ID offset table. The source ID offset table is associated by associating an offset with an offset value. In the example shown in FIG. 5, the offset “0h” (h is a hexadecimal number, the same applies hereinafter), “1h”, “2h”, and “3h” are “360h”, “440h”, “ “570h” and “600h” are associated with each other. FIG. 5 is an example, and the offset may be represented by 2 bits different from FIG. 5, and the offset value may also be represented by 11 bits different from FIG. 5.
HD112は、通信ノード用のプログラム等の各種データを記憶する。
The
<第1の通信ノードの機能>
図6は、第1の通信ノード100の機能ブロック図を示す。第2の通信ノード200、及び第3の通信ノード300の機能ブロック図も図6を適用できる。
<Function of the first communication node>
FIG. 6 shows a functional block diagram of the
第1の通信ノード100は、メッセージ処理部1062、状態制御部1064、及びメッセージ作成部1066を有する。これら各部は、図4に示されている各構成要素のいずれかが、HD112からRAM108上に展開された通信ノード用のプログラムに従ったCPU106からの命令によって動作することで実現される機能又は手段である。
The
次に、第1の通信ノード100の各機能構成について詳細に説明する。なお、以下では、第1の通信ノード100の各機能構成を説明するにあたって、図4に示されている各構成要素のうち、第1の通信ノード100の各機能構成を実現させるための主な構成要素との関係も説明する。
Next, each functional configuration of the
図6に示されている第1の通信ノード100のメッセージ処理部1062は、図4に示されているCPU106からの命令、及び図4に示されている通信回路104によって実現される。メッセージ処理部1062には、通信回路104から、通信バス10を介して他の通信ノードから送信されたNMメッセージが入力される。メッセージ処理部1062は、他の通信ノードから送信されるNMメッセージの第2の領域に付帯される通信ノードのIDが第1の通信ノードのIDであるか否かを判定する。
The
第2の領域には、送信先の通信ノードのIDがオフセット、及びオフセットからの偏差の形式で付帯されているため、メッセージ処理部1062は、第2の領域に付帯される情報をオフセットを表す上位2ビットと、偏差を表す下位6ビットに分割する。そして、メッセージ処理部1062は、ROM110に記憶されているソースIDオフセットテーブル(図5参照)から上位2ビットに対応するオフセット値(11ビット)を取得し、このオフセット値に第2の領域に付帯される下位6ビットの偏差を11ビットで表したものを加算して、宛先の通信ノードのID(11ビット)を得る。
Since the ID of the destination communication node is attached to the second area in the form of an offset and a deviation from the offset, the
他の通信ノードから送信されるメッセージの第2の領域に付帯される通信ノードのIDが第1の通信ノードのIDである場合、メッセージ処理部1062は、そのメッセージをメッセージ作成部1066へ入力するとともに、そのメッセージのオペレーションフィールド、及びデータフィールドに付帯される通信ノードの状態を表す情報又は他の通信ノードの情報を取得し、状態制御部1064へ入力する。一方、他の通信ノードから送信されるメッセージの第2の領域に付帯される通信ノードのIDが第1の通信ノードのIDでない場合、メッセージ処理部1062は、そのメッセージを破棄する。
When the ID of the communication node attached to the second area of the message transmitted from another communication node is the ID of the first communication node, the
図6に示されている第1の通信ノード100の状態制御部1064は、図4に示されているCPU106からの命令によって実現される。状態制御部1064には、メッセージ処理部1062から、他の通信ノードから送信されたメッセージに付帯される他の通信ノードの状態を表す情報又は他の通信ノードの情報が入力される。状態制御部1064は、他の通信ノードの状態を表す情報を一時的に保持する。また、状態制御部1064は、第1の通信ノード100の状態、及びメッセージ処理部1062から入力された他の通信ノードの情報に基づいて、第1の通信ノード100の状態を制御する。例えば、第1の通信ノード100の状態が省電力モードへ移行可能である状態であり、且つメッセージ処理部1062から入力された他の通信ノードの情報も省電力モードへ移行可能である状態である場合、状態制御部1064は、第1の通信ノード100を省電力モードへ移行させる。
The
図6に示されている第1の通信ノード100のメッセージ作成部1066は、図4に示されているCPU106からの命令によって実現される。メッセージ作成部1066には、メッセージ処理部1062から、他の通信ノードから送信されたメッセージが入力される。メッセージ作成部1066は、他の通信ノードへ送信するメッセージを作成する。メッセージ作成部1066は、メッセージ処理部1062から入力されたメッセージの第1の領域に第1の通信ノード100のIDを付帯するとともに、第2の領域に送信先の通信ノードのIDを付帯する。
The
第2の領域に送信先の通信ノードのIDを付帯する際に、メッセージ作成部1066は、ROM110に記憶されているソースIDオフセットテーブル(図5参照)のオフセット値から、宛先の通信ノードのID以下の値であり、且つ宛先の通信ノードのIDに最も近い値のものを取得する。そして、メッセージ作成部1066は、宛先の通信ノードのIDから取得したオフセット値を減算した値を6ビットで表すことにより偏差を求める。メッセージ作成部1066は、第2のID領域に取得したオフセット値に紐付けられたオフセット(2ビット)、及び偏差(6ビット)を付帯する。
When attaching the ID of the destination communication node to the second area, the
さらに、メッセージ作成部1066は、状態制御部1064から第1の通信ノード100の状態を表す情報を取得し、メッセージのオペレーションフィールド、及びデータフィールドに付帯し、通信回路104へ入力する。通信回路104へ入力されたメッセージは、通信トランシーバ102から通信バス10へ送信される。
Further, the
<第1の通信ノード100の動作>
図7は、第1の通信ノード100の動作の一実施例を示す。第2の通信ノード200、及び第3の通信ノード300の動作についても、図7を適用できる。
<Operation of
FIG. 7 shows an example of the operation of the
図7では、第1の通信ノード100が、他の通信ノードから該他の通信ノード状態を付帯したNMメッセージを受信する処理について説明する。
FIG. 7 illustrates a process in which the
ステップS702では、第1の通信ノード100のCPU106は、イグニッションがオフであるか否かを判定する。車両のイグニッションがオフにされるとイグニッションオフ信号がCPU106へ入力される。CPU106は、イグニッションオフ信号が入力されたか否かに基づいて、イグニッションがオフであるか否かを判定する。イグニッションがオフでなく、イグニッションがオンである場合、ステップS702へ戻る。
In step S702, the
ステップS704では、ステップS702で、イグニッションがオフであると判定した場合、第1の通信ノード100の通信回路104は、他の通信ノードから送信されたメッセージを受信する。イグニッションがオフである場合には、他の通信ノードからNMメッセージが送信され、通信回路104は、そのNMメッセージを受信する。
In step S704, when it is determined in step S702 that the ignition is off, the
ステップS706では、第1の通信ノード100のメッセージ処理部1062は、他の通信ノードから送信されたメッセージの第2の領域に第1の通信ノード100のIDが付帯されているか否かを判定する。これにより、第1の通信ノード100は、他の通信ノードから送信されたメッセージが第1の通信ノード100を送信先とするNMメッセージであるか否かを判定できる。他の通信ノードから送信されたNMメッセージの第2の領域に第1の通信ノード100のIDが付帯されていない場合、そのメッセージは第1の通信ノード100を送信先とするメッセージでないため、ステップS702へ戻る。他のメッセージから送信されたメッセージが第1の通信ノード100を送信先とするメッセージでない場合、そのメッセージを破棄するようにしてもよい。
In step S706, the
ステップS708では、ステップS706で、他の通信ノードから送信されたNMメッセージが第1の通信ノード100を送信先とするNMメッセージであると判定した場合、メッセージ処理部1062は、そのメッセージのオペレーションフィールド、及びデータフィールドに付帯される他の通信ノードの状態情報を取得し、状態制御部1064に他の通信ノードの状態情報を入力する。
In step S708, when it is determined in step S706 that the NM message transmitted from another communication node is an NM message destined for the
ステップS710では、第1の通信ノード100のメッセージ作成部1066は、自第1の通信ノード100の状態情報を取得する。
In step S710, the
ステップS712では、メッセージ作成部1066は、他の通信ノードから送信されたNMメッセージの第1の領域に第1の通信ノード100のIDを付帯する。
In step S712, the
ステップS714では、メッセージ作成部1066は、他の通信ノードから送信されたメッセージの第2の領域に宛先の通信ノード100のIDをオフセットと、オフセットからの偏差の形式で付帯する。
In step S714, the
ステップS716では、メッセージ作成部1066は、状態制御部1064から取得した第1の通信ノード100の状態情報を、他の通信ノードから送信されたメッセージのオペレーションフィールド、及びデータフィールドに付帯する。
In step S716, the
ステップS718では、メッセージ作成部1066は、通信回路104へ、ソースID領域に第1の通信ノード100のID、デスティネイションID領域に宛先の通信ノード100のID、オペレーションフィールド、及びデータフィールドに第1の通信ノード100の状態情報を付帯したメッセージを入力する。通信回路104は、メッセージ作成部1066から入力されたメッセージを通信トランシーバ102から送信する。
In step S718, the
<通信システムの動作の一例>
図8は、通信システムの一実施例を示す。図8に示される例では、通信システムは、通信ノードA400、通信ノードB500、通信ノードC600、及び通信ノードD700により構成され、各通信ノードは、通信バス10を介して接続される。通信ノードA400から送信される論理リングは、通信ノードB500、通信ノードC600、及び通信ノードD700の順序で送信される。通信ノードA400、通信ノードB500、通信ノードC600、及び通信ノードD700のハードウェア構成、及び機能ブロックは、上述した第1の通信ノード100のものを適用できる。
<Example of operation of communication system>
FIG. 8 shows an embodiment of a communication system. In the example illustrated in FIG. 8, the communication system includes a
通信ノードA400のIDは「600h」であり、通信ノードB500のIDは「605h」であり、通信ノードC600のIDは「580h」であり、通信ノードD700のIDは「395h」である。また、各通信ノードのROM110には、図9に示されるソースIDオフセットテーブルが記憶される。
The ID of the communication node A400 is “600h”, the ID of the communication node B500 is “605h”, the ID of the communication node C600 is “580h”, and the ID of the communication node D700 is “395h”. Further, the
通信システムの動作について説明する。 The operation of the communication system will be described.
通信ノードA400のメッセージ作成部1066は、第1の領域に自通信ノードA400のID(600h)を付帯し、第2の領域に送付先の通信ノードB500のID(605h)を付帯する。第2の領域に送付先の通信ノードB500のID(605h)を付帯する際に、メッセージ作成部1066は、第2の領域の上位2ビットに3h(600h)を付帯するとともに、下位6ビットに「000101」(005h)を付帯する。つまり、メッセージ作成部1066は、第2の領域に「11000101」を付帯する。さらに、メッセージ作成部1066は、オペレーションフィールド、及びデータフィールドに通信ノードA400の状態情報などのネットワークマネジメント情報を付帯し、メッセージを作成する。
The
メッセージ作成部1066は、メッセージを通信回路104へ入力し、通信回路104は、通信トランシーバ102からメッセージを送信する。
通信ノードA400から送信されたメッセージは、通信ノードB500−通信ノードD700に受信される。通信ノードB500−通信ノードD700の各々は、メッセージに付帯される第2の領域に付帯される情報を解析する。通信ノードB500−通信ノードD700のメッセージ処理部1062は、第2の領域に付帯される情報を上位2ビット、及び下位6ビットに分割する。メッセージ処理部1062は、ROM110に記憶されるセルIDオフセットテーブルから上位2ビットに対応するオフセット値を取得し、そのオフセット値と下位6ビットを11ビットで表したものとを加算し、送信先の通信ノードのIDを得る。具体的には、第2の領域に付帯される「11000101」を上位2ビット「11」と下位6ビット「000101」に分割する。そして、メッセージ処理部1062は、セルIDオフセットテーブル(図9参照)から上位2ビット「11」に紐付けられたオフセット値「600h」を取得し、この「600h」と下位6ビットを11ビットで表した「005h」とを加算し、「605h」を得る。通信ノードのIDが「605h」であるのは、通信ノードB500であるので、通信ノードB500のメッセージ処理部1062は、メッセージのオペレーションフィールド、及びデータフィールドに付帯される通信ノードの状態情報を状態制御部1064へ入力するとともに、メッセージ作成部1066へメッセージを入力する。一方、通信ノードC600、及び通信ノードD700のメッセージ処理部1062は、メッセージを破棄する。
The message transmitted from
通信ノードB500のメッセージ作成部1066は、第1の領域に自通信ノードB500のID(605h)を付帯し、第2の領域に送付先の通信ノードC600のID(580h)を付帯する。第2の領域に送付先の通信ノードC600のID(580h)を付帯する際に、メッセージ作成部1066は、第2の領域の上位2ビットに2h(570h)を付帯するとともに、下位6ビットに「001010」(010h)を付帯する。つまり、メッセージ作成部1066は、第2の領域に「10001010」を付帯する。さらに、メッセージ作成部1066は、オペレーションフィールド、及びデータフィールドにネットワークマネジメント情報を付帯し、メッセージを作成する。
The
メッセージ作成部1066は、メッセージを通信回路104へ入力し、通信回路104は、通信トランシーバ102からメッセージを送信する。
通信ノードB500から送信されたメッセージは、通信ノードA400、通信ノードC600、及び通信ノードD700に受信される。通信ノードA400、通信ノードC600、及び通信ノードD700の各々は、メッセージに付帯される第2の領域に付帯される情報を解析する。通信ノードA400、通信ノードC600、及び通信ノードD700のメッセージ処理部1062は、第2の領域に付帯される情報を上位2ビット、及び下位6ビットに分割する。メッセージ処理部1062は、ROM110に記憶されるセルIDオフセットテーブルから上位2ビットに対応するオフセット値を取得し、そのオフセット値と下位6ビットを11ビットで表したものとを加算し、送信先の通信ノードのIDを得る。具体的には、第2の領域に付帯される「10001010」を上位2ビット「10」と下位6ビット「001010」に分割する。そして、メッセージ処理部1062は、セルIDオフセットテーブル(図9参照)から上位2ビット「10」に紐付けられたオフセット値「570h」を取得し、この「570h」と下位6ビットを11ビットで表した「010h」とを加算し、「580h」を得る。通信ノードのIDが「580h」であるのは、通信ノードC600であるので、通信ノードC600のメッセージ処理部1062は、メッセージのデータフィールドに付帯される通信ノードの状態情報を状態制御部1064へ入力するとともに、メッセージ作成部1066へメッセージを入力する。一方、通信ノードA500、及び通信ノードD700のメッセージ処理部1062は、メッセージを破棄する。
The message transmitted from the communication node B500 is received by the communication node A400, the communication node C600, and the communication node D700. Each of
通信ノードC600のメッセージ作成部1066は、第1の領域に自通信ノードC600のID(580h)を付帯し、第2の領域に送付先の通信ノードD700のID(395h)を付帯する。第2の領域に送付先の通信ノードD700のID(395h)を付帯する際に、メッセージ作成部1066は、第2の領域の上位2ビットに0h(360h)を付帯するとともに、下位6ビットに「010011」(035h)を付帯する。つまり、メッセージ作成部1066は、第2の領域に「00010011」を付帯する。さらに、メッセージ作成部1066は、オペレーションフィールド、及びデータフィールドにネットワークマネジメント情報を付帯し、メッセージを作成する。
The
メッセージ作成部1066は、メッセージを通信回路104へ入力し、通信回路104は、通信トランシーバ102からメッセージを送信する。
通信ノードC600から送信されたメッセージは、通信ノードA400、通信ノードB500、及び通信ノードD700に受信される。通信ノードA400、通信ノードB500、及び通信ノードD700の各々は、メッセージに付帯される第2の領域に付帯される情報を解析する。通信ノードA400、通信ノードB500、及び通信ノードD700のメッセージ処理部1062は、第2の領域に付帯される情報を上位2ビット、及び下位6ビットに分割する。メッセージ処理部1062は、ROM110に記憶されるセルIDオフセットテーブルから上位2ビットに対応するオフセット値を取得し、そのオフセット値と下位6ビットを11ビットで表したものとを加算し、送信先の通信ノードのIDを得る。具体的には、第2の領域に付帯される「00010011」を上位2ビット「00」と下位6ビット「010011」に分割する。そして、メッセージ処理部1062は、セルIDオフセットテーブル(図9参照)から上位2ビット「00」に紐付けられたオフセット値「360h」を取得し、この「360h」と下位6ビットを11ビットで表した「035h」とを加算し、「395h」を得る。通信ノードのIDが「395h」であるのは、通信ノードD700であるので、通信ノードD700のメッセージ処理部1062は、メッセージのオペレーションフィールド、及びデータフィールドに付帯される通信ノードの状態情報を状態制御部1064へ入力するとともに、メッセージ作成部1066へメッセージを入力する。一方、通信ノードA500、及び通信ノードB600のメッセージ処理部1062は、メッセージを破棄する。
The message transmitted from the communication node C600 is received by the communication node A400, the communication node B500, and the communication node D700. Each of
通信ノードD700のメッセージ作成部1066は、第1の領域に自通信ノードD700のID(395h)を付帯し、第2の領域に送付先の通信ノードA400のID(600h)を付帯する。第2の領域に送付先の通信ノードA400のID(600h)を付帯する際に、メッセージ作成部1066は、第2の領域の上位2ビットに3h(600h)を付帯するとともに、下位6ビットに「000000」(000h)を付帯する。つまり、メッセージ作成部1066は、第2の領域に「11000000」を付帯する。さらに、メッセージ作成部1066は、オペレーションフィールド、及びデータフィールドにネットワークマネジメント情報を付帯し、メッセージを作成する。
The
メッセージ作成部1066は、メッセージを通信回路104へ入力し、通信回路104は、通信トランシーバ102からメッセージを送信する。
通信ノードD700から送信されたメッセージは、通信ノードA400、通信ノードB500、及び通信ノードC600に受信される。通信ノードA400、通信ノードB500、及び通信ノードC600の各々は、メッセージに付帯される第2の領域に付帯される情報を解析する。通信ノードA400、通信ノードB500、及び通信ノードC600のメッセージ処理部1062は、第2の領域に付帯される情報を上位2ビット、及び下位6ビットに分割する。メッセージ処理部1062は、ROM110に記憶されるオフセットテーブルから上位2ビットに対応するオフセット値を取得し、そのオフセット値と下位6ビットを11ビットで表したものとを加算し、送信先の通信ノードのIDを得る。具体的には、第2の領域に付帯される「11000000」を上位2ビット「11」と下位6ビット「000000」に分割する。そして、メッセージ処理部1062は、セルIDオフセットテーブル(図9参照)から上位2ビット「11」に紐付けられたオフセット値「600h」を取得し、この「600h」と下位6ビットを11ビットで表した「000h」とを加算し、「600h」を得る。通信ノードのIDが「600h」であるのは、通信ノードA400であるので、通信ノードA400のメッセージ処理部1062は、メッセージのオペレーションフィールド、及びデータフィールドに付帯される通信ノードの状態情報を状態制御部1064へ入力するとともに、メッセージ作成部1066へメッセージを入力する。一方、通信ノードB500、及び通信ノードC600のメッセージ処理部1062は、メッセージを破棄する。
The message transmitted from the communication node D700 is received by the communication node A400, the communication node B500, and the communication node C600. Each of
通信ノードA400は、NMメッセージに付帯される通信ノードD400の状態を表す情報を取得し、そのNMメッセージの第1の領域に自通信ノードA400のIDを付帯し、第2の領域に宛先の通信ノードB500のIDを付帯するとともに、オペレーションフィールド、及びデータフィールドに他の通信ノードの情報を付帯したNMメッセージを作成し、送信する。
The
以降の処理は、上述した処理を適用できる。 The processing described above can be applied to subsequent processing.
通信システムの一実施例によれば、通信ノードによって送信されるメッセージに送信元の通信ノードのID(識別子)を付帯する領域として、ソースID領域の8ビットに加え、現在運用されていないIDベース領域の3ビットを使用する。これにより、送信元の通信ノードのIDの数を増加させることができる。また、これまで、ソースID領域の8ビットに、通信ノードのIDの11ビットの下位8ビットを重複しないように割り当てる必要があったが、通信ノードのIDの11ビットをそのままIDベース領域の3ビットとソースID領域の8ビットとを併せた第1の領域に付帯することで、その制約をなくすことができる。 According to one embodiment of the communication system, in addition to the 8 bits of the source ID area, an ID base that is not currently used as an area to accompany the message transmitted by the communication node with the ID (identifier) of the source communication node Use 3 bits of the region. Thereby, the number of IDs of the source communication node can be increased. In the past, it was necessary to assign the lower 8 bits of the 11 bits of the communication node ID to the 8 bits of the source ID area so that they do not overlap. By attaching the bit and the first area including the 8 bits of the source ID area, the restriction can be eliminated.
さらに、通信ノードによって送信されるメッセージに送信先の通信ノードのIDを付帯する領域として、デスティネイションID領域の8ビットを使用する際に、上位の2ビットをオフセットに割り当て、下位の6ビットをその2ビットに割り当てた任意のオフセットからの偏差に割り当てる。このように、上位の2ビットをオフセットに割り当て、下位の6ビットを偏差に割り当てることにより、任意のオフセット値から6ビットで表される数のデスティネイションIDを指定することができる。つまり、送信元の通信ノードのID(識別子)を付帯できる領域の情報量が拡張され、送信先の通信ノードのID(識別子)を付帯できる領域の情報量と異なるようになった場合でも、送信先の通信ノードのIDは、送信元の通信ノードのIDとは異なる形式で付帯されるため、送信先の通信ノードのIDを付帯する領域を拡張することなく対応できる。 In addition, when using the 8 bits of the destination ID area as an area for attaching the ID of the destination communication node to the message transmitted by the communication node, the upper 2 bits are assigned to the offset, and the lower 6 bits are assigned. Assign to the deviation from the arbitrary offset assigned to the 2 bits. In this way, by assigning the upper 2 bits to the offset and assigning the lower 6 bits to the deviation, it is possible to specify the number of destination IDs represented by 6 bits from an arbitrary offset value. In other words, even if the amount of information in the area that can accompany the ID (identifier) of the source communication node is expanded, and the amount of information in the area that can accompany the ID (identifier) of the destination communication node is different, Since the ID of the destination communication node is attached in a format different from the ID of the source communication node, it is possible to cope without expanding the area attached with the ID of the destination communication node.
<第2の実施例>
<通信システム>
第2の実施例に係る通信システムは、図2を適用できる。
<Second embodiment>
<Communication system>
FIG. 2 can be applied to the communication system according to the second embodiment.
<メッセージのフォーマット>
図10は、通信システムの一実施例に係る各通信ノードが送信するメッセージのフォーマットの一実施例を示す。メッセージには、CANフレームが適用される。図10において、(1)はメッセージ全体のフォーマットを示し、(2)はメッセージの一部分の詳細を示す。
<Message format>
FIG. 10 shows an embodiment of a format of a message transmitted by each communication node according to an embodiment of the communication system. A CAN frame is applied to the message. In FIG. 10, (1) shows the format of the entire message, and (2) shows the details of a part of the message.
図10に示すNMメッセージのフォーマットは、図1を参照して説明した従来のメッセージのフォーマットと、IDベース領域に付帯される値が可変である点で異なる。IDベース領域に付帯される情報は、ソースID領域に付帯される値に応じて、決定される。ソースID領域に付帯される値に応じて、IDベース領域に付帯される情報を異ならせることにより、第1の実施例と比較して、ソースID領域に付帯されるCAN IDの下位8ビットを付帯した場合でも、ソースIDの数を増加させることができるため、ソースIDの枯渇に対応できる。 The format of the NM message shown in FIG. 10 is different from the conventional message format described with reference to FIG. 1 in that the value attached to the ID base area is variable. Information attached to the ID base area is determined according to a value attached to the source ID area. Compared with the first embodiment, the lower 8 bits of the CAN ID attached to the source ID area are changed by changing the information attached to the ID base area according to the value attached to the source ID area. Even if it is incidental, the number of source IDs can be increased, so it is possible to cope with the exhaustion of source IDs.
第1の通信ノード100のハードウェア構成は、図4を適用できる。ただし、ROM110には、IDベースオフセットテーブルが記憶される。
FIG. 4 can be applied to the hardware configuration of the
図11は、IDベースオフセットテーブルの一例を示す。IDベースオフセットテーブルは、IDベースと、IDベースに対応するソースIDの範囲とが紐付けられることにより対応付けられる。図11に示される例では、IDベース「3h」、「4h」、及び「5h」に対して、それぞれ「00h−40h」、「41h−5Fh」、及び「60h−6Fh」が紐付けられることにより対応付けられる。図11は、一例であり、図11とは異なるIDベースと、ソースIDの範囲とが紐付けられてもよいし、図11のIDベースに異なるソースIDの範囲が紐付けられてもよい。ソースIDに応じて、異なるIDベースを付帯することにより、CAN IDの下位8ビットは同じ値であってもIDベースを異ならせることができるため、下位8ビットが同じであるCAN IDを割り当てることができる。下位8ビットが同じであるCAN IDを割り当てることができるため、使用できるソースIDの数を増大できる。 FIG. 11 shows an example of the ID base offset table. The ID base offset table is associated by associating the ID base with the range of the source ID corresponding to the ID base. In the example shown in FIG. 11, “00h-40h”, “41h-5Fh”, and “60h-6Fh” are associated with the ID bases “3h”, “4h”, and “5h”, respectively. Are associated with each other. FIG. 11 is an example, and an ID base different from FIG. 11 and a source ID range may be associated with each other, or a different source ID range may be associated with the ID base of FIG. 11. By assigning different ID bases according to the source ID, even if the lower 8 bits of the CAN ID have the same value, the ID base can be made different, so assign the CAN ID with the same lower 8 bits. Can do. Since CAN IDs having the same lower 8 bits can be assigned, the number of usable source IDs can be increased.
第1の通信ノード100の機能ブロック図は、図6を適用できる。
FIG. 6 can be applied to the functional block diagram of the
第1の通信ノード100のメッセージ処理部1062は、図4に示されているCPU106からの命令、及び図4に示されている通信回路104によって実現される。メッセージ処理部1062には、通信回路104から、通信バス10を介して他の通信ノードから送信されたメッセージが入力される。メッセージ処理部1062は、他の通信ノードから送信されるメッセージのデスティネイションID領域に付帯される通信ノードのIDが第1の通信ノードのIDであるか否かを判定する。
The
デスティネイションID領域には、宛先の通信ノードのIDの下位8ビットが付帯されているため、メッセージ処理部1062は、デスティネイションID領域から、宛先の通信ノードのIDの下位8ビットを取得する。
Since the lower 8 bits of the ID of the destination communication node are attached to the destination ID area, the
他の通信ノードから送信されるメッセージのデスティネイションID領域に付帯される通信ノードのIDが第1の通信ノードのIDである場合、メッセージ処理部1062は、そのメッセージをメッセージ作成部1066へ入力するとともに、そのメッセージのデータフィールドに付帯される通信ノードの状態を表す情報を取得し、状態制御部1064へ入力する。一方、他の通信ノードから送信されるメッセージのデスティネイションID領域に付帯される通信ノードのIDが第1の通信ノードのIDでない場合、メッセージ処理部1062は、そのメッセージを破棄する。
When the ID of the communication node attached to the destination ID area of the message transmitted from another communication node is the ID of the first communication node, the
第1の通信ノード100の状態制御部1064は、図4に示されているCPU106からの命令によって実現される。状態制御部1064には、メッセージ処理部1062から、他の通信ノードから送信されたメッセージに付帯される他の通信ノードの情報が入力される。状態制御部1064は、第1の通信ノード100の状態、及びメッセージ処理部1062から入力された他の通信ノードの情報に基づいて、第1の通信ノード100の状態を制御する。例えば、第1の通信ノード100の状態が省電力モードへ移行可能である状態であり、且つメッセージ処理部1062から入力された他の通信ノードの情報も省電力モードへ移行可能である状態である場合、状態制御部1064は、第1の通信ノード100を省電力モードへ移行させる。
The
第1の通信ノード100のメッセージ作成部1066は、図4に示されているCPU106からの命令によって実現される。メッセージ作成部1066には、メッセージ処理部1062から、他の通信ノードから送信されたメッセージが入力される。メッセージ作成部1066は、他の通信ノードへ送信するメッセージを作成する。メッセージ作成部1066は、メッセージ処理部1062から入力されたメッセージのソースID領域に第1の通信ノード100のIDの下位8ビットを付帯するとともに、IDベース領域にIDベース値を付帯する。IDベース領域にIDベース値を付帯する際に、メッセージ作成部1066は、ROM110に記憶されているIDベースオフセットテーブル(図11参照)から第1の通信ノード100のIDの下位8ビットに紐付けられたIDベース値を取得し、IDベース領域に付帯する。
The
さらに、メッセージ作成部1066は、状態制御部1064から第1の通信ノード100の状態を表す情報を取得し、メッセージのデータフィールドに付帯し、通信回路104へ入力する。通信回路104へ入力されたメッセージは、通信トランシーバ102から通信バス10へ送信される。
Further, the
通信システムの一実施例によれば、通信ノードによって送信されるメッセージに送信元の通信ノードのID(識別子)に応じて異なる値をIDベース領域に付帯する。これにより、送信元の通信ノードのIDの数を増加させることができる。また、これまで、ソースID領域の8ビットに、通信ノードのIDの11ビットの下位8ビットを重複しないように割り当てる必要があったが、送信元の通信ノードのIDに応じて異なる値をIDベース領域に付帯することで、その制約をなくすことができる。 According to an embodiment of the communication system, different values are attached to the ID base area in accordance with the ID (identifier) of the transmission source communication node in the message transmitted by the communication node. Thereby, the number of IDs of the source communication node can be increased. Up to now, it was necessary to assign the lower 8 bits of the 11 bits of the communication node ID to the 8 bits of the source ID area so that they do not overlap, but a different value depending on the ID of the source communication node By attaching to the base region, the restriction can be removed.
<通信システムの適用例>
上述した第1の実施例及び第2の実施例に係る通信システムをパーシャルネットワークマネジメント(PNM: Partial Network Management)に適用した例を示す。通常のネットワークマネジメントでは、起動を継続する状態と、省電力モードへ移行可能である状態の協調制御は、通信バスに接続される全ての通信ノードで実行される。しかし、パーシャルネットワークマネジメントでは、通信バスに接続される複数の通信ノードの一部の通信ノードで行うことができる。
<Application example of communication system>
The example which applied the communication system which concerns on the 1st Example mentioned above and the 2nd Example to Partial Network Management (PNM: Partial Network Management) is shown. In normal network management, cooperative control between a state in which activation is continued and a state in which a transition to the power saving mode can be performed is executed in all communication nodes connected to the communication bus. However, partial network management can be performed at some of the communication nodes connected to the communication bus.
図12は、パーシャルネットワークマネジメントの従来例を示す。 FIG. 12 shows a conventional example of partial network management.
通信バス10には、通信ノードA40、通信ノードB50、通信ノードC60、及び通信ノードD70が接続されている。複数の通信ノードのうち、通信ノードA40、通信ノードB50、及び通信ノードC60はグループ1を構成し、通信ノードC60、及び通信ノードD70はグループ2を構成する。この通信システムにパーシャルネットワークマネジメントを適用した場合について説明する。
A communication node A40, a communication node B50, a communication node C60, and a communication node D70 are connected to the
通信ノードD70は、省電力モードへ移行可能である状態である。一方、通信ノードD70と同じグループ2に属する通信ノードC60は、通信ノードBと通信を継続する要求により、NMメッセージのオペレーションフィールド、及びデータフィールドに起動を継続する状態を表す情報を付帯して送信する。このため、通信ノードD70は、省電力モードへ移行可能である状態にもかかわらず、通信ノードC60が起動を継続する状態であるため、省電力モードへ移行できない。つまり、通信ノードC60はグループ1及びグループ2の両方に属しているため、グループ1に属する通信ノードA40、通信ノードB50、及び通信ノードC60が省電力モードへ移行可能状態とならないと、通信ノードC60と同じグループ2に属している通信ノードD70も省電力モードへ移行できない。
The communication node D70 is in a state where it can shift to the power saving mode. On the other hand, the communication node C60 belonging to the
図13は、パーシャルネットワークマネジメントの一実施例を示す。 FIG. 13 shows an embodiment of partial network management.
通信バス10には、通信ノードA400、通信ノードB500、通信ノードC600、及び通信ノードD700が接続されている。通信ノードA400、通信ノードB500、通信ノードC600、及び通信ノードD700のハードウェア構成、及び機能ブロックは、上述した第1の通信ノード100のものを適用できる。複数の通信ノードのうち、通信ノードA400、通信ノードB500、及び通信ノードC600はグループ1を構成し、通信ノードC600、及び通信ノードD700はグループ2を構成する。この通信システムにパーシャルネットワークマネジメントを適用した場合について説明する。
A communication node A400, a communication node B500, a communication node C600, and a communication node D700 are connected to the
上述した実施例では、各通信ノードへ割り当てるソースIDを増加させることができるため、通信ノードC600にグループ1に対応するソースIDとグループ2に対応するソースIDを割り当てることができる。通信ノードC600にグループ1に対応するソースIDとグループ2に対応するソースIDを割り当てた場合、通信ノードC600は、グループ1に属する通信ノード間を伝送するNMメッセージには、起動を継続する状態を表す情報を付帯して送信し、グループ2に属する通信ノード間を伝送するNMメッセージには、省電力モードへ移行可能である状態を表す情報を付帯して送信できる。このようにすることにより、通信ノードD700は、省電力状態へ移行できる。
In the embodiment described above, since the source ID assigned to each communication node can be increased, the source ID corresponding to the
上述した実施例では、各通信ノードが送信するメッセージの一例として、NMメッセージについて説明したが、NMメッセージに限らず、送信元の通信ノードの識別子、及び送信先の通信ノードの識別子を付帯するメッセージに適用できる。 In the above-described embodiment, the NM message has been described as an example of the message transmitted by each communication node. Applicable to.
以上、本発明は特定の実施例を参照しながら説明されてきたが、各実施例は単なる例示に過ぎず、当業者は様々な変形例、修正例、代替例、置換例等を理解するであろう。説明の便宜上、本発明の実施例に従った装置は機能的なブロック図を用いて説明されたが、そのような装置はハードウェアで、ソフトウェアで又はそれらの組み合わせで実現されてもよい。本発明は上記実施例に限定されず、本発明の精神から逸脱することなく、様々な変形例、修正例、代替例、置換例等が包含される。 Although the present invention has been described above with reference to specific embodiments, each embodiment is merely an example, and those skilled in the art will understand various variations, modifications, alternatives, substitutions, and the like. I will. For convenience of explanation, an apparatus according to an embodiment of the present invention has been described using a functional block diagram, but such an apparatus may be implemented in hardware, software, or a combination thereof. The present invention is not limited to the above-described embodiments, and various variations, modifications, alternatives, substitutions, and the like are included without departing from the spirit of the present invention.
10 通信バス
100 第1の通信ノード
102 通信トランシーバ
104 通信回路
106 CPU
108 RAM
110 ROM
112 HD
200 第2の通信ノード
300 第3の通信ノード
400 通信ノードA
500 通信ノードB
600 通信ノードC
1062 メッセージ処理部
1064 状態制御部
1066 メッセージ作成部
10
108 RAM
110 ROM
112 HD
200
500 Communication Node B
600 Communication node C
1062
Claims (9)
送信元の通信ノードの識別子、及び送信先の通信ノードの識別子を付帯したメッセージを作成する制御部と、
前記制御部で作成したメッセージを送信する送信部と
を有し、
前記制御部は、前記メッセージに前記送信元の通信ノードの識別子を付帯する際に、前記送信元の通信ノードの識別子を付帯する領域と運用していない付加情報領域とを併せた第1の領域に、自通信ノードの識別子を付帯する、通信ノード。 One of a plurality of communication nodes mounted on a vehicle and connected to a communication bus,
A control unit for creating a message attached with an identifier of a communication node of a transmission source and an identifier of a communication node of a transmission destination;
A transmission unit for transmitting the message created by the control unit,
When the control unit appends the identifier of the transmission source communication node to the message, the control unit includes a first region that combines a region that accompanies the identifier of the transmission source communication node and a non-operating additional information region A communication node that accompanies the identifier of its own communication node.
前記制御部は、前記第1の領域に前記自通信ノードの識別子を付帯する場合の形式と異なる形式で、前記第2の領域に前記送信先の通信ノードの識別子を付帯する、請求項1に記載の通信ノード。 The amount of information that can be attached to the first area is different from the amount of information that can be attached to the second area that accompanies the identifier of the destination communication node,
The control unit attaches the identifier of the destination communication node to the second region in a format different from the format in which the identifier of the own communication node is attached to the first region. The listed communication node.
前記送信部は、前記制御部によって前記自通信ノードの状態を表す情報が付帯されたメッセージを送信する、請求項1ないし3のいずれか1項に記載の通信ノード。 When the ignition of the vehicle is off, the control unit attaches information indicating the state of the communication node to the message,
The communication node according to any one of claims 1 to 3, wherein the transmission unit transmits a message attached with information indicating a state of the communication node by the control unit.
前記複数の通信ノードの各々は、
送信元の通信ノードの識別子、及び送信先の通信ノードの識別子を付帯したメッセージを作成する制御部と、
前記制御部で作成したメッセージを送信する送信部と
を有し、
前記制御部は、前記メッセージに前記送信元の通信ノードの識別子を付帯する際に、前記送信元の通信ノードの識別子を付帯する領域と運用していない付加情報領域とを併せた第1の領域に、自通信ノードの識別子を付帯する、通信システム。 A communication system mounted on a vehicle and having a plurality of communication nodes connected to a communication bus,
Each of the plurality of communication nodes is
A control unit for creating a message attached with an identifier of a communication node of a transmission source and an identifier of a communication node of a transmission destination;
A transmission unit for transmitting the message created by the control unit,
When the control unit appends the identifier of the transmission source communication node to the message, the control unit includes a first region that combines a region that accompanies the identifier of the transmission source communication node and a non-operating additional information region A communication system that accompanies the identifier of the communication node.
前記制御部は、前記第1の領域に前記自通信ノードの識別子を付帯する場合の形式と異なる形式で、前記第2の領域に前記送信先の通信ノードの識別子を付帯する、請求項6に記載の通信システム。 The amount of information that can be attached to the first area is different from the amount of information that can be attached to the second area that accompanies the identifier of the destination communication node,
The control unit attaches an identifier of the destination communication node to the second area in a format different from a format in which the identifier of the own communication node is attached to the first area. The communication system described.
送信元の通信ノードの識別子、及び送信先の通信ノードの識別子を付帯したメッセージを作成し、
前記作成したメッセージを送信し、
前記メッセージに前記送信元の通信ノードの識別子を付帯する際に、前記送信元の通信ノードの識別子を付帯する領域と運用していない付加情報領域とを併せた第1の領域に、自通信ノードの識別子を付帯する、通信方法。 A communication method mounted on a vehicle and executed by one of a plurality of communication nodes connected to a communication bus,
Create a message with the identifier of the source communication node and the identifier of the destination communication node,
Send the created message,
When the identifier of the transmission source communication node is attached to the message, the local communication node is included in a first area that combines the area where the transmission source communication node identifier is attached and the additional information area that is not operated. A communication method with an identifier.
前記第1の領域に前記自通信ノードの識別子を付帯する場合の形式と異なる形式で、前記第2の領域に前記送信先の通信ノードの識別子を付帯する、請求項8に記載の通信方法。 The amount of information that can be attached to the first area is different from the amount of information that can be attached to the second area that accompanies the identifier of the destination communication node,
The communication method according to claim 8, wherein the identifier of the destination communication node is attached to the second area in a format different from the form in which the identifier of the communication node is attached to the first area.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014052586A JP2015177365A (en) | 2014-03-14 | 2014-03-14 | Communication node, communication system and communication method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2014052586A JP2015177365A (en) | 2014-03-14 | 2014-03-14 | Communication node, communication system and communication method |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2015177365A true JP2015177365A (en) | 2015-10-05 |
Family
ID=54256122
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2014052586A Withdrawn JP2015177365A (en) | 2014-03-14 | 2014-03-14 | Communication node, communication system and communication method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2015177365A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107086930A (en) * | 2017-04-24 | 2017-08-22 | 北京汽车研究总院有限公司 | A kind of vehicle configuration method, device and automobile |
| JP2022090901A (en) * | 2020-12-08 | 2022-06-20 | トヨタ自動車株式会社 | On-vehicle network system |
-
2014
- 2014-03-14 JP JP2014052586A patent/JP2015177365A/en not_active Withdrawn
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107086930A (en) * | 2017-04-24 | 2017-08-22 | 北京汽车研究总院有限公司 | A kind of vehicle configuration method, device and automobile |
| JP2022090901A (en) * | 2020-12-08 | 2022-06-20 | トヨタ自動車株式会社 | On-vehicle network system |
| JP7484687B2 (en) | 2020-12-08 | 2024-05-16 | トヨタ自動車株式会社 | In-vehicle network system |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP4950704B2 (en) | In-vehicle relay connection unit | |
| CN112099464B (en) | Communication method of Ethernet for vehicle | |
| CN103685457A (en) | Automotive neural network | |
| KR102337548B1 (en) | Method for diagnosing network and apparatus for the same | |
| CN104333511A (en) | Method, device and system for determining service transmission path | |
| JP2008054089A (en) | Apparatus and method for relaying packets | |
| JP6981114B2 (en) | Vehicle network system | |
| EP3531627B1 (en) | Auto-negotiation method and device for port | |
| KR102446092B1 (en) | How to diagnose link status in the network | |
| JP2016195329A (en) | Setting method, communication device, and master device | |
| JP2015177365A (en) | Communication node, communication system and communication method | |
| JP5063655B2 (en) | Communication gateway device | |
| KR20180038970A (en) | Operation method of communication node for selective wakeup in vehicle network | |
| JP2018056627A (en) | Relay device | |
| KR102362611B1 (en) | Method for transmitting and receiving data in automotive network and apparatus for the same | |
| EP1901497A1 (en) | Apparatus for low latency communications through an alternate path | |
| JP6593230B2 (en) | Communications system | |
| JP2014187544A (en) | Communication system, communication node, and communication method | |
| KR20190114748A (en) | Method and apparatus for setting backup path in automotive network | |
| JP6683101B2 (en) | Communications system | |
| JP2017114406A (en) | Network system | |
| EP4576620A1 (en) | Relay device, communication network system, relay method, and computer program | |
| JP2020162038A (en) | Relay device | |
| JP6583029B2 (en) | Relay device | |
| JP2004139319A (en) | Serial communication circuit |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20160516 |
|
| A761 | Written withdrawal of application |
Free format text: JAPANESE INTERMEDIATE CODE: A761 Effective date: 20160908 |