JPH01133443A - Method for transmitting data by remain-undefeated system - Google Patents

Method for transmitting data by remain-undefeated system

Info

Publication number
JPH01133443A
JPH01133443A JP62290481A JP29048187A JPH01133443A JP H01133443 A JPH01133443 A JP H01133443A JP 62290481 A JP62290481 A JP 62290481A JP 29048187 A JP29048187 A JP 29048187A JP H01133443 A JPH01133443 A JP H01133443A
Authority
JP
Japan
Prior art keywords
terminal
bit
bus
data
sent
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
JP62290481A
Other languages
Japanese (ja)
Inventor
Hitonori Miyaishi
宮石 仁紀
Kazuyoshi Asai
浅井 和義
Shinichi Shinohara
慎一 篠原
Shinsaku Ine
稲 真作
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.)
Nippon Telegraph and Telephone Corp
Kanda Tsushin Kogyo Co Ltd
Original Assignee
Nippon Telegraph and Telephone Corp
Kanda Tsushin Kogyo 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 Nippon Telegraph and Telephone Corp, Kanda Tsushin Kogyo Co Ltd filed Critical Nippon Telegraph and Telephone Corp
Priority to JP62290481A priority Critical patent/JPH01133443A/en
Publication of JPH01133443A publication Critical patent/JPH01133443A/en
Pending legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To eliminate the limitation in time required for synchronously transmitting start bits in a CSMA/CD system by causing a terminal to omit sending of a start bit upon detecting that another terminal has already sent a start bit to a bus. CONSTITUTION:A preceding terminal 2b sends a preferential start bit when the terminal 2b again confirms the vacancy of a bus 1, 10mS-208muS after confirming the vacancy of the bus 1. When succeeding terminal 2a detects the state of the bus 1 where the terminal 2b has already sent the start bit, 10mS-208muS after the terminal 2a similarly confirms the vacancy of the bus 1, the control section 6 of the terminal 2a does not make any data transmission during the period of the start bit which is 104muS and, after the bit period, starts data sending from the bit next to the preferential start bit. Thereafter, the control section 6 collates the sent bit with a received bit and discriminate the priority.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、共通のバスに接続された複数の端末の内の或
る端末の送信時に、その端末が送出したデータビットと
バス上のデータビットとを照合し、これらのデータビッ
トが一致するときはデータの送出を継続し、不一致のと
きはデータの送出を中止するようにした勝ち残り方式に
よるデータ伝送方法に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention provides data bits sent by a certain terminal among a plurality of terminals connected to a common bus and data on the bus. The present invention relates to a data transmission method based on a winner-take-all system in which data bits are compared with each other, and when these data bits match, data transmission is continued, and when they do not match, data transmission is stopped.

(従来の技術) 上述した勝ち残り方式のデータ伝送方法は、−般にCS
 MA/ CD (Carrier 5ensed M
ultipleAccess with Co11is
ion Detection)方式と称ばれている。こ
のCS MA/CD方式は基本的には非同期方式であり
、各端末はバスが空き状態となっていれば任意の瞬時に
データを送出することかできるが、2つ以上の端末から
同時にバスへデータが送出される競合を避けるために、
データ送出中もバスの状態を監視し、自分以外の端末か
らのデータと衝突したことを検出する機能が付加されて
いる。ここで衝突を検出したときには、優先順位の低い
端末はデータの送出を停止し、優先順位の高い端末が勝
″ち残ってデータ送出を継続するようにしている。この
勝ち敗けの判断を行なう際には、以下説明するように複
数の端末間でビット同期がとられていなければならない
(Prior art) The above-described data transmission method of the winner-take-all method is generally
MA/CD (Carrier 5ense M
ultipleAccess with Co11is
ion Detection) method. This CS MA/CD method is basically an asynchronous method, and each terminal can send data at any instant as long as the bus is free, but two or more terminals can send data to the bus at the same time. To avoid conflicts where data is sent out,
It also has a function that monitors the bus status even while data is being sent, and detects collisions with data from other terminals. When a collision is detected, the terminal with a lower priority stops sending data, and the terminal with a higher priority survives and continues sending data.When making this determination of victory or defeat, To do so, bit synchronization must be achieved among multiple terminals as explained below.

第7図に示すように、データを送信していた端末がその
送信を終了してから10m5の休止期間T、lが設けら
れている。この休止期間中、端末に設けであるCPUは
必要な処理を終了し、データの監視に入るようになって
いる。この休止期間後、データ送信を希望する端末が複
数あった場合、先行してスタートビットを送出し始めた
端末に対し、他の端末は或る期間T、内に自己のスター
トビットをバスへ送出してビット同期をとる必要がある
As shown in FIG. 7, there is a pause period T, l of 10 m5 after the terminal that was transmitting data finishes its transmission. During this suspension period, the CPU provided in the terminal finishes necessary processing and begins monitoring data. After this pause period, if there are multiple terminals that wish to transmit data, the other terminals will send their own start bits to the bus within a certain period of time T to the terminal that started sending the start bit first. It is necessary to perform bit synchronization.

