JP2006191339A - Gateway apparatus for transferring message between buses - Google Patents

Gateway apparatus for transferring message between buses Download PDF

Info

Publication number
JP2006191339A
JP2006191339A JP2005001122A JP2005001122A JP2006191339A JP 2006191339 A JP2006191339 A JP 2006191339A JP 2005001122 A JP2005001122 A JP 2005001122A JP 2005001122 A JP2005001122 A JP 2005001122A JP 2006191339 A JP2006191339 A JP 2006191339A
Authority
JP
Japan
Prior art keywords
message
transmission
transfer
identifier
bus
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
Application number
JP2005001122A
Other languages
Japanese (ja)
Inventor
Katsutomo Sasakura
克友 笹倉
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 Ten Ltd
Original Assignee
Denso Ten Ltd
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 Ten Ltd filed Critical Denso Ten Ltd
Priority to JP2005001122A priority Critical patent/JP2006191339A/en
Publication of JP2006191339A publication Critical patent/JP2006191339A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a gateway apparatus capable of grasping a congestion stat of a message between networks interconnected by the gateway apparatus. <P>SOLUTION: The gateway apparatus provided between a plurality of the network BUS-1, 2 to which a plurality of device ECUs are respectively connected and transferring the messages MES between the networks includes: a transfer control means TCON for sequentially transmitting the message MES received from the sender network BUS-1 to a transmission section network BUS-2; and a transfer history storage means LOG for storing transfer history information related to reception and transmission of the message. Then the transfer history information stored in the transfer history storage means LOG can externally be read. Since the gateway apparatus is configured to store the transfer history information of the message and to be externally readable, the gateway apparatus can grasp the congestion state of messages between the networks thereby exploring practical ways to improve relaxing of the congestion. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、バス間のメッセージ転送を行うゲートウエイ装置に関し、特に、CAN(Controller Area Network)バス間のメッセージ転送の遅延履歴を記憶することができるゲ
ートウエイ装置に関する。
The present invention relates to a gateway device that performs message transfer between buses, and more particularly, to a gateway device that can store a delay history of message transfer between CAN (Controller Area Network) buses.

CANは,ISOで国際的に標準化されたシリアル通信プロトコルであり,主に,自動車のハードウエアを制御するECU(Electric Control Unit)間を接続する車内LAN
の通信プロトコルとして広く使用されている。また,最近においては,CANの高い性能と信頼性から,用途は自動車からファクトリ・オートメーション,船舶,医療機器,産業機器など多方面に拡がっている。CANについて,例えば,以下の非特許文献1,2に記載されている。また,車内LANによる車両用制御システムについて,例えば,以下の特許文献1,2に記載されている。
「CAN入門書」www.renesas.com 「CANとは?」www.toyo.co.jp/car/CAN/CAN_General.htm 特開2004−136816 特開2004−17676 上記非特許文献1には,複数のECUがCANにより接続され,更に,複数のCANがゲートウエイ装置を介して接続された車内ネットワークシステムが記載されている。例えば,エンジンやトランスミッションを制御するECUを接続するエンジン系のCANと,VICSナビなどを制御するECUを接続する情報系のCANとが,ゲートウエイ装置を介して接続され,情報系からのメッセージに応じて,エンジン系の制御に反映させることが考えられる。また,上記非特許文献1には,故障診断系のCANとエンジン系のCANとがゲートウエイ装置を介して接続され,例えば,故障診断系のCANの診断ツールから,エンジン系CANのエンジン制御ECUに対して,診断のための制御を可能にすることが考えられる。
CAN is a serial communication protocol internationally standardized by ISO, and is mainly an in-vehicle LAN that connects ECUs (Electric Control Units) that control the hardware of automobiles.
It is widely used as a communication protocol. Recently, because of the high performance and reliability of CAN, its applications have expanded from automobiles to factory automation, ships, medical equipment, industrial equipment, and so on. For example, CAN is described in Non-Patent Documents 1 and 2 below. Further, a vehicle control system using an in-vehicle LAN is described in, for example, the following Patent Documents 1 and 2.
“CAN Introduction” www.renesas.com “What is CAN?” Www.toyo.co.jp/car/CAN/CAN_General.htm JP-A-2004-136816 Japanese Patent Application Laid-Open No. 2004-17676 describes a network system in a vehicle in which a plurality of ECUs are connected by a CAN and a plurality of CANs are connected via a gateway device. For example, an engine CAN that connects an ECU that controls an engine and a transmission and an information CAN that connects an ECU that controls a VICS navigation system are connected via a gateway device, and responds to a message from the information system. Therefore, it can be reflected in engine system control. Further, in Non-Patent Document 1, a failure diagnosis system CAN and an engine system CAN are connected via a gateway device. For example, from a failure diagnosis system CAN diagnosis tool to an engine control ECU of an engine system CAN. On the other hand, it is possible to enable control for diagnosis.

このように,ゲートウエイ装置は,異なるCANバス間のプロトコルの翻訳を行うと共に,一方のCANバス内のECUから送信されたメッセージを他方のCANバス内のECUに転送する。CANの仕様によれば,後述するとおり,メッセージにはバス内の送信権の優先順位を示す識別子が付加され,同時に送信されたメッセージ間の送信権の調停は,この識別子により行われる。一方,ゲートウエイ装置は,一方のバスから受信したメッセージを他方のバスに送信する場合,原則として受信した順番に送信先バスに送信する。また,優先順位を規定する識別子に対応する送信周期で,受信したメッセージを送信先バスに送信する。このように,重要で緊急性を要するメッセージとそれ以外のメッセージとを識別子で区別して,それぞれのメッセージに対応した緊急度でメッセージが転送されるようにされている。   In this way, the gateway device translates protocols between different CAN buses, and transfers a message transmitted from the ECU in one CAN bus to the ECU in the other CAN bus. According to the CAN specification, as will be described later, an identifier indicating the priority order of transmission rights in the bus is added to the message, and transmission rights are arbitrated between simultaneously transmitted messages. On the other hand, when transmitting a message received from one bus to the other bus, the gateway device transmits the message to the destination bus in the order received in principle. In addition, the received message is transmitted to the destination bus at the transmission cycle corresponding to the identifier that defines the priority order. In this way, important and urgent messages are distinguished from other messages by identifiers, and the messages are transferred with an urgency level corresponding to each message.

近年における複数のCANバスをゲートウエイ装置で中継するネットワークシステムは,より多くのメッセージを転送することにより,より高度の制御を可能にすることが行われる傾向にある。このように,より多くのメッセージがゲートウエイ装置を介してバス間を転送されることに伴い,ゲートウエイ装置での転送遅延がネットワークシステムのパフォーマンスに深刻な影響を与えるようになることが予想される。ゲートウエイ装置での転送遅延の解析は,ネットワーク内のメッセージの混雑状況の把握には欠かせない事項であるが,従来のゲートウエイ装置には,そのような混雑状況を把握する機能が設けられていない。   In recent years, a network system that relays a plurality of CAN buses with a gateway device tends to enable higher-level control by transferring more messages. Thus, as more messages are transferred between the buses via the gateway device, it is expected that the transfer delay in the gateway device will seriously affect the performance of the network system. The analysis of the transfer delay in the gateway device is indispensable for grasping the congestion status of messages in the network, but the conventional gateway device does not have a function for grasping such a congestion status. .

