[go: up one dir, main page]

JPH0629962A - Method and equipment for multiplex transmission - Google Patents

Method and equipment for multiplex transmission

Info

Publication number
JPH0629962A
JPH0629962A JP20196992A JP20196992A JPH0629962A JP H0629962 A JPH0629962 A JP H0629962A JP 20196992 A JP20196992 A JP 20196992A JP 20196992 A JP20196992 A JP 20196992A JP H0629962 A JPH0629962 A JP H0629962A
Authority
JP
Japan
Prior art keywords
data
transmission
unit
common bus
sof
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
JP20196992A
Other languages
Japanese (ja)
Inventor
Tetsuya Terada
哲也 寺田
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.)
Mazda Motor Corp
Original Assignee
Mazda 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 Mazda Motor Corp filed Critical Mazda Motor Corp
Priority to JP20196992A priority Critical patent/JPH0629962A/en
Publication of JPH0629962A publication Critical patent/JPH0629962A/en
Pending legal-status Critical Current

Links

Landscapes

  • Time-Division Multiplex Systems (AREA)

Abstract

PURPOSE:To attain flexible arbitration taking the priority into account even when a transmission request comes with a delay more or less. CONSTITUTION:Units 1, 2 are connected to one and same common bus. The transmission processing from each of the units 1, 2 is implemented by sending data SOF indicating start of transmission, data PRI indicating priority, substantial data DATA to be sent and data EOF indicating end of transmission in this order to the common bus. When the unit 1 starts transmission of the SOF already at a time t2 when the unit 2 makes a transmission request, the unit 2 sends the PRI2 in matching with the end timing of the SOF. The unit 1 sends the PRI1 simultaneously and then collision takes place. When the priority of the PRI2 is higher than that of the PRI1, the PRI2 is valid on the common bus and the unit 1 stops its transmission. The unit 2 acquiring the transmission right on the way of transmission of the unit 1 finishes its transmission up to a time t4. The unit 1 starts the transmission again from the time t4.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は多重伝送方法および装
置、特に、同一のコモンバスに複数のユニットを接続
し、このコモンバスを時分割して利用することにより複
数のユニット間での多重伝送を可能にする多重伝送方法
および装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method and apparatus for multiplex transmission, and more particularly, multiple units can be connected to the same common bus and time-divisionally used for the common bus to enable multiplex transmission between plural units. The present invention relates to a multiplex transmission method and device.

【0002】[0002]

【従来の技術】複数のユニットを同一のコモンバスに接
続し、このコモンバスを時分割して利用することによ
り、複数のユニット間での多重伝送を行うシステムは、
様々な分野において用いられている。このような多重伝
送システムにおける重要な課題は、コモンバス上での信
号衝突をうまく調停することである。コモンバスへのデ
ータ送信を行うことができるのは、原則として、同一時
点ではただ1つのユニットだけであり、複数のユニット
が同時に送信要求を出した場合には、これをうまく調停
する必要がある。
2. Description of the Related Art A system for performing multiplex transmission between a plurality of units by connecting a plurality of units to the same common bus and using this common bus in a time division
It is used in various fields. An important issue in such a multiplex transmission system is to properly arbitrate signal collisions on the common bus. As a general rule, only one unit can transmit data to the common bus at the same time, and when a plurality of units make transmission requests at the same time, it is necessary to properly arbitrate this.

【0003】通常、、コモンバスに接続された複数のユ
ニットは、それぞれ重要度が異なる。このため、送信す
べきデータにそれぞれ優先度を定義しておき、この優先
度を考慮した調停を行うのが一般的である。たとえば、
特開平2−116235号公報には、常にコモンバスの
状態を監視し、信号衝突時の優先度判定を遅滞なく行う
技術が開示されており、特開平1−143537号公報
には、試行時間や回数に応じて優先度を高めてゆくよう
な技術が開示されている。
Usually, a plurality of units connected to a common bus have different degrees of importance. For this reason, it is general that the priority is defined for each data to be transmitted and the arbitration is performed in consideration of this priority. For example,
Japanese Unexamined Patent Publication No. 2-116235 discloses a technique of constantly monitoring the state of the common bus and performing priority determination at the time of signal collision without delay. Japanese Unexamined Patent Publication No. 1-143537 discloses the trial time and the number of trials. A technique for increasing the priority in accordance with the above is disclosed.

【0004】[0004]

【発明が解決しようとする課題】従来行われている優先
度を考慮した調停方法では、複数のユニットが同時に送
信要求を出した場合には、常に優先度の高いユニットか
らの送信が許可されることになるが、一方のユニットか
らの送信要求が他方のユニットからの送信要求よりも若
干遅れたような場合には、優先度に関わりなく、少しで
も先に送信要求を行ったユニットの方が送信権を獲得す
ることになる。このため、送信要求が少し遅れたユニッ
トは、たとえ優先度が非常に高くても、優先度は低いが
先に送信を開始したユニットの送信処理が完了するまで
は、送信権を獲得することができなくなってしまう。
In the conventional arbitration method considering priority, when a plurality of units simultaneously issue a transmission request, the transmission from the unit with a high priority is always permitted. However, if the transmission request from one unit lags behind the transmission request from the other unit, the unit that made the transmission request as soon as possible regardless of the priority You will acquire the transmission right. For this reason, a unit with a slightly delayed transmission request may acquire the transmission right until the transmission process of the unit that started transmission earlier is completed, even if the priority is very high. I can not do it.

【0005】そこで本発明は、送信要求が多少遅れた場
合であっても、優先度を考慮した柔軟な調停を行うこと
のできる多重伝送方法および装置を提供することを目的
とする。
Therefore, an object of the present invention is to provide a multiplex transmission method and apparatus capable of performing flexible arbitration in consideration of priority even when a transmission request is delayed a little.

【0006】[0006]

