JP2005079888A - Gateway apparatus - Google Patents

Gateway apparatus Download PDF

Info

Publication number
JP2005079888A
JP2005079888A JP2003307611A JP2003307611A JP2005079888A JP 2005079888 A JP2005079888 A JP 2005079888A JP 2003307611 A JP2003307611 A JP 2003307611A JP 2003307611 A JP2003307611 A JP 2003307611A JP 2005079888 A JP2005079888 A JP 2005079888A
Authority
JP
Japan
Prior art keywords
transmission
data
cpu
gateway device
network
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.)
Pending
Application number
JP2003307611A
Other languages
Japanese (ja)
Inventor
Hideaki Onda
秀明 恩田
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 JP2003307611A priority Critical patent/JP2005079888A/en
Publication of JP2005079888A publication Critical patent/JP2005079888A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a gateway apparatus for performing transmission after a prescribed time elapses even when transmission errors continuously occur and efficiently performing transmission. <P>SOLUTION: The apparatus includes a watch dot timer logic 22 for measuring a passage time from a data transmission start. After a prescribed passage time, data transmission is stopped and also data of RAM 24 to be transmitted is abandoned by a CPU 2. When transmission is stopped by the CPU 2, the CPU 2 transmits data which is received during measurement by the watch dog timer logic 22. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

本発明は、エラー後速やかに復帰でき、効率よく送信を行うようにした車載用のゲートウェイ装置の技術分野に属する。   The present invention belongs to the technical field of an in-vehicle gateway device that can be promptly restored after an error and can perform transmission efficiently.

従来のゲートウェイ装置は、異なるプロトコルを使用する車両内のネットワーク同士を接続するために、プロトコルを変換する手段としてCPUを備え、また、受信したデータ及び送信するデータを一時的に保存しておくためのデータバッファを備えて、ネットワークに接続した車載機器が、車両内の異なるネットワークの車載機器とデータのやりとりができるようにしている(例えば、特許文献1参照。)。
特開2002−243591号公報(第2−10頁、全図)
A conventional gateway device includes a CPU as means for converting a protocol in order to connect networks in a vehicle using different protocols, and temporarily stores received data and data to be transmitted. The in-vehicle device connected to the network can exchange data with in-vehicle devices in different networks in the vehicle (see, for example, Patent Document 1).
Japanese Patent Laying-Open No. 2002-243591 (page 2-10, full view)

しかしながら、従来のゲートウェイ装置にあっては、受信したデータをプロトコル変換してデータ送信を行う場合に、送信エラーなどにより送信できない状態が続くと、受信したデータが溜まってしまい、オーバーフローしてしまい、ネットワークが輻輳状態になってしまうおそれがあった。   However, in the conventional gateway device, when the received data is converted into a protocol and data is transmitted, if the transmission cannot be performed due to a transmission error or the like, the received data accumulates and overflows. There was a risk of the network becoming congested.

本発明は、上記問題点に着目してなされたもので、その目的とするところは、送信エラーが連続して発生しても、所定時間後に送信ができ、送信を効率的に行うことができるゲートウェイ装置を提供することにある。   The present invention has been made paying attention to the above-mentioned problems, and the purpose of the present invention is to perform transmission efficiently after a predetermined time even if transmission errors occur continuously. It is to provide a gateway device.

上記目的を達成するため、請求項1記載の発明では、車内の車載装置が接続される異なるネットワーク間を接続して、ネットワークから受信するデータが一時的に情報を保存する情報保存手段を介して別のネットワークに送信されるようにし、異なるネットワークに接続している車載装置間でのデータのやり取りを行う、ゲートウェイ装置において、データの送信開始からの経過時間を計測する時間計測手段を備え、所定の経過時間後にデータの送信を中止させると共に送信する前記情報保存手段のデータを破棄させる送信中止処理手段を備え、同送信中止処理手段により送信を中止した際には、前記時間計測手段による計測中に受信したデータを送信する送信再開処理手段を備えた、ことを特徴とする。   In order to achieve the above object, according to the first aspect of the present invention, the data received from the network is temporarily stored by connecting the different networks to which the in-vehicle device in the vehicle is connected. In the gateway device that transmits data to another network and exchanges data between in-vehicle devices connected to different networks, the gateway device includes time measuring means for measuring an elapsed time from the start of data transmission, Transmission stop processing means for canceling data transmission and discarding the data stored in the information storage means after the elapse of time, and when the transmission is stopped by the transmission stop processing means, the time measuring means is measuring And a transmission resumption processing means for transmitting the received data.