この期間T、はビット周期の1/8ときわめて短かいも
のである。その理由はこの期間T3内にスタートビット
を送出してビット同期をとらないと、スタートビットに
続く優先コードのビットb0〜b、をビット毎に比較し
て勝ち残りを決定することができなくなるためである。
This period T is extremely short, 1/8 of the bit period. The reason for this is that if the start bit is not sent out within this period T3 and the bits are synchronized, it will not be possible to compare bits b0 to b of the priority code following the start bit bit by bit to determine the winner. be.

このビット比較は先頭のビットb、から順次対比してい
き、後続端末のビットが「1」 (データ送出なし)の
とき、バス上の先行端末のデータが「0」 (データ送
出あり)であれば、後続端末の負けとなり、この端末は
以後のデータの送出は行なわないようにしている。この
ような比較を優先コードの順次のビット毎に行なうこと
により競合する端末の中で最も優先順位の高いものが最
後まで勝ち残り、その他の端末はすべて負けとなり、デ
ータの送出を行なわないようにしている。
This bit comparison starts from the first bit b, and when the bit of the succeeding terminal is "1" (no data sent), the data of the preceding terminal on the bus is "0" (data sent). In this case, the succeeding terminal loses, and this terminal is prevented from transmitting any further data. By performing such a comparison for each sequential bit of the priority code, the terminal with the highest priority among competing terminals survives to the end, and all other terminals lose and are prevented from transmitting data. There is.

(発明が解決しようとする問題点) 上述した従来のCS MA/CD方式によるデータ伝送
においては、或る端末がデータの送信を開始しようとす
るとき、他の端末が既にデータの送信を開始してしまっ
た場合には、ビット同期をとるために、きわめて短時間
の間にスタートビットを送出する必要がある。この同期
可能な時間は、例えばビット周期を104μsとすると
、13μsときわめて短かくなり、ソフトウェアで送信
制御するためには高速動作が可能な中央処理装置(CP
U)を用いる必要があり、それだけ設備費が嵩む欠点が
ある。例えば電話機、パソコン、セキュリティ装置など
の機器を端末としてバスに接続したホーム通信システム
の場合、CPUとしてマシンサイクルが2μsのものを
用いるとすると、6ステツプ以内に競合処理を開始しな
ければならないが、実行中の作業の中断処理をしてデー
タ送信に切換えるまでのステップ数としては大幅に少な
(、実現不可能に近いものである。
(Problems to be Solved by the Invention) In data transmission using the conventional CS MA/CD method described above, when a certain terminal is about to start transmitting data, another terminal has already started transmitting data. If this occurs, it is necessary to send out the start bit within an extremely short period of time in order to achieve bit synchronization. For example, if the bit period is 104 μs, this synchronizable time is extremely short, 13 μs.
U), which has the disadvantage of increasing equipment costs. For example, in the case of a home communication system in which devices such as telephones, personal computers, and security devices are connected to a bus as terminals, if a CPU with a machine cycle of 2 μs is used, competition processing must be started within 6 steps. The number of steps required to interrupt the work being executed and switch to data transmission is significantly small (and almost impossible).

本発明の目的は、上述した欠点を除去し、スタートビッ
トの同期伝送に要する時間的制約をなくし、CPUとし
て高速動作のものを用いる必要がなく、したがって設備
を安価とすることができるデータ伝送方法を提供しよう
とするものである。
An object of the present invention is to eliminate the above-mentioned drawbacks, eliminate the time constraints required for synchronous transmission of start bits, eliminate the need for a high-speed CPU, and therefore reduce the cost of equipment. This is what we are trying to provide.

(問題点を解決するための手段および作用)本発明のデ
ータ伝送方法は、共通のバスに接続された複数の端末の
内の或る端末の送信時に、その端末が送出したデータビ
ットとバス上のデータビットとを照合し、これらのデー
タビットが一致するときはデータの送出を継続し、不一
致のときはデータの送出を中止するようにした勝ち残り
方式によってデータを伝送するに当り、或る端末がデー
タを伝送しようとするときに、他の端末のスタートビッ
トが先にバス上に送出されていることを検知すると、当
該端末は自己のスタートビットの送出を省略し、スター
トビットの次のビットからデータをバス上に送出するこ
とを特徴とするものである。
(Means and effects for solving the problem) The data transmission method of the present invention is such that when a certain terminal among a plurality of terminals connected to a common bus transmits, the data bits sent by that terminal and the bus When transmitting data using the win-win method, in which data bits are checked against each other, and when these data bits match, data transmission is continued, and when they do not match, data transmission is stopped. When a terminal attempts to transmit data, if it detects that another terminal's start bit has been sent onto the bus first, that terminal skips sending its own start bit and transmits the next bit after the start bit. It is characterized by sending data from the bus onto the bus.