そこで,本発明の目的は,ゲートウエイ装置で接続されるネットワーク間のメッセージの混雑状況を把握することを可能にするゲートウエイ装置を提供することにある。   Accordingly, an object of the present invention is to provide a gateway device that makes it possible to grasp the congestion status of messages between networks connected by the gateway device.

上記の目的を達成するために,本発明の第1の側面では,複数のデバイスがそれぞれ接続される複数のネットワーク間に設けられ,前記ネットワーク間のメッセージを転送するゲートウエイ装置において,送信元ネットワークから受信したメッセージを順次送信先ネットワークに送信する転送制御手段と,前記メッセージの受信と送信に関する転送履歴情報を記憶する転送履歴記憶手段とを有し,当該転送履歴記憶手段に記憶された転送履歴情報が外部から読み出し可能であることを特徴とする。   In order to achieve the above object, according to a first aspect of the present invention, in a gateway device that is provided between a plurality of networks to which a plurality of devices are respectively connected and transfers a message between the networks, Transfer history information stored in the transfer history storage means, including transfer control means for sequentially transmitting received messages to a destination network, and transfer history storage means for storing transfer history information related to reception and transmission of the messages. Is readable from the outside.

上記の第1の側面において,好ましい実施例によれば,前記メッセージには,前記ネットワーク内の送信権の優先順位を規定した識別子が付加され,前記転送制御手段は,前記識別子に対応する送信周期で受信したメッセージを前記送信先ネットワークに送信し,前記転送履歴記憶手段は,前記識別子毎に前記転送履歴情報を記憶し,当該識別子に対応する前記転送履歴情報が外部に読み出し可能であることを特徴とする。   In the first aspect described above, according to a preferred embodiment, an identifier defining a priority of transmission rights in the network is added to the message, and the transfer control means transmits a transmission period corresponding to the identifier. The transfer history storage means stores the transfer history information for each identifier, and the transfer history information corresponding to the identifier can be read out to the outside. Features.

上記の第1の側面において,更に好ましい実施例によれば,前記転送履歴情報は,前記メッセージの受信時間と送信時間,受信から送信までの時間,受信後送信待ちメッセージ数,受信後送信待ちメッセージ数が所定数を超えたか否かの滞留情報,または受信後複数回送信されたか否かの送信異常情報のうち,少なくとも一つを含むことを特徴とする。   In the first aspect described above, according to a further preferred embodiment, the transfer history information includes the reception time and transmission time of the message, the time from reception to transmission, the number of messages waiting for transmission after reception, and the message waiting for transmission after reception. It includes at least one of staying information indicating whether the number exceeds a predetermined number or transmission abnormality information indicating whether the number is transmitted a plurality of times after reception.

上記の第1の側面によれば,ゲートウエイ装置がメッセージの転送履歴情報を記憶し,外部から読み出し可能に構成されているので,ネットワーク間のメッセージの混雑状況を把握することができ,混雑度を緩和する改良に役立てることができる。   According to the first aspect described above, the gateway device stores the message transfer history information and is configured to be readable from the outside. Therefore, it is possible to grasp the congestion status of the messages between the networks, and to check the congestion level. It can be used for mitigating improvements.

更に,好ましい実施例によれば,識別子毎に転送履歴情報を記憶するので,どの識別子のメッセージに転送時の滞留が生じているかを容易に把握することができ,メッセージの混雑状況の把握に役立てることができる。   Further, according to the preferred embodiment, since transfer history information is stored for each identifier, it is possible to easily grasp which identifier message has a retention at the time of transfer, which is useful for grasping the congestion status of messages. be able to.

以下、図面にしたがって本発明の実施の形態について説明する。但し、本発明の技術的範囲はこれらの実施の形態に限定されず、特許請求の範囲に記載された事項とその均等物まで及ぶものである。   Hereinafter, embodiments of the present invention will be described with reference to the drawings. However, the technical scope of the present invention is not limited to these embodiments, but extends to the matters described in the claims and equivalents thereof.

図1は,本実施の形態におけるゲートウエイ装置の構成とメッセージの転送動作を示す図である。図1には,CANである第1のバスBUS−1と第2のバスBUS−2との間に,バス間でメッセージ転送を行うゲートウエイユニット10が設けられている。第1のバスBUS−1には,2つのデバイスECU−1,ECU−2と,ゲートウエイユニット10が接続され,第2のバスBUS−2には,2つのデバイスECU−3,ECOU−4と,ゲートウエイユニット10が接続される。第1及び第2のバスBUS−1,2は,それぞれ個別のネットワークを構成し,それぞれのプロトコルでネットワーク内のデバイス間でメッセージがやりとりされる。また,各デバイスECUは,図示しないハードウエアの状態を監視し制御する。そして,ゲートウエイユニット10は,異なるネットワーク間でプロトコルの翻訳とメッセージの転送を行う。   FIG. 1 is a diagram showing a configuration of a gateway device and a message transfer operation in the present embodiment. In FIG. 1, a gateway unit 10 for transferring messages between buses is provided between a first bus BUS-1 and a second bus BUS-2 which are CAN. Two devices ECU-1 and ECU-2 and a gateway unit 10 are connected to the first bus BUS-1, and two devices ECU-3 and ECOU-4 are connected to the second bus BUS-2. , Gateway unit 10 is connected. The first and second buses BUS-1 and BUS2 each constitute an individual network, and messages are exchanged between devices in the network using respective protocols. Each device ECU monitors and controls the state of hardware (not shown). The gateway unit 10 translates protocols and transfers messages between different networks.

ゲートウエイユニット10には,第1のバスBUS−1から第2のバスBUS−2にメッセージを転送するための,受信バッファR−BUFと,転送コントローラTCONと,
転送すべき受信メッセージを格納する転送キューバッファT−QUEとを有する。この転送キューバッファT−QUEは,転送すべき受信メッセージ群を転送順に格納する待ち行列である。同様に,逆方向にメッセージを転送するための同様の構成も有する。そして,一方のバスに接続されているデバイスECUから送信されたメッセージMES1が,ゲートウエイユニット10により他方のバスに接続されているデバイスECUに転送される。
The gateway unit 10 includes a reception buffer R-BUF for transferring a message from the first bus BUS-1 to the second bus BUS-2, a transfer controller TCON,
A transfer queue buffer T-QUE for storing a received message to be transferred. The transfer queue buffer T-QUE is a queue that stores received message groups to be transferred in the order of transfer. Similarly, it has a similar configuration for transferring messages in the reverse direction. Then, the message MES1 transmitted from the device ECU connected to one bus is transferred by the gateway unit 10 to the device ECU connected to the other bus.

CANプロトコルの特徴は,(1)バスが空いていれば全てのデバイス(ECU)がメッセージを送信することができるマルチマスタ方式と,(2)全てのデバイスはメッセージを同時に受信し,受信すべきデバイスがメッセージを受信するマルチキャスト方式と,(3)ネットワーク内のデバイスにはアドレスは割り付けられず,メッセージの内容若しくは種類は,メッセージに対応付けられたネットワーク内で固有の識別子(ID)により定義され,送信メッセージにはこのIDが付加され,受信デバイスが受信すべきIDのメッセージを自発的に受信するネットワークのフレキシブル性(したがって,このIDにより送信元と受信先のデバイスが特定される)と,(4)メッセージに付加されるIDがネットワーク上での送信権の優先順位も定義し,複数のデバイスが同時にメッセージを送信しようとすると,優先順位の高いIDのメッセージが優先され送信権を取得し,優先順位の低いIDのメッセージは送信を中止する衝突回避方法である。   The features of the CAN protocol are (1) a multi-master system in which all devices (ECU) can send messages if the bus is free, and (2) all devices should receive and receive messages simultaneously. (3) No address is assigned to a device in the network, and the content or type of the message is defined by a unique identifier (ID) in the network associated with the message. , This ID is added to the transmission message, and the flexibility of the network that spontaneously receives the message of the ID that the receiving device should receive (therefore, the transmission source and the destination device are specified by this ID), and (4) The ID added to the message is the priority of the transmission right on the network This is a collision avoidance method in which when a plurality of devices try to send a message at the same time, a message with a higher priority ID is given priority and a transmission right is acquired, and a message with a lower priority ID is stopped. .