【課題を解決するための手段】(1) 本願第1の発明
は、同一のコモンバスに複数のユニットを接続し、この
コモンバスを時分割して利用することにより複数のユニ
ット間での多重伝送を可能にする多重伝送方法におい
て、各ユニットからの送信処理を、送信開始を示すデー
タSOF、優先度を示すデータPRI、送信すべき本来
のデータDATA、送信終了を示すデータEOF、の各
データをこの順にコモンバスに送出することにより行
い、1つの着目ユニットからの送信処理を行う際に、コ
モンバスに別なユニットからのデータSOFが既に送出
されていたときには、この別なユニットのデータSOF
の終了タイミングに合わせて、着目ユニットからデータ
PRIの送出を行い、別なユニットから送出されるデー
タPRIとの間でコモンバス上の衝突を生じさせ、衝突
の結果、着目ユニットが送出したデータPRIの方が高
い優先度を示していた場合には、引き続き、着目ユニッ
トからデータDATAおよびデータEOFを送出し、別
なユニットからのデータ送出を中止させ、衝突の結果、
別なユニットが送出したデータPRIの方が高い優先度
を示していた場合には、引き続き、別なユニットからデ
ータDATAおよびデータEOFを送出し、着目ユニッ
トからのデータ送出を中止させるようにしたものであ
る。
[Means for Solving the Problems] (1) In the first invention of the present application, a plurality of units are connected to the same common bus, and the common bus is used in a time division manner to perform multiplex transmission between the plurality of units. In the multiplex transmission method that enables the transmission processing from each unit, each data of the data SOF indicating the start of transmission, the data PRI indicating the priority, the original data DATA to be transmitted, and the data EOF indicating the end of transmission are When the data SOF from another unit has already been transmitted to the common bus when the transmission processing from one target unit is performed, the data SOF of this other unit is transmitted.
The data PRI is sent from the unit of interest in accordance with the end timing of the, and a collision occurs on the common bus with the data PRI sent from another unit. As a result of the collision, the data PRI of the unit of interest is sent. If the higher priority is shown, the data unit DATA and the data unit EOF are continuously transmitted from the target unit, the data transmission from another unit is stopped, and as a result of the collision,
When the data PRI sent by another unit has a higher priority, the data DATA and the data EOF are subsequently sent from another unit, and the data sending from the unit of interest is stopped. Is.

【0007】(2) 本願第2の発明は、同一のコモンバ
スに複数のユニットを接続し、このコモンバスを時分割
して利用することにより複数のユニット間での多重伝送
を可能にする多重伝送システムに適用するために、各ユ
ニットにおいて用いられる多重伝送装置において、送信
開始を示すデータSOF、優先度を示すデータPRI、
送信すべき本来のデータDATA、送信終了を示すデー
タEOF、を保持する送信バッファと、この送信バッフ
ァ内のデータを、所定の順序に従ってコモンバスに送出
するデータ送出手段と、このデータ送出手段を動作させ
るための送信クロックを発生させる送信クロック発生手
段と、コモンバスを監視しながら、データ送出手段への
送信クロックの供給を制御するとともに、送信バッファ
内のデータの送出順序を指示して送信処理を行う送信制
御手段と、を設け、制御手段が送信処理を行う際に、コ
モンバスが空き状態であるときには、送信バッファ内の
データを、SOF,PRI,DATA,EOFの順序で
送出するような制御を行い、制御手段が送信処理を行う
際に、コモンバスに別なユニットからのデータSOFが
既に送出されていたときには、この別なユニットのデー
タSOFの終了タイミングに合わせて、送信バッファ内
のデータPRIの送出を行い、別なユニットから送出さ
れるデータPRIとの間でコモンバス上の衝突を生じさ
せ、衝突の結果、自分が送出したデータPRIの方が高
い優先度を示していた場合には、引き続き、送出バッフ
ァ内のデータDATAおよびデータEOFを送出し、衝
突の結果、別なユニットが送出したデータPRIの方が
高い優先度を示していた場合には、別なユニットからの
送信が終了するまで送信処理を中止する制御を行うよう
にしたものである。
(2) A second invention of the present application is a multiplex transmission system which enables multiplex transmission between a plurality of units by connecting a plurality of units to the same common bus and using the common bus in a time division manner. In the multiplex transmission device used in each unit, the data SOF indicating the start of transmission, the data PRI indicating the priority,
A transmission buffer holding the original data DATA to be transmitted and data EOF indicating the end of transmission, data transmission means for transmitting the data in this transmission buffer to the common bus in a predetermined order, and this data transmission means are operated. For controlling the supply of the transmission clock to the data transmission means while monitoring the common bus and the transmission clock generation means for generating the transmission clock for transmission, and instructing the transmission order of the data in the transmission buffer and performing the transmission processing A control means is provided, and when the control means performs transmission processing, when the common bus is in an empty state, control is performed such that the data in the transmission buffer is sent in the order of SOF, PRI, DATA, and EOF. When the control means performs the transmission process, the data SOF from another unit has already been sent to the common bus. At times, the data PRI in the transmission buffer is transmitted in synchronization with the end timing of the data SOF of the different unit, causing a collision on the common bus with the data PRI transmitted from the different unit. As a result, when the data PRI sent by itself has a higher priority, the data DATA and the data EOF in the send buffer are continuously sent, and as a result of the collision, the data PRI sent by another unit is changed. In the case where the higher priority is shown, the control for canceling the transmission processing is performed until the transmission from another unit is completed.

【0008】[0008]

