JPH0646732B2 - Multiple communication system of single communication line - Google Patents

Multiple communication system of single communication line

Info

Publication number
JPH0646732B2
JPH0646732B2 JP61050771A JP5077186A JPH0646732B2 JP H0646732 B2 JPH0646732 B2 JP H0646732B2 JP 61050771 A JP61050771 A JP 61050771A JP 5077186 A JP5077186 A JP 5077186A JP H0646732 B2 JPH0646732 B2 JP H0646732B2
Authority
JP
Japan
Prior art keywords
data
communication line
node
signal
transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP61050771A
Other languages
Japanese (ja)
Other versions
JPS62161232A (en
Inventor
司雄 佐藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honda Motor Co Ltd
Original Assignee
Honda Motor Co 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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP61050771A priority Critical patent/JPH0646732B2/en
Publication of JPS62161232A publication Critical patent/JPS62161232A/en
Publication of JPH0646732B2 publication Critical patent/JPH0646732B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 「産業上の利用分野」 この発明は、例えば、車両に搭載された複数の装置間に
おいて信号の授受を行う際に用いて好適な単一通信線の
多重通信方式に関する。
TECHNICAL FIELD The present invention relates to a single communication line multiplex communication system suitable for use in, for example, exchanging signals between a plurality of devices mounted on a vehicle. .

「従来の技術」 車両に搭載される送信システムあるいは受信システムと
しては、構成が簡単で軽量であることが望ましい。そこ
で、従来は2個のノード間を1本の通信線(光ファイ
バ,同軸ケーブル等)で接続するもの、複数のノード
間を1本の通信線と1本の同期信号線で接続するもの、
および複数のノード間を1本の通信線と1本以上のア
ドレス線で接続するもの等が開発され、構成の簡略化が
図られていた。
"Prior Art" It is desirable that a transmitting system or a receiving system mounted on a vehicle has a simple structure and is lightweight. Therefore, conventionally, one that connects two nodes with one communication line (optical fiber, coaxial cable, etc.), one that connects multiple nodes with one communication line and one synchronization signal line,
In addition, a system for connecting a plurality of nodes with one communication line and one or more address lines has been developed to simplify the configuration.

「発明が解決しようとする問題点」 しかしながら、従来システムにおける信号線の使用効率
は未だ充分とは言えず、また、構成の点においてもその
簡略化は今一歩であった。
[Problems to be Solved by the Invention] However, it cannot be said that the usage efficiency of the signal line in the conventional system is still sufficient, and the simplification is still a step away from the viewpoint of the configuration.

この発明は、上述した事情に鑑みてなされたもので、一
本の通信線のみで複数のノード間の送受信を行うことが
でき、これにより、通信線の利用効率の向上および構成
の大幅な簡略を図ることができる単一通信線の多重通信
方式を提供することを目的としている。
The present invention has been made in view of the above circumstances, and it is possible to perform transmission and reception between a plurality of nodes with only one communication line, which improves the utilization efficiency of the communication line and greatly simplifies the configuration. It is an object of the present invention to provide a multiplex communication system of a single communication line capable of achieving the above.

「問題点を解決するための手段」 この発明は、上記問題点を解決するために、デジタル信
号による送受信機能を有する複数のノードの入出力端を
各々1本の通信線で接続するとともに、各ノードは重複
しない固有のノードアドレスを有し、送信を行うノード
は自分のノードアドレスと相手のノードアドレスとをノ
ードデータとして送出し、かつ、受信を行うノードは前
記通信線上のデータが自分のノードアドレスを含んでい
る場合にのみこのデータを読み込むように構成した送受
信システムにおいて、高低いずれかのレベルが優先とな
るように前記通信線を構成し、データの1ビットを前半
・後半期間に分け、前半期間での信号レベルが当該ビッ
トを示すものとする一方、後半期間での信号レベルが前
半期間での信号レベルを反転したものと設定して、前記
複数のノードが該データを前記通信線に送信あるいは前
記通信線から受信し、送信を行うノードは、前記通信線
上の信号レベルを逐次ビット毎にモニタして送出データ
と比較し、該送出データに対応する信号レベルが非優先
レベルであるのにもかかわらず、前記通信線上の信号レ
ベルが優先レベルである場合に、データが衝突している
と判定し、データの衝突を判定したノードは、送信動作
を中止するとともに、前記通信線上の信号レベルが前記
データの1.5ビットに相当する期間以上、非優先レベ
ルとなった場合に送信動作を再度行うようにしている。
[Means for Solving Problems] In order to solve the above problems, the present invention connects input / output terminals of a plurality of nodes having digital signal transmission / reception functions with one communication line, and The node has a unique node address that does not overlap, the transmitting node sends its node address and the partner node address as node data, and the receiving node receives the data on the communication line as its own node. In a transmission / reception system configured to read this data only when it includes an address, the communication line is configured such that one of high and low levels has priority, and one bit of data is divided into the first half / second half period, It is assumed that the signal level in the first half period indicates the bit, while the signal level in the second half period is the inverted signal level in the first half period. The node which sets and transmits the data to the communication line or receives the data from the communication line, and the node which performs the transmission sequentially monitors the signal level on the communication line bit by bit and compares it with the transmitted data. , If the signal level corresponding to the transmitted data is the non-priority level, but the signal level on the communication line is the priority level, it is determined that there is data collision, and data collision is determined. The node stops the transmission operation and performs the transmission operation again when the signal level on the communication line becomes the non-priority level for a period corresponding to 1.5 bits of the data or more.

「作用」 送信動作を行なうノードの各々は、送出データに対応す
る信号レベルが非優先レベルであるのにもかかわらず、
通信線上の信号レベルが優先レベルである場合に、デー
タが衝突していると判定する。この判定をしたノード
は、送信動作を中止するから、結局、優先レベルに対応
するビットをより連続して出力したノードが択一的に選
択され、このノードのみが送信動作を続行する。
"Operation" Each of the nodes performing the transmission operation, although the signal level corresponding to the transmission data is the non-priority level,
When the signal level on the communication line is the priority level, it is determined that the data collide. Since the node that makes this determination stops the transmission operation, eventually, the node that outputs the bit corresponding to the priority level more continuously is alternatively selected, and only this node continues the transmission operation.

また、送信動作を中止したノードは、通信線上の信号レ
ベルがデータの1.5ビットに相当する期間以上非優先
レベルとなった場合に、通信線が空き状態である、と検
出して送信動作を再度行なうようにしたので、通信線の
空き状態の期間を減少させ、通信線の利用効率を上げる
ことができる。
In addition, the node that has stopped the transmission operation detects that the communication line is in an idle state when the signal level on the communication line becomes the non-priority level for a period corresponding to 1.5 bits of data or more, and the transmission operation is performed. Since it is performed again, it is possible to reduce the idle period of the communication line and improve the utilization efficiency of the communication line.

「実施例」 以下、本発明の実施例を図面に基づいて説明する。[Examples] Examples of the present invention will be described below with reference to the drawings.

第1図は、この発明を自動二輪車用の車両用送受信シス
テムに適用した場合の一実施例の構成を示す図である。
図に示す送受信システムは車載のラジオユニット(ノー
ド)1及び車高調節が可能なエアサスペンションユニッ
ト(ノード)2と、これらの両ユニットを運転者が任意
に制御するためのラジオスイッチユニット(ノード)3
及びエアサスペンションスイッチユニット(ノード)4
と、同乗者が前記ラジオユニット1を制御するためのラ
ジオスイッチユニット(ノード)5と、前記ラジオユニ
ット1及びエアサスペンションユニット2の双方の作動
状態を夫々表示する表示ユニット(ノード)6とによっ
て構成されている。前記ユニット1〜6の入出力端1a
〜6aは夫々1本のデータライン(ハーネス)10に接
続されており、該データライン10のみを介してユニッ
ト1〜6の間のすべての信号の送受信が行なわれるよう
になっている。尚、上記システムは相互にデータ通信を
行なうためのLAN(Local Area Network)の一形態と見な
すことができる。
FIG. 1 is a diagram showing a configuration of an embodiment when the present invention is applied to a vehicle transmission / reception system for a motorcycle.
The transmission / reception system shown in the figure has a radio unit (node) 1 mounted on a vehicle, an air suspension unit (node) 2 capable of adjusting a vehicle height, and a radio switch unit (node) for a driver to arbitrarily control these units. Three
And air suspension switch unit (node) 4
And a radio switch unit (node) 5 for a passenger to control the radio unit 1, and a display unit (node) 6 for displaying operating states of both the radio unit 1 and the air suspension unit 2, respectively. Has been done. Input / output terminals 1a of the units 1 to 6
6a are respectively connected to one data line (harness) 10, and all signals are transmitted and received between the units 1 to 6 via only the data line 10. The above system can be regarded as a form of LAN (Local Area Network) for mutual data communication.

前記ユニット1〜6は夫々マイクロコンピュータ1b〜
6bを有する。第2図に示すようにマイクロコンピュー
タ1bの出力端1cは抵抗器を介してトランジスタTr
のベースに接続され、該トランジスタTrのコレクタは
ユニット1の入出力端1aを介してデータライン10に
接続されると共に抵抗器を介して正電源(電圧Vcc)
に接続されている。また、マイクロコンピュータ1bの
入力端1dはトランジスタTrのコレクタに接続されて
おり、更にトランジスタTrのエミッタはアースされて
いる。そして、前記ユニット2〜6はユニット1と同様
の構成となっている。
The units 1 to 6 are microcomputers 1b to, respectively.
6b. As shown in FIG. 2, the output terminal 1c of the microcomputer 1b is connected to a transistor Tr via a resistor.
Of the transistor Tr, the collector of the transistor Tr is connected to the data line 10 via the input / output terminal 1a of the unit 1, and the positive power source (voltage Vcc) via the resistor.
It is connected to the. The input terminal 1d of the microcomputer 1b is connected to the collector of the transistor Tr, and the emitter of the transistor Tr is grounded. The units 2 to 6 have the same configuration as the unit 1.

次に、データライン10の特性について説明する。Next, the characteristics of the data line 10 will be described.

まず、マイクロコンピュータ1b〜6bの出力端1c〜
6cからのいずれか1つの信号レベルが高レベル(H)
のときには、データライン10が各トランジスタTrの
いずれか1つを介してアースされるため、データライン
10上の信号レベルは低レベル(L)となる。又、出力
端1c〜6cからのいずれの信号レベルも低レベル
(L)のときには、データライン10上の信号レベルは
高レベル(H)となる。すなわち、データライン10は
低レベル(L)側が優先となっており、ユニット1〜6
の入出力端1a〜6aのいずれかが低レベルになれば、
データライン10は他の入力出端のレベルに係りなく強
制的に低レベルになる。
First, the output terminals 1c of the microcomputers 1b to 6b
Any one signal level from 6c is high level (H)
At the time, since the data line 10 is grounded through any one of the transistors Tr, the signal level on the data line 10 becomes a low level (L). When all the signal levels from the output terminals 1c to 6c are low level (L), the signal level on the data line 10 becomes high level (H). That is, in the data line 10, the low level (L) side is prioritized, and the units 1 to 6 are
If any of the input / output terminals 1a to 6a becomes low level,
The data line 10 is forced to the low level regardless of the level of the other input / output terminals.

次に、ユニット1〜6からデータライン10上に送出さ
れるデータ信号について説明すると、この信号は調歩同
期式で、第3図に示すようになっている。すなわち、低
レベルのスタート信号(STR(L))の5.5bit(STR
1)、高レベルのスタートビット(S(H))の0.5
bit、該スタートビットのギャップ(G(L))の0.
5bit、データ部の8bit、パリティ(P(H))の0.
5bit、パリティのギャップ(G(L))の0.5bit及
びエンド信号(END(H))の1bitにより構成されてい
る(合計16.5bit)。又、データ部は1bitごとに最
初の0.5bitがデータD、残りの0.5bitがギャップ
Gとなっており、データDが高レベル(以下Hという)
のときギャップGはL、データDが低レベル(以下Lと
いう)のときギャップGはHとなるように設定されてい
る。このようにデータ信号1bitごとにギャップGを設
けたのは、後述するようにデータライン10の使用状態
の検出及びデータライン10上でのデータ信号同士の衝
突の検出を即座に行なえるようにするためである。ま
た、このデータ信号の後に第2、第3又はそれ以上のデ
ータ信号が続くときには、これらのデータ信号のスター
ト信号(STR(L))を1bit(STR2)とし、データ信
号全体を12bitとしている。
Next, the data signal transmitted from the units 1 to 6 on the data line 10 will be described. This signal is start-stop synchronization type and is as shown in FIG. That is, the low level start signal (STR (L)) of 5.5 bit (STR
1), 0.5 of high level start bit (S (H))
bit, the start bit gap (G (L)) of 0.
5 bits, 8 bits of the data part, 0. of parity (P (H)).
5 bits, a parity gap (G (L)) of 0.5 bits and an end signal (END (H)) of 1 bit (total of 16.5 bits). In the data part, the first 0.5 bit is the data D and the remaining 0.5 bit is the gap G for every 1 bit, and the data D is at a high level (hereinafter referred to as H).
The gap G is set to L when, and the gap G is set to H when the data D is at a low level (hereinafter referred to as L). In this way, the gap G is provided for each bit of the data signal so that the usage state of the data line 10 and the collision of the data signals on the data line 10 can be detected immediately as described later. This is because. When a second, third or more data signal follows this data signal, the start signal (STR (L)) of these data signals is 1 bit (STR2) and the entire data signal is 12 bits.

従って、データライン10上に信号が送出されていると
き(データライン10が使用中のとき)には、該ライン
10上の信号レベルHは常に1bit以下になっている。
このため、データライン10上の信号レベルHが1.5
bit以上であるか否かを検出することにより、データラ
イン10が未使用であるか否かを検出することができ
る。尚、第1のデータ信号のデータ部には受信ユニット
アドレス及び送信ユニットアドレスが夫々格納されてい
る。
Therefore, when a signal is being sent out on the data line 10 (when the data line 10 is in use), the signal level H on the line 10 is always 1 bit or less.
Therefore, the signal level H on the data line 10 is 1.5.
It is possible to detect whether the data line 10 is unused or not by detecting whether it is equal to or more than 1 bit. A receiving unit address and a transmitting unit address are stored in the data portion of the first data signal.

又、前記データ信号の送信には下記のように2種類の送
信方式が使用されている。前記ユニット1〜6のうちデ
ータ処理量の多いラジオユニット1及びエアサスペンシ
ョンユニット2は他のユニット(スレーブユニット)3
〜6の送信を管理するマスタユニットとなっている。こ
れらのマスタユニット1,2からスレーブユニット(表
示ユニット)6へのデータ信号の送信は第4図(a)に
示すデータフォーマットで行なわれ、前記第1,第2,
第3,…の各データ信号D1,D2,D3,…は第1図に
示すように一方的に行なわれる(以下この送信方式によ
る送信を「非同期送信」という)。又、スレーブユニッ
ト(スイッチユニット)3〜5からマスタユニット1,
2へのデータ信号の送信は第4図(b),(c)に示す
データフォーマットで行なわれ、第1図に示すようにま
ずマスタユニット1又は2からスレーブユニット3,
4,5のいずれか1つのユニットへ第4図(b)の第1
のデータ信号が送られる。その後、受信先のユニット3
又は4又は5が第1のデータ信号の送信ユニットアドレ
スに指定された送信もとユニット1又は2へ第4図
(c)の第1,第2,第3,…の各データ信号D1
2,D3,…を送信する(以下この送信方式による送信
を「同期送信」という)。こうして、スレーブユニット
3〜5の信号の送信はマスタユニット1又は2によって
管理される。より具体的には、スレーブユニット3,5
はマスタユニット1によって管理され、スレーブユニッ
ト4はマスタユニット2によって管理されている。従っ
てマスタユニット1,2へ一方的にデータ信号が送信さ
れることがなく、マスタユニット1,2はデータ信号の
受信のための割込みによって処理を中断されることがな
い。
Two types of transmission methods are used for transmitting the data signal as described below. Among the units 1 to 6, the radio unit 1 and the air suspension unit 2 which have a large data processing amount are other units (slave units) 3
It is a master unit that manages the transmission of ~ 6. The data signal is transmitted from the master unit 1, 2 to the slave unit (display unit) 6 in the data format shown in FIG.
The third, third data signals D 1 , D 2 , D 3 , ... Are unilaterally transmitted as shown in FIG. 1 (hereinafter, transmission by this transmission method is referred to as "asynchronous transmission"). Also, from slave units (switch units) 3 to 5 to master unit 1,
The data signal is transmitted to the slave unit 2 in the data format shown in FIGS. 4 (b) and 4 (c). As shown in FIG.
To any one of the units 4 and 5, the first in Fig. 4 (b)
Data signal is sent. After that, the receiving unit 3
Or 4 or 5 to the transmission source unit 1 or 2 designated by the transmission unit address of the first data signal, the respective data signals D 1 , 1 , 2, 3 ... Of FIG.
D 2, D 3, and transmits the ... (hereinafter the transmission by the transmission method called "synchronous transmission"). Thus, the master unit 1 or 2 manages the signal transmission of the slave units 3 to 5. More specifically, slave units 3 and 5
Is managed by the master unit 1, and the slave unit 4 is managed by the master unit 2. Therefore, the data signal is not unilaterally transmitted to the master units 1 and 2, and the master units 1 and 2 are not interrupted by the interruption for receiving the data signal.

「実施例の動作」 第6図乃至第9図は各マイクロコンピュータ1b〜6b
内で実行される、データ信号の送受信の処理手順を示す
フローチャートである。非同期送信の手順としては、第
6図に示すように、まずステップ601において衝突フ
ラグ及びACKフラグをリセットし、(これらのフラグ
の機能については後述する)、次に、データライン10
が未使用か否かを判別する(ステップ602)。この判
別はデータライン10の信号レベルが1.5bit相当の
時間の間Hレベルであるか否かを検出することによって
行う。そして、この判別結果が肯定(Yes)のときに
は、次のステップ603に進み、否定(NO)のときに
は同じ判別を行い、データライン10が未使用となるま
で待つ。
"Operation of Embodiment" FIGS. 6 to 9 show the microcomputers 1b to 6b.
4 is a flowchart showing a processing procedure of transmission / reception of a data signal executed in the computer. As the procedure of asynchronous transmission, as shown in FIG. 6, first, in step 601, the collision flag and the ACK flag are reset (the functions of these flags will be described later), and then the data line 10
It is determined whether or not is unused (step 602). This determination is made by detecting whether or not the signal level of the data line 10 is at H level for a time corresponding to 1.5 bits. Then, when the determination result is affirmative (Yes), the process proceeds to the next step 603, and when the determination result is negative (NO), the same determination is performed and waits until the data line 10 is unused.

次に、ステップ603においては、衝突フラグがセット
されているかどうかが判定され、セットされていればス
テップ605のタイマ時間TINT3が経過した後にステッ
プ606へ移り、セットされていなければ、ステップ6
04のタイマ時間TINT4が経過した後にステップ606
へ移る。この場合、ステップ603の初期の判定は、ス
テップ601において衝突フラグがリセットされている
から(NO)となる。又、タイマ時間TINT4はタイマ時
間TINT3より長く設定されている(理由は後述)。
Next, in step 603, it is judged whether or not the collision flag is set, and if it is set, the routine proceeds to step 606 after the timer time TINT 3 of step 605 has passed, and if it is not set, step 6
Step 606 after the timer time TINT 4 of 04 has elapsed
Move to. In this case, the initial determination in step 603 is (NO) because the collision flag is reset in step 601. Further, the timer time TINT 4 is set longer than the timer time TINT 3 (the reason will be described later).

そして、ステップ606ではデータラインが未使用であ
るか否かが再度判定され、この判定が(NO)であれ
ば、ステップ602に戻り、(YES)であればステッ
プ607に移る。ステップ607は、送出するデータが
1であるか否かが判定され、D1であればステップ60
8に移ってスタート信号STR1を送信し、D1でなけ
ればステップ609に移ってスタート信号STR2を送
出する(第4図参照)。次に、ステップ610に移って
データを1ビット送信すると、ステップ611に移って
送信データをチェックし、データライン上で衝突が発生
しているかどうかを判定する。この判定動作は、データ
ライン10上のデータと送信したデータとの一致・不一
致を検出し、不一致が検出されたときに、衝突が発生し
ていると判定するようにしており、その検出原理は以下
の通りである。すなわち、前述したようにデータライン
10は低レベル側が優先となるように構成されているか
ら、高レベルの信号(ビット)を送出した際にデータラ
イン10のレベルが低レベルであれば、他のユニットが
低レベルの信号を送出している場合であり、データの衝
突が発生している場合である。
Then, in step 606, it is determined again whether or not the data line is unused. If this determination is (NO), the process returns to step 602, and if it is (YES), the process proceeds to step 607. In step 607, it is judged whether or not the data to be transmitted is D 1 , and if it is D 1 , step 60
It transmits a start signal STR1 moves to 8, and sends a start signal STR2 Turning to D 1 unless step 609 (see FIG. 4). Next, in step 610, one bit of data is transmitted, and in step 611, the transmitted data is checked to determine whether a collision has occurred on the data line. This determination operation detects a match / mismatch between the data on the data line 10 and the transmitted data, and when the mismatch is detected, it is determined that a collision has occurred. It is as follows. That is, as described above, the data line 10 is configured such that the low level side has priority. Therefore, if the level of the data line 10 is low when the high level signal (bit) is transmitted, another This is the case when the unit is sending out a low level signal and there is a data collision.

例えば、第5図に示すように2つの送信ユニット1,2
が競合して送信を行ったとすると、時刻t0に至るまで
は、各ユニットの送信信号とデータライン上のデータと
は同じであるが、時刻t0においては、低レベルにある
ユニット1の信号が優先されてデータライン10のレベ
ルが低レベルになる。したがって、送出ユニット2にお
いては送出データの不一致が検出され、ここで、データ
衝突が検出される。
For example, as shown in FIG.
When but a has transmitted in competition, leading up to the time t 0, although the transmission signal and the data lines on the data of each unit is the same, at time t 0, the unit 1 in a low-level signal Is prioritized and the level of the data line 10 becomes low. Therefore, in the sending unit 2, the mismatch of the sending data is detected, and the data collision is detected here.

上記ステップ611で衝突と判定されると、ステップ6
12で衝突フラグをセットし、その後にステップ602
に移り、データライン10が空くまで待機状態となる。
すなわち、衝突が検出された場合は送信を中止し、デー
タラインの空きを待つ動作を行う。そして、待機状態中
においてデータライン10の空が検出されると、ステッ
プ603,605を経てステップ606,607,60
7,608に至りデータD1から再送信を行う。この場
合、ステップ605を通過するからタイマ空き検出から
データ送出までの時間は、タイマ時間TINT3であり、衝
突検出前のタイマ時間TINT4より短くなっている。これ
は、衝突検出後のデータ送信は、一端中止したデータの
再度の送信(データD1から再送信する)であるため、
やや速いタイミングでデータの送出を行うようにしてい
るからである。
If a collision is determined in step 611, step 6
Set the collision flag at 12, then step 602
Then, the process waits until the data line 10 becomes empty.
That is, when a collision is detected, the transmission is stopped and the operation of waiting for the empty data line is performed. When the data line 10 is detected to be empty in the standby state, steps 603, 605 and then steps 606, 607, 60 are performed.
At 7,608, the data D 1 is retransmitted. In this case, the time from passing the step 605 to detecting the availability of the timer to sending the data is the timer time TINT 3, which is shorter than the timer time TINT 4 before the collision detection. This is because the data transmission after the collision detection is the re-transmission of the data that has been once stopped (retransmission from the data D 1 ).
This is because the data is transmitted at a slightly faster timing.

一方、衝突が検出されない場合は、ステップ611にお
ける判定が(NO)となるから、処理はステップ613
に移り、送出したデータがデータエンド(第4図参照)
であるかどうかが判定され、データエンドでなければス
テップ610に戻ってビット毎のデータの送信を続け
る。ステップ613においてデータエンドが検出される
と、ステップ614に移り、送信すべきデータを全て送
出し終えたかどうか、すなわち、送信完了かどうかが判
定される。この判定が(NO)であれば、ステップ60
7に戻り、以後はデータD2、データD3……のデータ送
信を行う。また、ステップ614で(YES)と判定さ
れると、ステップ615に移りACKフラグがセットさ
れているかどうかが判定され、(YES)であれば動作
を終了して所定のメインルーチンへ戻り、(NO)であ
ればステップ616へ移ってACK信号(アクノレッジ
信号)があったか否かを判定する。この場合、ステップ
601における初期リセットにおいて、ACKフラグは
リセットされているから、ステップ615の初回の判定
は(NO)となり、ステップ616に移行する。また、
ステップ616において判定するACK信号は、受信先
のユニットが送信データを正しく受信した場合に出力す
る信号であり、このACK信号が出力された場合は、ス
テップ616での判定が(YES)となって、一連の送
信処理を終了してメインルーチンに戻る。
On the other hand, when no collision is detected, the determination in step 611 is (NO), and thus the process is step 613.
Moved to and the data sent is the data end (see Fig. 4)
Is determined, and if it is not the data end, the process returns to step 610 and the data transmission for each bit is continued. When the data end is detected in step 613, the process proceeds to step 614, and it is determined whether all the data to be transmitted have been transmitted, that is, whether the transmission has been completed. If this determination is (NO), step 60
After returning to 7, data transmission of data D 2 , data D 3, ... Is performed. If it is determined to be (YES) in step 614, it is determined in step 615 whether or not the ACK flag is set. If it is (YES), the operation is terminated and the process returns to the predetermined main routine, and (NO If so, the process proceeds to step 616 to determine whether or not there is an ACK signal (acknowledge signal). In this case, since the ACK flag is reset in the initial reset in step 601, the first determination in step 615 is (NO), and the process proceeds to step 616. Also,
The ACK signal determined in step 616 is a signal that is output when the destination unit correctly receives the transmission data. When this ACK signal is output, the determination in step 616 is (YES). , And ends the series of transmission processes and returns to the main routine.

一方、受信先のユニットが送信データを正しく受信する
ことができずACK信号を出力しなかった場合は、ステ
ップ616での判定が(NO)となってステップ617
に移り、ここでACKフラグをセットした後、ステップ
607に移って再度データD1から再送信を開始する。
この再送信が終了すると、ステップ614の判定を経て
ステップ615に至る。そして、再送信後はACKフラ
グがセットされているからステップ615の判定は(Y
ES)となり、これにより、ACK信号の有無の判定
(ステップ616)を待たずに送信処理を終わらせ、メ
インルーチンに戻る。すなわち、再送信は1回のみ行な
われ、その後は他のユニットのためにデータラインを空
き状態にする。また、ACKフラグの機能は、上記説明
から容易に判るように、再送信を1回のみで終了させる
ための機能である。
On the other hand, if the destination unit cannot correctly receive the transmission data and does not output the ACK signal, the determination in step 616 becomes (NO) and step 617.
Then, after setting the ACK flag here, the process proceeds to step 607 to restart the retransmission from the data D 1 .
When this re-transmission is completed, the process proceeds to step 615 through the determination of step 614. After the retransmission, the ACK flag is set, so the determination in step 615 is (Y
ES), whereby the transmission process is ended without waiting for the determination of the presence or absence of the ACK signal (step 616), and the process returns to the main routine. That is, the re-transmission is done only once and then leaves the data lines empty for other units. Further, the function of the ACK flag is a function for ending the retransmission only once, as can be easily understood from the above description.

以上が、この実施例における非同期送信の動作である。The above is the operation of the asynchronous transmission in this embodiment.

次に、上記非同期送信があった場合の受信側のユニット
の動作について第7図に基づいて説明する。
Next, the operation of the unit on the receiving side when there is the above asynchronous transmission will be described with reference to FIG.

非同期受信の手順としては第7図に示すように、まずス
タート信号が受信されたか否かを判別する(ステップ7
01)。この判別は1.5bit相当の時間以上データラ
イン10の信号レベルHが続いたか否かを検出すること
によって行う。ステップ701の判別結果が否定(N
O)のときには直ちにこのサブルーチンを終了してメイ
ンルーチンに戻る。
As a procedure of asynchronous reception, as shown in FIG. 7, first, it is determined whether or not a start signal is received (step 7).
01). This determination is made by detecting whether or not the signal level H of the data line 10 continues for a time corresponding to 1.5 bits or more. The determination result of step 701 is negative (N
In the case of O), this subroutine is immediately ended and the process returns to the main routine.

ステップ701の判別結果が肯定(Yes)のときには
次のステップ702でスタートビットが検出されたか否
かを判別する。この判定が否定(NO)のときには同じ
判別を行い、スタートビットが検出されるまで待つ。こ
のように、スタート信号の受信,スタートビットの検出
の後にデータの読取りが開始される。
When the determination result of step 701 is affirmative (Yes), it is determined in the next step 702 whether a start bit is detected. When this determination is negative (NO), the same determination is performed, and the process waits until the start bit is detected. In this way, reading of data is started after receiving the start signal and detecting the start bit.

次にスタートビットが検出され、ステップ702の判別
結果が肯定(Yes)となったときには、調歩同期用の
タイマをセットしてデータの読込みを行い(ステップ7
03,ステップ704)、調歩同期による一定時間間隔
の読取りを行う。
Next, when the start bit is detected and the determination result of step 702 is affirmative (Yes), the timer for start / stop synchronization is set to read the data (step 7
03, step 704), reading is performed at fixed time intervals by start-stop synchronization.

次のステップ705ではデータ(16.5bit又は12b
it分)の終りか否か、すなわち、エンド信号を受信した
か否かを判別し、その答が否定(NO)のときには、ス
テップ703以降の処理を繰り返す。こうして、ステッ
プ705の判別結果が肯定(Yes)となるまでにST
RからENDまでの16.5bit又は12bit分のデータ
を受信する。そして、ステップ705の判別結果が肯定
(Yes)の場合は、ステップ706において読取った
データにまちがいがないか否かを判別するためのパリテ
ィチエックを行う。この判別結果が否定(NO)のとき
には直ちにこのサブルーチンを終了してメインルーチン
に戻る。
In the next step 705, data (16.5bit or 12b)
It)), that is, whether or not an end signal has been received. If the answer is negative (NO), the processing from step 703 is repeated. In this way, before the determination result of step 705 becomes affirmative (Yes), ST
Data of 16.5 bits or 12 bits from R to END is received. If the determination result of step 705 is affirmative (Yes), a parity check is performed to determine whether the data read in step 706 is correct. When the result of this determination is negative (NO), this subroutine is immediately terminated and the process returns to the main routine.

