JPS60105342A - Bus type line control system - Google Patents

Bus type line control system

Info

Publication number
JPS60105342A
JPS60105342A JP21378183A JP21378183A JPS60105342A JP S60105342 A JPS60105342 A JP S60105342A JP 21378183 A JP21378183 A JP 21378183A JP 21378183 A JP21378183 A JP 21378183A JP S60105342 A JPS60105342 A JP S60105342A
Authority
JP
Japan
Prior art keywords
code
data
signal
carrier
identification number
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
JP21378183A
Other languages
Japanese (ja)
Inventor
Sumio Uchiyama
内山 純夫
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co Ltd
Fuji Electric Manufacturing 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 Fuji Electric Co Ltd, Fuji Electric Manufacturing Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP21378183A priority Critical patent/JPS60105342A/en
Publication of JPS60105342A publication Critical patent/JPS60105342A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/407Bus networks with decentralised control
    • H04L12/413Bus networks with decentralised control with random access, e.g. carrier-sense multiple-access with collision detection [CSMA-CD]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To attain efficiently a simple n:n data communication by discriminating whether or not collision takes place depending whether or not an identification number in a carrier signal transmitted from the own station is received normally by the own station. CONSTITUTION:A code transmission section 62 outputs a carrier code 31 or a data code 41 to a line 14 in the timing generated from a supervisory timer section 63, as a data signal 40 comprising consecutive codes 41 for the code 41, and carrier signal 30 for the code 31 in the time interval of the time width of carrier code. A generating section 65 reads an identification number of the own station from a set section 69 and transfers it to a transmission section 62 as the code 31. A data check section 71 checks whether or not the constitution of the signal 40 is coincident with the data form and checks by using a check code 55. When the check shows no fault and the identification number of an identification number code 53 is coincident with the own identification number set to the set section 69, it is discriminated as the signal 40 for the own station and a received data 72b of the data section 54 is transferred to a data processing section 72.

Description

【発明の詳細な説明】 〔発明の属する技術分野〕 この発明は調歩同期によるシリアル伝送を用いたバネ形
回線の制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field to which the Invention Pertains] The present invention relates to a control system for a spring line using serial transmission by start-stop synchronization.

〔従来技術とその問題点〕[Prior art and its problems]

調歩同期によるシリアル伝送は、その制御の容易性によ
り広く行われているが、多くの場合には送、受信の局が
1:1の交信をこ利用されている。
Serial transmission using start-stop synchronization is widely used due to its ease of control, but in many cases, 1:1 communication between transmitting and receiving stations is used.

この種の伝送方式を用いてバス形回線を構成し、送、受
信の局がn:nの交信(以下単にn:n通信と呼ぶ)を
行う場合には、以下の問題点がある。
When a bus-type line is constructed using this type of transmission system and transmitting and receiving stations perform n:n communication (hereinafter simply referred to as n:n communication), the following problems arise.

すなわち交信時の、他の局間の交信との衝突を検出する
ために、データ信号の送信に先だってキャリア信号を送
信し、このキャリア信号の状態を監視することにより衝
突の有無を検出する。
That is, in order to detect a collision with communication between other stations during communication, a carrier signal is transmitted before transmitting a data signal, and the presence or absence of a collision is detected by monitoring the state of this carrier signal.

キャリア信号としてはデータ信号とは別に、一定周波数
の信号を送信し、その電圧レベルの変動により衝突を検
出する方法があるが、キャリア信号発生/監視回路がデ
ータ信号送信/受信回路と別に必要になり、制御の複雑
化及びコスト高になる欠点がある。
As a carrier signal, there is a method of transmitting a signal with a constant frequency in addition to the data signal, and detecting collisions based on fluctuations in the voltage level, but this method requires a carrier signal generation/monitoring circuit separate from the data signal transmission/reception circuit. This has the disadvantage of complicating control and increasing costs.

またキャリア信号として、データ信号の特定なパターン
を使用する方式があるが、この場合にはキャリア信号と
データ信号を識別するために、各データに特定のコード
を付加して符号(たとえば率 Ji87単位符号)化する必要があり、伝送効祭が悪く
なるという欠点がある。
There is also a system that uses a specific pattern of a data signal as a carrier signal, but in this case, in order to distinguish between the carrier signal and the data signal, a specific code is added to each data and a code (for example, in rate Ji87 units) is used. The disadvantage is that the transmission efficiency deteriorates because it needs to be encoded.

〔発明の目的〕[Purpose of the invention]

この発明は特別なキャリア信号発生監視回路を必要とせ
ず、しかもデータを符号化することなく、調歩同期シリ
アル伝送によるn:n通信が可能な、バス形回線制御方
式を提供することを目的とする。
An object of the present invention is to provide a bus-type line control system that enables n:n communication by asynchronous serial transmission without requiring a special carrier signal generation monitoring circuit and without encoding data. .