【作 用】コモンバスを用いた多重伝送方法における送
信処理は、送信開始を示すデータSOF、優先度を示す
データPRI、送信すべき本来のデータDATA、送信
終了を示すデータEOF、の各データをこの順にコモン
バスに送出することにより行うのが一般的である。従来
の調停方法では、先行するユニットが、データSOFを
コモンバス上に既に送出し始めてしまったら、もはやこ
の先行するユニットから送信権を奪うことはできなかっ
たため、どんなに優先度が高いユニットであっても、こ
の先行するユニットの送信処理が完了するまで待機しな
ければならなかった。これに対し、本発明では、先行す
るユニットが、既にデータSOFをコモンバス上に送出
していた場合、この先行するユニットのデータSOFの
終了タイミングに合わせて、データPRIの送出を行う
のである。したがって、複数のユニットからのデータP
RIが、コモンバス上で衝突することになる。いわゆる
コリジョン・ディテクトの手法を用いれば、このような
衝突が生じたとき、より優先度の高いデータPRIのみ
をコモンバス上で有効とすることができる。本発明で
は、データPRIの衝突時の優先度の相違を各ユニット
で判断させ、データPRIに後続するデータDATAお
よびデータEOFの送出を、優先度の高いユニットにの
み行わせるようにしている。このため、優先度の低いユ
ニットが既にデータSOFの送出を開始していたとして
も、優先度の高いユニットは、途中からこの送信権を奪
うことができるようになる。
[Operation] In the transmission process in the multiplex transmission method using the common bus, each data of the data SOF indicating the start of transmission, the data PRI indicating the priority, the original data DATA to be transmitted, and the data EOF indicating the end of transmission are It is generally performed by sequentially sending out to a common bus. In the conventional arbitration method, even if the preceding unit has already begun to send out the data SOF on the common bus, it is no longer able to deprive the preceding unit of the transmission right. , Had to wait until the transmission process of this preceding unit was completed. On the other hand, in the present invention, when the preceding unit has already transmitted the data SOF to the common bus, the data PRI is transmitted at the end timing of the data SOF of the preceding unit. Therefore, data P from multiple units
RI will collide on the common bus. By using a so-called collision detect method, when such a collision occurs, only the data PRI having a higher priority can be made effective on the common bus. According to the present invention, each unit determines the difference in priority at the time of collision of the data PRI, and the data DATA and the data EOF subsequent to the data PRI are sent only to the unit having a high priority. For this reason, even if a unit with a low priority has already started sending the data SOF, a unit with a high priority can take away the transmission right from the middle.

【0009】[0009]

【実施例】以下、本発明を図示する実施例に基づいて説
明する。図1は、コモンバスを用いた一般的な多重伝送
システムの概略を示す図である。この例では、コモンバ
ス100に、5つのユニット1〜5が接続されている。
コモンバス100には、同時には複数のデータを送信す
ることはできないので、同一時点では1つのユニットに
対してのみ送信権が与えられ、いわゆる時分割の多重伝
送が行われることになる。
The present invention will be described below based on illustrated embodiments. FIG. 1 is a diagram showing an outline of a general multiplex transmission system using a common bus. In this example, five units 1 to 5 are connected to the common bus 100.
Since it is not possible to transmit a plurality of data to the common bus 100 at the same time, the transmission right is given to only one unit at the same time point, and so-called time division multiplex transmission is performed.

【0010】このような時分割多重伝送システムで一般
的に用いられているデータフォーマットの一例を図2に
示す。通常、各ユニットからの送信処理は、送信開始を
示すデータSOF(Start Of Frameの略)、優先度を示
すデータPRI(PRIorityの略)、送信すべき本来のデ
ータDATA、送信終了を示すデータEOF(End OfFr
ameの略)、の各データをこの順にコモンバスに送出す
ることにより行う。図2(a) は、この一般的なデータフ
ォーマットを示すものである。ここで、SOFおよびE
OFは、全ユニット共通の所定のコードであるが、PR
Iは各ユニットごとに異なるコードが設定される。ま
た、DATAも当然ながら各ユニットごとに異なる値と
なる。したがって、たとえばユニット1が送出するデー
タは、図2(b) に示すように、SOF,PRI1,DA
TA1,EOFとなるが、ユニット2が送出するデータ
は、図2(c) に示すように、SOF,PRI2,DAT
A2,EOFとなる。
FIG. 2 shows an example of a data format generally used in such a time division multiplex transmission system. In general, the transmission process from each unit includes data SOF (abbreviation of Start Of Frame) indicating transmission start, data PRI (abbreviation of PRIority) indicating priority, original data DATA to be transmitted, data EOF indicating transmission end. (End Of Fr
ame), and each data is sent to the common bus in this order. FIG. 2A shows this general data format. Where SOF and E
OF is a predetermined code common to all units, but PR
For I, a different code is set for each unit. Also, DATA naturally has a different value for each unit. Therefore, for example, the data transmitted by the unit 1 is SOF, PRI1, DA as shown in FIG. 2 (b).
Although it becomes TA1, EOF, the data sent by the unit 2 is SOF, PRI2, DAT as shown in FIG. 2 (c).
It becomes A2, EOF.

【0011】いま、ユニット1,2から同時に送信要求
が出されたとすると、コモンバス100上には、両ユニ
ットから同時にSOFが送出され、続いて、PRI1と
PRI2とがコモンバス上で衝突することになる。この
ような優先度を示すコードがコモンバス上で衝突した場
合、通常、コリジョン・ディテクト(Collision Detec
t)という手法によって、優先度の高い方のコードがコ
モンバス上で有効になる。たとえば、コモンバス上で、
論理“0”と論理“1”とが衝突したときに、論理
“1”が有効となるようなハードウエア構成にしておけ
ば(逆に論理“0”が有効となるようにしてもよい)、
数値の大きなコードほど優先度が高くなる。これを具体
例で説明しよう。仮に、PRIが4ビットのコードであ
るとし、PRI1=「0011」、PRI2=「010
1」であったとしよう。コモンバス100には、これら
のコードの上位ビット側から1ビットずつが順に送出さ
れるとすると、まず、PRI1の論理“0”とPRI2
の論理“0”とがコモンバス上に送出される。たまたま
同じ論理値なのでコモンバスは論理“0”となり、衝突
の問題は生じない。ところが、2ビット目は、PRI1
の論理“0”とPRI2の論理“1”とがコモンバス上
に送出され、論理の衝突が起こる。この場合、論理
“1”が有効となるようなハードウエアを構成しておけ
ば、コモンバスは論理“1”となる。この時点で、ユニ
ット1は、自分が論理“0”を送出しているにもかかわ
らず、実際にはコモンバスが論理“1”になっているこ
とを認識することができる。このように、自分が送出し
ている論理がコモンバスに正しく送出できなかったとき
には、より優先度の高い他のユニットとの衝突が起こっ
たものと判断し、それ以後の送信処理を中止する。した
がって、3ビット目,4ビット目は、PRI2のみが送
出され、それ以後はDATA2のみが送出される。これ
が、一般的に利用されているコリジョン・ディテクトの
手法である。
Now, if transmission requests are issued from the units 1 and 2 at the same time, SOFs are simultaneously sent from both units to the common bus 100, and subsequently PRI1 and PRI2 collide with each other on the common bus. . When codes with such a priority collide on the common bus, it is usually the Collision Detec.
By the method of t), the code with the higher priority becomes effective on the common bus. For example, on the common bus,
If the hardware configuration is such that the logic "1" becomes valid when the logic "0" and the logic "1" collide (conversely, the logic "0" may become valid). ,
The higher the number, the higher the priority. Let me explain this with a concrete example. If the PRI is a 4-bit code, PRI1 = “0011” and PRI2 = “010”.
Suppose it was 1 ”. Assuming that one bit at a time is sent to the common bus 100 from the upper bit side of these codes, first, the logic "0" of PRI1 and PRI2.
And a logic "0" are transmitted on the common bus. Since the same logical value happens to be the same, the common bus becomes a logical "0" and the problem of collision does not occur. However, the second bit is PRI1
Logic "0" of PRI2 and logic "1" of PRI2 are transmitted to the common bus, and a logic collision occurs. In this case, if the hardware is configured such that the logic "1" is valid, the common bus becomes the logic "1". At this point, the unit 1 can recognize that the common bus is actually at the logic "1" even though the unit 1 sends out the logic "0". In this way, when the logic it is sending cannot be correctly sent to the common bus, it is determined that a collision with another unit having a higher priority has occurred, and transmission processing thereafter is stopped. Therefore, for the third and fourth bits, only PRI2 is transmitted, and thereafter, only DATA2 is transmitted. This is a commonly used collision detect method.