請求項2に記載の発明では、請求項1に記載されたゲートウェイ装置において、前記送信再開処理手段は、時間計測中に受信したデータが複数である場合には、所定の優先順位に従ってデータを送信する、ことを特徴とする。   According to a second aspect of the present invention, in the gateway device according to the first aspect, the transmission restart processing means transmits the data according to a predetermined priority when there are a plurality of data received during the time measurement. It is characterized by.

よって、請求項1記載の発明にあっては、送信エラーの連続により時間計測手段により計測される経過時間が経過すると、送信中止処理手段により送信が中止されるとともに、情報保存手段の送信データが破棄される。このため、情報保存手段が送信データの蓄積によりオーバーフローすることがなくなる。このようにして、送信中止処理手段が送信中止の処理を行った際には、送信再開処理手段により、時間計測中に受信したデータを送信する。よって、送信エラーが連続した際に、所定時間が経過すると送信が再開できるようになり、車両内でのデータのやり取りが長い時間遮断されることによる不具合を引き起こさないようにできる。   Therefore, according to the first aspect of the present invention, when the elapsed time measured by the time measuring means elapses due to continuous transmission errors, the transmission is canceled by the transmission stop processing means, and the transmission data of the information storage means is Discarded. For this reason, the information storage means does not overflow due to accumulation of transmission data. In this way, when the transmission cancellation processing unit performs the transmission cancellation process, the transmission resumption processing unit transmits the data received during the time measurement. Therefore, when transmission errors continue, transmission can be resumed when a predetermined time elapses, and troubles caused by interruption of data exchange in the vehicle for a long time can be prevented.

請求項2記載の発明では、送信中止処理手段が送信中止の処理を行って、送信再開処理手段により送信が再開される際に、時間計測中に受信したデータが複数である場合には、所定の優先順位に従ってデータを送信するため、重要な情報なほど確実性高く送信される。よって、通信バスの負荷が重いような状態が生じても効率のよい送信ができる。   According to the second aspect of the present invention, when there is a plurality of data received during time measurement when the transmission stop processing unit performs the transmission stop processing and transmission is restarted by the transmission restart processing unit, a predetermined value is given. Since the data is transmitted according to the priority order, the more important information is transmitted with higher certainty. Therefore, efficient transmission can be performed even when a heavy load on the communication bus occurs.

以下、本発明のゲートウェイ装置を実現する実施の形態を、請求項1,2に係る発明に対応する実施例に基づいて説明する。   Hereinafter, an embodiment for realizing the gateway device of the present invention will be described based on examples corresponding to the inventions according to claims 1 and 2.

(実施例)
まず、構成を説明する。
図1は実施例のゲートウェイ装置を用いる車両のシステム概略図である。図2は実施例のゲートウェイ装置のブロック図である。
実施例のゲートウェイ装置1は、車両内の自動変速装置A2やエンジンコントロール装置A3などを通信線A1で接続して構成されるネットワークAと、車両内のボディコントロール装置B2やエアコン装置B3などを通信線B1で接続して構成されるネットワークBとを接続するように設けられる。
(Example)
First, the configuration will be described.
FIG. 1 is a schematic diagram of a vehicle system using the gateway device of the embodiment. FIG. 2 is a block diagram of the gateway device of the embodiment.
The gateway device 1 of the embodiment communicates a network A configured by connecting an automatic transmission device A2 and an engine control device A3 in a vehicle with a communication line A1, and a body control device B2 and an air conditioner device B3 in the vehicle. It is provided so as to connect to the network B configured by connecting with the line B1.

ゲートウェイ装置1は、CPU(送信中止処理手段、送信再開処理手段に相当する)2、トランシーバ3a,3b、電源回路4、発振子5、EEPROM6、終端抵抗7a,7bを主要な構成としている。   The gateway device 1 mainly includes a CPU (corresponding to transmission stop processing means and transmission resumption processing means) 2, transceivers 3a and 3b, a power supply circuit 4, an oscillator 5, an EEPROM 6, and termination resistors 7a and 7b.

