JPH0591117A - Secondary station initial setting system in sdlc communication system - Google Patents

Secondary station initial setting system in sdlc communication system

Info

Publication number
JPH0591117A
JPH0591117A JP3120850A JP12085091A JPH0591117A JP H0591117 A JPH0591117 A JP H0591117A JP 3120850 A JP3120850 A JP 3120850A JP 12085091 A JP12085091 A JP 12085091A JP H0591117 A JPH0591117 A JP H0591117A
Authority
JP
Japan
Prior art keywords
station
secondary station
response
communication
command
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.)
Granted
Application number
JP3120850A
Other languages
Japanese (ja)
Other versions
JP2602587B2 (en
Inventor
Masatoshi Ito
昌俊 伊藤
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry 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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP3120850A priority Critical patent/JP2602587B2/en
Publication of JPH0591117A publication Critical patent/JPH0591117A/en
Application granted granted Critical
Publication of JP2602587B2 publication Critical patent/JP2602587B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

PURPOSE:To properly set the operation after initial setting by inserting a secondary station state data at the reception of a command to an affirmative response with respect to the initial setting command and returning the response to a primary station. CONSTITUTION:When an I command from, e.g. a primary station 1 does not normally reach a secondary station 2i due to a fault of a communication line in the loop communication state, the secondary station 2i does not execute return of an improper RR response. Thus, the primary station 1 recognizes the occurrence of a communication error, releases a loop state and returns an SIM command to the secondary station 2i. In this case, the secondary station 2i inserts a secondary station state data representing that its own station is busy and in the state of awaiting the I command to a UA response and returns the result to the primary station 1. Upon the receipt of the UA response, the primary station 1 executes the communication test and restores the state to the loop state and recognizes that the secondary station 2i is busy and restarts the communication in a sequence in matching with the state.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、SDLC(Synchronous
Data Link Control) 通信システムにおいて通信路障害
や2次局内部障害の発生時等に行なう2次局の初期設定
方式に関するものである。
BACKGROUND OF THE INVENTION The present invention relates to SDLC (Synchronous
Data Link Control) This is a method for initializing the secondary station when a communication path failure or an internal failure of the secondary station occurs in a communication system.

【0002】[0002]

【従来の技術】データリンク制御層のプロトコルとして
SDLCがあり、このSDLCを採用してループ通信を
行なうネットワークが存在する。例えば、マルチプロセ
ッサシステムにおける各種モジュール間の通信は、図2
に示すようなSDLCループ通信を採用することができ
る。
2. Description of the Related Art There is SDLC as a protocol of a data link control layer, and there is a network that employs this SDLC to perform loop communication. For example, communication between various modules in a multiprocessor system is shown in FIG.
SDLC loop communication as shown in FIG.

【0003】SDLCループ通信においては、ループの
管理や2次局の管理等を行なうデータリンクに対する責
務を有する少なくとも1個の1次局1と、複数の2次局
20〜2nとがループ状に接続され、かかるループを通
じて、1次局1からいずれかの2次局2i(iは0〜
n)へのデータ通信、いずれかの2次局2iから1次局
1へのデータ通信を行なう。データの授受はフレームを
単位に行なわれるものであり、1次局1から2次局2i
へのフレームはコマンドと呼ばれており、2次局2iか
ら1次局1へのフレームはレスポンスと呼ばれている。
In SDLC loop communication, at least one primary station 1 having a responsibility for a data link for managing a loop and a secondary station, and a plurality of secondary stations 20 to 2n form a loop. Are connected, and through such a loop, from the primary station 1 to any secondary station 2i (i is 0 to
n), and data communication from any one of the secondary stations 2i to the primary station 1. Data is transmitted and received in units of frames, and the primary station 1 to the secondary station 2i
To the primary station 1 is called a response, and the frame from the secondary station 2i to the primary station 1 is called a response.

【0004】ループ状に接続された複数の2次局20〜
2n中の1個が1次局1との通信に関与するので、各2
次局には当然に固有のアドレスが必要となる。このよう
なアドレス等を2次局2iに設定する処理が、ループの
初期設定時や、通信路又は2次局の障害発生時に行なわ
れる。
A plurality of secondary stations 20 connected in a loop form
Since one in 2n is involved in communication with the primary station 1, each 2
The next station naturally needs a unique address. The process of setting such an address or the like in the secondary station 2i is performed when the loop is initially set or when a failure occurs in the communication path or the secondary station.

【0005】図3はループの初期設定時のシーケンス図
である。この図3に示すように、1次局1と1個の2次
2iとを1:1で接続し、初期値モードセットフレーム
(初期設定コマンド:以下、SIMコマンドと呼ぶ)を
1次局1が2次局2iに与えて2次局2iにアドレス等
の初期設定を実行させ、この実行後に2次局2iが1次
局1に肯定応答として非シーケンス応答フレーム(肯定
応答レスポンス:以下、UAレスポンスと呼ぶ)を送信
する。1次局1は、このUAフレームを受信すると、次
の2次局に対する初期設定処理に進み、全ての2次局2
0〜2nに対する初期設定処理が終了すると、全ての2
次局20〜2nをループ状に接続してループ通信を開始
する。
FIG. 3 is a sequence diagram when the loop is initialized. As shown in FIG. 3, the primary station 1 and one secondary 2i are connected at a ratio of 1: 1, and an initial value mode set frame (initial setting command: hereinafter referred to as SIM command) is sent to the primary station 1 To the secondary station 2i to cause the secondary station 2i to execute initialization of addresses and the like, and after this execution, the secondary station 2i sends a positive response to the primary station 1 as a non-sequence response frame (acknowledgment response: UA (Called a response). When the primary station 1 receives this UA frame, it proceeds to the initialization process for the next secondary station, and all the secondary stations 2
When the initial setting process for 0 to 2n is completed, all 2
The next stations 20 to 2n are connected in a loop to start loop communication.

【0006】図4は、このような初期設定処理で、1次
局1及びある2次局2i間で授受されるSIMコマンド
及びUAレスポンスのフレームフォーマットを示すもの
である。SIMコマンド及びUAレスポンスは、当然
に、SDLCのフレームフォーマットに従うものであ
る。SIMコマンドは、図4(A)に示すように、開始
フラグシーケンス、アドレスフィールド、コントロール
フィールド、情報フィールド、フレームチェックシーケ
ンス及び終了フラグシーケンスからなり、コントロール
フィールドに当該フレームがSIMコマンドであること
を示すデータが挿入されている。UAレスポンスは、図
4(B)に示すように、開始フラグシーケンス、アドレ
スフィールド、コントロールフィールド、フレームチェ
ックシーケンス及び終了フラグシーケンスからなり、コ
ントロールフィールドに当該フレームがUAレスポンス
であることを示すデータが挿入されている。
FIG. 4 shows a frame format of a SIM command and a UA response transmitted and received between the primary station 1 and a certain secondary station 2i in such an initialization process. The SIM command and the UA response naturally follow the SDLC frame format. As shown in FIG. 4A, the SIM command includes a start flag sequence, an address field, a control field, an information field, a frame check sequence and an end flag sequence, and the control field indicates that the frame is a SIM command. Data has been inserted. As shown in FIG. 4B, the UA response includes a start flag sequence, an address field, a control field, a frame check sequence, and an end flag sequence, and data indicating that the frame is a UA response is inserted in the control field. Has been done.

【0007】SIMコマンドは、1次局が2次局の動作
モードの設定、再設定などを行なうときに使用するもの
である。この初期設定処理の際には、各2次局2iに固
有のアドレスが2次局2iに設定されていないので、S
IMコマンドのアドレスフィールドには“FF”が挿入
され、設定アドレス等の初期値は情報フィールドに挿入
される。2次局2iは、SIMコマンドを受信すると、
情報フィールドから自局のアドレスを読み込んで設定す
る。
The SIM command is used when the primary station sets or resets the operation mode of the secondary station. At the time of this initialization processing, since the address unique to each secondary station 2i is not set in the secondary station 2i, S
“FF” is inserted in the address field of the IM command, and initial values such as set addresses are inserted in the information field. When the secondary station 2i receives the SIM command,
Read and set the address of your own station from the information field.

【0008】UAレスポンスは、2次局2iがSIMコ
マンドを受け入れたことを示すために使用するものであ
り、2次局2iが1次局1に送信する。
The UA response is used to indicate that the secondary station 2i has accepted the SIM command, and the secondary station 2i transmits it to the primary station 1.

【0009】ところで、2次局2iに対する初期設定処
理は、以上のようなループ通信の開始時だけでなく、上
述したように、通信路の障害や2次局の障害が発生した
場合にも行なわれる。この場合の設定処理も、基本的に
は、SIMコマンド及びUAレスポンスの授受で行な
う。
By the way, the initialization processing for the secondary station 2i is performed not only at the start of the loop communication as described above, but also when the communication channel failure or the secondary station failure occurs as described above. Be done. The setting process in this case is also basically performed by exchanging the SIM command and the UA response.

【0010】すなわち、SDLCループ通信状態におい
て、2次局2iの内部又は通信路の障害によって通信エ
ラーが発生した場合には、1次局1はループ通信を停止
し、各2次局2iに対して1:1で接続して、上述した
SIMコマンド及びUAレスポンスを授受しての2次局
2iに対する初期設定処理を行なう。この後さらに通信
試験も行ない、通信試験が正常であれば再びループ接続
状態に戻してループ通信を再開する。
That is, in the SDLC loop communication state, when a communication error occurs due to a failure in the secondary station 2i or the communication path, the primary station 1 stops the loop communication, and the secondary station 2i 1: 1 to establish a connection, and perform the initial setting process for the secondary station 2i which exchanges the SIM command and the UA response described above. After this, a communication test is further performed. If the communication test is normal, the loop connection state is restored again and loop communication is restarted.

【0011】[0011]

【発明が解決しようとする課題】通信エラーの原因が、
雑音等による一時的な障害であれば、上述した一連の初
期設定手順で正常なループ通信状態に復旧することがで
きる。
The cause of the communication error is
In the case of a temporary failure due to noise or the like, the normal loop communication state can be restored by the series of initial setting procedures described above.

【0012】しかしながら、通信エラーの原因が2次局
2i内部の障害の場合には、上述した一連の初期設定手
順で問題となることがある。2次局2i内部に障害が発
生した場合、2次局2iがリセットルーチンを起動する
ことがある。しかし、2次局2iがリセットルーチンを
起動しようがしまいが、1次局1は、SIMコマンドを
送信しての初期設定を行ない、2次局2iは単にUAレ
スポンスを返送するだけである。従って、1次局1は通
信試験が正常であれば、2次局2iがリセットルーチン
を起動したか否かに拘らず、ループ通信状態に移行させ
る。しかし、リセットルーチンが起動した場合と起動さ
れない場合とでは、異なるシーケンスが求められる。す
なわち、リセットルーチンが起動されていない場合には
2次局に正常に伝送された後のデータからの伝送で良い
が、リセットルーチンが起動された場合には2次局に正
確に伝送されたデータがあってもそのデータの先頭から
伝送することが必要となる。そのため、ループ通信を再
開した場合に、1次局及び2次局間でシーケンスエラー
を引き起こす恐れがある。
However, when the cause of the communication error is a failure inside the secondary station 2i, there may be a problem in the above-described series of initial setting procedures. When a failure occurs inside the secondary station 2i, the secondary station 2i may activate the reset routine. However, even if the secondary station 2i tries to activate the reset routine, the primary station 1 transmits the SIM command and performs the initial setting, and the secondary station 2i simply returns a UA response. Therefore, if the communication test is normal, the primary station 1 shifts to the loop communication state regardless of whether the secondary station 2i has activated the reset routine. However, different sequences are required depending on whether the reset routine is activated or not. That is, when the reset routine is not activated, the data transmitted after being normally transmitted to the secondary station may be transmitted, but when the reset routine is activated, the data accurately transmitted to the secondary station may be transmitted. However, it is necessary to transmit the data from the beginning. Therefore, when loop communication is restarted, a sequence error may occur between the primary station and the secondary station.

【0013】かかる不都合を解決しようとすると、1次
局1が情報コマンド(以下、Iコマンドと呼ぶ)を2次
局2iに送信して2次局状態の返送を求め、2次局2i
が2次局状態を受信可レスポンス(以下、RRレスポン
スと呼ぶ)で1次局1に返送することが考えられる。し
かし、かかるIコマンド及びRRレスポンスの授受の分
だけ初期設定処理の時間が長くなるという問題がある。
In order to solve such an inconvenience, the primary station 1 transmits an information command (hereinafter, referred to as an I command) to the secondary station 2i to request the return of the secondary station state and the secondary station 2i.
May send back the status of the secondary station to the primary station 1 as a receivable response (hereinafter referred to as RR response). However, there is a problem in that the time for the initial setting process is extended by the amount of the exchange of the I command and the RR response.

【0014】本発明は、以上の点を考慮してなされたも
のであり、初期設定処理時に1次局が2次局状態を知得
することができる、しかも、このようにしても初期設定
時間を長時間化することがないSDLC通信システムに
おける2次局初期設定方式を提供しようとするものであ
る。
The present invention has been made in consideration of the above points, and the primary station can know the state of the secondary station during the initialization process. An object of the present invention is to provide a secondary station initial setting method in an SDLC communication system that does not last for a long time.

【0015】[0015]

【課題を解決するための手段】かかる課題を解決するた
め、本発明においては、データリンクに対する責務を有
する1次局と、この1次局に管理される少なくとも1以
上の2次局とからなり、データリンク制御層プロトコル
としてSDLCを採用しているSDLC通信システムに
おいて、1次局が送出した初期設定コマンドに対して、
2次局から出力される肯定応答レスポンスに、初期設定
コマンドの受信時における2次局状態を表す情報を挿入
することとした。
In order to solve such a problem, the present invention comprises a primary station which is responsible for a data link and at least one secondary station managed by this primary station. , In an SDLC communication system adopting SDLC as a data link control layer protocol, in response to an initialization command sent by the primary station,
Information indicating the state of the secondary station at the time of receiving the initial setting command is inserted in the positive response output from the secondary station.

【0016】[0016]

【作用】本発明において、1次局は、肯定応答レスポン
スに挿入されている、初期設定コマンドの受信時におけ
る2次局状態を表す情報によって、2次局状態を直ちに
知得することができる。そのため、この2次局情報によ
って、ループ通信の再開時に適切な通信シーケンスを選
択でき、シーケンスエラーの発生を防止することができ
る。
In the present invention, the primary station can immediately know the secondary station state from the information indicating the secondary station state at the time of receiving the initial setting command, which is inserted in the acknowledgment response. Therefore, with this secondary station information, an appropriate communication sequence can be selected when loop communication is resumed, and the occurrence of sequence errors can be prevented.

【0017】[0017]

【実施例】以下、本発明の一実施例を図面を参照しなが
ら詳述する。この実施例は、UAレスポンスのフォーマ
ットを変更したことを特徴としたものであり、そのた
め、2次局2iの初期設定処理時の通信シーケンス等も
従来とは異なっている。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings. This embodiment is characterized in that the format of the UA response is changed. Therefore, the communication sequence at the time of initial setting processing of the secondary station 2i is also different from the conventional one.

【0018】まず、図5を用いて、この実施例によるU
Aレスポンスのフレームフォーマットを説明する。図5
に示すように、この実施例のUAレスポンスは、従来と
同様な開始フラグシーケンス、アドレスフィールド、コ
ントロールフィールド、フレームチェックシーケンス及
び終了フラグシーケンスを有すると共に、これに加えて
情報フィールドを有する。この実施例の場合、新たに設
けられた情報フィールドには、2次局状態を表すデータ
が挿入される。すなわち、自局が通信中でIコマンド待
ち状態(リセットルーチンが起動されていない状態)に
あることを表す2次局状態データ、又は、自局がリセッ
トされた初期状態であってSIMコマンドの受信待ちで
あったことを表す2次局状態データが挿入される。
First, referring to FIG. 5, U according to this embodiment is used.
The frame format of the A response will be described. Figure 5
As shown in, the UA response of this embodiment has the same start flag sequence, address field, control field, frame check sequence, and end flag sequence as the conventional one, and additionally has an information field. In the case of this embodiment, data representing the secondary station state is inserted in the newly provided information field. That is, the secondary station state data indicating that the local station is communicating and is in the I command waiting state (state where the reset routine is not activated), or the initial station is reset and the SIM command is received. Secondary station status data indicating that it has been waiting is inserted.

【0019】図6及び図7はそれぞれ、新しいフォーマ
ットを有するUAレスポンスを利用する1次局1及び2
次局2iの処理手順を示すフローチャートである。
FIGS. 6 and 7 respectively show primary stations 1 and 2 utilizing a UA response with a new format.
It is a flow chart which shows a processing procedure of next station 2i.

【0020】図6を用いて、1次局1側の処理をまず説
明する。2次局初期設定処理が起動されると、2次局2
iとの1:1の接続を実行した後、SIMコマンドを送
信する(ステップ100〜102)。その後、UAレス
ポンスが返送されてきたか否かを判断する(ステップ1
03)。返送されてきていない場合には、SIMコマン
ドの再送を実行するか否かを判断し(所定回数の再送を
実行したか否かを判断し)、再送する場合には上述のス
テップ102に進み、これ以上の再送が不要なときは初
期設定ができない旨の表示等を行なう初期設定NG処理
を行なう(ステップ104、105)。これに対して、
UAレスポンスが返送されてきた場合には、通信試験を
実行した後(ステップ106)、一連の初期設定処理を
終了してステップ107以降のループ通信処理に進む。
The processing on the primary station 1 side will be described first with reference to FIG. When the secondary station initial setting process is started, the secondary station 2
After executing a 1: 1 connection with i, a SIM command is transmitted (steps 100-102). After that, it is judged whether or not the UA response is returned (step 1
03). If it has not been returned, it is determined whether or not the SIM command is retransmitted (whether or not the SIM command has been retransmitted a predetermined number of times), and if retransmitted, the process proceeds to step 102 described above. When further resending is unnecessary, an initial setting NG process is performed to display a message indicating that the initial setting cannot be performed (steps 104 and 105). On the contrary,
When the UA response is returned, a communication test is executed (step 106), a series of initial setting processing is ended, and the processing proceeds to loop communication processing from step 107 onward.

【0021】ループ通信処理では、ループ接続状態にす
る等のループ通信開始処理をまず行ない(ステップ10
7)、その後に、Iコマンドの送信及びポーリング(送
信権)の送信を行なう(ステップ108、109)。こ
こで、Iコマンドの送信は、受信したUAレスポンスに
挿入されている2次局状態データに基づいて行なう。例
えば、2次局側がリセットされていれば、通信エラーで
転送がとぎれて転送済みのデータがあった場合でも最初
のデータからのIコマンドによる転送を行ない、また、
2次局側がリセットされていなければ、通信エラーで転
送がとぎれた場合であっても未転送のデータからIコマ
ンドによる転送を行なう。
In the loop communication process, a loop communication start process such as setting a loop connection state is first performed (step 10).
7) After that, the I command and the polling (transmission right) are transmitted (steps 108 and 109). Here, the I command is transmitted based on the secondary station status data inserted in the received UA response. For example, if the secondary station is reset, even if there is data that has been transferred due to a communication error and transfer has been interrupted, transfer is performed using the I command from the first data.
If the secondary station has not been reset, even if the transfer is interrupted due to a communication error, the untransferred data is transferred by the I command.

【0022】その後、2次局2iからのRRレスポンス
又はIレスポンスを受信したか否かを判断する(ステッ
プ110)。受信しない場合には、Iコマンドの再送を
実行するか否かを判断し(所定回数の再送を実行したか
否かを判断し)、再送する場合には上述のステップ10
8に進み、これ以上の再送が不要なときは通信エラーが
発生したことを検出し、ループ通信を停止させて2次局
初期設定処理を起動させる(ステップ111〜11
3)。これに対して、RRレスポンス又はIレスポンス
が返送されてきた場合には、2次局2iにRRコマンド
を送信した後上述のIコマンドの送信処理に進む(ステ
ップ114)。
Then, it is judged whether or not the RR response or I response from the secondary station 2i is received (step 110). If not received, it is determined whether or not the I command is retransmitted (whether or not the I command is retransmitted a predetermined number of times).
If no further resending is required, it is detected that a communication error has occurred, the loop communication is stopped, and the secondary station initial setting process is started (steps 111 to 11).
3). On the other hand, when the RR response or the I response is returned, the RR command is transmitted to the secondary station 2i, and then the I command transmitting process is performed (step 114).

