JP3750636B2 - Data relay apparatus and multiplex communication system - Google Patents

Data relay apparatus and multiplex communication system Download PDF

Info

Publication number
JP3750636B2
JP3750636B2 JP2002202623A JP2002202623A JP3750636B2 JP 3750636 B2 JP3750636 B2 JP 3750636B2 JP 2002202623 A JP2002202623 A JP 2002202623A JP 2002202623 A JP2002202623 A JP 2002202623A JP 3750636 B2 JP3750636 B2 JP 3750636B2
Authority
JP
Japan
Prior art keywords
data
buffer
communication
communication system
relay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2002202623A
Other languages
Japanese (ja)
Other versions
JP2004048350A (en
Inventor
克彦 古田
伸一 妹尾
修一 新田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Denso Corp filed Critical Denso Corp
Priority to JP2002202623A priority Critical patent/JP3750636B2/en
Publication of JP2004048350A publication Critical patent/JP2004048350A/en
Application granted granted Critical
Publication of JP3750636B2 publication Critical patent/JP3750636B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明はデータ中継装置および多重通信システムに関する。
【0002】
【従来の技術】
近年、特にコンピュータ技術の進歩を背景として情報通信の高度化が進んでおり、例えば自動車においても、搭載される電装品等を制御する制御部の間でやり取りされる情報量は急速に増大している。そこで情報を伝達するワイヤーハーネスの数を低減すべく多重通信システムが採用されつつある。多重通信システムは、共通の多重通信線に、データの送受信を行う制御用ECU等の通信ノードが接続されたもので、通信ノード間で多重通信線を介してデータ通信を行う。データはデータ本体とともにその種類の情報等を含み構成されており、受信した通信ノードがデータの内容を理解できるようになっている。制御の種類が多岐にわたる前記自動車等の場合には、データ通信を効率よく行うために、要求される通信速度の相違等に応じて、多重通信線とこれに接続されるノードとよりなる複数の通信系に分け、属する通信系が異なるノード間の通信は、データ中継装置を介して行うようにしたものがある。
【0003】
特開2000−244548号公報には、データ中継装置に、中継するデータをデータ本体の種類ごとに一時保持するバッファからなるバッファ群を設けて、バッファのデータが同じ種類のデータによってのみ上書きされるようにし、中継データを一時保持する膨大なバッファを用意せずにデータ通信の信頼性の向上を図ったものがある。
【0004】
【発明が解決しようとする課題】
ところで、通信系間で通信速度が大きく異なると、通信速度が高速の通信系から低速の通信系に中継されるデータが爆発的に増えることが生じ得る。このため、低速の通信系において通信負荷がきわめて高いものとなり、通信が成立しづらくなる。このため、例えば、中継元である高速の通信系の多重通信線で受信されたデータを最初に一時保持する受信バッファから前記バッファ群へ転送するデータ転送処理において、転送処理を行う周期をある程度長くとる等により、データ転送完了後にデータ転送がなされない十分な時間を設けて、中継先の通信系の通信負荷が過剰に強まらないようにすることになる。
【0005】
一方、前記受信バッファから前記バッファ群へのデータ転送処理の間隔を十分にとって、中継先の通信系の通信負荷が過剰に強まらないようにすると、受信バッファにおいて、バッファ群へのデータ転送がなされないうちに次の受信データによって受信バッファが上書きされ、元のデータが消失してしまうおそれが高くなる。
【0006】
この問題を解消するには、FIFOで順次、受信バッファからバッファ群に転送するようにして、受信バッファが新たなデータで上書きされるまでの時間を確保することが考えられるが、その十分な効果を得るには、結局、受信バッファを相当数用意する必要があり、必ずしも、十分にはバッファの規模を小さくする効果が得られない。
【0007】
本発明は前記実情に鑑みなされたもので、データ通信の信頼性が十分でしかも簡単な構成のデータ中継装置および多重通信システムを提供することを目的とする。
【0008】
【課題を解決するための手段】
請求項1記載の発明では、データ本体とともにその種類の情報を含むデータを伝送する多重通信線の間に介設されて複数の種類のデータを中継するデータ中継装置であって、中継するデータをデータの種類ごとに一時保持するバッファからなるバッファ群を有するデータ中継装置において、
前記バッファ群を、中継元の多重通信線で受信したデータを一時保持する第1のバッファ群と、該第1のバッファ群からのデータが転送されて、中継先の多重通信線への送信に先立ってデータを一時保持する第2のバッファ群とにより構成し、各バッファ群において、バッファをデータの種類ごとに1対1に割り当てる。
【0009】
中継元の通信系からデータが入ってくると、データは、第1のバッファ群の、そのデータの種類に対応するバッファに書き込まれる。このデータは、第1のバッファ群のバッファから第2のバッファ群のバッファに転送される。その転送処理の間隔を長くすることで、中継先での通信負荷を抑制することができる。ここで、データ中継装置に中継元の通信系から多量のデータが入ってきても、第1のバッファ群のバッファは、同じ種類の最新のデータによってのみ上書きされ、特定の種類のデータが消失してしまうことはない。したがって、前記転送処理間隔を長くとって中継先での通信負荷を軽減することと、受信データによる他の種類のデータの消失の防止とを両立することができる。また、バッファは、各バッファ群において、中継されるデータの種類の数だけ設ければよいから、構成簡単である。
【0010】
請求項2記載の発明では、前記データ中継装置と、データを送受信する通信ノードが前記多重通信線に接続された複数の通信系とで、中継データの消失によってデータ通信の信頼性を損なわない多重通信システムを構築することができる。
【0011】
請求項3記載の発明では、前記複数の通信系は通信速度の異なる通信系により構成され、
前記第1のバッファ群を、通信速度が高速側の通信系を中継元とする受信データの一時保持用とする。
【0012】
中継元の通信系が、通信速度が高速の通信系であれば、通信速度が低速の通信系への中継データが集中し易い状況が生じやすいため、前記第1のバッファ群を、通信速度が高速側の通信系を中継元とする受信データの一時保持用とすることで、特に効果的に、データ中継の信頼性と、通信速度が低速の通信系における通信負荷の軽減とを両立できる。
【0013】
【発明の実施の形態】
図1(A)、図1(B)に本発明のデータ中継装置および多重通信システムを示す。多重通信システムは、複数(図例では2)の通信系11,12とデータ中継装置4とにより構成される。各通信系11,12は、多重通信線21,22に通信ノード31,32が接続されたもので、各通信系11,12の通信ノード31,32間で所定のプロトコルにてデータを送受信するようになっている。ここで、第1の通信系11はプロトコルがCANで通信速度は500kbpsであり、第2の通信系12はプロトコルがBEANで通信速度は第1の通信系11の通信速度よりも十分に遅い10kbpsであるとする。第1の通信系(以下、適宜、高速通信系という)11は、例えば、多重通信線21に通信ノード31としてエンジン制御用のECUやABS制御用のECUが接続された通信系である。また、第2の通信系(以下、適宜、低速通信系という)12は、例えば、多重通信線22に通信ノード32としてドア開閉等の制御用のECUや車室内の空調の制御用のECUが接続された通信系である。
【0014】
各多重通信線21,22は、データ中継装置4と接続され、データ中継装置4が、通信ノード31,32から送信されたデータを別の通信系11,12に属する通信ノード32,31へと中継するようになっている。
【0015】
データ中継装置4は、多重通信線21,22とのインターフェースをなす通信用ICや、制御用のマイクロコンピュータ等で構成されたもので、図ではその機能ブロックで表してあり、受信バッファ411,412、送信バッファ421,422、バッファ部43、データコントローラ44等からなる。
【0016】
受信バッファ411,412、送信バッファ421,422は各多重通信線21,22に1対1に対応して設けてある。受信バッファ411,412は多重通信線21,22で受信された通信ノード31,32からのデータが最初に書き込まれ、一時保持する。送信バッファ421,422は中継先の通信系11,12の通信ノード31,32に送信しようとするデータが送信の直前に書き込まれる。
【0017】
バッファ部43は複数のバッファ431からなるバッファ群であり、各バッファ431は、詳細は後述するように受信バッファ411,412に書き込まれたデータを送信バッファ421,422に転送する前に一時保持するようになっている。バッファ431は中継されるデータのデータ本体の種類(以下、適宜、データ種類という)の数だけあり、各バッファ431と、データのヘッダ部分の一部が割り当てられるデータ種類とが1対1に対応している。例えば転送されるデータ本体が5種類であればバッファ431を5つ用意し、各バッファ431に、これに書き込むデータ種類を対応させる。データ種類は、データ本体の数値等の情報が意味するところを特定するもので、例えば、データ本体がエンジン回転数を示すものであることが知られることになる。データ種類は、CANプロトコルであれば「ID」が該当し、BEANプロトコルであれば「DATAID」が該当する。バッファ部43のデータ領域は前記マイクロコンピュータを構成するRAM上に割り当てられる。
【0018】
また、高速通信系11用の受信バッファ411は図1(B)に示すように、複数のバッファ4111からなるバッファ群であり、各バッファ4111はデータ種類ごとに1対1に対応して設けてある。バッファ部43と類似の構成となっている。一方、バッファ部43のバッファ431に格納されるデータのデータ種類が、通信系11から通信系12へ中継されるデータのデータ種類と、通信系12から通信系11へ中継されるデータのデータ種類とを併せたものであるのに対し、受信バッファ411のバッファ4111に格納されるデータのデータ種類が、通信系11から通信系12へ中継されるデータのデータ種類だけである点で相違する。
【0019】
データコントローラ44は、多重通信線21,22で受信されたデータをその中継先の通信系11,12用の送信バッファ421,422に転送するもので、マイクロコンピュータを構成するCPUで実行されるソフトウェア上で実現される。
【0020】
図2に、高速通信系11の多重通信線21で受信されたデータを低速通信系12用の送信バッファ422に転送するデータ転送処理の内容を示す。ステップS101ではデータ受信処理を実行する。図3にデータ受信処理の内容を示す。ステップS201では高速通信系11の多重通信線21からのデータの取り込み処理を実行する。ステップS202で、取り込まれたデータの種類を判定する。
【0021】
続くステップS203では、判定されたデータ種類に対応するバッファ4111に、取り込まれたデータをセットし、受信処理が終了となる。図3中、バッファn、バッファm、バッファlは、それぞれデータ種類n、データ種類m、データ種類lに対応するバッファ4111を意味している。
【0022】
データ受信処理は、このデータ転送処理内だけではなく、割り込みでも実行され、すべての中継すべきデータを受信バッファ411の対応するバッファ4111にセット可能である。処理速度は高速通信系11の通信速度を考慮して設定される。
【0023】
ステップS102では、受信バッファ411のバッファ4111に受信データがあるか否かを判定する。肯定判断されるとステップS103に進み、否定判断されるとステップS101に戻る。ステップS103ではバッファ4111からデータを取り込み、ステップS104で転送処理を実行する。転送処理では、データを、バッファ部43の対応するデータの種類のバッファ431に書き込む。これは、データが書き込まれている受信バッファ411のすべてのバッファ4111について実行される。
【0024】
これは例えば、すべてのバッファ4111についてデータの有無を順次、確認して、データがある場合にバッファ431への書き込みを実行してもよいし、高速通信系11からのデータの受信があったときに、そのデータ種類をRAM上に設けたリストにリストアップしておき、リストアップされているデータ種類についてバッファ431への書き込みを行うようにしてもよい。バッファ431への書き込み完了後には、そのデータ種類のバッファ4111のデータおよびリスト上のデータ種類を消去する。
【0025】
また、転送処理は所定間隔で起動するようにスケジュールが設定されている。この所定間隔が後述するように低速通信系12での通信負荷を規定する。転送処理がなされるとステップS102に戻る。
【0026】
また、低速通信系12用の受信バッファ421は従来と同様の1段のバッファ若しくはFIFO等で読み出される複数段のバッファであり、随時、受信データが書き込まれる。そして、そのデータ種類に対応するバッファ部43のバッファ431に転送される。転送処理は、前記ステップS104において、高速通信系11用の受信バッファ411からバッファ部43への転送処理とともに実行し得る。
【0027】
バッファ部43のバッファ431に格納されたデータは、データコントローラ44により、データ種類に応じて、そのデータ種類と1対1に対応する送信バッファ421,422に転送される。転送処理は、受信バッファ411からバッファ部43への転送処理と同様に、すべてのバッファ431のデータの有無を確認することにより、あるいは、データが書き込まれたバッファ431のデータの種類がリストアップされたリストに基づいて実行される。転送先は、データ種類に対して転送先の送信バッファ421,422を対応させる転送先テーブルに基づいて特定する。
【0028】
バッファ部43のバッファ431から送信バッファ421,422へデータが転送される実際の間隔は、受信バッファ411,412からバッファ431への転送処理の間隔よりも短くなることはないから、バッファ431から低速通信系12用の送信バッファ422へのデータ転送処理の間隔は、高速通信系11用の受信バッファ411からバッファ431への転送処理の間隔である前記所定間隔に依存する。前記所定間隔が長いほど長くなって、低速通信系12の通信負荷が軽減される。
【0029】
一方、高速通信系11の通信ノード31から低速通信系12へ中継すべきデータが送信されるごとに、該データが受信バッファ411に書き込まれていくが、受信バッファ411では、各バッファ4111は同じ種類のデータによってのみ上書きされる。したがって、受信バッファ411からバッファ431への転送の間隔が前記のごとく長く設定されても、高速通信系11からデータが多量に送信されたときに、特定のデータ種類のデータを消失することはない。
【0030】
バッファ431に格納されたデータは、低速通信系12用の送信バッファ422に所定周期で転送されるが、受信バッファ411からバッファ部43への転送処理がその処理間隔が抑制されているから、低速通信系における通信負荷を増大しない。
【0031】
なお、高速通信系用の受信バッファをFIFOで使う場合、大規模なバッファ構成とすれば、受信バッファでのデータの消失を相当防ぐことができるが、データは、転送先であるバッファ部のバッファにおいて、同じ種類のデータにより上書きされて消失することになる。したがって、本データ中継装置のように、受信バッファを同じ種類のデータにより上書きされるのを許容する構成をとっても、なんらFIFO方式の受信バッファに比して不利になることはない。むしろ、受信バッファをFIFOで使う構成のものが、受信バッファの規模が高速通信系の通信速度に応じて受信バッファの段数を増やさなければならないのに対し、高速通信系の通信速度によらず、確実にデータ種類の異なるデータにより上書きされるのを回避できる点で、受信バッファをFIFO方式とするものに比して優れた構成ということができる。
【0032】
また、低速通信系12用の受信バッファ412を、高速通信系11用の受信バッファ411のごとく、低速通信系12から高速通信系11に中継されるデータ種類と1対1に対応した複数のバッファからなるバッファ群としてもよい。受信データの消失による制御不成立等の不具合を確実に防止することができる。
【0033】
また、通信系が2つの多重通信システムについて説明したが、本発明は、通信系が3つ以上のものにも適用することができる。
【図面の簡単な説明】
【図1】(A)は本発明のデータ中継装置および多重通信システムの構成図であり、(B)は前記データ中継装置の要部である。
【図2】前記データ中継装置のデータコントローラにおいて実行される制御を示す第1のフローチャートである。
【図3】前記データ中継装置のデータコントローラにおいて実行される制御を示す第2のフローチャートである。
【符号の説明】
11,12 通信系
21,22 多重通信線
31,32 通信ノード
4 データ中継装置
411,412 受信バッファ(第1のバッファ群)
4111 バッファ
421,422 送信バッファ
43 バッファ部(第2のバッファ群)
431 バッファ
44 データコントローラ
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a data relay device and a multiple communication system.
[0002]
[Prior art]
In recent years, the advancement of information communication has progressed especially against the background of advances in computer technology. For example, even in automobiles, the amount of information exchanged between control units that control mounted electrical components has increased rapidly. Yes. Thus, multiple communication systems are being adopted to reduce the number of wire harnesses that transmit information. In a multiplex communication system, a communication node such as a control ECU that transmits and receives data is connected to a common multiplex communication line, and data communication is performed between the communication nodes via the multiplex communication line. The data includes the data main body and the type of information, and the received communication node can understand the contents of the data. In the case of the above-mentioned automobiles having various control types, a plurality of communication lines and nodes connected to the multiple communication lines are used in order to efficiently perform data communication according to a difference in required communication speed. There is a communication system that communicates between nodes belonging to different communication systems through a data relay device.
[0003]
In Japanese Patent Laid-Open No. 2000-244548, a data relay apparatus is provided with a buffer group including buffers that temporarily hold data to be relayed for each type of data body, and the buffer data is overwritten only by the same type of data. In this way, there is one that improves the reliability of data communication without preparing a huge buffer for temporarily storing relay data.
[0004]
[Problems to be solved by the invention]
By the way, if the communication speed differs greatly between communication systems, data relayed from a communication system with a high communication speed to a low-speed communication system may explosively increase. For this reason, the communication load becomes extremely high in a low-speed communication system, and communication is difficult to be established. For this reason, for example, in a data transfer process in which data received by a multiplex communication line of a high-speed communication system that is a relay source is first transferred from a reception buffer that temporarily holds data to the buffer group, a cycle of performing the transfer process is increased to some extent As a result, a sufficient time during which data transfer is not performed after completion of data transfer is provided so that the communication load of the relay destination communication system is not excessively increased.
[0005]
On the other hand, if the interval of the data transfer process from the reception buffer to the buffer group is sufficiently large so that the communication load of the relay destination communication system is not excessively increased, the data transfer to the buffer group is not performed in the reception buffer. Before it is done, the reception buffer is overwritten by the next reception data, and there is a high risk that the original data will be lost.
[0006]
In order to solve this problem, it is conceivable to secure the time until the reception buffer is overwritten with new data by sequentially transferring data from the reception buffer to the buffer group by FIFO. In the end, it is necessary to prepare a considerable number of reception buffers, and it is not always possible to sufficiently reduce the buffer size.
[0007]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide a data relay apparatus and a multiplex communication system having a simple configuration with sufficient data communication reliability.
[0008]
[Means for Solving the Problems]
According to the first aspect of the present invention, there is provided a data relay device for relaying a plurality of types of data interposed between multiple communication lines for transmitting data including the type of information together with the data body, In a data relay device having a buffer group consisting of buffers temporarily held for each data type,
The buffer group includes a first buffer group that temporarily holds data received on the relay source multiplex communication line, and data from the first buffer group is transferred to the relay destination multiplex communication line for transmission. The second buffer group temporarily holds data in advance, and in each buffer group, a buffer is assigned to each data type on a one-to-one basis.
[0009]
When data enters from the communication system of the relay source, the data is written in the buffer corresponding to the type of data in the first buffer group. This data is transferred from the buffer of the first buffer group to the buffer of the second buffer group. The communication load at the relay destination can be suppressed by increasing the interval of the transfer process. Here, even if a large amount of data enters the data relay device from the relay source communication system, the buffer of the first buffer group is overwritten only by the latest data of the same type, and the specific type of data is lost. There is no end to it. Accordingly, it is possible to reduce both the communication load at the relay destination by increasing the transfer processing interval and the prevention of the loss of other types of data due to the received data. In addition, since the buffers need only be provided in the number of types of data to be relayed in each buffer group, the configuration is simple.
[0010]
According to a second aspect of the present invention, the data relay device and a plurality of communication systems in which communication nodes for transmitting and receiving data are connected to the multiplex communication line are multiplexed so as not to impair the reliability of data communication due to loss of relay data. A communication system can be constructed.
[0011]
In the invention of claim 3, the plurality of communication systems are configured by communication systems having different communication speeds.
The first buffer group is used for temporarily storing received data using a communication system with a higher communication speed as a relay source.
[0012]
If the communication system of the relay source is a communication system having a high communication speed, a situation in which relay data tends to concentrate on a communication system having a low communication speed is likely to occur. By using the high-speed communication system as a relay source for temporarily storing received data, it is particularly effective to achieve both data relay reliability and a reduction in communication load in a communication system with a low communication speed.
[0013]
DETAILED DESCRIPTION OF THE INVENTION
1A and 1B show a data relay device and a multiple communication system according to the present invention. The multiplex communication system is composed of a plurality (2 in the example) of communication systems 11 and 12 and a data relay device 4. Each communication system 11, 12 has communication nodes 31, 32 connected to multiple communication lines 21, 22, and transmits / receives data using a predetermined protocol between the communication nodes 31, 32 of each communication system 11, 12. It is like that. Here, the first communication system 11 has a protocol of CAN and a communication speed of 500 kbps, and the second communication system 12 has a protocol of BEAN and the communication speed is 10 kbps which is sufficiently slower than the communication speed of the first communication system 11. Suppose that The first communication system (hereinafter, appropriately referred to as a high-speed communication system) 11 is a communication system in which an ECU for engine control and an ECU for ABS control are connected to a multiplex communication line 21 as a communication node 31, for example. The second communication system (hereinafter referred to as a low-speed communication system as appropriate) 12 includes, for example, an ECU for controlling opening / closing of a door or an ECU for controlling air conditioning in a vehicle interior as a communication node 32 on a multiplex communication line 22. It is a connected communication system.
[0014]
Each of the multiple communication lines 21 and 22 is connected to the data relay device 4, and the data relay device 4 transfers the data transmitted from the communication nodes 31 and 32 to the communication nodes 32 and 31 belonging to different communication systems 11 and 12. It comes to relay.
[0015]
The data relay device 4 is constituted by a communication IC that interfaces with the multiple communication lines 21 and 22, a control microcomputer, and the like, and is represented by its functional block in the figure, and the reception buffers 411 and 412. , Transmission buffers 421 and 422, a buffer unit 43, a data controller 44, and the like.
[0016]
The reception buffers 411 and 412 and the transmission buffers 421 and 422 are provided for each of the multiple communication lines 21 and 22 in a one-to-one correspondence. In the reception buffers 411 and 412, data from the communication nodes 31 and 32 received by the multiplex communication lines 21 and 22 are first written and temporarily held. In the transmission buffers 421 and 422, data to be transmitted to the communication nodes 31 and 32 of the relay destination communication systems 11 and 12 is written immediately before transmission.
[0017]
The buffer unit 43 is a buffer group including a plurality of buffers 431. Each buffer 431 temporarily holds data written in the reception buffers 411 and 412 before being transferred to the transmission buffers 421 and 422, as will be described in detail later. It is like that. There are as many buffers 431 as the number of types of data bodies of data to be relayed (hereinafter referred to as data types as appropriate), and there is a one-to-one correspondence between each buffer 431 and a data type to which a part of the header portion of data is assigned. is doing. For example, if there are five types of data bodies to be transferred, five buffers 431 are prepared, and each buffer 431 is associated with the type of data to be written. The data type specifies what is meant by information such as a numerical value of the data body. For example, it is known that the data body indicates the engine speed. The data type corresponds to “ID” for the CAN protocol, and “DATAID” for the BEAN protocol. The data area of the buffer unit 43 is allocated on the RAM constituting the microcomputer.
[0018]
Further, as shown in FIG. 1B, the reception buffer 411 for the high-speed communication system 11 is a buffer group composed of a plurality of buffers 4111, and each buffer 4111 is provided corresponding to each data type on a one-to-one basis. is there. The configuration is similar to that of the buffer unit 43. On the other hand, the data type of data stored in the buffer 431 of the buffer unit 43 is the data type of data relayed from the communication system 11 to the communication system 12 and the data type of data relayed from the communication system 12 to the communication system 11. Is different in that the data type of data stored in the buffer 4111 of the reception buffer 411 is only the data type of data relayed from the communication system 11 to the communication system 12.
[0019]
The data controller 44 transfers data received on the multiplex communication lines 21 and 22 to the transmission buffers 421 and 422 for the communication systems 11 and 12 as relay destinations, and is executed by a CPU constituting the microcomputer. Realized above.
[0020]
FIG. 2 shows the contents of data transfer processing for transferring data received by the multiplex communication line 21 of the high-speed communication system 11 to the transmission buffer 422 for the low-speed communication system 12. In step S101, data reception processing is executed. FIG. 3 shows the contents of the data reception process. In step S201, processing for fetching data from the multiplex communication line 21 of the high-speed communication system 11 is executed. In step S202, the type of captured data is determined.
[0021]
In the subsequent step S203, the fetched data is set in the buffer 4111 corresponding to the determined data type, and the reception process is ended. In FIG. 3, a buffer n, a buffer m, and a buffer l mean a buffer 4111 corresponding to the data type n, the data type m, and the data type l, respectively.
[0022]
The data reception process is executed not only in the data transfer process but also by an interrupt, and all data to be relayed can be set in the corresponding buffer 4111 of the reception buffer 411. The processing speed is set in consideration of the communication speed of the high-speed communication system 11.
[0023]
In step S102, it is determined whether there is reception data in the buffer 4111 of the reception buffer 411. If a positive determination is made, the process proceeds to step S103, and if a negative determination is made, the process returns to step S101. In step S103, data is fetched from the buffer 4111, and transfer processing is executed in step S104. In the transfer process, the data is written into the buffer 431 of the corresponding data type in the buffer unit 43. This is executed for all the buffers 4111 of the reception buffer 411 in which data is written.
[0024]
For example, the presence or absence of data may be checked sequentially for all the buffers 4111, and if there is data, writing to the buffer 431 may be executed, or when data is received from the high-speed communication system 11 In addition, the data types may be listed in a list provided on the RAM, and the listed data types may be written to the buffer 431. After the writing to the buffer 431 is completed, the data in the buffer 4111 of the data type and the data type on the list are deleted.
[0025]
Further, a schedule is set so that the transfer process is started at a predetermined interval. This predetermined interval defines the communication load in the low-speed communication system 12 as will be described later. When the transfer process is performed, the process returns to step S102.
[0026]
The reception buffer 421 for the low-speed communication system 12 is a single-stage buffer similar to the conventional one or a multi-stage buffer that is read by a FIFO or the like, and received data is written as needed. Then, the data is transferred to the buffer 431 of the buffer unit 43 corresponding to the data type. The transfer process can be executed together with the transfer process from the reception buffer 411 for the high-speed communication system 11 to the buffer unit 43 in step S104.
[0027]
The data stored in the buffer 431 of the buffer unit 43 is transferred by the data controller 44 to the transmission buffers 421 and 422 corresponding one-to-one with the data type according to the data type. Similar to the transfer process from the reception buffer 411 to the buffer unit 43, the transfer process is performed by checking the presence / absence of data in all the buffers 431, or by listing the data type of the buffer 431 in which the data has been written. It is executed based on the list. The transfer destination is specified based on the transfer destination table that associates the transmission buffers 421 and 422 of the transfer destination with the data type.
[0028]
Since the actual interval at which data is transferred from the buffer 431 to the transmission buffers 421 and 422 of the buffer unit 43 is not shorter than the interval of the transfer processing from the reception buffers 411 and 412 to the buffer 431, the buffer 431 is slow. The interval of data transfer processing to the transmission buffer 422 for the communication system 12 depends on the predetermined interval, which is the interval of transfer processing from the reception buffer 411 for the high-speed communication system 11 to the buffer 431. The longer the predetermined interval, the longer, and the communication load of the low-speed communication system 12 is reduced.
[0029]
On the other hand, every time data to be relayed is transmitted from the communication node 31 of the high-speed communication system 11 to the low-speed communication system 12, the data is written in the reception buffer 411. In the reception buffer 411, each buffer 4111 is the same. Overwritten only by type of data. Therefore, even if the transfer interval from the reception buffer 411 to the buffer 431 is set long as described above, data of a specific data type is not lost when a large amount of data is transmitted from the high-speed communication system 11. .
[0030]
The data stored in the buffer 431 is transferred to the transmission buffer 422 for the low-speed communication system 12 at a predetermined cycle, but the transfer interval from the reception buffer 411 to the buffer unit 43 is suppressed, so that the processing interval is suppressed. Does not increase the communication load in the communication system.
[0031]
When a receive buffer for a high-speed communication system is used in a FIFO, if a large-scale buffer configuration is used, the loss of data in the receive buffer can be substantially prevented, but the data is stored in the buffer unit that is the transfer destination. , The data is overwritten by the same type of data and disappears. Therefore, even if the reception buffer is allowed to be overwritten with the same type of data as in this data relay apparatus, there is no disadvantage compared to the FIFO reception buffer. Rather, the configuration in which the reception buffer is used in the FIFO has to increase the number of stages of the reception buffer according to the communication speed of the high-speed communication system, whereas the size of the reception buffer does not depend on the communication speed of the high-speed communication system, It can be said that the configuration is superior to that in which the reception buffer is a FIFO system in that it can be surely prevented from being overwritten by data of different data types.
[0032]
Further, the reception buffer 412 for the low-speed communication system 12 includes a plurality of buffers corresponding to the data types relayed from the low-speed communication system 12 to the high-speed communication system 11 like the reception buffer 411 for the high-speed communication system 11. A buffer group consisting of Problems such as failure to establish control due to loss of received data can be reliably prevented.
[0033]
Further, although the description has been given of the multiplex communication system having two communication systems, the present invention can be applied to a communication system having three or more communication systems.
[Brief description of the drawings]
1A is a configuration diagram of a data relay device and a multiplex communication system according to the present invention, and FIG. 1B is a main part of the data relay device.
FIG. 2 is a first flowchart showing control executed in a data controller of the data relay device.
FIG. 3 is a second flowchart showing control executed in a data controller of the data relay device.
[Explanation of symbols]
11, 12 Communication systems 21, 22 Multiple communication lines 31, 32 Communication node 4 Data relay device 411, 412 Reception buffer (first buffer group)
4111 Buffers 421 and 422 Transmission buffer 43 Buffer unit (second buffer group)
431 Buffer 44 Data controller

Claims (3)

データ本体とともにその種類の情報を含むデータを伝送する多重通信線の間に介設されて複数の種類のデータを中継するデータ中継装置であって、中継するデータをデータの種類ごとに一時保持するバッファからなるバッファ群を有するデータ中継装置において、
前記バッファ群を、中継元の多重通信線で受信したデータを一時保持する第1のバッファ群と、該第1のバッファ群からのデータが転送されて、中継先の多重通信線への送信に先立ってデータを一時保持する第2のバッファ群とにより構成し、各バッファ群において、バッファをデータの種類ごとに1対1に割り当てたことを特徴とするデータ中継装置。
A data relay device that relays a plurality of types of data interposed between multiple communication lines that transmit data including the type of information together with the data body, and temporarily stores the data to be relayed for each type of data In a data relay device having a buffer group consisting of buffers,
The buffer group includes a first buffer group that temporarily holds data received on the relay source multiplex communication line, and data from the first buffer group is transferred to the relay destination multiplex communication line for transmission. A data relay apparatus comprising: a second buffer group that temporarily holds data in advance, and in each buffer group, a buffer is assigned to each data type on a one-to-one basis.
請求項1記載のデータ中継装置と、データを送受信する通信ノードが上記多重通信線に接続された複数の通信系とを具備することを特徴とする多重通信システム。A multiplex communication system comprising: the data relay device according to claim 1; and a plurality of communication systems in which communication nodes for transmitting and receiving data are connected to the multiplex communication line. 請求項2記載の多重通信システムにおいて、前記複数の通信系は通信速度の異なる通信系により構成され、
前記第1のバッファ群を、通信速度が高速側の通信系を中継元とする受信データの一時保持用とした多重通信システム。
The multiplex communication system according to claim 2, wherein the plurality of communication systems are configured by communication systems having different communication speeds.
A multiplex communication system in which the first buffer group is used for temporarily storing received data using a communication system having a higher communication speed as a relay source.
JP2002202623A 2002-07-11 2002-07-11 Data relay apparatus and multiplex communication system Expired - Fee Related JP3750636B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002202623A JP3750636B2 (en) 2002-07-11 2002-07-11 Data relay apparatus and multiplex communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002202623A JP3750636B2 (en) 2002-07-11 2002-07-11 Data relay apparatus and multiplex communication system

Publications (2)

Publication Number Publication Date
JP2004048350A JP2004048350A (en) 2004-02-12
JP3750636B2 true JP3750636B2 (en) 2006-03-01

Family

ID=31708761

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002202623A Expired - Fee Related JP3750636B2 (en) 2002-07-11 2002-07-11 Data relay apparatus and multiplex communication system

Country Status (1)

Country Link
JP (1) JP3750636B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE102004038212A1 (en) 2004-08-05 2006-03-16 Robert Bosch Gmbh FlexRay communication module
JP4259456B2 (en) 2004-11-11 2009-04-30 トヨタ自動車株式会社 Data recording apparatus and data recording method
JP4999668B2 (en) * 2007-12-14 2012-08-15 株式会社オートネットワーク技術研究所 In-vehicle relay connection unit
JP4917557B2 (en) * 2008-01-09 2012-04-18 株式会社オートネットワーク技術研究所 In-vehicle relay connection unit

Also Published As

Publication number Publication date
JP2004048350A (en) 2004-02-12

Similar Documents

Publication Publication Date Title
US7801173B2 (en) Communication message conversion apparatus and communication message conversion method
US20060271694A1 (en) Gateway apparatus and routing method
JP5680048B2 (en) Automatic control system, contact information collection and distribution device, and slave station of automatic control system
CN104718725A (en) Relay device
US20180324640A1 (en) Vehicle-Mounted Gateway Device, Electronic Control Device, and Vehicle-Mounted Network System
JP4621837B2 (en) Relay device, communication system, and communication method
KR20120006485A (en) Method for concatenating can data payloads
JP5672275B2 (en) Network system
US20150010017A1 (en) Communication network for transmission of messages
JPS58127446A (en) Data transmission network
JP3541787B2 (en) Multiplex communication system
JP3750636B2 (en) Data relay apparatus and multiplex communication system
JP4808127B2 (en) In-vehicle communication method, in-vehicle communication system, relay device, and in-vehicle communication device
JP2006340099A (en) Gateway unit
US10958475B2 (en) Repeater device
WO2021251149A1 (en) Onboard device, onboard communication system, and communication control method
JP4033040B2 (en) Data relay apparatus and multiplex communication system
JP2003244180A (en) Data relaying apparatus and multiplex communication system
US20230198802A1 (en) Vehicle Control Device and Data Transfer Control Method
JP3344139B2 (en) Communication device
EP3641230B1 (en) Control apparatus
US5398240A (en) Multiplex transmission apparatus and multiplex transmission method
CN101617509A (en) Be used for data are sent to the method for a plurality of control device
JP2007135107A (en) Relay connection unit
US20240089142A1 (en) Vehicle-mounted apparatus and a method for relaying

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20040806

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051017

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051115

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051128

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3750636

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20091216

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091216

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20101216

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20111216

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20121216

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20131216

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees