JPH0252466B2 - - Google Patents

Info

Publication number
JPH0252466B2
JPH0252466B2 JP18922184A JP18922184A JPH0252466B2 JP H0252466 B2 JPH0252466 B2 JP H0252466B2 JP 18922184 A JP18922184 A JP 18922184A JP 18922184 A JP18922184 A JP 18922184A JP H0252466 B2 JPH0252466 B2 JP H0252466B2
Authority
JP
Japan
Prior art keywords
station
data
specific pattern
switch
transmission path
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
JP18922184A
Other languages
Japanese (ja)
Other versions
JPS6166438A (en
Inventor
Satoshi Ikeuchi
Ikuo Taniguchi
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.)
Fujitsu Ltd
Original Assignee
Fujitsu 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 Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP18922184A priority Critical patent/JPS6166438A/en
Publication of JPS6166438A publication Critical patent/JPS6166438A/en
Publication of JPH0252466B2 publication Critical patent/JPH0252466B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Small-Scale Networks (AREA)

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はポーリング.セレクテイング方式でデ
ータを転送するデータ転送方式の改良に関するも
のである。
[Detailed Description of the Invention] [Industrial Application Field] The present invention is a polling method. This invention relates to an improvement in a data transfer method that transfers data using a selecting method.

第2図a及びbは回線構成図の例を示す。 Figures 2a and 2b show examples of line configuration diagrams.

第2図aは複数のスレーブ局1…nをタンデム
に、マスタ局を例えば両端に接続したものである
が、第2図bではマスタ局は片端のみに接続さ
れ、ループを構成している。
In FIG. 2a, a plurality of slave stations 1...n are connected in tandem with a master station, for example, at both ends, whereas in FIG. 2b, the master station is connected only at one end, forming a loop.

しかし、何れの場合でもデータの授受はポーリ
ング.セレクテイング方式により行われるので、
マスタ局より呼出されたスレーブ局のみがマスタ
局にデータを送出する。
However, in either case, data is sent and received by polling. This is done by the selection method, so
Only slave stations called by the master station send data to the master station.

この為、各スレーブ局の受信機はマスタ局の呼
出を何時でも受信できる様に線路に接続されてい
るが、通常はスイツチ1−1…の接点は図に示す
様にループ側に倒され、呼出しのあつた時のみト
ーク側に切替えてデータをマスタ局に送出する様
になつている。
For this reason, the receiver of each slave station is connected to the line so that it can receive calls from the master station at any time, but normally the contacts of switch 1-1... are turned to the loop side as shown in the figure. Only when a call is received, it switches to the talk side and sends data to the master station.

尚、第2図a及びb中の実線矢印及び点線矢印
はそれぞれ呼出信号及びそれに対応るデータの流
れを示す。
Note that solid line arrows and dotted line arrows in FIGS. 2a and 2b indicate the flow of a call signal and the corresponding data, respectively.

又、各局間のデータ伝送方式は例えばインター
フエースが簡単で、クロツクの位相関係が無視出
来る調歩同期方式で行われる。
The data transmission method between each station is, for example, a start-stop synchronization method in which the interface is simple and the phase relationship of the clocks can be ignored.

第3図は調歩同期方式のフオーマツトを示す。 FIG. 3 shows the format of the start-stop synchronization method.

図において、データがない時にはHレベルにな
つているが、それがLレベルに変化するとスター
トを示すスタートビツトSTRの送出となる。
In the figure, when there is no data, it is at H level, but when it changes to L level, a start bit STR indicating a start is sent.

その後は内容に依つてHとLレベルの間を変化
するデータD0〜D6が続き、パリテイビツトP
を挿入した後、1〜2ビツトHレベルにして完了
を示すストツプビツトSTPを送出し、これで1
キヤラクタが完了する。これを繰返して1キヤラ
クタづつ例えばマスタ局に送出する。
After that, data D0 to D6 that change between H and L level depending on the contents follow, and the parity bit P
After inserting the bit, set 1 to 2 bits to H level and send out the stop bit STP indicating completion.
The character is completed. This process is repeated to send one character at a time to, for example, the master station.

一方、受信側ではスタートビツトSTRの立下
がりで読出しクロツクを立上げ、スタートビツト
STRの半周期a点で先ずレベルを読む。その後
は1周期づつ指定されたビツト数(例えば11ビツ
ト)のレベルを読む。
On the other hand, on the receiving side, the read clock is raised at the fall of the start bit STR, and the start bit is
First, read the level at point a of the STR half cycle. After that, the level of the specified number of bits (for example, 11 bits) is read one cycle at a time.

この時、スタートビツトSTRがHレベルに、
パリテイビツトPが合つている事を確認して、こ
のキヤラクタが正常に受信されたと判断する。
At this time, the start bit STR goes to H level,
It is confirmed that the parity bit P is correct, and it is determined that this character has been received normally.

ここで、前記の様にポーリング.セレクテイン
グ方式でデータの授受を行つているので、マスタ
局より呼出されないスレーブ局が緊急にデータの
送出を希望する場合、下記の方法がある。
Here, poll as described above. Since data is sent and received using the selecting method, if a slave station that is not called by the master station urgently desires to send data, there are the following methods.

自分が呼出されるのを待つ。 Wait for yourself to be called.

緊急を示すコードを他のスレーブ局に送出し
てマスタ局との伝送路を確立させた後、データ
を送出する。
After transmitting a code indicating an emergency to other slave stations and establishing a transmission path with the master station, data is transmitted.

この内の何れかの方法を選択しなければならな
いが、何れを取つても下記に示す様にデータ送出
迄に時間がかかり、緊急にデータを送出する事が
難しい。
One of these methods must be selected, but as shown below, it takes time to send data, and it is difficult to send data urgently.

そこで、より短い時間でデータを送出する事の
できるデータ転送方式が要望されている。
Therefore, there is a need for a data transfer method that can send data in a shorter time.

〔従来の技術〕[Conventional technology]

第4図は従来例のブロツク図を示す。 FIG. 4 shows a block diagram of a conventional example.

同図の送信部において、入出力ポート11に接
続された各端末機10からのデータをコンピユー
タ(以下CPUと省略する)13が読んでメモリ
12に書込む。
In the transmitting section shown in the figure, a computer (hereinafter abbreviated as CPU) 13 reads data from each terminal 10 connected to an input/output port 11 and writes it into a memory 12.

次に、メモリ12から読出されたデータは例え
ばJIS 7コード等に変換するプログラムを用いて
CPU13によりJIS 7コードに変換された後、
並列/直列変換回路14で直列符号に変換され
る。
Next, the data read from the memory 12 is converted into, for example, JIS 7 code using a program.
After being converted to JIS 7 code by CPU13,
The parallel/serial conversion circuit 14 converts it into a serial code.

若し、スレーブ局より呼出がある場合、スイツ
チ制御回路15でトーク側に倒されたスイツチ1
−1を通つてマスタ局に送出される。
If there is a call from the slave station, the switch control circuit 15 switches the switch 1 to the talk side.
-1 to the master station.

受信部においては、受信された直列符号は直
列/並列変換回路16で並列符号に変換された
後、CPU13でJIS 7コード解読プログラムを
用いて元のデータに戻し、メモリ12に一旦書込
んだ後、入出力ポート11を介して端末機10を
駆動する。
In the receiving section, the received serial code is converted into a parallel code by the serial/parallel conversion circuit 16, and then returned to the original data by the CPU 13 using a JIS 7 code decoding program, and once written into the memory 12. , drives the terminal 10 via the input/output port 11.

尚、並列/直列変換回路14及び直列/並列変
換回路16はLSI化され、ここで第3図に示した
フオーマツトの内のスタートビツトSTRとパリ
テイビツトP及びストツプビツトSTPは処理さ
れるので、CPU13はデータD0〜D6の処理を
行う。
Note that the parallel/serial conversion circuit 14 and the serial/parallel conversion circuit 16 are implemented as an LSI, and the start bit STR, parity bit P, and stop bit STP in the format shown in FIG. Processes D 0 to D6 are performed.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

以上説明した様に、マスタ局よりのポーリン
グ.セレクテイング方式により、従属的にデータ
伝送する場合は問題ないが、スレーブ局からの緊
急データの送出を希望する場合は、トーク側にな
つているスレーブ局のスイツチを全てループ側に
設定しないと、回線が確立されていないのでデー
タが送出できない。
As explained above, polling from the master station. There is no problem when transmitting data in a dependent manner using the selecting method, but if you wish to send emergency data from a slave station, you must set all the switches of the slave stations that are on the talk side to the loop side. Data cannot be sent because the line is not established.

そこで、回線確立の為に特定パターンをトーク
側になつているスレーブ局に送出するが、例えば
#1スレーブ局では前記の様に直列/並列変換し
た後、CPU13がこの特定パターンを認識して
からスイツチをループ側に倒すことになるので、
処理時間が長く上記の特定パターンは#1スレー
ブ局で消失し、次の#2スレーブ局には送られな
い。
Therefore, in order to establish a line, a specific pattern is sent to the slave station on the talk side. For example, in the #1 slave station, after performing serial/parallel conversion as described above, the CPU 13 recognizes this specific pattern. Since you will be moving the switch to the loop side,
Due to the long processing time, the above-mentioned specific pattern disappears at the #1 slave station and is not sent to the next #2 slave station.