一方、ステップ706の判別結果が肯定(Yes)のと
きには受信した信号がデータかアドレスかを判別する
(ステップ707)。
On the other hand, when the determination result of step 706 is affirmative (Yes), it is determined whether the received signal is data or address (step 707).

この場合、受信したデータがデータD1であれば、読み
込んだデータは第4図(a)に示すように、受信ユニッ
トアドレスD.ADRと送信ユニットアドレスS.AD
Rとなるから、ステップ707の判定は「ADRS」と
なり、また、受信データがデータD2,D3……であれ
ば、読み込んだデータは同図に示すようにDATAとな
るから、ステップ707の判定は「DATA」となる。
また、受信データがD1であるか、D2,D3,D4……で
あるかは、スタート信号STR1、STR2の長さの違
いにより判定する。ステップ707からステップ708
に移った場合は、アドレスデータD.ADRが自局のア
ドレスに一致しているかどうかが判定され、一致してい
なければ直ちに受信処理を停止してメインルーチンに戻
る。一方自局のアドレスデータに一致していた場合は、
ステップ709に移って受信が完了したかどうかを判定
し、完了していなければ、ステップ702に戻すすべて
のデータを受信するまで、上記受信動作を繰り返す。ま
た、ステップ707で「DATA」と判定された場合
は、ステップ708の判定は不要であるので、直ちにス
テップ709に至る。
In this case, if the received data is the data D 1 , the read data is the receiving unit address D.sub.D as shown in FIG. ADR and sender unit address S.D. AD
Since the R, determination is "ADRS" next step 707 also, if the received data is data D 2, D 3 ......, read data from the DATA As shown, in step 707 The judgment is “DATA”.
Further, whether the received data is D 1 or D 2 , D 3 , D 4 ... Is determined by the difference in length of the start signals STR1 and STR2. Step 707 to Step 708
If the address data D. It is determined whether the ADR matches the address of its own station, and if it does not match, the reception process is immediately stopped and the process returns to the main routine. On the other hand, if it matches the address data of your own station,
In step 709, it is determined whether the reception is completed. If not completed, the above reception operation is repeated until all the data returned to step 702 is received. If it is determined to be “DATA” in step 707, the determination in step 708 is not necessary, so the process immediately proceeds to step 709.