【0012】従来の多重伝送方法では、上述のように、
複数のユニットにおいて、同時に送信要求が出され同時
にSOFの送出を開始した場合には、より優先度の高い
ユニットが送信権を獲得し、優先度の低いユニットは送
信を中止する。ところが、送信要求が若干でも遅れた場
合には、常に、先にSOFの送出を開始したユニットに
送信権が与えられてしまう。これを図3のタイムチャー
トで示そう。いま、時刻t1においてユニット1が送信
要求を出し、これに少し遅れた時刻t2においてユニッ
ト2が送信要求を出した場合を考える。時刻t1におい
て、コモンバスが空きの状態であれば、ユニット1は送
信権を獲得し、SOFをコモンバスに送出し始める。し
たがって、時刻t2において、ユニット2が送信要求を
出したとしても、コモンバスには既にユニット1からの
SOFが送出されているため、ユニット2は送信権を得
ることができない。ユニット1は、そのまま送信処理を
続け、時刻t1〜t3に至るまでに、SOF,PRI
1,DATA1,EOFを送出する。ユニット2は、時
刻t3において、コモンバス上でEOFの送出が完了し
たことを認識し、ここで初めて送信権を確保する。こう
して、ユニット2は、時刻t3〜t4に至るまでに、S
OF,PRI2,DATA2,EOFを送出する。結
局、コモンバス上には、図示するようなデータが送出さ
れるようになる。このような送信手順は、優先度には無
関係である。すなわち、PRI2がPRI1よりも高い
優先度を示すものであったとしても、ユニット1が少し
でも先に送信を開始した場合には、ユニット2はユニッ
ト1の送信完了を待たねばならなくなる。これが、従来
の多重伝送方法の問題点である。
In the conventional multiplex transmission method, as described above,
When a plurality of units simultaneously issue transmission requests and simultaneously start sending SOF, a unit with a higher priority acquires the transmission right and a unit with a lower priority stops the transmission. However, if the transmission request is delayed even slightly, the transmission right is always given to the unit that has started the transmission of the SOF first. This will be shown in the time chart of FIG. Now, consider a case where the unit 1 issues a transmission request at time t1 and the unit 2 issues a transmission request at a time t2 which is slightly delayed from this. At time t1, if the common bus is idle, unit 1 acquires the transmission right and starts sending SOF to the common bus. Therefore, at time t2, even if the unit 2 issues a transmission request, the unit 2 cannot obtain the transmission right because the SOF from the unit 1 has already been sent to the common bus. The unit 1 continues the transmission process as it is, and by the time t1 to t3, SOF, PRI
1, DATA1, EOF are transmitted. At time t3, the unit 2 recognizes that the transmission of the EOF is completed on the common bus, and secures the transmission right for the first time here. In this way, the unit 2 is set to S by the time t3 to t4.
It sends OF, PRI2, DATA2, and EOF. Eventually, the data as shown in the figure will be transmitted to the common bus. Such a transmission procedure is independent of priority. That is, even if PRI2 has a higher priority than PRI1, if unit 1 starts transmitting earlier, unit 2 will have to wait for the completion of transmission of unit 1. This is a problem of the conventional multiplex transmission method.

【0013】本発明の多重伝送方法は、このような問題
点を次のような処理を行うことにより解決したものであ
る。いま、図4のタイムチャートにおける時刻t1にお
いてユニット1が送信要求を出し、これに少し遅れた時
刻t2においてユニット2が送信要求を出した場合を考
える。時刻t1において、コモンバスが空きの状態であ
れば、ユニット1は取り敢えず送信権を獲得し、SOF
をコモンバスに送出し始める。次に、時刻t2におい
て、ユニット2が送信要求を出す。本発明では、各ユニ
ットは、送信処理を行う際に、コモンバスを監視し、も
し別なユニットからのSOFが既に送出されていたとき
には、この別なユニットのSOFの終了タイミングに合
わせてPRIの送出を行う。すなわち、図4に示す例で
は、ユニット2が送信を行おうとした時刻t2におい
て、コモンバスには既に別なユニット1からのSOFが
送出されている。そこで、このSOFの終了タイミング
である時刻t3に合わせて、ユニット2はPRI2の送
出を行う(ユニット2はSOFの送出は行わない)。一
方、先に送信を開始したユニット1は、SOFに引き続
いてPRI1の送出を行おうとする。このため、コモン
バス上では、PRI1とPRI2の衝突が起こる。
The multiplex transmission method of the present invention solves such a problem by performing the following processing. Now, consider a case where the unit 1 issues a transmission request at time t1 in the time chart of FIG. 4 and the unit 2 issues a transmission request at time t2 which is a little later than this. At time t1, if the common bus is empty, the unit 1 acquires the transmission right for the time being, and the SOF
To send to the common bus. Next, at time t2, the unit 2 issues a transmission request. According to the present invention, each unit monitors the common bus when performing the transmission process, and if the SOF from another unit has already been transmitted, the PRI is transmitted at the end timing of the SOF of the other unit. I do. That is, in the example shown in FIG. 4, the SOF from another unit 1 has already been sent to the common bus at the time t2 when the unit 2 tries to transmit. Therefore, the unit 2 sends out PRI2 at the time t3 which is the end timing of this SOF (the unit 2 does not send out SOF). On the other hand, the unit 1 which has started the transmission first tries to transmit the PRI1 subsequent to the SOF. Therefore, the PRI1 and PRI2 collide on the common bus.