そこで,以下,第1のバスBUS−1のデバイスECU−1が第2のバスBUS−2のデバイスECU−3にメッセージMES1を送信する場合を例にして,その送信動作を説明する。まず,デバイスECU−1は,第1のバスBUS−1がアイドル状態の時にメッセージMES1をバスに送信する。メッセージMES1は,簡単にいえば,メッセージの種類を示す識別子IDが付加され,数バイトのデータDATAを含むフレームで構成される。そして,第1のバスBUS−1での送信権は,第1に,アイドル中のバスにメッセージフレームを先に出力したデバイスに与えられ,第2に,同時にメッセージフレームが出力された時は,メッセージに付加される識別子IDに固有に与えられている優先順位が高いほうのメッセージを出力したデバイスに与えられる。つまり,全ての識別子IDは異なる優先順位を有し,デバイスECU−1,ECU−2が同時にメッセージMES1,MES2をバスに出力した場合は,その識別子IDの優先順位により送信権が決定され,優先順位の高い識別子IDを有するメッセージMES1の送信が継続され,優先順位の低い識別子IDを有するメッセージMES2の送信が停止される。   Therefore, hereinafter, the transmission operation will be described by taking as an example the case where the device ECU-1 of the first bus BUS-1 transmits the message MES1 to the device ECU-3 of the second bus BUS-2. First, the device ECU-1 transmits a message MES1 to the bus when the first bus BUS-1 is in an idle state. In simple terms, the message MES1 is composed of a frame including an identifier ID indicating the type of message and including several bytes of data DATA. The transmission right on the first bus BUS-1 is first given to the device that has output the message frame to the idle bus first, and secondly, when the message frame is output simultaneously, It is given to the device that outputs the message having the higher priority given to the identifier ID added to the message. That is, all identifier IDs have different priorities. When the devices ECU-1 and ECU-2 output the messages MES1 and MES2 to the bus at the same time, the transmission right is determined according to the priorities of the identifier IDs. Transmission of the message MES1 having an identifier ID having a higher rank is continued, and transmission of the message MES2 having an identifier ID having a lower priority is stopped.

この識別子IDによる送信権の決定アルゴリズムは,CANバスでは,識別子IDを出力したときのバスの状態を監視することにより行われる。すなわち,バスのレベルには,ドミナントレベル(優先的なレベル)とレセシブレベル(受容的なレベル)とを有し,論理的にワイヤードアンドされたバスの場合は,ドミナントレベルの論理値は「0」,レセシブレベルの論理値は「1」となる。そして,1つのデバイスでもドミナントレベル「0」を出力するとバスはドミナントレベル「0」になり,全てのデバイスがレセシブレベル「1」を出力しないとバスはレセシブレベル「1」にならない。さらに,識別子IDは,例えば16進法で「000」〜「FFF」が割り当てられる。その結果,識別子「000」が最も優先順位が高く,「FFF」が最も優先順位が低くなる。   The transmission right determination algorithm based on the identifier ID is performed by monitoring the state of the bus when the identifier ID is output in the CAN bus. In other words, the bus level has a dominant level (priority level) and a recessive level (acceptance level). In the case of a logically wired-and-bus, the logical value of the dominant level is “0”. , The logical value of the recessive level is “1”. If even one device outputs the dominant level “0”, the bus becomes the dominant level “0”. If all devices do not output the recessive level “1”, the bus does not become the recessive level “1”. Furthermore, “000” to “FFF” are assigned to the identifier ID, for example, in hexadecimal. As a result, the identifier “000” has the highest priority, and “FFF” has the lowest priority.

つまり,複数のデバイスが同時にメッセージフレームを出力すると,フレームの先頭に位置するアービトレーションフィールドの識別子IDのデータ列が同時にバスに出力される。そのため,最も優先順位の高い識別子IDのデータ列のレベルにバスのレベルが制御される。そこで,各デバイスはアービトレーションフィールドの各ビットにおけるバスのレベルを監視することにより,送信権を取得できなかったか否かを検出することができる。例えば,最も優先順位が高い識別子「000」の場合は,16ビット全てにおいてバスをドミナントレベル(論理「0」)にすることができ,それ以外の識別子のメッセージを出力しようとするデバイスは,バスの状態が自らが出力した識別子の状態とは異なること
を検出する。その結果,デバイスは,送信権を取得できなかったことを検出することができ,そのメッセージの送信を停止することができる。一方,16ビット全てにおいて送信権が取得できなかったことを検出する場合は,そのデバイスは,通信権を取得したことになり,そのメッセージの送信を継続する。これにより,複数のメッセージフレームのデータフィールドが同時にバスに出力されることが防止され,衝突を回避することができる。
That is, when a plurality of devices output message frames at the same time, the data string of the identifier ID of the arbitration field located at the head of the frame is simultaneously output to the bus. Therefore, the bus level is controlled to the level of the data string of the identifier ID having the highest priority. Therefore, each device can detect whether or not the transmission right has been acquired by monitoring the bus level in each bit of the arbitration field. For example, in the case of identifier “000” having the highest priority, the bus can be set to a dominant level (logic “0”) in all 16 bits. It is detected that the state of is different from the state of the identifier output by itself. As a result, the device can detect that the transmission right cannot be acquired, and can stop the transmission of the message. On the other hand, when it is detected that the transmission right cannot be acquired in all 16 bits, the device has acquired the communication right and continues to transmit the message. As a result, data fields of a plurality of message frames are prevented from being output to the bus at the same time, and collision can be avoided.

図1に戻り,デバイスECU−1がメッセージMES1を出力しようとする時に,同時にデバイスECU−2がメッセージMES2を出力しても,メッセージMES1の識別子IDがより高い優先順位を有していれば,デバイスECU−2はメッセージMES2の出力を停止し,結局,デバイスECU−1だけがメッセージMES1をバスBUS−1に出力することができる。もちろん,デバイスECU−1が先にメッセージMES1の出力を開始した場合は,他のデバイスECU−2はメッセージの出力を開始しない。   Returning to FIG. 1, when the device ECU-1 tries to output the message MES1, even if the device ECU-2 outputs the message MES2 at the same time, if the identifier ID of the message MES1 has a higher priority, The device ECU-2 stops outputting the message MES2, and eventually only the device ECU-1 can output the message MES1 to the bus BUS-1. Of course, when the device ECU-1 first starts outputting the message MES1, the other device ECU-2 does not start outputting the message.

そして,バスBUS−1に出力されたメッセージMES1は,ゲートウエイユニット10の受信バッファR−BUFに格納される。ゲートウエイユニット10には,第2のバスBUS−2に転送すべき識別子があらかじめ設定されており,その設定された識別子のメッセージのみを受信バッファR−BUFに格納する。   The message MES1 output to the bus BUS-1 is stored in the reception buffer R-BUF of the gateway unit 10. In the gateway unit 10, an identifier to be transferred to the second bus BUS-2 is set in advance, and only the message of the set identifier is stored in the reception buffer R-BUF.