そして、ステップ709で(YES)と判定されると、
ステップ710に移り、受信すべきデータをすべて完全
に受信した応答信号としてACK信号を出力する。これ
により、一連の受信動作が終了してメインルーチンに戻
る。
When it is determined to be (YES) in step 709,
In step 710, an ACK signal is output as a response signal indicating that all data to be received has been completely received. As a result, the series of receiving operations is completed and the process returns to the main routine.

以上が、非同期モードにおける送信および受信の動作で
ある。
The above is the operation of transmission and reception in the asynchronous mode.

次に、同期モードにおける送信および受信の動作につい
て説明する。
Next, transmission and reception operations in the synchronous mode will be described.

同期送信におけるデータ要求の手順としては第8図に示
すように、まず衝突フラグ及びACKフラグをリセット
し(ステップ801)、データライン10が未使用か否
かを判別する(ステップ802)。そして、この判別結
果が肯定(Yes)のときには次のステップ803に進
み、否定(NO)のときには同じ判別を行い、データラ
イン10が未使用となるまで待つ。ステップ803では
後述のステップ810でセットされる衝突フラグがセッ
トされているか否かを判別する。この判別結果が否定
(NO)のときにはタイマ時間TINT4の経過後(ステッ
プ804)、次のステップ806へ進む。又、ステップ
803の判別結果が肯定(Yes)のときには、前記タ
イマ時間TINT4より小さいタイマ時間TINT3の経過後
(ステップ805)、次のステップ806へ進む。ステ
ップ806では前記ステップ802と同様にデータライ
ン10が未使用か否かを判別する。この判別結果が肯定
(Yes)であれば、次のステップ807へ進む。な
お、上記ステップ801〜806は第6図の非同期送信
サブルーチンのステップ601〜606と同様の処理で
ある。
As a data request procedure in the synchronous transmission, as shown in FIG. 8, first, the collision flag and the ACK flag are reset (step 801) and it is determined whether or not the data line 10 is unused (step 802). Then, when the determination result is affirmative (Yes), the process proceeds to the next step 803, and when the determination is negative (NO), the same determination is performed, and the process waits until the data line 10 is unused. In step 803, it is determined whether or not the collision flag set in step 810 described later is set. When the result of this determination is negative (NO), after the elapse of the timer time TINT 4 (step 804), the routine proceeds to the next step 806. When the determination result of step 803 is affirmative (Yes), after the elapse of the timer time TINT 3 smaller than the timer time TINT 4 (step 805), the process proceeds to the next step 806. In step 806, it is determined whether or not the data line 10 is unused as in step 802. If the determination result is affirmative (Yes), the process proceeds to the next step 807. The steps 801 to 806 are the same as the steps 601 to 606 of the asynchronous transmission subroutine of FIG.

