JP2007036632A - Gateway apparatus - Google Patents

Gateway apparatus Download PDF

Info

Publication number
JP2007036632A
JP2007036632A JP2005216588A JP2005216588A JP2007036632A JP 2007036632 A JP2007036632 A JP 2007036632A JP 2005216588 A JP2005216588 A JP 2005216588A JP 2005216588 A JP2005216588 A JP 2005216588A JP 2007036632 A JP2007036632 A JP 2007036632A
Authority
JP
Japan
Prior art keywords
data
gateway device
vehicle
vehicle device
requested
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
JP2005216588A
Other languages
Japanese (ja)
Inventor
Shinjiro Hioki
慎二郎 日置
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.)
Marelli Corp
Original Assignee
Calsonic Kansei Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Calsonic Kansei Corp filed Critical Calsonic Kansei Corp
Priority to JP2005216588A priority Critical patent/JP2007036632A/en
Publication of JP2007036632A publication Critical patent/JP2007036632A/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 automatically setting a frame ID to be passed by having only to execute connection for interrupting the gateway apparatus to a bus. <P>SOLUTION: When on-vehicle devices A1, A2 (B1, B2) request the gateway apparatus 1 to transmit data of on-vehicle devices B1, B2 (A1, A2) connected to another network connected by the gateway apparatus 1, the gateway apparatus 1 discriminates the presence/absence of the on-vehicle devices B1, B2 (A1, A2) connected to the other network and whose data are requested, and when the on-vehicle devices B1, B2 (A1, A2) whose data are requested exist in the other network, a CPU 2 of the gateway apparatus 1 registers the on-vehicle devices B1, B2 (A1, A2) to a RAM 24 as a transfer destination or a transfer source. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、異なるネットワーク間に属する機器の通信を行うゲートウェイ装置の技術分野に属し、特に車載装置間の異なる通信ネットワーク間の通信を可能にするものに有用である。   The present invention belongs to the technical field of gateway devices that perform communication of devices belonging to different networks, and is particularly useful for enabling communication between different communication networks between in-vehicle devices.

従来においては、車載装置のIDの登録リストを予め備え、新たな車載装置の接続に対して、登録リストとの照合を行い、リストで確認できないものの場合には、その新たな車載装置からの受信があると、登録されていない旨をユーザに報知している(例えば、特許文献1参照。)。
特開2004−247944号公報(第2−11頁、全図)
Conventionally, a registration list of IDs of in-vehicle devices is prepared in advance, and the connection with a new in-vehicle device is checked against the registration list. If the list cannot be confirmed, reception from the new in-vehicle device is received. If there is, the user is notified that it is not registered (see, for example, Patent Document 1).
JP 2004-247944 A (page 2-11, all figures)

しかしながら、従来にあっては、ゲートウェイユニットがゲートウェイするフレームデータは、バス負荷の低減を目的とし転送の必要のないフレームデータを転送しないように、通過させるフレームデータのIDを登録しておく必要があるため、仕様の異なったバスに接続するためには、それぞれの設定が必要となり、ゲートウェイユニットの種類が増えてしまう。   However, in the past, for the frame data gatewayed by the gateway unit, for the purpose of reducing the bus load, it is necessary to register the ID of the frame data to be passed so as not to transfer the frame data that does not need to be transferred. Therefore, in order to connect to buses with different specifications, each setting is required, and the types of gateway units increase.

本発明は、上記問題点に着目してなされたもので、その目的とするところは、ゲートウェイ装置をバスに割り込ませる接続をするだけで、通過させるフレームIDを自動設定することができるゲートウェイ装置を提供することにある。   The present invention has been made paying attention to the above-mentioned problems, and the object of the present invention is to provide a gateway device that can automatically set a frame ID to be passed only by connecting the gateway device to interrupt the bus. It is to provide.

上記目的を達成するため、本発明では、車内の車載装置で複数の車内ネットワークを形成し、形成された異なるネットワーク間を接続して、ネットワークから受信するデータを一時的に保存・変換して別のネットワークに送信するようにし、異なるネットワークに接続している車載装置間でのデータのやり取りを行う、ゲートウェイ装置において、前記車載装置から前記ゲートウェイ装置で接続する別のネットワークに属する車載装置のデータが要求されると、別のネットワークにおいて要求のあった車載装置の有無を判断し、要求のあった車載装置が有る場合には、前記ゲートウェイ装置の転送先又は転送元として登録する転送設定登録手段を設けた、ことを特徴とする。   In order to achieve the above object, in the present invention, a plurality of in-vehicle networks are formed by in-vehicle devices in a vehicle, different networks formed are connected, and data received from the network is temporarily stored and converted to be separated. In the gateway device, the data of the in-vehicle device belonging to another network connected from the in-vehicle device to the gateway device is exchanged between the in-vehicle devices connected to different networks. When requested, the presence / absence of the requested in-vehicle device in another network is determined, and when there is the requested in-vehicle device, transfer setting registration means for registering as a transfer destination or transfer source of the gateway device is provided. It is provided.