〔発明の要点〕[Key points of the invention]

本発明の主な要点は、共通の回線を介し、調歩同期によ
るシリアル伝送を用いて相互に交信を行う複数の局から
なるシステムにおいて、前記回線上で交信される信号の
コードの列が連続か不連続かに応じて、前記信号をそれ
ぞれデータ信号、キャリア信号と識別する点と、前記キ
ャリア信号内の前記コードは当該のキャリア信号を送信
する局を識別するための識別番号を有する点と、自局が
送信した前記キャリア信号内の前記識別番号を自局が正
常に受信できたか否かに応じ、衝突の非発生か発生かを
判定する点にある。
The main point of the present invention is that in a system consisting of a plurality of stations that communicate with each other via a common line using serial transmission using start-stop synchronization, the code sequences of the signals communicated on the line are continuous. depending on whether the signal is discontinuous, the signal is identified as a data signal or a carrier signal, respectively; the code in the carrier signal has an identification number for identifying the station transmitting the carrier signal; The point is that it is determined whether a collision has occurred or not, depending on whether or not the own station has successfully received the identification number in the carrier signal transmitted by the own station.

〔発明の実施例〕[Embodiments of the invention]

以下第1〜9図に基いて本発明を説明する。なお以下各
図の説明において同一の符号は、同−又は相当部分を示
す。
The present invention will be explained below based on FIGS. 1 to 9. Note that in the description of each figure below, the same reference numerals indicate the same or corresponding parts.

第1図は本発明の実施例を示すもので、データ信号及び
キャリア信号の送受信を行う局11が、同一の回線14
に送信線12.受信線13を介して複数個接続されてい
る。
FIG. 1 shows an embodiment of the present invention, in which a station 11 that transmits and receives data signals and carrier signals is connected to the same line 14.
Transmission line 12. A plurality of them are connected via the receiving line 13.

第2図は、回線14上で交信される信号のコード形式を
示すもので、キャリア信号及びデータ信号は全てこの形
式のコード20で構成されている。
FIG. 2 shows the code format of signals communicated on the line 14, and all carrier signals and data signals are composed of codes 20 of this format.

なお同図において21はストップビット、22はデータ
ビット、23はパリティビット、24はストップビット
である。
In the figure, 21 is a stop bit, 22 is a data bit, 23 is a parity bit, and 24 is a stop bit.

第3図は回線14上のキャリア信号30の形式である。FIG. 3 shows the format of carrier signal 30 on line 14.

第2図のコード20の形式のキャリアコード31が周期
(TC+TW)で繰返される。
A carrier code 31 in the form of code 20 in FIG. 2 is repeated with a period (TC+TW).

