JP2000269993A - Data transmission method and transmitter - Google Patents

Data transmission method and transmitter

Info

Publication number
JP2000269993A
JP2000269993A JP11070260A JP7026099A JP2000269993A JP 2000269993 A JP2000269993 A JP 2000269993A JP 11070260 A JP11070260 A JP 11070260A JP 7026099 A JP7026099 A JP 7026099A JP 2000269993 A JP2000269993 A JP 2000269993A
Authority
JP
Japan
Prior art keywords
transmission
data
time
timer
data frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP11070260A
Other languages
Japanese (ja)
Inventor
Shunji Inada
俊司 稲田
Kenichi Yoneda
憲一 米田
Hiroshi Tomizawa
宏 冨沢
Yoshihiro Nakano
義弘 中野
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.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP11070260A priority Critical patent/JP2000269993A/en
Publication of JP2000269993A publication Critical patent/JP2000269993A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PROBLEM TO BE SOLVED: To prevent transmission delays or aborted data due to occurrence of collision by enhancing a transmission protocol to a CSMA/CD system. SOLUTION: After application of power, transmission control is conducted by a transmission protocol of a CSMA/CD system, when transmission of a data frame is successful, the transmission depending on the CSMA/CD system in not used after that, a transmission timer 13 is started when the transmission is successful, and the transmission is conducted when the timer expires. These operations are repeated. By setting time identical to the transmission timer 13 for all the transmitters, no collision takes place among the transmitters after the transmission is successful, and then no transmission delay or aborted data is not generated. Even if a fault takes place in any transmitter and the data frame cannot be sent, the other transmitter can continue data transmission.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、データ伝送方法と
伝送装置に係り、特にCSMA/CD方式でデータ伝送
を行うときのデータ伝送方法と伝送装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a data transmission method and a transmission apparatus, and more particularly, to a data transmission method and a data transmission apparatus for performing data transmission in a CSMA / CD system.

【0002】[0002]

【従来の技術】従来、複数の伝送装置が伝送路に共通結
合され、それらの伝送装置間で伝送路を通して相互にデ
ータフレームの送受を行うデータ伝送方式、特に各伝送
装置が共有メモリを有し、その共有メモリは伝送装置毎
に送信エリアが割り当てられているデータ伝送方式につ
いては、既に知られているところである。
2. Description of the Related Art Conventionally, a plurality of transmission devices are commonly connected to a transmission line, and a data transmission system for mutually transmitting and receiving data frames between the transmission devices through the transmission line, particularly, each transmission device has a shared memory. The data transmission method in which a transmission area is assigned to each of the shared memories for each transmission device is already known.

【0003】図2は、このようなデータ伝送システムの
概要を示しており、図3は、図2のシステムにおける共
有メモリのデータ収納状態を示す図である。このシステ
ムは、図2のように、伝送装置301〜303が伝送路
300を介して共通結合され、伝送装置301〜303
の各々は計算機311〜313にそれぞれ接続されてい
る。各伝送装置301〜303は、それぞれ共有メモリ
を有しており、これら共有メモリには、接続された計算
機311〜313によって書込み可能なエリアが予め割
り当てられている。即ち、図3に示されているように、
計算機311には2つのエリアA1、A2が、計算機3
12には2つのエリアB1、B2が、計算機313には
同じく2つのエリアC1、C2がそれぞれ割り当てられ
ており、それぞれの計算機は、この共有メモリの割り当
てられたエリアに対して周期的にデータの書込みを行
う。また、それぞれの伝送装置301〜303は、自分
に割り当てられたエリアに書込まれたデータフレームを
所定の送信周期で伝送路300上に送信して他計算機の
共有メモリへ書き込むことによって、伝送路300に共
通結合されたそれぞれの伝送装置301〜303のそれ
ぞれの共有メモリの内容を一致させるようしている。
FIG. 2 shows an outline of such a data transmission system, and FIG. 3 is a diagram showing a data storage state of a shared memory in the system of FIG. In this system, as shown in FIG. 2, the transmission devices 301 to 303 are commonly coupled via a transmission line 300, and the transmission devices 301 to 303
Are connected to the computers 311 to 313, respectively. Each of the transmission devices 301 to 303 has a shared memory, and a writable area is assigned to these shared memories in advance by the connected computers 311 to 313. That is, as shown in FIG.
The computer 311 includes two areas A1 and A2.
12, two areas B1 and B2 are allocated to the computer 313, and two areas C1 and C2 are allocated to the computer 313. Each computer periodically transmits data to the allocated area of the shared memory. Write. Further, each of the transmission devices 301 to 303 transmits the data frame written in the area allocated to itself to the transmission line 300 at a predetermined transmission cycle and writes the data frame into the shared memory of another computer. The contents of the respective shared memories of the respective transmission devices 301 to 303 that are commonly coupled to 300 are matched.

【0004】例えば、計算機311は、共有メモリの割
り当てられたエリアA1、A2にデータの書込みを行
う。伝送装置301は、エリアA1、A2に書込まれた
データに、その共有メモリのエリアA1、A2の先頭ア
ドレスを示すメモリアドレスを識別子として付加した
上、フレーム化して伝送路300上に所定の周期で同報
送信する(全伝送装置宛)。この場合データフレーム
は、例えば図5に示すようなフォーマットのものであっ
て、各フレームの区切りを示すヘッダ、送信すべき伝送
装置の宛先アドレスを示すDA、送信を行った伝送装置
の送信元アドレスを示すSA、データ長情報、データ
部、フレーム伝送誤り検出用のFCS部からなってい
る。また、データ部には、エリアA1、A2にそれぞれ
書込まれている共有データとその共有データに対応する
共有メモリのメモリアドレスa1、a2が含まれる。こ
のデータフレームを受信した他の伝送装置302、30
3は、データフレーム内のメモリアドレスa1、a2を
見て、自己の共有メモリの対応したエリア内にそのデー
タの書込みを行う。計算機302及び303によって書
込まれた共有メモリのエリアB1、B2及びエリアC
1、C2のデータも同様にして他の伝送装置へ転送さ
れ、それぞれ対応したエリアに書込まれる。、同様に、
エリアC1、C2のデータが送信された場合は、他の伝
送装置301、302の共有メモリの対応したエリアに
書込まれるものである。そして、これら各伝送装置から
のデータフレームの送信周期は、各計算機がデータを共
有メモリに書込む周期と非同期になっている。
[0004] For example, the computer 311 writes data to the areas A1 and A2 to which the shared memory is allocated. The transmission device 301 adds a memory address indicating the head address of the area A1 or A2 of the shared memory as an identifier to the data written in the area A1 or A2, forms a frame, and forms a frame on the transmission path 300 at a predetermined period. To broadcast (to all transmission devices). In this case, the data frame has a format as shown in FIG. 5, for example, a header indicating a delimiter of each frame, a DA indicating a destination address of a transmission device to be transmitted, and a source address of a transmission device that has transmitted. , Data length information, a data part, and an FCS part for detecting a frame transmission error. The data portion includes the shared data written in the areas A1 and A2, respectively, and the memory addresses a1 and a2 of the shared memory corresponding to the shared data. Other transmission devices 302, 30 that have received this data frame
3 looks at the memory addresses a1 and a2 in the data frame and writes the data in the corresponding area of its own shared memory. Areas B1, B2 and area C of shared memory written by computers 302 and 303
Similarly, the data of C1 and C2 are transferred to other transmission devices and written in the corresponding areas. , As well,
When the data in the areas C1 and C2 is transmitted, the data is written in the corresponding area of the shared memory of the other transmission devices 301 and 302. The transmission cycle of the data frame from each of these transmission devices is asynchronous with the cycle at which each computer writes data to the shared memory.