そこで、#2スレーブ局の為に更に同じ特定パ
ターンを送出してスイツチを切替えさせなければ
ならない。
Therefore, it is necessary to further transmit the same specific pattern for the #2 slave station to cause the switch to change over.

即ち、各スレーブ局での変換とCPU処理時間
を考慮して複数の特定パターンを逐次送出した後
にデータを送出しなければならない。
That is, the data must be sent after sequentially sending out a plurality of specific patterns in consideration of conversion and CPU processing time in each slave station.

勿論、呼ばれるのを待つ方法でもデータ送出迄
に時間がかかる。
Of course, even with the method of waiting for a call, it takes time to send the data.

何れの方法をとるにしても、データ送出迄に時
間がかかると云う問題点があつた。
No matter which method is used, there is a problem in that it takes time to send the data.

〔問題点を解決するための手段〕[Means for solving problems]

上記の問題点は、各スレーブ局に特定パターン
を伝送路へ送出する手段と、受信した信号から該
特定パターンを検出する手段と、自局からの信号
を伝送路に送出する接続路を形成すると共に、後
位局より前位局への伝送路を切離すスイツチとを
設け、他のスレーブ局からの特定パターンの検出
により、自局の該スイツチが動作している際には
復旧させて後位局と前位局との伝送路を優先的に
確立する本発明のデータ転送方式により解決され
る。
The above problem is that each slave station has a means for sending a specific pattern onto the transmission path, a means for detecting the specific pattern from the received signal, and a connection path for sending the signal from the own station onto the transmission path. At the same time, a switch is installed to disconnect the transmission line from the downstream station to the previous station, and by detecting a specific pattern from other slave stations, if the switch in the own station is operating, it can be restored and then restored. This problem is solved by the data transfer method of the present invention, which preferentially establishes a transmission path between a local station and a previous station.

〔作 用〕[Effect]

本発明はCPUでソフト的に行つていたスレー
ブ局よりの特定パターンの検出を特定パターン検
出回路で行うことにより、スイツチ回路の制御を
早める様にした。
The present invention speeds up the control of the switch circuit by using a specific pattern detection circuit to detect a specific pattern from a slave station, which was previously done using software in the CPU.

即ち、受信された例えば7ビツトオール0の直
列符号が特定パターン検出回路で検出されると、
この回路からの検出出力でCPUによるスイツチ
の制御を禁止すると共に、このスイツチを伝送路
側に強制的に切替える様にした。
That is, when a received serial code of, for example, 7 bits all 0 is detected by a specific pattern detection circuit,
The detection output from this circuit prohibits the CPU from controlling the switch and forcibly switches the switch to the transmission line side.

これにより、スイツチの切替えが早くなるの
で、緊急データの送出が早くなる。
This speeds up the switching of the switch, so emergency data can be sent out quickly.

〔実施例〕〔Example〕

第1図は本発明の1実施例のブロツク図を示
す。尚、全図を通じて同一符号は同一対象物を示
す。
FIG. 1 shows a block diagram of one embodiment of the invention. Note that the same reference numerals indicate the same objects throughout the figures.

図において、受信部に加えられた特定符号の例
えば7ビツトオール0の符号がトーク側に倒れた
スレーブ局の受信部内の特定パターン検出回路1
7に加えられる。
In the figure, a specific pattern detection circuit 1 in the receiving section of a slave station in which a specific code added to the receiving section, for example, a code of 7 bits all 0, has fallen to the talk side.
Added to 7.

この回路17は、例えば自分で持つている特定
パターンと照合して一致すれば特定パターン検出
の信号をアンド回路18に出力する。
This circuit 17 compares it with a specific pattern that it owns, for example, and if it matches, outputs a specific pattern detection signal to an AND circuit 18.

一方、アンド回路18にはCPU13で制御す
るスイツチ制御回路15の出力が加えられていて
も、特定パターン検出回路17の出力を優先する
様になつているので、スイツチ制御回路15の出
力は阻止され、特定パターン検出回路の出力によ
つてスイツチ回路1−1は伝送路側に倒される。
On the other hand, even if the output of the switch control circuit 15 controlled by the CPU 13 is applied to the AND circuit 18, the output of the specific pattern detection circuit 17 is given priority, so the output of the switch control circuit 15 is blocked. , the switch circuit 1-1 is pushed to the transmission path side by the output of the specific pattern detection circuit.

但し、その時のスイツチ1−1の状態はCPU
に読込せる。
However, the state of switch 1-1 at that time is CPU
can be read into.

これは、例えばCPUでコード変換されたデー
タをスイツチ1−1を介して、例えばマスタ局に
送出していた時に強制的にスイツチを切替える場
合は、CPUからの送出を1時停止させて緊急デ
ータを先に通した後、残りのデータを送る様にす
る為である。
For example, if data code-converted by the CPU is being sent to the master station via switch 1-1 and the switch is forcibly switched, the transmission from the CPU will be temporarily stopped and the emergency data will be sent to the master station. This is to send the remaining data after passing through the data first.