よって、本発明にあっては、ゲートウェイ装置をバスに割り込ませる接続をするだけで、通過させるフレームIDを自動設定することができ、ユニットの種類を増やさなくでき、あるいはID登録作業をなくすことができる。   Therefore, in the present invention, it is possible to automatically set the frame ID to be passed by simply connecting the gateway device to the bus, without increasing the number of types of units, or eliminating the ID registration work. it can.

以下、本発明のゲートウェイ装置を実現する実施の形態を、実施例1に基づいて説明する。   Hereinafter, an embodiment for realizing the gateway device of the present invention will be described based on the first embodiment.

まず、構成を説明する。
図1は実施例1のゲートウェイ装置を用いたネットワーク構成を示す図である。図2は実施例1のゲートウェイ装置のブロック図である。
実施例1のゲートウェイ装置1は、車両の車載機器のコントローラA1,A2を、高速通信を行うバスAで接続する構成のネットワークAと、車両の車載機器のコントローラB1,B2を、低速通信を行うバスBで接続する構成のネットワークBとを接続するように設けられる。
First, the configuration will be described.
FIG. 1 is a diagram illustrating a network configuration using the gateway device according to the first embodiment. FIG. 2 is a block diagram of the gateway device according to the first embodiment.
The gateway device 1 according to the first embodiment performs low-speed communication between the network A configured to connect the controllers A1 and A2 of the in-vehicle devices of the vehicle via the bus A that performs high-speed communication and the controllers B1 and B2 of the in-vehicle devices of the vehicle. It is provided so as to connect to the network B configured to be connected by the bus B.

ゲートウェイ装置1は、図2に示すようにCPU2、トランシーバ3a,3b、電源回路4、発振子5、終端抵抗6a,6bを主要な構成としている。
CPU2は、通信部21a,21b、ウォッチドッグタイマ部22、ROM23、RAM24を備え、演算及び制御等を行う。
通信部21a,21bは、CPU2の入出力要求に従い、若しくは予め定めているタイミング等に従って、且つCAN通信プロトコルに沿って、CAN通信のデータ送受信をトランシーバ3a,3bとの間で行う。
ウォッチドッグタイマ部22は、例えば実行されるルーチンの終わりのフラグを検出するなどにより、CPU2で実行される処理に異常が生じていないかどうかを監視する。
As shown in FIG. 2, the gateway device 1 includes a CPU 2, transceivers 3a and 3b, a power supply circuit 4, an oscillator 5, and termination resistors 6a and 6b as main components.
The CPU 2 includes communication units 21a and 21b, a watchdog timer unit 22, a ROM 23, and a RAM 24, and performs calculation and control.
The communication units 21a and 21b perform data transmission / reception of CAN communication with the transceivers 3a and 3b in accordance with an input / output request of the CPU 2 or in accordance with a predetermined timing or the like and in accordance with a CAN communication protocol.
The watchdog timer unit 22 monitors whether or not an abnormality has occurred in the processing executed by the CPU 2, for example, by detecting a flag at the end of the routine to be executed.

ROM23は、CPU2で行う処理の内容やデータが保存されている。
RAM24は、データ等の一時的な保管を行う。本実施例1においては、転送が許可されるIDコードの登録データを記憶する(CPU2とRAM24で、転送設定登録手段と異常記憶手段に相当する)。
トランシーバ3a,3bは、通信線であるバスA,バスBと終端抵抗6a,6bを介して接続し、またCPU2に対しても接続し、それぞれが2本の線からなるバスA,バスBから受信した信号をCPU2へ入力できる信号に変換してCPU2へ出力し、CPU2が出力した信号を2本の線からなるバスA,バスBに流せる信号に変換してバスA,バスBへ出力する。
電源回路4は、CPU2及び周辺回路に電源を供給する。
発振子5は、CPU2での通信への同期処理、信号生成に使用する発振信号をCPU2へ出力する。
The ROM 23 stores contents and data of processing performed by the CPU 2.
The RAM 24 temporarily stores data and the like. In the first embodiment, registration data of an ID code for which transfer is permitted is stored (the CPU 2 and the RAM 24 correspond to transfer setting registration means and abnormality storage means).
The transceivers 3a and 3b are connected to the buses A and B, which are communication lines, via the terminating resistors 6a and 6b, and also to the CPU 2, from the bus A and the bus B each consisting of two lines. The received signal is converted into a signal that can be input to the CPU 2 and output to the CPU 2, and the signal output from the CPU 2 is converted into a signal that can be sent to the bus A and bus B consisting of two lines and output to the bus A and bus B. .
The power supply circuit 4 supplies power to the CPU 2 and peripheral circuits.
The oscillator 5 outputs to the CPU 2 an oscillation signal used for synchronization processing and signal generation with the CPU 2 for communication.