【0005】かかるデータ伝送方式においては、イーサ
ネット(登録商標)をベースとして標準化されたCSM
A/CD方式(キャリア検知多重アクセス/衝突検出、
IEEE802委員会標準)が、伝送制御方式として多
く用いられている。それぞれの伝送装置におけるデータ
の送信タイミングが非同期であるため、同時に伝送路が
アクセスされることによってデータフレーム間で衝突が
発生することがあるが、CSMA/CD方式において
は、データフレーム間に衝突が発生すると、データフレ
ームの送信を中断し、規定時間待った後に再送し、この
再送時においてもデータフレームの衝突が発生した場合
は、同様の再送手順を繰返し実行し、規定回数以上連続
してデータフレームの衝突が発生した場合は、そのデー
タフレームを廃棄するようにしていた。このため、CS
MA/CD方式では、データフレームの送信遅延時間が
増大し、送信データフレームの廃棄が発生するという弊
害を有する。
In such a data transmission system, CSM standardized on the basis of Ethernet (registered trademark) is used.
A / CD method (carrier detection multiple access / collision detection,
IEEE 802 committee standard) is widely used as a transmission control method. Since the transmission timing of data in each transmission device is asynchronous, collision may occur between data frames due to simultaneous access to the transmission path. However, in the CSMA / CD system, collision occurs between data frames. When this occurs, the transmission of the data frame is interrupted, and after a specified time has elapsed, retransmission is performed.If a data frame collision occurs even during this retransmission, the same retransmission procedure is repeatedly executed, and the data frame is continuously transmitted more than the specified number of times. When a collision occurs, the data frame is discarded. For this reason, CS
The MA / CD method has a disadvantage that the transmission delay time of the data frame increases and the transmission data frame is discarded.

【0006】このような弊害を除去するため、最近にな
って、データフレームの衝突の発生を防いだデータ伝送
方式が開発されるようになり、その一例として、特開平
1−152836号に開示の手段がある。この手段は、
複数の伝送装置(ステーション)が1つの伝送路に共通
結合され、1つの伝送装置から送信されるデータを残り
の伝送装置が受信するように構成された同報通信伝送を
行うデータ伝送方式に係わるものであって、各伝送装置
の中の1つをマスタ伝送装置、他の伝送装置をスレーブ
伝送装置と定め、マスタ伝送装置は、自己を含めて各伝
送装置の送信タイミング時間を決定して各伝送装置に通
知し、マスタ伝送装置は、自己の送信タイミング時間毎
にデータフレームの送信を行い、各スレーブ伝送装置
は、マスタ伝送装置から伝送されて伝送されてきたデー
タフレームの受信時から自己に設定されている送信タイ
ミング時間に従ってデータフレームの送信を行うように
しており、それによって、データフレーム間の衝突をな
くすようにしたもので、一種のTDMA方式である。
[0006] In order to eliminate such adverse effects, a data transmission method for preventing the occurrence of data frame collisions has recently been developed. As an example, a method disclosed in Japanese Patent Application Laid-Open No. 1-152836 is disclosed. There are means. This means
The present invention relates to a data transmission method for performing a broadcast transmission in which a plurality of transmission devices (stations) are commonly coupled to one transmission path, and the remaining transmission devices receive data transmitted from one transmission device. Wherein one of the transmission devices is defined as a master transmission device, the other transmission device is defined as a slave transmission device, and the master transmission device determines the transmission timing time of each transmission device including itself, and Notifying the transmission device, the master transmission device transmits a data frame at each transmission timing time of itself, and each slave transmission device transmits itself to the transmission device from the time of reception of the data frame transmitted from the master transmission device. Data frames are transmitted according to a set transmission timing time, thereby eliminating collision between data frames. , It is a kind of TDMA system.

【0007】[0007]

【発明が解決しようとする課題】前記した特開平1−1
52836号に開示の手段は、マスタ伝送装置の送信し
たデータフレームを基準として、他のスレーブ伝送装置
がそれぞれ異なるタイミングで送信することにより衝突
を防ぐようにしたものである。しかるに、このようなデ
ータ伝送方式にあっては、マスタ伝送装置の決定方法、
マスタ伝送装置の移設や障害時の代替マスタ伝送装置の
決定方法、スレーブ伝送装置にそれぞれ異なる送信タイ
ミングを設定する必要がある、等の問題がある。また、マ
スタ伝送装置が、何等かの理由により自己の送信タイミ
ング時間にデータフレームの送信を行うことができなか
ったり、データフレームの送信を行ってもそのデータフ
レームがスレーブ伝送装置に届かなかったりすると、各
スレーブ伝送装置は、同じく自己の送信タイミング時間
にデータフレームの送信を行うことができないという問
題がある。
SUMMARY OF THE INVENTION The aforementioned Japanese Patent Laid-Open No. 1-1
The means disclosed in Japanese Patent No. 52836 is designed to prevent collision by transmitting data at different timings from other slave transmission devices with reference to a data frame transmitted by the master transmission device. However, in such a data transmission system, a method of determining a master transmission device,
There are problems such as relocation of the master transmission device, a method of determining an alternative master transmission device at the time of failure, and different transmission timings set for the slave transmission devices. Also, if the master transmission device cannot transmit a data frame at its own transmission timing time for any reason, or if the data frame does not reach the slave transmission device even if the data frame is transmitted. However, there is a problem that each slave transmission device cannot transmit a data frame during its own transmission timing time.

【0008】本発明は、前記各問題点を除去するもの
で、その目的は、マスタ伝送装置を決定することなく、
また各伝送装置に異なる送信タイミング時間を設定する
ことなしに、各伝送装置が自己の送信周期に同期してデ
ータフレームを送信し、かつ続けて衝突が発生しないよ
うにすることで、送信遅延時間の増大やフレームの廃棄
が生じないようにしたデータ伝送方法と伝送装置を提供
することにある。
[0008] The present invention eliminates the above-mentioned problems, and its purpose is to determine the master transmission device without determining it.
Also, without setting a different transmission timing time for each transmission device, each transmission device transmits a data frame in synchronization with its own transmission cycle, and by preventing a collision from occurring continuously, transmission delay time is reduced. It is an object of the present invention to provide a data transmission method and a transmission apparatus which prevent the increase of the number of frames and discard of frames.

【0009】[0009]

【課題を解決するための手段】本発明は、伝送路に共通
結合された複数の伝送装置間でCSMA/CD方式の伝
送制御により相互にデータフレームの送受信を行うため
のデータ伝送方法であって、前記各伝送装置にタイマ手
段を設けると共に、各伝送装置は、その電源が投入され
ると、自装置内のタイマ手段に各伝送装置について同一
値に定められたタイマ時間を設定したのち任意のタイミ
ングでデータフレームを送信し、CSMA/CD方式の
伝送制御のもとで最初にデータフレーム送信が成功する
と前記タイマ手段を起動し、この時点以降は、前記タイ
マ手段のタイムアップ時にデータフレーム送信を行い、
データフレームの送信が成功すると前記タイマ手段を起
動するという動作を繰り返すようにしたことを特徴とす
るデータ伝送方法を開示する。
SUMMARY OF THE INVENTION The present invention relates to a data transmission method for mutually transmitting and receiving data frames by a CSMA / CD transmission control between a plurality of transmission devices commonly connected to a transmission line. Each of the transmission devices is provided with timer means, and when the power is turned on, each of the transmission devices sets a timer time set to the same value for each of the transmission devices in the timer means in its own device, and then sets an arbitrary value. When the data frame is transmitted at the timing and the data frame transmission succeeds for the first time under the transmission control of the CSMA / CD system, the timer means is started, and after this time, the data frame transmission is performed when the timer means times out. Do
Disclosed is a data transmission method characterized by repeating an operation of activating the timer means when transmission of a data frame is successful.