ゲートウエイユニット10内の転送コントローラTCONは,受信したメッセージMES1を,転送キューバッファT−QUEの最後尾に格納すると共に,所定の送信周期毎に転送キューバッファT−QUE内に格納された受信済みメッセージを,受信順に,第2のバスBUS−2に出力する。第2のバスBUS−2においても,第1のバスBUS−1内でのアービトレーション方法と同様の方法で,送信権のアービトレーションが行われる。そして,第2のバスBUS−2に送信されたメッセージMES1は,そのメッセージを受信すべきデバイスECU−3が受信する。すなわち,第2のバスBUS−2に接続されるデバイスECU−3,ECU−4は,どの識別子のメッセージを受信すべきかがあらかじめ設定されており,その設定された識別子のメッセージMES1を,バス上に出力されるメッセージから判別し,該当する場合にはそれを受信する。   The transfer controller TCON in the gateway unit 10 stores the received message MES1 at the tail end of the transfer queue buffer T-QUE and the received message stored in the transfer queue buffer T-QUE at every predetermined transmission cycle. Are output to the second bus BUS-2 in the order of reception. Also in the second bus BUS-2, the transmission right is arbitrated in the same manner as the arbitration method in the first bus BUS-1. The message MES1 transmitted to the second bus BUS-2 is received by the device ECU-3 that should receive the message. That is, the device ECU-3 and ECU-4 connected to the second bus BUS-2 are set in advance as to which identifier message should be received, and the message MES1 with the set identifier is transmitted on the bus. It is determined from the message output to, and if applicable, it is received.

第2のバスBUS−2に接続されたデバイスから第1のバスBUS−1に接続されたデバイスへのメッセージの送信も,上記と同様に,バス上でのアービトレーションと,ゲートウエイユニット10での転送制御とにより行われる。   Similarly to the above, the transmission of a message from the device connected to the second bus BUS-2 to the device connected to the first bus BUS-1 is also performed on the bus and transferred by the gateway unit 10. By the control.

このように,通常メッセージは,ゲートウエイユニット10において,受信順に転送キューバッファT−QUEに格納され,受信順に送信先ネットワークのバスに転送される。   In this way, the normal message is stored in the transfer queue buffer T-QUE in the order received in the gateway unit 10 and transferred to the bus of the destination network in the order received.

図2は,本実施の形態におけるゲートウエイユニットとの詳細構成を示す図である。図3には,一例として,デバイスECU−1,ECU−2が送信するメッセージの識別子リストL1,L2と,デバイスECU−3,ECU−4が受信するメッセージの識別子リストL3,L4とが示される。このように,各デバイスは,送信する識別リストと受信する識別リストとがあらかじめ設定されている。例えば,デバイスECU−1が,識別子「001」を付加したメッセージを送信すると,ゲートウエイユニット10を介してデバイスECU−3が受信する。同様に,デバイスECU−2が,識別子「002」を付加したメッセージを送信すると,ゲートウエイユニット10を介してデバイスECU−3が受信する。このように,送信されるメッセージには,送信先アドレスではなく,送信元と送信先が特定され且つバス内の送信権の優先順位を示す識別子が付与される。   FIG. 2 is a diagram showing a detailed configuration with the gateway unit in the present embodiment. FIG. 3 shows, as an example, message identifier lists L1 and L2 transmitted by the devices ECU-1 and ECU-2, and message identifier lists L3 and L4 received by the device ECU-3 and ECU-4. . In this way, each device has a transmission identification list and a reception identification list set in advance. For example, when the device ECU-1 transmits a message to which the identifier “001” is added, the device ECU-3 receives the message via the gateway unit 10. Similarly, when the device ECU-2 transmits a message to which the identifier “002” is added, the device ECU-3 receives the message via the gateway unit 10. In this way, the message to be transmitted is given an identifier that identifies the transmission source and the transmission destination, and indicates the priority of transmission rights in the bus, not the transmission destination address.

更に,ゲートウエイユニット10には,受信バッファR−Bufに受信すべきメッセージの識別子があらかじめ設定され,第1のバスBUS−1に送出されたメッセージの識別子を監視し,受信すべきメッセージを受信バッファR−Bufに受信する。受信バッファ
R−Bufに受信されたメッセージは一旦共有メモリ12内のメッセージ格納領域に格納される。転送コントローラTCONは,受信したメッセージの識別子IDをチェックし,送信キューバッファT−QUE内に識別子ID毎に個別に設けられている送信キューバッファQ1〜Qnのうち,対応する送信キューバッファQ1〜Qnの最後尾に,受信メッセージを格納する。
Further, the gateway unit 10 is preset with an identifier of a message to be received in the reception buffer R-Buf, monitors the identifier of the message sent to the first bus BUS-1, and receives the message to be received in the reception buffer. Receive to R-Buf. The message received in the reception buffer R-Buf is temporarily stored in the message storage area in the shared memory 12. The transfer controller TCON checks the identifier ID of the received message, and among the transmission queue buffers Q1 to Qn provided individually for each identifier ID in the transmission queue buffer T-QUE, the corresponding transmission queue buffers Q1 to Qn. The received message is stored at the end of.

図2に示された例では,デバイスECU−1が送信したメッセージMES1(識別子「001」,転送経路は破線)は,第1のバスBUS−1に送出され,ゲートウエイユニット10の受信バッファR−Bufに取り込まれ,共有メモリ12のメッセージ領域に一時的に格納された後,識別子IDに対応する送信キューバッファQ1の最後尾に格納される。同様に,デバイスECU−2が送信したメッセージMES2(識別子「004」,転送経路は一点鎖線)も,第1のバスBUS−1に送出され,ゲートウエイユニット10の受信バッファR−Bufに取り込まれ,共有メモリ12のメッセージ領域に一時的に格納され,その後,転送コントローラTCONにより,識別子「004」に対応する送信キューバッファQnの最後尾に格納される。   In the example shown in FIG. 2, the message MES1 (identifier “001”, the transfer path is a broken line) transmitted by the device ECU-1 is sent to the first bus BUS-1, and received by the reception buffer R− of the gateway unit 10. The data is taken into the Buf, temporarily stored in the message area of the shared memory 12, and then stored at the end of the transmission queue buffer Q1 corresponding to the identifier ID. Similarly, the message MES2 (identifier “004”, the transfer path is a one-dot chain line) transmitted by the device ECU-2 is also sent to the first bus BUS-1, and taken into the reception buffer R-Buf of the gateway unit 10, It is temporarily stored in the message area of the shared memory 12, and then stored at the end of the transmission queue buffer Qn corresponding to the identifier “004” by the transfer controller TCON.

そして,転送コントローラTCONは,それぞれの識別子に対応する送信周期で,送信キューバッファ内の先頭のメッセージを,送信先ネットワークである第2のバスBUS−2に送出する。また,送信先ネットワークである第2のバスBUS−2での送信権の調停は,メッセージに付加されている識別子の優先順位に応じて決定される。更に,第2のバスBUS−2に送信されたメッセージは,そのバス内のデバイスECU3,4により,受信すべきメッセージを検出され,取り込まれる。   Then, the transfer controller TCON sends the first message in the transmission queue buffer to the second bus BUS-2, which is the transmission destination network, in the transmission cycle corresponding to each identifier. Further, the arbitration of the transmission right in the second bus BUS-2 that is the transmission destination network is determined according to the priority order of the identifier added to the message. Further, the message transmitted to the second bus BUS-2 is detected and captured by the device ECUs 3 and 4 in the bus.