次に作用を説明する。
[転送処理及びID登録処理]
図3は実施例1のゲートウェイ装置で実行される転送処理及びID処理の流れを示すフローチャートで、以下各ステップについて説明する。
なお、説明上、ネットワークAをチャンネル1(以下、CH1と省略する)、bネットワークBをチャンネル2(以下CH2と省略する)とする。
Next, the operation will be described.
[Transfer process and ID registration process]
FIG. 3 is a flowchart showing the flow of transfer processing and ID processing executed by the gateway device of the first embodiment. Each step will be described below.
For the sake of explanation, it is assumed that the network A is channel 1 (hereinafter abbreviated as CH1) and the b network B is channel 2 (hereinafter abbreviated as CH2).

ステップS11では、データ受信があったかどうかを判断し、受信がある場合にはステップS12へ進み、受信がない場合には処理を終了する。   In step S11, it is determined whether or not data has been received. If there is reception, the process proceeds to step S12. If there is no reception, the process ends.

ステップS12では、受信がCH1からかどうかを判断し、CH1からの受信ならばステップS13へ進み、CH1からの受信でないならばステップS17へ進む。   In step S12, it is determined whether or not the reception is from CH1, and if the reception is from CH1, the process proceeds to step S13. If the reception is not from CH1, the process proceeds to step S17.

ステップS13では、ゲートウェイ装置による転送を行うフレームデータであるかどうかを判断し、転送するフレームデータであるならばステップS14へ進み、転送すべきフレームデータでないならばステップS15へ進む。   In step S13, it is determined whether or not the frame data is to be transferred by the gateway device. If the frame data is to be transferred, the process proceeds to step S14. If the frame data is not to be transferred, the process proceeds to step S15.

ステップS14では、CH2へフレームデータを転送する。   In step S14, the frame data is transferred to CH2.

ステップS15では、受信したフレームデータが設定要求フレームかどうかを判断し、設定要求フレームならばステップS16へ進み、設定要求フレームでないならば処理を終了する。   In step S15, it is determined whether the received frame data is a setting request frame. If it is a setting request frame, the process proceeds to step S16, and if it is not a setting request frame, the process ends.

ステップS16では、CH2のID設定モードの処理を行う。なお、この処理については、後述する。   In step S16, the CH2 ID setting mode processing is performed. This process will be described later.

ステップS17では、CH2からの受信かどうかを判断し、CH2からの受信であるならばステップS18へ進み、CH2からの受信でないならば処理を終了する。   In step S17, it is determined whether or not reception is from CH2, and if reception is from CH2, the process proceeds to step S18, and if not reception from CH2, the process is terminated.

ステップS18では、ゲートウェイ装置による転送を行うフレームデータであるかどうかを判断し、転送するフレームデータであるならばステップS19へ進み、転送すべきフレームデータでないならばステップS20へ進む。   In step S18, it is determined whether or not the frame data is to be transferred by the gateway device. If the frame data is to be transferred, the process proceeds to step S19. If the frame data is not to be transferred, the process proceeds to step S20.

ステップS19では、CH1へフレームデータを転送する。   In step S19, the frame data is transferred to CH1.

ステップS20では、受信したフレームデータが設定要求フレームかどうかを判断し、設定要求フレームならばステップS21へ進み、設定要求フレームでないならば処理を終了する。   In step S20, it is determined whether or not the received frame data is a setting request frame. If it is a setting request frame, the process proceeds to step S21. If it is not a setting request frame, the process ends.

ステップS21では、CH1のID設定モードの処理を行う。なお、この処理については、後述する。   In step S21, the CH1 ID setting mode processing is performed. This process will be described later.

