JP2002319958A - Data repeater and multiplex communication system - Google Patents

Data repeater and multiplex communication system

Info

Publication number
JP2002319958A
JP2002319958A JP2001121320A JP2001121320A JP2002319958A JP 2002319958 A JP2002319958 A JP 2002319958A JP 2001121320 A JP2001121320 A JP 2001121320A JP 2001121320 A JP2001121320 A JP 2001121320A JP 2002319958 A JP2002319958 A JP 2002319958A
Authority
JP
Japan
Prior art keywords
data
buffer
multiplex communication
transmission
communication line
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.)
Granted
Application number
JP2001121320A
Other languages
Japanese (ja)
Other versions
JP3789769B2 (en
Inventor
Kenji Tomita
健児 冨田
Ikuo Hayashi
育生 林
Tomohisa Kishigami
友久 岸上
Hiroshi Honda
洋 本田
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
Toyota Motor Corp
Soken Inc
Original Assignee
Denso Corp
Nippon Soken Inc
Toyota Motor 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, Nippon Soken Inc, Toyota Motor Corp filed Critical Denso Corp
Priority to JP2001121320A priority Critical patent/JP3789769B2/en
Publication of JP2002319958A publication Critical patent/JP2002319958A/en
Application granted granted Critical
Publication of JP3789769B2 publication Critical patent/JP3789769B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)
  • Communication Control (AREA)

Abstract

PROBLEM TO BE SOLVED: To improve reliability in data relay of a multiplex communication system. SOLUTION: A data repeater 4 provided among a plurality of multiplex communication lines 21 to 23 is provided a buffer 431 that temporarily holds received data before transmitting the received data in each type of data, and also, a plurality of buffers are allocated about a portion of data types. A data controller 44 for control is set so as to designate a buffer 431 for identifying the type of the received data and writing the type of the received data and also to confirm the presence/absence of data in each buffer 431 to transfer the data to a prescribed a relay destination. Furthermore, data are exchanged between buffers 431 so that the first received data among pieces of data being the same data type can be stored in a prescribed buffer 431, and confirmation of the presence/absence of the data is performed only about the prescribed buffer 431. Skipping in a transfer mode is also inhibited between pieces of data of the same type so that buffers 431 can be overwritten only by the latest data of the same type.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明はデータ中継装置およ
び多重通信システムに関する。
The present invention relates to a data relay device and a multiplex communication system.

【0002】[0002]

【従来の技術】近年、特にコンピュータ技術の進歩を背
景として情報通信の高度化が進んでおり、例えば自動車
においても、搭載される電装品等を制御する制御部の間
でやり取りされる情報量は急速に増大している。そこで
情報を伝達するワイヤーハーネスの数を低減すべく多重
通信システムが採用されつつある。多重通信システム
は、共通の多重通信線に、データの送受信を行う制御用
ECU等の通信ノードが接続されたもので、通信ノード
間で多重通信線を介してデータ通信を行う。データはデ
ータ本体とともにデータの種類の情報等を含み構成され
ており、受信した通信ノードがデータの内容を理解でき
るようになっている。制御の種類が多岐にわたる上記自
動車等の場合には、データ通信を効率よく行うために、
図32に示すように、要求される通信速度の相違等に応
じて、多重通信線921,922,923とこれに接続
されるノード931,932とよりなる複数の通信系9
11,912,913に分け、属する通信系911〜9
13が異なるノード931,932間の通信は、データ
中継装置94を介して行うようにしたものがある。図例
では、シフトレバー81のシフトポジションに応じてエ
ンジン等の動力系の制御を行うエンジンECU931
と、メータ82の表示等を制御するメータECU932
とは、異なる通信系911,912に属している。
2. Description of the Related Art In recent years, the advancement of computer technology has led to the advancement of information communication. For example, in an automobile, the amount of information exchanged between control units for controlling mounted electric components and the like has been increasing. It is growing rapidly. Therefore, multiplex communication systems are being adopted to reduce the number of wire harnesses for transmitting information. In the multiplex communication system, a communication node such as a control ECU for transmitting and receiving 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 is configured to include data type information and the like together with the data body, so that the received communication node can understand the contents of the data. In the case of the above-mentioned automobiles with various types of control, in order to perform data communication efficiently,
As shown in FIG. 32, a plurality of communication systems 9 including multiplex communication lines 921, 922, and 923 and nodes 931 and 932 connected thereto according to a difference in required communication speed and the like.
Communication systems 911 to 9 belonging to 11,912,913
Some of the communication between the nodes 931 and 932 having different 13 is performed via the data relay device 94. In the illustrated example, an engine ECU 931 controls a power system such as an engine according to the shift position of the shift lever 81.
And a meter ECU 932 for controlling display and the like of the meter 82
Belong to different communication systems 911 and 912.

【0003】データ中継装置94には通常、データを受
信するための受信バッファや、多重通信線に送信する直
前のデータが格納される送信バッファが設けられてい
る。また、多量のデータの中継を効率よく行うようにし
たものとして、受信データを中継先の多重通信線に送信
する前に一時保持するバッファを、中継されるデータの
種類ごとに設けておき、データを受信すると、受信した
データの種類を識別して、その種類に対応したバッファ
に書き込むようにしたものがある(特開2000−24
4548号公報)。この技術では、異なる種類のデータ
間で上書きされることが禁止されるので、どんなに通信
が混雑していても、いずれかの種類のデータが完全に消
失してしまうのを防止する、優れた効果を奏する。ま
た、上記特開2000−244548号公報には、さら
にデータの優先度を再設定することで、データ中継装置
におけるデータの滞留を緩和するものも開示されてい
る。
[0003] The data relay device 94 is usually provided with a reception buffer for receiving data and a transmission buffer for storing data immediately before transmission to a multiplex communication line. In order to efficiently relay a large amount of data, a buffer for temporarily holding received data before transmitting it to a multiplex communication line of a relay destination is provided for each type of data to be relayed, and a data buffer is provided. Is received, the type of the received data is identified and written into a buffer corresponding to the type (Japanese Patent Laid-Open No. 2000-24).
No. 4548). With this technology, overwriting between different types of data is prohibited, so an excellent effect that prevents any type of data from being completely lost even if the communication is congested. To play. Also, Japanese Patent Application Laid-Open No. 2000-244548 discloses an apparatus in which the priority of data is reset to alleviate data stagnation in the data relay device.

【0004】[0004]

【発明が解決しようとする課題】ところで、データの中
には、最新のデータだけではなく時系列的に入力するデ
ータの変化そのものが意味を有するものがある。図32
の例では、メータECU932は、メータ82の表示部
のひとつであるシフトポジションを示す「P」「R」
「N」「D」「2」「L」の6つのインディケータ82
1の点灯と消灯とを切り換えるようになっているが、各
インディケータ821の点灯か消灯かのデータは、メー
タECU932とは別の通信系911に属するエンジン
ECU931から受け取ることになる。
By the way, among data, not only the latest data but also a change in data input in time series has a meaning. FIG.
In the example, the meter ECU 932 outputs “P” and “R” indicating the shift position which is one of the display units of the meter 82.
Six indicators 82 of "N""D""2""L"
1 is switched between on and off, but data on whether each indicator 821 is on or off is received from an engine ECU 931 belonging to a communication system 911 different from the meter ECU 932.

【0005】図33はこの点灯か消灯かのデータのデー
タ本体の構成例を示すもので、1ビット目から6ビット
目まで「P」から「L」のシフトポジジョンが1対1に
対応し、各ビットはが点灯であれば「1」、消灯であれ
ば「0」となる。運転者が自動車を発進させようとシフ
トレバーを「P」から「L」まで5段階に一気に動かす
と、エンジンECU931からは、各段階を経るごと
に、「1」となるビットを隣のビットに移動させたデー
タがエンジンECU931から送信され、これらのデー
タがたて続けにデータ中継装置94に入ることになる。
かかる場合に、データ中継装置94においてバッファの
上書きによりデータが最新のものに置き変わってしまう
と、インディケータ821においてシフトポジションの
表示が飛ぶという不都合が生じる。
FIG. 33 shows an example of the structure of the data body of the data indicating whether the data is on or off. The shift positions from "P" to "L" correspond to one-to-one from the first bit to the sixth bit. Each bit is "1" when the light is on, and "0" when the light is off. When the driver moves the shift lever from “P” to “L” in five steps at a stretch in order to start the car, the engine ECU 931 changes the bit that becomes “1” to the next bit at each step. The moved data is transmitted from the engine ECU 931, and these data immediately enter the data relay device 94.
In such a case, if the data is replaced with the latest data due to overwriting of the buffer in the data relay device 94, there is a disadvantage that the display of the shift position is skipped in the indicator 821.

【0006】かかるデータを確実に転送しようとすれば
上記のごとく優先度を高く再設定するのも一案である
が、データ中継装置94の送信バッファに他の種類のデ
ータが滞留していれば、結局、バッファのデータが上書
きされていくことになる。
[0006] As described above, it is one idea to reset the priority to a higher priority in order to transfer such data reliably. However, if another type of data is accumulated in the transmission buffer of the data relay device 94, Eventually, the data in the buffer will be overwritten.

【0007】本発明は上記実情に鑑みなされたもので、
データの消失に対する耐性の高いデータ中継装置および
多重通信システムを提供することを目的とする。
[0007] The present invention has been made in view of the above circumstances,
An object of the present invention is to provide a data relay device and a multiplex communication system that are highly resistant to data loss.

【0008】[0008]

【課題を解決するための手段】請求項1記載の発明で
は、データの本体とともにデータの種類の情報を含むデ
ータを伝送する多重通信線の間に介設されて複数の種類
のデータを中継するデータ中継装置であって、受信した
データの中継先の多重通信線を選択し受信データを転送
するデータコントローラを有するデータ中継装置におい
て、受信データを中継先の多重通信線に送信する前に一
時保持するバッファを、中継されるデータの種類ごとに
設けるとともに、データ種類のうち1以上のデータ種類
については複数のバッファを割り当て、上記データコン
トローラには、受信したデータの種類を識別し、その種
類に対応するバッファを、受信したデータの書き込み先
として指定するバッファ指定手段と、データが格納され
たバッファからのデータの転送を管理するデータ転送管
理手段とを具備せしめ、該データ転送管理手段を、各多
重通信線において、データ種類が同一のバッファからの
データを転送する順番が、バッファにデータが書き込ま
れた順番となるように設定する。
According to the first aspect of the present invention, a plurality of types of data are interposed between a multiplex communication line for transmitting data including data type information together with a main body of the data. In a data relay device having a data controller for selecting a multiplex communication line to which received data is relayed and transferring received data, the data relay device temporarily holds received data before transmitting it to the multiplex communication line of the relay destination Buffers are provided for each type of data to be relayed, and a plurality of buffers are assigned to one or more data types among the data types, and the data controller identifies the type of received data, Buffer designating means for designating a corresponding buffer as a destination to which received data is to be written, and data from a buffer in which data is stored. Data transfer management means for managing the transfer of data, and the data transfer management means is configured to transfer data from a buffer of the same data type in each multiplex communication line in the order that data is written to the buffer. Set up in order.

【0009】データの種類ごとにバッファを設けること
で、バッファは、同じ種類の最新のデータによってのみ
上書きされ、受信データにより送信待ちの他の種類のデ
ータを消失してしまうことを防止することができる。
By providing a buffer for each type of data, it is possible to prevent the buffer from being overwritten only by the latest data of the same type and from losing other types of data waiting to be transmitted due to received data. it can.

【0010】さらに、複数のバッファが割り当てられた
種類のデータについては、相前後してデータが受信され
ても、これらを同時に保持することができ、データ消失
に対する耐性を高めることができる。しかも、バッファ
からのデータ転送が、少なくとも選択された多重通信線
が同じものについては、バッファにデータが格納された
時期が早いものから行われるから、バッファからのデー
タ転送において、同じ種類のデータ間での飛び越しを確
実に防止することができる。
[0010] Further, as for data of a type to which a plurality of buffers are allocated, even if data is received one after another, they can be held simultaneously, and the resistance to data loss can be increased. In addition, since data transfer from the buffer is performed from the earliest when data is stored in the buffer for at least the same selected multiplex communication line, the same type of data is transferred in the data transfer from the buffer. Jumping can be reliably prevented.

【0011】請求項2記載の発明では、請求項1の発明
の構成において、上記データ転送管理手段を、所定の時
間間隔で立ち上がり、順次、上記バッファ内の送信する
データの有無を確認してデータがあればバッファからデ
ータを転送するように、かつ、データ種類が同一のバッ
ファについてのデータの有無の確認を、最先にデータが
格納されたバッファから行うように設定する。
According to a second aspect of the present invention, in the configuration of the first aspect of the present invention, the data transfer management means is activated at predetermined time intervals, and sequentially checks the presence / absence of data to be transmitted in the buffer. If there is, the setting is made so that data is transferred from the buffer, and whether or not there is data in the buffer of the same data type is checked first from the buffer in which the data is stored.

【0012】バッファ内のデータの有無を順次、確認し
ていくことで、バッファ群の中から、送信すべきデータ
の存在が確実に知られ、また、データ種類が同一のバッ
ファについてのデータの有無は、先ず、最先にデータが
格納されたバッファについて確認されるから、最先に格
納されたデータが、データ種類が同一の他のバッファに
先んじてバッファからの転送を実行することができる。
By sequentially checking the presence / absence of data in the buffer, the existence of data to be transmitted is reliably known from the buffer group, and the presence / absence of data in a buffer of the same data type is determined. Is first checked for the buffer in which the data is stored first, so that the data stored first can be transferred from the buffer prior to another buffer of the same data type.

【0013】請求項3記載の発明では、請求項2の発明
の構成において、上記データ転送管理手段を、データ種
類が同一のバッファについては、予め設定した所定のバ
ッファのみについてバッファ内のデータの有無を確認す
るように、かつ、上記所定バッファ内のデータの転送
を、選択された多重通信線に対応してすべて完了した後
に、データの種類が同一の他のバッファ内のデータのう
ちで最先に受信されたデータを上記所定バッファに移動
するように設定する。
According to a third aspect of the present invention, in the configuration of the second aspect of the present invention, the data transfer management means is configured to determine whether or not there is data in the buffer only for a predetermined buffer for a buffer of the same data type. And after completing the transfer of the data in the predetermined buffer corresponding to the selected multiplex communication line, the first among the data in the other buffers of the same data type Is set to move the received data to the predetermined buffer.

【0014】種類が同一のデータの中で最先に受信され
たデータが、常に所定バッファに存在するようにするこ
とで、すべてのバッファについてデータの有無を確認し
なくとも、転送すべきデータの有無を確実に確認するこ
とができる。
[0014] By ensuring that the earliest received data of the same type of data always exists in a predetermined buffer, the data to be transferred can be checked without checking the existence of data in all buffers. The presence or absence can be surely confirmed.

【0015】請求項4記載の発明では、請求項1の発明
の構成において、データが格納されたバッファを特定す
るバッファ情報を含み、選択された多重通信線が同じバ
ッファ情報の並び順が、バッファからデータを転送する
順番である送信データリストを具備せしめ、上記データ
転送管理手段を、データのバッファへの書き込みおよび
バッファからのデータの転送に応じて上記送信データリ
ストを更新するように設定する。
According to a fourth aspect of the present invention, in the configuration of the first aspect of the present invention, the buffer information for specifying a buffer storing data is included, and the order of the buffer information in which the selected multiplex communication lines are the same is determined by the buffer order. And a transmission data list, which is an order of transferring data from the buffer, and sets the data transfer management means so as to update the transmission data list in accordance with writing of data to the buffer and transfer of data from the buffer.

【0016】バッファ内のデータの有無を確認しなくと
も、送信データリストから、転送すべきデータを格納し
たバッファが知られるので、データの中継を速やかに行
うことができる。
Since the buffer storing the data to be transferred can be known from the transmission data list without confirming the presence or absence of the data in the buffer, the data can be relayed quickly.

【0017】しかも、多重通信線ごとに、バッファから
データを転送する順番が知られるから、データ種類が同
一のデータが相前後してバッファに書き込まれて、送信
データリストに同一のデータ種類について複数がエント
リされた場合において、当該データがバッファから一の
多重通信線に対応して転送され、他の多重通信線に対応
しては転送されていない状況が現出しても、上記一の多
重通信線に対応して次に転送すべきデータを格納したバ
ッファは、送信されたデータが格納されたバッファのバ
ッファ情報の次に並べられたバッファ情報で特定される
バッファであることが知られる。これにより、同じデー
タを間違って送信することを回避できる。
In addition, since the order of transferring data from the buffer is known for each multiplex communication line, data of the same data type is written to the buffer one after another, and a plurality of data of the same data type are written in the transmission data list. Is entered, the data is transferred from the buffer corresponding to one multiplex communication line, and the data is not transferred corresponding to the other multiplex communication line. It is known that the buffer storing the data to be transferred next corresponding to the line is the buffer specified by the buffer information arranged next to the buffer information of the buffer storing the transmitted data. This can prevent the same data from being transmitted by mistake.

