JPS6365258B2 - - Google Patents

Info

Publication number
JPS6365258B2
JPS6365258B2 JP57184328A JP18432882A JPS6365258B2 JP S6365258 B2 JPS6365258 B2 JP S6365258B2 JP 57184328 A JP57184328 A JP 57184328A JP 18432882 A JP18432882 A JP 18432882A JP S6365258 B2 JPS6365258 B2 JP S6365258B2
Authority
JP
Japan
Prior art keywords
signal
slave
transmission line
master
command signal
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
Application number
JP57184328A
Other languages
Japanese (ja)
Other versions
JPS5972844A (en
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 filed Critical
Priority to JP57184328A priority Critical patent/JPS5972844A/en
Publication of JPS5972844A publication Critical patent/JPS5972844A/en
Publication of JPS6365258B2 publication Critical patent/JPS6365258B2/ja
Granted legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal

Landscapes

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

Description

【発明の詳細な説明】 本発明は、通信制御システムに関するものであ
つて、詳しくは、マスターからスレーブにコマン
ド信号を送出しスレーブからマスターにアクノリ
ツジ信号を返送するように構成されたシリアル通
信システムの改良に関するものであり、複数のマ
スターとスレーブとの間でコマンド信号及びアク
ノリツジ信号の送受を効率よく行うことができる
ようにしたものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to a communication control system, and more particularly to a serial communication system configured to send a command signal from a master to a slave and send an acknowledge signal from the slave to the master. This invention relates to an improvement in which command signals and acknowledge signals can be efficiently transmitted and received between a plurality of masters and slaves.

通信制御システムの一種に、マスター通信制御
装置(以下マスターという)からのコマンド信号
に対してスレーブ通信制御装置(以下スレーブと
いう)からアクノリツジ信号を返送して1回の通
信を終了するように構成され、通信エラーが発生
した場合には同一のコマンド信号を再送してエラ
ー回復を図るようにしたものがある。
A type of communication control system is configured so that a slave communication control device (hereinafter referred to as slave) returns an acknowledge signal in response to a command signal from a master communication control device (hereinafter referred to as master) to terminate one communication. Some systems are designed to retransmit the same command signal when a communication error occurs to recover from the error.

具体的には、スレーブは、マスターから送信さ
れたコマンド信号の内容に従つてデータベースの
ある番地のデータ更新などの所定の処理を実行し
た後マスターにアクノリツジ信号を送信する。
Specifically, the slave executes a predetermined process such as updating data at a certain address in the database according to the contents of the command signal transmitted from the master, and then transmits an acknowledge signal to the master.

ところで、通信エラーの発生形態として、コマ
ンド信号は正常にスレーブで受信されて所定の処
理が実行されたものの、アクノリツジ信号がスレ
ーブからマスターに正常に伝送されないことがあ
る。このようにアクノリツジ信号の伝送時にエラ
ーが発生した場合には、再送されるコマンド信号
に対して2重処理を行わないようにスレーブに2
重処理を禁止する手段を設けておかなければなら
ない。
Incidentally, as a form of communication error, a command signal is normally received by a slave and a predetermined process is executed, but an acknowledge signal is not normally transmitted from the slave to the master. In this way, if an error occurs during transmission of an acknowledge signal, the slave will have two
Measures must be taken to prohibit heavy processing.

このような2重処理禁止にあたつては、一般に
は、コマンド信号フレーム内にシーケンス番号を
付け、スレーブでは同一シーケンス番号の連続処
理を実行しないように規定することが行われてい
る。
In order to prohibit such double processing, generally a sequence number is attached to the command signal frame, and it is specified that the slave will not execute consecutive processing with the same sequence number.

しかし、このような方法では、第1図に示すよ
うに複数mのマスターMと複数nのスレーブSと
でm:nのシステムが構成されている場合、各マ
スターMでは各スレーブS毎のシーケンス番号管
理を行うと共に各スレーブSでは各マスターM毎
のシーケンス番号管理を行い、さらには電源
ON/OFF時の特殊処理も行わなければならず、
制御は複雑になる。
However, in such a method, when an m:n system is configured with a plurality of m masters M and a plurality of n slaves S as shown in FIG. In addition to number management, each slave S also manages sequence numbers for each master M.
Special processing at ON/OFF must also be performed.
Control becomes complicated.

このような欠点を解決する方法として、アクノ
リツジ信号伝送時にエラーが発生した場合にはマ
スターMからスレーブSに対してそのアクノリツ
ジ信号フレームの再送を要求するコマンド信号を
送出する方法が提案されているが、スレーブSの
アクノリツジ信号の送信部が故障した場合にはマ
スターMは最初のコマンド信号が受信されなかつ
たと判断してコマンド信号を再送することにな
り、2重処理の問題を生じることになる。
As a method to solve these drawbacks, a method has been proposed in which, if an error occurs during acknowledgment signal transmission, the master M sends a command signal to the slave S requesting retransmission of the acknowledge signal frame. If the acknowledgment signal transmitter of the slave S fails, the master M will determine that the first command signal was not received and will retransmit the command signal, resulting in the problem of double processing.

本発明は、このようなスレーブSの送信部が故
障した場合の2重処理を避けるようにしたもので
あつて、スレーブにはアクノリツジ信号の送信機
能確認手段を設け、コマンド信号を受信した後ア
クノリツジ信号の送信機能の確認を行い、送信機
能が正常の場合にはコマンド信号に従つて所定の
処理を実行し、処理実行後アクノリツジ信号を返
送するようにしたことを特徴とする。
The present invention is designed to avoid such double processing when the transmitting section of the slave S fails, and the slave is provided with means for confirming the transmitting function of an acknowledge signal, and the slave S is provided with means for confirming the transmitting function of an acknowledge signal after receiving a command signal. The present invention is characterized in that the signal transmission function is checked, and if the transmission function is normal, a predetermined process is executed according to the command signal, and an acknowledgment signal is returned after the process is executed.

以下、図面を用いて詳細に説明する。 Hereinafter, it will be explained in detail using the drawings.

第2図は、本発明を構成するスレーブSの具体
例を示すブロツク図であつて、10は受信部、2
0は送信部、30は論理制御部である。
FIG. 2 is a block diagram showing a specific example of the slave S constituting the present invention, in which 10 is a receiving section, 2
0 is a transmitting section, and 30 is a logic control section.

受信部10は、伝送ラインLからの信号を受信
する受信回路11、伝送ラインL上で通信が実行
されていることを検出するキヤリア検出回路1
2、受信した信号フレームを一時記憶する受信バ
ツフアメモリ13などで構成されている。送信部
20は、伝送ラインLを介してマスターMに返送
するアクノリツジ信号フレームを一時記憶する送
信バツフアメモリ21、伝送ラインLに信号を送
出する送信回路22などで構成されている。論理
制御部30は、各部の動作制御及び信号送受制御
を行う。
The receiving unit 10 includes a receiving circuit 11 that receives a signal from the transmission line L, and a carrier detection circuit 1 that detects that communication is being performed on the transmission line L.
2. It is composed of a reception buffer memory 13 for temporarily storing received signal frames. The transmitting section 20 includes a transmitting buffer memory 21 that temporarily stores an acknowledgment signal frame to be sent back to the master M via the transmission line L, a transmitting circuit 22 that transmits a signal to the transmission line L, and the like. The logic control section 30 controls the operation of each section and controls signal transmission and reception.

このように構成された装置の動作について説明
する。
The operation of the device configured in this way will be explained.

マスターMから伝送ラインL上にコマンド信号
が伝送されると、その信号フレームは受信回路1
1を介して受信バツフアメモリ13に一時記憶さ
れる。論理制御部30は受信バツフアメモリ13
の内容を調べ、エラーチエツクやアドレスチエツ
クを行い、エラーがあつたり自分宛のアドレスで
ない場合にはその信号を無視するが、エラーがな
く自分宛のアドレスの場合には次のステツプに移
行する。すなわち、次のステツプにおいて、アク
ノリツジ信号を送出するための送信回路22の動
作機能の確認を行う。この確認にあたつては、伝
送ラインL上に有意義信号フレームとして認識さ
れないビツトパターンの確認信号を送出し、この
信号をキヤリア検出回路12で検出して検出結果
を論理制御部30に送出する。なお、このような
確認信号としては、例えばHDLC制御手順に準拠
した通信システムでは、フラグパターン以外のビ
ツトパターンであれば任意のビツトパターンを用
いることができる。確認の結果、キヤリア検出が
行われない場合には送信回路22の故障として判
断し、受信バツフアメモリ13に一時記憶されて
いるコマンド信号の処理を行わないようにする。
一方、確認の結果、送信回路22が正常の場合に
は受信したコマンド信号の処理を実行し、実行後
アクノリツジ信号を送出する。
When a command signal is transmitted from the master M onto the transmission line L, the signal frame is transmitted to the receiving circuit 1.
1 and is temporarily stored in the reception buffer memory 13. The logic control unit 30 is the reception buffer memory 13
The program checks the contents of the address, performs an error check and address check, and if there is an error and the address is not addressed to itself, the signal is ignored, but if there is no error and the address is addressed to itself, it moves to the next step. That is, in the next step, the operational function of the transmitting circuit 22 for transmitting the acknowledge signal is confirmed. In this confirmation, a confirmation signal of a bit pattern that is not recognized as a meaningful signal frame is sent on the transmission line L, this signal is detected by the carrier detection circuit 12, and the detection result is sent to the logic control section 30. Note that, as such a confirmation signal, for example, in a communication system based on the HDLC control procedure, any bit pattern other than the flag pattern can be used. As a result of the confirmation, if carrier detection is not performed, it is determined that the transmitting circuit 22 has failed, and the command signal temporarily stored in the receiving buffer memory 13 is not processed.
On the other hand, as a result of the confirmation, if the transmitting circuit 22 is normal, it executes processing of the received command signal and sends out an acknowledge signal after execution.

このような構成によれば、送信回路22が伝送
ラインLにアクノリツジ信号を送出する機能を確
認した後にコマンド信号に従つて処理を実行する
ことになるので、アクノリツジ信号は必ずマスタ
ーMに伝送されることになる。従つて、アクノリ
ツジ信号の伝送中にノイズなどによつて信号フレ
ームにエラーが発生した場合には、マスターMか
ら前回のコマンド信号を再送する必要はなく、ア
クノリツジ信号の再送を要求するだけでよい。な
お、アクノリツジ信号が返送されない場合には、
マスターMから所定回数前回のコマンド信号を送
出し、所定回数の送出に対して応答がない場合に
はスレーブSの故障と判断することになる。
According to such a configuration, the transmitting circuit 22 executes processing according to the command signal after confirming the function of transmitting the acknowledge signal to the transmission line L, so that the acknowledge signal is always transmitted to the master M. It turns out. Therefore, if an error occurs in the signal frame due to noise or the like during transmission of the acknowledge signal, there is no need to retransmit the previous command signal from master M, and it is only necessary to request retransmission of the acknowledge signal. In addition, if the acknowledge signal is not returned,
The master M transmits the previous command signal a predetermined number of times, and if there is no response to the predetermined number of transmissions, it is determined that the slave S has failed.

このように、本発明によれば、従来のようなシ
ーケンス番号を用いることなく1個又は複数のマ
スターとスレーブとの間での信号の送受を制御す
ることができ、各種の通信制御システムに有効で
ある。
As described above, according to the present invention, it is possible to control the transmission and reception of signals between one or more masters and slaves without using conventional sequence numbers, and this is effective for various communication control systems. It is.

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

第1図は本発明に係る通信制御システムの概念
図、第2図は本発明を構成するスレーブSの具体
例を示すブロツク図である。 M……マスター通信制御装置(マスター)、S
……スレーブ通信制御装置(スレーブ)、10…
…受信部、11……受信回路、12……キヤリア
検出回路、13……受信バツフアメモリ、20…
…送信部、21……送信バツフアメモリ、22…
…送信回路、30……論理制御部、L……伝送ラ
イン。
FIG. 1 is a conceptual diagram of a communication control system according to the present invention, and FIG. 2 is a block diagram showing a specific example of a slave S constituting the present invention. M...Master communication control device (master), S
...Slave communication control device (slave), 10...
...Receiving section, 11...Receiving circuit, 12...Carrier detection circuit, 13...Receiving buffer memory, 20...
...Transmission section, 21... Transmission buffer memory, 22...
...Transmission circuit, 30...Logic control section, L...Transmission line.

Claims (1)

【特許請求の範囲】 1 マスターからスレーブにコマンド信号が送出
され、スレーブは受信したコマンド信号の内容に
従つた処理を行つた後マスターにアクノリツジ信
号を返送するように構成されたシリアル通信方式
による通信制御システムにおいて、 前記スレーブには、伝送ラインからの信号を受
信する受信回路、伝送ライン上で通信が実行され
ていることを検出するキヤリア検出回路、受信し
た信号フレームを一時記憶する受信バツフアメモ
リを含む受信部と、伝送ラインを介してマスター
に返送すべきアクノリツジ信号フレームを一時記
憶する送信バツフアメモリ、伝送ラインに信号を
送出する送信回路を含む送信部と、各部の動作制
御および信号送受制御を行う論理制御部を設け、 前記スレーブは、コマンド信号を受信した後、
送信部から伝送ライン上に有意義信号フレームと
して認識されないビツトパターンの確認信号を送
出し、この確認信号を受信部で受信してキヤリア
検出の有無に従つてアクノリツジ信号の送信機能
の確認を行い、 キヤリア検出が行われた場合には送信機能が正
常と判断して受信バツフアメモリに一時格納され
ているコマンド信号に従つて所定の処理を実行し
た後アクノリツジ信号を返送し、 キヤリア検出が行われない場合には送信機能が
異常と判断して受信バツフアメモリに一時格納さ
れているコマンド信号の処理を実行しないことを
特徴とする通信制御システム。
[Claims] 1 Communication using a serial communication method configured such that a command signal is sent from a master to a slave, and the slave performs processing according to the contents of the received command signal and then returns an acknowledge signal to the master. In the control system, the slave includes a receiving circuit that receives a signal from a transmission line, a carrier detection circuit that detects that communication is being performed on the transmission line, and a receiving buffer memory that temporarily stores received signal frames. A receiving section, a transmitting buffer memory that temporarily stores an acknowledgment signal frame to be sent back to the master via a transmission line, a transmitting section including a transmitting circuit that sends a signal to the transmission line, and logic that controls the operation of each section and controls signal transmission and reception. a control unit is provided, and the slave, after receiving the command signal,
The transmitter sends a confirmation signal with a bit pattern that is not recognized as a meaningful signal frame onto the transmission line, and the receiver receives this confirmation signal and checks the transmission function of the acknowledge signal according to the presence or absence of carrier detection. If detection is performed, it is determined that the transmission function is normal, and after executing the specified processing according to the command signal temporarily stored in the reception buffer memory, an acknowledge signal is returned, and if carrier detection is not performed, A communication control system characterized in that the transmission function is determined to be abnormal and the command signal temporarily stored in the reception buffer memory is not processed.
JP57184328A 1982-10-20 1982-10-20 Communication control system Granted JPS5972844A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP57184328A JPS5972844A (en) 1982-10-20 1982-10-20 Communication control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP57184328A JPS5972844A (en) 1982-10-20 1982-10-20 Communication control system

Publications (2)

Publication Number Publication Date
JPS5972844A JPS5972844A (en) 1984-04-24
JPS6365258B2 true JPS6365258B2 (en) 1988-12-15

Family

ID=16151394

Family Applications (1)

Application Number Title Priority Date Filing Date
JP57184328A Granted JPS5972844A (en) 1982-10-20 1982-10-20 Communication control system

Country Status (1)

Country Link
JP (1) JPS5972844A (en)

Also Published As

Publication number Publication date
JPS5972844A (en) 1984-04-24

Similar Documents

Publication Publication Date Title
US4988990A (en) Dual master implied token communication system
US5122794A (en) Dual master implied token communication system
EP0241018B1 (en) Method of multi-address communication
US5166678A (en) Dual master implied token communication system
JPS5947906B2 (en) loop transmission system
EP0580938B1 (en) Duplex communication control device
JPH0654911B2 (en) Method and apparatus for transferring mastership
JPS6365258B2 (en)
JP2995348B2 (en) Multiplex transmission method
JP3057581B2 (en) Multiplex transmission method
US5263022A (en) Multiplex transmission method
JP2541492B2 (en) Microprocessor remote reset method
JP2696280B2 (en) Wireless data transmission method
JP2536385B2 (en) Data communication method
JP3130604B2 (en) Communication line control method
JPH0556084A (en) Data transmission method for communication controller
JPS63267039A (en) Network system
JPH05336082A (en) Detection of response data validity
JPH05165733A (en) Non-operation system memory updating system
JPH01136498A (en) Information transmitter for status monitor
JPS6360941B2 (en)
JPH0537570A (en) Reception data storage method for communication control circuit
JPH04129346A (en) Communication system provided with duplicate address detection function
JPS58141055A (en) Signal transmitter on handshake system
JPH02216522A (en) Printer with data transmission function