このように,各バス内では,識別子の優先順位により,優先順位の高いメッセージが優先して送出され,ゲートウエイユニット10では,識別子に対応する送信周期毎に,各識別子に対応する送信キューバッファQ1〜Qnの先頭のメッセージが送信先バスに送出される。したがって,優先順位のより高いメッセージが優先してバス内またはバス間を転送されるようになっている。そのために,ゲートウエイユニット10では,識別子毎に送信キューバッファQ1〜Qnを別々に設け,それぞれの送信キューバッファQ1〜Qnに受信したメッセージを格納する。そして,識別子に対応する送信周期で,その識別子に対応する送信キューバッファの先頭のメッセージが送信先バスに送信される。   As described above, in each bus, a message having a higher priority is preferentially sent out according to the priority of the identifier, and the gateway unit 10 transmits the transmission queue buffer Q1 corresponding to each identifier for each transmission cycle corresponding to the identifier. The head message of .about.Qn is sent to the destination bus. Therefore, messages having a higher priority are preferentially transferred within the bus or between buses. Therefore, in the gateway unit 10, transmission queue buffers Q1 to Qn are separately provided for each identifier, and received messages are stored in the respective transmission queue buffers Q1 to Qn. Then, at the transmission cycle corresponding to the identifier, the first message in the transmission queue buffer corresponding to the identifier is transmitted to the transmission destination bus.

本実施の形態では,ゲートウエイユニット10の共有メモリ12内には,メッセージ領域に加えて,メッセージの転送履歴を格納する転送履歴領域LOGが設けられている。そして,転送コントローラTCONは,受信バッファR−Bufにメッセージが受信されると,その受信時間を転送履歴領域LOGに格納し,送信キューバッファから送信先のバスにメッセージが送信されると,その送信時間を転送ログ領域LOGに格納する。または,転送コントローラTCONは,受信から送信までの転送時間をメッセージ毎に識別子ID別に転送ログ領域LOGに格納する。もしくは,後述するとおり,転送コントローラTCONは,転送履歴領域LOGに,受信済みで且つ未送信のメッセージの数を格納しても良い。または,転送コントローラTCONは,転送履歴領域LOGに,受信済み且つ未送信のメッセージの数が所定の数以上になったときに滞留フラグを格納してもよい。さらに,転送コントローラTCONは,受信済みメッセージが不必要に複数回送信先バスに送出された場合に,転送履歴領域LOGに転送異常フラグを格納しても良い。このように,転送履歴情報として,最も単純には,全てのメッセージの受信時間と送信時間の情報や転送に要した時間の情報が,あるいは,ゲートウエイユニット10内に滞留しているメッセージの数の情報が,または,滞留時間の情報が,更に,必要以上に受信メッセージを送信した場合の転送異常の情報が,転送履歴領域LOGに格納される。   In the present embodiment, the shared memory 12 of the gateway unit 10 is provided with a transfer history area LOG for storing a message transfer history in addition to the message area. When the message is received in the reception buffer R-Buf, the transfer controller TCON stores the reception time in the transfer history area LOG. When the message is transmitted from the transmission queue buffer to the destination bus, the transmission controller TCON transmits the message. The time is stored in the transfer log area LOG. Alternatively, the transfer controller TCON stores the transfer time from reception to transmission in the transfer log area LOG for each message by identifier ID. Alternatively, as will be described later, the transfer controller TCON may store the number of received and untransmitted messages in the transfer history area LOG. Alternatively, the transfer controller TCON may store a stay flag in the transfer history area LOG when the number of received and untransmitted messages exceeds a predetermined number. Furthermore, the transfer controller TCON may store a transfer abnormality flag in the transfer history area LOG when a received message is unnecessarily sent to the destination bus a plurality of times. As described above, as the transfer history information, the simplest is information on the reception time and transmission time of all messages, information on the time required for transfer, or the number of messages staying in the gateway unit 10. Information on transfer or information on dwell time is stored in the transfer history area LOG, and information on transfer abnormalities when a received message is transmitted more than necessary.

そして,この転送履歴領域LOG内の転送履歴情報が,ログインターフェース手段LO
G−IFを介して,ゲートウエイユニット10の外部から読み出し可能に構成されている。つまり,複数のネットワークであるバスをゲートウエイ装置で転送するネットワークシステムにおいて,何らかの故障が発生した場合に,ネットワーク間のメッセージの転送状況をゲートウエイユニット10内の転送履歴を読み出して,ゲートウエイユニット内でのメッセージの滞留状況を分析することで,故障の原因を見出すことが容易にできるようになる。
The transfer history information in the transfer history area LOG is stored in the log interface means LOG.
It is configured to be readable from the outside of the gateway unit 10 via the G-IF. In other words, in a network system that transfers a plurality of network buses with a gateway device, if any failure occurs, the transfer status in the gateway unit 10 is read out to determine the transfer status of messages between networks, and the gateway unit Analyzing the status of message retention makes it easy to find the cause of a failure.

更に,この転送履歴をチェックすることにより,特定の識別子のメッセージがゲートウエイユニット10内で著しい滞留を生じていることが判明した場合は,当該識別子のメッセージの送信先バスへの転送周期をより短く再設定するなどの手段を講じることで,故障の再発生を回避することができる。   Further, if it is found by checking this transfer history that a message with a specific identifier has accumulated significantly in the gateway unit 10, the transfer cycle of the message with this identifier to the destination bus is shortened. By taking measures such as resetting, reoccurrence of the failure can be avoided.

転送履歴領域LOG内の転送履歴情報の外部からの読み出しは,図2に示したログインターフェースLOG−IFを介して行われるが,具体的には,例えば,外部の故障診断ツールなどからログインターフェースLOG−IFを介して転送コントローラTCONに割り込み命令を入力し,転送コントローラTCONから転送履歴領域LOG内の転送履歴情報を読み出させ,外部のツールに出力させることで実現することができる。つまり,マイクロコンピュータのデバッグツールと同様の構成により,外部から読み出し可能な構成にすることができる。   The reading of the transfer history information in the transfer history area LOG from the outside is performed via the log interface LOG-IF shown in FIG. 2, but specifically, for example, the log interface LOG from an external failure diagnosis tool or the like. This can be realized by inputting an interrupt instruction to the transfer controller TCON via the -IF, reading the transfer history information in the transfer history area LOG from the transfer controller TCON, and outputting it to an external tool. In other words, a configuration that can be read from the outside can be achieved by the same configuration as the debugging tool of the microcomputer.