【0018】請求項5記載の発明では、請求項4の発明
の構成において、上記送信データリストを、バッファを
特定するバッファ情報と、上記転送先テーブルに基づい
て多重通信線ごとに初期値が与えられて、上記バッファ
に格納されたデータを転送すべきか否かの管理情報とか
らなる構成とし、上記データ転送管理手段を、バッファ
からのデータの転送に応じて、管理情報をデータの送信
が不要である旨の情報に切り換えるように設定する。
According to a fifth aspect of the present invention, in the configuration of the fourth aspect, the transmission data list is provided with an initial value for each multiplex communication line based on buffer information for specifying a buffer and the transfer destination table. The data transfer management means does not need to transmit the management information in accordance with the transfer of the data from the buffer. Is set to switch to the information indicating that

【0019】転送すべきデータが格納されたバッファと
ともに、そのデータの多重通信線ごとの転送進捗状況を
一元管理することができるから、バッファに格納された
データの転送が、選択された多重通信線に対応してすべ
て完了しているか否かを、容易に知ることができ、制御
負担を減じることができる。
With the buffer storing the data to be transferred, the transfer progress of the data for each multiplex communication line can be managed in a unified manner, so that the data stored in the buffer is transferred to the selected multiplex communication line. , It is possible to easily know whether or not all of them are completed, and it is possible to reduce the control burden.

【0020】請求項6記載の発明では、多重通信システ
ムを、請求項1ないし5記載のデータ中継装置と、デー
タを送受信する通信ノードが上記多重通信線に接続され
た複数の通信系とを具備する構成とすることで、中継デ
ータの消失によってデータ通信の信頼性を損なわない多
重通信システムを構築することができる。
According to a sixth aspect of the present invention, a multiplex communication system includes the data relay device according to the first to fifth aspects and a plurality of communication systems in which communication nodes for transmitting and receiving data are connected to the multiplex communication line. With this configuration, it is possible to construct a multiplex communication system that does not impair the reliability of data communication due to the loss of relay data.

【0021】[0021]

【発明の実施の形態】(第1実施形態)図1に本発明の
第1実施形態になるデータ中継装置および多重通信シス
テムを示す。多重通信システムは、複数(図例では3)
の通信系11,12,13とデータ中継装置4とにより
構成される。各通信系11〜13は、多重通信線21,
22,23に通信ノード31,32,33が接続された
もので、通信ノード31〜33間で所定のプロトコルに
てデータを送受信するようになっている。通信ノード3
1〜33は各通信系11〜13に少なくともひとつ属し
ている。
FIG. 1 shows a data relay device and a multiplex communication system according to a first embodiment of the present invention. The multiplex communication system has a plurality (3 in the example in the figure).
And the data relay device 4. Each of the communication systems 11 to 13 includes a multiplex communication line 21,
The communication nodes 31, 32, and 33 are connected to the communication nodes 22, 23, and data is transmitted and received between the communication nodes 31 to 33 using a predetermined protocol. Communication node 3
1 to 33 belong to at least one of the communication systems 11 to 13.

【0022】上記データのフレーム構造の一例を図2に
示す。これは自動車のBEAN(Body Elect
ronics Area Network)プロトコル
におけるフレーム構造である。なお、以下の説明におい
てデータ通信は、このBEANプロトコルに従うものと
して説明する。SOF(Start Of Fram
e)はフレームの開始を表し1bitが割り当てられ
る。PRI(Priority)はフレームの優先度を
表す領域で、4bitが割り当てられる。「1」の方が
「0」よりも優先度が高い。データ中継装置4、通信ノ
ード31〜33は、各通信系11〜13において、多重
通信線21〜23上でデータ同士の衝突が起きた場合に
優先度の高いデータが優先し他のデータは送信が中止さ
れる。ML(Message Length)は、続く
メッセージ部分の長さを表す領域で、メッセージ部分を
構成するDID、MIDは、後述するようにそれぞれ1
byteであり、DATAは可変長であるから、DAT
Aのbyte数+2となる。
FIG. 2 shows an example of the frame structure of the data. This is the BEAN (Body Elect)
3 is a frame structure in the RONICS Area Network protocol. In the following description, data communication will be described as being based on the BEAN protocol. SOF (Start Of Frame)
e) indicates the start of a frame, and 1 bit is allocated. The PRI (Priority) is an area indicating the priority of the frame, and 4 bits are allocated. “1” has a higher priority than “0”. The data relay device 4 and the communication nodes 31 to 33 transmit high-priority data and transmit other data when data collision occurs on the multiplex communication lines 21 to 23 in each of the communication systems 11 to 13. Is aborted. ML (Message Length) is an area indicating the length of the following message part, and DID and MID constituting the message part are each 1 as described later.
byte, and DATA has a variable length.
The number of bytes of A + 2.

【0023】メッセージ部分の最初はDID(Dest
ination ID)であり、これはフレームの宛て
先ノードIDを表す領域である。MID(Messag
eID)はメッセージIDを表す領域で、8bitが割
り当てられる。MIDは、データの種類ごとに付与さ
れ、データの本体である後述するDATAの内容が表す
データの種類を特定する。通信でやりとりされるデータ
の種類にはエンジン回転数等があり、それぞれに例えば
図3に示すようにMIDが付与される。図の例で説明す
ると、MID=08hである通信データのDATAはエ
ンジン回転数を表し、MID=A5hである通信データ
のDATAは車速を表し、MID=DDhである通信デ
ータのDATAはパワーウィンドウスイッチの状態を表
す。DATAはデータ本体の領域で1〜11byteが
割り当てられる。
The beginning of the message part is DID (Dest
location ID), which is an area indicating the destination node ID of the frame. MID (Message
eID) is an area representing a message ID, and is assigned 8 bits. The MID is assigned for each type of data, and specifies the type of data represented by the content of DATA, which will be described later, which is the main body of the data. Types of data exchanged by communication include an engine speed and the like, and MID is given to each of them, for example, as shown in FIG. In the example shown in the figure, DATA of communication data with MID = 08h indicates engine speed, DATA of communication data with MID = A5h indicates vehicle speed, and DATA of communication data with MID = DDh is a power window switch. Represents the state of. DATA is allocated to 1 to 11 bytes in a data body area.

【0024】DATAの後にはCRC(Cyclic
Redundancy Characters)、EO
M(End Of Message)、RSP(Res
ponce)が続く。CRCは通信エラーチェック用の
領域で、8bitが割り当てられる。CRCは、通信ノ
ードが上記PRIからDATAまでの内容を所定の数式
に代入してビット演算した結果を書き込み、受信した通
信ノードが受信データと比較することで、通信エラーを
チェックする。EOMは所定のビット列でメッセージの
終了を表し8bitが割り当てられる。RSPはデータ
を受信した通信ノードがレスポンスを書き込む領域で、
2bitが割り当てられる。RSPには受信した通信ノ
ードによりフレームの内容を正常に解釈できたか否かの
結果が書き込まれ、これよりデータを送信した通信ノー
ドが再送信の必要があるか否かを判定する。データの最
後尾はEOF(End Of Frame)で、所定の
ビット列によりフレームの終わりを表し、6bitが割
り当てられる。
After the DATA, a CRC (Cyclic)
Redundancy Characters), EO
M (End Of Message), RSP (Res
pounce) follows. The CRC is a communication error check area to which 8 bits are assigned. The CRC checks the communication error by the communication node substituting the contents from PRI to DATA into a predetermined mathematical expression, writing the result of the bit operation, and comparing the received communication node with the received data. EOM indicates the end of the message with a predetermined bit string, and is assigned 8 bits. RSP is an area where the communication node that has received the data writes a response.
Two bits are allocated. The result indicating whether or not the content of the frame has been correctly interpreted by the receiving communication node is written in the RSP, and the communication node that has transmitted the data determines whether or not retransmission is necessary based on the result. The end of the data is EOF (End Of Frame), which indicates the end of the frame by a predetermined bit string, and is assigned 6 bits.

【0025】各多重通信線21〜23は、データ中継装
置4と接続され、データ中継装置4が、通信ノード31
〜33から送信されたデータを別の通信系11〜13に
属する通信ノード31〜33へと中継するようになって
いる。
Each of the multiplex communication lines 21 to 23 is connected to the data relay device 4.
33 are relayed to communication nodes 31 to 33 belonging to different communication systems 11 to 13.

【0026】データ中継装置4は、多重通信線21〜2
3とのインターフェースをなす通信用ICや、制御用の
マイクロコンピュータ等で構成されたもので、図ではそ
の機能ブロックで表してあり、受信バッファ411,4
12,413、送信バッファ421,422,423、
バッファ群43、データコントローラ44、転送先テー
ブル45等からなる。
The data relay device 4 is provided with the multiplex communication lines 21 to 2
3 is constituted by a communication IC serving as an interface with the control unit 3 and a microcomputer for control, and is represented by functional blocks in the figure.
12, 413, transmission buffers 421, 422, 423,
It includes a buffer group 43, a data controller 44, a transfer destination table 45, and the like.

【0027】受信バッファ411〜413、送信バッフ
ァ421〜423は各多重通信線21〜23に対応して
設けてある。受信バッファ411〜413は多重通信線
21〜23から送信されたデータを受け、送信バッファ
421〜423は送信しようとするデータが書き込まれ
る。受信バッファ411〜413および送信バッファ4
21〜423は上記通信用ICにより構成される。な
お、データ通信機能をマイクロコンピュータを構成する
CPU上で実行されるソフトウェアとして組み込んでも
よく、この場合、受信バッファ411〜413、送信バ
ッファ421〜423はマイクロコンピュータを構成す
るRAM上に割り当てる。
The receiving buffers 411 to 413 and the transmitting buffers 421 to 423 are provided corresponding to the respective multiplex communication lines 21 to 23. The reception buffers 411 to 413 receive data transmitted from the multiplex communication lines 21 to 23, and the transmission buffers 421 to 423 are written with data to be transmitted. Reception buffers 411 to 413 and transmission buffer 4
21 to 423 are constituted by the communication IC. Note that the data communication function may be incorporated as software executed on a CPU constituting a microcomputer. In this case, the reception buffers 411 to 413 and the transmission buffers 421 to 423 are allocated on a RAM constituting the microcomputer.

【0028】バッファ群43は複数のバッファ431よ
りなり、各バッファ431は、詳細は後述するように受
信バッファ411〜413が受けたデータを送信バッフ
ァ421〜423に転送する前に一時保持するようにな
っている。中継されるデータのMIDに少なくとも1つ
のバッファ431が割り当てられ、バッファ431はは
それぞれ1つのMIDに専属している。このうち特定の
MIDについては複数のバッファ431が割り当てられ
ており、相前後して受信した同じMIDの複数のデータ
を同時に保持することができる。バッファ431は、例
えば転送されるデータが5種類で、そのうちの1種類に
ついては3つのバッファを割り当て、その他の種類は1
つずつバッファを割り当てるとすれば、バッファ431
を7つ用意することになる。
The buffer group 43 includes a plurality of buffers 431. Each buffer 431 temporarily stores data received by the reception buffers 411 to 413 before transferring the data to the transmission buffers 421 to 423 as described later in detail. Has become. At least one buffer 431 is assigned to the MID of the data to be relayed, and each buffer 431 is dedicated to one MID. Among these, a plurality of buffers 431 are allocated to a specific MID, and a plurality of data of the same MID received successively can be held simultaneously. The buffer 431 has, for example, five types of data to be transferred, and allocates three buffers for one type of data and one for the other type.
If buffers are allocated one by one, the buffer 431
Are prepared.

【0029】なお、以下の説明において、データ中継の
対象となるMIDに1対1に対応して、適宜、バッファ
431をバッファnというように表し(n=自然数)、
複数のバッファ431を割り当てたMIDのバッファ4
31については個々のバッファ431をバッファn
(k)というように表して(k=自然数)識別するもの
とする(以下、kを段数という)。また、複数のバッフ
ァを割り当てたデータ種類の場合、バッファnは、バッ
ファn(k)の全体をいうものとする。例えば、図4に
示すように、バッファ1はMID=01hのデータの書
き込み用とし、バッファ2はMID=5Fhのデータの
書き込み用とし、バッファ3はMID=92hのデータ
の書き込み用とし、バッファ4(1)、バッファ4
(2)、およびバッファ4(3)はそれぞれMID=C
8hのデータの書き込み用とし、バッファ5はMID=
EBhのデータの書き込み用とする。バッファ群43の
データ領域は上記マイクロコンピュータを構成するRA
M上に割り当てられる。
In the following description, the buffer 431 is appropriately represented as a buffer n (n = natural number) in a one-to-one correspondence with the MIDs to be relayed.
MID buffer 4 to which a plurality of buffers 431 are allocated
For 31, individual buffers 431 are stored in buffer n
(K) is identified as (k) (hereinafter, k is referred to as the number of stages). In the case of a data type in which a plurality of buffers are allocated, the buffer n refers to the entire buffer n (k). For example, as shown in FIG. 4, buffer 1 is for writing data with MID = 01h, buffer 2 is for writing data with MID = 5Fh, buffer 3 is for writing data with MID = 92h, and buffer 4 is for writing data with MID = 92h. (1), buffer 4
(2) and buffer 4 (3) are each MID = C
8h data, and the buffer 5 has MID =
It is for writing EBh data. The data area of the buffer group 43 is RA
M.

【0030】データコントローラ44は、受信データの
中継先の多重通信線21〜23を選択し、中継先の多重
通信線21〜23用の送信バッファ421〜423に転
送するもので、所定間隔で立ち上がり、受信バッファ4
11〜413からバッファ431へのデータ転送を制御
するとともに、バッファ431から送信バッファ421
〜423へのデータ転送を制御する。データコントロー
ラ44はマイクロコンピュータを構成するCPU上で実
行されるソフトウェア上で実現される。データコントロ
ーラ44、受信バッファ411〜413および送信バッ
ファ421〜423は、データコントローラ44のデー
タ転送処理と、受信バッファ411〜413の受信作動
および送信バッファ421〜423の送信作動とを交互
に繰り返すように設定されている。
The data controller 44 selects the multiplex communication lines 21 to 23 to which the received data is relayed, and transfers the data to the transmission buffers 421 to 423 for the multiplex communication lines 21 to 23 to be relayed. , Receive buffer 4
In addition to controlling the data transfer from the buffer 431 to the transmission buffer 421,
423 is controlled. The data controller 44 is realized on software executed on a CPU constituting a microcomputer. The data controller 44, the reception buffers 411 to 413 and the transmission buffers 421 to 423 alternately repeat the data transfer process of the data controller 44, the reception operation of the reception buffers 411 to 413, and the transmission operation of the transmission buffers 421 to 423. Is set.

【0031】転送先テーブル45は、受信データのMI
Dと中継先の多重通信線用の送信バッファ421〜42
3とを対応せしめるもので、MIDと多重通信線21〜
23とを指定すると、そのMIDの受信データをどの多
重通信線21〜23用の送信バッファ421〜423に
転送すべきか否かの情報が読みだせるようになってい
る。転送先テーブル45の内容は上記マイクロコンピュ
ータを構成するROM上に予めデータコントローラ44
の制御プログラムとともに書き込まれる。
The transfer destination table 45 stores the MI of the received data.
D and transmission buffers 421 to 42 for the multiplex communication line at the relay destination
3 corresponds to the MID and the multiplex communication lines 21 to 21.
When 23 is specified, information as to whether or not the reception data of the MID should be transferred to the transmission buffers 421 to 423 for the multiplex communication lines 21 to 23 can be read. The contents of the transfer destination table 45 are stored in advance in the ROM constituting the microcomputer by the data controller 44.
Written together with the control program.