【0014】この衝突は、前述したコリジョン・ディテ
クトの手法によって処理される。たとえば、PRI1=
「0011」、PRI2=「0101」であったとし、
PRI2の優先度の方が高い場合を考える。この場合、
前述したように、コモンバスに2ビット目が送出された
時点で、ユニット1は、優先度の高いユニットとの衝突
が生じたことを認識し、今まで獲得していた送信権を放
棄する。すなわち、ユニット1は、PRI1を途中まで
送出したところで、送信処理を中止する。一方、ユニッ
ト2は、PRI1がコモンバスに正常に送出されたこと
により送信権を奪取できたことを認識し、引き続き、D
ATA2およびEOFを送出する。結局、コモンバス上
には、時刻t1〜t4に至るまでに、SOF,PRI
2,DATA2,EOFが送出されることになる。ここ
で、実際には、SOFはユニット1が送出したものであ
り、以後のPRI2,DATA2,EOFはユニット2
が送出したものである。しかし、これらのデータを受信
する側では、SOF,PRI2,DATA2,EOFと
いう正しいデータフォーマットで受信できるため、ユニ
ット2が全データを送出した場合と同じに取り扱うこと
ができる。こうして、時刻t4において、ユニット2が
送信を完了すると、ユニット1は、自分のデータ送信処
理を最初からやり直し、時刻t4〜t5に至るまでに、
SOF,PRI1,DATA1,EOFの送出を行う。
This collision is handled by the above-mentioned collision detect method. For example, PRI1 =
If “0011” and PRI2 = “0101”,
Consider a case where the priority of PRI2 is higher. in this case,
As described above, at the time when the second bit is transmitted to the common bus, the unit 1 recognizes that a collision with a unit having a high priority has occurred, and abandons the transmission right that has been acquired so far. That is, the unit 1 stops the transmission process when the PRI 1 has been transmitted halfway. On the other hand, the unit 2 recognizes that the transmission right has been taken due to the normal transmission of the PRI 1 to the common bus.
Send out ATA2 and EOF. Eventually, on the common bus, SOF and PRI are reached by the time t1 to t4.
2, DATA2, EOF will be transmitted. Here, the SOF is actually sent by the unit 1, and the subsequent PRI2, DATA2, and EOF are the unit 2
Was sent by. However, the side receiving these data can receive them in the correct data format of SOF, PRI2, DATA2, EOF, so that it can be handled in the same way as when the unit 2 sends all the data. In this way, when the unit 2 completes the transmission at the time t4, the unit 1 restarts its own data transmission process from the beginning, until the time t4 to t5.
SOF, PRI1, DATA1, and EOF are transmitted.

【0015】図3に示す従来の多重伝送方法による結果
と、図4に示す本発明の多重伝送方法による結果とを比
較すれば、本発明により従来の問題点が解決されている
ことが容易に理解できよう。すなわち、本発明によれ
ば、優先度の高いユニット2の送信要求が、優先度の低
いユニット1の送信要求よりも若干遅れた場合であって
も、ユニット1の送信権をユニット2が途中から奪取す
ることができるため、優先度を忠実に考慮した調停が可
能になる。
By comparing the result of the conventional multiplex transmission method shown in FIG. 3 with the result of the multiplex transmission method of the present invention shown in FIG. 4, it is easy to understand that the conventional problems have been solved by the present invention. You can understand. That is, according to the present invention, even if the transmission request of the unit 2 having a high priority is slightly delayed from the transmission request of the unit 1 having a low priority, the transmission right of the unit 1 can be transmitted from the unit 2 by the unit 2 from the middle. Since it can be captured, arbitration that faithfully considers the priority becomes possible.

【0016】図5は、図4に示すような多重伝送方法を
実施するための多重伝送装置の一例を示すブロック図で
ある。各ユニットに、図5に示すような多重伝送装置を
設けておけば、本発明による多重伝送方法が可能にな
る。図5のブロック図において、送信すべきデータは、
送信バッファ10内に一時保持される。図には、送信バ
ッファ10内に、SOF,PRI,DATA,EOF
が、この順に保持されている状態が示されている。送信
バッファ10内のデータは、シフトレジスタ20へ順番
に転送される。シフトレジスタ20は、転送されてきた
データを上位側から1ビットずつ、送信データとしてコ
モンバス100へ送出する機能を有する。この1ビット
ずつのシフト動作は、送信クロック発生手段30におい
て発生される送信クロックの供給によって行われる。一
方、このような送信処理の制御は、送信制御手段40に
よって行われる。送信制御手段40は、コモンバス10
0を監視しながら、ANDゲート50に与える制御信号
を出力するとともに、送信バッファ10に対するデータ
の送出順序を指示する。ANDゲート50は、送信制御
手段40から与えられる制御信号に基づいて、送信クロ
ック発生手段30で発生した送信クロックのシフトレジ
スタ20への供給を、許可したり禁止したりする。
FIG. 5 is a block diagram showing an example of a multiplex transmission device for carrying out the multiplex transmission method as shown in FIG. If the multiplex transmission device as shown in FIG. 5 is provided in each unit, the multiplex transmission method according to the present invention becomes possible. In the block diagram of FIG. 5, the data to be transmitted is
It is temporarily stored in the transmission buffer 10. In the figure, SOF, PRI, DATA, and EOF are stored in the transmission buffer 10.
However, the state in which they are held in this order is shown. The data in the transmission buffer 10 is sequentially transferred to the shift register 20. The shift register 20 has a function of sending the transferred data bit by bit from the upper side to the common bus 100 as transmission data. This bit-by-bit shift operation is performed by supplying the transmission clock generated by the transmission clock generating means 30. On the other hand, such control of the transmission process is performed by the transmission control means 40. The transmission control means 40 is the common bus 10.
While monitoring 0, it outputs a control signal to be given to the AND gate 50 and instructs the order of data transmission to the transmission buffer 10. The AND gate 50 permits or prohibits the supply of the transmission clock generated by the transmission clock generation means 30 to the shift register 20 based on the control signal given from the transmission control means 40.