【0023】次に、図7を用いて2次局2i側の処理を
説明する。2次局初期設定処理ではまずSIMコマンド
を待受け、これを受信すると、自局の状態を判定して得
られた自局状態を挿入したUAレスポンスを1次局1に
返送する(ステップ200〜203)。その後、通信試
験を行なう(ステップ204)。かくして、一連の初期
設定処理を終了するとステップ205以降のループ通信
処理に進む。
Next, the processing on the secondary station 2i side will be described with reference to FIG. In the secondary station initial setting processing, first, the SIM command is waited, and when this is received, the UA response in which the own station state obtained by judging the state of the own station is inserted is returned to the primary station 1 (steps 200 to 203). ). Then, a communication test is performed (step 204). Thus, when the series of initial setting processes are completed, the process proceeds to the loop communication process after step 205.

【0024】ループ通信処理では、ループ接続状態にす
る等のループ通信開始処理をまず行ない(ステップ20
5)、その後に、1次局1から転送されてきたRRコマ
ンド又はIコマンドの受信処理を行なう(ステップ20
6)。
In the loop communication process, a loop communication start process such as setting a loop connection state is first performed (step 20).
5) After that, reception processing of the RR command or I command transferred from the primary station 1 is performed (step 20).
6).

【0025】その後、SIMコマンドが転送されてきた
か否かを確認する(ステップ207)。転送されてきた
場合には上述したステップ202に戻り、他方、転送さ
れてきていない場合には、ポーリングの受信を待って1
次局1へRRレスポンス又はIレスポンスを送信して、
1次局1からのIコマンド又はRRコマンドの受信待ち
状態に戻る(ステップ208、209)。
Then, it is confirmed whether or not the SIM command has been transferred (step 207). If it has been transferred, the process returns to the above-mentioned step 202. On the other hand, if it has not been transferred, it waits for the reception of polling and 1
Send the RR response or I response to the next station 1,
The process returns to the waiting state for receiving the I command or the RR command from the primary station 1 (steps 208 and 209).