[ID設定登録処理]
図4に示すのは、実施例1のゲートウェイ装置のCPU2で実行されるID設定登録処理の流れを示すフローチャートで、以下各ステップについて説明する。
なお、図4のフローチャートの処理は、図3におけるステップS16,S21の処理の詳細である。
[ID setting registration process]
FIG. 4 is a flowchart showing the flow of ID setting registration processing executed by the CPU 2 of the gateway device of the first embodiment. Each step will be described below.
Note that the processing of the flowchart of FIG. 4 is the details of the processing of steps S16 and S21 in FIG.

ステップS31では、タイマーをスタートさせて経過時間を計測する。   In step S31, the timer is started and the elapsed time is measured.

ステップS32では、他方のCH(チャンネル)から設定要求のあったIDのデータを受信したかどうかを判断し、受信したならばステップS33へ進み、受信しないならばステップS35へ進む。   In step S32, it is determined whether or not the data of the ID requested to be set is received from the other CH (channel). If received, the process proceeds to step S33, and if not received, the process proceeds to step S35.

ステップS33では、他方のCHにIDフレームを登録する。これにより次回よりステップS13,S18の処理において、転送すると判断されることになる。   In step S33, an ID frame is registered in the other CH. As a result, it is determined to transfer in the processing of steps S13 and S18 from the next time.

ステップS34では、該当する要求IDアンマッチ情報、つまり該当するIDからの受信がなく異常として記憶された情報から、このIDに関する情報を消去する。   In step S34, the information related to the ID is deleted from the corresponding request ID unmatch information, that is, the information stored as abnormal without receiving the corresponding ID.

ステップS35では、タイマーが予め設定した一定時間に達したかどうかを判断し、一定時間に達したならばステップS36に進み、一定時間に達しないならばステップS32へ戻る。   In step S35, it is determined whether or not the timer has reached a predetermined time. If the timer has reached a predetermined time, the process proceeds to step S36, and if not, the process returns to step S32.

ステップS36では、要求IDアンマッチ情報、つまり該当するIDからの受信がなく異常として記憶された情報として、このIDに関する情報を追加する。   In step S36, information relating to this ID is added as request ID unmatch information, that is, information stored as abnormal without receiving from the corresponding ID.

[設定要求フレーム送信処理]
図5に示すのは、実施例1のゲートウェイで接続するネットワークA,Bにノードとして属する車載装置で実行される設定要求フレームデータの送信処理の流れを示すフローチャートで、以下各ステップについて説明する。
[Setting request frame transmission processing]
FIG. 5 is a flowchart showing a flow of setting request frame data transmission processing executed by an in-vehicle device belonging as a node to the networks A and B connected by the gateway of the first embodiment. Each step will be described below.

ステップS41では、自らの車載装置が必要とする別の車載装置からのフレームデータを受信したかどうかを判断し、受信しないならばステップS42へ進み、受信したならば処理を終了する。   In step S41, it is determined whether frame data from another in-vehicle device required by the in-vehicle device is received. If not received, the process proceeds to step S42, and if received, the process is terminated.

ステップS42では、タイマーをスタートし、経過時間の計測を行う。   In step S42, a timer is started and elapsed time is measured.

ステップS43では、自らの車載装置が必要とする別の車載装置からのフレームデータを受信したかどうかを判断し、受信しないならばステップS44へ進み、受信したならば処理を終了する。   In step S43, it is determined whether frame data from another in-vehicle device required by the in-vehicle device is received. If not received, the process proceeds to step S44, and if received, the process is terminated.

ステップS44では、タイマーが予め設定した一定時間に達したかどうかを判断し、一定時間に達した、つまりタイムアップしたならばステップS43へ進み、一定時間に達しないならばステップS43へ戻る。   In step S44, it is determined whether or not the timer has reached a predetermined time, and if the fixed time has been reached, that is, if the time has expired, the process proceeds to step S43, and if not, the process returns to step S43.

ステップS45では、設定要求フレームをゲートウェイ装置へ送信する。   In step S45, a setting request frame is transmitted to the gateway device.