【0017】送信制御手段40は、コモンバスを常に監
視し、従来の多重伝送装置で行われている通常の送信処
理を行うとともに、本発明特有の送信処理を行う機能を
有する。以下に、これらの処理を具体的に説明する。通
常の送信処理は、コモンバスが空き状態であるときに送
信を行う処理である。すなわち、送信バッファ10に所
定のデータの準備ができ、実際の送信処理を行う際に、
コモンバスが空き状態であれば、ANDゲート50に対
して、送信クロックの供給を許可するような制御信号を
与えるとともに、送信バッファ10に対して、SOF,
PRI,DATA,EOFの順序で送出するような指示
を与える。これにより、シフトレジスタ20には、SO
F,PRI,DATA,EOFの順序でデータが転送さ
れ、送信クロックの1周期ごとに、1ビットずつのデー
タがコモンバス100へ送出されてゆく。なお、この送
信処理の最中にも、送信制御手段40はコモンバス10
0を監視し、送出されたビットがコモンバス100上で
有効なビットとなっているか否かを判断する。もし送出
したビットと、実際にコモンバス100上に現れたビッ
トとが相違する場合には、より優先度の高いユニットか
らの送信データと衝突したものと判断し、送信処理を中
止する。すなわち、ANDゲート50に対して、送信ク
ロックの供給を禁止するような制御信号を与えるととも
に、送信バッファ10に対して、送出順序を元に戻すよ
うな指示を与える。この場合は、コモンバスが再び空き
状態になった時点で、SOF,PRI,DATA,EO
Fの順序でのデータ送出が再度実行される。
The transmission control means 40 has a function of constantly monitoring the common bus and performing a normal transmission process performed by a conventional multiplex transmission device and a transmission process peculiar to the present invention. Hereinafter, these processes will be specifically described. The normal transmission process is a process of transmitting when the common bus is idle. That is, when the predetermined data is prepared in the transmission buffer 10 and the actual transmission processing is performed,
If the common bus is empty, a control signal for permitting the supply of the transmission clock is given to the AND gate 50, and the SOF,
It gives an instruction to send in the order of PRI, DATA, and EOF. As a result, the shift register 20 has an SO
Data is transferred in the order of F, PRI, DATA, and EOF, and one bit of data is sent to the common bus 100 for each cycle of the transmission clock. During the transmission process, the transmission control means 40 keeps the common bus 10
0 is monitored to determine whether the transmitted bit is a valid bit on the common bus 100. If the transmitted bit and the bit actually appearing on the common bus 100 are different, it is determined that the bit collides with the transmission data from the unit having a higher priority, and the transmission process is stopped. That is, the AND gate 50 is given a control signal for prohibiting the supply of the transmission clock, and the transmission buffer 10 is given an instruction for returning the sending order. In this case, when the common bus becomes empty again, SOF, PRI, DATA, EO
The data transmission in the order of F is executed again.

【0018】一方、本発明特有の送信処理は、送信処理
を行う際に、コモンバス100に別なユニットからのデ
ータSOFが既に送出されていたことが検出されたとき
の処理である。このときには、取り敢えず、ANDゲー
ト50に対して、送信クロックの供給を禁止するような
制御信号を与える。したがって、この時点では、コモン
バス100に対するデータ送出は行われない。送信制御
手段40は、コモンバス100を監視し続け、別なユニ
ットが送出したSOFの終了タイミングを認識し、この
終了タイミングに合わせて、ANDゲート50に送信ク
ロックの供給を許可する制御信号を与えるとともに、送
信バッファ10に対しては、SOFを飛び越して送信順
序をPRI,DATA,EOFとする指示を与える。こ
れにより、シフトレジスタ20にはまずPRIが転送さ
れ、コモンバス100には、PRIの上位側から1ビッ
トずつが送出される。すなわち、コモンバス上で別なユ
ニットが送出したPRIとの衝突が起こる。この送信処
理の最中に、送信制御手段40はコモンバス100を監
視し、送出されたビットがコモンバス100上で有効な
ビットとなっているか否かを判断する。もし送出したビ
ットと、実際にコモンバス100上に現れたビットとが
相違する場合には、より優先度の高いユニットからの送
信データと衝突したものと判断し、送信処理を中止す
る。すなわち、ANDゲート50に対して、送信クロッ
クの供給を禁止するような制御信号を与えるとともに、
送信バッファ10に対して、送出順序を元に戻すような
指示を与える。もし送出したビットと、実際にコモンバ
ス100上に現れたビットとが一致した場合には、送信
権を途中から奪取できたものと判断し、PRIに続けて
DATAおよびEOFを送出し続ける。
On the other hand, the transmission process peculiar to the present invention is a process when it is detected that the data SOF from another unit has already been transmitted to the common bus 100 during the transmission process. At this time, for the time being, a control signal for prohibiting the supply of the transmission clock is given to the AND gate 50. Therefore, at this time point, data transmission to the common bus 100 is not performed. The transmission control means 40 continues to monitor the common bus 100, recognizes the end timing of the SOF sent by another unit, and supplies a control signal for permitting the supply of the transmission clock to the AND gate 50 in accordance with this end timing. The transmission buffer 10 is instructed to skip the SOF and set the transmission order to PRI, DATA, and EOF. As a result, the PRI is first transferred to the shift register 20, and one bit is sent to the common bus 100 from the upper side of the PRI. That is, a collision with the PRI sent by another unit on the common bus occurs. During this transmission process, the transmission control means 40 monitors the common bus 100 and determines whether the transmitted bit is a valid bit on the common bus 100. If the transmitted bit and the bit actually appearing on the common bus 100 are different, it is determined that the bit collides with the transmission data from the unit having a higher priority, and the transmission process is stopped. That is, a control signal for prohibiting the supply of the transmission clock is given to the AND gate 50, and
The transmission buffer 10 is instructed to restore the sending order. If the transmitted bit and the bit actually appearing on the common bus 100 match, it is determined that the transmission right can be taken from the middle, and DATA and EOF are continuously transmitted after PRI.