図3は,本実施の形態における転送履歴領域の一例を示す図である。この例では,転送履歴領域LOGには,識別子IDに対応して,その識別子を付加されたメッセージがゲートウエイユニット10に受信された時間と,送信先バスに送信された時間とが転送履歴として記録される。図3には,識別子ID=000とID=NNNの受信時間及び送信時間からなる転送履歴情報が記録されている。識別子ID=000のメッセージについて,3つのメッセージが受信され,そのうち1つのメッセージのみが送信されたことが記録されている。また,識別子ID=NNNのメッセージについては,4つのメッセージが受信され,全て送信されたことが記録されている。したがって,この転送履歴を外部から読み出して分析することにより,各識別子IDに対応して,メッセージがどのように転送され,ゲートウエイユニット内でどのように滞留していたかを知ることができる。単純には,受信時間と送信時間との差を計算すればメッセージのゲートウエイユニット内での滞留時間を知ることができる。また,受信時間と送信時間とから,ゲートウエイユニット内でのメッセージの滞留の様子を詳細に知ることができる。   FIG. 3 is a diagram illustrating an example of a transfer history area in the present embodiment. In this example, in the transfer history area LOG, the time when the gateway unit 10 received the message with the identifier corresponding to the identifier ID and the time when the message was transmitted to the destination bus are recorded as the transfer history. Is done. In FIG. 3, transfer history information consisting of the reception time and transmission time of identifiers ID = 000 and ID = NNN is recorded. For a message with identifier ID = 000, it is recorded that three messages have been received and only one message has been transmitted. As for the message with the identifier ID = NNN, it is recorded that four messages have been received and all transmitted. Therefore, by reading this transfer history from the outside and analyzing it, it is possible to know how the message was transferred and how it stayed in the gateway unit corresponding to each identifier ID. Simply, the residence time of the message in the gateway unit can be determined by calculating the difference between the reception time and the transmission time. Further, it is possible to know in detail the state of message retention in the gateway unit from the reception time and transmission time.

図4は,図3の転送履歴を利用して得られたゲートウエイユニット内でのメッセージの滞留の様子を示す図である。横軸に時間t,縦軸に滞留メッセージ数(破線が滞留メッセージ数=0)を示し,(1)は識別子ID=000の場合,(2)は識別子ID=NNNの場合の滞留の様子を示す。図4(1)によれば,受信時間LL:LL:LL:LLに受信したメッ
セージ(受信1)は,送信時間MM:MM:MM:MMに送信され(送信1),受信時間NN:NN:NN:NNとPP:PP:PP:PPとに受信したメッセージ(受信2,3)は,未だ送信されていない。つま
り,受信3の時点でゲートウエイユニット内には2つのメッセージが滞留していたことと,最初のメッセージの転送時間を知ることができる。また,図4(2)によれば,受信時間LL:LL:LL:LLに受信したメッセージ(受信1)は,その後送信時間MM:MM;MM:MMに送信
され(送信1),受信時間NN:NN:NN:NN,PP:PP:PP:PPに連続して受信した2つのメッセージ(受信2,3)は,送信時間OO:OO:OO:OOにその一方が送信され(送信2),受信時間RR:RR:RR:RRに更にメッセージを受信した後(受信4),送信時間QQ:QQ:QQ:QQとSS:SS:SS:SSとに連続してメッセージが送信された(送信3,4)ことが分析できる。図4(2)の例では,識別子ID=NNNのメッセージ群は,最大で2個のメッセージがゲートウエイユニット内に滞留したこと,各メッセージの転送時間などを知ることができる。
FIG. 4 is a view showing a state of message retention in the gateway unit obtained by using the transfer history of FIG. The horizontal axis indicates time t, the vertical axis indicates the number of staying messages (dashed line is the number of staying messages = 0), (1) shows the state of staying when identifier ID = 000, and (2) shows the state of staying when identifier ID = NNN. Show. According to FIG. 4 (1), the message (reception 1) received at the reception time LL: LL: LL: LL is transmitted at the transmission time MM: MM: MM: MM (transmission 1), and the reception time NN: NN. The messages (reception 2 and 3) received by: NN: NN and PP: PP: PP: PP have not been transmitted yet. In other words, it is possible to know that two messages have stayed in the gateway unit at the time of reception 3 and the transfer time of the first message. Further, according to FIG. 4 (2), the message (reception 1) received at the reception time LL: LL: LL: LL is then transmitted to the transmission time MM: MM; MM: MM (transmission 1), and the reception time. NN: NN: NN: NN, PP: PP: PP: PP The two messages (reception 2 and 3) received in succession are transmitted at transmission time OO: OO: OO: OO (transmission 2). ), After receiving further messages at reception time RR: RR: RR: RR (reception 4), messages were transmitted continuously at transmission times QQ: QQ: QQ: QQ and SS: SS: SS: SS (Transmission 3, 4) can be analyzed. In the example of FIG. 4B, the message group with the identifier ID = NNN can know that a maximum of two messages have accumulated in the gateway unit, the transfer time of each message, and the like.

このように,図3に示したように,各識別子に対応して全てのメッセージの受信時間と送信時間の履歴を記録することにより,その転送履歴を外部から読み出して分析することで,その識別子のメッセージがゲートウエイユニット内で滞留しがちであり,その識別子のメッセージがスムーズに転送されているかを分析することができる。   In this way, as shown in FIG. 3, by recording the history of the reception time and transmission time of all messages corresponding to each identifier, the transfer history is read from the outside and analyzed, so that the identifier Message tends to stay in the gateway unit, and the message with the identifier can be analyzed smoothly.

なお,それぞれの時間は,年月日と時間・分・秒・マイクロ秒とが含まれることが好ましい。但し,転送履歴領域LOGの容量には一定の限界があるので,転送履歴として保持されるメッセージの数は所定数に限定される必要があり,その場合は,古い転送履歴は消去される。   Each time preferably includes a date, hour, minute, second, and microsecond. However, since the capacity of the transfer history area LOG has a certain limit, the number of messages held as the transfer history needs to be limited to a predetermined number. In this case, the old transfer history is deleted.

図5は,本実施の形態における転送履歴領域の他の例を示す図である。図3に示した転送履歴情報は,全てのメッセージの受信時間と送信時間を有するものであり,ゲートウエイユニット10内の共有メモリ12に所定の大容量の記憶領域を必要とする。ゲートウエイユニット10は,転送コントローラTCONを構成するCPUやプログラムROMと,共有メモリ12や送信キューバッファT−QUEなどを有するマイクロコンピュータで構成される。したがって,共有メモリ12の記憶容量をそれほど大きくすることができない場合がある。そこで,図5の例では,ゲートウエイユニット内に滞留しているメッセージの数を監視するための滞留カウンタを設け,転送履歴情報として,滞留フラグと転送異常フラグとが転送履歴領域LOG内に格納される。   FIG. 5 is a diagram showing another example of the transfer history area in the present embodiment. The transfer history information shown in FIG. 3 has the reception time and transmission time of all messages, and requires a predetermined large-capacity storage area in the shared memory 12 in the gateway unit 10. The gateway unit 10 is constituted by a microcomputer having a CPU and a program ROM constituting the transfer controller TCON, a shared memory 12, a transmission queue buffer T-QUE, and the like. Therefore, the storage capacity of the shared memory 12 may not be so large. Therefore, in the example of FIG. 5, a stay counter for monitoring the number of messages staying in the gateway unit is provided, and a stay flag and a transfer error flag are stored in the transfer history area LOG as transfer history information. The

図5に示されるとおり,識別子ID(000〜FFF)それぞれに対して,滞留カウンタが設けられる。この滞留カウンタは,メッセージを受信すると+1され,メッセージを送信すると−1される。したがって,滞留カウンタ内には現在ゲートウエイユニットの送信キューバッファ内に滞留しているメッセージの数が維持される。そこで,この滞留カウンタが所定の限界値を超えた場合は過剰に滞留が生じていることを示す滞留フラグが「1」に変更される。また,滞留カウンタが負の値になった場合は送信以上が生じていることを示す転送異常フラグが「1」に変更される。   As shown in FIG. 5, a stay counter is provided for each identifier ID (000 to FFF). This stay counter is decremented by 1 when a message is received and decremented by 1 when a message is transmitted. Therefore, the number of messages currently retained in the transmission queue buffer of the gateway unit is maintained in the retention counter. Therefore, when the stay counter exceeds a predetermined limit value, the stay flag indicating that the stay is excessive is changed to “1”. Further, when the stay counter becomes a negative value, the transfer abnormality flag indicating that transmission or more has occurred is changed to “1”.