【0026】図1は、上述したように動作する1次局1
及び2次局2iで実行される通信シーケンスの一例を示
すものである。図1(A)は、通信路障害による通信エ
ラーの発生時におけるシーケンスを示しており、図1
(B)は、2次局障害による通信エラーの発生時におけ
るシーケンスを示している。
FIG. 1 shows a primary station 1 which operates as described above.
And an example of a communication sequence executed by the secondary station 2i. FIG. 1A shows a sequence when a communication error occurs due to a communication path failure.
(B) shows a sequence when a communication error occurs due to a secondary station failure.

【0027】まず、図1(A)を用いて、通信路障害時
の再設定処理の通信シーケンスを説明する。
First, the communication sequence of the resetting process at the time of communication path failure will be described with reference to FIG.

【0028】ループ通信状態において、例えば1次局1
からのIコマンドが通信路障害のために2次局2iに正
常に届かない場合には、2次局2iは適切でないRRレ
スポンスを出力するか、又は、RRレスポンスの返送を
実行しない。これにより、1次局1は通信エラーが発生
したことを認識し(S1)、ループ状態を解除してSI
Mコマンドを2次局2iに送信する(S2)。このと
き、2次局2iは、自局が通信中でIコマンド待ち状態
であることを表す2次局状態データをUAレスポンスに
挿入して1次局1に返送する(S3)。1次局1は、こ
のUAレスポンスを受信すると、通信試験を実行してル
ープ状態に戻した後に、2次局2iが通信中であったこ
とを認識してそれに合ったシーケンスで通信を再開する
(S4)。
In the loop communication state, for example, the primary station 1
When the I command from the above does not normally reach the secondary station 2i due to a communication path failure, the secondary station 2i outputs an inappropriate RR response or does not return the RR response. As a result, the primary station 1 recognizes that a communication error has occurred (S1), cancels the loop state, and returns to SI.
The M command is transmitted to the secondary station 2i (S2). At this time, the secondary station 2i inserts the secondary station status data indicating that it is in communication and waiting for an I command into the UA response and returns it to the primary station 1 (S3). Upon receiving this UA response, the primary station 1 executes the communication test and returns to the loop state, then recognizes that the secondary station 2i was in communication and restarts the communication in a sequence suitable for it. (S4).