【0032】図5は転送先テーブル45の一例を示すも
ので、読みだした情報が「1」であれば、その多重通信
線用の送信バッファに転送すべきことを、「0」であれ
ば、その多重通信線用の送信バッファに転送しないこと
を示す。図例では、MID=01hであるデータVは第
2多重通信線用の送信バッファ422にのみ転送し、M
ID=5FhであるデータWは第3多重通信線用の送信
バッファ423にのみ転送し、MID=92hであるデ
ータXは第1多重通信線用の送信バッファ421にのみ
転送し、MID=C8hであるデータYは第1多重通信
線用の送信バッファ421および第2多重通信線用の送
信バッファ422に転送し、MID=EBhであるデー
タZは第2多重通信線用の送信バッファ422および第
3多重通信線用の送信バッファ423に転送すべきこと
を表している。
FIG. 5 shows an example of the transfer destination table 45. When the read information is "1", it indicates that the information should be transferred to the transmission buffer for the multiplex communication line. , Indicates that the data is not transferred to the transmission buffer for the multiplex communication line. In the illustrated example, the data V having MID = 01h is transferred only to the transmission buffer 422 for the second multiplex communication line.
The data W with ID = 5Fh is transferred only to the transmission buffer 423 for the third multiplex communication line, the data X with MID = 92h is transferred only to the transmission buffer 421 for the first multiplex communication line, and the data X with MID = C8h. Certain data Y is transferred to the transmission buffer 421 for the first multiplex communication line and the transmission buffer 422 for the second multiplex communication line, and the data Z having MID = EBh is transmitted to the transmission buffer 422 for the second multiplex communication line and the third buffer 422. This indicates that the data should be transferred to the transmission buffer 423 for the multiplex communication line.

【0033】また、データコントローラ44には、受信
バッファ411〜413からバッファ群43へのデータ
転送処理時に実行されるバッファ指定手段441が設け
てあり、受信バッファ411〜413のデータのMID
を識別し、そのMIDに対応するバッファ431を受信
バッファ411〜413のデータの転送先として指定す
る。
The data controller 44 is provided with a buffer designating means 441 which is executed when data is transferred from the reception buffers 411 to 413 to the buffer group 43.
Is identified, and the buffer 431 corresponding to the MID is specified as a data transfer destination of the reception buffers 411 to 413.

【0034】また、単一のバッファ431からなるMI
Dの場合は、受信バッファ411〜413のデータによ
り、そのMID用のバッファ431に上書きされること
になるが、複数のバッファ431が割り当てられたMI
Dについては、データが格納されていないバッファ43
1のうち、段数の若いものから順に書き込まれていくよ
うになっており、空きバッファ431がなければ最後の
段数kf のバッファn(kf )のバッファ431に上書
きされることになる。
Also, the MI composed of a single buffer 431
In the case of D, the data in the reception buffers 411 to 413 is overwritten on the buffer 431 for the MID.
For D, a buffer 43 in which no data is stored
1 is written in ascending order of the number of stages, and if there is no empty buffer 431, the buffer 431 of the buffer n (kf) of the last stage number kf is overwritten.

【0035】かくして受信データはそのMIDに対応し
てMID別にバッファ431に書き込まれる。
Thus, the received data is written into the buffer 431 for each MID corresponding to the MID.

【0036】また、データコントローラ44には、バッ
ファ群43から送信バッファ421〜423へのデータ
転送処理時に実行されて、データ転送の順番を管理する
データ転送管理手段442が設けてある。
The data controller 44 is provided with a data transfer management means 442 which is executed during data transfer processing from the buffer group 43 to the transmission buffers 421 to 423 and manages the order of data transfer.

【0037】図6、図7、図8、図9に、バッファ群4
3から送信バッファ421〜423へのデータ転送処理
を示すフローチャートを示す。これはデータ転送管理手
段442の設定内容を示すものである。ステップS10
0では開始バッファ#=1とし、終了バッファ#=Nと
する。ここで、Nはバッファ群43を構成するバッファ
431の数である。ステップS101ではn=開始バッ
ファ#(=1)とする。ステップS102ではバッファ
nにデータが書き込まれているか否かを確認する。な
お、バッファ♯が複数のバッファ431を割り当てたM
IDに対応するものの場合は、データが書き込まれてい
るか否かの判断は、バッファn(1)のみに基づいて行
う。
FIGS. 6, 7, 8, and 9 show buffer group 4
3 is a flowchart showing a data transfer process from No. 3 to the transmission buffers 421 to 423. This indicates the setting contents of the data transfer management means 442. Step S10
At 0, the start buffer # = 1 and the end buffer # = N. Here, N is the number of buffers 431 constituting the buffer group 43. In step S101, n = start buffer # (= 1). In step S102, it is checked whether data has been written to the buffer n. Note that buffer # is assigned M
In the case of the ID corresponding to the ID, the determination as to whether or not the data is written is performed based on only the buffer n (1).

【0038】書き込まれている場合はステップS105
に進む(図7)。ステップS105ではバッファnのデ
ータに転送先フラグが設定されているか否かを確認す
る。転送先フラグは多重通信線21〜23ごとに設定さ
れ、「1」が設定されていれば、バッファnのデータを
その多重通信線21〜23に転送すべきことを表す。
If it has been written, step S105
(FIG. 7). In step S105, it is confirmed whether or not the transfer destination flag is set in the data of the buffer n. The transfer destination flag is set for each of the multiplex communication lines 21 to 23. If "1" is set, it indicates that the data in the buffer n should be transferred to the multiplex communication lines 21 to 23.

【0039】転送先フラグが設定されていなければステ
ップS106,S107を実行し転送先フラグを設定す
る。ステップS106ではバッファnのデータのMID
を確認し、ステップS107では上記データ転送先テー
ブル45を参照してバッファnのデータの転送先を取得
してバッファnのデータに転送先フラグを設定する。す
なわち、第1多重通信線用の送信バッファ421に転送
すべきであれば転送先フラグf1を「1」とし、第2多
重通信線用の送信バッファ422に転送すべきであれば
転送先フラグf2を「1」とし、第3多重通信線用の送
信バッファ423に転送すべきであれば転送先フラグf
3を「1」とする。
If the transfer destination flag has not been set, steps S106 and S107 are executed to set the transfer destination flag. In step S106, the MID of the data in buffer n
In step S107, the transfer destination of the data in the buffer n is acquired with reference to the data transfer destination table 45, and the transfer destination flag is set in the data in the buffer n. That is, the transfer destination flag f1 is set to "1" if the transfer should be made to the transmission buffer 421 for the first multiplex communication line, and the transfer destination flag f2 if it should be transferred to the transmission buffer 422 for the second multiplex communication line. Is set to “1”, and if the data should be transferred to the transmission buffer 423 for the third multiplex communication line, the transfer destination flag f
3 is set to “1”.

【0040】転送先フラグを設定すると、ステップS1
08(図8)に進む。ステップS108では転送先フラ
グf1を確認し、「1」であればステップS109に進
む。ステップS109では第1多重通信線用の送信バッ
ファ421が空か否かを確認する。送信バッファ421
が空であればステップS110に進みバッファnのデー
タを送信バッファ421に転送する。そして続くステッ
プS111でバッファnの転送先フラグf1を「0」と
し、ステップS112に進む。
When the transfer destination flag is set, step S1
08 (FIG. 8). In step S108, the transfer destination flag f1 is checked, and if "1", the process proceeds to step S109. In step S109, it is checked whether the transmission buffer 421 for the first multiplex communication line is empty. Transmission buffer 421
If is empty, the flow advances to step S110 to transfer the data in the buffer n to the transmission buffer 421. Then, in a succeeding step S111, the transfer destination flag f1 of the buffer n is set to “0”, and the process proceeds to a step S112.

【0041】ステップS112では転送先フラグf2が
「1」か否かを確認する。「1」であればステップS1
13に進む。ステップS113では第2多重通信線用の
送信バッファ422が空か否かを確認する。送信バッフ
ァ422が空であればステップS114に進み、バッフ
ァnのデータを送信バッファ422に転送する。そして
続くステップS115でバッファnの転送先フラグf2
を「0」とし、ステップS116に進む。
In step S112, it is checked whether the transfer destination flag f2 is "1". If "1", step S1
Proceed to 13. In step S113, it is checked whether the transmission buffer 422 for the second multiplex communication line is empty. If the transmission buffer 422 is empty, the process proceeds to step S114, and the data in the buffer n is transferred to the transmission buffer 422. Then, in the subsequent step S115, the transfer destination flag f2 of the buffer n
Is set to “0”, and the process proceeds to step S116.

【0042】ステップS116では転送先フラグf3が
「1」か否かを確認する。「1」であればステップS1
17に進む。ステップS117では第3多重通信線用の
送信バッファ423が空か否かを確認する。送信バッフ
ァ423が空であればステップS118に進み、バッフ
ァnのデータを送信バッファ423に転送する。そして
続くステップS119でバッファnの転送先フラグf3
を「0」とし、ステップS120に進む(図9)。
In step S116, it is confirmed whether or not the transfer destination flag f3 is "1". If "1", step S1
Proceed to 17. In step S117, it is checked whether the transmission buffer 423 for the third multiplex communication line is empty. If the transmission buffer 423 is empty, the process proceeds to step S118, and the data in the buffer n is transferred to the transmission buffer 423. Then, in the subsequent step S119, the transfer destination flag f3 of the buffer n
Is set to “0”, and the process proceeds to step S120 (FIG. 9).

【0043】ステップS120では転送先フラグf1=
0かつf2=0かつf3=0であるか否かを判定する。
肯定されれば転送すべき送信バッファ421〜423へ
のデータ転送が完了しているということであり、ステッ
プS121でバッファnのデータを削除する。複数のバ
ッファ431が割り当てられているMIDの場合は、バ
ッファn(1)のデータを削除する。
In step S120, the transfer destination flag f1 =
It is determined whether 0 and f2 = 0 and f3 = 0.
If affirmative, it means that the data transfer to the transmission buffers 421 to 423 to be transferred has been completed, and the data in the buffer n is deleted in step S121. In the case of the MID to which a plurality of buffers 431 are assigned, the data in the buffer n (1) is deleted.

【0044】続くステップS122では、バッファnが
複数段構成、すなわち複数のバッファ431が割り当て
られたMIDのものであるか否かを判定する。判定は、
複数段構成をとるもののバッファ♯を予め記憶してお
き、これに基づいて行い得る。肯定されればステップS
123に進み、バッファn(2)のデータをバッファn
(1)にコピーし、3段以上の構成であれば、さらにバ
ッファn(3)のデータをバッファn(2)にというよ
うに、各バッファn(k)のデータをひとつ若い段数k
のバッファn(k)に移動していく。同一MID内のバ
ッファ431におけるかかる作動は、FIFOと実質的
に同様のデータ処理である。
In the following step S122, it is determined whether or not the buffer n has a multi-stage structure, that is, whether or not the plurality of buffers 431 have the assigned MID. The judgment is
A buffer ♯ of a multi-stage configuration may be stored in advance and performed based on this. If affirmative, step S
Proceeding to 123, the data in buffer n (2) is transferred to buffer n
(1), and if the configuration has three or more stages, the data of each buffer n (k) is stored in the buffer n (2) such that the data of the buffer n (3) is further transferred to the buffer n (2).
To the buffer n (k). Such an operation in the buffer 431 in the same MID is a data processing substantially similar to that of the FIFO.

【0045】図10(A)、図10(B)は、かかる、
バッファ431から送信バッファ421〜423(図例
では421)への転送処理を示すもので、転送するデー
タの有無についてバッファ群43内を順次、確認し、M
ID=92h、段数1のバッファ431に格納されたデ
ータを送信バッファ421に転送したとすると(図10
(A))、上記バッファ431のデータを削除し、段数
2、段数3のデータが順繰りに繰り上がり、段数3のバ
ッファが空になることになる(図10(B))。なお、
かかるデータ移動はデータの物理的なアドレスが実際に
変わるのではなく、データの格納場所をそのままにデー
タに対応する段数の情報の方を繰り替えるようにしても
よく、2つの手段は等価である。
FIGS. 10 (A) and 10 (B) show such a case.
This indicates transfer processing from the buffer 431 to the transmission buffers 421 to 423 (421 in the illustrated example).
It is assumed that the data stored in the buffer 431 of ID = 92h and the number of stages is transferred to the transmission buffer 421 (FIG. 10).
(A)), the data of the buffer 431 is deleted, and the data of the stage number 2 and the stage number 3 are carried up sequentially, and the buffer of the stage number 3 becomes empty (FIG. 10B). In addition,
In such data movement, the physical address of the data does not actually change, but the information of the number of stages corresponding to the data may be repeated while the data storage location is kept as it is, and the two means are equivalent. .

【0046】その後、ステップS103に進む(図
6)。ステップS122が否定されれば単一のバッファ
構成ということであり、ステップS123をスキップし
てステップS103に進む。
Thereafter, the operation proceeds to step S103 (FIG. 6). If step S122 is denied, it means a single buffer configuration, and the process skips step S123 and proceeds to step S103.

【0047】ステップS103においてnが終了バッフ
ァ#か否かを判定し、n≠終了バッファ#であればステ
ップS104にてnを1ステップ、インクリメントし、
ステップS102に戻り、次のバッファ♯のバッファn
についてステップS102,S108〜S123が実行
される。このように、バッファ431はバッファ♯順
に、転送するデータの有無が確認され、データが保持さ
れているときはそのデータを所定の送信バッファ421
〜423に転送する。そして最後のバッファNについて
のデータを転送するとデータ転送処理が終了となる。
In step S103, it is determined whether or not n is an end buffer #. If n ≠ end buffer #, n is incremented by one step in step S104.
Returning to step S102, the buffer n of the next buffer #
Are performed for steps S102 and S108 to S123. As described above, the buffer 431 checks the presence or absence of the data to be transferred in the order of the buffer #, and if the data is held, transfers the data to the predetermined transmission buffer 421.
To 423. When the data for the last buffer N is transferred, the data transfer processing ends.

【0048】上記データ転送処理において、送信バッフ
ァ421〜423がデータを保持しており送信待ちの状
態にあるためにステップS109,S113,S117
の少なくともいずれかが否定されると、ステップS11
0,S111、ステップS114,S115、ステップ
S118,S119はスキップし転送先フラグf1,f
2,f3のいずれかは「1」のままである。したがって
ステップS120は否定され、ステップS121はスキ
ップしバッファnのデータはそのまま保持される。すな
わち、転送先の送信バッファ421〜423が空になる
のを待つことになる。この場合、次回のデータ転送処理
において、ステップS105からステップS106,S
107をスキップしてステップS108〜S119が実
行され、転送先の送信バッファ421〜423が空にな
っていれば、前回、送信待ちのため転送できなかったデ
ータを転送する。
In the data transfer process, since the transmission buffers 421 to 423 hold data and are in a transmission waiting state, steps S109, S113, and S117 are performed.
If at least one of the above is denied, step S11
0, S111, steps S114, S115, steps S118, S119 are skipped and the transfer destination flags f1, f
Either of 2 and f3 remains “1”. Therefore, step S120 is denied, step S121 is skipped, and the data in the buffer n is held as it is. That is, it waits until the transmission buffers 421 to 423 of the transfer destination become empty. In this case, in the next data transfer process, steps S105 to S106, S106
Steps S108 to S119 are executed by skipping 107, and if the transmission buffers 421 to 423 of the transfer destination are empty, the data which could not be transferred because of the previous transmission waiting is transferred.

【0049】転送先の送信バッファ421〜423が空
になるのを待つ状態が続けば、バッファ群43から送信
バッファ421〜423への転送は行われない。その間
に、バッファ431に保持されたのと同じMIDの新し
いデータが受信されると、当該バッファ431はその新
しいデータにより上書きされることになるが、バッファ
431を、中継するデータのMIDごとに設けること
で、データ種類の異なるデータにより上書きされること
を回避できるので、あるMIDのデータが完全に消失し
てしまうのを防止することができる。
If the state of waiting for the destination transmission buffers 421 to 423 to become empty continues, the transfer from the buffer group 43 to the transmission buffers 421 to 423 is not performed. In the meantime, if new data of the same MID as that held in the buffer 431 is received, the buffer 431 will be overwritten by the new data. However, the buffer 431 is provided for each MID of data to be relayed. Thus, overwriting by data of different data types can be avoided, so that data of a certain MID can be prevented from completely disappearing.

【0050】また、上記シフトポジションのインディケ
ータの点灯か消灯かのデータを複数段構成のバッファ4
31に受け持たせるようにすれば、上記データが相前後
してエンジンECUからたて続けに送信されても、この
一連のデータがバッファ431において保持され、表示
飛びに対する耐性を高めることができる。しかも、最先
に受信されたデータは常に段数1のバッファ431に存
在しているから、データの飛び越しがなく、上記インデ
ィケータは「P」から「R」「N」「D」「2」「L」
の順に変わっていくことになる。
The data indicating whether the indicator of the shift position is on or off is stored in a buffer 4 having a plurality of stages.
If the data is transferred to the engine 31, even if the data is continuously transmitted from the engine ECU one after another, this series of data is held in the buffer 431, and the resistance to display jump can be increased. In addition, since the data received first is always present in the buffer 431 of one stage, there is no data skipping, and the above indicators are changed from "P" to "R""N""D""2""L"."
It will change in the order of.