図6は,ある識別子のメッセージの滞留の様子を示す図である。図4と同様に,横軸に時間を縦軸に滞留メッセージ数,つまり滞留カウンタ値を示す。この例には,ある識別子のメッセージの受信と送信とに対応して,滞留メッセージ数を示す滞留カウンタのカウント値の変化の推移が示されている。つまり,滞留カウンタは,受信があれば+1され,送信があれば−1されるので,受信頻度に対して送信頻度が追いつかない場合は,受信4以降に示されるとおりカウント値が+2〜+7と増大する。そこで,このカウント値が所定の基準値Vth(カウント値+5)を超えた時に転送コントローラ12が滞留フラグを「1」にするようにする。   FIG. 6 is a diagram illustrating a state in which a message with a certain identifier remains. Similar to FIG. 4, the horizontal axis represents time, and the vertical axis represents the number of staying messages, that is, the staying counter value. In this example, a change in the count value of the stay counter indicating the number of stay messages is shown corresponding to reception and transmission of a message with a certain identifier. In other words, the stay counter is incremented by +1 if there is reception, and is decremented by -1 if there is transmission. Therefore, if the transmission frequency cannot catch up with the reception frequency, the count value is +2 to +7 as shown from reception 4 onward. Increase. Therefore, when the count value exceeds a predetermined reference value Vth (count value + 5), the transfer controller 12 sets the stay flag to “1”.

逆に,受信頻度に対して送信頻度が高くなり,受信数を送信数が超えることになると,不必要なメッセージの送信を行っていることになる。その場合は,図示しないが滞留カウンタが負のカウント値をとることになるので,滞留カウンタが負のカウント値になった時に転送コントローラ12が転送異常フラグを「1」にするようにする。   Conversely, if the transmission frequency becomes higher than the reception frequency and the number of receptions exceeds the number of receptions, unnecessary messages are transmitted. In this case, although not shown, the stay counter takes a negative count value, and therefore the transfer controller 12 sets the transfer abnormality flag to “1” when the stay counter becomes a negative count value.

このように,ゲートウエイユニット内で転送するメッセージの滞留数を監視し,基準値を超えたときは滞留フラグをオンにし,負になったときは転送異常フラグをオンにし,そのフラグ情報のみを記録するようにする。そして,外部から転送コントローラ12を介して滞留フラグや転送異常フラグを読み出し可能にすることで,その識別子のメッセージに滞留が発生したかや,転送異常が発生したかを検出することができる。また,記憶すべき情報は,識別子ID毎のフラグ情報のみであるので,転送履歴領域LOGのメモリ容量を小さく抑えることができる。   In this way, the number of messages staying in the gateway unit is monitored, and if the reference value is exceeded, the retention flag is turned on. If it becomes negative, the transfer error flag is turned on, and only the flag information is recorded. To do. Then, by making it possible to read the stay flag and the transfer abnormality flag from the outside via the transfer controller 12, it is possible to detect whether a stay of the identifier message has occurred or whether a transfer error has occurred. Further, since the information to be stored is only the flag information for each identifier ID, the memory capacity of the transfer history area LOG can be kept small.

図5の例では,滞留カウンタを設けて,メッセージの滞留数を監視するようにした。しかし,滞留数の監視は,例えば,FIFO構成の送信キューバッファT−QUEの書き込みポインタと読み出しポインタの差を逐次演算することでも実現可能である。つまり,メッセージの受信や送信のイベントが発生するたびに,FIFO制御のために上記ポインタの制御が行われる。その時に,ポインタの差分を演算することで,その時の滞留メッセージの数を求めることができる。そして,その数が所定の閾値Vthを超えている場合に,滞留フラグをオンさせるようにしても良い。   In the example of FIG. 5, a stay counter is provided to monitor the number of staying messages. However, the staying number can be monitored, for example, by sequentially calculating the difference between the write pointer and the read pointer of the transmission queue buffer T-QUE having the FIFO configuration. That is, each time a message reception or transmission event occurs, the pointer is controlled for FIFO control. At that time, by calculating the pointer difference, the number of staying messages at that time can be obtained. Then, when the number exceeds a predetermined threshold value Vth, the stay flag may be turned on.

転送コントローラTCONは,転送履歴に対応して,ゲートウエイユニット内でのメッセージの滞留状態を改善するように制御することができるのが望ましい。そのために,転送コントローラTCONは,例えば,滞留フラグがオンになった識別子を監視し,その識別子に対応する送信キューバッファの送信周期を短くするよう変更制御する。または,滞留フラグがオンになった識別子のメッセージ群については,先頭の所定数のメッセージを強制的に破棄するような制御をすることでもよい。   It is desirable that the transfer controller TCON can be controlled to improve the message retention state in the gateway unit in accordance with the transfer history. For this purpose, the transfer controller TCON monitors, for example, an identifier whose stay flag is turned on, and controls to change the transmission cycle of the transmission queue buffer corresponding to the identifier. Alternatively, for a message group having an identifier for which the stay flag is turned on, control may be performed to forcibly discard a predetermined number of messages at the beginning.

以上説明したとおり,本実施の形態によれば,ゲートウエイ装置10内でのメッセージの転送履歴情報を記憶するようにしたので,何らかの故障が発生した時の故障診断に利用することができ,故障診断の質を高めることができる。   As described above, according to the present embodiment, since the message transfer history information in the gateway device 10 is stored, it can be used for failure diagnosis when any failure occurs. Can enhance the quality.

本実施の形態におけるゲートウエイ装置の構成とメッセージの転送動作を示す図である。It is a figure which shows the structure of the gateway apparatus in this Embodiment, and the transfer operation | movement of a message. 本実施の形態におけるゲートウエイユニットの詳細構成を示す図である。It is a figure which shows the detailed structure of the gateway unit in this Embodiment. 本実施の形態における転送履歴領域の一例を示す図である。It is a figure which shows an example of the transfer log | history area | region in this Embodiment. 図3の転送履歴を利用して得られたゲートウエイユニット内でのメッセージの滞留の様子を示す図である。It is a figure which shows the mode of the retention of the message in the gateway unit obtained using the transfer log | history of FIG. 本実施の形態における転送履歴領域の他の例を示す図である。It is a figure which shows the other example of the transfer log | history area | region in this Embodiment. ある識別子のメッセージの滞留の様子を示す図である。It is a figure which shows the mode of the stay of the message of a certain identifier.

符号の説明Explanation of symbols

ECU1〜4:デバイス, BUS−1,2:CANバス(ネットワーク)
10:ゲートウエイ装置(ゲートウエイユニット)
12:共有メモリ(メッセージ格納領域MES,転送履歴領域LOG)
TCON:転送コントローラ(転送制御手段)
T−QUE:送信キューバッファ MES1,2:メッセージ
ECU1-4: Device, BUS-1,2: CAN bus (network)
10: Gateway device (gateway unit)
12: Shared memory (message storage area MES, transfer history area LOG)
TCON: Transfer controller (transfer control means)
T-QUE: Transmission queue buffer MES1, 2: Message