上述した本発明のデータ伝送方法によれば、他の端末が
バス上に既にスタートビットを送出していることを検知
した端末は、スタートビットの送出を省略し、次のビッ
トからデータの伝送を開始するため、スタートビットの
期間だけの余裕が得られ、この期間内にソフトウェア的
処理を行なうことができるので、低速動作のCPUを使
用することができる。
According to the data transmission method of the present invention described above, a terminal that detects that another terminal has already sent a start bit onto the bus skips sending the start bit and starts transmitting data from the next bit. In order to start, a margin of only the period of the start bit is obtained, and since software processing can be performed within this period, a low-speed operating CPU can be used.

(実施例) 第1図は本発明によるデータ伝送方法を実施する通信シ
ステムの構成を示すブロック図であり、第2図は或る端
末装置における制御動作を示すフローチャートであり、
第3図は各端末からバスへ送出されるデータの構成を示
すものである。なお、タイミング等についてはホームバ
スとして検討されいるプロトコルにおけるタイミングを
一例として述べる。第3図に示すように送出データは優
先コード、自己アドレス、相手アドレスおよびデータを
含んでおり、優先コードの先頭のビットはスタートビッ
トとなっている。バス1には複数の端末2 a、  2
 b−−−−2nが共通に接続されているとともにバス
はバスコントローラ3に接続されている。各端末2a、
2b−−−一は、受信部4、送信部5および制御部6を
具えている。
(Example) FIG. 1 is a block diagram showing the configuration of a communication system implementing the data transmission method according to the present invention, and FIG. 2 is a flowchart showing control operations in a certain terminal device.
FIG. 3 shows the structure of data sent from each terminal to the bus. Note that timing and the like will be described using the timing in a protocol that is being considered as a home bus as an example. As shown in FIG. 3, the sending data includes a priority code, a self address, a partner address, and data, and the first bit of the priority code is a start bit. Bus 1 has multiple terminals 2 a, 2
b---2n are connected in common, and the bus is connected to the bus controller 3. Each terminal 2a,
2b--1 includes a receiving section 4, a transmitting section 5, and a control section 6.

先ず、バス1に他の端末からのデータ伝送が行なわれて
いない場合、すなわちバスが空きの状態におけるデータ
送出動作について説明する。
First, a description will be given of the data sending operation when no data is being transmitted from another terminal to the bus 1, that is, when the bus is empty.

端末2aの受信部4は、送信要求を常に検出しており送
信要求を検出したときはバス1の状態の監視を開示する
。バス1が他の端末によって使用されていないかまたは
他の端末が送信を既に完了してバスが空いている場合に
は、制御部6は10mS−208μsの期間経過後、再
びバス1の状態を検知し始める。バスの空状態を208
μs間検出するときは競合する端末はないと判断し、送
信部5に信号を送り、優先コードの先頭ビットであるス
タートビットをバス1に送出する。この場合208μs
の時間は装置のバラツキを吸収するための余裕時間であ
る。当該端末2aの制御部6では、送信部5からバス1
へ送出したデータと、受信部4を介してバス上のデータ
とを照合するが、他の端末がデータを送出していない場
合には、これらの優先コードおよび自己アドレスのデー
タはすべて一致することになり、当該端末は勝ち残るこ
とになり、残りのデータを送出する。
The receiving unit 4 of the terminal 2a constantly detects transmission requests, and when detecting a transmission request, discloses monitoring of the state of the bus 1. If the bus 1 is not being used by another terminal or if the other terminal has already completed transmission and the bus is vacant, the control unit 6 checks the state of the bus 1 again after a period of 10 mS - 208 μs has elapsed. Start detecting. Bus empty status 208
When detecting for .mu.s, it is determined that there is no competing terminal, and a signal is sent to the transmitter 5, which sends the start bit, which is the first bit of the priority code, to the bus 1. In this case 208μs
The time is a margin time for absorbing device variations. The control section 6 of the terminal 2a transmits the data from the transmission section 5 to the bus 1.
The data sent to the terminal is compared with the data on the bus via the receiving unit 4, but if no other terminal is sending data, all data of these priority codes and self-addresses must match. Therefore, the terminal in question survives and sends out the remaining data.

次に、他の端末2bからもバスコントローラ3に対して
送信要求がある場合の動作について説明する。他の端末
2bがバス1上に送出するデータの構成も端末2aが送
出するものと同様に第3図に示すようになっている。
Next, the operation when there is a transmission request to the bus controller 3 from another terminal 2b will be explained. The structure of the data sent out on the bus 1 by the other terminal 2b is also as shown in FIG. 3, similar to that sent out by the terminal 2a.