[自動ID登録作用]
バスA、バスBに接続されている車載装置A1,A2,B1,B2は、CAN通信のメッセージフレームデータを周期的に送信している。さらに、自身が必要とし受信すべきIDコードのフレームデータを監視し、一定時間内にフレームデータの受信がない場合には、その通信相手のIDコードを含む設定要求フレームデータを送信する(図5のS41→S42→S43→S44→S45の処理)。なお、この場合には、一定時間毎に1つのフレームを送信するためにバスA,Bに与える負荷は小さいものとなる。
[Automatic ID registration function]
The in-vehicle devices A1, A2, B1, and B2 connected to the bus A and the bus B periodically transmit message frame data for CAN communication. Further, it monitors the frame data of the ID code that it needs and should receive, and if it does not receive the frame data within a certain time, it sends the setting request frame data including the ID code of the communication partner (FIG. 5). S41->S42->S43->S44-> S45). In this case, the load applied to the buses A and B in order to transmit one frame at regular intervals is small.

車載装置から設定要求フレームデータを受信したゲートウェイ装置1は、その設定要求フレームデータに含まれるIDコードの車載装置を、他方のCH(バス)から検索し、そのIDコードの車載装置からのフレームデータを受信すると、その他方のCHには、そのIDが正常な通信先として存在することをゲートウェイするIDとしてRAM24に登録する(図3においては、S16,S21、図4においては、S31→S32→S33の処理)。
RAM24に登録されたこのIDデータは、車両のバッテリーから電源が供給される限り、その状態を保持する。
これにより、ゲートウェイ装置1では、予め転送させるデータのIDを登録しておかなくてもよく、ユニット種類増や品番分けなどがなくなり、コストや作業の低減になる。
Upon receiving the setting request frame data from the in-vehicle device, the gateway device 1 searches the other CH (bus) for the in-vehicle device of the ID code included in the setting request frame data, and the frame data from the in-vehicle device of the ID code. Is registered in the RAM 24 as the gateway ID that the ID exists as a normal communication destination in the other CH (in FIG. 3, S16, S21, in FIG. 4, S31 → S32 → Process of S33).
This ID data registered in the RAM 24 maintains its state as long as power is supplied from the vehicle battery.
As a result, the gateway device 1 does not need to register the ID of data to be transferred in advance, and there is no increase in unit types, product number division, and the like, and costs and work are reduced.

また、通常動作での信号のやり取りは、周期送信メッセージとなるが、ネットワークマネジメントとしてのウェイクアップコマンドは、イベント送信のみの場合がある。しかし、このようなマネジメントのコマンドは全システムに共有のものであるためデフォルトとして登録しておいても品番増などの影響はない。
CANメッセージフレームは、送信周期が最大100msであり、500kbpsのCANの場合、一つのフレームが送信に費やす時間が220μs程度であるため数秒程度で登録が完了することになる。
Further, the exchange of signals in the normal operation is a periodic transmission message, but the wake-up command as network management may be only event transmission. However, since such management commands are common to all systems, even if they are registered as defaults, there is no effect of increasing the product number.
The CAN message frame has a maximum transmission cycle of 100 ms. In the case of 500 kbps CAN, the time required for transmission of one frame is about 220 μs, so that registration is completed in about several seconds.

車載装置から設定要求フレームデータを受信したゲートウェイ装置1で、その設定要求フレームデータに含まれるIDコードの車載装置を、他方のCH(バス)から検索する。そのIDコードの車載装置からのフレームデータを一定時間内に受信しない場合には、ネットワークシステムとしてアンマッチが起きているとし、RAM24にエラーとして記憶する。この情報は、外部の診断機器などにより解析に用いられるようにしてもよいし、インジケータ出力などにより異常を使用者が確認できるようにしてもよい。   The gateway device 1 that has received the setting request frame data from the in-vehicle device searches the other CH (bus) for the in-vehicle device of the ID code included in the setting request frame data. If the frame data from the in-vehicle device with the ID code is not received within a certain time, it is assumed that an unmatch has occurred in the network system and is stored in the RAM 24 as an error. This information may be used for analysis by an external diagnostic device or the like, or the user may be able to confirm the abnormality by an indicator output or the like.

次に、効果を説明する。
実施例1のゲートウェイ装置にあっては、下記に列挙する効果を得ることができる。
Next, the effect will be described.
In the gateway device of the first embodiment, the effects listed below can be obtained.