Claims (3)

複数のデバイスがそれぞれ接続される複数のネットワーク間に設けられ,前記ネットワーク間のメッセージを転送するゲートウエイ装置において,
送信元ネットワークから受信したメッセージを順次送信先ネットワークに送信する転送制御手段と,
前記メッセージの受信と送信に関する転送履歴情報を記憶する転送履歴記憶手段とを有し,
当該転送履歴記憶手段に記憶された転送履歴情報が外部から読み出し可能であることを特徴とするゲートウエイ装置。
In a gateway device provided between a plurality of networks to which a plurality of devices are connected, respectively, for transferring messages between the networks,
Transfer control means for sequentially transmitting messages received from the source network to the destination network;
Transfer history storage means for storing transfer history information related to reception and transmission of the message,
A gateway apparatus characterized in that the transfer history information stored in the transfer history storage means can be read from the outside.
請求項1において,
前記メッセージには,前記ネットワーク内の送信権の優先順位を規定した識別子が付加され,前記転送制御手段は,前記識別子に対応する送信周期で受信したメッセージを前記送信先ネットワークに送信し,前記転送履歴記憶手段は,前記識別子毎に前記転送履歴情報を記憶し,当該識別子に対応する前記転送履歴情報が外部に読み出し可能であることを特徴とするゲートウエイ装置。
In claim 1,
An identifier defining the priority of transmission rights in the network is added to the message, and the transfer control means transmits a message received at a transmission period corresponding to the identifier to the destination network, and transfers the transfer The gateway device, wherein the history storage means stores the transfer history information for each identifier, and the transfer history information corresponding to the identifier can be read out to the outside.
請求項1または2において,
前記転送履歴情報は,前記メッセージの受信時間と送信時間,受信から送信までの時間,受信後送信待ちメッセージ数,受信後送信待ちメッセージ数が所定数を超えたか否かの滞留情報,または受信後複数回送信されたか否かの送信異常情報のうち,少なくとも一つを含むことを特徴とするゲートウエイ装置。
In claim 1 or 2,
The transfer history information includes the reception time and transmission time of the message, the time from reception to transmission, the number of messages waiting for transmission after reception, the staying information indicating whether the number of messages waiting for transmission after reception exceeds a predetermined number, or after reception A gateway apparatus comprising at least one of transmission abnormality information indicating whether or not a plurality of transmissions have been made.
JP2005001122A 2005-01-06 2005-01-06 Gateway apparatus for transferring message between buses Withdrawn JP2006191339A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005001122A JP2006191339A (en) 2005-01-06 2005-01-06 Gateway apparatus for transferring message between buses

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005001122A JP2006191339A (en) 2005-01-06 2005-01-06 Gateway apparatus for transferring message between buses

Publications (1)

Publication Number Publication Date
JP2006191339A true JP2006191339A (en) 2006-07-20

Family

ID=36798045

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005001122A Withdrawn JP2006191339A (en) 2005-01-06 2005-01-06 Gateway apparatus for transferring message between buses

Country Status (1)

Country Link
JP (1) JP2006191339A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008042411A (en) * 2006-08-03 2008-02-21 Toyota Motor Corp Network system
WO2008062747A1 (en) * 2006-11-21 2008-05-29 Autonetworks Technologies, Ltd. Relay connection unit and vehicle-mounted communication system
JP2009161103A (en) * 2008-01-09 2009-07-23 Denso Corp Vehicle control device and vehicle control system using the same
US8155829B2 (en) 2007-11-21 2012-04-10 Denso Corporation Common control apparatus and vehicle control system
WO2014057642A1 (en) * 2012-10-09 2014-04-17 株式会社デンソー Relay device
JP2014078801A (en) * 2012-10-09 2014-05-01 Denso Corp Repeater
JP2020032883A (en) * 2018-08-30 2020-03-05 株式会社クボタ Control system

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008042411A (en) * 2006-08-03 2008-02-21 Toyota Motor Corp Network system
US8255109B2 (en) 2006-11-21 2012-08-28 Autonetworks Technologies, Ltd. Relay connection unit and vehicle-mounted communication system
WO2008062747A1 (en) * 2006-11-21 2008-05-29 Autonetworks Technologies, Ltd. Relay connection unit and vehicle-mounted communication system
JP2008131362A (en) * 2006-11-21 2008-06-05 Auto Network Gijutsu Kenkyusho:Kk Transit connection unit and vehicle-mounted communication system
DE112007002812B4 (en) * 2006-11-21 2014-02-13 Autonetworks Technologies, Ltd. Relay connection unit and vehicle-side communication system
US8155829B2 (en) 2007-11-21 2012-04-10 Denso Corporation Common control apparatus and vehicle control system
JP2009161103A (en) * 2008-01-09 2009-07-23 Denso Corp Vehicle control device and vehicle control system using the same
JP4557009B2 (en) * 2008-01-09 2010-10-06 株式会社デンソー Vehicle control apparatus and vehicle control system using the same
WO2014057642A1 (en) * 2012-10-09 2014-04-17 株式会社デンソー Relay device
JP2014078801A (en) * 2012-10-09 2014-05-01 Denso Corp Repeater
CN104718725A (en) * 2012-10-09 2015-06-17 株式会社电装 Relay device
US9224251B2 (en) 2012-10-09 2015-12-29 Denso Corporation Gateway device
US9819562B2 (en) 2012-10-09 2017-11-14 Denso Corporation Gateway device with priority arbitration function
JP2020032883A (en) * 2018-08-30 2020-03-05 株式会社クボタ Control system
JP7101567B2 (en) 2018-08-30 2022-07-15 株式会社クボタ Control system

Similar Documents

Publication Publication Date Title
CN108476161B (en) Electronic control unit, communication method, and in-vehicle network system
CN108476162B (en) Network hub, forwarding method and vehicle-mounted network system
Di Natale et al. Understanding and using the controller area network communication protocol: theory and practice
US10153825B2 (en) Vehicle-mounted control device
US7602779B2 (en) Microprocessor, network system and communication method
JP2006191339A (en) Gateway apparatus for transferring message between buses
US11863569B2 (en) Bus-off attack prevention circuit
US9703736B2 (en) Data transmission apparatus, communication control method, and communication control program
US10057081B2 (en) Communication network for transmission of messages
US20120327950A1 (en) Method for Transmitting Data Packets
JP4839109B2 (en) In-vehicle database system
JP2006191337A (en) Gateway device for transferring message between buses and network system using the device
CN112968821B (en) Electronic control unit, communication method, and in-vehicle network system
JP6332060B2 (en) In-vehicle network
JP2006253922A (en) Gateway apparatus and data transfer method for the gateway apparatus
JP5696685B2 (en) In-vehicle communication system, communication abnormality monitoring method for in-vehicle communication system, and communication abnormality monitoring program for in-vehicle communication system
JP2006340099A (en) Gateway unit
CN112787901B (en) Network hub, forwarding method and vehicle-mounted network system
JP4361540B2 (en) Gateway device, data transfer method, and program
JP2005309661A5 (en)
JP2021061554A (en) Data conversion device
JP2009194814A (en) Communication equipment and failure decision method in communication device
CN118200277A (en) Vehicle-mounted communication network controller, method for processing message and controller
JP2007174118A (en) Communication message conversion device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20071225

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20080116

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090116