【0010】また、本発明は、前記タイマ手段のタイム
アップ時に送信データがないかまたは送信データが準備
されていないときは、予め用意したダミーデータフレー
ムを送信することことを特徴とするデータ伝送方法を開
示する。
Further, according to the present invention, when there is no transmission data or when transmission data is not prepared when the timer means times out, a dummy data frame prepared in advance is transmitted. Is disclosed.

【0011】また、本発明は、送信するデータフレーム
の長さを一定フレーム長として予め定めておくと共に、
前記タイマ手段タイムアップ時に送信要求のあるデータ
長が前記一定フレーム長より短いときはダミーデータを
付加して前記一定フレーム長のデータフレームを送信す
るようにしたことを特徴とするデータ伝送方法を開示す
る。
Further, according to the present invention, the length of a data frame to be transmitted is determined in advance as a fixed frame length,
Disclosed is a data transmission method, characterized in that when the data length requested to be transmitted is shorter than the fixed frame length when the timer means expires, the data frame having the fixed frame length is transmitted by adding dummy data. I do.

【0012】また、本発明は、前記タイマ手段のタイム
アップ時に送信データがないか又は準備されていないと
きは、前記タイムアップ時にデータフレーム長に相当す
る時間を前記同一値に定められたタイマ時間に加えた値
を前記タイマ手段のタイマ時間として次の送信タイミン
グを決定するようにしたことを特徴とするデータ伝送方
法を開示する。
Further, the present invention is characterized in that when transmission data is not present or not prepared when the timer means times out, the time corresponding to the data frame length at the time up is set to the timer time set to the same value. The data transmission method is characterized in that the next transmission timing is determined using the value added to the above as the timer time of the timer means.

【0013】また、本発明は、前記同一値に定められた
タイマ時間をTsとし、また予め定めたデータフレーム
の基準送信時間をT0としたとき、前記タイマ手段のタ
イムアップ時に送信要求のあるデータの送信時間がTで
あると、そのデータフレーム送信後に起動される前記タ
イマ手段のタイマ時間をTs+T0−Tとして次の送信タ
イミングを決定するようにしたことを特徴とするデータ
伝送方法を開示する。
Further, according to the present invention, when the timer time set to the same value is Ts, and the reference transmission time of the predetermined data frame is T0, the data requested to be transmitted when the timer means times out is set. If the transmission time of T is T, the next transmission timing is determined by setting the timer time of the timer means activated after the transmission of the data frame to Ts + T0-T.

【0014】さらに、本発明は、伝送路に結合されてC
SMA/CD方式の伝送制御により互いにデータフレー
ムの送受信を行う伝送装置であって、CSMA/CD方
式の手順でもって伝送制御を行う第1の制御手段と、伝
送路に結合されたすべての伝送装置に対して同一のタイ
マ時間を設定されるタイマ手段と、電源投入後に最初に
データフレーム送信が成功するとその時及びそれ以後の
データフレーム送信成功時ごとに前記タイマ手段を起動
する第2の制御手段と、前記最初のデータフレーム送信
以降は前記タイマ手段のタイムアップ時点を送信タイミ
ングとするように制御する第3の制御手段とを備えたこ
とを特徴とする伝送装置を開示する。
Further, the present invention relates to a transmission line coupled to a transmission line.
A transmission apparatus for transmitting and receiving data frames to and from each other by SMA / CD transmission control, comprising: first control means for performing transmission control according to a CSMA / CD procedure; and all transmission apparatuses coupled to a transmission path. Timer means for setting the same timer time with respect to, and second control means for activating the timer means at the first successful data frame transmission after power-on and at each subsequent successful data frame transmission. And a third control means for controlling the time-up time of the timer means to be a transmission timing after the transmission of the first data frame.

【0015】[0015]

【発明の実施の形態】以下、本発明の実施の形態を図面
を用いて詳細に説明する。図1は、本発明の特徴とする
伝送装置の構成例を示すブロック図で、図2のような伝
送システムの各伝送装置として用いられる。なお、図2
のネットワーク300は、LAN(ローカルエリアネッ
トワーク)等の伝送路であり、バス形状のものとする。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 1 is a block diagram showing a configuration example of a transmission device which is a feature of the present invention, and is used as each transmission device of a transmission system as shown in FIG. Note that FIG.
Is a transmission path such as a LAN (local area network) and has a bus shape.

【0016】図1の伝送装置1は、伝送制御回路10、
送受信制御回路11、受信バッファ12、送信タイマ1
3、DMAC14、送信バッファ15、ダミーデータ用
送信バッファ16、選択回路17、インターフェース回
路18、内部バス19及び20、共有メモリ21を備え
ており、伝送制御回路10はCSMA/CD(IEEE
802、3標準)アクセス方式にもとづく制御を行うも
ので、伝送路23(図2のネットワーク300)に接続
されている。インターフェース回路18は対応する計算
機22に接続される。伝送制御回路10、受信バッファ
12、選択回路17は、それぞれ送受信制御回路11の
制御の基に内部バス19に結合可能に構成されている。
また、受信バッファ12、DMAC14、送信バッファ
15、インターフェース回路18、共有メモリ21は、
それぞれ送受信制御回路11の制御の基に内部バス20
に結合可能に構成されている。また、送受信制御回路1
1自体も内部バス20とデータ授受可能である。
The transmission device 1 shown in FIG.
Transmission / reception control circuit 11, reception buffer 12, transmission timer 1
3, a DMAC 14, a transmission buffer 15, a dummy data transmission buffer 16, a selection circuit 17, an interface circuit 18, internal buses 19 and 20, and a shared memory 21. The transmission control circuit 10 is a CSMA / CD (IEEE).
802, 3 standard) for controlling based on an access method, and is connected to the transmission line 23 (the network 300 in FIG. 2). The interface circuit 18 is connected to a corresponding computer 22. The transmission control circuit 10, the reception buffer 12, and the selection circuit 17 are configured to be connectable to the internal bus 19 under the control of the transmission / reception control circuit 11, respectively.
The reception buffer 12, the DMAC 14, the transmission buffer 15, the interface circuit 18, and the shared memory 21
Under the control of the transmission / reception control circuit 11, the internal bus 20
It is configured to be able to be combined. Also, the transmission / reception control circuit 1
1 itself can also exchange data with the internal bus 20.

【0017】共有メモリ21は、図4に図示のような内
部構成を有し、単位長データ(Nワード)毎にブロック
化されている。これらの各ブロックは、伝送装置毎に送
信エリアの割り付けが行われ、図5に示した送信データ
フレームの形成時に、共有メモリ21のメモリアドレス
a1、a2を付され、ブロック単位(Nワード)で組み
込まれる。この共有メモリ21の割り付けと、送信周期
を示す情報は、対応する計算機22によって送受信制御
回路11内に設定される。送信タイマ13は本発明の特
徴とする回路で、その設定値は、計算機22によって送
信制御回路11に設定される。このタイマ13は、ハー
ドウェア、ソフトウェアのいずれの手段で実現してもよ
い。以下、図1の伝送装置の動作を、いくつかの場合に
分けて説明する。
The shared memory 21 has an internal configuration as shown in FIG. 4 and is divided into unit length data (N words). Each of these blocks is assigned a transmission area for each transmission device, is assigned memory addresses a1 and a2 of the shared memory 21 when the transmission data frame shown in FIG. 5 is formed, and is assigned in block units (N words). Be incorporated. The allocation of the shared memory 21 and the information indicating the transmission cycle are set in the transmission / reception control circuit 11 by the corresponding computer 22. The transmission timer 13 is a circuit characteristic of the present invention, and its set value is set in the transmission control circuit 11 by the computer 22. This timer 13 may be realized by any means of hardware or software. Hereinafter, the operation of the transmission apparatus of FIG. 1 will be described in several cases.