(1)車内の車載装置A1,A2,B1,B2で複数の車内ネットワークを形成し、形成された異なるネットワーク間を接続して、ネットワークから受信するデータを一時的に保存・変換して別のネットワークに送信するようにし、異なるネットワークに接続している車載装置間でのデータのやり取りを行う、ゲートウェイ装置1において、車載装置A1,A2,B1,B2からゲートウェイ装置1で接続する別のネットワークに属する車載装置A1,A2,B1,B2のデータが要求されると、別のネットワークにおいて要求のあった車載装置A1,A2,B1,B2の有無を判断し、要求のあった車載装置A1,A2,B1,B2が有る場合には、ゲートウェイ装置1の転送先又は転送元としてCPU2がRAM24へ登録するため、ゲートウェイ装置をバスに割り込ませる接続をするだけで、通過させるフレームIDを自動設定することができ、ユニットの種類を増やさなくでき、あるいはID登録作業をなくすことができる。   (1) In-vehicle devices A1, A2, B1, and B2 in the vehicle form a plurality of in-vehicle networks, connect the formed different networks, and temporarily store and convert the data received from the network. In the gateway device 1 that transmits data to a network and exchanges data between in-vehicle devices connected to different networks, the in-vehicle devices A1, A2, B1, and B2 to another network connected by the gateway device 1 When the data of the in-vehicle devices A1, A2, B1, and B2 to which it belongs is requested, the presence or absence of the in-vehicle devices A1, A2, B1, and B2 requested in another network is determined, and the requested in-vehicle devices A1 and A2 , B1 and B2 are registered in the RAM 24 as the transfer destination or transfer source of the gateway device 1, the gateway device The only connections to interrupt the bus, it is possible to automatically set the frame ID to pass, can not increase the types of units, or can be eliminated ID registration operation.

(2)車載装置A1,A2,B1,B2からゲートウェイ装置1で接続する別のネットワークに属する車載装置A1,A2,B1,B2のデータが要求されると、別のネットワークにおいて要求のあった車載装置A1,A2,B1,B2の有無を判断し、要求のあった車載装置A1,A2,B1,B2が無い場合には、異常があったとし、異常内容をCPU2がRAM24に記憶するため、異常の解析に役立たせることができ、または異常を使用者がすぐに知ることができる。   (2) When the data of the in-vehicle devices A1, A2, B1, and B2 belonging to another network connected by the gateway device 1 from the in-vehicle devices A1, A2, B1, and B2 is requested, the in-vehicle device requested in the other network The presence or absence of the devices A1, A2, B1, B2 is determined, and if there is no requested in-vehicle device A1, A2, B1, B2, it is assumed that there is an abnormality, and the CPU 2 stores the abnormality content in the RAM 24. It can be used for the analysis of the abnormality, or the user can know the abnormality immediately.

(3)ネットワークに接続される車載装置A1,A2,B1,B2には、識別のための個別なIDコードが割り当てられ、ゲートウェイ装置1が転送するデータはフレーム構造のデータであり、車載装置A1,A2,B1,B2は、必要とする別のネットワークの車載装置A1,A2,B1,B2のデータが一定時間を越えて得られない場合には、該当する車載装置A1,A2,B1,B2との通信を要求し、且つ該当する車載装置のIDコードを含む設定要求フレームデータを出力し、CPU2は、設定要求フレームデータを受信すると、別のネットワークにおいて該当するIDコードを検索し、該当するIDコードの車載装置A1,A2,B1,B2からのデータ受信があると、そのIDコードを前記ゲートウェイ装置1の転送先又は転送元として登録するため、ゲートウェイ装置をバスに割り込ませる接続をするだけで、通過させるフレームIDを自動設定することができ、ユニットの種類を増やさなくでき、あるいはID登録作業のなくすことができる。   (3) Individual ID codes for identification are assigned to the in-vehicle devices A1, A2, B1, and B2 connected to the network, and the data transferred by the gateway device 1 is frame-structured data, and the in-vehicle device A1 , A2, B1, and B2, if the data of the in-vehicle devices A1, A2, B1, and B2 of different networks that are required cannot be obtained over a certain time, the corresponding in-vehicle devices A1, A2, B1, and B2 Requesting communication with the device and outputting the setting request frame data including the ID code of the corresponding in-vehicle device. Upon receiving the setting request frame data, the CPU 2 searches for the corresponding ID code in another network and corresponds. In order to register the ID code as the transfer destination or transfer source of the gateway device 1 when data is received from the in-vehicle devices A1, A2, B1, B2 of the ID code By simply connecting the gateway device to the bus, the frame ID to be passed can be automatically set, and the number of types of units can be increased or the ID registration work can be eliminated.

以上、本発明のゲートウェイ装置を実施例1に基づき説明してきたが、具体的な構成については、これらの実施例に限られるものではなく、特許請求の範囲の各請求項に係る発明の要旨を逸脱しない限り、設計の変更や追加等は許容される。   As mentioned above, although the gateway apparatus of this invention has been demonstrated based on Example 1, it is not restricted to these Examples about concrete structure, The summary of the invention which concerns on each claim of a claim Unless it deviates, design changes and additions are allowed.