上述したように、先行端末2bは、バス1の空を確認す
るとともに10mS−208μsの時間経過後に、再度
バスの空を確認すると、スタートビットをバスに送出す
る。このとき、追従端末2aでは先行端末2bと同様に
バスの空を確認後、10mS−208μsの時間経過し
たとき、バスの状態を検知するが、既に他の端末2bが
スタートビットを送出していることを検知することにな
る。
As described above, the preceding terminal 2b confirms that the bus 1 is empty and once again confirms that the bus is empty after a period of 10 mS-208 μs has elapsed, and sends a start bit to the bus. At this time, the follower terminal 2a detects the bus status after a time of 10mS-208μs has passed after confirming that the bus is empty in the same way as the preceding terminal 2b, but the other terminal 2b has already sent the start bit. This will be detected.

このときは、追従端末2aの制御部6は、スタートビッ
トの期間104μsの間データの伝送を行なわず、この
時間経過後、優先コードのスタートビットの次のビット
からデータの送出を開始する。
At this time, the control unit 6 of the follow-up terminal 2a does not transmit data during the start bit period of 104 μs, and after this time has elapsed, starts transmitting data from the bit next to the start bit of the priority code.

このビットの送出から1/4ビツト長の時間経過後、受
信部4においてバス1の状態を検知し、制御部6にその
状態データを供給する。制御部6では送信部5からバス
1へ送出したビットと受信部4で受信したバス上のビッ
トとを照合し、これらが一致する場合にはさらに次のビ
ットをバス1へ送出する。このようにして1ビツトずつ
データをバス1へ送出する毎に制御部6において、送出
したビットとバス上のビットとを照合する。優先コード
および自己アドレスのデータを送り終るまで、この照合
を継続する。途中でバスエヘ送ったビットデータがバス
上のビットデータと一致しない場合には、自己の端末が
敗けと判断し、以後のデータの送出を中止する。一方、
優先コードおよび自己アドレスのデータをすべて送り終
るまで、バス1へ送ったビットとバス上のビットとが一
致し続ける場合には、自己の端末が勝ち残ったと判断し
、以後制御部6での照合動作を行なわず、相手アドレス
およびデータの送出を行なう。
After a period of 1/4 bit length has elapsed since the transmission of this bit, the receiving section 4 detects the state of the bus 1 and supplies the state data to the control section 6. The control unit 6 compares the bits sent from the transmitting unit 5 to the bus 1 and the bits on the bus received by the receiving unit 4, and if they match, sends the next bit to the bus 1. In this manner, each time data is sent out to the bus 1 bit by bit, the control unit 6 compares the sent bit with the bit on the bus. This verification is continued until the priority code and self-address data have been sent. If the bit data sent to the bus midway does not match the bit data on the bus, it is determined that the own terminal has lost, and subsequent data transmission is stopped. on the other hand,
If the bits sent to bus 1 continue to match the bits on the bus until all priority code and self-address data have been sent, it is determined that the own terminal has won, and the control unit 6 then performs a verification operation. The other party's address and data are sent without doing so.

このように、本発明のデータ伝送方法によれば、先行す
る端末に追従する端末は、先行端末がスタートビットを
送出してからビット周期の1/8の短かい期間内にスタ
ートビットをバスに送信する必要はなく、次のビットか
らデータの送出を行なえばよいので、制御部は処理速度
の遅いCPUで構成できる。
As described above, according to the data transmission method of the present invention, a terminal following a preceding terminal transmits the start bit to the bus within a short period of 1/8 of the bit period after the preceding terminal sends the start bit. There is no need to transmit data, and data can be transmitted starting from the next bit, so the control section can be configured with a CPU having a slow processing speed.

第4図は本発明のデータ伝送方法を適用した家庭内の通
信システムの構成を示すブロック図であり、第5図はこ
の通信システムに使用するAMI(Alternate
 Mark Inversion)符号の説明図であり