ここでTCはキャリアコード31の時間幅(コード時間
幅と呼ぶ)で伝送速度に依存する。TWはキャリアコー
ド31と次のキャリアコード31との間の時間幅(キャ
リアコード間時間幅と呼ぶ)である。なおキャリアコー
ド31としてのコード20のデータビット22には後述
のようにキャリア信号30を送信する自局の識別番号(
自識別番号と言う)が格納される。
Here, TC is the time width of the carrier code 31 (referred to as code time width) and depends on the transmission speed. TW is the time width between carrier code 31 and the next carrier code 31 (referred to as inter-carrier code time width). Note that the data bit 22 of the code 20 as the carrier code 31 contains the identification number (
(referred to as a self-identification number) is stored.

第4図は回線14上のデータ信号4oの形式である。第
2図のコード2oの形式の、従ってコード時間幅TCの
データコード41が連続して送信される。これは前記の
キャリア信号のキャリアコード間時間幅TWをOとした
形に相当する。
FIG. 4 shows the format of data signal 4o on line 14. A data code 41 in the form of code 2o in FIG. 2 and thus having a code duration TC is transmitted continuously. This corresponds to the form in which the inter-carrier code time width TW of the carrier signal is O.

第5図は前記データ信号4oとデータコード41別の機
能で表わした形式を示す。データ信号4゜は前記のよう
にデータコード41の列により構成されている。データ
信号4oの先頭のデータコード41(先頭コード)51
はデータ信号4oの開始を示すコード20であり、キャ
リア信号との識別に使用される。該コード51に続くデ
ータコード41(データ長コード)52は例えば送信さ
れるデータを構成している下記データ部54内のデータ
コード41の数(データ長と呼ぶ)が格納される。受信
側ではこの数(データ長)を用いて、データ信号40の
受信終了を判定する。次のデータコード41(w&別番
号コード53)にはデータ信号40を受信すべき相手局
の識別番号が格納されており、受信局では自分の識別番
号と一致したデータ信号40のみを受信する。次の一連
のデータコード41(データ部54)には任意の数(デ
ータ長)のデータが格納される。データ信号40格納さ
れており、受信したデータに誤りが有るかどうか調べる
ために使用される。
FIG. 5 shows the format of the data signal 4o and data code 41 expressed by different functions. The data signal 4° is composed of a string of data codes 41 as described above. Data code 41 (start code) 51 at the beginning of data signal 4o
is a code 20 indicating the start of the data signal 4o, and is used to distinguish it from the carrier signal. The data code 41 (data length code) 52 following the code 51 stores, for example, the number of data codes 41 (referred to as data length) in the data section 54 below that constitutes the data to be transmitted. The receiving side uses this number (data length) to determine whether the reception of the data signal 40 is complete. The next data code 41 (w & other number code 53) stores the identification number of the partner station that should receive the data signal 40, and the receiving station receives only the data signal 40 that matches its own identification number. An arbitrary number (data length) of data is stored in the next series of data codes 41 (data section 54). A data signal 40 is stored and used to check whether there is an error in the received data.

第6図にこの発明実施時の構成図を示す。コード送信部
62は、キャリアコード発生部65あるいはデータフォ
ーマット形成部66から送られてきた情報(キャリアコ
ード31あるいはデータコード41)を監視タイマ一部
63が生成するタイミングによりデータコード41の場
合には連続のデータコード41からなるデータ信号40
として、又キャリアコード31の場合には前記キャリア
コード間時間幅TWの時間間隔でキャリアコード31を
キャリア信号30として回線14へ出力する。
FIG. 6 shows a configuration diagram when this invention is implemented. The code transmitter 62 receives the information (carrier code 31 or data code 41) sent from the carrier code generator 65 or the data format generator 66 according to the timing when the monitoring timer section 63 generates the data code 41. A data signal 40 consisting of a continuous data code 41
In the case of a carrier code 31, the carrier code 31 is output as a carrier signal 30 to the line 14 at time intervals of the inter-carrier code time width TW.

前記キャリアコード発生部65はスイッチあるいはメモ
リ情報により設定された自局の識別番号(自識別番号)
を自識別番号設定部69より読み込み、キャリアコード
31としてコード送信部62へ転送する。データフォー
マット形成部66はデータ処理部72より転送された送
信データ72aを第5図に示したデータコード41から
なるデータ信号40の形式に変換後、コード送信部62
へ転送する。コード送信部62は、データフォーマット
形成部66から送信データ72aを送るデータコード4
1を受け取ると、キャリアコード発生部65から送られ
てくるキャリアコード31を回線14に出力する。一定
時間のキャリア出方中、衝突検出部70から衝突検出信
号70aが、送られてこない場合には、回線14を確保
したものとしてデータ信号40を回線14上に出力する
The carrier code generation unit 65 generates an identification number of its own station (self-identification number) set by a switch or memory information.
is read from the self-identification number setting unit 69 and transferred to the code transmitting unit 62 as the carrier code 31. The data format forming section 66 converts the transmission data 72a transferred from the data processing section 72 into the format of the data signal 40 consisting of the data code 41 shown in FIG.
Transfer to. The code transmitter 62 sends data code 4 to send data 72a from the data format generator 66.
1, the carrier code 31 sent from the carrier code generator 65 is output to the line 14. If the collision detection signal 70a is not sent from the collision detection unit 70 during the carrier output for a certain period of time, the data signal 40 is output onto the line 14 assuming that the line 14 is secured.

もし衝突が検出された場合には、一定時間(後述の待機
時間)待機の後、後述のように回線14上の信号を調べ
、該信号の存在しないときはキャリア信号30を送信し
、前記信号の存在するときは、場合に応じて再度後述の
待機時間待機するか又はキャリア信号30の送信を行う
If a collision is detected, after waiting for a certain period of time (waiting time described later), the signal on the line 14 is checked as described later, and if the signal does not exist, the carrier signal 30 is transmitted, and the signal If the carrier signal 30 is present, the carrier signal 30 is either waited again for the waiting time described below or the carrier signal 30 is transmitted depending on the case.

コード受信部64は回線14上に送信されているキャリ
ア信号30又はデータ信号1oの各コード20を受信す
る。受信されたコード2oは、監視タイマ一部63によ
り、コード間の時間幅が計数され、その値が前記キャリ
アコード間時間幅TWの2/3(以下2/3・TW待時
間言う)よりも短かい場合には、データコード41とし
てデータ信号受信部68へ、前記2/3 @TV時間よ
りも長い場合にはキャリアコード31としてキャリア信
号受信部67へ転送される。衝突検出部7oはキャリア
信号受信部67より転送されたキャリアコード31を調
べ、キャリアコード31のパリティ異常(前記パリティ
ビット23の異常)、フレーミング異常(例えばコード
20におけるストップビット24があるべき位置にない
こと等)等の異常が発生した場合、及びキャリアコード
31の内容が自識別番号と一致していない場合には、前
記衝突検出信号70aを前記のようにコード送信部62
へ送信する。
The code receiving section 64 receives each code 20 of the carrier signal 30 or data signal 1o transmitted on the line 14. For the received code 2o, the time width between codes is counted by the monitoring timer part 63, and the value is greater than 2/3 of the carrier code time width TW (hereinafter referred to as 2/3・TW waiting time). If it is shorter, it is transferred to the data signal receiving section 68 as a data code 41, and if it is longer than the 2/3@TV time, it is transferred to the carrier signal receiving section 67 as a carrier code 31. The collision detection unit 7o examines the carrier code 31 transferred from the carrier signal receiving unit 67, and detects a parity abnormality in the carrier code 31 (an abnormality in the parity bit 23), a framing abnormality (for example, the stop bit 24 in the code 20 is not in the correct position). If an abnormality occurs such as when the carrier code 31 does not match the self-identification number, the collision detection signal 70a is sent to the code transmitter 62 as described above.
Send to.

データ信号受信部68は受信したデータコード41を調
べ、他の局、11の割込による交信開始などで異常が発
生した場合には、前記衝突検出部70を経由して、コー
ド送信部62へ衝突検出信号70aを送信する。コード
送信部62はデータ信号40の送信中にこのような衝突
を検出した場合にはただちに送信を中止し、一定時間(
後述の待機時間)の待機後再度キャリア信号30の送信
を行う。
The data signal receiving section 68 examines the received data code 41, and if an abnormality occurs such as when communication is started due to an interruption by another station, the data signal receiving section 68 sends the code to the code transmitting section 62 via the collision detecting section 70. A collision detection signal 70a is transmitted. If the code transmitter 62 detects such a collision while transmitting the data signal 40, it immediately stops transmitting and waits for a certain period of time (
After waiting for a waiting time (described later), the carrier signal 30 is transmitted again.

データ検査部71はデータ信号受信部68より転送され
てきたデータコード41からなるデータ信号40の構成
が第5図のようなデータ形式に一致しているかどうかを
調べ、又チェックコード55による検査を行う。検査に
異常がなく、かつ識別番号コード53の識別番号が自識
別番号設定部69に設定された自識別番号と一致した場
合ζこは、自局向けのデータ信号40と判定し、データ
部54の受信データ72bをデータ処理部72へ転送す
る。
The data inspection unit 71 checks whether the structure of the data signal 40 consisting of the data code 41 transferred from the data signal reception unit 68 matches the data format as shown in FIG. conduct. If there is no abnormality in the inspection and the identification number of the identification number code 53 matches the self-identification number set in the self-identification number setting section 69, it is determined that the data signal 40 is for the own station, and the data section 54 The received data 72b is transferred to the data processing section 72.

この発明をマイクロコンピュータを用いて実施した時の
制御手順を、第6図を参照しつつ、第7〜9図を用いて
説明する。第7図は局11の間に優先順位のない場合(
通常処理時と言う)の送信手順を、第9図は前記優先順
位のある場合(優先又は割込処理時と言う)の送信手順
を、第8図は前記2つの場合における受信手順を示す。
The control procedure when this invention is implemented using a microcomputer will be explained using FIGS. 7 to 9 with reference to FIG. 6. Figure 7 shows the case where there is no priority among stations 11 (
FIG. 9 shows the transmission procedure when there is a priority order (referred to as priority or interrupt processing), and FIG. 8 shows the reception procedure in the two cases described above.

第7図は前記通常処理時の送信手順を示すフローチャー
トである。始めに回線14が空いているかどうかを調べ
るために、ステップ■でコード受信部64がコード20
を受信しなくなると、ステップ■において監視タイマ部
63を介し前記キャリアコード間時間幅TWの4倍の時
間、コード20を受信しないかどうかを調べる。もしこ
の間にコード20を受信した場合には衝突が発生したと
みなしくこのとき前記のように図外の手順でデータ信号
受信部68又はキャリア信号受信部67と、衝突検出部
70とを介し衝突検出信号70aがコード送信部62に
与えられる)、ステップ■を介しステップ■において図
外の手順により、自繊別番号設定部69に設定された自
識別番号に一定時間(T)を掛けた時間(待機時間き呼
ぶ)だけ送信を停止し、その後再度送信を開始する手順
(ステップ■)に戻る。
FIG. 7 is a flowchart showing the transmission procedure during the normal processing. First, in order to check whether the line 14 is free, the code receiving unit 64 sends the code 20 in step
When the code 20 is not received, it is checked in step (2) whether the code 20 is not received via the monitoring timer section 63 for a time that is four times the inter-carrier code time width TW. If code 20 is received during this period, it is assumed that a collision has occurred, and in this case, as described above, a collision is detected via the data signal receiving section 68 or carrier signal receiving section 67 and the collision detecting section 70 in a procedure not shown. The detection signal 70a is given to the code transmitting section 62), and the self-identification number set in the self-identifying number setting section 69 is multiplied by a certain period of time (T) in step (2) through step (2). Transmission is stopped for a certain amount of time (waiting time is called), and then the procedure returns to step (2) for starting transmission again.

なおこのように待機時間が局11の自識別番号によって
異るようにすることにより、送信再開の際の再衝突を防
止することができる。
By making the waiting time different depending on the self-identification number of the station 11 in this way, it is possible to prevent re-collision when restarting transmission.

他方回線14が空いている場合にはステップ■から■に
移り、自識別番号設定部69.キャリアコード発生部6
5.コード送信部62を介しキャリアコード31の送信
を行い、同時にステップ■でコード受信部64.キャリ
ア信号受信部67゜衝突検出部70を介し自局が送信し
たキャリアコード31を検査するために受信する。
On the other hand, if the line 14 is vacant, the process moves from step ① to ②, and the self-identification number setting section 69. Carrier code generator 6
5. The carrier code 31 is transmitted via the code transmitter 62, and at the same time, the code receiver 64. Carrier signal receiving section 67 receives the carrier code 31 transmitted by the own station via the collision detecting section 70 in order to inspect it.

もし受信したキャリアコード31に異常(パリティ異常
、フレーミング異常)が検出された場合、あるいは自識
別番号と異なる番号を含むキャリアコード31である場
合には衝突が発生したものとして衝突検出信号70aが
コード送信部62に与えられ(ステップ■)、コード送
信部62は一定時間の待機の後(ステップ■)、再度送
信開始の手順(ステップ■)に戻る。
If an abnormality (parity abnormality, framing abnormality) is detected in the received carrier code 31, or if the carrier code 31 includes a number different from the self-identification number, it is assumed that a collision has occurred and the collision detection signal 70a is The code is sent to the transmitting unit 62 (step ■), and after waiting for a certain period of time (step ■), the code transmitting unit 62 returns to the transmission start procedure (step ■).

受信したキャリアコード31が正常な場合には、コード
送信部62はキャリアコード31の間隔をキャリアコー
ド間時間幅TWとするため監視タイマ部63の送出信号
を介し待期の後(ステップ■)、ステップ7でキャリア
コード発生部65内のカウンタ(図外)を介してキャリ
アコード31の送信回数が所定回数Nに達したか否かを
判別し、キャリア信号30の送信が終了していない(回
数Nに達していない)場合には、ステップ■に戻り次の
キャリアコード31の送信を行う。
If the received carrier code 31 is normal, the code transmitting unit 62 sets the interval between the carrier codes 31 to the inter-carrier code time width TW after a waiting period via the sending signal of the monitoring timer unit 63 (step ■). In step 7, a counter (not shown) in the carrier code generator 65 determines whether or not the number of times the carrier code 31 has been transmitted has reached a predetermined number N. (N has not been reached), the process returns to step (2) and the next carrier code 31 is transmitted.

キャリア信号30の送信後(前記所定回数Nに達した後
)、コード送信部62はステップ■において送信データ
72aをデータフォーマット形成部66を介し受取りデ
ータ信号40として送信を行う。このデータ信号40の
送信中にコード受信部64.データ信号受信部68.衝
突検出部70を介し同時に受信されているデータコード
41に異常が検出された場合には、送信をただちに中止
し、ステップ■において前記のような一定時間の待期の
後、再度キャリア信号30の送信開始の手順(ステップ
■)に戻る。もし異常が検出されなかった場合にはデー
タ信号40の送信を正常に終了したことになる。
After transmitting the carrier signal 30 (after reaching the predetermined number of times N), the code transmitter 62 transmits the transmit data 72a as the received data signal 40 via the data format generator 66 in step (3). During the transmission of this data signal 40, the code receiving unit 64. Data signal receiving section 68. If an abnormality is detected in the data code 41 that is being received at the same time via the collision detection unit 70, the transmission is immediately stopped, and after waiting for a certain period of time as described above, the carrier signal 30 is restarted in step (3). Return to the procedure for starting transmission (step ■). If no abnormality is detected, it means that the transmission of the data signal 40 has been completed normally.

第8図は受信手順を示すフローチャートである。FIG. 8 is a flowchart showing the reception procedure.

コード受信部64を介しステップ[相]で受信したコー
ド20がキャリア信号30のものであるかデータ信号4
0のものであるか調べるために、監視タイマ部63を介
し次のコード20が前記2/3・猫時間以内に受信され
るかどうか調べる(ステップ■、@)。
Whether the code 20 received in step [phase] via the code receiving unit 64 is that of the carrier signal 30 or the data signal 4
In order to check whether the code 20 is 0, it is checked whether the next code 20 is received within the 2/3 time period through the monitoring timer unit 63 (steps ①, @).

もし2/3・TW時間内に次コード20を受信した場合
には、データ信号40の受信とみなし、データ信号受信
部68は受信したデータコード41を該受信部68内の
図外のデータバッファに格納する(ステップ[相])。
If the next code 20 is received within the 2/3 TW time, it is considered that the data signal 40 has been received, and the data signal receiving section 68 transfers the received data code 41 to a data buffer (not shown) in the receiving section 68. (step [phase]).

データ信号受信部68はもしデータ数が第5図のデータ
形式で示されたデータ長コード52に格納されたデータ
長、に達した場合には、受信動作を正常に終了する(ス
テップO)。
If the number of data reaches the data length stored in the data length code 52 shown in the data format of FIG. 5, the data signal receiving section 68 normally ends the receiving operation (step O).

コード受信部64が2/3−TV時間内に次のコード2
0を受信しなかった場合には、キャリア信号受信部67
を介しキャリアコード31として受信する(ステップ◎
)。この場合正常な場合の外に、データ受信が途中で断
ち切られキャリアコード31が割込んで入る異常な場合
もある。そこでデータ受信の誤動作を防止するために、
もしこのキャリアコード31の検出の直前に行われた前
記データ信号40の受信が正常に終了していなかったこ
とをデータ検査部71を介しステップ■で判別した場合
(たとえばデータ数が足りない等)には、それまでに受
信したデータ信号受信部68内の前記データバッファの
データを無効にしたのち(ステップ■)、キャリア信号
30(又はキャリアコード31)の受信を終る。
The code receiving section 64 receives the next code 2 within 2/3-TV time.
If 0 is not received, the carrier signal receiving section 67
Receive as carrier code 31 via (Step ◎
). In this case, in addition to normal cases, there may also be abnormal cases in which data reception is interrupted midway and the carrier code 31 is interrupted. Therefore, in order to prevent data reception malfunctions,
If it is determined in step (2) via the data inspection unit 71 that the reception of the data signal 40 immediately before the detection of the carrier code 31 was not completed normally (for example, the number of data is insufficient). After invalidating the data in the data buffer in the data signal receiving section 68 that has been received up to that point (step 2), the reception of the carrier signal 30 (or carrier code 31) is finished.

次に第9図はデータ信号40の送信において局11間に
優先順位を付けた場合(優先又は割込処理時)の制御手
順である。この手順は第7図の送信手順に先立って設け
られる。送信開始により第7図ステップ■、■と同様に
回線14が空いているかどうか調べる(ステップ■)。
Next, FIG. 9 shows a control procedure when the stations 11 are prioritized in transmitting the data signal 40 (at the time of priority or interrupt processing). This procedure is provided prior to the transmission procedure of FIG. When the transmission starts, it is checked whether the line 14 is free in the same way as steps (2) and (2) in FIG. 7 (step (2)).

もし空いておれば第7図ステップ■〜■と同様な手順で
通常のキャリア信号30の送信を行う。もし衝突する場
合には第8図のステップ■、Oと同様に、回線14に流
れている信号(コード“20)がキャリア信号30かど
うか調べる(ステップ■)。もしデータ信号40ならば
前記通常処理の場合と同様な衝突回復処理(すなわち第
7図ステップ■と同様に自識別番号に一定時間T修和け
た時間(待機時間)だけ時期する処理)を行う(ステッ
プ[相])。このようにして仮に送信中の局が自局より
も優先順位の低い局であってもデータ信号40の送信中
の場合は該送信の終了までは待つ。(ただしこの手順は
これに限定することなく該終了までは待たぬようにする
こともできる。) キャリア信号30の場合にはそのキャリアコード31中
の識別番号を調べもし自局の識別番号の方が小さく自局
の優先順位が高い場合には、自識別番号を含む自局のキ
ャリア信号30を出力して衝突を発生させたのち(ステ
ップ[株])前記衝突回復処理(ステップ■)をして待
機する。このときの衝突からの回復(前記待機時間)は
自識別番号が小さい程早く(前記待機時間が短く)行わ
れるため、このようにして自識別番号による優先処理を
行うことができる。
If the carrier signal 30 is vacant, the normal carrier signal 30 is transmitted in the same manner as steps ① to ② in Fig. 7. If there is a collision, check whether the signal (code "20") flowing on the line 14 is the carrier signal 30 (step -) in the same way as steps ■ and O in Figure 8. If it is the data signal 40, the normal The same collision recovery process as in the process (i.e., the process of timing the self-identification number for a certain period of time T (waiting time) in the same way as step ① in Figure 7) is performed (step [phase]). Even if the transmitting station is a station with a lower priority than the local station, if the data signal 40 is being transmitted, it will wait until the transmission is finished. (However, this procedure is not limited to this, and (You can also choose not to wait until the end.) In the case of carrier signal 30, check the identification number in the carrier code 31 and if the identification number of the own station is smaller and the priority of the own station is higher. , outputs its own carrier signal 30 including its own identification number to cause a collision (Step Co., Ltd.), performs the collision recovery process (Step ■) and waits.Recovery from the collision at this time ( The smaller the self-identification number is, the earlier the waiting time) is (the shorter the waiting time), so priority processing can be performed based on the self-identification number in this way.

〔発明の効果〕〔Effect of the invention〕

この発明によればキャリア信号とデータ信号をコード列
が連続しているかどうかで判定する様に構成したために
特別なキャリア信号発生監視回路が不要になり、かつデ
ータの符号化が不要なため、簡単でかつ効率の良いn:
nデータ通信が可能となる。また、キャリアコードとし
て識別番号を送信する様に構成したため、すでに他局が
キャリア送信中であっても番号の大小により送信の優先
処理を容易に行うことが可能となる。
According to this invention, since the carrier signal and the data signal are configured to be determined based on whether the code strings are continuous, a special carrier signal generation monitoring circuit is not required, and data encoding is not required, making it easy to use. Large and efficient n:
n data communication becomes possible. Furthermore, since the system is configured to transmit an identification number as a carrier code, it is possible to easily prioritize transmission based on the size of the number even if another station is already transmitting a carrier.

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

第1図は本発明における交信局間の構成例を示す図、第
2図は同じく回線上で交信される信号のコードのフォー
マットの例を示す図、第3図は同じくキャリア信号の構
成例を示すタイムチャート、第4図は同じくデータ信号
の構成例を示すタイムチャート、第5図は同じくデータ
信号のフォーマットの例を示す図、第6図は同じく各局
内の送受信回路の構成例を示す図、第7図は同じく通常
処理時における送信手順の例を示すフローチャート、第
8図は同じく共通の受信手順の例を示すフローチャート
、第9図は同じく優先処理時(局間に優先順位を設けた
場合)における、送信手順の例を示すフローチャートで
ある。 符号説明 11・・・・・・局、12・・・・・・送信線、1→・
・・・・・受信線、14・・・・・・回線、20・・・
・・・コード、30・・・・・・キャリア信号、40・
・・・・・データ信号、62・・・・・・コード送信部
、63・・・監視タイマ部、64・・・・・・コード受
信部、65・・・・・・ キャリアコード発生部、66
・・・・・・データフォーマット形成部、67・・・・
・・キャリア信号受信部、68・・・・・・デ−タ信号
受信部、69・・・・・・自識別番号設定部、70・・
・・・・衝突検出部、71・・・・・・データ検査部、
72・・・・・・データ処理部、TW・・・・・・キャ
リアコード間時間幅。 第1図 改 牙3vA 24図 第5図 t 26図 牙7図 オ8図
FIG. 1 is a diagram showing an example of the configuration between communication stations in the present invention, FIG. 2 is a diagram showing an example of the code format of a signal communicated on a line, and FIG. 3 is a diagram showing an example of the configuration of a carrier signal. 4 is a time chart showing an example of the configuration of a data signal, FIG. 5 is a diagram showing an example of the format of the data signal, and FIG. 6 is a diagram showing an example of the configuration of the transmitting/receiving circuit in each station. , FIG. 7 is a flowchart showing an example of a transmission procedure during normal processing, FIG. 8 is a flowchart showing an example of a common reception procedure, and FIG. 9 is a flowchart showing an example of a common reception procedure. 12 is a flowchart showing an example of a transmission procedure in case). Code explanation 11... Station, 12... Transmission line, 1→...
...Receiving line, 14... Line, 20...
...Code, 30...Carrier signal, 40.
...Data signal, 62...Code transmitter, 63...Monitoring timer section, 64...Code receiver, 65...Carrier code generator, 66
...Data format formation section, 67...
...Carrier signal receiving section, 68... Data signal receiving section, 69... Self-identification number setting section, 70...
...Collision detection section, 71... Data inspection section,
72...Data processing unit, TW...Time width between carrier codes. Fig. 1 Kaiga 3vA Fig. 24 Fig. 5 t Fig. 26 Fig. 7 Fig. O 8

Claims (1)

【特許請求の範囲】 1)共通の回線を介し、調歩同期によるシリアル伝送を
用いて相互に交信を行う複数の局からなるシステムにお
いて、前記の回線上で交信される信号のコードの列が連
続か不連続かに応じて、前記信号をそれぞれデータ信号
、キャリア信号と識別す、ることを特徴とするバス形回
線制御方式。 2、特許請求の範囲第1項に記載の方式において、前記
キャリア信号内の前記コードは尚該のキャリア信号を送
信する局を識別するための識別番号を有することを特徴
とするバス形回線制御方式。 3)特許請求の範囲第2項に記載の方式において、前記
識別番号は、自局が送信した前記キャリア信号内の前記
識別番号を自局が正常に受信できたか否かに応じ、衝突
の非発生か発生かを判定することに用いられることを特
徴とするノ(ス形回線制御方式。 4)特許請求の範囲第2項又は第3項に記載の方式にお
いて、前記識別番号は、その番号の大小により、前記回
線の使用の優先順位を定めることを特徴とするバス形回
線制御方式。 5)特許請求の範囲第3項に記載の方式において、前記
衝突の発生が検出されたときは、前記識別番号に所定倍
率を乗じた時間の待機後に、前記回線上の信号を調べ、
該信号が存在するときは再び前記の待機を行い、前記信
号が存在しない時は再度自局から前記キャリア信号の送
信を行うことを特徴とするバス形回線制御方式。 6)特許請求の範囲第4項に記載の方式において、前記
衝突の発生が検出されたときは、前記識別番号に所定倍
率を乗じた時間の待機後に、前記回線上の信号を調べ、
該信号が前記データ信号のときは再び前記の待機を行い
、前記信号が前記キャリア信号で、該キャリア信号を送
信している局が自局より前記優先順位の低い局であると
きは、再度自局から前記キャリア信号の送信を行うこと
を特徴とするバス形回線制御方式。
[Claims] 1) In a system consisting of a plurality of stations that communicate with each other via a common line using serial transmission using start-stop synchronization, a sequence of codes of signals communicated on the line is continuous. A bus-type line control system characterized in that the signals are identified as data signals and carrier signals depending on whether the signals are continuous or discontinuous. 2. The system according to claim 1, wherein the code in the carrier signal further includes an identification number for identifying the station transmitting the carrier signal. method. 3) In the system according to claim 2, the identification number is determined according to whether or not there is a collision, depending on whether or not the own station has successfully received the identification number in the carrier signal transmitted by the own station. 4) In the method according to claim 2 or 3, the identification number is the number A bus-type line control system characterized in that the priority order of use of the line is determined based on the size of the line. 5) In the method according to claim 3, when the occurrence of the collision is detected, the signal on the line is checked after waiting for a time equal to the identification number multiplied by a predetermined multiplier;
A bus type line control system characterized in that when the signal is present, the above-mentioned standby is performed again, and when the signal is not present, the own station transmits the carrier signal again. 6) In the method according to claim 4, when the occurrence of the collision is detected, the signal on the line is checked after waiting for a time equal to the identification number multiplied by a predetermined multiplier;
When the signal is the data signal, the above-mentioned standby is performed again, and when the signal is the carrier signal and the station transmitting the carrier signal is a station with a lower priority than the own station, the self-waiting is performed again. A bus type line control system characterized in that the carrier signal is transmitted from a station.
JP21378183A 1983-11-14 1983-11-14 Bus type line control system Pending JPS60105342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP21378183A JPS60105342A (en) 1983-11-14 1983-11-14 Bus type line control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP21378183A JPS60105342A (en) 1983-11-14 1983-11-14 Bus type line control system