【0029】次に、図1(B)を用いて、2次局内部障
害時の再設定処理の通信シーケンスを説明する。
Next, the communication sequence of the resetting process at the time of internal failure of the secondary station will be described with reference to FIG.

【0030】ループ通信状態において、2次局2iの内
部で障害が発生すると、リセットルーチンが起動されて
初期状態になるため、かかる2次局2iは、アドレスが
“FF”のグローバルコマンド(例えばSIMコマン
ド)しか受け付けられない状態になる。このような状態
で、例えば、1次局1がこの2次局2iにIコマンドを
送信しても、アドレスが妥当でないので2次局2iはR
Rレスポンスの返送を実行しない(S10)。RRレス
ポンスが返送されてこないため、1次局1は通信エラー
が発生したことを認識し(S11)、ループ状態を解除
してSIMコマンドを2次局2iに送信する(S2
1)。このとき、2次局2iは、自局がリセットされた
初期状態であってSIMコマンドを待受けていた状態で
あったことを表す2次局状態データをUAレスポンスに
挿入して1次局1に返送する(S13)。1次局1は、
このUAレスポンスを受信すると、通信試験を実行して
ループ状態に戻した後に、2次局2iが初期状態にある
ことを認識して最初から通信を再開する(S14)。
In the loop communication state, when a failure occurs inside the secondary station 2i, the reset routine is activated and the initial state is set. Therefore, the secondary station 2i receives a global command (for example, SIM) whose address is "FF". Only commands) will be accepted. In this state, for example, even if the primary station 1 sends an I command to this secondary station 2i, the address is not valid, so the secondary station 2i
The return of the R response is not executed (S10). Since the RR response is not returned, the primary station 1 recognizes that a communication error has occurred (S11), releases the loop state, and sends a SIM command to the secondary station 2i (S2).
1). At this time, the secondary station 2i inserts the secondary station state data, which indicates that it is in the reset initial state and was in the state of waiting for the SIM command, into the UA response to the primary station 1. It is returned (S13). The primary station 1
When this UA response is received, after the communication test is executed and the loop state is returned to, the secondary station 2i recognizes that it is in the initial state and restarts communication from the beginning (S14).

