JPS622333A - State recognizing system for data processing system - Google Patents

State recognizing system for data processing system

Info

Publication number
JPS622333A
JPS622333A JP60141309A JP14130985A JPS622333A JP S622333 A JPS622333 A JP S622333A JP 60141309 A JP60141309 A JP 60141309A JP 14130985 A JP14130985 A JP 14130985A JP S622333 A JPS622333 A JP S622333A
Authority
JP
Japan
Prior art keywords
controller
processing
state
host
message
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
JP60141309A
Other languages
Japanese (ja)
Other versions
JPH049345B2 (en
Inventor
Masashi Sogo
十河 正史
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 JP60141309A priority Critical patent/JPS622333A/en
Publication of JPS622333A publication Critical patent/JPS622333A/en
Publication of JPH049345B2 publication Critical patent/JPH049345B2/ja
Granted legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To prevent degradation of the processing efficiency of a controller and a host device by constituting the title system so that the host unit generates a processing request to all the controllers and serves as both a state recognition and a processing start, without executing the state recognition of the controller at every state variation. CONSTITUTION:Whether a processing request from a host unit 200 exists or not is decided by a host circuit sub-CPU 160, and when the processing request is executed, a main CPU 110 refers to a spare mode flag in a subordinate circuit sub-CPU 150. When the spare mode flag is in an on state a main controller 100a is operating and its own spare controller 100b is monitoring, therefore, a telegraphic message showing a stand-by state is transmitted to the host unit 200 from a host circuit lH through the host circuit sub-CPU 160, and the processing request from the host is waited for again. When the spare mode flag is in an off state the main controller 100a is faulty, and the spare controller 100b is in the course of a circuit service, therefore, the requested processing is executed.

Description

【発明の詳細な説明】 〔目次〕 概要 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段(第1図)作用 実施例 (al−実施例の構成の説明(第2図、第3図)(b)
一実施例の動作の説明(第4図、第5図)(C)内部処
理の詳細説明(第6図、第7図)(di他の実施例の説
明 発明の効果 〔概要〕 複数の端末装置を制御するコントローラが複数台設けら
れ、一方のコントローラの障害時に他方のコントローラ
がバンクアップ制御するシステムにおいて、複数のコン
トローラに接続された上位ユニ、トが処理依頼を複数の
コントローラに発して、複数のコントローラの状態を認
識するようにして、いずれのコントローラが交信中かを
容易に認識しうるようにしたものである。
[Detailed Description of the Invention] [Table of Contents] Overview Industrial Application Fields Conventional Technology Problems to be Solved by the Invention Means for Solving the Problems (Fig. 1) Working Examples (al-Configuration of Examples) Explanation (Figures 2 and 3) (b)
Explanation of the operation of one embodiment (Figures 4 and 5) (C) Detailed explanation of internal processing (Figures 6 and 7) (diExplanation of other embodiments Effects of the invention [Summary] Multiple terminals In a system where multiple controllers are provided to control devices, and when one controller fails, the other controller performs bank-up control, in which a host unit connected to the multiple controllers issues a processing request to the multiple controllers. By recognizing the states of a plurality of controllers, it is possible to easily recognize which controller is communicating.

〔産業上の利用分野〕[Industrial application field]

本発明は、POSシステム等のデータの収集処理を行う
データ処理システムにおいて、複数の端末装置を制御す
るコントローラが複数台設けられ、一方のコントローラ
の障害時他方のコントローラがバンクアップ制御するデ
ータ処理システムにおけるコントローラの状態認識方式
に関する。
The present invention provides a data processing system that performs data collection processing such as a POS system, in which a plurality of controllers are provided to control a plurality of terminal devices, and when one controller fails, the other controller performs bank-up control. This invention relates to a method for recognizing the state of a controller in a computer.

多数の端末装置をコントローラによって接続し、コント
ローラと端末装置が交信を行って所望の処理を実行する
システムにおいては、コントローラがエラーを生じると
、システム全体がダウンしてしまうため、コントローラ
を複数台設けて、一方のコントローラのエラー発生時他
方のコントローラがバックアップして、他方のコントロ
ーラが処理を継続するシステムが用いられている。
In a system in which a large number of terminal devices are connected by a controller, and the controller and the terminal devices communicate with each other to execute desired processing, if an error occurs in the controller, the entire system will go down, so multiple controllers are installed. Therefore, a system is used in which when an error occurs in one controller, the other controller provides backup and the other controller continues processing.

このようなバックアップシステムにおいては、一方のコ
ントローラσエラーによって他方のコントローラに自動
的に切替わることから、コントローラの上位ユニットは
これを認識する必要がある。
In such a backup system, an error in one controller automatically switches to the other controller, so the upper unit of the controller needs to recognize this.

〔従来の技術〕[Conventional technology]

例えば、POSシステムにおいては、第8図の如く、キ
ーボード、ディスプレイ、プリンタ、バーコードスキャ
ナ等を有するPO31末130〜13nが複数台設けら
れ、各PoS端末130〜13nは下位回線JLを介し
複数(図では2ツ)のコントローラ100a、100b
に接続され、且つコントローラ100a、100bは上
位回線j2Hを介しビジネスコンピュータ、オフィスコ
ンピュータ等の管理用コンピュータ200に接続されて
システムが構成される。
For example, in a POS system, as shown in FIG. 8, a plurality of PO31 terminals 130 to 13n each having a keyboard, display, printer, barcode scanner, etc. are provided, and each PoS terminal 130 to 13n is connected to a plurality of ( Controllers 100a and 100b (two in the figure)
The controllers 100a and 100b are connected to a management computer 200 such as a business computer or an office computer via an upper line j2H to form a system.

このようなPOSシステムにおいては、コントローラ1
00a、100bに商品コードと価格との対照表である
プライスルックアップファイルPLUファイル(以下P
LUテーブルと称す)や集計ファイルが設けられており
、PO3端末130〜13nでは、商品取引に当って商
品コードをキーボード又はスキャナーより入力し、下り
回線βLを利用してコントローラ100a、100bに
送信し、PLUテーブルより価格を参照し、これを下り
回線JLより受け、合計金額の算出、レシートの発行を
行う。
In such a POS system, controller 1
00a and 100b are price lookup files PLU files (hereinafter referred to as PLU files) that are comparison tables between product codes and prices.
At the PO3 terminals 130 to 13n, the product code is entered from the keyboard or scanner during a product transaction, and transmitted to the controllers 100a and 100b using the downlink βL. , refers to the price from the PLU table, receives this from the downlink JL, calculates the total amount, and issues a receipt.

取引毎にPoS端末130〜13nとコントローラ10
0a、100bとの交信が行われ、これによってコント
ローラ100a、100bではレジ、即ちPoS端末毎
の売上げ集計や商品別売上げ集計等が可能となる。
PoS terminals 130 to 13n and controller 10 for each transaction
Communication with the controllers 100a and 100b is performed, and as a result, the controllers 100a and 100b can perform cash registers, that is, aggregation of sales for each PoS terminal, aggregation of sales for each product, and the like.

このように取引毎に交信が行われることから前述の如く
コントローラが複数台設けられ、一方のコントローラ(
例えば100a)がPO8端末と交信している間に、デ
ータエラー等の重大でないエラーが生じてもエラー処理
のため時間が係り他のPO8端末の要求に応じられない
ことから、係る状態を他方のコントローラ(例えば10
0 b)が監視し、係るエラーが生じた場合には第9図
に示す如(、一方のコントローラ100aをダウンとし
、他方のコントローラ100bがバックアップのためP
O3端末と交信処理を行うよ、うにしている。
Since communication is performed for each transaction in this way, multiple controllers are provided as described above, and one controller (
For example, even if a non-serious error such as a data error occurs while 100a) is communicating with a PO8 terminal, it will take time to process the error and it will not be able to respond to requests from other PO8 terminals. controller (e.g. 10
0b), and if such an error occurs, one controller 100a is brought down and the other controller 100b is turned down for backup as shown in FIG.
It is designed to perform communication processing with the O3 terminal.

一方、タウン状態の一方のコントローラ100aはエラ
ーの処理が終了したりして復旧すると、再び他方のコン
トローラ100bが監視状態となり、一方のコントロー
ラ100aがPoS端末と交信を行う。
On the other hand, when one controller 100a in the town state recovers after completing error processing, the other controller 100b returns to the monitoring state, and one controller 100a communicates with the PoS terminal.

このような自動バックアンプ機能を有するシステムにお
いては、上位の管理用コンピュータ200から定期集計
等のためコントローラ100a、100bに集計等の処
理を依頼(命令)する必要があり、このためにはいずれ
のコントローラが交像処理中かを認識しなければならな
い。
In a system having such an automatic backup amplifier function, it is necessary for the upper management computer 200 to request (instruct) the controllers 100a and 100b to perform processing such as periodic aggregation. The controller must recognize whether the image processing is in progress.

従来、係る上位への認識のため、各コントローラ100
a、100bは交信処理中からダウン中、監視中から交
信処理中等の状態切換に当って上位の管理用コンピュー
タ200に報告を行っていた。
Conventionally, in order to recognize the upper level, each controller 100
A and 100b report to the higher-level management computer 200 when switching states from communication processing to down, from monitoring to communication processing, and so on.

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

しかしながら、係る端末を待たせないバンクアップシス
テムにおいては、小さなエラーでもコントローラ100
a、100bの状態切換えを行うことから、比較的頻繁
に状態が切換えられ、これによっていちいち状態報告が
行われるため、上位のコンピュータ200もコントロー
ラ100a。
However, in a bank-up system that does not require terminals to wait, even a small error causes the controller 100 to
Since the states of the controllers 100a and 100b are switched relatively frequently, the state is reported one by one.

1oobもこのための処理が負担となるという問題が生
じていた。
A problem has arisen in that processing for 10ob becomes a burden.

即ち、コントローラは状態切換毎に上位回線βHを介し
上位コンピュータ200への報告処理を行わなければな
らず、一方、上位コンビエータ200は状態切換毎に処
理を中断して係る報告によって状態認識処理を行う必要
があり、処理効率の低下が生じるという問題があった。
That is, the controller must perform a reporting process to the host computer 200 via the host line βH every time the state changes, while the host combinator 200 interrupts the process every time the state changes and performs state recognition processing based on the report. However, there was a problem in that the processing efficiency was lowered.

本発明は、係るコントローラの状態認識を状態変化毎に
行わないようにして、コントローラ及び上位装置の処理
効率の低下を防止することのできるデータ処理システム
の状B認識方式を提供することを目的とする。
SUMMARY OF THE INVENTION An object of the present invention is to provide a state B recognition method for a data processing system that can prevent the processing efficiency of the controller and host device from decreasing by not recognizing the state of the controller every time the state changes. do.

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

第1図は本発明の原理説明図である。 FIG. 1 is a diagram explaining the principle of the present invention.

本発明では、前述の複数の端末に接続されたコントロー
ラが複数台膜けられ、且つコントローラが上位装置に接
続されたシステム構成のデータ処理システムにおいて、
上位側からの処理依頼をコントローラの状態にかかわら
ず複数のコントローラに発する。そしてコントローラは
係る処理依頼を受けると、監視中のコントローラは監視
中である旨の状態電文を発するようにし、一方交信中の
コントローラは係る処理依頼に応じた処理を行って処理
結果と上位装置に処理電文として通知するようにしてい
る。
In the present invention, in a data processing system having a system configuration in which a plurality of controllers connected to the plurality of terminals described above are installed, and the controller is connected to a host device,
A processing request from a higher level side is issued to multiple controllers regardless of the controller status. When the controller receives the processing request, the controller that is monitoring issues a status message indicating that it is monitoring, while the controller that is communicating performs the processing according to the processing request and sends the processing results and the higher-level device. The notification is sent as a processing message.

〔作用〕[Effect]

本発明は、上位ユニットがコントローラの状態認識を要
する場合は、上位ユニットがコントローラへ処理依頼を
行う時であり、常に状態を認識する必要はないという知
見に基いている。
The present invention is based on the knowledge that when a host unit needs to recognize the state of a controller, it is when the host unit issues a processing request to the controller, and that it is not necessary to always recognize the state.

即ち、本発明では、上位ユニットがコントローラ全てに
処理依頼を発することによって状態認識と処理の起動を
兼ねるようにしている。これによって監視中のコントロ
ーラは、処理依頼に応じ監視中である旨の状態電文を返
答してくるので、係る状態電文の返答してこないコント
ローラが交信処理中であると認識し、このコントローラ
からの処理結果を待ち、処理依頼に応じた処理電文を受
けるようにしている。
That is, in the present invention, the host unit issues processing requests to all controllers, thereby recognizing the state and starting the processing. As a result, the monitoring controller responds to the processing request with a status message indicating that it is monitoring, so it recognizes that the controller that does not respond with the status message is in the process of communicating, and the controller responds to the processing request. It waits for the processing result and receives a processing message according to the processing request.

このため、状態認識が容易で且つ処理効率が低下するこ
とを防止できる。
Therefore, the state can be easily recognized and processing efficiency can be prevented from decreasing.

〔実施例〕 fal−実施例の構成の説明 第2図は本発明の一実施例構成図であり、コントローラ
100a、i oobの内部構成を示したものである。
[Embodiment] fal-Explanation of the structure of the embodiment FIG. 2 is a block diagram of one embodiment of the present invention, showing the internal structure of the controller 100a and i_oob.

図中、第8図で示したものと同一のものは同一の記号で
示してあり、110はメインCPUであり、上位200
及びpos端末130=13nよ □り要求されたタス
クを処理実行するもの、150は下位回線サブCPUで
あり、PO8端末130〜13nに対する下位回線j2
Lに関する制御を行うもの、160は上位回線サブCP
Uであり、上位装置200に対する上位回線lHの制御
を行うもの、170は演算CPUであり、処理に必要な
演算処理を受は持つものである。尚、コントローラ10
0bも同一の構成を有している。
In the figure, the same components as those shown in FIG. 8 are indicated by the same symbols, and 110 is the main CPU, and
and pos terminal 130 = 13n □ 150 is a lower line sub-CPU that processes and executes the requested task, and lower line j2 for PO8 terminals 130 to 13n.
160 is an upper line sub-CP that performs control regarding L.
170 is an arithmetic CPU that performs arithmetic processing necessary for processing. Furthermore, the controller 10
0b also has the same configuration.

第3図は係るコントローラの機能ブロック図であり、メ
インCPUI 10の処理をブロック化したものである
FIG. 3 is a functional block diagram of such a controller, in which the processing of the main CPU 10 is divided into blocks.

図中、101は各端末毎の集計ファイル、102はPL
Uテーブルであってコードと商品名と価格と当該商品に
ついての売上げ集計とをもつもの、103は復旧処理部
であって障害の発生したPLUコントローラに対する復
旧処理を行うもの、104はポーリング監視部であって
他側コントローラが発するポーリング信号を監視し他側
(PLU)コントローラが健全状態か障害状態かをチェ
ックするものを表している。なお、図示を省略している
が、図示PLUコントローラI OOa内にも復旧処理
部103やポーリング監視部104等を備えている。
In the figure, 101 is a total file for each terminal, and 102 is a PL
103 is a recovery processing unit that performs recovery processing for a failed PLU controller; 104 is a polling monitoring unit; This indicates that the controller on the other side (PLU) monitors the polling signal issued by the controller on the other side to check whether the controller on the other side (PLU) is in a healthy state or in a faulty state. Although not shown, the illustrated PLU controller IOOa also includes a recovery processing section 103, a polling monitoring section 104, and the like.

第3図に示す復旧処理部103は、後述する如く 、 (i)他コントローラの障害に対応して、全端末装置に
対して回線をイニシャライズするためのコマンドを送出
するリンク処理機能105、(11)テーブル照会要求
処理などを引継ぐバックアップ処理機能106、 (iii )メインコントローラ(交信中コントローラ
)の復旧に対応するメインコントローラ側からの復旧電
文受信に対処して、上記引継いだ期間中に生じた集計デ
ータをメインコントローラへ通知するPLUファイルロ
ード処理機能107 、 (iv )メインコントローラからの再スタート電文に
対処して、親権放棄電文を送出する機能108、 を少なくとももつようにされている。
As will be described later, the recovery processing unit 103 shown in FIG. 3 includes: (i) a link processing function 105, (11 ) A backup processing function 106 that takes over table inquiry request processing, etc.; (iii) Aggregation that occurred during the above-mentioned handover period in response to the reception of a recovery message from the main controller side corresponding to the recovery of the main controller (controller in communication). It has at least a PLU file load processing function 107 for notifying data to the main controller, and (iv) a function 108 for sending a parental rights relinquishment message in response to a restart message from the main controller.

(bl−実施例の動作説明 第4図はコントロ;うの動作処理フロー図であり、第4
図(A)は下位回線に対するエラー処理動作フロー図、
第4図(B)は上位回線に対する処理動作フロー図であ
る。第5図は障害(エラー)検出の動作説明図である。
(bl-Explanation of operation of the embodiment) Figure 4 is a flowchart of the operation processing of the control;
Figure (A) is an error processing operation flow diagram for the lower line.
FIG. 4(B) is a flowchart of processing operations for the upper line. FIG. 5 is an explanatory diagram of the operation of failure (error) detection.

先づ、コントローラ100aをメインコントローラ、コ
ントローラ100bを予備(バックアップ)用コントロ
ーラとして以下説明する。
First, the controller 100a will be described as a main controller, and the controller 100b as a backup controller.

第4図(A)のフローチャートにおいて、■予備側のコ
ントローラ100bはメイン側のコントローラ100a
から一定の間隔で送られてくるコマンドが停止したこと
をポーリング監視部104が検出したことをもってメイ
ン側のコントローラ100aに障害が発生したものと判
断する(処理A)。これによって後述する予備モードフ
ラグをオフとする。
In the flowchart of FIG. 4(A), ■ the spare side controller 100b is replaced by the main side controller 100a.
The polling monitoring unit 104 determines that a failure has occurred in the main controller 100a when the polling monitoring unit 104 detects that the commands sent at regular intervals have stopped (processing A). This turns off the backup mode flag, which will be described later.

■これに伴って復旧処理部103におけるリンク処理機
能105が、全pos端末装置130ないし13nに対
して回線をイニシャライズするためのコマンドを送出す
る(処理B)。これに対応して、各端末装置においては
、当該時点の電文処理のイニシャライズを行い、再度そ
の処理をやりなおすこととなる。
(2) Along with this, the link processing function 105 in the recovery processing unit 103 sends a command to initialize the lines to all POS terminal devices 130 to 13n (processing B). Correspondingly, each terminal device initializes the message processing at that point in time and performs the processing again.

■バンクアンプ処理機能106は、以後各端末装置から
のPLUテーブル照会要求処理を実行し、PLUテーブ
ル102の内容を夫々の要求のあった端末装置に通知し
たり、売上げた商品についての集計処理などを、上記メ
イン側のコントローラ100aが実行していた通りに実
行する(処理C)。しかし、ファイル更新などの処理に
ついてはPLUテーブル102の更新に限って有効とし
他のファイルに対するアクセスについては操作ミスであ
るとしてリジェクトするようにする(処理C)。
■The bank amplifier processing function 106 thereafter executes PLU table inquiry request processing from each terminal device, notifies the contents of the PLU table 102 to each requesting terminal device, and performs aggregation processing for sold products, etc. is executed as executed by the main controller 100a (processing C). However, processing such as file updating is effective only for updating the PLU table 102, and accesses to other files are rejected as an operational error (processing C).

■このようにして予備側のコントローラ100bが動作
している間に、上記メイン側のコントローラ100aが
復旧し、復旧電文を発信した旨を、ポーリング監視部1
’04が検出したとき(処理D)、 ■コントローラ100bは、それまで上記引継ぎの間に
集計したデータを含むPLUテーブル102の内容を、
メイン側のコントローラ100aに伝送する(処理E)
、、これによって、メイン側のコントローラ100aに
おいては、自己内のPLUテーブル102の内容を更新
することとなる。
■While the standby controller 100b is operating in this way, the polling monitoring unit 100 informs the main controller 100a that the main controller 100a has recovered and sent a recovery message.
'04 is detected (processing D), ■The controller 100b updates the contents of the PLU table 102 including the data collected during the above handover.
Transmit to the main controller 100a (processing E)
As a result, the main controller 100a updates the contents of its own PLU table 102.

■次いでメインコントローラ1ooaが再スタート電文
を発するが否かを、ポーリング監視部104が監視する
(処理F)。
(2) Next, the polling monitoring unit 104 monitors whether the main controller 1ooa issues a restart message (processing F).

■そして再スタート電文を受信したコントローラ100
bは、予備モードフラグをオンとし、親権放棄電文を送
信し、コントローラ100bによる回線サービスを停止
し、コントローラ100bは再び回線監視のモードに戻
る(処理G)。
■And the controller 100 that received the restart message
b turns on the backup mode flag, sends a message relinquishing parental rights, stops the line service by the controller 100b, and the controller 100b returns to the line monitoring mode again (processing G).

本発明の場合、上記ボごリング監視部104は、メイン
側のコントローラ100aからのポーリング信号を監視
するようにしている。
In the case of the present invention, the bowling monitoring section 104 monitors the polling signal from the main controller 100a.

第5図はそのため原理を説明する説明図を示している。FIG. 5 therefore shows an explanatory diagram for explaining the principle.

第5図(A)はメイン側のコントローラtooaが健全
状態にある状態を示し、第5図(B)は障害状態にする
状態を示している。
FIG. 5(A) shows a state in which the main side controller tooa is in a healthy state, and FIG. 5(B) shows a state in which it is in a faulty state.

メイン側のコントローラ100aは、予備側のコントロ
ーラ100bに対しても、端末装置130〜13nなど
に対すると同様に、所定の間隙をもってポーリングを行
っている。第5図(A)、(B)図示の場合、予備側の
コントローラ100bに対するポーリング信号がrNs
P#OJとして示されている。第3図図示のポーリング
監視部104においては、ポーリング信号の末尾でオン
ラインフラグを「オフ」し、そして直後に「オンコする
ようにされる。一方、当該「オン」と同時に監視タイマ
を起動させている。従って、第5図(A)図示の如く所
定の間隙でポーリング信号が検出されている限り、コン
トローラ100aは健全であると判定できる。しかし、
第5図(B)図示の如く例えば5秒程度の間ポーリング
信号が欠如すると、コントローラ10Qaが障害と判定
される。
The main controller 100a polls the backup controller 100b at predetermined intervals in the same way as it polls the terminal devices 130 to 13n. In the case shown in FIGS. 5A and 5B, the polling signal to the standby controller 100b is rNs.
Denoted as P#OJ. In the polling monitoring unit 104 shown in FIG. 3, the online flag is turned off at the end of the polling signal, and then turned on immediately after.Meanwhile, a monitoring timer is started at the same time as the online flag is turned on. There is. Therefore, as long as the polling signal is detected at a predetermined interval as shown in FIG. 5(A), it can be determined that the controller 100a is healthy. but,
As shown in FIG. 5(B), if the polling signal is absent for about 5 seconds, for example, it is determined that the controller 10Qa is at fault.

なお、ポーリング監視部104は、上記の他に、第4図
(A)に示す所の復旧電文の受信機能や再スタート電文
受信機能をもっているが、通常の受信機能と同じである
の−で説明を省略する。
In addition to the above, the polling monitoring unit 104 has a recovery message reception function and a restart message reception function as shown in FIG. omitted.

次に、第4図(B)によって上1位回線からの処理につ
いて説明する。
Next, the processing from the top ranked line will be explained with reference to FIG. 4(B).

■上位200から処理依頼の有無を上位回線サブCPU
160が判定し、処理依頼があると、メイ7CPU11
0は、下位回線サブCPUI 50内予備モードフラグ
を参照する。
■Upper line sub CPU checks whether or not there is a processing request from the top 200.
160 makes a decision, and if there is a processing request, May 7 CPU 11
0 refers to the reserve mode flag in the lower line sub CPUI 50.

■予備モードフラグがオンであれば、メインコントロー
ラ100aが動作中で自身の予備用コントローラ1oo
bは、監視中であるから、予備状態を示す電文を上位回
線サブCPUI 60を介し上位回線/Hより上位20
0へ送信し、ステップ■に戻る。
■If the backup mode flag is on, the main controller 100a is operating and its own backup controller 1oo
Since b is under monitoring, it sends a message indicating the standby state to the upper line 20 from the upper line /H via the upper line sub CPU 60.
0 and return to step ■.

■一方、予備モードフラグがオフであれば、メインコン
トローラ100aは障害(ダウン)であり、予備用コン
トローラ100bが回線サービス中であるから、依錬さ
れた処理を実行する0例えば、依頬処理が集計であれば
、メインCPUI 10は演算CPU170に命じて、
PLUテーブル102内の集計データを集計演算させる
On the other hand, if the backup mode flag is off, the main controller 100a is in trouble (down) and the backup controller 100b is in line service, so the refined process is executed. For aggregation, the main CPU 10 instructs the calculation CPU 170 to
The total data in the PLU table 102 is subjected to a total calculation.

■そして、集計結果を上位装置200へ上位回線サブC
PU160を介し、更に上位回、%1ljl!Hを介し
送信して、ステップ■に戻る。
■Then, the aggregated results are sent to the upper line sub-C to the upper unit 200.
Through PU160, even higher rank, %1ljl! Send via H and return to step ■.

同様に、メインコントローラ100aにおいても、上位
200からの処理依頼に応じて、ダウン中でなければ(
即ち予備モードフラグがオンでないと)、同様に処理依
頼に対応する集計処理(この場合には、集計ファイル1
01内の集計処理も指示によって可能)を実行し、ステ
ップ■、■と同様上位200へ送信し、一方ダウン中な
ら(予備モードフラグがオンなら)、予備(この場合は
ダウン中)電文を上位200ヘステツプ■と同様送信す
る。
Similarly, in the main controller 100a, in response to a processing request from the upper level 200, if the main controller 100a is not down (
In other words, if the backup mode flag is not on), the aggregation process corresponding to the processing request (in this case, the aggregation file 1
01 (accounting processing within 01 is also possible according to instructions) and sends it to the top 200 in the same way as steps Send in the same way as Step 200.

このようにして上位200からの処理要求(依頼)に応
じてコントローラ100a、100bの状態が認識でき
、且つ処理依頼に応じた処理も実行される。
In this way, the states of the controllers 100a and 100b can be recognized in response to a processing request (request) from the host 200, and processing in response to the processing request is also executed.

このため、上位側200、コントローラ100a、10
0bとも状態切換に応じた状B報告、認識をしな゛くて
も、上位側200の必要な時に状態認識できることにな
る。
For this reason, the host side 200, controllers 100a, 10
Even if 0b and 0b do not report and recognize status B in response to status switching, the host side 200 can recognize the status when necessary.

(C1内部処理の詳細説明 第6図は第2図及び第3図に示したコントローラにおけ
る各CPUの機能ブロック図、第7図は第6図における
ソフトウェア構成図である。
(Detailed explanation of C1 internal processing FIG. 6 is a functional block diagram of each CPU in the controller shown in FIGS. 2 and 3, and FIG. 7 is a software configuration diagram in FIG. 6.

第6図において下位回線サブCPU150は、メインC
PUI 10に対する上り、下りDMA(ダイレクトメ
モリアクセス)機能部151.152、メインCPUI
 10へのコマンド、ステータスインターフェイス部1
53、タイマ一部154及び電文制御部155とで構成
されており、PO8端末130〜13nと下り回線/L
を介し電文制御部155が電文のやりとりを行い、メイ
ンCPUI 10とDMA部151.152、インター
フェイス部153よりコマンド、ステータス、データの
やりとりを行うものである。
In FIG. 6, the lower line sub CPU 150 is the main C
Uplink and downlink DMA (direct memory access) functional units 151 and 152 for PUI 10, main CPUI
Command to 10, status interface section 1
53, a timer part 154, and a message control part 155, and it is composed of a timer part 154 and a message control part 155, and is
The message control section 155 exchanges messages through the main CPU 10, the DMA sections 151 and 152, and the interface section 153 exchange commands, status, and data.

メインCPUI 10は、下位回線サブCPUl50に
対する上り、下りDMA部121.123及びインター
フェイス部123と、上位回線サブCPU160に対す
る下り、上りDMA部124.125及びインターフェ
イス部126と、下位回線及び上位回線に対する各制御
タスク111.112とを有する。
The main CPU 10 includes uplink/downlink DMA units 121, 123 and interface unit 123 for the lower line sub CPU 150, downlink/uplink DMA units 124, 125 and interface unit 126 for the upper line sub CPU 160, and each unit for the lower line and upper line. control tasks 111 and 112.

又、メインCPUI 10は、第7図(A)、(B)に
示す如く、下位及び上位回線からの受信電文分析タスク
113.114、モジュ)し分岐タスク115、フロッ
ピィ処理タスク116及びモジュール(0〜n)117
とを含み、これら各タスクは、図示しないモニタ部によ
り、予め定めた順序(本実施例では各部に付した番号1
11〜116の順)に従って、実行権が与えられるよう
構成される。また、各タスク間の処理データ(送受信電
文も含む)の受は渡しは、それぞれの間に設けられるキ
ュー118〜120.127〜129を介して行われる
In addition, as shown in FIGS. 7(A) and 7(B), the main CPU 10 performs received message analysis tasks 113 and 114 from the lower and upper lines, a branching task 115, a floppy processing task 116, and a module (0). ~n) 117
These tasks are performed in a predetermined order (in this example, the numbers 1 and 2 assigned to each part) are performed by a monitor unit (not shown).
11 to 116), the execution right is granted. Further, processing data (including transmitted and received messages) between each task is received and passed through queues 118 to 120 and 127 to 129 provided between each task.

更に、メインCPUI i oは、第7図(B)の如く
、演算CPUI 70に対する処理依頼送出部130、
動作情報受付部131、DMA部132.133を備え
る。
Furthermore, as shown in FIG. 7(B), the main CPU i o sends a processing request to the calculation CPU 70,
It includes an operation information reception section 131 and DMA sections 132 and 133.

一方、上位回線サブCPU160は、メインCPUll
0に対する上り、下りDMA部164.165及びイン
ターフェイス部1.66、タイマ一部167及び電文制
御部168を有し、上位200と上位回線JHを介し電
文制御部168が電文のやりとりを行い、メインCPU
ll0とDMA部164.165、インターフェイス部
166よりコマンド、ステータス、データのやりとりを
行うものである。
On the other hand, the upper line sub CPU 160 is the main CPU
It has uplink and downlink DMA sections 164, 165, interface section 1.66, timer section 167, and message control section 168 for 0, and the message control section 168 exchanges messages with the upper layer 200 via the upper line JH. CPU
Commands, status, and data are exchanged between ll0, DMA sections 164 and 165, and interface section 166.

演算CPUは、第7図(B)に示す如く、メインCPt
J110に対する処理依頼受付部179、動作情報送出
部171及びDMA部172.173と、依頼タスク分
析・分岐部174及びタスク(0〜n)175を備えて
いる。
As shown in FIG. 7(B), the calculation CPU is the main CPU
It includes a processing request receiving section 179 for J110, an operation information sending section 171, a DMA section 172, 173, a requested task analysis/branching section 174, and tasks (0 to n) 175.

第6図に示すコントローラを、上述した予備側コントロ
ーラ100bとすると、その動作は以下のようになる。
If the controller shown in FIG. 6 is the above-mentioned standby controller 100b, its operation will be as follows.

まずコントローラの電源投入により、メインCPUll
0は自己が予備側のコントローラとなるべきか否かを判
断する。これは、下位回wAjltL上において、既に
電文等のやりとりが行われているか否かをチェックする
ことによって行われている。
First, by turning on the power to the controller, the main CPU
0 determines whether or not it should become the backup controller. This is done by checking whether or not a telegram or the like has already been exchanged on the lower level wAjltL.

そして、回線NL上で電文のやりとりがあれば、メイン
CPUILOの下位回線制御タスク111は、サブCP
U150の電文制御部155に、予備モードを示すフラ
グ(図示せず)をセントする。
Then, if a message is exchanged on the line NL, the lower line control task 111 of the main CPUILO
A flag (not shown) indicating the backup mode is sent to the message control unit 155 of U150.

この予備モード指示により、電文制御部155は、タイ
マ一部154をセットして、回線iL上の電文監視を行
う。即ち、回線7!L上にて電文が受信される毎にタイ
マ一部154をリセットする動作を行う。
In response to this backup mode instruction, the message control unit 155 sets the timer section 154 and monitors the message on the line iL. That is, line 7! Every time a message is received on L, the timer part 154 is reset.

上述した例では、メイン側コントローラ100aから発
せられる予備個宛へのポーリング間隔を監視するもので
ある。一方、本例においては、回線AL上に送出される
コントローラ側及びPO3端末側からの電文の間隔を監
視するものである。
In the example described above, the polling interval sent from the main controller 100a to the spare unit is monitored. On the other hand, in this example, the interval between messages sent on the line AL from the controller side and the PO3 terminal side is monitored.

従って、回線7!L上から所定時間(例えば4秒)以内
に何の電文も受信されない場合、タイマ一部154から
のタイムアツプ信号が、ステータスインターフェイス1
53.123を介して、メインCPUI 10側へ送出
されることになる。
Therefore, line 7! If no message is received from L within a predetermined time (for example, 4 seconds), a time-up signal from the timer part 154 is sent to the status interface 1.
It will be sent to the main CPU 10 side via 53.123.

尚、電文制御部155にて受信された電文は、DMA制
御部151.121を介して、メインCPUll0側に
送出される。そしてメインCPU110側の電文分析タ
スク113を経て、その電文に対する通常の処理が行わ
れる。この処理は、分岐タスク115を介して、各処理
単位(例えばPLU処理、集計処理等)にまとめられた
モジュール1.17によって実行されることになる。
Note that the message received by the message control section 155 is sent to the main CPU110 side via the DMA control section 151.121. Then, through the message analysis task 113 on the main CPU 110 side, normal processing for the message is performed. This processing is executed by modules 1.17 organized into processing units (for example, PLU processing, aggregation processing, etc.) via branch task 115.

そして、処理された結果等の応答が必要な場合には、モ
ジュール117によって応答電文が組立てられ、下位回
線制御タスク111、及びDMA制御部122.152
を介して、サブCPUI 50側に送出される。サブC
PU150の電文制御部155は、メインCPUll0
側から送られる応答電文(送信電文)を受けると、上述
した予備モードフラグを参照する。そして予備モードフ
ラグがオン(有効)となっていれば、受信した応答電文
を廃棄する。
If a response such as a processed result is required, a response message is assembled by the module 117 and sent to the lower line control task 111 and the DMA control unit 122.152.
It is sent to the sub CPUI 50 side via. Sub C
The message control unit 155 of the PU150 is connected to the main CPUll0
When receiving a response message (transmission message) sent from the side, the above-mentioned backup mode flag is referred to. If the backup mode flag is on (valid), the received response message is discarded.

即ち、予備側コントローラ100bにおいても、メイン
側コントローラ100aと同様に、PLU処理、集計処
理、ファイル更新処理を行う。そして送受信電文の回線
199への送出のみが禁止されるよう構成されるもので
ある。
That is, the backup controller 100b also performs PLU processing, aggregation processing, and file update processing in the same way as the main controller 100a. The configuration is such that only transmission of transmitted and received messages to line 199 is prohibited.

従って、メイン側コントローラ100aの持つPLOフ
ァイル102と同一内容のファイル(図示せず)を予備
側でも常時持つことが可能となる。
Therefore, it is possible to always have a file (not shown) on the standby side that has the same content as the PLO file 102 held by the main controller 100a.

一方、上位200から上位回線NHを介し電文制御部1
68にて受信された電文は、DMA制御部165.12
5を介してメインCPUI 10側に送出され、メイン
CPUll0の上位回線制御タスク112、電文分析タ
スク114を経て電文処理が行われる。この処理は、分
岐タスク115を介してモジュール117によって実行
される。
On the other hand, the message control unit 1 is sent from the upper level 200 via the upper line NH.
The message received at 68 is sent to the DMA control unit 165.12.
5 to the main CPU 10 side, and is processed through the upper line control task 112 and message analysis task 114 of the main CPU 110. This processing is performed by module 117 via branch task 115.

上述した如く受信電文が前述の処理依頼であると、モジ
ュール117の実行によって下位回線CPU150の電
文制御部155の予備モードフラグを参照し、予備モー
ドフラグがオンとなっていると、前述の如く予備状態電
文を組立て、上位回線制御タスク112及びDMA制御
部124.164を介しサブCPUI 60へ送出され
、更に電文制御部168よシ上位回線−NHを介し上位
200へ伝えられる。
As described above, if the received message is the above-mentioned processing request, the module 117 executes to refer to the backup mode flag of the message control unit 155 of the lower line CPU 150, and if the backup mode flag is on, the backup message is sent as described above. A status message is assembled and sent to the sub CPU 60 via the upper line control task 112 and the DMA control unit 124.164, and further transmitted from the message control unit 168 to the upper level 200 via the upper line -NH.

逆に予備モードフラグがオフとなっていると、依頼処理
を実行する。例えば集計処理であれば、’iJ$cPU
 170C!71m (B) (D’lrJ< 7フイ
/L=内の集計を依頼し、集計すべきデータを転送し、
演算処理させる。この集計結果をキュー127を介し受
け、同様に処理結果を含む処−理電文を組立て、上位回
線制御タスク112及びDMA制御部124.164を
介しサブCPU160へ送出され、更に電文制御部16
8より上位回線IHを介し上位200へ伝えられる。
Conversely, if the backup mode flag is off, the request process is executed. For example, for aggregation processing, 'iJ$cPU
170C! 71m (B) Request aggregation within D'lrJ< 7 ft/L=, transfer the data to be aggregated,
Perform calculation processing. This tally result is received via the queue 127, a processing message including the processing results is assembled in the same way, and sent to the sub CPU 160 via the upper line control task 112 and the DMA control section 124, 164, and then sent to the message control section 16.
8 and is transmitted to the upper level 200 via the higher level line IH.

(dl他の実施例の説明 上述の実施例においては、POSシステムについて説明
したが、他のデータ処理システムにも適用できる。
(dl Description of Other Embodiments In the above embodiments, a POS system has been described, but it can also be applied to other data processing systems.

同様に、障害の監視を自己宛のポーリングの間隔又は電
文の間隔によって検出しているが、他の方法であっても
よい。
Similarly, failure monitoring is detected by the interval of polling or the interval of messages addressed to the device itself, but other methods may be used.

以上本発明を実施例により説明したが、本発明は本発明
の主旨に従い種々の変形が可能であり、本発明からこれ
らを排除するものではない。
Although the present invention has been described above using examples, the present invention can be modified in various ways according to the gist of the present invention, and these are not excluded from the present invention.

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

以上説明した様に、本発明によれば、上位はコントロー
ラの状態把握の必要な時に、処理依頼を発し、これによ
ってコントローラの状態認識ができるから、上位の状態
認識に要する処理を少なくし、処理効率を向上せしめる
という効果を奏する他に状態認識の必要な時のみこれを
認識できるという効果も奏する。
As explained above, according to the present invention, when the higher level needs to understand the state of the controller, it issues a processing request and can thereby recognize the state of the controller, reducing the processing required for the higher level to recognize the state. In addition to the effect of improving efficiency, it also has the effect of recognizing the state only when it is necessary.

又、コントローラも状態変化毎にいちいち状態報告をす
る必要がないため、そのために要する負荷が小となり、
処理効率を向上させる。
In addition, since the controller does not need to report the status every time the status changes, the load required for this is small.
Improve processing efficiency.

更に、そのための手段も筒易であり容易に実現できると
いう実用上優れた効果も奏する。
Furthermore, the means for this purpose is simple and can be easily realized, which is an excellent practical effect.

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

第1図は本発明の原理説明図、 第2図は本発明の一実施例構成図、 第3図は本発明の一実施例機能ブロック図、第4図は本
発明の一実施例動作処理フロー図、第5図は本発明の一
実施例障害検出動作説明図、第6図は第2図構成のコン
トローラの内部構成図、 第7図(A)、(B)は第2図構成のソフトウェア構成
図、 第8図はシステム構成図、 第9図は従来技術の説明図である。 図中、100a、100b・−コントローラ、130〜
13 n−PO3端末、 200−・−上位装置。
Fig. 1 is a diagram explaining the principle of the present invention, Fig. 2 is a configuration diagram of an embodiment of the invention, Fig. 3 is a functional block diagram of an embodiment of the invention, and Fig. 4 is an operational process of an embodiment of the invention. Flowchart, FIG. 5 is an explanatory diagram of failure detection operation according to an embodiment of the present invention, FIG. 6 is an internal configuration diagram of the controller configured in FIG. 2, and FIGS. FIG. 8 is a software configuration diagram, FIG. 8 is a system configuration diagram, and FIG. 9 is an explanatory diagram of the prior art. In the figure, 100a, 100b - controller, 130 -
13 n-PO3 terminal, 200-.- Upper device.

Claims (1)

【特許請求の範囲】 複数の端末装置に接続され、該端末装置と交信を行うた
めの複数のコントローラと、 該複数のコントローラと接続された上位装置とを有し、 該複数のコントローラの一方が該端末装置と交信中に、
他方のコントローラが該一方のコントローラの動作を監
視し、 該一方のコントローラが障害となると該他方ののコント
ローラが該一方のコントローラに代って該端末装置と交
信するデータ処理システムであって、 該上位装置が該コントローラへ処理依頼を発するに際し
、 該複数のコントローラに該処理依頼を発し、該監視を行
っているコントローラは該上位装置に該処理要求に応じ
該監視中である旨を通知し、該上位装置に複数のコント
ローラの状態認識を行わしめることを特徴とするデータ
処理システムの状態認識方式。
[Scope of Claims] It has a plurality of controllers connected to a plurality of terminal devices and for communicating with the terminal devices, and a host device connected to the plurality of controllers, one of the plurality of controllers While communicating with the terminal device,
The other controller monitors the operation of the one controller, and when the one controller fails, the other controller communicates with the terminal device on behalf of the one controller, the data processing system comprising: When the higher-level device issues a processing request to the controller, the controller issues the processing request to the plurality of controllers, and the controller performing the monitoring notifies the higher-level device that it is monitoring in response to the processing request, A state recognition method for a data processing system, characterized in that the host device recognizes the states of a plurality of controllers.
JP60141309A 1985-06-27 1985-06-27 State recognizing system for data processing system Granted JPS622333A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60141309A JPS622333A (en) 1985-06-27 1985-06-27 State recognizing system for data processing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60141309A JPS622333A (en) 1985-06-27 1985-06-27 State recognizing system for data processing system

Publications (2)

Publication Number Publication Date
JPS622333A true JPS622333A (en) 1987-01-08
JPH049345B2 JPH049345B2 (en) 1992-02-19

Family

ID=15288895

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60141309A Granted JPS622333A (en) 1985-06-27 1985-06-27 State recognizing system for data processing system

Country Status (1)

Country Link
JP (1) JPS622333A (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3422953B2 (en) * 1999-08-27 2003-07-07 株式会社フジシール Transparent plastic sheet with folding ruled line and ruled line blade for transparent plastic sheet

Also Published As

Publication number Publication date
JPH049345B2 (en) 1992-02-19

Similar Documents

Publication Publication Date Title
CN100470494C (en) Cluster availability management method and system
CN100498723C (en) Method for preventing bus fault, communication equipment and bus monitoring device
CN109995597B (en) Network equipment fault processing method and device
JPS622333A (en) State recognizing system for data processing system
JP4487756B2 (en) Computer system and system monitoring program
JPH06236299A (en) Method and device for monitoring system
JPH0434640A (en) Calculation server host selecting system
JP2000148525A (en) Method for reducing load of active system in service processor duplex system
JPH05224964A (en) Bus abnormality information system
JPH03131937A (en) Method for distributing load
US20070050666A1 (en) Computer Network System and Related Method for Monitoring a Server
JP2004013723A (en) Device and method for fault recovery of information processing system adopted cluster configuration using shared memory
JPS61156469A (en) File update processing system
JPH04153810A (en) Abnormality processing system
JPS61156437A (en) System obstacle restoring control system
JP4432975B2 (en) Packet communication device, packet communication method, and packet communication program
US6480466B1 (en) Terminal switching apparatus and method
JPH07321799A (en) Input output equipment management method
Kondo et al. Application of autonomous decentralized system to the steel production computer control
EP2890055B1 (en) Method and apparatus for processing cluster in cluster system, and system
JPS61156436A (en) System down back-up system
JP2002175223A (en) System for operating terminal processor, and program controlling the same
JP2725385B2 (en) Data transfer method of information processing system
JP2993831B2 (en) Terminal control device in point-of-sale information management system
JPH04281535A (en) Stand-by redundant type system