トランシーバ3a,3bは、通信線A1,B1と終端抵抗7a,7bを介して接続し、かつ、CPU2と接続し、それぞれが2本の線からなる通信線A1,B1から受信したデータをCPU2が入力できる信号にしてCPU2へ出力し、CPU2が出力した信号をそれぞれが2本の線からなる通信線A1,B1を流せる信号にして通信線A1,B1へ送信する。   The transceivers 3a and 3b are connected to the communication lines A1 and B1 via the terminating resistors 7a and 7b, and are connected to the CPU 2. The CPU 2 receives data received from the communication lines A1 and B1 each consisting of two lines. A signal that can be input is output to the CPU 2, and the signal output from the CPU 2 is transmitted to the communication lines A 1 and B 1 as a signal that can flow through the communication lines A 1 and B 1 each consisting of two lines.

電源回路4は、CPU2及び周辺回路に電源を供給する。   The power supply circuit 4 supplies power to the CPU 2 and peripheral circuits.

発振子5は、CPU2での通信への同期処理、信号生成に使用する発振信号をCPU2に出力する。   The oscillator 5 outputs to the CPU 2 an oscillation signal used for synchronization processing and signal generation with the CPU 2 for communication.

EEPROM6は、ネットワークA,Bに出力するメッセージを保存し、CPU2からの指令に応じて、CPU2にメッセージデータを出力する。また、CPU2からの指令に応じて保存した内容を消去する。なお、このメッセージの数は限られたものとなる。   The EEPROM 6 stores messages to be output to the networks A and B, and outputs message data to the CPU 2 in response to a command from the CPU 2. Further, the stored contents are erased in response to a command from the CPU 2. Note that the number of messages is limited.

CPU2には、図示しない演算処理部により実行される通信ロジック21a,21b、ウオッチドッグタイマロジック22、タイマロジック25が設けられ、また、ROM23、RAM(情報保存手段に相当する)24が設けられている。   The CPU 2 is provided with communication logics 21 a and 21 b, a watchdog timer logic 22 and a timer logic 25 that are executed by an arithmetic processing unit (not shown), and a ROM 23 and a RAM (corresponding to information storage means) 24. Yes.

ウオッチドッグタイマロジック22は、例えば実行されるルーチンの終わりのフラグを検出するなどして、CPU2で実行される処理に異常が生じていないかどうかを監視する。   The watchdog timer logic 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で行う処理の内容やデータが保存されている。   The ROM 23 stores contents and data of processing performed by the CPU 2.

RAM24は、通信ロジック21a,21bにより受信したデータを必要に応じてプロトコル変換して送信用データにしたものを一時的に保存しておく。
タイマロジック25(時間計測手段に相当する)は、CPU2で実行する時間を計測する処理を行う。
The RAM 24 temporarily stores the data received by the communication logics 21a and 21b and converted into protocol data as necessary.
A timer logic 25 (corresponding to a time measuring means) performs processing for measuring the time to be executed by the CPU 2.

次に作用を説明する。   Next, the operation will be described.

[送信処理]
図3に示すのは、CPU2で実行される送信処理の流れを示すフローチャートである。
[Transmission process]
FIG. 3 is a flowchart showing a flow of transmission processing executed by the CPU 2.

ステップS101では、受信データがあるかどうかを判断し、受信データがある場合にはステップS102に移行し、受信データがない場合には処理を終了する。   In step S101, it is determined whether there is received data. If there is received data, the process proceeds to step S102, and if there is no received data, the process ends.

ステップS102では、前回の送信がタイムアップしているかどうか、つまり送信が完了せずに経過時間が経過したかどうかを判断し、タイムアップしている場合にはステップS103に移行し、タイムアップしていない場合にはステップS105に移行する。   In step S102, it is determined whether or not the previous transmission has timed up, that is, whether or not the elapsed time has elapsed without completing the transmission. If the time has elapsed, the process proceeds to step S103 and the time is up. If not, the process proceeds to step S105.

ステップS103では、既に受信したデータが複数フレーム有るかどうかを判断し、複数ある場合には、ステップS104に移行し、複数ない場合にはステップS105に移行する。
ここで、ネットワークにおける通信データは1つのデータをフレームで表す。つまり、複数フレームは複数の機器からの通信データあるいは、複数回の通信データを意味する。
In step S103, it is determined whether or not there is a plurality of frames of data already received. If there are a plurality of frames, the process proceeds to step S104, and if there are not, the process proceeds to step S105.
Here, communication data in the network represents one piece of data as a frame. That is, a plurality of frames means communication data from a plurality of devices or a plurality of times of communication data.