次にステップ807ではスタート信号としてSTR1
(5.5bit)を送信する。次のステップ808では第
4図(b)のデータ要求信号の1bitを送信する。そし
て、その直後に送信データの衝突をチエックし、(ステ
ップ809)、その答が肯定(Yes)のときには衝突
フラグをセットし(ステップ810)、ステップ802
に戻って上記処理を再実行する。ステップ809の判別
結果が否定(NO)のときには、次のステップ811で
信号(16.5bit)の終りか否かを判別し、その答が
否定(NO)のときには、ステップ808以降の処理を
繰り返す。上記ステップ809〜811は第6図の非同
期送信サブルーチンのステップ611〜613と同様に
して実行される。
Next, in step 807, STR1 is used as a start signal.
(5.5bit) is transmitted. In the next step 808, 1 bit of the data request signal of FIG. 4B is transmitted. Immediately after that, the transmission data collision is checked (step 809), and when the answer is affirmative (Yes), the collision flag is set (step 810) and step 802.
Then, the above process is re-executed. When the determination result of step 809 is negative (NO), it is determined in the next step 811 whether or not the signal (16.5 bit) is over, and when the answer is negative (NO), the processes of step 808 and subsequent steps are repeated. . The above steps 809 to 811 are executed in the same manner as steps 611 to 613 of the asynchronous transmission subroutine of FIG.