【0018】(1)電源投入後の最初のデータフレーム
送信(送信衝突がない場合) 伝送装置1に電源が投入されると送受信制御回路11が
動作を開始し、まずはじめに、送信タイマ13にデータ
フレームの送信を決定するタイマ値を設定する。次にあ
て先アドレスDA、送信元アドレスSA、送信データ長
を送信バッファ15に書き込み、DMAC14を制御す
ることにより、当該伝送装置の送信エリアとして共有メ
モリ21に割り付けられているブロックのデータを送信
バッファ15へ転送する。この転送が完了すると、選択
回路17を送信バッファ15側を選択するよう設定し、
以上の処理が終了した後、送受信制御回路11は伝送制
御回路10に対し送信起動をかける。送信起動をかけら
れた伝送制御回路10は、伝送路23上の電気信号を監
視(キャリアセンス)し、何も信号がないとき空き状態
と判断し、送信バッファ15から前記転送されたデータ
を読み出すとともに、ヘッダ、FCSを生成、付加し、
データフレーム化して伝送路上へ送信する。データフレ
ームの送信が正常終了すると、伝送制御回路10から送
信完了が送受信制御回路11に対し通知されるととも
に、送信タイマ13が起動され、選択回路17がダミー
データ用送信バッファ16側を選択するように設定す
る。
(1) First data frame transmission after power-on (when there is no transmission collision) When power is applied to the transmission device 1, the transmission / reception control circuit 11 starts operating. Set the timer value that determines frame transmission. Next, the destination address DA, the source address SA, and the transmission data length are written into the transmission buffer 15 and the DMAC 14 is controlled, so that the data of the block allocated to the shared memory 21 as the transmission area of the transmission device is transmitted. Transfer to When this transfer is completed, the selection circuit 17 is set to select the transmission buffer 15 side,
After the above processing is completed, the transmission / reception control circuit 11 activates the transmission control circuit 10 for transmission. The transmission control circuit 10 that has been activated for transmission monitors the electric signal on the transmission line 23 (carrier sense), determines that there is no signal, and determines that the transmission data is free, and reads the transferred data from the transmission buffer 15. At the same time, generate and add header and FCS,
It is converted into a data frame and transmitted on a transmission path. When the transmission of the data frame is normally completed, the transmission control circuit 10 notifies the transmission completion to the transmission / reception control circuit 11, the transmission timer 13 is started, and the selection circuit 17 selects the dummy data transmission buffer 16 side. Set to.

【0019】(2)電源投入後の2回目以降のデータフ
レーム送信(送信衝突がない場合) 送受信制御回路11は、前記電源投入後の最初のデータ
フレーム送信が完了した後に、特に優先する処理がなけ
れば、電源投入後第2回目に送信するデータを前記と同
様な手順にて送信バッファ15へ転送し、選択回路17
を送信バッファ側が選択されるように設定する。通常は
この設定は送信タイマ13がタイムアウトする前に終了
する。この状態で送信タイマ13がタイムアウトする
と、タイムアウトを通知された送受信制御回路11は伝
送制御回路10に対し送信起動をかけ、この起動指令を
受けた伝送制御回路10は第1回目の送信と同様に伝送
路が空き状態であれば送信バッファ15内のデータをデ
ータフレーム化して送信する。また、異常処理などの優
先度の高い処理が行われたために送信バッファ内に送信
データが準備できていない状態でタイマ13がタイムア
ップしたときは、選択回路17はダミーデータ用送信バ
ッファ16側を選択するようにし、ダミーデータをデー
タフレーム化して送信することになる。ダミーデータフ
レームの宛先アドレスは、伝送路に接続された各伝送装
置が絶対受信しないアドレスに設定しておけば、各伝送
装置の受信負荷とはならない。電源投入後第3回目以降
のデータフレーム送信も第2回目のデータフレーム送信
と同様な処理手順を繰り返す。
(2) Data frame transmission for the second time or later after power-on (when there is no transmission collision) The transmission / reception control circuit 11 performs processing for giving special priority after the first data frame transmission after power-on is completed. If not, the data to be transmitted the second time after the power is turned on is transferred to the transmission buffer 15 in the same procedure as described above, and the selection circuit 17
Is set so that the transmission buffer side is selected. Normally, this setting ends before the transmission timer 13 times out. When the transmission timer 13 times out in this state, the transmission / reception control circuit 11 that has been notified of the timeout activates transmission to the transmission control circuit 10, and the transmission control circuit 10 that has received the activation command performs the same operation as in the first transmission. If the transmission path is idle, the data in the transmission buffer 15 is converted into a data frame and transmitted. When the timer 13 times out in a state where transmission data is not ready in the transmission buffer due to a high priority process such as an abnormal process, the selection circuit 17 sets the dummy data transmission buffer 16 side. Then, the dummy data is converted into a data frame and transmitted. If the destination address of the dummy data frame is set to an address that is not absolutely received by each of the transmission devices connected to the transmission line, the reception load of each of the transmission devices does not occur. The third and subsequent data frame transmissions after power-on repeat the same processing procedure as the second data frame transmission.

【0020】(3)データフレーム送信(送信衝突した
場合) 複数の伝送装置が電源投入後の第1回目のデータフレー
ム送信を同時に開始しようとした場合、データフレーム
の送信を同時に開始することになるため伝送路上でデー
タフレームの衝突が発生する。伝送制御回路10は衝突
を検出するとCSMA/CD方式の再送アルゴリズムに
従い、送信成功するまで何回かの再送を繰り返し、送信
が成功した時点で送受信制御回路11に送信完了を通知
し、送信タイマ13を起動する。
(3) Data frame transmission (when transmission collision occurs) When a plurality of transmission apparatuses try to start the first data frame transmission after power-on at the same time, the transmission of data frames starts simultaneously. Therefore, data frame collision occurs on the transmission path. When detecting the collision, the transmission control circuit 10 repeats several retransmissions according to the retransmission algorithm of the CSMA / CD system until the transmission is successful. When the transmission is successful, the transmission control circuit 10 notifies the transmission / reception control circuit 11 of the completion of the transmission, Start

【0021】(4)データフレーム受信 次にデータフレーム受信時の処理について説明する。伝
送制御回路10は、伝送路上に伝送されているデータフ
レームを監視し、その宛先アドレスDAをチェックし、
それが自伝送装置宛であれば当該伝送フレームを受信バ
ッファ12に転送するとともに、送受信制御回路11に
受信通知を出力する。そうすると送受信制御回路11
は、DMAC14を起動し、受信バッファ12内のデー
タを対応する共有メモリ21のエリアへ転送する。
(4) Data Frame Reception Next, the processing at the time of data frame reception will be described. The transmission control circuit 10 monitors the data frame transmitted on the transmission path, checks its destination address DA,
If it is addressed to its own transmission device, it transfers the transmission frame to the reception buffer 12 and outputs a reception notification to the transmission / reception control circuit 11. Then, the transmission / reception control circuit 11
Activates the DMAC 14 and transfers the data in the reception buffer 12 to the corresponding area of the shared memory 21.