ステップS104では、既に受信したデータを優先順位によりソートする。   In step S104, the already received data is sorted by priority.

ステップS105では、通信エラーなく送信が完了しているかどうかを判断し、送信が完了している場合にはステップS106に移行し、送信が完了していない場合にはステップS109に移行する。   In step S105, it is determined whether or not transmission has been completed without a communication error. If transmission has been completed, the process proceeds to step S106, and if transmission has not been completed, the process proceeds to step S109.

ステップS106では、次の送信データをセットする。   In step S106, the next transmission data is set.

ステップS107では、セットした次の送信データを送信するよう要求する。   In step S107, a request is made to transmit the next set transmission data.

ステップS108では、送信タイマを起動させる。   In step S108, a transmission timer is started.

ステップS109では、計測している経過時間がタイムアップしたかどうかを判断し、タイムアップした場合にはステップS110に移行し、タイムアップしていない場合には処理を終了する。   In step S109, it is determined whether or not the elapsed time being measured has expired. If the elapsed time has elapsed, the process proceeds to step S110, and if the time has not expired, the process ends.

ステップS110では、送信しようとしている送信データを破棄する。   In step S110, the transmission data to be transmitted is discarded.

ステップS111では、送信を中止し、送信が完了したこととする。   In step S111, it is assumed that the transmission is stopped and the transmission is completed.

[受信処理]
図4に示すのは、CPU2で実行される受信処理に含まれる処理の流れを示すフローチャートである。
[Receive processing]
FIG. 4 is a flowchart showing a flow of processing included in the reception processing executed by the CPU 2.

ステップS201では、受信があった際に受信割り込み処理を行う。   In step S201, reception interruption processing is performed when reception is performed.

ステップS202では、受信データを読み込む。   In step S202, received data is read.

ステップS203では、受信データを一時的に保存する。   In step S203, the received data is temporarily stored.

ステップS204では、受信割り込みフラグをクリアする。   In step S204, the reception interrupt flag is cleared.

ステップS205では、受信フラグをセットする。
[ゲートウェイ作用]
実施例のゲートウェイ装置1において、エンジンコントロール装置A3及び自動変速装置A2が異なるネットワークBで使用するデータを送信すると、通信線A1に接続した終端抵抗7a、トランシーバ3aを介して、通信ロジック21aの処理によりCPU2に入力される。
CPU2では、ネットワークAとネットワークBの通信プロトコルが異なる場合には、プロトコルを変換してRAM24に一時的にデータを保存しておき、所定のタイミングで、通信ロジック21bによりCPU2からトランシーバ3bにデータを出力し、終端抵抗7bを介して通信線B1に出力される。通信線B1に出力されたデータは、必要に応じてネットワークBのボディコントロール装置B2及びエアコン装置B3で受信される。
In step S205, a reception flag is set.
[Gateway action]
In the gateway device 1 of the embodiment, when the engine control device A3 and the automatic transmission device A2 transmit data used in different networks B, the processing of the communication logic 21a is performed via the terminating resistor 7a and the transceiver 3a connected to the communication line A1. Is input to the CPU 2.
In the CPU 2, when the communication protocols of the network A and the network B are different, the protocol is converted and the data is temporarily stored in the RAM 24, and the data is transferred from the CPU 2 to the transceiver 3b by the communication logic 21b at a predetermined timing. And output to the communication line B1 via the termination resistor 7b. The data output to the communication line B1 is received by the body control device B2 and the air conditioner device B3 of the network B as necessary.

また、ネットワークBのボディコントロール装置B2及びエアコン装置B3がデータを送信すると、通信線B1に接続した終端抵抗7b、トランシーバ3bを介してCPU2の通信ロジック21bに入力される。
CPU2では、ネットワークAとネットワークBの通信プロトコルが異なる場合には、プロトコルを変換してRAM24に一時的にデータを保存しておき、所定のタイミングで、通信ロジック21aよりトランシーバ3aにデータを出力し、終端抵抗7aを介して通信線A1に出力される。通信線A1に出力されたデータは、必要に応じてネットワークAの自動変速装置A2やエンジンコントロール装置A3で受信される。
Further, when the body control device B2 and the air conditioner device B3 of the network B transmit data, they are input to the communication logic 21b of the CPU 2 via the terminating resistor 7b and the transceiver 3b connected to the communication line B1.
In the case where the communication protocols of the network A and the network B are different, the CPU 2 converts the protocol and temporarily stores the data in the RAM 24, and outputs the data from the communication logic 21a to the transceiver 3a at a predetermined timing. And output to the communication line A1 via the terminating resistor 7a. The data output to the communication line A1 is received by the automatic transmission device A2 and the engine control device A3 of the network A as necessary.