【0051】しかも、バッファ群43を構成するバッフ
ァ431の数は、中継するデータの種類の数に、データ
消失に対する耐性を高めたいMIDのものについて複数
のバッファを増設すればよいから、構成が簡単である。
Further, the number of buffers 431 constituting the buffer group 43 can be simplified by increasing the number of types of data to be relayed by adding a plurality of buffers for MIDs whose resistance to data loss is to be improved. It is.

【0052】さらに、データコントローラ44が順次、
バッファ431のデータの有無について確認するから、
バッファ群43の中から送信バッファ421〜423に
転送し多重通信線21〜23に送信すべきデータの存在
が確実に知られる。
Further, the data controller 44 sequentially
Since it is checked whether there is data in the buffer 431,
The existence of data to be transferred from the buffer group 43 to the transmission buffers 421 to 423 and transmitted to the multiplex communication lines 21 to 23 is reliably known.

【0053】なお、バッファ群43は、特に速やかに中
継すべき重要なデータ種類ほど、例えば優先度(PR
I)の高いデータ種類ほど若いバッファ♯のバッファ4
31を割り当てることで、重要なデータを速やかに中継
先の多重通信線21〜23に送信することができる。
In the buffer group 43, for example, the priority (PR
Buffer 4 of buffer # that is younger as data type of I) is higher
By assigning 31, important data can be quickly transmitted to the multiplex communication lines 21 to 23 at the relay destination.

【0054】また、データコントローラ44は立ち上が
るごとに、バッファ群43の中から送信バッファ421
〜423へのデータ転送処理において、中継対象のすべ
てのMIDについて、送信するデータの確認を行ってい
るが、先ず、例えばバッファ群43のバッファ♯前半の
バッファ431についてデータの転送処理を行い、次に
立ち上がった時にバッファ♯後半のバッファ431につ
いてデータの転送処理を行うように設定し、2回のデー
タの転送処理でバッファ群43を一巡するようにしても
よい。この場合、重要なデータ種類に対応するバッファ
431については、上記2回のデータの転送処理の両方
にて行うことで、重要なデータを速やかに中継先の多重
通信線21〜23に送信することができる。
Each time the data controller 44 starts up, the transmission buffer 421 is selected from the buffer group 43.
In the data transfer processing to 423, the data to be transmitted is checked for all MIDs to be relayed. First, for example, the data transfer processing is performed for the buffer 431 of the buffer group 43 ♯the first half buffer 431, It is also possible to set so that the data transfer process is performed for the buffer 431 in the second half of the buffer when the data is started up, and the buffer group 43 is cycled through two data transfer processes. In this case, for the buffer 431 corresponding to the important data type, the important data is promptly transmitted to the multiplex communication lines 21 to 23 at the relay destination by performing both of the two data transfer processes. Can be.

【0055】なお、バッファ431内のデータの有無の
確認は、本実施形態の方法を示す図11(A)のごと
く、複数段構成のバッファ431では段数1のバッファ
431のみ確認するというのでもよいが、図11(B)
に示すように、一部もしくは全部の複数段構成のバッフ
ァ431について、バッファn(1)の確認の後、その
MIDのすべてのバッファn(k)を確認するようにし
たり、(C)に示すように、バッファn(1)から所定
の段数のバッファn(k)まで確認するというのでもよ
い。この場合も、同一MIDの中で最もバッファ431
に格納された時期が早いデータの転送から優先的になさ
れることになる。
The presence of data in the buffer 431 may be confirmed by confirming only the buffer 431 of one stage in the buffer 431 having a plurality of stages as shown in FIG. 11A showing the method of the present embodiment. However, FIG.
As shown in (c), after confirming the buffer n (1), all buffers n (k) of the MID are confirmed for a part or all of the buffer 431 having a multi-stage configuration, or as shown in (C). As described above, the confirmation may be performed from the buffer n (1) to the buffer n (k) of a predetermined number of stages. Also in this case, the buffer 431 is the largest among the same MIDs.
, The priority is given to the earlier data transfer.

【0056】なお、この場合、図12に示すように、送
信バッファ421〜423(図例では421)を複数段
の構成にしてFIFO型でデータ処理し、バッファ43
1から転送された順に多重通信線21に送信する構成と
してもよく、データ中継をよりスムーズに行い得る。
In this case, as shown in FIG. 12, the transmission buffers 421 to 423 (421 in the example in the figure) are configured in a plurality of stages, and data processing is performed in FIFO type.
The data may be transmitted to the multiplex communication line 21 in the order in which the data is transferred from the first line, and the data relay may be performed more smoothly.

【0057】(第2実施形態)図13に本発明の第2実
施形態になるデータ中継装置および多重通信システムの
構成を示す。本実施形態のデータ中継装置4Aは、第1
実施形態の構成において、別のデータコントローラに代
えたものである。第1実施形態のデータコントローラで
は、バッファ確認手段は、開始バッファ#、終了バッフ
ァ#をそれぞれ固定してバッファ1から始まり順にバッ
ファNまでデータの有無を確認しデータの転送処理を行
っているが、本実施形態のデータコントローラ44Aで
は、データ転送管理手段442Aは、立ち上がるごとに
開始バッファ#と終了バッファ#を変更し確認順序をず
らしていくように設定されている。第1実施形態との相
違点を中心に説明する。
(Second Embodiment) FIG. 13 shows a configuration of a data relay device and a multiplex communication system according to a second embodiment of the present invention. The data relay device 4A of the present embodiment
In the configuration of the embodiment, another data controller is replaced. In the data controller according to the first embodiment, the buffer checking means fixes the start buffer # and the end buffer # respectively, checks the presence or absence of data from the buffer 1 to the buffer N in order starting from the buffer 1, and performs data transfer processing. In the data controller 44A of the present embodiment, the data transfer management means 442A is set so that the start buffer # and the end buffer # are changed and the confirmation order is shifted each time the data transfer manager 442A starts up. The following description focuses on the differences from the first embodiment.

【0058】図14にデータ中継装置4Aのデータコン
トローラ44Aにおけるバッファ群43から送信バッフ
ァ421〜423へのデータ転送処理を示す。ステップ
S200において前回のデータ転送処理における開始バ
ッファ#を1、インクリメントする。続くステップS2
01では開始バッファ#がNを越えているか否かを確認
する。越えていなければ終了バッファ#を開始バッファ
#−1とする。すなわち開始バッファ#のひとつ前のバ
ッファ♯のバッファにて、バッファ431のデータの有
無の確認を含むバッファ群43から送信バッファ421
〜423への転送処理が一巡する。
FIG. 14 shows a data transfer process from the buffer group 43 to the transmission buffers 421 to 423 in the data controller 44A of the data relay device 4A. In step S200, the start buffer # in the previous data transfer process is incremented by one. Subsequent step S2
At 01, it is confirmed whether or not the start buffer # exceeds N. If not exceeded, the end buffer # is set to the start buffer # -1. That is, in the buffer of the buffer # immediately before the start buffer #, the transmission buffer 421
To 423 goes round.

【0059】続くステップS204ではnを開始バッフ
ァ#とし、ステップS205ではバッファnにデータが
書き込まれているか否かを確認し、書き込まれている場
合には図7〜図9と同じ手順によりデータの書き込まれ
たバッファnについて転送処理を行ってステップS20
6に進む。書き込まれていなければ(ステップS20
5)そのままステップS206に進む。
In the subsequent step S204, n is set as a start buffer #. In step S205, it is confirmed whether or not data has been written to the buffer n. If the data has been written, the data is stored in the same procedure as in FIGS. The transfer processing is performed for the written buffer n, and step S20 is performed.
Proceed to 6. If it has not been written (step S20
5) Proceed directly to step S206.

【0060】ステップS206ではnが終了バッファ#
か否かを確認し、nが終了バッファ#でなければ、ステ
ップS207,S208を実行した後、上記ステップS
205移行の手順が実行されて次のバッファ#のバッフ
ァ431についてデータ転送処理を続ける。ここで、ス
テップS207,S208はnを次に確認するバッファ
431の通し番号に更新する手順で、ステップS207
ではnを1、インクリメントする。ステップS208で
はこのnがN以上か否かを確認し、N未満であればステ
ップS205に戻り、ステップS207にてインクリメ
ントされたnすなわち次のバッファ♯のバッファ431
についてデータの有無を確認する。このように順次、n
が大きくなりついにNになるが、この場合、ステップS
208からステップS209に進み、nを1としステッ
プS205に戻る。バッファNの次に確認するのはバッ
ファ1だからである。このようにN個すべてのバッファ
431についてデータ転送処理が実行される。
In step S206, n is the end buffer #
If n is not the end buffer #, steps S207 and S208 are executed, and then step S207 is executed.
The procedure of transition to 205 is executed, and the data transfer process is continued for the buffer 431 of the next buffer #. Steps S207 and S208 are steps for updating n to the serial number of the buffer 431 to be checked next.
Then, n is incremented by one. In step S208, it is confirmed whether or not this n is equal to or greater than N. If it is less than N, the process returns to step S205, and n incremented in step S207, that is, the buffer 431 of the next buffer #
Check if there is data for. Thus, n
Becomes large and finally reaches N. In this case, step S
From step 208, the process proceeds to step S209, where n is set to 1 and the process returns to step S205. This is because the buffer 1 is checked next to the buffer N. In this manner, the data transfer processing is executed for all N buffers 431.

【0061】このデータ転送処理では、開始バッファ#
と終了バッファ#とを、検索が1巡するごとに順次ずら
していくので、MID間でデータの転送に於ける延滞の
程度が偏るということを防止することができる。例え
ば、図4、図5の例で説明すると、第2多重通信線22
に転送するデータはデータV,Y,Zの3つである。デ
ータVはバッファ1に、データYはバッファ4に、デー
タZはバッファ5に保持されるから、常にバッファ1か
らデータの有無の確認が開始される第1実施形態のデー
タコントローラ44では、バッファ1から転送されたデ
ータVにより送信バッファ422が書き込まれると、デ
ータYは書き込むことができない(ステップS113参
照)。また、送信バッファ422にデータV,Yのいず
れかが書き込まれるとデータZは書き込むことができな
い。したがってデータYはデータVに比して、データZ
はデータV,Yに比して送信バッファ422への転送が
しにくくデータがデータ中継装置4にて延滞する場合が
ある。これに対して本実施形態のデータコントローラ4
4Aでは、検索が1巡するごとにデータの有無の確認順
序を順繰りにずらしていくので、バッファ1〜バッファ
N間で、公平にデータを、対応する送信バッファ421
〜423に転送することができる。また、確認順序が固
定しないので、データの中継に要する時間をバッファ4
31間で平均化することができる。
In this data transfer processing, the start buffer #
The end buffer # and the end buffer # are sequentially shifted each time one search is performed, so that the degree of delay in transferring data between MIDs can be prevented from being biased. For example, in the example of FIGS. 4 and 5, the second multiplex communication line 22
Are three data V, Y and Z. Since the data V is stored in the buffer 1, the data Y is stored in the buffer 4, and the data Z is stored in the buffer 5, the data controller 44 of the first embodiment always starts checking the presence or absence of data from the buffer 1. When the transmission buffer 422 is written by the data V transferred from the device, the data Y cannot be written (see step S113). Further, when any of the data V and Y is written to the transmission buffer 422, the data Z cannot be written. Therefore, the data Y is compared with the data V by the data Z
May be difficult to transfer to the transmission buffer 422 as compared with the data V and Y, and the data may be delayed in the data relay device 4. On the other hand, the data controller 4 of the present embodiment
In 4A, the order of confirming the presence / absence of data is sequentially shifted every time one search is performed.
To 423. Also, since the confirmation order is not fixed, the time required for data
31 can be averaged.

【0062】なお、本データ転送処理では、データ中継
装置4Aの起動時における開始バッファ#の初期値は1
〜Nのうちいずれに設定してもよい。
In this data transfer process, the initial value of the start buffer # at the time of starting the data relay device 4A is 1
To N.

【0063】(第3実施形態)図15に本発明の第3実
施形態になるデータ中継装置および多重通信システムを
示す。第1実施形態との相違点を中心に説明する。
(Third Embodiment) FIG. 15 shows a data relay device and a multiplex communication system according to a third embodiment of the present invention. The following description focuses on the differences from the first embodiment.

【0064】データ中継装置4Bは、送信データリスト
46が設けてある。送信データリスト46は模式的には
図16のごとく表せる。各多重通信線21〜23に送信
するデータが格納されたバッファ431を特定する情報
として、MIDおよび段数を含み、また、多重通信線2
1〜23ごとに、当該データを送信すべきか否かを示す
転送先管理フラグを含んでいる。第1実施形態の転送先
フラグと同様に「1」が転送すべきことを、「0」が転
送不要であることを示している。なお、順位は送信デー
タリスト46に書き込まれた順番を示している。
The data relay device 4B is provided with a transmission data list 46. The transmission data list 46 can be schematically represented as shown in FIG. The information for specifying the buffer 431 storing the data to be transmitted to each of the multiplex communication lines 21 to 23 includes the MID and the number of stages.
Each of 1 to 23 includes a transfer destination management flag indicating whether or not the data should be transmitted. Like the transfer destination flag of the first embodiment, “1” indicates that the transfer is to be performed, and “0” indicates that transfer is unnecessary. The order indicates the order in which the data is written in the transmission data list 46.

【0065】送信データリスト46からは、ひとつの多
重通信線21〜23に注目して、転送先管理フラグが
「1」のところがあれば、転送すべきデータが受信バッ
ファ411〜413からバッファ431に転送されてき
ているということが知られ、また、かかる、転送先管理
フラグが「1」のところが複数あれば、転送する順番が
知られることになる。すなわち、順位の高いものから転
送するものとする。図例では第1多重通信線21の送信
順番が、1位はMID=C8h、段数2のバッファ43
1であり、第2位はMID=92h、段数1のバッファ
431であることを示している。また、第3多重通信線
23の送信順番が、1位はMID=5Fh、段数2のバ
ッファ431であることを示している。送信データリス
ト46の記憶領域はデータ中継装置4Bを構成するRA
M上に設定される。
From the transmission data list 46, paying attention to one of the multiplex communication lines 21 to 23, if the transfer destination management flag is “1”, the data to be transferred is transferred from the reception buffers 411 to 413 to the buffer 431. It is known that the data has been transferred, and if there are a plurality of such transfer destination management flags of "1", the transfer order is known. That is, the transfer is performed from the one with the highest rank. In the example shown in the figure, the transmission order of the first multiplex communication line 21 is MID = C8h for the first place, and the buffer 43 of two stages
The second rank indicates that the buffer 431 has MID = 92h and one stage. The first order of the transmission order of the third multiplex communication line 23 indicates that the buffer 431 has MID = 5Fh and two stages. The storage area of the transmission data list 46 is the RA that constitutes the data relay device 4B.
M.

【0066】データコントローラ44Bには、受信バッ
ファ411〜413からバッファ群43へのデータ転送
処理時およびバッファ群43から送信バッファ421〜
423へのデータ転送処理時に起動されるデータ転送管
理手段442Bが設けてあり、受信したデータを格納す
るバッファ431のバッファ情報(MIDおよび段数)
および転送先管理フラグを送信データリスト46に追記
する等、送信データリスト46を更新するようになって
いる。
The data controller 44B transmits data from the reception buffers 411 to 413 to the buffer group 43 at the time of data transfer processing and transmits data from the buffer group 43 to the transmission buffers 421 to 413.
There is provided data transfer management means 442B activated at the time of data transfer processing to 423, and buffer information (MID and stage number) of buffer 431 for storing received data.
The transmission data list 46 is updated by, for example, adding a transfer destination management flag to the transmission data list 46.

【0067】データコントローラ44Bで実行されるデ
ータ転送処理を図17、図18、図19、図20、図2
1、図22により説明する。図17〜図19は受信バッ
ファ411〜413からバッファ群43へのデータ転送
処理であり、図20〜図22はバッファ群43から送信
バッファ421〜423へのデータ転送処理である。
The data transfer process executed by the data controller 44B is shown in FIGS. 17, 18, 19, 20, and 2.
This will be described with reference to FIG. 17 to 19 show data transfer processing from the reception buffers 411 to 413 to the buffer group 43, and FIGS. 20 to 22 show data transfer processing from the buffer group 43 to the transmission buffers 421 to 423.

【0068】バッファ群43へのデータ転送処理は、ス
テップS300〜S305(図17)が第1多重通信線
21から受信したデータの転送処理であり、ステップS
306〜S311(図18)が第2多重通信線22から
受信したデータの転送処理であり、ステップS312〜
S317(図19)が第3多重通信線23から受信した
データの転送処理である。なお、ステップS300〜S
302,S306〜S308,S312〜S314はバ
ッファ指定手段441としての手順であり、ステップS
301〜S304、ステップS307〜S310、ステ
ップS313〜S316はデータ転送管理手段442B
としての手順である。
The process of transferring data to the buffer group 43 is a process of transferring data received from the first multiplex communication line 21 in steps S300 to S305 (FIG. 17).
Steps 306 to S311 (FIG. 18) are processing for transferring the data received from the second multiplex communication line 22.
S317 (FIG. 19) is the transfer processing of the data received from the third multiplex communication line 23. Steps S300 to S300
Steps 302, S 306 to S 308, and S 312 to S 314 are procedures as the buffer specifying means 441,
301 to S304, steps S307 to S310, and steps S313 to S316 are data transfer management means 442B.
The procedure is as follows.

【0069】ステップS300では第1多重通信線用の
受信バッファ411が空か否かを確認し、空でなけれ
ば、ステップS301で受信バッファ411に入ってい
る受信データのMIDを確認し、ステップS302で受
信データを格納するバッファ431の段数を確認する。
この場合、当該MIDが複数のバッファを割り当てたも
のであれば、格納先はデータが格納されていないものを
選択する。データが格納されていない空きバッファ43
1が複数ある場合の選択方法は任意である。また、当該
MIDに割り当てられたすべてのバッファ431にデー
タが格納されてしまっている場合は、同じMIDで送信
データリスト46の最も末尾側のバッファ431を受信
データの格納先として選択する。次いで、ステップS3
03で上記データ転送先テーブル45に基づいて受信デ
ータの転送先を取得する。
In step S300, it is checked whether or not the reception buffer 411 for the first multiplex communication line is empty. If not, in step S301, the MID of the reception data stored in the reception buffer 411 is checked. Confirms the number of stages of the buffer 431 for storing the received data.
In this case, if the MID is one in which a plurality of buffers are allocated, a storage destination that does not store data is selected. Free buffer 43 in which no data is stored
The selection method when there are a plurality of 1s is arbitrary. If the data has been stored in all the buffers 431 assigned to the MID, the buffer 431 at the end of the transmission data list 46 with the same MID is selected as the storage destination of the received data. Next, step S3
At 03, the transfer destination of the received data is acquired based on the data transfer destination table 45.

【0070】そして、ステップS304では送信データ
リスト46の末尾に、ステップS301〜S303にて
取得したバッファ情報および転送先管理フラグの初期値
を追記する。ここで、転送先管理フラグは、転送すべき
多重通信線21〜23について「1」とする。なお、ス
テップS302において送信データリスト46の最も末
尾側のバッファ431を受信データの格納先として選択
した場合等、上書きとなる場合には、送信データリスト
46の転送先管理フラグのみを、ステップS303で取
得した転送先に基づいて再設定する。
In step S304, the buffer information and the initial value of the transfer destination management flag acquired in steps S301 to S303 are added to the end of the transmission data list 46. Here, the transfer destination management flag is set to “1” for the multiplex communication lines 21 to 23 to be transferred. In the case of overwriting, for example, when the buffer 431 at the end of the transmission data list 46 is selected as the storage destination of the reception data in step S302, only the transfer destination management flag of the transmission data list 46 is set in step S303. Reset based on the obtained transfer destination.

【0071】続くステップS305では、第1多重通信
線用の受信バッファ411のデータをバッファ群43の
うち、ステップS301,302で確認した所定のバッ
ファ431に転送する。そして第2多重通信線22から
受信したデータの転送処理(ステップS306〜S31
1)に移行する。なお、ステップS300において第1
多重通信線用の受信バッファ411が空のときは、ステ
ップS301〜S305をスキップし、上記第2多重通
信線22から受信したデータの転送処理(ステップS3
06〜S311)に移行する。
In the following step S305, the data in the reception buffer 411 for the first multiplex communication line is transferred to the predetermined buffer 431 of the buffer group 43 confirmed in steps S301 and S302. Then, the transfer processing of the data received from the second multiplex communication line 22 (steps S306 to S31)
Go to 1). In step S300, the first
If the reception buffer 411 for the multiplex communication line is empty, steps S301 to S305 are skipped, and the data received from the second multiplex communication line 22 is transferred (step S3).
06 to S311).