【0022】次に、以上に説明した動作を行う伝送装置
を図2のようにネットワークに接続して構成したシステ
ムとしての動作を説明する。図6は、図2に図示された
データ伝送システムにおいて、すべての伝送装置の電源
が一斉に投入され、第1回目のデータフレーム送信を同
時に開始した場合の動作を示す送信タイミング図であ
る。図6において、Fa、Fb、Fcはそれぞれ伝送装
置301〜303が送信するデータフレーム、Ca1及
びCa2はそれぞれ伝送装置301の第一回目及び第2
回目の送信衝突時の再送待ち時間、Cb1及びCb2は
それぞれ伝送装置302の第一回目及び第2回目の送信
衝突時の再送待ち時間、Cc1は伝送装置303の第一
回目の送信衝突時の再送待ち時間で、これらの各待ち時
間はCSMA/CD方式によりランダムに決められる。
また、Tsは、伝送装置の構成要素である送信タイマ1
3により計測されるタイムアウト時間で、この値は各伝
送装置で同一の値が設定されている。
Next, the operation of a system in which the transmission apparatus performing the above-described operation is connected to a network as shown in FIG. 2 will be described. FIG. 6 is a transmission timing chart showing an operation in the case where all the transmission devices are turned on at the same time and the first data frame transmission is started simultaneously in the data transmission system shown in FIG. In FIG. 6, Fa, Fb, and Fc are data frames transmitted by the transmission devices 301 to 303, respectively, and Ca1 and Ca2 are the first and second transmission frames of the transmission device 301, respectively.
The retransmission waiting time at the time of the second transmission collision, Cb1 and Cb2 are the retransmission waiting time at the time of the first and second transmission collisions of the transmission device 302, and Cc1 is the retransmission at the time of the first transmission collision of the transmission device 303. In the waiting time, each of these waiting times is randomly determined according to the CSMA / CD method.
Ts is a transmission timer 1 which is a component of the transmission apparatus.
3 is a timeout time measured, and the same value is set in each transmission device.

【0023】ここで送信衝突は、1つの伝送装置がフレ
ームを送信してこれが他の伝送装置で受信されるまでに
はある程度の時間がかかり、それから以降に伝送路ビジ
ーであることが検出される。このため、ほぼ同時に2以
上の伝送装置が送信動作を行うと、伝送路ビジー検出前
に送信を行ってしまうから衝突が発生し、このときは一
般に受信信号の電圧レベルが低下するので、各伝送装置
はその電圧レベル低下から衝突の発生を知り、再送動作
を行う。
Here, in the transmission collision, it takes some time for one transmission apparatus to transmit a frame and receive it at another transmission apparatus, and thereafter it is detected that the transmission path is busy. . For this reason, if two or more transmission devices perform transmission operations at substantially the same time, transmission will occur before transmission path busy detection, and a collision will occur. In this case, the voltage level of the received signal generally decreases. The device recognizes the occurrence of the collision from the voltage level drop and performs the retransmission operation.

【0024】さて、伝送装置301〜303の電源が一
斉に投入され、電源投入後の最初のデータフレーム送信
を同時に開始すると、伝送路上でデータフレームFa、
Fb、Fcの衝突が発生する(時刻t1)。伝送路上で
衝突が発生すると各伝送装置301〜303の伝送制御
回路10は、前記のようにして衝突を検出するととも
に、CSMA/CD方式に従いランダムに再送待ち時間
Ca1と、Cb1、Cc1を決定し、その時間経過後に
前記衝突したデータフレームを再送する。このとき伝送
装置301の再送待ち時間Ca1と伝送装置302の再
送待ち時間Cb1が同一で伝送装置303の再送待ち時
間Cc1がCa1とCb1に比べ短かったとすると、伝
送装置303のデータフレームFcの送信は成功し(時
刻t2)、伝送装置301、302のデータフレームF
a、Fbの送信は再度衝突する(時刻t3)。送信成功
後の伝送装置303はその後、送信タイマ13起動→次
回の送信データ準備→送信タイマ13のタイムアウト検
出→データフレームの送信→送信完了→送信タイマ起動
という動作を繰り返す。
When the power of the transmission devices 301 to 303 is simultaneously turned on and the transmission of the first data frame after the power is turned on is started simultaneously, the data frames Fa,
A collision between Fb and Fc occurs (time t1). When a collision occurs on the transmission path, the transmission control circuit 10 of each of the transmission devices 301 to 303 detects the collision as described above, and randomly determines the retransmission waiting time Ca1, Cb1, and Cc1 according to the CSMA / CD method. , After that time elapses, retransmits the collided data frame. At this time, assuming that the retransmission waiting time Ca1 of the transmission device 301 and the retransmission waiting time Cb1 of the transmission device 302 are the same and the retransmission waiting time Cc1 of the transmission device 303 is shorter than Ca1 and Cb1, the transmission of the data frame Fc by the transmission device 303 takes place. Successful (time t2), the data frames F of the transmission devices 301 and 302
The transmissions of a and Fb collide again (time t3). After a successful transmission, the transmission device 303 thereafter repeats the operation of starting the transmission timer 13 → preparing the next transmission data → detecting the timeout of the transmission timer 13 → transmitting the data frame → completing transmission → starting the transmission timer.

【0025】再度送信衝突した伝送装置301、302
それぞれの伝送制御回路10は、衝突を検出するととも
にCSMA/CD方式に従い、再びランダムに再送待ち
時間Ca2、Cb2を決定し、その時間経過後に再度前
記再送信しようとしたデータフレームを再送信する。こ
のとき待ち時間Cb2がCa2より短かったとすると、
伝送装置302のデータフレームFb送信が成功し(時
刻t4)、次いで伝送装置301のデータフレームFa
送信の順が成功する(時刻t5)。伝送装置301、3
02の送信成功後の動作は、前記伝送装置303の送信
成功後の動作と同様である。
The transmission devices 301 and 302 that have collided with the transmission again
Each transmission control circuit 10 detects the collision and randomly again determines the retransmission waiting times Ca2 and Cb2 according to the CSMA / CD method, and retransmits the data frame to be retransmitted again after the lapse of the time. At this time, if the waiting time Cb2 is shorter than Ca2,
The transmission of the data frame Fb of the transmission device 302 succeeds (time t4), and then the data frame Fa of the transmission device 301.
The order of transmission is successful (time t5). Transmission devices 301, 3
The operation of the transmission device 302 after successful transmission is the same as the operation of the transmission device 303 after successful transmission.

【0026】以上の図6の動作を全体としてみると、各
伝送装置は自データフレームの伝送成功までは従来のC
SMA/CD方式で衝突を避けるように試み、一旦送信
が成功した時以降はランダムではなく、本発明の特徴と
する送信タイマを用いて一定のタイマ時間Tsを周期と
して送信する。従って、各伝送装置がすべて一度送信成
功するとそれ以後は正常動作を続けている限り送信衝突
を生じることはない。また、何れかの伝送装置が障害や
電源断などによりデータフレームの送信を停止しても、
他の伝送装置はデータフレームの送信を衝突なしで継続
可能である。
Looking at the operation of FIG. 6 as a whole, each transmission apparatus uses the conventional C until the transmission of its own data frame succeeds.
Attempts are made to avoid collisions in the SMA / CD system, and once transmission has succeeded, transmission is not random but is performed using a transmission timer, which is a feature of the present invention, with a fixed timer time Ts as a period. Therefore, if all of the transmission devices succeed in transmission once, no transmission collision occurs as long as normal operation continues thereafter. Also, even if any transmission device stops transmitting the data frame due to a failure or power loss,
Other transmission devices can continue transmission of data frames without collision.