【0031】従って、上述の実施例によれば、2次局2
iが、SIMコマンドに対するUAレスポンスに、SI
Mコマンドの受信時における2次局状態データを挿入し
て1次局1に返送するようにしたので、1次局1はIコ
マンド及びRRレスポンスの授受を行なうことなく、2
次局2iの状態を認識でき、初期設定後の動作を適切に
選択することができる。その結果、初期設定後に再開し
たループ通信状態でシーケンスエラーを生じることを防
止することができる。
Therefore, according to the above embodiment, the secondary station 2
i is the UA response to the SIM command and SI
Since the secondary station status data at the time of receiving the M command is inserted and returned to the primary station 1, the primary station 1 does not exchange the I command and the RR response.
The state of the next station 2i can be recognized, and the operation after initial setting can be appropriately selected. As a result, it is possible to prevent a sequence error from occurring in the loop communication state restarted after the initial setting.

【0032】なお、本発明は、各種のネットワークシス
テムに適用することができる。また、SDLCループ通
信だけでなく、他の接続形態のSDLC通信にも適用す
ることができる。
The present invention can be applied to various network systems. Further, not only the SDLC loop communication but also the SDLC communication of other connection forms can be applied.

【0033】[0033]

【発明の効果】以上のように、本発明によれば、初期設
定コマンドに対する肯定応答レスポンスに、そのコマン
ドの受信時における2次局状態データを挿入して1次局
に返送するようにしたので、1次局は他のコマンド及び
レスポンスの授受を行なうことなく、2次局の状態を認
識でき、初期設定後の動作を適切に選択することがで
き、初期設定後に再開したループ通信状態でシーケンス
エラーを生じることを防止することができる。
As described above, according to the present invention, the secondary station status data at the time of reception of the command is inserted into the positive response to the initial setting command and returned to the primary station. The primary station can recognize the state of the secondary station without sending and receiving other commands and responses, can select the operation after the initial setting properly, and can perform the sequence in the loop communication state restarted after the initial setting. It is possible to prevent an error from occurring.

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