[送信エラーへの対応]
〈1〉正常な場合
一方のネットワークからデータを受信した後に、他方のネットワークへのデータ送信が正常に行われていた状態で、データを受信すると、それがステップS101の処理で受信データありと判断される。この場合、その前の受信データは正常にプロトコル変換されて送信が完了しているため、ステップS105で送信完了と判断され、受信したデータはプロトコル変換されてステップS106〜S108の処理により送信されるとともに、経過時間がタイマロジック25により計測される。正常な場合には、経過時間が経過する前に送信が完了することとなる。
[Response to transmission errors]
<1> When normal When data is received after data is received from one network and data is normally transmitted to the other network, it is determined that there is received data in the process of step S101. Is done. In this case, since the previous received data has been successfully converted into a protocol and transmission has been completed, it is determined in step S105 that the transmission has been completed, and the received data is converted into a protocol and transmitted by the processing in steps S106 to S108. At the same time, the elapsed time is measured by the timer logic 25. If it is normal, transmission will be completed before the elapsed time has elapsed.

〈2〉送信エラーが発生し、次に送信されるデータを受信した場合
それまでは正常に送信が行われ、次に送信されるデータを受信した際に、前のデータの送信にエラーがあった場合、前回の送信からの経過時間が計測されているが、タイムアップはしていないこととなる。よって、ステップS102からステップS105の処理で送信が完了していないと判断され、ステップS109の処理でタイムアップでないと判断され、処理は終了する。
<2> When a transmission error occurs and the next data to be transmitted has been received. Until then, data was transmitted normally. When the next data to be transmitted was received, there was an error in the transmission of the previous data. In this case, the elapsed time from the previous transmission is measured, but the time is not up. Therefore, it is determined that the transmission is not completed in the processing from step S102 to step S105, it is determined that the time is not up in the processing in step S109, and the processing ends.

〈3〉送信エラー後、所定時間が経過した場合(受信データは単数)
送信エラーが発生し、所定時間が経過(タイムアップ)すると、ステップS109の判断処理によりステップS110、S111の処理でRAM24に一時的に保存している送信するデータを破棄し、送信を中止して送信が完了したこととする。これにより、受信したデータは、ステップS106〜ステップS108の処理により送信されることになる。よって、送信エラーが発生して所定時間が経過すると、送信が再開されることとなる。
<3> When a predetermined time has elapsed after a transmission error (single received data)
When a transmission error occurs and a predetermined time elapses (time up), the determination processing in step S109 discards the data to be transmitted temporarily stored in the RAM 24 in the processing in steps S110 and S111, and stops transmission. Assume that transmission is complete. As a result, the received data is transmitted by the processing in steps S106 to S108. Therefore, when a transmission error occurs and a predetermined time elapses, transmission is resumed.

〈4〉送信エラー後、所定時間が経過した場合(受信データは複数)
送信エラーが発生し、所定時間が経過(タイムアップ)した場合、受信データが複数の場合には、そのことがステップS103の処理で判断され、ステップS104の処理で優先順位に従ってソートされ、エラーの際の送信データが破棄された後に、その優先順位に従って送信が行われる。
よって、送信エラーが発生した際に所定時間が経過すると送信が再開されるだけでなく、その際には優先順位に従って送信されることになり、効率のよい送信が行われるようにする。
<4> When a predetermined time has elapsed after a transmission error (multiple received data)
When a transmission error occurs and a predetermined time has elapsed (time up), when there are a plurality of received data, this is determined in the process of step S103, and is sorted according to the priority in the process of step S104. After the transmission data is discarded, transmission is performed according to the priority order.
Therefore, when a predetermined time elapses when a transmission error occurs, not only the transmission is resumed, but also at that time, the transmission is performed according to the priority order so that efficient transmission is performed.