ゲートウェイ装置1は、転送先又は転送元、つまり通信を許可するIDを登録し、そのIDのデータの通過を許可する。そのため、IDを通過許可データとして登録するものであってもよい。
異常記憶手段により記憶した異常内容によっては、対処する処理を行うようにしてもよい。
The gateway device 1 registers a transfer destination or transfer source, that is, an ID that permits communication, and permits passage of data of the ID. Therefore, the ID may be registered as passage permission data.
Depending on the content of the abnormality stored by the abnormality storage means, processing to deal with may be performed.

本願は、車両のネットワークのみならず、コントローラ間で構成するネットワークでの利用は容易であり、また、他の方式によるネットワークへの利用も容易である。   The present application can be easily used not only in a vehicle network but also in a network configured between controllers, and can be easily used in a network by other methods.

実施例1のゲートウェイ装置を用いたネットワーク構成を示す図である。It is a figure which shows the network structure using the gateway apparatus of Example 1. FIG. 実施例1のゲートウェイ装置のブロック図である。It is a block diagram of the gateway apparatus of Example 1. 実施例1のゲートウェイ装置で実行される転送処理及びID処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of transfer processing and ID processing executed by the gateway device of the first embodiment. 実施例1のゲートウェイ装置のCPU2で実行されるID設定登録処理の流れを示すフローチャートである。6 is a flowchart illustrating a flow of ID setting registration processing executed by the CPU 2 of the gateway device according to the first embodiment. 実施例1のゲートウェイで接続するネットワークA,Bにノードとして属する車載装置で実行される設定要求フレームデータの送信処理の流れを示すフローチャートである。3 is a flowchart showing a flow of setting request frame data transmission processing executed by an in-vehicle device belonging as a node to networks A and B connected by a gateway according to the first embodiment.

符号の説明Explanation of symbols

1 ゲートウェイ装置
2 CPU
21a 通信部
21b 通信部
22 ウォッチドッグタイマ部
23 ROM
24 RAM
3a トランシーバ
3b トランシーバ
4 電源回路
5 発振子
6a 終端抵抗
6b 終端抵抗
1 Gateway device 2 CPU
21a Communication unit 21b Communication unit 22 Watchdog timer unit 23 ROM
24 RAM
3a transceiver 3b transceiver 4 power supply circuit 5 oscillator 6a termination resistor 6b termination resistor

Claims (3)

車内の車載装置で複数の車内ネットワークを形成し、
形成された異なるネットワーク間を接続して、
ネットワークから受信するデータを一時的に保存・変換して別のネットワークに送信するようにし、
異なるネットワークに接続している車載装置間でのデータのやり取りを行う、
ゲートウェイ装置において、
前記車載装置から前記ゲートウェイ装置で接続する別のネットワークに属する車載装置のデータが要求されると、別のネットワークにおいて要求のあった車載装置の有無を判断し、要求のあった車載装置が有る場合には、前記ゲートウェイ装置の転送先又は転送元として登録する転送設定登録手段を設けた、
ことを特徴とするゲートウェイ装置。
Forming multiple in-car networks with in-car devices in the car,
Connect between the different networks formed,
Temporarily save and convert data received from the network and send it to another network,
Exchange data between in-vehicle devices connected to different networks,
In the gateway device,
When data of an in-vehicle device belonging to another network connected by the gateway device is requested from the in-vehicle device, it is determined whether there is an in-vehicle device requested in another network, and there is an in-vehicle device requested. Provided with a transfer setting registration means for registering as a transfer destination or transfer source of the gateway device,
A gateway device characterized by that.
請求項1に記載のゲートウェイ装置において、
前記車載装置から前記ゲートウェイ装置で接続する別のネットワークに属する車載装置のデータが要求されると、別のネットワークにおいて要求のあった車載装置の有無を判断し、要求のあった車載装置が無い場合には、異常があったとし、異常内容を記憶する異常記憶手段を設けた、
ことを特徴とするゲートウェイ装置。
The gateway device according to claim 1,
When data of an in-vehicle device belonging to another network connected by the gateway device is requested from the in-vehicle device, it is determined whether there is an in-vehicle device requested in another network, and there is no requested in-vehicle device Is provided with an abnormality storage means for storing the contents of the abnormality.
A gateway device characterized by that.
請求項1又は請求項2に記載のゲートウェイ装置において、
ネットワークに接続される車載装置には、識別のための個別なIDコードが割り当てられ、
前記ゲートウェイ装置が転送するデータはフレーム構造のデータであり、
前記車載装置は、必要とする別のネットワークの車載装置のデータが一定時間を越えて得られない場合には、該当する車載装置との通信を要求し、且つ該当する車載装置のIDコードを含む設定要求フレームデータを出力し、
前記転送設定登録手段は、前記設定要求フレームデータを受信すると、別のネットワークにおいて該当するIDコードを検索し、該当するIDコードの車載装置からのデータ受信があると、そのIDコードを前記ゲートウェイ装置の転送先又は転送元として登録する、
ことを特徴とするゲートウェイ装置。
In the gateway device according to claim 1 or 2,
In-vehicle devices connected to the network are assigned individual ID codes for identification,
The data transferred by the gateway device is frame structure data,
The in-vehicle device requests communication with the corresponding in-vehicle device and includes the ID code of the in-vehicle device when the data of the in-vehicle device of another necessary network cannot be obtained over a certain time. Output setting request frame data,
When the transfer setting registration unit receives the setting request frame data, the transfer setting registration unit searches for the corresponding ID code in another network, and when there is data reception of the corresponding ID code from the in-vehicle device, the ID code is transmitted to the gateway device. Register as a forwarding destination or forwarding source,
A gateway device characterized by that.
JP2005216588A 2005-07-27 2005-07-27 Gateway apparatus Withdrawn JP2007036632A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005216588A JP2007036632A (en) 2005-07-27 2005-07-27 Gateway apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005216588A JP2007036632A (en) 2005-07-27 2005-07-27 Gateway apparatus