【0072】ステップS306では第2多重通信線用の
受信バッファ412が空か否かを確認し、空でなけれ
ば、上記ステップ301〜305と同様に、ステップS
307で受信バッファ412に入っている受信データの
MIDを確認し、ステップS308で受信データを格納
するバッファ431の段数を確認する。次いで、ステッ
プS309で上記データ転送先テーブル45に基づいて
受信データの転送先を取得する。
In step S306, it is checked whether or not the reception buffer 412 for the second multiplex communication line is empty. If it is not empty, step S306 is executed in the same manner as in steps 301 to 305.
In step 307, the MID of the reception data stored in the reception buffer 412 is checked, and in step S308, the number of stages of the buffer 431 for storing the reception data is checked. Next, in step S309, the transfer destination of the received data is acquired based on the data transfer destination table 45.

【0073】次いでステップS310では、ステップS
307〜S309にて取得したバッファ情報および転送
先管理フラグにより送信データリスト46を更新し、ス
テップS311で、第2多重通信線用の受信バッファ4
12のデータをバッファ群43のうち、ステップS30
7,S308で確認した所定のバッファ431に転送す
る。そして第3多重通信線23から受信したデータの転
送処理(ステップS312〜S318)に移行する。な
お、ステップS306において第2多重通信線用の受信
バッファ412が空のときは、ステップS307〜S3
11をスキップし、上記第3多重通信線23から受信し
たデータの転送処理に移行する(ステップS312〜S
317)。
Next, at step S310, step S310
The transmission data list 46 is updated with the buffer information and the transfer destination management flag acquired in 307 to S309, and in step S311, the reception buffer 4 for the second multiplex communication line is updated.
12 data in the buffer group 43 in step S30.
7. Transfer to the predetermined buffer 431 confirmed in S308. Then, the processing shifts to the transfer processing of the data received from the third multiplex communication line 23 (steps S312 to S318). If the reception buffer 412 for the second multiplex communication line is empty in step S306, steps S307 to S3
11 is skipped, and the process proceeds to a process of transferring data received from the third multiplex communication line 23 (steps S312 to S3).
317).

【0074】ステップS312では第3多重通信線用の
受信バッファ413が空か否かを確認し、空でなけれ
ば、上記ステップ301〜305と同様に、ステップS
313で受信バッファ413に入っている受信データの
MIDを確認し、ステップS314で受信データを格納
するバッファ431の段数を確認する。次いで、ステッ
プS315で上記データ転送先テーブル45に基づいて
受信データの転送先を取得する。
In step S312, it is checked whether or not the reception buffer 413 for the third multiplex communication line is empty.
In step 313, the MID of the reception data stored in the reception buffer 413 is checked, and in step S314, the number of stages of the buffer 431 for storing the reception data is checked. Next, in step S315, the transfer destination of the received data is acquired based on the data transfer destination table 45.

【0075】次いでステップS316では、ステップS
313〜S315にて取得したバッファ情報および転送
先管理フラグにより送信データリスト46を更新し、ス
テップS317で、第3多重通信線用の受信バッファ4
13のデータをバッファ群43のうち、ステップS31
4,S315で確認した所定のバッファ431に転送
し、データの転送処理を終了する。なお、ステップS3
12において第3多重通信線用の受信バッファ413が
空のときは、ステップS313〜S317をスキップ
し、データの転送処理を終了する。
Next, at step S316, at step S316
The transmission data list 46 is updated with the buffer information and the transfer destination management flag acquired in 313 to S315, and in step S317, the reception buffer 4 for the third multiplex communication line is updated.
13 in the buffer group 43 in step S31.
4. The data is transferred to the predetermined buffer 431 confirmed in S315, and the data transfer process is completed. Step S3
If the reception buffer 413 for the third multiplex communication line is empty in step 12, steps S313 to S317 are skipped, and the data transfer process ends.

【0076】次にバッファ431から各送信バッファ4
21〜423へのデータ転送処理について説明する。ス
テップS400〜S407(図20)がバッファ431
から第1多重通信線用送信バッファ421へのデータの
転送処理であり、ステップS408〜S415(図2
1)が第2多重通信線用送信バッファ422へのデータ
の転送処理であり、ステップS416〜S423(図2
2)が第3多重通信線用送信バッファ423へのデータ
の転送処理である。ステップS400〜S406、ステ
ップS408〜S414、ステップS416〜S422
はデータ転送管理手段422Bとしての手順である。
Next, from the buffer 431 to each transmission buffer 4
The process of transferring data to 21 to 423 will be described. Steps S400 to S407 (FIG. 20) are performed by the buffer 431.
This is a process of transferring data from the transmission buffer 421 to the first multiplex communication line transmission buffer 421, and includes steps S408 to S415 (FIG. 2).
1) is a process of transferring data to the second multiplex communication line transmission buffer 422, and is performed in steps S416 to S423 (FIG. 2).
2) is a process for transferring data to the third multiplex communication line transmission buffer 423. Steps S400 to S406, steps S408 to S414, steps S416 to S422
Is a procedure as the data transfer management means 422B.

【0077】ステップS400では、第1多重通信線用
の送信バッファ421が空か否かを確認し、空であれば
ステップS401に進み送信データリスト46の第1多
重通信線用の転送先管理フラグがすべて「0」か否かを
確認する。否定判断されると、すなわちバッファ431
から第1多重通信線用の送信バッファ421に転送すべ
きデータがあれば、ステップS402に進んで、第1多
重通信線用転送管理フラグが「1」のもののうちで最上
位のバッファ情報(MIDおよび段数)を取得する。続
くステップS403ではバッファ群43のうち取得した
バッファ情報に対応したバッファ431のデータを第1
多重通信線用の送信バッファ421に転送する。そし
て、送信データリスト46の、「1」をとる第1多重通
信線用転送先管理フラグの最上位のものをクリア
(「0」)する。
In step S400, it is checked whether the transmission buffer 421 for the first multiplex communication line is empty. If the transmission buffer 421 is empty, the flow advances to step S401 to set the transfer destination management flag for the first multiplex communication line in the transmission data list 46. Check whether all are “0”. If a negative determination is made, that is, the buffer 431
If there is data to be transferred from the first multiplex communication line to the transmission buffer 421 for the first multiplex communication line, the process proceeds to step S402, and the buffer information (MID) of the highest order among those whose first multiplex communication line transfer management flag is "1" And the number of steps). In a succeeding step S403, the data of the buffer 431 corresponding to the acquired buffer information in the buffer group 43 is stored in the first buffer.
The data is transferred to the transmission buffer 421 for the multiplex communication line. Then, in the transmission data list 46, the highest one of the transfer destination management flags for the first multiplex communication line that takes "1" is cleared ("0").

【0078】続くステップS405では、転送先管理フ
ラグをクリアしたデータの他の転送先管理フラグ、すな
わち、第2、第3の多重通信線用の転送先管理フラグを
確認し、すべての転送先管理フラグが「0」であれば、
ステップS406で送信バッファ421への送信を完了
したデータの情報(バッファ情報および転送先管理フラ
グ)を送信データリスト46から削除し、以下の低順位
の情報を繰り上げる。そして、ステップS407で、送
信バッファ421への送信を完了したデータをそのバッ
ファ431から削除する。そして、ステップS408に
進む。なお、ステップS405が肯定判断されると、ス
テップS406,S407をスキップしてステップS4
08に進む。
In the subsequent step S405, the other transfer destination management flags of the data for which the transfer destination management flag has been cleared, that is, the transfer destination management flags for the second and third multiplex communication lines are checked, and all the transfer destination management flags are checked. If the flag is "0",
In step S406, information on the data that has been transmitted to the transmission buffer 421 (buffer information and transfer destination management flag) is deleted from the transmission data list 46, and the following low-order information is moved up. Then, in step S407, the data that has been transmitted to the transmission buffer 421 is deleted from the buffer 431. Then, the process proceeds to step S408. If step S405 is affirmatively determined, steps S406 and S407 are skipped and step S4 is performed.
Proceed to 08.

【0079】このように送信データリスト46に書き込
まれた順に、送信バッファ421が空き次第、バッファ
431からデータが送信バッファ421に転送され、そ
こで第1多重通信線21への送信待ちの状態となる。な
お、ステップS400において送信バッファ421にデ
ータが既に書き込まれている場合、ステップS401が
肯定判断された場合、すなわち第1多重通信線21に転
送すべきデータがない場合には、ステップS408(図
21)に進む。
As soon as the transmission buffer 421 becomes empty, data is transferred from the buffer 431 to the transmission buffer 421 in the order written in the transmission data list 46 in this manner, and the transmission buffer 421 waits for transmission to the first multiplex communication line 21. . If data has already been written to the transmission buffer 421 in step S400, or if a positive determination is made in step S401, that is, if there is no data to be transferred to the first multiplex communication line 21, step S408 (FIG. 21) Proceed to).

【0080】ステップS408〜S415では、第2多
重通信線用の送信バッファ422、これに転送するデー
タを保持しているバッファ431、送信データリスト4
6についてステップS400〜S407と同様の手順が
行われる。すなわち、第2多重通信線用の送信バッファ
422が空で(ステップS408)、送信データリスト
46の第2多重通信線用転送先管理フラグに「1」のも
のがあれば(ステップS409)、第2多重通信線用転
送先管理フラグが「1」のもののうちで最上位のバッフ
ァ情報を取得し(ステップS410)、取得したバッフ
ァ情報に対応したバッファ431のデータを送信バッフ
ァ422に転送する(ステップS411)。そして、送
信データリスト46の第2多重通信線用転送先管理フラ
グの最上位のものをクリアする(ステップS412)。
In steps S408 to S415, the transmission buffer 422 for the second multiplex communication line, the buffer 431 holding the data to be transferred thereto, the transmission data list 4
6, the same procedure as in steps S400 to S407 is performed. That is, if the transmission buffer 422 for the second multiplex communication line is empty (step S408) and the transfer destination management flag for the second multiplex communication line in the transmission data list 46 is "1" (step S409), the second The buffer information of the highest order among the ones for which the transfer destination management flag for two multiplex communication lines is “1” is obtained (step S410), and the data of the buffer 431 corresponding to the obtained buffer information is transferred to the transmission buffer 422 (step S410). S411). Then, the uppermost one of the transfer destination management flags for the second multiplex communication line in the transmission data list 46 is cleared (step S412).

【0081】次いで、ステップS413で、転送したデ
ータについての、他の転送先管理フラグ、すなわち、第
1、第3の多重通信線用の転送先管理フラグを確認し、
すべての転送先管理フラグが「0」であれば、ステップ
S414で、送信バッファ422への送信を完了したデ
ータの情報を送信データリスト46から削除し、低順位
の情報を繰り上げ、ステップS415で、送信バッファ
422への送信を完了したデータをそのバッファ431
から削除する。そして、ステップS416(図22)に
進む。
Next, in step S413, another transfer destination management flag for the transferred data, that is, a transfer destination management flag for the first and third multiplex communication lines is confirmed.
If all the transfer destination management flags are "0", in step S414, the information of the data that has been transmitted to the transmission buffer 422 is deleted from the transmission data list 46, and the information of the lower rank is moved up. In step S415, The data that has been transmitted to the transmission buffer 422 is stored in the buffer 431.
Remove from. Then, the process proceeds to step S416 (FIG. 22).