【図1】実施例の障害発生時の2次局初期設定処理を示
す通信シーケンス図である。
FIG. 1 is a communication sequence diagram illustrating a secondary station initial setting process when a failure occurs according to an embodiment.

【図2】SDLCループ構成を示すブロック図である。FIG. 2 is a block diagram showing an SDLC loop configuration.

【図3】システム稼動開始時の2次局初期設定処理を示
す通信シーケンス図である。
FIG. 3 is a communication sequence diagram showing a secondary station initial setting process at the start of system operation.

【図4】従来のSIMコマンド及びUAレスポンスのフ
ォーマット図である。
FIG. 4 is a format diagram of a conventional SIM command and UA response.

【図5】実施例のUAレスポンスのフォーマット図であ
る。
FIG. 5 is a format diagram of a UA response according to the embodiment.

【図6】実施例の1次局の処理フローチャートである。FIG. 6 is a processing flowchart of the primary station according to the embodiment.

【図7】実施例の2次局の処理フローチャートである。FIG. 7 is a processing flowchart of a secondary station according to the embodiment.

【符号の説明】[Explanation of symbols]

1…1次局、20〜2n…2次局。 1 ... Primary station, 20-20n ... Secondary station.

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】 データリンクに対する責務を有する1次
局と、この1次局に管理される少なくとも1以上の2次
局とからなり、データリンク制御層プロトコルとしてS
DLCを採用しているSDLC通信システムにおいて、 1次局が送出した初期設定コマンドに対して、2次局か
ら出力される肯定応答レスポンスに、初期設定コマンド
の受信時における2次局状態を表す情報を挿入したこと
を特徴とするSDLC通信システムにおける2次局初期
設定方式。
1. A primary station which is responsible for a data link, and at least one secondary station managed by the primary station, wherein S is used as a data link control layer protocol.
In an SDLC communication system adopting DLC, in response to an initial setting command sent from the primary station, an acknowledgment response output from the secondary station, information indicating the state of the secondary station at the time of receiving the initial setting command. A secondary station initial setting method in an SDLC communication system, characterized in that
JP3120850A 1991-05-27 1991-05-27 Secondary station initialization method in SDLC communication system Expired - Fee Related JP2602587B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3120850A JP2602587B2 (en) 1991-05-27 1991-05-27 Secondary station initialization method in SDLC communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3120850A JP2602587B2 (en) 1991-05-27 1991-05-27 Secondary station initialization method in SDLC communication system