Publications (1)

Publication Number Publication Date
JP2007036632A true JP2007036632A (en) 2007-02-08

Family

ID=37795345

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005216588A Withdrawn JP2007036632A (en) 2005-07-27 2005-07-27 Gateway apparatus

Country Status (1)

Country Link
JP (1) JP2007036632A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014017614A (en) * 2012-07-06 2014-01-30 Auto Network Gijutsu Kenkyusho:Kk Communication system, relay device, and communication device
JP2014146997A (en) * 2013-01-30 2014-08-14 Denso Corp Vehicle gateway unit
US9515906B2 (en) 2014-01-10 2016-12-06 Hyundai Motor Company Transceiver integrated circuit device and method of operation thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2014017614A (en) * 2012-07-06 2014-01-30 Auto Network Gijutsu Kenkyusho:Kk Communication system, relay device, and communication device
JP2014146997A (en) * 2013-01-30 2014-08-14 Denso Corp Vehicle gateway unit
US9515906B2 (en) 2014-01-10 2016-12-06 Hyundai Motor Company Transceiver integrated circuit device and method of operation thereof

Similar Documents

Publication Publication Date Title
JP5709055B2 (en) Electronic control device for vehicle
JP2007036907A (en) Gateway apparatus
JPH114244A (en) Abnormality monitoring method/system for network
US20200382597A1 (en) Vehicle diagnostic communication apparatus, system including the same and method thereof
WO2017141546A1 (en) Redundant communication system and redundant communication system restoration method
KR20170040326A (en) Communication control device for a subscriber station of a bus system, programming tool and method for programming subscriber stations in a bus system which has subscriber stations communicating according to different protocols
CN111264051A (en) Method for checking data transmission between two data processing devices via a first communication connection between two first interface units, and motor vehicle
JP2005159568A (en) Gateway apparatus
JP5019983B2 (en) In-vehicle communication system, relay device, and communication method
JP2007036632A (en) Gateway apparatus
JP2024003056A (en) On-vehicle device and sleep control method
JP2008172353A (en) In-vehicle relay device, in-vehicle communication system, and in-vehicle communication method
JP2006340099A (en) Gateway unit
WO2001045329A1 (en) Gateway and distributed system using the gateway
JP4361540B2 (en) Gateway device, data transfer method, and program
JP7140011B2 (en) Gateway device
KR100609493B1 (en) Method for transmitting multiple sensors data with a CAN message
JP2018192876A (en) Drive assist device
JP2008042562A (en) Gateway device
JP2011103577A (en) Communication controller, communication system, and communication control method
JP2017114406A (en) Network system
JP2005341495A (en) Gateway apparatus and method
RU2574847C2 (en) Tachograph having interface for external data input device
WO2024095681A1 (en) Setting device and in-vehicle equipment
KR101417402B1 (en) Fail-safe apparatus for gateway in vehicle networks and method thereof

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20080627

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20100805