【0082】ステップS416〜S423では、第3多
重通信線用の送信バッファ423、これに転送するデー
タを保持しているバッファ431、送信データリスト4
6についてステップS400〜S407と同様の手順が
行われる。すなわち、第3多重通信線用の送信バッファ
423が空で(ステップS416)、送信データリスト
46の第3多重通信線用転送先管理フラグに「1」のも
のがあれば(ステップS417)、第3多重通信線用転
送先管理フラグが「1」のもののうちで最上位のバッフ
ァ情報を取得し(ステップS418)、取得したバッフ
ァ情報に対応したバッファ431のデータを送信バッフ
ァ423に転送する(ステップS419)。そして、送
信データリスト46の第3多重通信線用転送先管理フラ
グの最上位のものをクリアする(ステップS420)。
In steps S416 to S423, the transmission buffer 423 for the third multiplex communication line, the buffer 431 holding the data to be transferred thereto, and the transmission data list 4
6, the same procedure as in steps S400 to S407 is performed. That is, if the transmission buffer 423 for the third multiplex communication line is empty (step S416) and the transfer destination management flag for the third multiplex communication line in the transmission data list 46 is “1” (step S417), The buffer information of the highest order among the ones for which the transfer destination management flag for three multiplex communication lines is "1" is obtained (step S418), and the data of the buffer 431 corresponding to the obtained buffer information is transferred to the transmission buffer 423 (step S418). S419). Then, the uppermost one of the third multiplex communication line transfer destination management flags in the transmission data list 46 is cleared (step S420).

【0083】次いで、ステップS421で、転送したデ
ータについての、他の転送先管理フラグ、すなわち、第
1、第2の多重通信線用の転送先管理フラグを確認し、
すべての転送先管理フラグが「0」であれば、ステップ
S422で、送信バッファ423への送信を完了したデ
ータの情報を送信データリスト46から削除し、低順位
の情報を繰り上げ、ステップS423で、送信バッファ
423への送信を完了したデータをそのバッファ431
から削除する。これにより、バッファ431から送信バ
ッファ421〜423へのデータ転送が完了する。
Next, in step S421, another transfer destination management flag for the transferred data, that is, a transfer destination management flag for the first and second multiplex communication lines is confirmed.
If all the transfer destination management flags are “0”, in step S422, the information of the data that has been transmitted to the transmission buffer 423 is deleted from the transmission data list 46, and the information of the lower rank is moved up, and in step S423, The data that has been transmitted to the transmission buffer 423 is stored in the buffer 431.
Remove from. Thus, data transfer from the buffer 431 to the transmission buffers 421 to 423 is completed.

【0084】データコントローラ44Bのデータ転送処
理は上記のごとく設定されており、送信データリスト4
6は、多重通信線21〜23へ送信すべきデータの情報
が更新されていく。送信データリスト46の上位のもの
は早く受信されたデータのものである。したがって、各
多重通信線21〜23のそれぞれにおいて、中継すべき
データが受信された順に送信バッファ421〜423に
おいて送信待ちの状態になる。すべてのバッファ431
についてデータの有無を確認しなくとも、バッファ43
1に書き込まれた送信すべきデータが格納されたバッフ
ァが送信データリスト46から知られるので、データの
中継を速やかに行うことができる。
The data transfer process of the data controller 44B is set as described above.
In No. 6, information on data to be transmitted to the multiplex communication lines 21 to 23 is updated. The upper data in the transmission data list 46 is the data received earlier. Therefore, in each of the multiplex communication lines 21 to 23, the transmission buffers 421 to 423 wait for transmission in the order in which the data to be relayed is received. All buffers 431
Without checking the presence or absence of data for
Since the buffer in which the data to be transmitted written in 1 is stored is known from the transmission data list 46, the data can be relayed quickly.

【0085】(第4実施形態)図23に本発明の第4実
施形態になるデータ中継装置および多重通信システムを
示す。第3実施形態との相違点を中心に説明する。
(Fourth Embodiment) FIG. 23 shows a data relay device and a multiplex communication system according to a fourth embodiment of the present invention. The description will focus on the differences from the third embodiment.

【0086】データ中継装置4Cは、各多重通信線21
〜23ごとに送信データリスト461,462,463
が設けてある。送信データリスト461〜463は各多
重通信線21〜23に送信するデータを格納したバッフ
ァの情報(MIDおよび段数)が送信順に書き込まれた
もので、模式的には図24(A)、図24(B)、図2
4(C)のごとく表せる。転送先管理フラグを含まない
点で第3実施形態の送信データリストと相違している。
図の例では、第1多重通信線21への送信順番が1位は
MID=C8h、段数2のバッファ431に格納された
データであり、第2位はMID=92h、段数1のバッ
ファ431のデータであることを示している。送信デー
タリスト461〜463の記憶領域はデータ中継装置4
Cを構成するRAM上に設定される。
The data relay device 4C is connected to each multiplex communication line 21
Transmission data lists 461, 462, 463 for each of ~ 23
Is provided. In the transmission data lists 461 to 463, information (MID and the number of stages) of a buffer storing data to be transmitted to each of the multiplex communication lines 21 to 23 is written in the transmission order, and is schematically illustrated in FIGS. (B), FIG.
4 (C). This is different from the transmission data list of the third embodiment in that a transfer destination management flag is not included.
In the example of the figure, the first order of transmission to the first multiplex communication line 21 is the data stored in the buffer 431 having MID = C8h and two stages, and the second order is the buffer 431 having MID = 92h and one stage. Indicates data. The storage area of the transmission data lists 461 to 463 is the data relay device 4
It is set on the RAM constituting C.

【0087】データコントローラ44Cには、受信バッ
ファ411〜413からバッファ群43へのデータ転送
処理時に起動されるデータ転送管理手段442Cが設け
てある。
The data controller 44C is provided with a data transfer management means 442C which is activated when data is transferred from the reception buffers 411 to 413 to the buffer group 43.

【0088】データコントローラ4Cで実行されるデー
タ転送処理を図25、図26、図27、図28、図2
9、図30により説明する。図25〜図27は受信バッ
ファ411〜413からバッファ群43へのデータ転送
処理であり、図28〜図30はバッファ群43から送信
バッファ421〜423へのデータ転送処理である。
The data transfer process executed by the data controller 4C is shown in FIGS. 25, 26, 27, 28, and 2.
This will be described with reference to FIG. FIGS. 25 to 27 show data transfer processing from the reception buffers 411 to 413 to the buffer group 43, and FIGS. 28 to 30 show data transfer processing from the buffer group 43 to the transmission buffers 421 to 423.

【0089】バッファ群43へのデータ転送処理は、ス
テップS500〜S508(図25)が第1多重通信線
21から受信したデータの転送処理であり、ステップS
509〜S517(図26)が第2多重通信線22から
受信したデータの転送処理であり、ステップS518〜
S526(図27)が第3多重通信線23から受信した
データの転送処理である。なお、ステップS500〜S
502,S509〜S511,S518〜S520はバ
ッファ指定手段441としての手順であり、ステップS
501〜S507,ステップS510〜S516,ステ
ップS519〜S525はデータ転送管理手段442C
としての手順である。
The process of transferring data to the buffer group 43 is a process of transferring data received from the first multiplex communication line 21 in steps S500 to S508 (FIG. 25).
509 to S517 (FIG. 26) are the transfer processing of the data received from the second multiplex communication line 22, and are performed in steps S518 to S517.
S526 (FIG. 27) is the transfer processing of the data received from the third multiplex communication line 23. Steps S500 to S500
Steps 502, S509 to S511, and S518 to S520 are procedures as the buffer designating means 441.
501 to S507, steps S510 to S516, and steps S519 to S525 are data transfer management means 442C.
The procedure is as follows.

【0090】ステップS500では第1多重通信線用の
受信バッファ411が空か否かを確認し、空でなけれ
ば、ステップS501で受信バッファ411に入ってい
る受信データのMIDを確認し、ステップS502で当
該MIDのデータを格納するバッファ431の段数を確
認する。次いで、ステップS503で上記データ転送先
テーブル45に基づいて受信データの転送先を取得す
る。
In step S500, it is checked whether or not the reception buffer 411 for the first multiplex communication line is empty. If not, in step S501, the MID of the reception data in the reception buffer 411 is checked. Confirm the number of stages of the buffer 431 for storing the data of the MID. Next, in step S503, the transfer destination of the received data is obtained based on the data transfer destination table 45.

【0091】続くステップS504では取得された転送
先に第2多重通信線用の送信バッファ422があるか否
かを確認し、肯定されればステップS505に進む。ス
テップS505では、第2多重通信線22用の送信デー
タリスト462の末尾に、ステップS501,S502
にて確認されたバッファ情報(MIDおよび段数)を追
記し、ステップS506に進む。ステップS506で
は、取得された転送先に第3多重通信線用の送信バッフ
ァ423があるか否かを確認し、肯定されればステップ
S507に進む。ステップS507では、第3多重通信
線23用の送信データリスト463の末尾に、ステップ
S501,S502にて確認されたバッファ情報(MI
Dおよび段数)を追記しステップS508に進む。な
お、ステップS505,S507において送信データリ
スト462,463に既に同じバッファ情報がある場合
には、バッファ情報を追記するともに送信データリスト
462,463に既に書かれたバッファ情報を削除す
る。
In the following step S504, it is confirmed whether or not the acquired transfer destination has a transmission buffer 422 for the second multiplex communication line. If the result is affirmative, the flow advances to step S505. In step S505, at the end of the transmission data list 462 for the second multiplex communication line 22, steps S501 and S502 are added.
The buffer information (MID and the number of stages) confirmed in is added, and the process proceeds to step S506. In step S506, it is confirmed whether or not the acquired transfer destination has a transmission buffer 423 for the third multiplex communication line. If the result is affirmative, the process proceeds to step S507. In step S507, the buffer information (MI) confirmed in steps S501 and S502 is added to the end of the transmission data list 463 for the third multiplex communication line 23.
D and the number of stages) are added, and the process proceeds to step S508. If the same buffer information already exists in the transmission data lists 462 and 463 in steps S505 and S507, the buffer information is added and the buffer information already written in the transmission data lists 462 and 463 is deleted.

【0092】ステップS508では、第1多重通信線用
の受信バッファ411のデータをバッファ群43のう
ち、バッファ情報で特定される所定のバッファ431に
転送する。そして第2多重通信線22から受信したデー
タの転送処理(ステップS509〜S517)に移行す
る。なお、ステップS500において第1多重通信線用
の受信バッファ411が空のときは、第2、第3多重通
信線用の送信データリスト462,463への追記処理
(ステップS501〜S507)およびデータ転送処理
(ステップS508)をスキップし、上記第2多重通信
線22から受信したデータの転送処理(ステップS50
9〜S517)に移行する。
In step S508, the data in the reception buffer 411 for the first multiplex communication line is transferred to a predetermined buffer 431 of the buffer group 43 specified by the buffer information. Then, the process shifts to a transfer process of data received from the second multiplex communication line 22 (steps S509 to S517). When the reception buffer 411 for the first multiplex communication line is empty in step S500, the process of adding to the transmission data lists 462 and 463 for the second and third multiplex communication lines (steps S501 to S507) and the data transfer The process (step S508) is skipped, and the data received from the second multiplex communication line 22 is transferred (step S50).
9 to S517).

【0093】ステップS509では第2多重通信線用の
受信バッファ412が空か否かを確認し、空でなけれ
ば、ステップS510で受信バッファ412に入ってい
る受信データのMIDを確認し、ステップS511で当
該MIDのデータを格納するバッファ431の段数を確
認する。次いで、ステップS512で上記データ転送先
テーブル45に基づいて受信データの転送先を取得す
る。
In step S509, it is checked whether the reception buffer 412 for the second multiplex communication line is empty. If not, the MID of the reception data in the reception buffer 412 is checked in step S510. Confirm the number of stages of the buffer 431 for storing the data of the MID. Next, in step S512, the transfer destination of the received data is acquired based on the data transfer destination table 45.

【0094】続くステップS513では取得された転送
先に第1多重通信線用の送信バッファ421があるか否
かを確認し、肯定されればステップS514に進む。ス
テップS514では、第1多重通信線21用の送信デー
タリスト461の末尾に、ステップS510,S511
にて確認されたバッファ情報(MIDおよび段数)を追
記し、ステップS515に進む。ステップS515で
は、取得された転送先に第3多重通信線用の送信バッフ
ァ423があるか否かを確認し、肯定されればステップ
S516に進む。ステップS516では、第3多重通信
線23用の送信データリスト463の末尾に、ステップ
S510,S511にて確認されたバッファ情報(MI
Dおよび段数)を追記しステップS517に進む。な
お、ステップS514,S516において送信データリ
スト461,463に既に同じバッファ情報がある場合
には、バッファ情報を追記するともに送信データリスト
461,463に既に書かれたバッファ情報を削除す
る。
In the following step S513, it is confirmed whether or not the transmission buffer 421 for the first multiplex communication line is present at the obtained transfer destination. If the result is affirmative, the flow advances to step S514. In step S514, steps S510 and S511 are added to the end of the transmission data list 461 for the first multiplex communication line 21.
The buffer information (MID and the number of stages) confirmed in the above is added, and the process proceeds to step S515. In step S515, it is confirmed whether or not the acquired transfer destination has the transmission buffer 423 for the third multiplex communication line. If the result is affirmative, the process proceeds to step S516. In step S516, the buffer information (MI) confirmed in steps S510 and S511 is added to the end of the transmission data list 463 for the third multiplex communication line 23.
D and the number of stages) are added, and the flow advances to step S517. If the same buffer information already exists in the transmission data lists 461 and 463 in steps S514 and S516, the buffer information is added and the buffer information already written in the transmission data lists 461 and 463 is deleted.

【0095】ステップS517では、第2多重通信線用
の受信バッファ412のデータを、バッファ群43のう
ちバッファ情報で特定されるバッファ431に転送す
る。そして第3多重通信線23から受信したデータの転
送処理(ステップS518〜S526)に移行する。な
お、ステップS509において第2多重通信線用の受信
バッファ412が空のときは、第1、第3多重通信線用
の送信データリスト461,463への追記処理(ステ
ップS510〜S516)およびデータ転送処理(ステ
ップS517)をスキップし、上記第3多重通信線23
から受信したデータの転送処理(ステップS518〜S
526)に移行する。
In step S517, the data in the reception buffer 412 for the second multiplex communication line is transferred to the buffer 431 specified by the buffer information in the buffer group 43. Then, the processing shifts to the transfer processing of the data received from the third multiplex communication line 23 (steps S518 to S526). If the reception buffer 412 for the second multiplex communication line is empty in step S509, the process of appending to the transmission data lists 461 and 463 for the first and third multiplex communication lines (steps S510 to S516) and the data transfer The process (step S517) is skipped and the third multiplex communication line 23 is skipped.
Of the data received from the server (steps S518 to S518)
526).

【0096】ステップS518では第3多重通信線用の
受信バッファ413が空か否かを確認し、空でなけれ
ば、ステップS519で受信バッファ413に入ってい
る受信データのMIDを確認し、ステップS520で当
該MIDのデータを格納するバッファ431の段数を確
認する。次いで、ステップS521で上記データ転送先
テーブル45に基づいて受信データの転送先を取得す
る。
In step S518, it is determined whether the reception buffer 413 for the third multiplex communication line is empty. If not, in step S519, the MID of the reception data stored in the reception buffer 413 is confirmed. Confirm the number of stages of the buffer 431 for storing the data of the MID. Next, in step S521, the transfer destination of the received data is acquired based on the data transfer destination table 45.

【0097】続くステップS522では取得された転送
先に第1多重通信線用の送信バッファ421があるか否
かを確認し、肯定されればステップS523に進む。ス
テップS523では、第1多重通信線21用の送信デー
タリスト461の末尾に、ステップS519,S520
にて確認されたバッファ情報(MIDおよび段数)を追
記し、ステップS524に進む。ステップS524で
は、取得された転送先に第2多重通信線用送信バッハ4
22があるか否かを確認し、肯定されればステップS5
25に進む。ステップS525では、第2多重通信線2
2用の送信データリスト462の末尾に、ステップS5
19,S520にて確認されたバッファ情報(MIDお
よび段数)を追記しステップS526に進む。なお、ス
テップS523,S525において送信データリスト4
61,462に既に同じバッファ情報がある場合には、
バッファ情報を追記するともに送信データリスト46
1,462に既に書かれたバッファ情報を削除する。
In the following step S522, it is checked whether or not the acquired transfer destination has a transmission buffer 421 for the first multiplex communication line. If the result is affirmative, the flow advances to step S523. In step S523, at the end of the transmission data list 461 for the first multiplex communication line 21, steps S519 and S520 are added.
The buffer information (the MID and the number of stages) confirmed in the above is added, and the process proceeds to step S524. In step S524, the transmission destination for the second multiplex communication line 4
It is confirmed whether or not there is 22. If affirmative, step S5
Go to 25. In step S525, the second multiplex communication line 2
Step S5 is added to the end of the transmission data list 462 for
19, the buffer information (MID and the number of stages) confirmed in S520 is added, and the flow advances to step S526. It should be noted that, in steps S523 and S525, the transmission data list 4
If the same buffer information already exists in 61 and 462,
The buffer information is added and the transmission data list 46 is added.
1, 462 is deleted.