Publications (1)

Publication Number Publication Date
JPS60105342A true JPS60105342A (en) 1985-06-10

Family

ID=16644929

Family Applications (1)

Application Number Title Priority Date Filing Date
JP21378183A Pending JPS60105342A (en) 1983-11-14 1983-11-14 Bus type line control system

Country Status (1)

Country Link
JP (1) JPS60105342A (en)

Similar Documents

Publication Publication Date Title
US5359594A (en) Power-saving full duplex nodal communications systems
US4745597A (en) Reconfigurable local area network
US4332027A (en) Local area contention network data communication system
EP0021145B1 (en) Message multiplexing arrangement in a digital data communication system
EP0119003B1 (en) Method and apparatus for the detection and regeneration of a lost token in a token based data communications network
EP2140622B1 (en) Token bus communication system
JP2948837B2 (en) Communication link interface initialization and synchronization method and communication link receiver
US4584575A (en) Method and device for the asynchronous series communication on the multipoint type of a plurality of logic transceivers
US4975907A (en) Method and device for the asynchronous transmission of data by packets
CA1278871C (en) Method of data arbitration and collision detection on a data bus
JPS60105342A (en) Bus type line control system
US7802150B2 (en) Ensuring maximum reaction times in complex or distributed safe and/or nonsafe systems
JP2005176165A (en) Radio transmission system
EP0589106A1 (en) Network and method for communicating data
JPH07212376A (en) Data transfer system
JPS6249735A (en) Transmission error control system
JPH0126213B2 (en)
JP2022062965A (en) Communication device
JP2662320B2 (en) Transmission data synchronization method for disaster prevention monitoring system
JP3337907B2 (en) Multiplex transmission system
JPH0766819A (en) Synchronization recovery method for home bus system
JPH0715419A (en) Controller for device
JPS62176236A (en) Method for preventing transmission error at reply packet transmission
JP2004328624A (en) Data communication device and method
JPS6248832A (en) Communication control equipment