ステップ811の判別結果が肯定(Yes)のときには
スタート信号の検定を行い、当該ユニットが受信モード
となってデータが返信されて来たか否かをチエックする
(ステップ812)。この判別結果が否定(NO)のと
きには、ACKフラグがセットされているか否かを判別
し、(ステップ813)、その答が否定(NO)のとき
にはACKフラグをセットし(ステップ814)、ステ
ップ807以降の処理を再実行し、もう一度だけデータ
要求信号を送信する。ステップ813の判別結果が肯定
(Yes)のときには直ちに本プログラムを終了する。
When the determination result of step 811 is affirmative (Yes), the start signal is verified, and it is checked whether the unit is in the reception mode and data is returned (step 812). If the determination result is negative (NO), it is determined whether or not the ACK flag is set (step 813). If the answer is negative (NO), the ACK flag is set (step 814) and step 807. The subsequent processing is re-executed, and the data request signal is transmitted only once again. When the determination result of step 813 is affirmative (Yes), this program is immediately terminated.

一方、ステップ812の判別結果が肯定(Yes)のと
きには次のステップ815でスタートビットが検出され
たか否かを判別する。この答が否定(NO)のときには
同じ判別を行い、スタートビットが検出されるまで待
つ。
On the other hand, if the determination result of step 812 is affirmative (Yes), it is determined in the next step 815 whether or not a start bit is detected. When this answer is negative (NO), the same determination is made, and the process waits until the start bit is detected.