【0098】ステップS526では、第3多重通信線用
の受信バッファ413のデータを、バッファ群43のう
ちバッファ情報で特定される所定のバッファ431に転
送し、受信バッファ411〜413からバッファ431
へのデータ転送処理を終了する。なお、ステップS51
8において第3多重通信線用の受信バッファ413が空
のときは、第1、第2多重通信線用の送信データリスト
461,462への追記処理(ステップS519〜S5
25)およびデータ転送処理(ステップS526)をス
キップし、データ転送処理を終了する。
In step S526, the data in the reception buffer 413 for the third multiplex communication line is transferred to a predetermined buffer 431 specified by the buffer information in the buffer group 43, and is transferred from the reception buffers 411 to 413 to the buffer 431.
The data transfer process to the server ends. Step S51
8, when the reception buffer 413 for the third multiplex communication line is empty, additional processing is performed on the transmission data lists 461 and 462 for the first and second multiplex communication lines (steps S519 to S5).
25) and the data transfer process (step S526) are skipped, and the data transfer process ends.

【0099】次にバッファ431から各送信バッファ4
21〜423へのデータ転送処理について説明する。ス
テップS600〜S606(図28)がバッファ431
から第1多重通信線用送信バッファ421へのデータの
転送処理であり、ステップS607〜S613(図2
9)が第2多重通信線用送信バッファ422へのデータ
の転送処理であり、ステップS614〜S620(図3
0)が第3多重通信線用送信バッファ423へのデータ
の転送処理である。ステップS601〜S604、ステ
ップS608〜S611、ステップS615〜S618
はデータ転送管理手段442Cとしての手順である。
Next, from the buffer 431 to each transmission buffer 4
The process of transferring data to 21 to 423 will be described. Steps S600 to S606 (FIG. 28) correspond to the buffer 431.
This is a process of transferring data from the transmission buffer 421 to the first multiplex communication line transmission buffer 421, and includes steps S607 to S613 (FIG. 2).
9) is a process of transferring data to the second multiplex communication line transmission buffer 422, which is performed in steps S614 to S620 (FIG. 3).
0) is a process of transferring data to the third multiplex communication line transmission buffer 423. Steps S601 to S604, steps S608 to S611, steps S615 to S618
Is a procedure as the data transfer management means 442C.

【0100】ステップS600では、第1多重通信線用
の送信バッファ421が空か否かを確認し、空であれば
ステップS601に進み第1多重通信線用の送信データ
リスト461が空か否かを確認する。送信データリスト
461が空でない、すなわちバッファ431から送信バ
ッファ421に転送すべきデータがあれば、ステップS
602に進んで上記送信データリスト461の先頭のバ
ッファ情報を取得する。続く、ステップS603ではバ
ッファ群43のうち取得したバッファ情報で特定される
バッファ431のデータを第1多重通信線用の送信バッ
ファ421に転送する。次いで、送信データリスト46
1の先頭のバッファ情報すなわちステップS603で転
送したデータの情報を削除し、低順位の情報を繰り上げ
る。
In step S600, it is checked whether the transmission buffer 421 for the first multiplex communication line is empty. If it is empty, the flow advances to step S601 to determine whether the transmission data list 461 for the first multiplex communication line is empty. Check. If the transmission data list 461 is not empty, that is, if there is data to be transferred from the buffer 431 to the transmission buffer 421, step S
Proceeding to 602, the buffer information at the head of the transmission data list 461 is acquired. In step S603, the data of the buffer 431 specified by the acquired buffer information in the buffer group 43 is transferred to the transmission buffer 421 for the first multiplex communication line. Next, the transmission data list 46
The first buffer information, that is, the information of the data transferred in step S603 is deleted, and the lower-order information is moved up.

【0101】続くステップS605では第2、第3多重
通信線用送信データリスト642,643に、ステップ
S604で削除したバッファ情報と同じものがあるか否
かを判定し、否定されると、ステップS606で、ステ
ップS603で転送を完了したデータが格納されたバッ
ファ431からデータを削除し、ステップS605に進
む。このように送信データリスト461に書き込まれた
順に、送信バッファ421が空き次第、バッファ431
からデータが送信バッファ421に転送され、そこで第
1多重通信線21への送信待ちの状態となる。なお、ス
テップS600において送信バッファ421にデータが
既に書き込まれている場合、ステップS601において
送信データリスト461が空で転送すべきデータがない
場合には、ステップS602〜S606をスキップして
ステップS607(図29)に進む。
In the subsequent step S605, it is determined whether or not the transmission data lists 642, 643 for the second and third multiplex communication lines have the same buffer information deleted in the step S604. Then, the data is deleted from the buffer 431 storing the data whose transfer has been completed in step S603, and the process proceeds to step S605. The buffer 431 becomes available as soon as the transmission buffer 421 becomes empty in the order written in the transmission data list 461.
Is transferred to the transmission buffer 421, where the transmission buffer 421 waits for transmission to the first multiplex communication line 21. If data has already been written to the transmission buffer 421 in step S600, or if the transmission data list 461 is empty and there is no data to be transferred in step S601, steps S602 to S606 are skipped and step S607 (FIG. Proceed to 29).

【0102】ステップS607〜S613では、第2多
重通信線用の送信バッファ422、これに転送するデー
タを保持しているバッファ431、送信データリスト4
62についてステップS600〜S606と同様の手順
が行われる。すなわち、第2多重通信線用の送信バッフ
ァ422が空で(ステップS607)、第2多重通信線
用の送信データリスト462に書き込みがあれば(ステ
ップS608)、送信データリスト462の先頭のバッ
ファ情報を読み(ステップS609)、当該バッファ情
報で特定されるバッファ431からデータを送信バッフ
ァ422に転送する(ステップS610)。そして送信
データリスト462の先頭のデータのバッファ情報、す
なわちこの転送の済んだデータのバッファを削除し以下
の低順位の情報を繰り上げる(ステップS611)。
In steps S607 to S613, the transmission buffer 422 for the second multiplex communication line, the buffer 431 holding the data to be transferred thereto, the transmission data list 4
For 62, the same procedure as in steps S600 to S606 is performed. That is, if the transmission buffer 422 for the second multiplex communication line is empty (step S607) and the transmission data list 462 for the second multiplex communication line is written (step S608), the buffer information at the head of the transmission data list 462 Is read (step S609), and data is transferred from the buffer 431 specified by the buffer information to the transmission buffer 422 (step S610). Then, the buffer information of the first data of the transmission data list 462, that is, the buffer of the transferred data is deleted, and the following low-order information is moved up (step S611).

【0103】次いで、第1、第3多重通信線用送信デー
タリスト641,643に、ステップS611で削除し
たバッファ情報と同じものがなければ(ステップS61
2)、ステップS610で転送を完了したデータが格納
されたバッファ431からデータを削除し(ステップS
613)、ステップS614(図30)に進む。
Next, if the first and third multiplex communication line transmission data lists 641 and 643 do not include the same buffer information deleted in step S611 (step S61).
2), the data is deleted from the buffer 431 in which the data that has been transferred in step S610 is stored (step S610).
613), and proceeds to step S614 (FIG. 30).

【0104】ステップS614〜S620では、第3多
重通信線用の送信バッファ423、これに転送するデー
タを保持しているバッファ431、送信データリスト4
63についてステップS600〜S606と同様の手順
が行われる。すなわち、第3多重通信線用の送信バッフ
ァ423が空で(ステップS614)、第3多重通信線
用の送信データリスト463に書き込みがあれば(ステ
ップS615)、送信データリスト463の先頭のバッ
ファ情報を読み(ステップS616)、当該バッファ情
報で特定されるバッファ431からデータを送信バッフ
ァ423に転送する(ステップS617)。そして送信
データリスト463の先頭のデータのバッファ情報、す
なわちこの転送の済んだデータのバッファ情報を削除し
以下の低順位の情報を繰り上げる(ステップS61
8)。
In steps S614 to S620, the transmission buffer 423 for the third multiplex communication line, the buffer 431 holding the data to be transferred thereto, the transmission data list 4
For 63, the same procedure as in steps S600 to S606 is performed. That is, if the transmission buffer 423 for the third multiplex communication line is empty (step S614) and the transmission data list 463 for the third multiplex communication line is written (step S615), the buffer information at the head of the transmission data list 463 is read. Is read (step S616), and data is transferred from the buffer 431 specified by the buffer information to the transmission buffer 423 (step S617). Then, the buffer information of the head data of the transmission data list 463, that is, the buffer information of the transferred data is deleted, and the following low-order information is moved up (step S61).
8).

【0105】次いで、第1、第2多重通信線用送信デー
タリスト641,642に、ステップS618で削除し
たバッファ情報と同じものがなければ(ステップS61
9)、ステップS617で転送を完了したデータが格納
されたバッファ431からデータを削除し(ステップS
620)、バッファ431から送信バッファ421〜4
23への転送処理を終了する。
Next, if the first and second multiplex communication line transmission data lists 641 and 642 do not contain the same buffer information deleted in step S618 (step S61).
9), the data is deleted from the buffer 431 in which the data that has been transferred in step S617 is stored (step S617).
620), from the buffer 431 to the transmission buffers 421 to 4
Then, the transfer process to the server 23 ends.

【0106】データコントローラ44Cのデータ転送処
理は上記のごとく設定されており、各送信データリスト
461〜463は、対応する多重通信線21〜23へ送
信すべきデータのバッファ情報が更新されていく。送信
データリスト461〜463内の順番は受信された順で
ある。例えば上記図24の例で、第1多重通信線用の送
信データリスト461は、バッファ群431から送信順
番第1位のC8hのデータが送信バッファ421に転送
され、送信データリスト461からバッファ情報(MI
D=C8h、段数2)が削除されたとすると、このバッ
ファ情報(MID=C8h、段数2)は第2、第3多重
通信線用の送信データリスト462,463を含めてな
くなっている。これより、バッファ情報(MID=C8
h、段数2)で特定されるバッファ431のデータはす
べての転送を完了していることが知られ、バッファ43
1から削除されることになる。
The data transfer process of the data controller 44C is set as described above, and the transmission data lists 461 to 463 are updated with buffer information of data to be transmitted to the corresponding multiplex communication lines 21 to 23. The order in the transmission data lists 461 to 463 is the order of reception. For example, in the example of FIG. 24, in the transmission data list 461 for the first multiplex communication line, the data of C8h in the first place in the transmission order from the buffer group 431 is transferred to the transmission buffer 421, and the buffer information ( MI
Assuming that D = C8h and the number of stages 2 are deleted, the buffer information (MID = C8h and the number of stages 2) does not include the transmission data lists 462 and 463 for the second and third multiplex communication lines. From this, the buffer information (MID = C8
h, the number of data in the buffer 431 specified by the number of stages 2) is known to have completed all transfer.
1 will be deleted.

【0107】なお、同じMID=C8hのデータでも、
第2多重通信線用の送信データリスト462で送信順番
第1位のバッファ情報(MID=C8h、段数1)のデ
ータが送信されても、同じバッファ情報が第1多重通信
線用の送信データリスト461にあり、第2多重通信線
用の送信データリスト462からバッファ情報(MID
=C8h、段数1)が削除されても、バッファ431に
格納されたデータは削除されず、第1多重通信線用の送
信バッファ421に送信されるまで基本的に保持され
る。
Incidentally, even with the same data of MID = C8h,
Even if the data of the buffer information (MID = C8h, the number of stages is 1) of the first transmission order in the transmission data list 462 for the second multiplex communication line is transmitted, the same buffer information is transmitted in the transmission data list for the first multiplex communication line. 461, buffer information (MID) from the transmission data list 462 for the second multiplex communication line.
= C8h, the number of stages 1) is deleted, the data stored in the buffer 431 is not deleted and is basically held until it is transmitted to the transmission buffer 421 for the first multiplex communication line.

【0108】これにより、第3実施形態と同様に、すべ
てのバッファ431についてデータの有無を確認しなく
とも、バッファ431に書き込まれた送信すべきデータ
が格納されたバッファ431が送信データリスト461
〜463から知られるので、データの中継を速やかに行
うことができる。また、各多重通信線21〜23への送
信順番が受信した順番となるので、すべての受信データ
を延滞することなく確実に送信することができる。
Thus, as in the third embodiment, the buffer 431 storing the data to be transmitted written in the buffer 431 is stored in the transmission data list 461 without checking the presence / absence of data in all the buffers 431.
463, data can be relayed quickly. In addition, since the transmission order to each of the multiplex communication lines 21 to 23 is the order of reception, all the received data can be transmitted without delay.

【0109】また、各送信データリスト461〜463
には多重通信線21〜23ごとにバッファ情報が転送す
る順番に並んでいるから、複数の多重通信線21〜23
のそれぞれに対応して同じMIDのバッファ情報が複数
並んだ場合、ある送信バッファ421〜423への転送
が済んでも当該データは削除されないが、同じ送信バッ
ファ421〜423に次に転送すべきデータを間違える
ことがない。
Further, each transmission data list 461 to 463
Are arranged in the order in which the buffer information is transferred for each of the multiplex communication lines 21 to 23.
When a plurality of pieces of buffer information of the same MID are arranged corresponding to each of the above, the data is not deleted even after the transfer to a certain transmission buffer 421 to 423, but the data to be transferred next to the same transmission buffer 421 to 423 There is no mistake.

【0110】また、一部のMID、図例ではC8h等に
ついては、複数のバッファ431を割り当てることで、
データ中継装置4Cが相前後して受信した同一MIDの
複数のデータを、いずれも送信すべきデータとして送信
データリスト461〜463にエントリすることができ
るので、データ消失に対する耐性を高めることができ
る。
Further, for some MIDs, such as C8h in the example shown in FIG.
Since a plurality of data of the same MID received successively by the data relay device 4C can be entered in the transmission data lists 461 to 463 as data to be transmitted, resistance to data loss can be increased.

【0111】なお、上記各実施形態では、データを受信
してバッファの空きがない場合には上書きするとしてい
るが、データコンローラを、受信バッファにデータを保
持したまま、バッファへの転送を一時、保留するように
設定してもよい。その間にバッファが空けば、上書きを
回避することができる。この場合、図31に示すよう
に、多重通信線21ごとに受信バッファ411を複数設
けてFIFO型でデータ処理し、バッファ431での上
書きの回避と、多重通信線21からのデータ受信作動の
確保との両立を図ることができる。
In each of the above embodiments, when data is received and the buffer is full, the data is overwritten. However, the data controller temporarily transfers the data to the buffer while holding the data in the reception buffer. May be set to be suspended. If the buffer becomes empty during that time, overwriting can be avoided. In this case, as shown in FIG. 31, a plurality of reception buffers 411 are provided for each multiplex communication line 21 to perform data processing in a FIFO type, avoiding overwriting in the buffer 431, and ensuring operation of receiving data from the multiplex communication line 21. Can be achieved.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1のデータ中継装置および多重通信
システムの構成図である。
FIG. 1 is a configuration diagram of a first data relay device and a multiplex communication system of the present invention.

【図2】本発明の第1のデータ中継装置および多重通信
システムの通信データのフレーム構造を示す図である。
FIG. 2 is a diagram showing a frame structure of communication data of a first data relay device and a multiplex communication system of the present invention.

【図3】本発明の第1のデータ中継装置および多重通信
システムの通信データの種類とそのMIDの対応関係を
示す図である。
FIG. 3 is a diagram showing the correspondence between the types of communication data and their MIDs in the first data relay device and the multiplex communication system of the present invention.

【図4】本発明の第1のデータ中継装置のバッファの模
式図である。
FIG. 4 is a schematic diagram of a buffer of the first data relay device of the present invention.

【図5】本発明の第1のデータ中継装置の転送先テーブ
ルにおけるデータとその転送先の対応関係を示す図であ
る。
FIG. 5 is a diagram showing a correspondence relationship between data and its transfer destination in a transfer destination table of the first data relay device of the present invention.

【図6】本発明の第1のデータ中継装置のデータコント
ローラにおいて実行される制御を示す第1のフローチャ
ートである。
FIG. 6 is a first flowchart showing control executed in a data controller of the first data relay device of the present invention.

【図7】本発明の第1のデータ中継装置のデータコント
ローラにおいて実行される制御を示す第2のフローチャ
ートである。
FIG. 7 is a second flowchart showing control executed in the data controller of the first data relay device of the present invention.

【図8】本発明の第1のデータ中継装置のデータコント
ローラにおいて実行される制御を示す第3のフローチャ
ートである。
FIG. 8 is a third flowchart showing control executed in the data controller of the first data relay device of the present invention.