次に効果を説明する。   Next, the effect will be described.

本実施例のゲートウェイ装置にあっては、次に列挙する効果を得ることができる。   In the gateway device of the present embodiment, the following effects can be obtained.

(1)車内の車載装置が接続される異なるネットワークA,B間を接続して、ネットワークから受信するデータが一時的に情報を保存するRAM24を介して別のネットワークに送信されるようにし、異なるネットワークに接続している車載装置間でのデータのやり取りを行う、ゲートウェイ装置1において、データの送信開始からの経過時間を計測するタイマロジック25を備え、所定の経過時間後にデータの送信を中止させると共に送信するRAM24のデータをCPU2が破棄させるようにし、CPU2で送信を中止した際には、タイマロジック25による計測中に受信したデータをCPU2が送信するようにしたため、送信エラーが連続した際に、所定時間が経過すると送信が再開できるようになり、車両内でのデータのやり取りが長い時間遮断されることによる不具合を引き起こさないようにできる。   (1) By connecting between different networks A and B to which in-vehicle devices in the vehicle are connected, the data received from the network is transmitted to another network via the RAM 24 that temporarily stores the information. The gateway device 1 that exchanges data between in-vehicle devices connected to the network includes a timer logic 25 that measures an elapsed time from the start of data transmission, and stops data transmission after a predetermined elapsed time. The CPU 2 discards the data in the RAM 24 to be transmitted together, and when the CPU 2 stops the transmission, the data received during the measurement by the timer logic 25 is transmitted by the CPU 2. , Transmission can be resumed after a predetermined time, and data exchange in the vehicle is long Possible so as not to cause trouble due to be shut off during.

また、以上のことは、車内ネットワークプロトコルとしてCAN(Controller Area Network)を用いる際に特に有効である。CANでは、その通信線として用いられるバスへのアクセス方式としてCSMA/CA方式(またはCSMA/CD方式)を行うため、送信を行う際に送信データがバス上で衝突(コリジョン)による送信エラーとなると、送信データを蓄積して再送信を行う。その際にはデータのIDにより送信の優先順位が決まる。
このCANネットワークにゲートウェイ装置を接続すれば、ゲートウェイ装置もネットワークに接続する1つの機器となるため、送信エラーの際には、データが蓄積しやすい。また、ゲートウェイ装置には多くのデータが送られるため、さらにデータが蓄積しやすい。しかし、ゲートウェイ装置を介して送られる情報には車両にとって重要なものもあるため、ネットワークの輻輳状態の回避の必要性は高い。よって、送信エラーが連続した際に、所定時間が経過すると送信が再開でき、車両内でのデータのやり取りが長い時間遮断されることによる不具合を引き起こさないようにできることは、CANネットワークを用いる車両において、信頼性や安全性を向上させることとなる。
The above is particularly effective when using CAN (Controller Area Network) as the in-vehicle network protocol. Since the CAN uses the CSMA / CA method (or CSMA / CD method) as an access method to the bus used as the communication line, when transmission occurs, transmission data causes a transmission error due to collision (collision) on the bus. The transmission data is accumulated and retransmitted. At that time, the transmission priority is determined by the data ID.
If a gateway device is connected to this CAN network, the gateway device also becomes a single device connected to the network, so that data is likely to accumulate in the event of a transmission error. Further, since a lot of data is sent to the gateway device, it is easier to accumulate data. However, since information sent via the gateway device is important for the vehicle, there is a high need for avoiding a network congestion state. Therefore, in a vehicle using a CAN network, when transmission errors continue, transmission can be resumed when a predetermined time elapses, and data exchange in the vehicle can be prevented from being interrupted for a long time. This will improve reliability and safety.

(2)CPU2は、時間計測中に受信したデータが複数である場合には、所定の優先順位に従ってデータを送信するため、通信バスの負荷が重いような状態が生じても効率のよい送信ができる。   (2) Since the CPU 2 transmits data according to a predetermined priority when there are a plurality of data received during time measurement, efficient transmission is possible even if a heavy load on the communication bus occurs. it can.