そしてステップ815の判別結果が肯定(Yes)とな
ったときには調歩同期用のタイマをセットし(ステップ
816)、データの読込みを行い(ステップ817)、
調歩同期による一定時間間隔の読取りを行なう。
When the determination result of step 815 is affirmative (Yes), the timer for start / stop synchronization is set (step 816) and data is read (step 817).
Reading is performed at fixed time intervals by start-stop synchronization.

次のステップ818ではデータ(12bit分)の終りか
否かを判別し、その答が否定(NO)のときには、ステ
ップ816以降の処理を繰り返す。そして、ステップ8
18の判別結果が肯定(Yes)の場合、次のステップ
819ではパリティチエックを行い、この結果が否定
(NO)のときには直ちに本プログラムを終了する。
又、ステップ819の判別結果が肯定(Yes)のとき
には次のステップ820で第4図(c)のD1,D2,D
3…のデータの受信が完了したか否かを判別し、その答
が否定(NO)のときには、ステップ815以降の処理
を繰り返す。ステップ820の判別結果が肯定(Ye
s)のときにはアクノレッジ信号(ACK)を送信し
(ステップ821)、本プログラムを終了する。上記ス
テップ815〜821は第7図の非同期受信サブルーチ
ンのステップ702〜706及びステップ709,71
0と同様にして実行される。
In the next step 818, it is determined whether or not the data (for 12 bits) has ended, and when the answer is negative (NO), the processing from step 816 onward is repeated. And step 8
When the determination result of 18 is affirmative (Yes), parity check is performed in the next step 819, and when this result is negative (NO), this program is immediately terminated.
When the determination result of step 819 is affirmative (Yes), the next step 820 is D 1 , D 2 , D of FIG. 4 (c).
3 ... It is determined whether or not the reception of the data has been completed, and when the answer is negative (NO), the processing from step 815 onward is repeated. The determination result of step 820 is affirmative (Yes
In the case of s), an acknowledge signal (ACK) is transmitted (step 821) and this program ends. Steps 815 to 821 are steps 702 to 706 and steps 709 and 71 of the asynchronous reception subroutine of FIG.
It is executed in the same manner as 0.

又、同期送信におけるデータ返信の手順としては第9図
に示すように、まずスタート信号が受信されたか否かを
判別し(ステップ901)、その答が否定(NO)のと
きには直ちに本プログラムを終了する。
As shown in FIG. 9, the procedure for data return in synchronous transmission is to first determine whether or not a start signal has been received (step 901), and if the answer is negative (NO), end this program immediately. To do.

ステップ901の判別結果が肯定(Yes)のときには
次のステップ902でスタートビットが検出されたか否
かを判別する。この答が否定(NO)のときには同じ判
別を行い、スタートビットが検出されるまで待つ。
When the determination result of step 901 is affirmative (Yes), it is determined in the next step 902 whether a start bit is detected. When this answer is negative (NO), the same determination is made, and the process waits until the start bit is detected.

ステップ902の判別結果が肯定(Yes)となったと
きには調歩同期用のタイマをセットしてデータの読込み
を行い(ステップ903,ステップ904)、調歩同期
による一定時間間隔の読取りを行う。次のステップ90
5ではデータ(16.5bit分)の終りか否かを判別
し、その答が否定(NO)のときには、ステップ903
以降の処理を繰り返す。そして、ステップ905の判別
結果が肯定(Yes)の場合は、ステップ906におい
てパリティチエックを行い、この結果が否定(NO)の
ときには直ちに本プログラムを終了する。又、ステップ
906の判別結果が肯定(Yes)のときには次のステ
ップ907へ進む。上記ステップ901〜906は第7
図の非同期受信サブルーチンのステップ701〜706
と同様にして実行される。
When the determination result of step 902 is affirmative (Yes), a timer for start-stop synchronization is set and data is read (steps 903 and 904), and a fixed time interval is read by start-stop synchronization. Next step 90
In 5, it is determined whether or not the end of the data (16.5 bits) is reached, and if the answer is negative (NO), step 903.
The subsequent processing is repeated. If the determination result in step 905 is affirmative (Yes), parity check is performed in step 906, and if the result is negative (NO), this program is immediately terminated. When the determination result of step 906 is affirmative (Yes), the process proceeds to the next step 907. Steps 901 to 906 are the seventh
Steps 701 to 706 of the asynchronous reception subroutine in the figure
It is executed in the same manner as.

ステップ907ではデータ要求信号のアドレスを検定
し、データ要求信号が当該ユニットに対するデータ要求
信号か否かを判別する。この判別結果が否定(NO)の
ときには直ちに本プログラムを終了する。又、この判別
結果が肯定(Yes)のときにはACKフラグをリセット
し(ステップ908)、次のステップ909へ進む。
In step 907, the address of the data request signal is verified to determine whether the data request signal is the data request signal for the unit. If the result of this determination is negative (NO), this program ends immediately. When the result of this determination is affirmative (Yes), the ACK flag is reset (step 908), and the routine proceeds to the next step 909.

次に、当該ユニットは送信モードとなり、まずスタート
信号としてSTR2を送信し(ステップ909)、デー
タを1bit送信する。そして、ステップ911でデータ
(12bit分)の終りか否かを判別し、その答が否定
(NO)のときには、ステップ910以降の処理を繰り
返す。こうして、ステップ911の判別結果が肯定(Y
es)となるまでにSTRからENDまでの12bit分のデー
タを送信する。
Next, the unit enters the transmission mode, first transmits STR2 as a start signal (step 909), and transmits 1 bit of data. Then, in step 911, it is determined whether or not the data (for 12 bits) has ended, and when the answer is negative (NO), the processing of step 910 and thereafter is repeated. Thus, the determination result of step 911 is affirmative (Y
12-bit data from STR to END is transmitted until it becomes es).