Publications (2)

Publication Number Publication Date
JPH0591117A true JPH0591117A (en) 1993-04-09
JP2602587B2 JP2602587B2 (en) 1997-04-23

Family

ID=14796500

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3120850A Expired - Fee Related JP2602587B2 (en) 1991-05-27 1991-05-27 Secondary station initialization method in SDLC communication system

Country Status (1)

Country Link
JP (1) JP2602587B2 (en)

Also Published As

Publication number Publication date
JP2602587B2 (en) 1997-04-23

Similar Documents

Publication Publication Date Title
JP2925678B2 (en) Data communication method and data communication system
CA2027230C (en) Station-to-station full duplex communication in a communications network
US8284669B2 (en) Data acknowledgement apparatus and method
EP0074864B1 (en) System and method for name-lookup in a local area network data communication system
US4896151A (en) Simultaneous communication method and system
JPS62239641A (en) Multiple address communication system
JP3857317B2 (en) Automatic negotiation progress monitor
US6097731A (en) Data retransmission method used in confirmation information transmissions
US6452946B1 (en) Apparatus and method for improving performance in master and slave communications systems
US5235597A (en) Synchronizing asynchronous protocol interactions between peer layers in different nodes of a layered communication network
EP0886410A2 (en) Data communication method, data communication apparatus, and data communication program recording medium
US6570852B1 (en) Relay communication system
JP2602587B2 (en) Secondary station initialization method in SDLC communication system
JPH11252134A (en) Broadcast communication system
JP2776274B2 (en) Virtual buffer control system in relay computer
JPH0685839A (en) System for avoiding missing packet between stations
JP3322748B2 (en) Communication path re-establishment method and communication device therefor
JP2804876B2 (en) Communication method for network system including multiplex system
JPS63272240A (en) Polling system
CA1208736A (en) System and method for name-lookup in a local area network data communication system
JPS60201760A (en) Data transmission system
JP2972453B2 (en) Communication line failure detection method
JP2000134217A (en) Collision prevention system
JPH0522314A (en) Data transmitter
JPS6035851A (en) Communication system

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090129

Year of fee payment: 12

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100129

Year of fee payment: 13

LAPS Cancellation because of no payment of annual fees