【0027】図7は、すべての伝送装置301〜303
のデータフレーム送信が成功した後の送信タイミングの
一例を示す図で、伝送装置302の送信タイマの精度が
悪く、そのタイムアウト時間Ts' が他の伝送装置30
1、303送信タイマのタイムアウトTsに比べ短い場
合を示している。伝送装置301、302、303の順
にデータフレームFa、Fb、Fcの送信が成功し(時
刻t1、t2、t3)、次に伝送装置301が送信タイ
マのタイムアウト時間Ts経過後にデータフレームFa
を送信し(時刻t4)、さらに伝送装置302が送信タ
イマのタイムアウト時間Ts'経過後にデータフレームF
bを送信しようとするとき(時刻t5)、Ts′がTsよ
り短いため、伝送装置301のデータフレームFa送信
中に伝送装置302の送信タイマがタイムアウトする可
能性がある。しかしこのときは伝送装置302の伝送制
御回路はデータフレームFaが伝送路上にあることを検
出し、CSMA/CD方式に従いデータフレームFbの
送信開始を延期し、データフレームFaが伝送路上から
なくなった時点(時刻t6)にデータフレームFbの送
信を開始し、その送信完了後送信タイマを起動するとと
もに、送受信制御回路11に送信完了を通知する。デー
タフレームFb送出時点が毎回遅らされても、伝送装置
302は毎回送信完了後にその送信タイマを起動するた
め、他伝送装置間とのタイマ誤差が累積することはな
い。また、1回の送信周期当りのタイマ誤差がデータフ
レーム長より小さければ送信衝突も発生しないため、ハ
ードウェア障害などが発生した場合を除き、送信衝突は
発生しない。
FIG. 7 shows all transmission devices 301 to 303.
Is a diagram showing an example of the transmission timing after successful transmission of the data frame. The transmission timer of the transmission device 302 has poor accuracy, and the time-out time Ts' is different from that of the other transmission device 30.
1, 303 shows a case where it is shorter than the timeout Ts of the transmission timer. The transmission of the data frames Fa, Fb, and Fc succeeds in the order of the transmission devices 301, 302, and 303 (time t1, t2, and t3), and then the transmission device 301 transmits the data frame Fa after the elapse of the transmission timer timeout time Ts.
(Time t4), and the transmission apparatus 302 further transmits the data frame F after the elapse of the transmission timer timeout time Ts'.
When transmitting b (time t5), Ts' is shorter than Ts, so the transmission timer of the transmission device 302 may time out during transmission of the data frame Fa by the transmission device 301. However, at this time, the transmission control circuit of the transmission device 302 detects that the data frame Fa is on the transmission line, delays the start of transmission of the data frame Fb according to the CSMA / CD method, and stops the transmission of the data frame Fa from the transmission line. At (time t6), the transmission of the data frame Fb is started, and after the transmission is completed, the transmission timer is started and the transmission / reception control circuit 11 is notified of the completion of the transmission. Even if the transmission time of the data frame Fb is delayed every time, the transmission device 302 starts its transmission timer after the transmission is completed each time, so that a timer error between other transmission devices does not accumulate. Also, if the timer error per transmission cycle is smaller than the data frame length, no transmission collision occurs. Therefore, transmission collision does not occur unless a hardware failure or the like occurs.

【0028】次に、伝送装置の送信タイマがタイムアウ
トした時点で次の送信データフレームが準備されていな
い場合は、図1を用いて説明したようにダミーフレーム
を送信し、ダミーフレームの送信完了により送信タイマ
の起動を行えば次のデータフレームの送信タイミングが
狂うことはない。しかし、送信データフレームがないと
き、ダミーフレームを送信しないで送信タイミングを調
整することもできる。図8は、そのような方法を説明す
るためのタイムチャートで、全伝送装置のデータフレー
ム送信が成功した後に伝送装置301の送信データフレ
ームがない場合について示した図である。伝送装置30
2、303の送信タイミングについては省略してある。
この図で、伝送装置301が、データフレームFaの送
信完了後(時刻t1)に起動した送信タイマのタイムア
ウト時間Tsが経過した時点で(時刻t2)、次に送信
するデータフレームがない、あるいは準備されていなか
ったとすると、送受信制御回路11は、送信タイマ13
に通常の送信周期Tsに送信データフレーム長分の時間
Tfを加えた値であるTfsを送信タイマ13に設定し
てそれを起動する。これにより、送信データフレームが
ない場合にダミーフレームを送信しないでも、次回の送
信タイマ13がタイムアウトするタイミングはデータフ
レームを送信した場合と同様に保つことができる。
Next, if the next transmission data frame is not prepared when the transmission timer of the transmission device times out, a dummy frame is transmitted as described with reference to FIG. If the transmission timer is started, the transmission timing of the next data frame will not be out of order. However, when there is no transmission data frame, the transmission timing can be adjusted without transmitting the dummy frame. FIG. 8 is a time chart for explaining such a method, and shows a case where there is no transmission data frame of the transmission device 301 after the data frame transmission of all the transmission devices succeeds. Transmission device 30
The transmission timings of 2, 303 are omitted.
In this figure, when the transmission device 301 has completed the transmission of the data frame Fa (time t1), and when the timeout period Ts of the transmission timer elapses (time t2), there is no data frame to be transmitted next, or there is no preparation. If not, the transmission / reception control circuit 11
Then, Tfs, which is a value obtained by adding the time Tf for the transmission data frame length to the normal transmission cycle Ts, is set in the transmission timer 13 and activated. Accordingly, even when the dummy frame is not transmitted when there is no transmission data frame, the timing at which the next transmission timer 13 times out can be maintained in the same manner as when the data frame is transmitted.

【0029】図9は、何れかの伝送装置の送信するデー
タフレーム長が、送信するごとに大きく変動するような
システムでの問題点について示した送信タイミング図で
ある。伝送装置301、302、303のデータフレー
ムFa、Fb、Fcが送信完了した後、各伝送装置はそ
れぞれ送信タイマを起動したとする。次に伝送装置30
1の送信タイマがタイムアウトし(時刻t1)、伝送装
置301はデータフレームFaを送信するが、この時の
送信データフレーム長が前回送信したデータフレーム長
より長く、この長いデータフレームFaの送信途中に伝
送装置302、303の送信タイマがともにタイムアウ
トしたとする。そうすると伝送装置302、303はそ
れぞれデータフレームFb、Fcの送信を開始しようと
するが、伝送路上にデータフレームFaが送信中である
ことを検出し(キャリアセンス)、データフレームFa
の送信が完了するまでデータフレームFb、Fcの送信
を延期する。そして、データフレームFaの送信が完了
した時点に(時刻t2)、伝送装置302、303はそ
れぞれ送信延期していたデータフレームFbとFcの送
信を開始することになり、データフレームFb、Fcの
送信衝突が発生する。この衝突発生後、伝送装置B、C
の伝送制御回路10は、CSMA/CD方式の再送アル
ゴリズムにしたがってそれぞれ再送待ち時間Cb1、C
c1経過した後、データフレームFb、Fcを再送す
る。このデータフレームの再送は1回で成功する場合も
あるが、何回か衝突と再送を繰り返すこともあり、好ま
しくない。
FIG. 9 is a transmission timing chart showing a problem in a system in which the length of a data frame transmitted by any of the transmission apparatuses fluctuates greatly with each transmission. After the transmission of the data frames Fa, Fb, and Fc of the transmission devices 301, 302, and 303 is completed, each transmission device starts a transmission timer. Next, the transmission device 30
The transmission device 301 transmits the data frame Fa at this time, and the transmission data frame length at this time is longer than the previously transmitted data frame length, and during the transmission of the long data frame Fa. It is assumed that the transmission timers of the transmission devices 302 and 303 have both timed out. Then, the transmission devices 302 and 303 try to start transmission of the data frames Fb and Fc, respectively, but detect that the data frame Fa is being transmitted on the transmission path (carrier sense), and
The transmission of the data frames Fb and Fc is postponed until the transmission of the data frame is completed. Then, when the transmission of the data frame Fa is completed (time t2), the transmission devices 302 and 303 start transmitting the data frames Fb and Fc whose transmission has been postponed, respectively, and transmit the data frames Fb and Fc. Collisions occur. After this collision occurs, the transmission devices B and C
The transmission control circuit 10 according to the present invention, according to the CSMA / CD retransmission algorithm,
After elapse of c1, the data frames Fb and Fc are retransmitted. The retransmission of this data frame may be successful only once, but the collision and retransmission may be repeated several times, which is not preferable.