また、このことも、車内ネットワークプロトコルとしてCAN(Controller Area Network)を用いる際に特に有効である。CANでは、上述のように、CSMA/CA方式(またはCSMA/CD方式)を行うため、送信エラーとなると、データのIDにより再送信の優先順位が決まる。
よって、ゲートウェイ装置を介して送られる異なるネットワークのデータも、IDによる優先順位で送られれば、通信バスの負荷が重いような状態が生じても非常に効率のよい通信が行われることになり、CANネットワークにおいて重要なデータほど確実に送受信ができるようになるため、CANネットワークを用いる車両において、信頼性や安全性を向上させることとなる。
This is also particularly effective when using CAN (Controller Area Network) as an in-vehicle network protocol. Since the CAN uses the CSMA / CA method (or CSMA / CD method) as described above, if a transmission error occurs, the priority of retransmission is determined by the data ID.
Therefore, if the data of different networks sent via the gateway device is also sent in the priority order by ID, very efficient communication will be performed even if a situation such as a heavy load on the communication bus occurs, Since important data can be transmitted and received more reliably in the CAN network, reliability and safety are improved in a vehicle using the CAN network.

以上、本発明のゲートウェイ装置を実施例に基づき説明してきたが、具体的な構成については、これらの実施例に限られるものではなく、特許請求の範囲の各請求項に係る発明の要旨を逸脱しない限り、設計の変更や追加等は許容される。
例えば、実施例では、情報保存手段としてCPU内部のRAMを用いたが外部記憶装置等であってもよい。
実施例では、時間計測手段として、タイマロジックを使用したが、発振子の発振信号を利用してもよく、CPUの外部にタイマ回路を設けるようにしてもよい。
実施例では、送信中止処理手段と送信再開処理手段として、CPUで実行される処理を用いたが、別に回路等を設けるようにしてもよい。
The gateway device of the present invention has been described based on the embodiments. However, the specific configuration is not limited to these embodiments, and departs from the gist of the invention according to each claim of the claims. Unless otherwise, design changes and additions are permitted.
For example, in the embodiment, the RAM inside the CPU is used as the information storage unit, but an external storage device or the like may be used.
In the embodiment, the timer logic is used as the time measuring means. However, the oscillation signal of the oscillator may be used, or a timer circuit may be provided outside the CPU.
In the embodiment, the processing executed by the CPU is used as the transmission cancellation processing means and the transmission resumption processing means, but a circuit or the like may be provided separately.

実施例のゲートウェイ装置を用いる車両のシステム概略図である。It is a system schematic diagram of a vehicle using a gateway device of an example. 実施例のゲートウェイ装置のブロック図である。It is a block diagram of the gateway apparatus of an Example. CPUで実行される送信処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the transmission process performed with CPU. CPUで実行される受信処理に含まれる処理の流れを示すフローチャートである。It is a flowchart which shows the flow of the process included in the reception process performed with CPU.

符号の説明Explanation of symbols

1 ゲートウェイ装置
2 CPU
21a 通信ロジック
21b 通信ロジック
22 ウオッチドッグタイマロジック
23 ROM
24 RAM
25 タイマロジック
3a トランシーバ
3b トランシーバ
4 電源回路
5 発振子
6 EEPROM
7a 終端抵抗
7b 終端抵抗
A ネットワークA
B ネットワークB
A1 通信線
A2 自動変速装置
A3 エンジンコントロール装置
B1 通信線
B2 ボディコントロール装置
B3 エアコン装置
1 Gateway device 2 CPU
21a Communication logic 21b Communication logic 22 Watchdog timer logic 23 ROM
24 RAM
25 Timer Logic 3a Transceiver 3b Transceiver 4 Power Supply Circuit 5 Oscillator 6 EEPROM
7a Terminating resistor 7b Terminating resistor A Network A
B Network B
A1 communication line A2 automatic transmission A3 engine control device B1 communication line B2 body control device B3 air conditioner device

Claims (2)