【0019】このように、図5に示す装置を用いれば、
図4に示した多重伝送方法を実施することができる。以
上、本発明を図示する実施例に基づいて説明したが、本
発明はこれらの実施例のみに限定されるものではなく、
この他にも種々の態様で実施可能である。特に、図5に
示すブロック図は、本発明を実現するためのハードウエ
ア構成の一例を示したものであり、この他にも種々のハ
ードウエアを用いて同等の装置を実現できる。また、図
2に示すデータフォーマットは一例を示したものであ
り、この他にデータのタイプや長さを示す領域、エラー
チェックコードをおく領域などを設けてもかまわない。
As described above, by using the device shown in FIG.
The multiplex transmission method shown in FIG. 4 can be implemented. Although the present invention has been described above based on the illustrated embodiments, the present invention is not limited to these embodiments,
Other than this, it can be implemented in various modes. In particular, the block diagram shown in FIG. 5 shows an example of a hardware configuration for implementing the present invention, and other various hardware can be used to implement an equivalent device. Further, the data format shown in FIG. 2 is an example, and in addition to this, an area indicating the type and length of data, an area for storing an error check code, and the like may be provided.

【0020】[0020]

【発明の効果】以上のとおり本発明によれば、先行する
ユニットが既にコモンバス上にデータを送出していた場
合であっても、より優先度の高いユニットによってこの
送信権を途中で奪取できるようにしたため、送信要求が
多少遅れた場合であっても、優先度を考慮した柔軟な調
停を行うことができるようになる。
As described above, according to the present invention, even if the preceding unit has already transmitted the data to the common bus, the transmission right can be intercepted by the unit having the higher priority. Therefore, even if the transmission request is delayed a little, it becomes possible to perform flexible arbitration in consideration of the priority.

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

【図1】コモンバス100を用いた一般的な多重伝送シ
ステムの概略を示す図である。
FIG. 1 is a diagram showing an outline of a general multiplex transmission system using a common bus 100.

【図2】図1に示す多重伝送システムで用いられる一般
的なデータフォーマットの一例を示す図である。
FIG. 2 is a diagram showing an example of a general data format used in the multiplex transmission system shown in FIG.

【図3】従来の多重伝送方法における問題点を示すタイ
ムチャートである。
FIG. 3 is a time chart showing problems in the conventional multiplex transmission method.

【図4】本発明の多重伝送方法によって図3に示す問題
点が解決されたことを示すタイムチャートである。
FIG. 4 is a time chart showing that the problem shown in FIG. 3 has been solved by the multiplex transmission method of the present invention.

【図5】本発明の一実施例に係る多重伝送装置の構成を
示すブロック図である。
FIG. 5 is a block diagram showing a configuration of a multiplex transmission device according to an embodiment of the present invention.

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

