JPH06205018A - Serial multiplex communication system - Google Patents
Serial multiplex communication systemInfo
- Publication number
- JPH06205018A JPH06205018A JP43A JP36009292A JPH06205018A JP H06205018 A JPH06205018 A JP H06205018A JP 43 A JP43 A JP 43A JP 36009292 A JP36009292 A JP 36009292A JP H06205018 A JPH06205018 A JP H06205018A
- Authority
- JP
- Japan
- Prior art keywords
- time
- communication
- communication path
- data
- control circuit
- 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
Links
- 238000004891 communication Methods 0.000 title claims abstract description 145
- 230000005540 biological transmission Effects 0.000 claims abstract description 63
- 238000005259 measurement Methods 0.000 claims abstract 2
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 claims description 4
- 238000000034 method Methods 0.000 claims description 4
- 238000001514 detection method Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 6
- 239000000470 constituent Substances 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
Landscapes
- Small-Scale Networks (AREA)
Abstract
(57)【要約】
【目的】エラー再送信を高速化し待ち時間を必要以上に
長くしないこと。
【構成】伝送遅延時間が1ビット周期に比べて短いベー
スバンドシリアル多重通信システムにおいて、シリアル
データを順次入力する入力シフトレジスタDと、出力デ
ータレジスタHに格納されている送信データを順次通信
路に出力する出力シフトレジスタGと、通信路の状態を
監視し通信路が空状態か否かを判定するモニタ回路C
と、通信路が使用状態から空状態に変化する毎に、その
変化時刻からノード毎に可変的に設定される所定の通信
待ち時間を計測し、その間の送信を禁止する待ち時間制
御回路Iと、送信要求が発生した場合には、待ち時間制
御回路による計測が所定の通信待ち時間の経過を示し、
且つ、その経過時においてモニタ回路により通信路の状
態が空状態と判定された時にのみ、出力シフトレジスタ
の送信データを順次通信路に出力する制御回路Kとを設
けた。
(57) [Summary] [Purpose] To speed up error re-transmission and not to wait longer than necessary. In a baseband serial multiplex communication system in which a transmission delay time is shorter than a 1-bit cycle, an input shift register D that sequentially inputs serial data and transmission data that is stored in an output data register H are sequentially transmitted to a communication path. An output shift register G that outputs and a monitor circuit C that monitors the state of the communication path and determines whether or not the communication path is empty.
And a waiting time control circuit I that measures a predetermined communication waiting time that is variably set for each node from the change time every time the communication path changes from the use state to an empty state, and prohibits transmission during that time. , When a transmission request occurs, the measurement by the waiting time control circuit indicates the passage of a predetermined communication waiting time,
Further, a control circuit K is provided for sequentially outputting the transmission data of the output shift register to the communication path only when the monitor circuit determines that the communication path is in an empty state after the elapse.
Description
【0001】[0001]
【産業上の利用分野】本発明は、データの1ビットの周
期に比べて伝送遅延時間が無視できるような通信距離が
短いシステムにおいて、複数のノードから自由に通信の
できるシリアル多重通信システムに関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a serial multiplex communication system in which a plurality of nodes can freely communicate with each other in a system having a short communication distance in which a transmission delay time can be ignored compared to a 1-bit cycle of data.
【0002】[0002]
【従来技術】近年、自動車においてエレクトロニクスシ
ステムが多用されてきている。これにともない、ワイヤ
ハーネスの増加は著しく、ハーネス削減のためにシリア
ルデータをベースバンドで伝送するシリアル多重通信が
重要になってきている。2. Description of the Related Art Recently, electronic systems have been widely used in automobiles. Along with this, the number of wire harnesses is remarkably increasing, and serial multiplex communication for transmitting serial data in a baseband is becoming important in order to reduce harnesses.
【0003】このシリアル多重通信システムでは、バス
状通信路を持ち、通信路が空き状態か否かを常時モニタ
し、空き状態を確認すると送信データを通信路に出力す
るCSMA/CD( Carrier Sense Multiple Accoss /C
ollision Detection) 方式がとられている。また、自動
車のように通信距離が短く、ビット周期に比べ伝送遅延
時間が無視できる通信システムではバスの同時性から各
ノードは同時にバス上のデータを読み出すことができる
ため、下記のようにバスのコンテンションを行ってい
る。In this serial multiplex communication system, a CSMA / CD (Carrier Sense Multiple) having a bus-like communication path, constantly monitoring whether or not the communication path is empty, and outputting transmission data to the communication path when the empty status is confirmed Accoss / C
ollision Detection) method is adopted. In addition, in a communication system such as an automobile, which has a short communication distance and in which the transmission delay time can be ignored compared to the bit period, each node can read data on the bus at the same time due to the simultaneity of the buses. We are doing contention.
【0004】2つ以上のノードから同時に送信が開始さ
れ、データビット(“1”,“0”)が衝突した場合
に、必ず一方のデータビット(“1”又は“0”)とな
る方式をとり、送信ノードでは送信データとバス上デー
タを比較し、送信データとバス上データが一致している
場合には、送信継続が可能となる。バスコンテンション
フィールドのデータを送信し終わった時点まで送信継続
ができたノードが送信権を有することになり、続けてデ
ータ送信を行う。A method in which, when transmission is started from two or more nodes at the same time and data bits ("1", "0") collide, one data bit ("1" or "0") is always generated. Then, the transmission node compares the transmission data with the data on the bus, and if the transmission data and the data on the bus match, the transmission can be continued. The node that has been able to continue transmission until the time when the data in the bus contention field has been transmitted will have the transmission right, and will continue to transmit data.
【0005】[0005]
【発明が解決しようとする課題】バス状通信路のコンテ
ンションではコンテンションフィールドの優先順位のよ
り高いデータが送信権を持つため、優先順位の高いデー
タが続くと、優先順位がより低いデータはずっと送信が
できなくなる。コンテンションフィールドのビット構成
上、全てのノードに対して全て異なる優先順位が割り振
られ、どの2つのノードも同一の優先順位をとることは
ありえない。従って、ほぼ同じ緊急度でも優先順位が必
ず異なることになり、通信が混雑している場合には、ず
っと早くから送信要求を出している送信データが、後か
ら送信要求を出した少しでも優先順位の高い送信データ
を待たなければならない。このため、Latency (送信要
求発生から実際に送信完了までの時間)が非常に大きく
なる場合があり問題となる。In the contention of the bus-like communication path, the data with higher priority in the contention field has the transmission right. Therefore, if the data with higher priority continues, the data with lower priority will be I can no longer send. Due to the bit configuration of the contention field, different priorities are all assigned to all nodes, and no two nodes can have the same priority. Therefore, even if the urgency is almost the same, the priority will always be different, and if the communication is congested, the transmission data that has issued a transmission request much earlier will have a priority even if a later transmission request is issued. You have to wait for high send data. For this reason, Latency (the time from the generation of a transmission request to the actual completion of transmission) may become very large, which is a problem.
【0006】本発明は上記課題を解決するために成され
たものであり、その目的は、CSMA/CD方式のシリ
アル多重通信システムにおいて、たまたま送信優先順位
が低く設定された送信データでも送信待ち時間が必要以
上に長くならないようにするとともに、通信エラーに対
する再送処理を高速化することにある。The present invention has been made to solve the above problems, and an object thereof is a transmission waiting time even for transmission data that happens to be set to a low transmission priority in a CSMA / CD type serial multiplex communication system. Is to prevent it from becoming longer than necessary, and to speed up the retransmission processing for communication errors.
【0007】[0007]
【課題を解決するための手段】上記課題を解決するため
の発明の構成は、複数のノードを接続し、データの伝送
されるバス状通信路と、通信路に対してデータの出力及
び入力を行う通信制御回路とから成り、伝送遅延時間が
1ビット周期に比べ短く、通信制御回路は通信路を常時
監視し、送信する必要が生じた時に通信路が空いている
のを確認して通信を開始するCSMA/CD( Carrier
Sense Multiple Accoss /Collision Detection) 方式で
のシリアル多重通信システムにおいて、通信制御回路
に、通信路の状態を監視し、通信路が空状態か否かを判
定するモニタ回路と、通信路上のシリアルデータを順次
入力する入力シフトレジスタと、入力シフトレジスタに
入力された受信データを格納する入力データレジスタ
と、通信路に出力する送信データを格納する出力データ
レジスタと、出力データレジスタに格納されている送信
データを順次通信路に出力する出力シフトレジスタと、
通信路が使用状態から空状態に変化する毎に、その変化
時刻から前記ノード毎に可変的に設定される所定の通信
待ち時間を計測し、その間の送信を禁止する待ち時間制
御回路と、送信要求が発生した場合には、待ち時間制御
回路による計測が所定の通信待ち時間の経過を示し、且
つ、その経過時においてモニタ回路により通信路の状態
が空状態と判定された時にのみ、出力シフトレジスタの
送信データを順次通信路に出力する制御回路とを設けた
ことを特徴とする。The structure of the invention for solving the above-mentioned problems is to connect a plurality of nodes and to provide a bus-like communication path for transmitting data and an output and an input of data to the communication path. The communication delay time is shorter than the 1-bit cycle, and the communication control circuit constantly monitors the communication path and confirms that the communication path is available when it is necessary to transmit, and then performs communication. Start CSMA / CD (Carrier
Sense Multiple Accoss / Collision Detection) serial multiplex communication system, the communication control circuit monitors the status of the communication path and monitors whether the communication path is empty, and serial data on the communication path. Input shift register that inputs sequentially, input data register that stores the received data that is input to the input shift register, output data register that stores the transmission data that is output to the communication path, and transmission data that is stored in the output data register An output shift register for sequentially outputting
Each time the communication path changes from the in-use state to the empty state, a predetermined communication waiting time that is variably set for each node is measured from the change time, and a waiting time control circuit that prohibits transmission during that time, and a transmission When a request occurs, the output shift is measured only when the waiting time control circuit indicates that the predetermined communication waiting time has elapsed, and when the monitor circuit determines that the communication path is empty. And a control circuit for sequentially outputting the transmission data of the register to the communication path.
【0008】又、請求項2の発明は、通信待ち時間の可
変的な設定に特徴を有するものであり、計測される所定
の通信待ち時間には、初期値として所定の第1の時間が
設定され、通信エラーに対する再送信に対しては前記第
1の時間よりも短い第2の時間が設定され、データ通信
が正常終了した場合には第1の時間よりも長い第3の時
間が設定され、所定条件の成立後に第3の時間に代えて
初期値の第1の時間が再設定されることを特徴とする。Further, the invention of claim 2 is characterized in that the communication waiting time is variably set, and the predetermined communication waiting time to be measured is set to a predetermined first time as an initial value. The second time shorter than the first time is set for the retransmission due to the communication error, and the third time longer than the first time is set when the data communication ends normally. The first time, which is an initial value, is reset instead of the third time after the predetermined condition is satisfied.
【0009】又、請求項3の発明は、通信路が前記第3
の時間だけ空状態を継続した時に、第3の時間に代えて
初期値の第1の時間が設定されることを特徴とする。According to a third aspect of the invention, the communication path is the third channel.
When the empty state is continued for the time of, the initial time of the first time is set instead of the third time.
【0010】[0010]
【作用】請求項1に記載の発明では、モニタ回路により
通信路が空状態か否かが判定され、待ち時間制御回路に
より通信路が使用状態から空状態に変化する毎に、その
変化時刻からノード毎に可変的に設定される所定の通信
待ち時間が計測され、その間の送信は禁止される。従っ
て、各ノードにおいて送信要求が発生した場合には、通
信路が空状態であることが確認されても、必ずしも直ぐ
にデータ送信を行うわけではなく、通信路が空状態にな
ってから各ノード毎に優先順位や送信状況等に応じて決
定された所定の通信待ち時間だけ待機した後になお通信
路が空状態である場合にのみ、初めて送信が許可され
る。According to the first aspect of the present invention, the monitor circuit determines whether or not the communication path is empty, and the waiting time control circuit detects the time when the communication path changes from the in-use state to the empty state. A predetermined communication waiting time that is variably set for each node is measured, and transmission during that time is prohibited. Therefore, when a transmission request is generated at each node, even if it is confirmed that the communication path is in an empty state, data transmission is not always performed immediately. In addition, transmission is permitted for the first time only when the communication path is still empty after waiting for a predetermined communication waiting time determined according to the priority order, the transmission status, and the like.
【0011】又、請求項2に記載の発明は、各ノード毎
に可変的に設定される通信待ち時間の設定方法に特徴を
有する。各ノードにおいて、通信待ち時間の初期値とし
て第1の時間が設定されている。従って、システムリセ
ット等の後に初めてデータを送信する場合には、通信路
が空状態になってから所定の第1の時間だけ待機した後
に、なお通信路が空状態であればデータの送信が可能と
なる。又、データの送信にエラーが発生すれば、通信待
ち時間には第1の時間よりも短い第2の時間が設定さ
れ、正常終了すれば、通信待ち時間には第1の時間より
も長い第3の時間が設定される。よって、真先に、通信
エラー時のデータの再送信が可能となる。又、通信エラ
ーが発生しなければ、最初のデータの送信要求が出され
たノードと最初でないデータの送信要求が出されたノー
ドとが競合した場合には、通信待ち時間の短い第1の時
間の設定されている最初のデータの送信要求が出されて
いるノードの送信が許可される。このようにして、一度
もデータを送信していないノードの送信が優先される。
その後、所定条件が満たされた時には、第3の時間に代
えて初期値の第1の時間が再設定されることになる。こ
の所定条件には、請求項3に記載の条件の他、通信待ち
時間が第1の時間に設定されているノードの数が所定値
より少なくなった時、第3の時間による通信待ち時間で
送信される送信頻度が所定値よりも大きくなった場合等
である。The invention according to claim 2 is characterized by a communication waiting time setting method which is variably set for each node. In each node, the first time is set as the initial value of the communication waiting time. Therefore, when transmitting data for the first time after a system reset, etc., it is possible to transmit data if the communication channel is still empty after waiting for a predetermined first time after the communication channel became empty. Becomes Also, if an error occurs in data transmission, the communication waiting time is set to a second time shorter than the first time, and if completed normally, the communication waiting time is set to a second time shorter than the first time. The time of 3 is set. Therefore, it is possible to immediately retransmit the data when a communication error occurs. If a communication error does not occur and the node that has issued the first data transmission request conflicts with the node that has issued a non-first data transmission request, the first time with a short communication waiting time The transmission of the node for which the first data transmission request is set is permitted. In this way, the transmission of the node that has never transmitted data is prioritized.
After that, when the predetermined condition is satisfied, the first time of the initial value is reset instead of the third time. In addition to the condition described in claim 3, when the number of nodes whose communication waiting time is set to the first time is less than a predetermined value, the predetermined condition is the communication waiting time by the third time. This is the case, for example, when the transmission frequency to be transmitted becomes higher than a predetermined value.
【0012】又、請求項3に記載の発明は、通信路が継
続して第3の時間だけ空状態となった場合には、その時
までに通信待ち時間として第1の時間の設定されている
ノードからの送信要求は発生していないことを意味する
ので、第3の時間の設定されているノードの通信待ち時
間は初期値の第1の時間に戻される。この繰り返しによ
り、送信エラー発生時の再送信が最優先され、次に、第
1の時間に再設定された後一度もデータを送信していな
いノードの送信が優先される。According to the third aspect of the invention, when the communication path is continuously in the empty state for the third time, the first time is set as the communication waiting time by that time. Since the transmission request from the node has not occurred, the communication waiting time of the node set for the third time is returned to the initial value of the first time. By repeating this, the highest priority is given to the retransmission when the transmission error occurs, and then the priority is given to the transmission of the node which has not transmitted any data after being reset at the first time.
【0013】[0013]
【発明の効果】このようにして、待ち時間制御回路と制
御回路とを設けたので、通信路が空状態になってからの
送信までの待ち時間を各ノード毎に可変的に設定するこ
とで、1つのノードにおいて継続して送信要求が発生し
た場合に通信路がそのノードの送信だけで占有され、他
のノードが送信できなくなるということが防止される。As described above, since the waiting time control circuit and the control circuit are provided, the waiting time from the empty communication path to the transmission can be variably set for each node. When a transmission request is continuously generated in one node, it is prevented that the communication path is occupied only by the transmission of that node and another node cannot transmit.
【0014】[0014]
【実施例】以下、本発明を具体的な実施例に基づいて説
明する。図1は本システムの全体構成を示している。本
システムは複数のノード間のデータ通信であって、各ノ
ードを構成する通信制御回路A1 〜An と各ノード間の
データ通信を行うバス状の通信路Bとからなる。EXAMPLES The present invention will be described below based on specific examples. FIG. 1 shows the overall configuration of this system. This system is for data communication between a plurality of nodes, and comprises communication control circuits A 1 to A n forming each node and a bus-like communication path B for performing data communication between each node.
【0015】図2は通信制御回路Aの構成をブロックダ
イヤグラムで示したものである。通信制御回路A1 〜A
n は通信路Bを常時モニタし、通信路Bが空いているか
否かを判定するモニタ回路Cと、通信路B上のシリアル
データを読み出す入力シフトレジスタDと、入力シフト
レジスタDに読み出した受信データを格納する入力デー
タレジスタEと、送信データと通信路B上のデータとを
比較し衝突しているかどうかを判定しかつ通信エラーを
検出する衝突検出・通信エラー検出回路Fと、通信路B
にシリアルデータを送出する出力シフトレジスタGと、
出力シフトレジスタGから送信する送信データを格納す
る出力データレジスタHと、通信待ち時間を制御する待
ち時間制御回路Iと、外部との入出力を処理する入出力
処理回路Jと、各構成回路間のデータ入出力を制御する
制御回路Kから成る。FIG. 2 is a block diagram showing the configuration of the communication control circuit A. Communication control circuit A 1 ~ A
n is a monitor circuit C that constantly monitors the communication path B and determines whether or not the communication path B is free, an input shift register D that reads serial data on the communication path B, and a reception that is read by the input shift register D. An input data register E for storing data, a collision detection / communication error detection circuit F for comparing transmission data and data on the communication path B to determine whether there is a collision and detecting a communication error, and a communication path B
An output shift register G for sending serial data to
Between the output data register H for storing the transmission data to be transmitted from the output shift register G, the waiting time control circuit I for controlling the communication waiting time, the input / output processing circuit J for processing the input / output with the outside, and the respective constituent circuits. Of the control circuit K for controlling the data input / output.
【0016】通信路Bは図示しない抵抗を介して正電源
にプルアップされており、出力シフトレジスタGの出力
段トランジスタはオープンコレクタ構成であり、このコ
レクタに通信路Bが接続されている。従って、通信路B
にデータが存在しない場合に通信路Bの信号レベルはH
レベルになっている。従って、前の通信が完了した後通
信路Bが連続してHレベルの時には、モニタ回路Cによ
り通信路Bが空状態と判定される。The communication path B is pulled up to a positive power source through a resistor (not shown), the output stage transistor of the output shift register G has an open collector structure, and the communication path B is connected to this collector. Therefore, communication path B
If there is no data in the channel, the signal level of communication channel B is H
It is at a level. Therefore, when the communication path B is continuously at the H level after the previous communication is completed, the monitor circuit C determines that the communication path B is empty.
【0017】入力シフトレジスタDは制御回路Kから出
力される同期信号に同期して、通信路B上の信号レベル
を検出して1ビットづつ順次入力している。図3に示す
1データフレームのデータ入力が完了し、通信エラーが
なかった場合には入力シフトレジスタDの値は入力デー
タレジスタEに取り込まれる。そして、必要に応じて制
御回路Kを介して入出力処理回路Jから外部に出力され
る。The input shift register D detects the signal level on the communication path B in synchronism with the synchronizing signal output from the control circuit K and sequentially inputs the detected signal level bit by bit. When the data input of one data frame shown in FIG. 3 is completed and there is no communication error, the value of the input shift register D is taken into the input data register E. Then, if necessary, it is output from the input / output processing circuit J to the outside via the control circuit K.
【0018】図3に示す通信データフレームにおいて、
SOMはデータフレームの先頭を示すフィールドであ
る。コンテンションフィールドはデータフレームの優先
順位を示すフィールドでバス競合が起きた時のバス専有
権を決めるのに使用されるフィールドであり、合わせて
送信ノードアドレス、受信ノードアドレス、データ識別
データ等のデータに付随する制御信号を示すフィールド
である。データは送信すべき実質的情報を含むデータの
フィールドである。誤り制御データフィールドは、CR
C(Cyclic Redundancy Check) 、パリティチェック等の
通信誤り検出信号、通信のハンドシェーク用応答信号等
の誤り制御用のフィールドである。EOMはデータフレ
ームの最後を示すフィールドである。In the communication data frame shown in FIG. 3,
SOM is a field indicating the beginning of the data frame. The contention field is a field that indicates the priority of the data frame and is used to determine the bus exclusive right when bus contention occurs, and also includes data such as the transmitting node address, the receiving node address, and data identification data. Is a field indicating a control signal associated with the. Data is a field of data that contains the substantive information to be transmitted. The error control data field is CR
These are fields for error control such as communication error detection signals such as C (Cyclic Redundancy Check), parity check, and response signals for communication handshake. EOM is a field indicating the end of the data frame.
【0019】通信制御回路A1 において送信要求が発生
すると、通信制御回路A1 では、送信すべき出力データ
レジスタH内のデータが出力シフトレジスタGに出力さ
れる。モニタ回路Cから通信路Bが空状態であることを
示す信号が制御回路Kに出力され、かつ待ち時間制御回
路Iから所定の通信待ち時間経過信号が出力されている
と、制御回路Kから同期信号が出力シフトレジスタGに
出力され、出力シフトレジスタGからデータフレームが
1ビットづつ通信路Bに出力される。[0019] When the transmission request at the communication control circuit A 1 is generated, the communication control circuit A 1, data of the output data register H to be transmitted is outputted to the output shift register G. When the monitor circuit C outputs a signal indicating that the communication path B is empty to the control circuit K and the wait time control circuit I outputs a predetermined communication wait time elapsed signal, the control circuit K synchronizes. The signal is output to the output shift register G, and the data frame is output from the output shift register G bit by bit to the communication path B.
【0020】この時入力シフトレジスタDには通信路B
の信号レベルが制御回路Kから出される同期信号に同期
して入力され、この入力データと送信データは1ビット
毎に衝突検出・通信エラー検出回路Fにて比較され、不
一致の場合には衝突が起きたとして、ただちに送信を停
止するための衝突検出信号を制御回路Kに出力する。At this time, the input shift register D has a communication path B.
Signal level is input in synchronization with the synchronization signal output from the control circuit K, and the input data and the transmission data are compared bit by bit in the collision detection / communication error detection circuit F. If they do not match, a collision occurs. If it occurs, the collision detection signal for immediately stopping the transmission is output to the control circuit K.
【0021】図4は待ち時間制御回路Iでの待ち時間設
定値の例を示すものである。通信エラー発生時の再送の
場合には直ちに再送できるよう通信待ち時間を第2の時
間である1データビット時間とする。そして、各ノード
でのリセット後の通信待ち時間を初期値としての第1の
時間である2データビット時間とする。また、各ノード
で一度データの送信が正常に終了した場合には、通信待
ち時間は第3の時間としての3データビット時間とす
る。このように設定すれば通信エラーによる再送時には
必ず続けてデータ送信が可能となる。又、一度、データ
を送信したノードは通信待ち時間が初期値の第1の時間
からより長い第3の時間に設定されるので、データを続
けて送信するノードよりは、リセット後未だ一度もデー
タを送信していないノードの送信要求が優先される。そ
して、所定条件が成立した時には、第3の時間は、初期
値の第1の時間に再設定(リセット)され、システムは
初期状態に戻る。この所定条件としては、本実施例で
は、通信路が第3の時間だけ空状態を継続することが採
用されている。FIG. 4 shows an example of waiting time setting values in the waiting time control circuit I. In the case of resending when a communication error occurs, the communication waiting time is set to a second data bit time which is the second time so that the resending can be performed immediately. Then, the communication waiting time after the reset at each node is set to 2 data bit times which is the first time as an initial value. Further, when the data transmission is normally completed once in each node, the communication waiting time is set to 3 data bit times as the third time. With this setting, data can be transmitted continuously without fail at the time of retransmission due to a communication error. In addition, since the communication waiting time of the node that once transmitted the data is set to the third time, which is longer than the initial value of the first time, the data that has not been transmitted after reset is more likely than the node that continuously transmits the data. The transmission request of the node that has not transmitted is prioritized. Then, when the predetermined condition is satisfied, the third time is reset (reset) to the initial value of the first time, and the system returns to the initial state. In this embodiment, as the predetermined condition, it is adopted that the communication path remains in the empty state for the third time.
【0022】図5は待ち時間制御回路の構成例を示すも
ので、図4の場合と同じ通信待ち時間設定値を3種類に
分けることを可能にするものである。モニタ回路Cから
出力された通信路Bがビジー状態から空状態に変化した
ことを示す状態遷移信号s6はカウンタ回路Lに入力し
ており、この信号s6によりカウンタ回路Lは、計数を
開始する。又、モニタ回路Cから出力されたバス空状態
信号s1は、制御回路Kを介して、AND ゲートOの一方
の端子に入力している。又、AND ゲートOの他方の端子
には、制御回路Kから1データビット周期のクロックs
2が入力している。カウンタ回路Lは、このAND ゲート
Oの出力するクロックs2を入力して、このクロックを
計数することにより、通信路Bがビジー状態から空状態
に変化した後の経過時間が測定される。FIG. 5 shows an example of the configuration of the waiting time control circuit, which makes it possible to divide the same communication waiting time set value into that of FIG. 4 into three types. The state transition signal s6 indicating that the communication path B output from the monitor circuit C has changed from the busy state to the empty state is input to the counter circuit L, and the signal s6 causes the counter circuit L to start counting. Further, the bus empty state signal s1 output from the monitor circuit C is input to one terminal of the AND gate O via the control circuit K. Further, the other terminal of the AND gate O is supplied with a clock s of one data bit period from the control circuit K.
2 is inputting. The counter circuit L inputs the clock s2 output from the AND gate O and counts this clock to measure the elapsed time after the communication path B changes from the busy state to the empty state.
【0023】デコーダ回路Mはカウンタ回路Lの値が上
記の3つの設定値、即ち、第1の時間、第2の時間、第
3の時間と、それぞれ、一致した時に一致信号s31,
s32,s33をMUX.Nに出力する回路である。M
UX.Nは制御回路Kから出力されるモード指令信号s
6、即ち、通信エラー後の再送信処理か、リセット後の
最初のデータ送信か、リセット後の最初でないデータ送
信かを示す信号と、一致信号s31,s32,s33を
入力している。そして、MUX.Nは、モード指令信号
s6に応じて、3本の一致信号s31,s32,s33
の中からどの一致信号を通信待ち時間経過信号s4とす
るかを選択する。待ち時間経過信号s4は、ORゲートP
に入力してORゲートPの出力によりカウンタ回路Lをリ
セットし、計数を停止させるとともに、制御回路Kに出
力される。In the decoder circuit M, when the value of the counter circuit L coincides with the above three set values, that is, the first time, the second time, and the third time, respectively, the coincidence signal s31,
s32, s33 to MUX. It is a circuit for outputting to N. M
UX. N is a mode command signal s output from the control circuit K
6, i.e., a signal indicating the retransmission processing after the communication error, the first data transmission after the reset, or the non-first data transmission after the reset, and the coincidence signals s31, s32, and s33 are input. Then, MUX. N is the three match signals s31, s32, s33 according to the mode command signal s6.
Which match signal is used as the communication waiting time elapsed signal s4 is selected. The waiting time elapsed signal s4 is the OR gate P
The counter circuit L is reset by the output of the OR gate P to stop counting and output to the control circuit K.
【0024】又、第3の時間の設定値を第1の時間に再
設定するための所定条件として、第3の時間だけ通信路
Bの空状態が継続した時とする場合、デコーダMの出力
する第3の時間と一致したことを示す一致信号s33を
所定条件判定信号s5として用いる。この所定条件判定
信号s5は制御回路Kに入力して、制御回路Kはこの信
号s5を入力した時には、モード指令信号s6をリッセ
ト後の最初のデータ送信を示す信号とする。又、所定条
件判定信号s5はORゲートPにも入力しており、ORゲー
トPの出力信号によりカウンタ回路Lはリセットされ
る。When the empty state of the communication path B is continued for the third time as a predetermined condition for resetting the set value of the third time to the first time, the output of the decoder M is output. The coincidence signal s33 indicating that the coincidence with the third time is performed is used as the predetermined condition determination signal s5. The predetermined condition determination signal s5 is input to the control circuit K, and when the control circuit K receives the signal s5, it sets the mode command signal s6 to a signal indicating the first data transmission after the reset. The predetermined condition determination signal s5 is also input to the OR gate P, and the output signal of the OR gate P resets the counter circuit L.
【図1】本発明の具体的な実施例に係るシリアル多重通
信システムの構成を示した構成図。FIG. 1 is a configuration diagram showing a configuration of a serial multiplex communication system according to a specific embodiment of the present invention.
【図2】上記実施例のシステムにおける通信制御回路の
構成を示したブロック図。FIG. 2 is a block diagram showing a configuration of a communication control circuit in the system of the above embodiment.
【図3】上記実施例のシステムにおけるデータフレーム
の構造を示した構造図。FIG. 3 is a structural diagram showing a structure of a data frame in the system of the above embodiment.
【図4】通信待ち時間の設定例を示した説明図。FIG. 4 is an explanatory diagram showing an example of setting a communication waiting time.
【図5】待ち時間制御回路の構成を示した回路図。FIG. 5 is a circuit diagram showing a configuration of a waiting time control circuit.
A1 〜An …通信制御回路 B…通信路 C…モニタ回路 D…入力シフトレジスタ E…入力データレジスタ G…出力シフトレジスタ H…出力データレジスタ I…待ち時間制御回路 K…制御回路A 1 to An ... Communication control circuit B ... Communication path C ... Monitor circuit D ... Input shift register E ... Input data register G ... Output shift register H ... Output data register I ... Wait time control circuit K ... Control circuit
Claims (3)
れるバス状通信路と、前記通信路に対してデータの出力
及び入力を行う通信制御回路とから成り、伝送遅延時間
が1ビット周期に比べ短く、前記通信制御回路は前記通
信路を常時監視し、送信する必要が生じた時に通信路が
空いているのを確認して通信を開始するCSMA/CD
方式でのシリアル多重通信システムにおいて、 前記通信制御回路は、 前記通信路の状態を監視し、通信路が空状態か否かを判
定するモニタ回路と、 前記通信路上のシリアルデータを順次入力する入力シフ
トレジスタと、 前記入力シフトレジスタに入力された受信データを格納
する入力データレジスタと、 前記通信路に出力する送信データを格納する出力データ
レジスタと、 前記出力データレジスタに格納されている送信データを
順次前記通信路に出力する出力シフトレジスタと、 前記通信路が使用状態から空状態に変化する毎に、その
変化時刻から前記ノード毎に可変的に設定される所定の
通信待ち時間を計測し、その間の送信を禁止する待ち時
間制御回路と、 送信要求が発生した場合には、前記待ち時間制御回路に
よる計測が前記所定の通信待ち時間の経過を示し、且
つ、その経過時において前記モニタ回路により通信路の
状態が空状態と判定された時にのみ、前記出力シフトレ
ジスタの送信データを順次前記通信路に出力する制御回
路とを有するシリアル多重通信システム。1. A bus-like communication path for connecting data between a plurality of nodes and a communication control circuit for outputting and inputting data to and from the communication path, wherein the transmission delay time is 1 bit cycle. The communication control circuit constantly monitors the communication path and starts communication after confirming that the communication path is free when it is necessary to transmit the CSMA / CD.
In the serial multiplex communication system according to the method, the communication control circuit monitors a state of the communication path and determines whether or not the communication path is empty, and an input for sequentially inputting serial data on the communication path. A shift register, an input data register that stores the received data input to the input shift register, an output data register that stores the transmission data that is output to the communication path, and a transmission data that is stored in the output data register. An output shift register that sequentially outputs to the communication path, and each time the communication path changes from an in-use state to an empty state, a predetermined communication waiting time variably set for each node from the change time is measured, A waiting time control circuit that prohibits transmission during that time and a measurement by the waiting time control circuit when a transmission request occurs Of the communication wait time, and only when the monitor circuit determines that the communication path is in an empty state at that time, the control circuit sequentially outputs the transmission data of the output shift register to the communication path. And a serial multiplex communication system having.
れる前記所定の通信待ち時間には、初期値として所定の
第1の時間が設定され、通信エラーに対する再送信に対
しては前記第1の時間よりも短い第2の時間が設定さ
れ、データ通信が正常終了した場合には前記第1の時間
よりも長い第3の時間が設定され、所定条件の成立後に
前記第3の時間に代えて初期値の前記第1の時間が再設
定されることを特徴とする請求項1に記載のシリアル多
重通信システム。2. In the waiting time control circuit, a predetermined first time is set as an initial value for the predetermined communication waiting time measured, and the first waiting time is set for retransmission due to a communication error. A second time shorter than the time is set, and when the data communication ends normally, a third time longer than the first time is set, and the third time is replaced after the predetermined condition is satisfied. The serial multiplex communication system according to claim 1, wherein the first time of an initial value is reset.
だけ空状態を継続したことであることを特徴とする請求
項2に記載のシリアル多重通信システム。3. The serial multiplex communication system according to claim 2, wherein the predetermined condition is that the communication path remains idle for the third time.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP43A JPH06205018A (en) | 1992-12-28 | 1992-12-28 | Serial multiplex communication system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP43A JPH06205018A (en) | 1992-12-28 | 1992-12-28 | Serial multiplex communication system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH06205018A true JPH06205018A (en) | 1994-07-22 |
Family
ID=18467863
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP43A Pending JPH06205018A (en) | 1992-12-28 | 1992-12-28 | Serial multiplex communication system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH06205018A (en) |
-
1992
- 1992-12-28 JP JP43A patent/JPH06205018A/en active Pending
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP2545508B2 (en) | Method of operating data processing device for vehicle and data processing device | |
| US8509257B2 (en) | CAN node, and communication method of communication system including CAN node | |
| JP2565631B2 (en) | Data frame transmission method and transmission system | |
| US4560985A (en) | Dual-count, round-robin distributed arbitration technique for serial buses | |
| US4332027A (en) | Local area contention network data communication system | |
| US4642630A (en) | Method and apparatus for bus contention resolution | |
| JPH0373636A (en) | Data synchronizing transmission system | |
| Specification | Bosch | |
| JPH08503353A (en) | Communication bus systems and stations used in such systems | |
| JPS61161842A (en) | Signal transmitting system | |
| KR100609493B1 (en) | How to send multiple sensor data in one can message | |
| JPH06205018A (en) | Serial multiplex communication system | |
| Hank | Pelican: A new can controller supporting diagnosis and system optimization | |
| CN1113397A (en) | Communication bus system with mitigation of slave station locking problem | |
| US6178177B1 (en) | Data-processing network having non-deterministic access, but having deterministic access time | |
| JP3217397B2 (en) | Data transmission method of communication control device | |
| JP2643089B2 (en) | Error detection and recovery system in parallel / serial bus | |
| JP2006253922A (en) | Gateway apparatus and data transfer method for the gateway apparatus | |
| JP3154626B2 (en) | Serial transmission device | |
| JP2874983B2 (en) | Communication device | |
| KR100374441B1 (en) | Relay unit between communication channels for a station and in particular an Ethernet network | |
| JPH03165138A (en) | Data transmitter | |
| JPH05233538A (en) | Serial data transfer device | |
| JPH05316125A (en) | Serial multiplex communication system | |
| CN117573586A (en) | Single-wire communication method, device and system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 7 Free format text: PAYMENT UNTIL: 20071102 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 8 Free format text: PAYMENT UNTIL: 20081102 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20081102 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 9 Free format text: PAYMENT UNTIL: 20091102 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 10 Free format text: PAYMENT UNTIL: 20101102 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20101102 Year of fee payment: 10 |
|
| FPAY | Renewal fee payment (prs date is renewal date of database) |
Year of fee payment: 11 Free format text: PAYMENT UNTIL: 20111102 |
|
| LAPS | Cancellation because of no payment of annual fees |