【0030】この問題は、送信するデータフレーム長を
一定にすることにより解決できる。この場合、データフ
レーム長を一定にするのは伝送装置単位でよく、各伝送
装置間のデータフレーム長は異なっていても問題無い。
データフレーム長を一定にする方法としては、例えば図
4に示したデータフレームフォーマット中のサイクリッ
クデータ部の後端部に付加するダミーデータの長さを調
節すればよく、例えば図1において、送受信制御回路1
1が送信データを送信バッファ15に転送するときに、
送信データ長が所定の長さより短い場合はダミーデータ
を付加して所定の長さにした送信データを送信バッファ
15に転送するようにすればよい。
This problem can be solved by keeping the length of the data frame to be transmitted constant. In this case, the data frame length may be made constant for each transmission device, and there is no problem even if the data frame length between the transmission devices is different.
As a method of keeping the data frame length constant, for example, the length of dummy data added to the trailing end of the cyclic data portion in the data frame format shown in FIG. 4 may be adjusted. Control circuit 1
When 1 transfers the transmission data to the transmission buffer 15,
If the transmission data length is shorter than the predetermined length, the transmission data having the predetermined length may be transferred to the transmission buffer 15 by adding dummy data.

【0031】また、データフレーム長が変動する場合
に、データフレーム長を一定にするのではない別の対処
法もある。それは、最も長いデータフレームを想定し、
その長さをT0とし、これより短い長さTのデータフレ
ーム送信時には、起動時に設定されたタイマ時間Tsを
Ts+(T0−T)に変更してその長さTのデータフレー
ム送信し、タイマを起動する方法である。この方法によ
れば、各伝送装置の送信周期は常にTs+T0となり、図
9で説明したような衝突を回避できる。
There is another method for keeping the data frame length constant when the data frame length fluctuates. It assumes the longest data frame,
When the length is T0, when transmitting a data frame of a shorter length T, the timer time Ts set at the time of activation is changed to Ts + (T0−T), and the data frame of the length T is transmitted. How to start. According to this method, the transmission cycle of each transmission device is always Ts + T0, and the collision as described with reference to FIG. 9 can be avoided.

【0032】[0032]

【発明の効果】以上述べたように、CSMA/CD方式
を基本とし、送信成功後は一定周期の送信を行うように
することで、伝送遅延やデータ廃棄などの生じないデー
タ伝送システムを実現できる。また、マスタ伝送装置を
用いたTDMA方式ではないから、何れかの伝送装置に
障害が発生してデータフレームを送信できなくなったと
しても、他の伝送装置はデータ伝送を中断することな
く、データ伝送を継続できるという効果がある。
As described above, a data transmission system free from transmission delays and data discards can be realized by performing transmission at a fixed period after successful transmission based on the CSMA / CD system. . In addition, since it is not a TDMA system using a master transmission device, even if a failure occurs in one of the transmission devices and the data frame cannot be transmitted, the other transmission devices do not interrupt the data transmission and perform data transmission. Has the effect of being able to continue.

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

【図1】本発明に係わるデータ伝送装置の構成例を示す
ブロック図である。
FIG. 1 is a block diagram illustrating a configuration example of a data transmission device according to the present invention.

【図2】データ伝送システムの概略構成を示すブロック
図である。
FIG. 2 is a block diagram illustrating a schematic configuration of a data transmission system.

【図3】データ伝送方式に用いられる共有メモリの説明
図である。
FIG. 3 is an explanatory diagram of a shared memory used for a data transmission method.

【図4】データフレームのフォーマット例を示す図であ
る。
FIG. 4 is a diagram illustrating a format example of a data frame.

【図5】共有メモリの内部構成を示す概要図である。FIG. 5 is a schematic diagram showing an internal configuration of a shared memory.

【図6】伝送装置の電源投入直後のデータフレーム送信
タイミングの一例を示す図である。
FIG. 6 is a diagram illustrating an example of a data frame transmission timing immediately after power-on of a transmission device.

【図7】送信タイマ誤差がある時の動作例を示す送信タ
イミング図である。
FIG. 7 is a transmission timing chart showing an operation example when there is a transmission timer error.

【図8】送信データフレームがない場合の動作例を示す
送信タイミング図である。
FIG. 8 is a transmission timing chart showing an operation example when there is no transmission data frame.

【図9】送信データフレーム長が送信周期毎に異なった
場合の送信衝突についての説明図である。
FIG. 9 is an explanatory diagram of transmission collision when a transmission data frame length is different for each transmission cycle.

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

1、301〜303 伝送装置 23、300 伝送路 10 伝送制御回路 11 送受信制御回路 12 受信バッファ 13 送信タイマ 14 DMAC 15 送信バッファ 16 ダミーデータ用バッファ 17 選択回路 18 インタフェース回路 19、20内部バス 21 共有メモリ DESCRIPTION OF SYMBOLS 1, 301-303 Transmission device 23, 300 Transmission line 10 Transmission control circuit 11 Transmission / reception control circuit 12 Reception buffer 13 Transmission timer 14 DMAC 15 Transmission buffer 16 Dummy data buffer 17 Selection circuit 18 Interface circuit 19, 20 Internal bus 21 Shared memory