【図9】本発明の第1のデータ中継装置のデータコント
ローラにおいて実行される制御を示す第4のフローチャ
ートである。
FIG. 9 is a fourth flowchart showing the control executed in the data controller of the first data relay device of the present invention.

【図10】(A),(B)はそれぞれ本発明の第1のデ
ータ中継装置の作動を示す図である。
FIGS. 10A and 10B are diagrams showing the operation of the first data relay device of the present invention.

【図11】(A)は上記データコントローラの設定を示
す図であり、(B),(C)はそれぞれ変形例の設定を
示す図である。
11A is a diagram illustrating settings of the data controller, and FIGS. 11B and 11C are diagrams illustrating settings of a modification, respectively.

【図12】本発明のデータ中継装置および多重通信シス
テムの変形例を示す構成図である。
FIG. 12 is a configuration diagram showing a modification of the data relay device and the multiplex communication system of the present invention.

【図13】本発明の第2のデータ中継装置および多重通
信システムの構成図である。
FIG. 13 is a configuration diagram of a second data relay device and a multiplex communication system of the present invention.

【図14】本発明の第2のデータ中継装置のデータコン
トローラにおいて実行される制御を示すフローチャート
である。
FIG. 14 is a flowchart showing control executed in the data controller of the second data relay device of the present invention.

【図15】本発明の第3のデータ中継装置および多重通
信システムの構成図である。
FIG. 15 is a configuration diagram of a third data relay device and a multiplex communication system of the present invention.

【図16】本発明の第3のデータ中継装置の送信データ
リストの構成を示す図である。
FIG. 16 is a diagram showing a configuration of a transmission data list of the third data relay device of the present invention.

【図17】本発明の第3のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第1のフローチ
ャートである。
FIG. 17 is a first flowchart showing the control executed in the data controller of the third data relay device of the present invention.

【図18】本発明の第3のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第2のフローチ
ャートである。
FIG. 18 is a second flowchart showing the control executed in the data controller of the third data relay device of the present invention.

【図19】本発明の第3のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第3のフローチ
ャートである。
FIG. 19 is a third flowchart showing the control executed in the data controller of the third data relay device of the present invention.

【図20】本発明の第3のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第4のフローチ
ャートである。
FIG. 20 is a fourth flowchart illustrating control executed in the data controller of the third data relay device of the present invention.

【図21】本発明の第3のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第5のフローチ
ャートである。
FIG. 21 is a fifth flowchart showing the control executed in the data controller of the third data relay device of the present invention.

【図22】本発明の第3のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第6のフローチ
ャートである。
FIG. 22 is a sixth flowchart showing control executed in the data controller of the third data relay device of the present invention.

【図23】本発明の第4のデータ中継装置および多重通
信システムの構成図である。
FIG. 23 is a configuration diagram of a fourth data relay device and a multiplex communication system of the present invention.

【図24】(A),(B),(C)はそれぞれ本発明の
第4のデータ中継装置の送信データリストの構成を示す
図である。
FIGS. 24 (A), (B) and (C) are diagrams each showing a configuration of a transmission data list of the fourth data relay device of the present invention.

【図25】本発明の第4のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第1のフローチ
ャートである。
FIG. 25 is a first flowchart showing control executed in the data controller of the fourth data relay device of the present invention.

【図26】本発明の第4のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第2のフローチ
ャートである。
FIG. 26 is a second flowchart showing the control executed in the data controller of the fourth data relay device of the present invention.

【図27】本発明の第4のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第3のフローチ
ャートである。
FIG. 27 is a third flowchart showing control executed in the data controller of the fourth data relay device of the present invention.

【図28】本発明の第4のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第4のフローチ
ャートである。
FIG. 28 is a fourth flowchart showing the control executed in the data controller of the fourth data relay device of the present invention.

【図29】本発明の第4のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第5のフローチ
ャートである。
FIG. 29 is a fifth flowchart showing the control executed in the data controller of the fourth data relay device of the present invention.

【図30】本発明の第4のデータ中継装置のデータコン
トローラにおいて実行される制御を示す第6のフローチ
ャートである。
FIG. 30 is a sixth flowchart showing the control executed in the data controller of the fourth data relay device of the present invention.

【図31】本発明のデータ中継装置および多重通信シス
テムの別の変形例を示す構成図である。
FIG. 31 is a configuration diagram showing another modified example of the data relay device and the multiplex communication system of the present invention.

【図32】従来のデータ中継装置および多重通信システ
ムの代表例の構成図である。
FIG. 32 is a configuration diagram of a typical example of a conventional data relay device and a multiplex communication system.

【図33】通信データの本体の模式図である。FIG. 33 is a schematic diagram of a main body of communication data.

【符号の説明】[Explanation of symbols]

11,12,13 通信系 21,22,23 多重通信線 31,32,33 通信ノード 4,4A,4B,4C データ中継装置 411,412,413 受信バッファ 421,422,423 送信バッファ 43 バッファ群 431 バッファ 44,44A,44B,44C データコントローラ 441 バッファ指定手段 442,442A,442B,442C データ転送管
理手段 45 転送先テーブル 46,461,462,463 送信データリスト
11, 12, 13 Communication system 21, 22, 23 Multiplexed communication line 31, 32, 33 Communication node 4, 4A, 4B, 4C Data relay device 411, 412, 413 Receive buffer 421, 422, 423 Transmission buffer 43 Buffer group 431 Buffers 44, 44A, 44B, 44C Data controller 441 Buffer designating means 442, 442A, 442B, 442C Data transfer management means 45 Transfer destination table 46, 461, 462, 463 Transmission data list

───────────────────────────────────────────────────── フロントページの続き (72)発明者 冨田 健児 愛知県西尾市下羽角町岩谷14番地 株式会 社日本自動車部品総合研究所内 (72)発明者 林 育生 愛知県西尾市下羽角町岩谷14番地 株式会 社日本自動車部品総合研究所内 (72)発明者 岸上 友久 愛知県刈谷市昭和町1丁目1番地 株式会 社デンソー内 (72)発明者 本田 洋 愛知県豊田市トヨタ町1番地 トヨタ自動 車株式会社内 Fターム(参考) 5K033 AA05 BA06 CB01 CB17 DB13 DB18 EA06 EA07 5K034 AA05 CC06 CC07 HH01 HH02 HH04 HH17 HH23 HH37 HH43 MM21 MM24  ──────────────────────────────────────────────────の Continued on the front page (72) Inventor Kenji Tomita 14th Iwatani Shimowasakucho, Nishio City, Aichi Prefecture Inside the Japan Auto Parts Research Institute (72) Inventor Ikuo Hayashi 14th Iwatani Shimowasumicho Nishio City, Aichi Prefecture Stock Company (72) Inventor Tomohisa Kishigami 1-1-1 Showa-cho, Kariya-shi, Aichi Prefecture Inside DENSO Corporation (72) Inventor Hiroshi Honda 1-Toyota-cho, Toyota-shi, Aichi Prefecture Inside Toyota Motor Corporation F term (reference) 5K033 AA05 BA06 CB01 CB17 DB13 DB18 EA06 EA07 5K034 AA05 CC06 CC07 HH01 HH02 HH04 HH17 HH23 HH37 HH43 MM21 MM24

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 データの本体とともにデータの種類の情
報を含むデータを伝送する多重通信線の間に介設されて
複数の種類のデータを中継するデータ中継装置であっ
て、受信したデータの中継先の多重通信線を選択し受信
データを転送するデータコントローラを有するデータ中
継装置において、 受信データを中継先の多重通信線に送信する前に一時保
持するバッファを、中継されるデータの種類ごとに設け
るとともに、データ種類のうち1以上のデータ種類につ
いては複数のバッファを割り当て、 上記データコントローラには、受信したデータの種類を
識別し、その種類に対応するバッファを、受信したデー
タの書き込み先として指定するバッファ指定手段と、 データが格納されたバッファからのデータの転送を管理
するデータ転送管理手段とを具備せしめ、 該データ転送管理手段を、各多重通信線において、デー
タ種類が同一のバッファからのデータを転送する順番
が、バッファにデータが書き込まれた順番となるように
設定したことを特徴とするデータ中継装置。
1. A data relay device interposed between a multiplex communication line for transmitting data including data type information together with a data main body and relaying a plurality of types of data, wherein the data relay device relays received data. In a data relay device having a data controller for selecting a previous multiplex communication line and transferring received data, a buffer for temporarily holding received data before transmitting the received data to the relay multiplex communication line is provided for each type of data to be relayed. A plurality of buffers are allocated for one or more data types among the data types. The data controller identifies the type of the received data, and sets the buffer corresponding to the type as a write destination of the received data. Buffer designating means for designating, and data transfer managing means for managing data transfer from a buffer in which data is stored Wherein the data transfer management means is set so that, in each multiplex communication line, the order of transferring data from a buffer of the same data type is the order in which data is written to the buffer. Data relay device.
【請求項2】 請求項1記載のデータ中継装置におい
て、上記データ転送管理手段を、所定の時間間隔で立ち
上がり、順次、上記バッファ内の送信するデータの有無
を確認してデータがあればバッファからデータを転送す
るように、かつ、データ種類が同一のバッファについて
のデータの有無の確認を、最先にデータが格納されたバ
ッファから行うように設定したデータ中継装置。
2. The data relay device according to claim 1, wherein said data transfer management means is activated at predetermined time intervals, and sequentially checks the presence or absence of data to be transmitted in said buffer. A data relay device which is set so as to transfer data and to check the presence / absence of data in a buffer having the same data type from a buffer in which data is stored first.
【請求項3】 請求項2記載のデータ中継装置におい
て、上記データ転送管理手段を、データ種類が同一のバ
ッファについては、予め設定した所定のバッファのみに
ついてバッファ内のデータの有無を確認するように、か
つ、上記所定バッファ内のデータの転送を、選択された
多重通信線に対応してすべて完了した後に、データの種
類が同一の他のバッファ内のデータのうちで最先に受信
されたデータを上記所定バッファに移動するように設定
したデータ中継装置。
3. The data relay device according to claim 2, wherein said data transfer management means checks whether or not there is data in the buffer only for a predetermined buffer set for a buffer of the same data type. And, after the transfer of the data in the predetermined buffer is completely completed in correspondence with the selected multiplex communication line, the data received first among the data in the other buffers having the same data type Is set to move to the predetermined buffer.
【請求項4】 請求項1記載のデータ中継装置におい
て、データが格納されたバッファを特定するバッファ情
報を含み、選択された多重通信線が同じバッファ情報の
並び順が、バッファからデータを転送する順番である送
信データリストを具備せしめ、 上記データ転送管理手段を、データのバッファへの書き
込みおよびバッファからのデータの転送に応じて上記送
信データリストを更新するように設定したデータ中継装
置。
4. The data relay device according to claim 1, further comprising buffer information for specifying a buffer in which data is stored, wherein the selected multiplex communication line has the same buffer information transfer order from the buffer. A data relay device comprising a transmission data list in an order, wherein the data transfer management means is set to update the transmission data list in accordance with writing of data to a buffer and transfer of data from the buffer.
【請求項5】 請求項4記載のデータ中継装置におい
て、上記送信データリストを、バッファを特定するバッ
ファ情報と、上記転送先テーブルに基づいて多重通信線
ごとに初期値が与えられて、上記バッファに格納された
データを転送すべきか否かの管理情報とからなる構成と
し、 上記データ転送管理手段を、バッファからのデータの転
送に応じて、管理情報をデータの送信が不要である旨の
情報に切り換えるように設定したデータ中継装置。
5. The data relay device according to claim 4, wherein the transmission data list is provided with an initial value for each multiplex communication line based on buffer information for specifying a buffer and the transfer destination table. And a management information indicating whether or not the data stored in the buffer should be transferred. The data transfer management means is configured to transmit the management information according to the transfer of the data from the buffer to the effect that the data transmission is unnecessary. Data relay device set to switch to.
【請求項6】 請求項1ないし5いずれか記載のデータ
中継装置と、データを送受信する通信ノードが上記多重
通信線に接続された複数の通信系とを具備することを特
徴とする多重通信システム。
6. 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. .
JP2001121320A 2001-04-19 2001-04-19 Data relay apparatus and multiplex communication system Expired - Lifetime JP3789769B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001121320A JP3789769B2 (en) 2001-04-19 2001-04-19 Data relay apparatus and multiplex communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001121320A JP3789769B2 (en) 2001-04-19 2001-04-19 Data relay apparatus and multiplex communication system

Publications (2)

Publication Number Publication Date
JP2002319958A true JP2002319958A (en) 2002-10-31
JP3789769B2 JP3789769B2 (en) 2006-06-28

Family

ID=18971221

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001121320A Expired - Lifetime JP3789769B2 (en) 2001-04-19 2001-04-19 Data relay apparatus and multiplex communication system

Country Status (1)

Country Link
JP (1) JP3789769B2 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006340099A (en) * 2005-06-02 2006-12-14 Denso Corp Gateway unit
JP2007336179A (en) * 2006-06-14 2007-12-27 Auto Network Gijutsu Kenkyusho:Kk In-vehicle database system
JP2008042690A (en) * 2006-08-08 2008-02-21 Auto Network Gijutsu Kenkyusho:Kk Relay connection unit
JP2008092146A (en) * 2006-09-29 2008-04-17 Auto Network Gijutsu Kenkyusho:Kk Method and system of communication in vehicle, and relay device
JP2009253557A (en) * 2008-04-03 2009-10-29 Autonetworks Technologies Ltd On-board relay connection unit
JP2009273029A (en) * 2008-05-09 2009-11-19 Denso Corp Relay apparatus, network system and program
JP2015092337A (en) * 2013-10-11 2015-05-14 ジーイー・アビエイション・システムズ・エルエルシー Data communications network for aircraft

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006340099A (en) * 2005-06-02 2006-12-14 Denso Corp Gateway unit
JP2007336179A (en) * 2006-06-14 2007-12-27 Auto Network Gijutsu Kenkyusho:Kk In-vehicle database system
JP2008042690A (en) * 2006-08-08 2008-02-21 Auto Network Gijutsu Kenkyusho:Kk Relay connection unit
JP2008092146A (en) * 2006-09-29 2008-04-17 Auto Network Gijutsu Kenkyusho:Kk Method and system of communication in vehicle, and relay device
JP2009253557A (en) * 2008-04-03 2009-10-29 Autonetworks Technologies Ltd On-board relay connection unit
JP2009273029A (en) * 2008-05-09 2009-11-19 Denso Corp Relay apparatus, network system and program
JP2015092337A (en) * 2013-10-11 2015-05-14 ジーイー・アビエイション・システムズ・エルエルシー Data communications network for aircraft
US9485113B2 (en) 2013-10-11 2016-11-01 Ge Aviation Systems Llc Data communications network for an aircraft

Also Published As

Publication number Publication date
JP3789769B2 (en) 2006-06-28

Similar Documents

Publication Publication Date Title
JP3445183B2 (en) Data relay device and multiplex communication system
US6381647B1 (en) Method and system for scheduling network communication
US8315274B2 (en) System and method for supporting synchronous system communications and operations
EP0498995B1 (en) Data transfer control system
JP2002319958A (en) Data repeater and multiplex communication system
EP1006694A2 (en) Communications method and communications system
JPH0824304B2 (en) How to drop unwanted data packets from the communication network
US9665514B2 (en) Integrated circuit having a bus network, and method for the integrated circuit
JP5537410B2 (en) Dual ring network system, dual ring network transmission order determination method and transmission station apparatus
EP1458143B1 (en) Data repeater and multiplex communication system using the same
WO2000019683A1 (en) Method and system for managing storage of data
EP0446855A2 (en) Multichannel communication processing system
EP3641230A1 (en) Control device
JP2009089286A (en) Relay connection unit
KR20090029073A (en) Air-conditioner and operating method thereof
JP2007081628A (en) Method, program, and device for designing network
JP3500565B2 (en) Message division communication method and communication system
KR100753690B1 (en) Flag-controlled arbitration of requesting agents
JP6900254B2 (en) In-vehicle network relay device and relay method
US10171157B2 (en) Repeater
US8289989B1 (en) System and method for arbitration using availability signals
JP2002236659A (en) Electronic control device for vehicle
JP2004240679A (en) Computer control system, and method for rewriting software
WO2023139740A1 (en) Air conditioning system
KR100527158B1 (en) Half Duplex Communication Method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20031209

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20051024

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20051101

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20051228

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: 20060328

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20060329

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3789769

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: 20100407

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20100407

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110407

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130407

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130407

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140407

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