1〜5…ユニット 10…送信バッファ 20…シフトレジスタ 30…送信クロック発生手段 40…送信制御手段 50…ANDゲート 100…コモンバス SOF…送信開始を示すデータ PRI…優先度を示すデータ DATA…送信すべき本来のデータ EOF…送信終了を示すデータ 1 to 5 ... Unit 10 ... Transmission buffer 20 ... Shift register 30 ... Transmission clock generation means 40 ... Transmission control means 50 ... AND gate 100 ... Common bus SOF ... Data indicating start of transmission PRI ... Data indicating priority DATA ... To be transmitted Original data EOF ... Data indicating the end of transmission

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 同一のコモンバスに複数のユニットを接
続し、このコモンバスを時分割して利用することにより
複数のユニット間での多重伝送を可能にする多重伝送方
法であって、 各ユニットからの送信処理を、送信開始を示すデータS
OF、優先度を示すデータPRI、送信すべき本来のデ
ータDATA、送信終了を示すデータEOF、の各デー
タをこの順にコモンバスに送出することにより行い、 1つの着目ユニットからの送信処理を行う際に、コモン
バスに別なユニットからのデータSOFが既に送出され
ていたときには、この別なユニットのデータSOFの終
了タイミングに合わせて、前記着目ユニットからデータ
PRIの送出を行い、前記別なユニットから送出される
データPRIとの間でコモンバス上の衝突を生じさせ、 前記衝突の結果、前記着目ユニットが送出したデータP
RIの方が高い優先度を示していた場合には、引き続
き、前記着目ユニットからデータDATAおよびデータ
EOFを送出し、前記別なユニットからのデータ送出を
中止させ、 前記衝突の結果、前記別なユニットが送出したデータP
RIの方が高い優先度を示していた場合には、引き続
き、前記別なユニットからデータDATAおよびデータ
EOFを送出し、前記着目ユニットからのデータ送出を
中止させることを特徴とする多重伝送方法。
1. A multiplex transmission method which enables multiplex transmission between a plurality of units by connecting a plurality of units to the same common bus and using the common bus in a time division manner. Data S that indicates the start of transmission
Each of the OF, the data PRI indicating the priority, the original data DATA to be transmitted, and the data EOF indicating the end of transmission is sent to the common bus in this order, and when the transmission processing from one unit of interest is performed. , When the data SOF from another unit has already been sent to the common bus, the data PRI is sent from the unit of interest in accordance with the end timing of the data SOF of this other unit, and sent from the other unit. Data PRI that causes a collision on the common bus, and as a result of the collision, the data P sent by the unit of interest.
If RI indicates a higher priority, subsequently, the data unit DATA and the data EOF are transmitted from the target unit, the data transmission from the another unit is stopped, and as a result of the collision, the other unit Data P sent by the unit
When RI indicates a higher priority, the data transmission and the data EOF are continuously transmitted from the different unit, and the data transmission from the unit of interest is stopped.
【請求項2】 同一のコモンバスに複数のユニットを接
続し、このコモンバスを時分割して利用することにより
複数のユニット間での多重伝送を可能にする多重伝送シ
ステムに適用するために、各ユニットにおいて用いられ
る多重伝送装置であって、 送信開始を示すデータSOF、優先度を示すデータPR
I、送信すべき本来のデータDATA、送信終了を示す
データEOF、を保持する送信バッファと、 前記送信バッファ内のデータを、所定の順序に従ってコ
モンバスに送出するデータ送出手段と、 前記データ送出手段を動作させるための送信クロックを
発生させる送信クロック発生手段と、 コモンバスを監視しながら、前記データ送出手段への前
記送信クロックの供給を制御するとともに、前記送信バ
ッファ内のデータの送出順序を指示して送信処理を行う
送信制御手段と、 を備え、 前記制御手段が送信処理を行う際に、コモンバスが空き
状態であるときには、前記送信バッファ内のデータを、
SOF,PRI,DATA,EOFの順序で送出するよ
うな制御を行い、 前記制御手段が送信処理を行う際に、コモンバスに別な
ユニットからのデータSOFが既に送出されていたとき
には、この別なユニットのデータSOFの終了タイミン
グに合わせて、前記送信バッファ内のデータPRIの送
出を行い、前記別なユニットから送出されるデータPR
Iとの間でコモンバス上の衝突を生じさせ、前記衝突の
結果、自分が送出したデータPRIの方が高い優先度を
示していた場合には、引き続き、前記送出バッファ内の
データDATAおよびデータEOFを送出し、前記衝突
の結果、前記別なユニットが送出したデータPRIの方
が高い優先度を示していた場合には、前記別なユニット
からの送信が終了するまで送信処理を中止する制御を行
うことを特徴とする多重伝送装置。
2. A plurality of units are connected to the same common bus, and each unit is applied for application to a multiplex transmission system that enables multiplex transmission between the plurality of units by time-divisionally utilizing the common bus. , Which is a multiplex transmission device used in, data SOF indicating start of transmission, data PR indicating priority
I, original data DATA to be transmitted, and data EOF indicating the end of transmission, a transmission buffer, data transmission means for transmitting the data in the transmission buffer to a common bus in a predetermined order, and the data transmission means. A transmission clock generating means for generating a transmission clock for operating and a common bus being monitored, while controlling the supply of the transmission clock to the data transmitting means and instructing a transmission order of the data in the transmission buffer. Transmission control means for performing transmission processing, and, when the control means performs transmission processing, when the common bus is in an empty state, the data in the transmission buffer is
When the data SOF from another unit has already been sent to the common bus when the control means performs the sending process in the order of sending SOF, PRI, DATA, and EOF, this another unit is sent. Data PRI in the transmission buffer is transmitted in accordance with the end timing of the data SOF of the data PR.
When a collision occurs on the common bus with I, and as a result of the collision, the data PRI transmitted by itself has a higher priority, the data DATA and the data EOF in the transmission buffer continue. And, as a result of the collision, the data PRI sent by the different unit has a higher priority, control for stopping the transmission process until the transmission from the different unit is completed. A multiplex transmission device characterized by performing.
JP20196992A 1992-07-06 1992-07-06 Method and equipment for multiplex transmission Pending JPH0629962A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP20196992A JPH0629962A (en) 1992-07-06 1992-07-06 Method and equipment for multiplex transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP20196992A JPH0629962A (en) 1992-07-06 1992-07-06 Method and equipment for multiplex transmission

Publications (1)

Publication Number Publication Date
JPH0629962A true JPH0629962A (en) 1994-02-04

Family

ID=16449769

Family Applications (1)

Application Number Title Priority Date Filing Date
JP20196992A Pending JPH0629962A (en) 1992-07-06 1992-07-06 Method and equipment for multiplex transmission

Country Status (1)

Country Link
JP (1) JPH0629962A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010505361A (en) * 2006-09-28 2010-02-18 アギア システムズ インコーポレーテッド Interface with multi-level packet preemption based on balancing start and end indicators

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010505361A (en) * 2006-09-28 2010-02-18 アギア システムズ インコーポレーテッド Interface with multi-level packet preemption based on balancing start and end indicators

Similar Documents

Publication Publication Date Title
JP4617440B2 (en) Data communication system or method thereof
US9208037B2 (en) Duplexed operation processor control system, and duplexed operation processor control method
US20040073836A1 (en) Predecessor and successor type multiplex system
US20070220296A1 (en) Data processing apparatus
US7428660B2 (en) Starting control method, duplex platform system, and information processor
JPH0629962A (en) Method and equipment for multiplex transmission
JP4594124B2 (en) Communication system and communication method
KR100253446B1 (en) Data transmission system for transmitting data between plural microcomputer application instruments
JPH1174893A (en) Data communication device and its communication method
JP2578773B2 (en) Serial data transfer device
EP0288191B1 (en) Method and apparatus for data transfer handshake pipelining
JP2000040013A (en) Line abnormality detection method for redundant communication system
JP2851856B2 (en) Image data sending device and image forming device
JP2000092751A (en) Monitoring and control system
JPH08137792A (en) Device and method for synchronizing circuit using plurality of clock signals
JPH07212376A (en) Data transmission method
JP2000029507A (en) I / O transmission method
JP2778633B2 (en) Key signal communication method
KR970009750B1 (en) How to control the state of the Hi-Fi bus interrupt requester
KR100217819B1 (en) How to Control IIC Bus Usage
JP2000139080A (en) Parameter setting method
JPH0477940B2 (en)
JP2002373145A (en) Direct memory access device
JP2000004246A (en) Supervisory and control method for communication equipment
JPH06334668A (en) Multiplexed transmission system