───────────────────────────────────────────────────── フロントページの続き (72)発明者 冨沢 宏 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 (72)発明者 中野 義弘 茨城県日立市大みか町五丁目2番1号 株 式会社日立製作所大みか工場内 Fターム(参考) 5K032 CA08 CA10 DB31 5K033 CA08 DB25  ──────────────────────────────────────────────────続 き Continuing on the front page (72) Inventor Hiroshi Tomizawa 5-2-1 Omikacho, Hitachi City, Ibaraki Prefecture Inside the Omika Plant, Hitachi, Ltd. (72) Inventor Yoshihiro Nakano 5-chome, Omikamachi, Hitachi City, Ibaraki Prefecture No. 1 F term in the Hitachi, Ltd. Omika factory (reference) 5K032 CA08 CA10 DB31 5K033 CA08 DB25

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 伝送路に共通結合された複数の伝送装置
間でCSMA/CD方式の伝送制御により相互にデータ
フレームの送受信を行うためのデータ伝送方法であっ
て、 前記各伝送装置にタイマ手段を設けると共に、各伝送装
置は、その電源が投入されると、自装置内のタイマ手段
に各伝送装置について同一値に定められたタイマ時間を
設定したのち任意のタイミングでデータフレームを送信
し、CSMA/CD方式の伝送制御のもとで最初にデー
タフレーム送信が成功すると前記タイマ手段を起動し、
この時点以降は、前記タイマ手段のタイムアップ時にデ
ータフレーム送信を行い、データフレーム送信が成功す
ると前記タイマ手段を起動するという動作を繰り返すよ
うにしたことを特徴とするデータ伝送方法。
1. A data transmission method for mutually transmitting and receiving a data frame by a CSMA / CD transmission control between a plurality of transmission devices commonly coupled to a transmission line, wherein each transmission device has a timer means. In addition, each transmission device, when its power is turned on, transmits a data frame at an arbitrary timing after setting a timer time set to the same value for each transmission device in its own timer means, When a data frame is transmitted successfully for the first time under the transmission control of the CSMA / CD system, the timer means is started,
After this point in time, the data transmission is performed when the timer is up, and the operation of activating the timer when the data frame transmission is successful is repeated.
【請求項2】 前記タイマ手段のタイムアップ時に送信
データがないかまたは送信データが準備されていないと
きは、予め用意したダミーデータフレームを送信するこ
とことを特徴とする請求項1に記載のデータ伝送方法。
2. The data according to claim 1, wherein a dummy data frame prepared in advance is transmitted when there is no transmission data or when transmission data is not prepared when the timer means times out. Transmission method.
【請求項3】 送信するデータフレームの長さを一定フ
レーム長として予め定めておくと共に、前記タイマ手段
タイムアップ時に送信要求のあるデータ長が前記一定フ
レーム長より短いときはダミーデータを付加して前記一
定フレーム長のデータフレームを送信するようにしたこ
とを特徴とする請求項1に記載のデータ伝送方法。
3. The length of a data frame to be transmitted is predetermined as a fixed frame length, and dummy data is added when the data length requested for transmission is shorter than the fixed frame length when the timer means times out. 2. The data transmission method according to claim 1, wherein the data frame having the fixed frame length is transmitted.
【請求項4】 前記タイマ手段のタイムアップ時に送信
データがないか又は準備されていないときは、前記タイ
ムアップ時にデータフレーム長に相当する時間を前記同
一値に定められたタイマ時間に加えた値を前記タイマ手
段のタイマ時間として次の送信タイミングを決定するよ
うにしたことを特徴とする請求項1に記載のデータ伝送
方法。
4. When there is no transmission data or when no transmission data is prepared when the timer means times out, a value obtained by adding a time corresponding to a data frame length at the time up to the timer time set to the same value. The data transmission method according to claim 1, wherein the next transmission timing is determined as a timer time of the timer means.
【請求項5】 前記同一値に定められたタイマ時間をT
sとし、また予め定めたデータフレームの基準送信時間
をT0としたとき、前記タイマ手段のタイムアップ時に
送信要求のあるデータの送信時間がTであると、そのデ
ータフレーム送信後に起動される前記タイマ手段のタイ
マ時間をTs+T0−Tとして次の送信タイミングを決定
するようにしたことを特徴とする請求項1に記載のデー
タ伝送方法。
5. The method according to claim 1, wherein the timer time set to the same value is T
s, and when the predetermined reference transmission time of the data frame is T0, and the transmission time of the data requested to be transmitted at the time of the timer means is T, the timer started after the data frame is transmitted. 2. The data transmission method according to claim 1, wherein the next transmission timing is determined by setting the timer time of the means to Ts + T0-T.
【請求項6】 伝送路に結合されてCSMA/CD方式
の伝送制御により互いにデータフレームの送受信を行う
伝送装置であって、 CSMA/CD方式の手順でもって伝送制御を行う第1
の制御手段と、伝送路に結合されたすべての伝送装置に
対して同一のタイマ時間を設定されるタイマ手段と、電
源投入後に最初にデータフレーム送信が成功するとその
時及びそれ以後のデータフレーム送信成功時ごとに前記
タイマ手段を起動する第2の制御手段と、前記最初のデ
ータフレーム送信以降は前記タイマ手段のタイムアップ
時点を送信タイミングとするように制御する第3の制御
手段とを備えたことを特徴とする伝送装置。
6. A transmission device coupled to a transmission path for mutually transmitting and receiving data frames under transmission control of the CSMA / CD system, wherein the transmission device performs transmission control according to a procedure of the CSMA / CD system.
Control means, a timer means for setting the same timer time for all the transmission devices coupled to the transmission line, and success of data frame transmission at that time and thereafter after the first successful data frame transmission after power-on. Second control means for activating the timer means every time, and third control means for controlling the time-up time of the timer means to be a transmission timing after the first data frame transmission. A transmission device characterized by the above-mentioned.
JP11070260A 1999-03-16 1999-03-16 Data transmission method and transmitter Pending JP2000269993A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP11070260A JP2000269993A (en) 1999-03-16 1999-03-16 Data transmission method and transmitter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP11070260A JP2000269993A (en) 1999-03-16 1999-03-16 Data transmission method and transmitter

Publications (1)

Publication Number Publication Date
JP2000269993A true JP2000269993A (en) 2000-09-29

Family

ID=13426404

Family Applications (1)

Application Number Title Priority Date Filing Date
JP11070260A Pending JP2000269993A (en) 1999-03-16 1999-03-16 Data transmission method and transmitter

Country Status (1)

Country Link
JP (1) JP2000269993A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006332949A (en) * 2005-05-25 2006-12-07 Mitsubishi Electric Corp Communication control method and device thereof
US7283553B2 (en) 2002-02-21 2007-10-16 Denso Corporation Data relay device and multiplex communication system
JP2007288378A (en) * 2006-04-14 2007-11-01 Fujitsu Ltd Data communication program, data communication method and mobile terminal device
JP2008199289A (en) * 2007-02-13 2008-08-28 Denso Corp Method and device for radio communication
JP2008294662A (en) * 2007-05-23 2008-12-04 Toyota Motor Corp Communication apparatus and communication system

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7283553B2 (en) 2002-02-21 2007-10-16 Denso Corporation Data relay device and multiplex communication system
JP2006332949A (en) * 2005-05-25 2006-12-07 Mitsubishi Electric Corp Communication control method and device thereof
JP2007288378A (en) * 2006-04-14 2007-11-01 Fujitsu Ltd Data communication program, data communication method and mobile terminal device
JP4651571B2 (en) * 2006-04-14 2011-03-16 富士通株式会社 Data communication program, data communication method, and portable terminal device
JP2008199289A (en) * 2007-02-13 2008-08-28 Denso Corp Method and device for radio communication
JP4492622B2 (en) * 2007-02-13 2010-06-30 株式会社デンソー Wireless communication method and apparatus
US8085706B2 (en) 2007-02-13 2011-12-27 Denso Corporation Wireless communication method and apparatus
JP2008294662A (en) * 2007-05-23 2008-12-04 Toyota Motor Corp Communication apparatus and communication system

Similar Documents

Publication Publication Date Title
US5935208A (en) Incremental bus reconfiguration without bus resets
US5919250A (en) Data transmission system used for plant control and based on local area network
KR101885935B1 (en) Method and apparatus for serial data transmission at a switchable data rate
US6618357B1 (en) Queue management for networks employing pause time based flow control
JPH0683221B2 (en) Data communication method and communication system
JP3165125B2 (en) Multiple access method in wireless communication
WO2011036701A1 (en) Wireless communication apparatus and communication program
JP3351744B2 (en) Data transmission system
US5706430A (en) Method and system for sequentially broadcasting data according to pre-assigned time slots with and without the reception of a synchronization packet
JP2000269993A (en) Data transmission method and transmitter
US20050251601A1 (en) Method and apparatus for the addition and removal of nodes from a common interconnect
JPH06175954A (en) Digital communication system and digital communication method
JP3948330B2 (en) Interconnect equipment between different networks
JP2001257679A (en) Method for reducing transmission data collision
EP4425887A1 (en) Locally unique mac address resolution
JPH07212376A (en) Data transfer system
JP2001217838A (en) Method for testing network load
JP2002135278A (en) Communication control unit and network system
JP4666369B2 (en) USB device
JP4087070B2 (en) Broadcast / ACK transmission method
JPS601951A (en) Local network
JPH0153820B2 (en)
JP2002281039A (en) Packet transmitter-receiver
EP1282259A1 (en) Method of determination of a synchronization symbol transmitting node in a TDMA communication system
JPH08149148A (en) Loop shaped serial communication procedure and loop shaped serial communication network