又、特定パターンは他の電文ないのワードと一
致しない様なものを選択しなければならない。
In addition, the specific pattern must be selected so that it does not match words in other telegrams.

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

以上説明した様に本発明は、特定パターンをハ
ード的に検出する事により、スイツチを切替える
迄の時間が短縮されるので、より短い時間で緊急
データを送出する事ができる。
As explained above, the present invention reduces the time required to change the switch by detecting a specific pattern using hardware, so that emergency data can be sent in a shorter time.

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

第1図は本発明の1実施例のブロツク図、第2
図a及びbは回線構成図、第3図は調歩同期方式
のフオーマツト図、第4図は従来の1実施例のブ
ロツク図を示す。 図において、13はCPU、14は並列/直列
変換回路、15はスイツチ制御回路、16は直
列/並列変換回路、17は特定パターン検出回
路、18はアンド回路を示す。
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG.
Figures a and b are line configuration diagrams, Figure 3 is a format diagram of an asynchronous system, and Figure 4 is a block diagram of a conventional embodiment. In the figure, 13 is a CPU, 14 is a parallel/serial conversion circuit, 15 is a switch control circuit, 16 is a serial/parallel conversion circuit, 17 is a specific pattern detection circuit, and 18 is an AND circuit.

Claims (1)

【特許請求の範囲】[Claims] 1 ポーリング.セレクテイング方式によりスレ
ーブ局よりマスタ局にデータを転送する伝送シス
テムにおいて、各スレーブ局に特定パターンを伝
送路へ送出する手段と、受信した信号から該特定
パターンを検出する手段と、自局からの信号を伝
送路に送出する接続路を形成すると共に、後位局
より前位局への伝送路を切離すスイツチとを設
け、他のスレーブ局からの特定パターンの検出に
より、自局の該スイツチが動作している時は復旧
させて後位局と前位局との伝送路を優先的に確立
することを特徴とするデータ転送方式。
1 Polling. In a transmission system that transfers data from a slave station to a master station using a selecting method, each slave station has a means for sending a specific pattern onto a transmission path, a means for detecting the specific pattern from a received signal, and a means for transmitting a specific pattern from the own station. A connection path is formed to send signals to the transmission path, and a switch is provided to disconnect the transmission path from the downstream station to the preceding station. A data transfer method that is characterized in that when the station is in operation, it is restored and a transmission path between the downstream station and the preceding station is established preferentially.
JP18922184A 1984-09-10 1984-09-10 Data transfer system Granted JPS6166438A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP18922184A JPS6166438A (en) 1984-09-10 1984-09-10 Data transfer system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP18922184A JPS6166438A (en) 1984-09-10 1984-09-10 Data transfer system

Publications (2)

Publication Number Publication Date
JPS6166438A JPS6166438A (en) 1986-04-05
JPH0252466B2 true JPH0252466B2 (en) 1990-11-13

Family

ID=16237593

Family Applications (1)

Application Number Title Priority Date Filing Date
JP18922184A Granted JPS6166438A (en) 1984-09-10 1984-09-10 Data transfer system

Country Status (1)

Country Link
JP (1) JPS6166438A (en)

Also Published As

Publication number Publication date
JPS6166438A (en) 1986-04-05

Similar Documents

Publication Publication Date Title
US4293948A (en) Data transmission system
US5748684A (en) Resynchronization of a synchronous serial interface
US3961139A (en) Time division multiplexed loop communication system with dynamic allocation of channels
EP0383925B1 (en) Device for detecting the position of a broken line in a serial control system
JPH0252466B2 (en)
US5095481A (en) Technique for active synchronization of the content induced transaction overlap (CITO) communication channel
US7965804B2 (en) Method of link word synchronization
JPS6221462B2 (en)
JPH0311701B2 (en)
JP2679506B2 (en) Clock switching method
JPH0720115B2 (en) Loop type transmission processor
JP2759585B2 (en) Character assembly disassembler
JP2513701B2 (en) Transmission request signal control method
JPS6142466B2 (en)
JPH0773390B2 (en) Remote monitoring controller
JPS61270952A (en) Data transmitting system
JPH0630506B2 (en) Serial communication device
JPS59223041A (en) Monitoring control device
JPH0544860B2 (en)
JPS61224633A (en) Method for selective calling
JPH05327743A (en) Transmission line control method for data communication system
JPS5814105B2 (en) Half-duplex transmission method
JPH02250453A (en) Data receiver
JPS607864B2 (en) data transmission equipment
JPH0459818B2 (en)