ステップ911の判別結果が肯定(Yes)のときに
は、次のステップ912で第4図(c)のD1,D2,D
3,…のデータの送信(返信)が完了したか否かを判別
し、その答が否定(NO)のときには、ステップ909
以降の処理を繰り返す。こうして、ステップ912の判
別結果が肯定(Yes)となるまでにD1,D2,D3
…のデータを送信する。
If the determination result in step 911 is affirmative (Yes), in the next step 912, D 1 , D 2 , and D in FIG.
3 , it is determined whether or not the transmission (reply) of the data is completed, and when the answer is negative (NO), step 909.
The subsequent processing is repeated. Thus, by the time the determination result of step 912 becomes affirmative (Yes), D 1 , D 2 , D 3 ,
Send the data of ...

ステップ912の判別結果が肯定(Yes)のときに
は、後述のステップ915によってセットされるACK
フラグがセットされているか否かを判別する(ステップ
913)。この判別結果が否定(NO)のときにはステ
ップ914でACK(アクノレッジ信号)があったか否
かを判別する。このアクノレッジ信号はデータ要求もと
のユニットが返信データを正しく受信した場合に該デー
タ要求もとのユニットによって送信されるものである。
When the determination result of step 912 is affirmative (Yes), ACK set by step 915 described later.
It is determined whether or not the flag is set (step 913). When the result of this determination is negative (NO), it is determined in step 914 whether or not there was an ACK (acknowledge signal). This acknowledge signal is transmitted by the data requesting unit when the data requesting unit correctly receives the return data.

ステップ914の判別結果が否定の(NO)のときには
次のステップ915でACKフラグをセットし、ステッ
プ909以降の処理を再実行する。また、ステップ91
4の判別結果が肯定(Yes)のときには本プログラム
を終了する。上記ステップ911〜915は第6図の非
同期送信サブルーチンのステップ613〜617と同様
にして実行される。
When the determination result of step 914 is negative (NO), the ACK flag is set in the next step 915, and the processes of step 909 and the subsequent steps are reexecuted. In addition, step 91
When the determination result of 4 is affirmative (Yes), this program ends. The steps 911 to 915 are executed in the same manner as the steps 613 to 617 of the asynchronous transmission subroutine of FIG.

なお、この実施例においては、以下に述べる効果があ
る。
In addition, this embodiment has the following effects.

送信終了後、受信ユニットからACK信号が送られて
こない場合は、再度同じデータを1回だけ送信するよう
にしているので、データの転送エラーがあった場合にお
いても、即座に同一データが送出されるから、受信ユニ
ットは正しいデータを得ることができる。また、再送信
は1回だけ行なわれるようになっているから、同一のユ
ニットが再送信のためにデータライン10を使用し続け
るということがなく、データライン10の使用効率がよ
い。
If the ACK signal is not sent from the receiving unit after the end of transmission, the same data is sent once again, so the same data is sent immediately even if there is a data transfer error. Therefore, the receiving unit can obtain correct data. Further, since the retransmission is performed only once, the same unit does not continue to use the data line 10 for the retransmission, and the data line 10 can be used efficiently.

データライン10が低レベル側優先となっているの
で、送信が競合した場合は高いレベルのビットが先に現
れる方が送信を中止し、また、データの先頭部分は第4
図に示すように受信ユニットアドレスであるから、この
受信ユニットアドレスを用いて優先順序を付すことがで
きる。
Since the data line 10 is prioritized on the low level side, when there is a conflict in the transmission, the transmission is stopped when the higher level bit appears first, and the top portion of the data is the fourth portion.
Since it is the receiving unit address as shown in the figure, the receiving unit address can be used for prioritizing.

受信ユニットは、受信データが正常であった場合は、
応答信号としてACK信号を出力するようにしているの
で、送信ユニットはデータ転送の可否を知ることができ
る。
If the receiving unit has received data normally,
Since the ACK signal is output as the response signal, the transmitting unit can know whether the data transfer is possible or not.

「発明の効果」 以上説明したように、この発明によれば、デジタル信号
による送受信機能を有する複数のノードの入出力端を各
々1本の通信線で接続するとともに、各ノードは重複し
ない固有のノードアドレスを有し、送信を行うノードは
自分のノードアドレスと相手のノードアドレスとをノー
ドデータとして送出し、かつ、受信を行うノードは前記
通信線上のデータが自分のノードアドレスを含んでいる
場合にのみこのデータを読み込むように構成した送受信
システムにおいて、高低いずれかのレベルが優先となる
ように前記通信線を構成し、データの1ビットを前半・
後半期間に分け、前半期間での信号レベルが当該ビット
を示すものとする一方、後半期間での信号レベルが前半
期間での信号レベルを反転したものと設定して、前記複
数のノードが該データを前記通信線に送信あるいは前記
通信線から受信し、送信を行うノードは、前記通信線上
の信号レベルを逐次ビット毎にモニタして送出データと
比較し、該送出データに対応する信号レベルが非優先レ
ベルであるのにもかかわらず、前記通信線上の信号レベ
ルが優先レベルである場合に、データが衝突していると
判定し、データの衝突を判定したノードは、送信動作を
中止するとともに、前記通信線上の信号レベルが前記デ
ータの1.5ビットに相当する期間以上、非優先レベル
となった場合に送信動作を再度行うようにしたので、次
に述べる種々の効果を奏することができる。
[Advantages of the Invention] As described above, according to the present invention, the input / output terminals of a plurality of nodes each having a transmission / reception function for digital signals are connected by one communication line, and each node is unique. In the case where the node having the node address transmits the node address of itself and the node address of the partner as node data, and the node receiving the data includes the node address of itself on the communication line. In a transmission / reception system configured to read this data only in the first half, the communication line is configured so that one of the high and low levels has priority, and one bit of the data in the first half
Dividing into the second half period, the signal level in the first half period indicates the bit, while the signal level in the second half period is set to be the inverted signal level in the first half period, Is transmitted to the communication line or is received from the communication line, and the node transmitting the signal sequentially monitors the signal level on the communication line bit by bit and compares it with the transmitted data. Despite being the priority level, when the signal level on the communication line is the priority level, it is determined that there is data collision, the node that has determined the data collision, while stopping the transmission operation, When the signal level on the communication line becomes the non-priority level for a period corresponding to 1.5 bits of the data or more, the transmission operation is performed again. It can be achieved.

複数のノード間におけるデータの送受信を、1本の通
信線のみで混信することなく行なえるので、システム構
成の大幅な簡略化を図ることができる。
Since data can be transmitted and received between a plurality of nodes without interference by only one communication line, the system configuration can be greatly simplified.

通信線上でデータが衝突しても、送信動作を中止しな
いノードから送出されるデータは損失しないので、通信
の信頼性を確保できる。
Even if data collides on the communication line, the data sent from the node that does not stop the transmission operation is not lost, so that the reliability of communication can be secured.

通信線の空き状態を検出するには、通信線の信号レベ
ルが1.5ビットに相当する期間以上非優先レベルとな
る場合を検出すれば足りる。送信動作を中止したノード
は、これを検出したら、該送信動作を再度行うので、通
信線を高効率で運用することができ、もってノード間の
制御を高速で行うことが可能となる。
To detect the empty state of the communication line, it is sufficient to detect the case where the signal level of the communication line becomes the non-priority level for a period corresponding to 1.5 bits or more. When the node that stopped the transmission operation detects this, the node repeats the transmission operation, so that the communication line can be operated with high efficiency, and the control between the nodes can be performed at high speed.

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