車内の車載装置が接続される異なるネットワーク間を接続して、
ネットワークから受信するデータが一時的に情報を保存する情報保存手段を介して別のネットワークに送信されるようにし、
異なるネットワークに接続している車載装置間でのデータのやり取りを行う、
ゲートウェイ装置において、
データの送信開始からの経過時間を計測する時間計測手段を備え、
所定の経過時間後にデータの送信を中止させると共に送信する前記情報保存手段のデータを破棄させる送信中止処理手段を備え、
同送信中止処理手段により送信を中止した際には、前記時間計測手段による計測中に受信したデータを送信する送信再開処理手段を備えた、
ことを特徴とするゲートウェイ装置。
Connect different networks to which in-vehicle devices in the car are connected,
The data received from the network is sent to another network via an information storage means that temporarily stores the information,
Exchange data between in-vehicle devices connected to different networks,
In the gateway device,
It has time measuring means to measure the elapsed time from the start of data transmission,
Transmission stop processing means for canceling data transmission after a predetermined elapsed time and discarding the data of the information storage means to be transmitted,
When transmission is stopped by the transmission stop processing means, the transmission restart processing means for transmitting the data received during the measurement by the time measuring means,
A gateway device characterized by that.
請求項1に記載されたゲートウェイ装置において、
前記送信再開処理手段は、
時間計測中に受信したデータが複数である場合には、所定の優先順位に従ってデータを送信する、
ことを特徴とするゲートウェイ装置。
The gateway device according to claim 1,
The transmission resumption processing means includes
If there are multiple data received during time measurement, send the data according to a predetermined priority,
A gateway device characterized by that.
JP2003307611A 2003-08-29 2003-08-29 Gateway apparatus Pending JP2005079888A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003307611A JP2005079888A (en) 2003-08-29 2003-08-29 Gateway apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003307611A JP2005079888A (en) 2003-08-29 2003-08-29 Gateway apparatus

Publications (1)

Publication Number Publication Date
JP2005079888A true JP2005079888A (en) 2005-03-24

Family

ID=34410357

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003307611A Pending JP2005079888A (en) 2003-08-29 2003-08-29 Gateway apparatus

Country Status (1)

Country Link
JP (1) JP2005079888A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6182779B1 (en) * 2016-11-10 2017-08-23 株式会社ラック Transfer device, transfer method, and program
CN108181853A (en) * 2018-01-16 2018-06-19 合肥华宇智航动力能源有限公司 A kind of yacht steering-engine control system and control method
JP2018095121A (en) * 2016-12-14 2018-06-21 株式会社ジェイテクト Vehicle control device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6182779B1 (en) * 2016-11-10 2017-08-23 株式会社ラック Transfer device, transfer method, and program
JP2018095121A (en) * 2016-12-14 2018-06-21 株式会社ジェイテクト Vehicle control device
CN108181853A (en) * 2018-01-16 2018-06-19 合肥华宇智航动力能源有限公司 A kind of yacht steering-engine control system and control method

Similar Documents

Publication Publication Date Title
US10693905B2 (en) Invalidity detection electronic control unit, in-vehicle network system, and communication method
US10243760B2 (en) Communication device, communication method, and communication system
JP5919205B2 (en) Network device and data transmission / reception system
US8665700B2 (en) Fault detection and mitigation for in-vehicle LAN network management
US9224251B2 (en) Gateway device
WO2016017088A1 (en) Gateway device
US20030128111A1 (en) Multiplex communication apparatus for vehicle
JP5050653B2 (en) Electronic control device
JP2009253557A (en) On-board relay connection unit
JP5221617B2 (en) COMMUNICATION DEVICE, COMMUNICATION SYSTEM, CONTROL METHOD, AND PROGRAM
JP2013106200A (en) Communication repeater for vehicle and sleep control method
JP2006287739A (en) Gateway unit
JP2005079888A (en) Gateway apparatus
JP2009027270A (en) Communication system, repeater and communication method
JP2006340099A (en) Gateway unit
JP5510192B2 (en) Communication device
JP2007036632A (en) Gateway apparatus
JP2008042562A (en) Gateway device
JP2005341495A (en) Gateway apparatus and method
JP2004260562A (en) Method and device for transmitting and receiving packet
JP4959484B2 (en) Relay connection unit
JP2007267230A (en) Gateway device
JP3697520B2 (en) Autonomous message transmission method
JP2015202839A (en) On-vehicle network system and on-vehicle relay device
JP2007174118A (en) Communication message conversion device

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20051114

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20060324

A977 Report on retrieval

Effective date: 20080626

Free format text: JAPANESE INTERMEDIATE CODE: A971007

A131 Notification of reasons for refusal

Effective date: 20080701

Free format text: JAPANESE INTERMEDIATE CODE: A131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080807

A131 Notification of reasons for refusal

Effective date: 20080930

Free format text: JAPANESE INTERMEDIATE CODE: A131

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090210