、第6図は電話機等の端末から送信される信号の波形図
である0通信システムを制御する主装置11には2本の
情報線工2と1本の制御線13が接続され、さらに2本
の局線14が引込まれている。情報線12および制御線
13には電話機15、パソコン16、セキュリティ装置
17、キャプテン端末18、インターホン等の複数の端
末が接続されているが、第4図では電話機およびセキュ
リティ装置についてのみ内部構成を示しである。
FIG. 4 is a block diagram showing the configuration of a home communication system to which the data transmission method of the present invention is applied, and FIG. 5 is an AMI (alternate
Fig. 6 is an explanatory diagram of a signal (Mark Inversion) code, and Fig. 6 is a waveform diagram of a signal transmitted from a terminal such as a telephone. A control line 13 is connected, and two office lines 14 are further drawn in. A plurality of terminals such as a telephone 15, a personal computer 16, a security device 17, a captain terminal 18, and an intercom are connected to the information line 12 and the control line 13, but FIG. 4 shows the internal configuration of only the telephone and the security device. It is.

本例のデータ伝送方法で使用するAMI符号は、データ
伝送ラインの直流バランスをとるために、第5図Aに示
すように、送信データの極性を交互の符号で反転して送
出している。第5図Aでは負論理を用いており、「0」
状態のときにはデータ出力があり、そのデイ−ティは5
0%となっており、「1」状態のときはデータ出力なし
としている。一方、受信時には第5図Bに示すように極
性とは無関係にデータ出力の有無を判断して受信信号を
作成している。
In the AMI code used in the data transmission method of this example, in order to maintain DC balance of the data transmission line, as shown in FIG. 5A, the polarity of the transmitted data is alternately inverted and sent. In Figure 5A, negative logic is used, and "0"
When in the state, there is data output, and its date is 5.
0%, and when it is in the "1" state, no data is output. On the other hand, at the time of reception, as shown in FIG. 5B, the reception signal is created by determining the presence or absence of data output regardless of the polarity.

本例の通信システムの動作を、電話機15からの発信要
求と、セキュリティ装置17からの異常通報とが同時に
発生した場合について説明する。
The operation of the communication system of this example will be described in the case where a call request from the telephone 15 and an abnormality report from the security device 17 occur simultaneously.

電話機15において発信要求が発生すると、電話機のC
PU15aは制御線13の状態を受信部15bによって
監視する。他の端末が信号送出を終了したことを検知し
た後10m5経過後に第6図Aに示す優先コードのスタ
ートビットを送信部15cから制御線13に送出する。
When a call request occurs on the telephone 15, the telephone
The PU 15a monitors the state of the control line 13 using the receiving section 15b. The start bit of the priority code shown in FIG. 6A is sent from the transmitter 15c to the control line 13 after 10 m5 has elapsed after detecting that the other terminal has finished transmitting the signal.

一方、セキュリティ装置17は、センサ17aによって
異常を検出すると、そのCPU17bが異常通報動作を
開始する。CPU17bは他の端末が信号送出を終了し
たことを検知してから10m5経過後、優先コードのス
タートビットを送出させようとする。しかし、セキュリ
ティ装置17のCPU17bは、その受信部17cにて
電話機15が既にスタートビットを制御線13に送出し
たことを検知すると、自己のスタートビットの送出を行
わないように制御し、第6図Bに示すようにスタートビ
ットの次のビットb0から送出を開始させる。
On the other hand, when the security device 17 detects an abnormality using the sensor 17a, its CPU 17b starts an abnormality notification operation. The CPU 17b attempts to transmit the start bit of the priority code 10m5 after detecting that the other terminal has finished transmitting the signal. However, when the CPU 17b of the security device 17 detects in its reception unit 17c that the telephone 15 has already sent a start bit to the control line 13, it controls the CPU 17b not to send its own start bit, as shown in FIG. As shown in B, transmission is started from bit b0 next to the start bit.

さて、セキュリティ装置17ではCPU17bの制御に
よってビットb0すなわち「0」信号を制御線13へ送
出すると、セキュリティ装置の受信部17cでは制御線
13の信号を検出し、検出出力をCPU17bに出力す
る。CPU17bでは制御線13に送出したビットb、
すなわち「0」信号と制御線の状態「0」を照合し、同
一と判断すると、さらに優先コードの次のビットb+ 
 ’IJを制御線13に送出する。セキュリティ装置1
7の受信部17cでは再び制御線13の信号を検出し、
検出出力をCPU17bに出力する。CPU17bでは
制御線13に送出したビットb、すなわちrl、信号と
制御線13の状態rl、を照合し、同一であることを判
断しさらに優先コードの次のピッl’btの信号r1」
を送信部17dから制御線13に送出する。上述したよ
うにCPU17bは送信部17dから制御線13に送出
したビットの信号と受信部17cにて受信した制御線1
3の状態を照合し、一致すれば次のビットを制御線に送
出するようにする。優先コード及び自己アドレスの各ビ
ットに対する照合の結果すべて一致すれば自己が勝ち残
ったことになり、自己アドレス以後のデータについては
ビット照合を行わずに制御線13に送出する。
Now, when the security device 17 sends a bit b0, that is, a "0" signal to the control line 13 under the control of the CPU 17b, the receiving section 17c of the security device detects the signal on the control line 13 and outputs a detection output to the CPU 17b. In the CPU 17b, bit b sent to the control line 13,
In other words, the "0" signal and the control line state "0" are compared, and if it is determined that they are the same, the next bit b+ of the priority code is
'Send IJ to control line 13. Security device 1
The receiving unit 17c of 7 detects the signal on the control line 13 again,
The detection output is output to the CPU 17b. The CPU 17b compares the bit b, that is, the signal rl, sent to the control line 13 with the state rl of the control line 13, determines that they are the same, and then outputs the signal r1 of the next bit of the priority code, rl.
is sent to the control line 13 from the transmitter 17d. As described above, the CPU 17b receives the bit signal sent from the transmitter 17d to the control line 13 and the control line 1 received by the receiver 17c.
3, and if they match, the next bit is sent to the control line. If all the bits of the priority code and the self-address match, it means that the self-address has won, and the data after the self-address is sent to the control line 13 without bit verification.

さて、電話機15はスタートビット送出後、CPU 1
5 aの制御によって送信部15cから優先コード内の
ビットb0すなわち「0」の信号を制御線13に送出す
る。またCPU 15 aは受信部15bによって制御
線13の状態「0」を検出し、送出した「0」信号と照
合する。CPU15aは同一であることを判断するとさ
らに次のビットすなわちb+  ’IJを制御線13に
送出する。電話機15はこようにCPU 15 aによ
り送信部15cから制御線13に送出したビット信号と
、受信部15bにて受信した制御線13の状態を照合し
、一致すれば次のビットを制御線13に送出する。優先
コードのビットb3の信号「0」までは電話機15が送
出するビット信号と制御線13の状態は一致するため電
話機は次のビットb4の信号「1」を送信部15cから
制御線13に送出する。セキュリティ装置の優先コード
のビットb4の信号は「0」となっているため、制御線
13の状態はここで「0」状態であり、CPU15aは
この「0」状態を検知した受信部15bからの信号を受
け、自己のビットb4の「1」状態と照合し、不一致が
判断され電話機15は負けと判断し、優先コードのビッ
トb、以降のビット及び自己アドレス以降のデータの送
出を中止する。
Now, after the telephone 15 sends the start bit, the CPU 1
Under the control of 5a, a signal of bit b0 in the priority code, that is, "0", is sent from the transmitter 15c to the control line 13. Further, the CPU 15a detects the state "0" of the control line 13 by the receiving section 15b, and compares it with the transmitted "0" signal. When the CPU 15a determines that they are the same, it sends the next bit, ie, b+'IJ, to the control line 13. In this way, the telephone 15 compares the bit signal sent from the transmitter 15c to the control line 13 by the CPU 15a with the state of the control line 13 received by the receiver 15b, and if they match, transmits the next bit to the control line 13. Send to. Since the bit signal sent by the telephone 15 and the state of the control line 13 match up to the signal "0" of bit b3 of the priority code, the telephone transmits the next signal "1" of bit b4 from the transmitter 15c to the control line 13. do. Since the signal of bit b4 of the priority code of the security device is "0", the state of the control line 13 is now "0" state, and the CPU 15a receives the signal from the receiving section 15b that detects this "0" state. Upon receiving the signal, the telephone 15 compares it with the "1" state of its own bit b4, and if a mismatch is determined, the telephone 15 determines that it has lost, and stops transmitting the bit b of the priority code, the following bits, and the data after its own address.

このようにして電話機15とセキュリティ装置17が制
御線13に同時にデータを送り始めても電話機が途中で
データ送信を中止し、セキュリティ装置のみが勝ち残っ
て制御線にデータを送信し続けることになる。勝ち残っ
たセキュリティ装置17は主装置11及びその他の機器
に異常発生のデータを伝えると共に、情報線工2に異常
通報部17eを接続し、主装置の制御により情報線から
局線14を介し監視センタ等(図示せず)へデータ又は
音声信号を送出する。
In this way, even if the telephone 15 and the security device 17 start sending data to the control line 13 at the same time, the telephone will stop transmitting data midway, and only the security device will survive and continue to send data to the control line. The winning security device 17 not only transmits abnormality data to the main device 11 and other devices, but also connects the abnormality reporting unit 17e to the information linework 2, and sends the information to the monitoring center via the central office line 14 from the information line under the control of the main device. etc. (not shown).

なお、電話機15のみが発信要求のデータの制御線13
に送信した場合には主装置11の制御により、電話機が
通話回路15dにより情報線13を介して局線14を捕
捉することになり、電話機からダイヤル操作により相手
が応答すれば通話状態となる。
It should be noted that only the telephone 15 uses the control line 13 for transmission request data.
When a call is sent to the other party, the main device 11 controls the telephone to capture the office line 14 via the information line 13 using the telephone communication circuit 15d, and when the other party answers by dialing from the telephone, a telephone call is established.

上述した実施例において、電話機15及びセキュリティ
装置17の両方が制御線13にデータを送信している時
、制御線の状態は第6図Cに示すように両者が送信して
いるビット情報のオアをとったものとなっている。その
ため、電話機15が優先コードのスタートビットを送信
すれば、セキュリティ装置17が優先コードのスタート
ビットを出そうが、出すまいが制御線13の状態には影
響がない。
In the embodiment described above, when both the telephone set 15 and the security device 17 are transmitting data on the control line 13, the state of the control line is the OR of the bit information that both are transmitting, as shown in FIG. 6C. It has been taken. Therefore, if the telephone set 15 transmits the start bit of the priority code, the state of the control line 13 is not affected whether or not the security device 17 outputs the start bit of the priority code.

上述した実施例において、情報線、制御線に接続される
端末として電話機、セキュリティ装置で説明したが、こ
の他キャブ、テン端末、パソコン、インターホン等であ
ってもよい。またこれらの機器を複数台ずつ設置しても
よい。
In the above-described embodiments, a telephone and a security device have been described as the terminals connected to the information line and the control line, but other terminals such as a cab, a ten terminal, a personal computer, an intercom, etc. may also be used. Further, a plurality of these devices may be installed.

上述した実施例においては競合した端末が2台であった
がこれは3台以上であっても同様な方法で競合動作が行
われる。
In the embodiment described above, there were two competing terminals, but even if there are three or more terminals, the competing operation is performed in the same manner.

通常ホームバスの場合、ビット幅を104μsとしてい
るが、勝ち残りの判断を行なうためのビット同期はビッ
ト幅の1/8以下の精度に収める必要があり、したがっ
て先行端末がスタートビットを送出した後、13μs以
内に追従端末はスタートビットを送出しなければならな
かった。この場合、マシンサイクルが2μsのCPUを
用いるとすると、追従端末では6ステツプ以内にスター
トビットの送出をしなければならないが、実行中の作業
を中断してデータ送信に切換えるまでのステップ数とし
ては実現不可能に近いステップ数である。これに対し、
本発明ではビット幅分の余裕が得られるので、52ステ
ツプもの作業が行え、作業切換に対して十分なステップ
数が確保できる。
Normally, in the case of a home bus, the bit width is 104 μs, but the bit synchronization to determine who is the winner needs to be accurate to less than 1/8 of the bit width. Therefore, after the preceding terminal sends the start bit, The follower terminal had to send a start bit within 13 μs. In this case, if a CPU with a machine cycle of 2 μs is used, the follow-up terminal must send the start bit within 6 steps, but the number of steps required to interrupt the current task and switch to data transmission is This is an almost impossible number of steps. In contrast,
In the present invention, since a margin corresponding to the bit width is obtained, as many as 52 steps can be performed, and a sufficient number of steps can be secured for work switching.

(発明の効果) 上述したように、本発明のデータ伝送方法によれば、先
行する端末がバスにデータを送出していることを検知し
たときは、これに追従する端末はスタートビットの送出
を省略し、その次のビットからデータの送出を行なうよ
うにしているため、バスへの送信制御を従来より処理速
度の遅いCPUを用いて行なうことができ、システムの
コストを大幅に低減することができる。
(Effects of the Invention) As described above, according to the data transmission method of the present invention, when it is detected that the preceding terminal is sending data to the bus, the following terminal stops sending the start bit. Since the bit is omitted and data is sent from the next bit, it is possible to control transmission to the bus using a CPU that has a slower processing speed than before, significantly reducing system costs. can.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明によるデータ伝送方法を実施する装置の
基本的構成を示す図、 第2図は同じくその動作を説明するためのフローチャー
トを示す図、 第3図は各端末が送信するデータの構成を示す図、 第4図は本発明のデータ伝送方法を適用したホーム通信
システムの構成を示す図、 第5図は同じくそれに用いるAMI符号を示す図、 第6図A、BおよびCは同じくその動作を説明するため
の信号波形図、 第7図は従来のデータ伝送方法を説明するための送信デ
ータの構成を示す図である。 1…バス 2 a、  2 b−−−−2n・・一端末3・・・バ
スコントローラ 4・・・受B 部    ’5・・・
送信部      6・・・制御部11・・・主装置 
    12・・・情報線13・・・制御線     
14・・・局線15・・・電話機     16・・・
パソコン17・・・セキエリティ装置 18・・・キャプテン端末 特許出願人  神田通信工業株式会社
FIG. 1 is a diagram showing the basic configuration of a device implementing the data transmission method according to the present invention, FIG. 2 is a diagram showing a flowchart for explaining the operation, and FIG. Figure 4 is a diagram showing the configuration of a home communication system to which the data transmission method of the present invention is applied. Figure 5 is a diagram showing the AMI code used therein. Figure 6 A, B, and C are the same. FIG. 7 is a signal waveform diagram for explaining the operation. FIG. 7 is a diagram showing the structure of transmission data for explaining the conventional data transmission method. 1... Bus 2 a, 2 b---2n... One terminal 3... Bus controller 4... Receiver B part '5...
Transmission unit 6...Control unit 11...Main device
12... Information line 13... Control line
14... Office line 15... Telephone 16...
Personal computer 17... Security device 18... Captain terminal Patent applicant Kanda Tsushin Kogyo Co., Ltd.

Claims (1)

【特許請求の範囲】 1、共通のバスに接続された複数の端末の内の或る端末
の送信時に、その端末が送出したデータビットとバス上
のデータビットとを照合し、これらのデータビットが一
致するときはデータの送出を継続し、不一致のときはデ
ータの送出を中止するようにした勝ち残り方式によって
データを伝送するに当り、 或る端末がデータを伝送しようとするとき に、他の端末のスタートビットが先にバス上に送出され
ていることを検知すると、当該端末は自己のスタートビ
ットの送出を省略し、スタートビットの次のビットから
データをバス上に送出することを特徴とする勝ち残り方
式によるデータ伝送方法。
[Claims] 1. When a certain terminal among a plurality of terminals connected to a common bus transmits data, the data bits sent by that terminal are compared with the data bits on the bus, and these data bits are When transmitting data using the winner-take-all method, in which data transmission is continued when the terminals match, and data transmission is stopped when they do not match, when one terminal is about to transmit data, another terminal The present invention is characterized in that when it detects that the terminal's start bit has been sent onto the bus first, the terminal omits sending its own start bit and sends data onto the bus from the bit following the start bit. A data transmission method based on a winner-take-all method.
JP62290481A 1987-11-19 1987-11-19 Method for transmitting data by remain-undefeated system Pending JPH01133443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62290481A JPH01133443A (en) 1987-11-19 1987-11-19 Method for transmitting data by remain-undefeated system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62290481A JPH01133443A (en) 1987-11-19 1987-11-19 Method for transmitting data by remain-undefeated system

Publications (1)

Publication Number Publication Date
JPH01133443A true JPH01133443A (en) 1989-05-25

Family

ID=17756574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62290481A Pending JPH01133443A (en) 1987-11-19 1987-11-19 Method for transmitting data by remain-undefeated system

Country Status (1)

Country Link
JP (1) JPH01133443A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03148935A (en) * 1989-11-06 1991-06-25 Nissan Motor Co Ltd Bit mediating system by current detection
JPH04220858A (en) * 1990-12-20 1992-08-11 Iwatsu Electric Co Ltd Data transmission system
RU2468054C1 (en) * 2011-05-10 2012-11-27 Открытое акционерное общество "Научно-исследовательский институт приборостроения имени В.В. Тихомирова" Method to produce compound

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH03148935A (en) * 1989-11-06 1991-06-25 Nissan Motor Co Ltd Bit mediating system by current detection
JPH0777377B2 (en) * 1989-11-06 1995-08-16 日産自動車株式会社 Communication processing device
JPH04220858A (en) * 1990-12-20 1992-08-11 Iwatsu Electric Co Ltd Data transmission system
JPH0821940B2 (en) * 1990-12-20 1996-03-04 岩崎通信機株式会社 Data transmission method
RU2468054C1 (en) * 2011-05-10 2012-11-27 Открытое акционерное общество "Научно-исследовательский институт приборостроения имени В.В. Тихомирова" Method to produce compound

Similar Documents

Publication Publication Date Title
US4710918A (en) Composite data transmission system
JPH01133443A (en) Method for transmitting data by remain-undefeated system
US4858230A (en) Multiport/multidrop computer communications
US5063561A (en) Procedure and apparatus for transmitting binary messages in a serial communication bus
US4634812A (en) Method of transferring information between microcomputers in a decentralized process control system, particularly for telephone systems
JPS6125348A (en) Method for deciding and notifying communication speed of data communication network
JPH0475696B2 (en)
JPS61200734A (en) Data transmission system
JP2775889B2 (en) Telephone device and telephone with intercom
JP3042822B2 (en) Bus contention control method
JPH06276200A (en) Competition control method for communication system
JPS6294035A (en) Cai data line control system
JP2688094B2 (en) Polling communication method
JPH0126237B2 (en)
JPS62176236A (en) Method for preventing transmission error at reply packet transmission
JPH0149220B2 (en)
JPH01166651A (en) Automobile telephone system with dual handset
JPH0723055A (en) Remote monitoring control equipment
JPS61251256A (en) Automatic adapting data terminal equipment for line rate
JPS59172058A (en) Mutual communication system for microcomputer
JPH07202842A (en) Data transmitter
JPS60105342A (en) Bus type line control system
JPS61227441A (en) Transmitter
JPS63252040A (en) Contention control transmitter
JPS6159935A (en) Call identification system