第1図は本発明を適用した車両用送受信システムの構成
図、第2図は第1図のシステムの電気回路図、第3図は
データ信号の構成図、第4図は第3図の信号のデータフ
ォーマット、第5図は2つのデータ信号の衝突回避の経
過を示す説明図、第6図は非同期送信の手順を示すフロ
ーチャート、第7図は非同期受信の手順を示すフローチ
ャート、第8図はデータ要求の手順を示すフローチャー
ト、第9図はデータ返信の手順を示すフローチャートで
ある。 1〜6……ユニット(ノード)、1a〜6a……入出力
端、1b〜6b……マイクロコンピュータ、10……デ
ータライン。
FIG. 1 is a block diagram of a transmission / reception system for a vehicle to which the present invention is applied, FIG. 2 is an electric circuit diagram of the system of FIG. 1, FIG. 3 is a block diagram of a data signal, and FIG. 4 is a signal of FIG. Data format, FIG. 5 is an explanatory view showing the process of avoiding collision of two data signals, FIG. 6 is a flow chart showing the procedure of asynchronous transmission, FIG. 7 is a flow chart showing the procedure of asynchronous reception, and FIG. FIG. 9 is a flowchart showing a data request procedure, and FIG. 9 is a flowchart showing a data reply procedure. 1 to 6 ... Unit (node), 1a to 6a ... Input / output end, 1b to 6b ... Microcomputer, 10 ... Data line.

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】デジタル信号による送受信機能を有する複
数のノードの入出力端を各々1本の通信線で接続すると
ともに、各ノードは重複しない固有のノードアドレスを
有し、送信を行うノードは自分のノードアドレスと相手
のノードアドレスとをノードデータとして送出し、か
つ、受信を行うノードは前記通信線上のデータが自分の
ノードアドレスを含んでいる場合にのみこのデータを読
み込むように構成した送受信システムにおいて、 高低いずれかのレベルが優先となるように前記通信線を
構成し、 データの1ビットを前半・後半期間に分け、前半期間で
の信号レベルが当該ビットを示すものとする一方、後半
期間での信号レベルが前半期間での信号レベルを反転し
たものと設定して、前記複数のノードが該データを前記
通信線に送信あるいは前記通信線から受信し、 送信を行うノードは、前記通信線上の信号レベルを逐次
ビット毎にモニタして送出データと比較し、該送出デー
タに対応する信号レベルが非優先レベルであるのにもか
かわらず、前記通信線上の信号レベルが優先レベルであ
る場合に、データが衝突していると判定し、 データの衝突を判定したノードは、送信動作を中止する
とともに、前記通信線上の信号レベルが前記データの
1.5ビットに相当する期間以上、非優先レベルとなっ
た場合に送信動作を再度行う ことを特徴とする単一通信線の多重通信方式。
1. The input / output terminals of a plurality of nodes having a transmission / reception function for digital signals are each connected by a single communication line, each node has a unique node address that does not overlap, and the node that transmits is its own node. A sending / receiving system configured to send out the node address of the node and the node address of the other party as node data and to read the data only when the node on the communication line includes the node address of itself. In the above, the communication line is configured so that one of the high and low levels has priority, one bit of data is divided into the first half and the second half period, and the signal level in the first half period indicates the bit, while the second half period Is set to be the signal level in the first half period inverted, and the plurality of nodes transmit the data to the communication line. Alternatively, the node receiving and transmitting from the communication line sequentially monitors the signal level on the communication line bit by bit and compares it with the transmitted data, and the signal level corresponding to the transmitted data is the non-priority level. Nevertheless, when the signal level on the communication line is the priority level, it is determined that there is data collision, and the node that has determined the data collision stops the transmission operation and the signal on the communication line is A multiplex communication system of a single communication line, wherein the transmission operation is performed again when the level becomes a non-priority level for a period corresponding to 1.5 bits of the data or more.
【請求項2】前記通信線は車両用シングルワイヤーハー
ネスであることを特徴とする特許請求の範囲第1項記載
の単一通信線の多重通信方式。
2. The multiple communication system for a single communication line according to claim 1, wherein the communication line is a single wire harness for a vehicle.
【請求項3】データが衝突していると判定したノードは
非優先レベル信号を送信することを特徴とする特許請求
の範囲第1項記載の単一通信線の多重通信方式。
3. A single communication line multiplex communication system according to claim 1, wherein the nodes which are judged to have data collision transmit a non-priority level signal.
JP61050771A 1986-03-08 1986-03-08 Multiple communication system of single communication line Expired - Lifetime JPH0646732B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61050771A JPH0646732B2 (en) 1986-03-08 1986-03-08 Multiple communication system of single communication line

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61050771A JPH0646732B2 (en) 1986-03-08 1986-03-08 Multiple communication system of single communication line

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP60157807A Division JPH0722431B2 (en) 1985-07-16 1985-07-16 Multiplex communication system

Publications (2)

Publication Number Publication Date
JPS62161232A JPS62161232A (en) 1987-07-17
JPH0646732B2 true JPH0646732B2 (en) 1994-06-15

Family

ID=12868092

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61050771A Expired - Lifetime JPH0646732B2 (en) 1986-03-08 1986-03-08 Multiple communication system of single communication line

Country Status (1)

Country Link
JP (1) JPH0646732B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63207389A (en) * 1987-02-25 1988-08-26 Kobe Steel Ltd Production of lignan compound by cultured cell

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5344787A (en) * 1976-10-05 1978-04-21 Tokai Rika Co Ltd Transmitter and receiver
JPS58221538A (en) * 1982-06-17 1983-12-23 Fuji Xerox Co Ltd Preventing method of collision of data packet
JPS6083448A (en) * 1983-10-14 1985-05-11 Nippon Gakki Seizo Kk Bus and network communication system
JPS60132438A (en) * 1983-12-21 1985-07-15 Nissan Motor Co Ltd Single line type multiplex transmission device

Also Published As

Publication number Publication date
JPS62161232A (en) 1987-07-17

Similar Documents

Publication Publication Date Title
US4430651A (en) Expandable and contractible local area network system
EP0060067B1 (en) Multi-station token pass communication system
US4750109A (en) Method and system for expediting multi-packet messages in a computer network
US4410889A (en) System and method for synchronizing variable-length messages in a local area network data communication system
EP0076880A1 (en) A local area contention network data communication system
WO1987001253A1 (en) Bandwidth efficient multipoint date communication system
JPS6276840A (en) Node equipment
JP2770282B2 (en) Vehicle data transmission system
JPH0646732B2 (en) Multiple communication system of single communication line
JPH0722431B2 (en) Multiplex communication system
KR100609493B1 (en) Method for transmitting multiple sensors data with a CAN message
JP2000040013A (en) Method for detecting line abnormality for duplex communication system
JP3174663B2 (en) Communication system in multiplex server system
JPH01143533A (en) Multiplex transmission system
JPS61210740A (en) Emergency communicating control system for token bus type local network system
JPH0720105B2 (en) Method for determining operating state in multiple communication system
JPH0771089B2 (en) Communications system
JP2001094626A (en) Data transfer system and data transfer method
JPS62208738A (en) Communication interruption method in multiplex communication
JP2590719B2 (en) Satellite communication system
CA1208736A (en) System and method for name-lookup in a local area network data communication system
JPH021411B2 (en)
JPH06112962A (en) Multiplex transmission system
Kao Design of COLAN II, a control oriented local area network
JPH07202842A (en) Data transmitter

Legal Events

Date Code Title Description
EXPY Cancellation because of completion of term