JPH049345B2 - - Google Patents

Info

Publication number
JPH049345B2
JPH049345B2 JP60141309A JP14130985A JPH049345B2 JP H049345 B2 JPH049345 B2 JP H049345B2 JP 60141309 A JP60141309 A JP 60141309A JP 14130985 A JP14130985 A JP 14130985A JP H049345 B2 JPH049345 B2 JP H049345B2
Authority
JP
Japan
Prior art keywords
controller
processing
message
controllers
state
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 - Lifetime
Application number
JP60141309A
Other languages
Japanese (ja)
Other versions
JPS622333A (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 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)

Description

【発明の詳細な説明】 〔目次〕 概 要 産業上の利用分野 従来の技術 発明が解決しようとする問題点 問題点を解決するための手段(第1図) 作 用 実施例 (a) 一実施例の構成の説明(第2図、第3図) (b) 一実施例の動作の説明(第4図、第5図) (c) 内部処理の詳細説明(第6図、第7図) (d) 他の実施例の説明 発明の効果 〔概要〕 複数の端末装置を制御するコントローラが複数
台設けられ、一方のコントローラの障害時に他方
のコントローラがバツクアツプ制御するシステム
において、複数のコントローラに接続された上位
ユニツトが処理依頼を複数のコントローラに発し
て、複数のコントローラの状態を認識するように
して、いずれのコントローラが交信中かを容易に
認識しうるようにしたものである。
[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 Example (a) One Implementation Explanation of the configuration of an example (Figures 2 and 3) (b) Explanation of the operation of an embodiment (Figures 4 and 5) (c) Detailed explanation of internal processing (Figures 6 and 7) (d) Description of other embodiments Effects of the invention [Summary] In a 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 backup control. In this system, a higher-level unit issued a processing request to a plurality of controllers and recognizes the status of the plurality of controllers, so that it is possible to easily recognize which controller is communicating with the controller.

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

本発明は、POSシステム等のデータの収集処
理を行うデータ処理システムにおいて、複数の端
末装置を制御するコントローラが複数台設けら
れ、一方のコントローラの障害時他方のコントロ
ーラがバツクアツプ制御するデータ処理システム
におけるコントローラの状態認識方式に関する。
The present invention relates to 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 backup control. Concerning a controller state recognition method.

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

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

〔従来の技術〕[Conventional technology]

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

このようなPOSシステムにおいては、コント
ローラ100a,100bに商品コードと価格と
の対照表であるプライスルツクアツプフアイル
PLUフアイル(以下PLUテーブルと称す)や集
計フアイルが設けられており、POS端末130
〜13nでは、商品取引に当つて商品コードをキ
ーボード又はスキヤナーより入力し、下り回線lL
を利用してコントローラ100a,100bに送
信し、PLUテーブルより価格を参照し、これを
下り回線lLより受け、合計金額の算出、レシート
の発行を行う。
In such a POS system, the controllers 100a and 100b have a price search file that is a comparison table of product codes and prices.
A PLU file (hereinafter referred to as PLU table) and aggregation file are provided, and the POS terminal 130
~13n, when making a product transaction, enter the product code using the keyboard or scanner, and then
The price is sent to the controllers 100a and 100b using , the price is referenced from the PLU table, this is received from the downlink LL, the total price is calculated, and a receipt is issued.

取引毎にPOS端末130〜13nとコントロ
ーラ100a,100bとの交信が行われ、これ
によつてコントローラ100a,100bではレ
ジ、即ちPOS端末毎の売上げ集計や商品別売上
げ集計等が可能となる。
Communication is carried out between the POS terminals 130 to 13n and the controllers 100a and 100b for each transaction, so that the controllers 100a and 100b can register, that is, tally sales for each POS terminal, tally sales for each product, and the like.

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

一方、ダウン状態の一方のコントローラ100
aはエラーの処理が終了したりして復旧すると、
再び他方のコントローラ100bが監視状態とな
り、一方のコントローラ100aがPOS端末と
交信を行う。
On the other hand, one controller 100 is in a down state.
When a is restored after error processing is completed,
The other controller 100b enters the monitoring state again, and the one controller 100a communicates with the POS terminal.

このような自動バツクアツプ機能を有するシス
テムにおいては、上位の管理用コンピユータ20
0から定期集計等のためコントローラ100a,
100bに集計等の処理を依頼(命令)する必要
があり、このためにはいずれのコントローラが交
信処理中かを認識しなければならない。
In a system with such an automatic backup function, the upper management computer 20
Controller 100a for periodic aggregation etc. from 0,
It is necessary to request (instruct) the controller 100b to perform processing such as aggregation, and for this purpose, it is necessary to recognize which controller is in the process of communicating.

従来、係る上位への認識のため、各コントロー
ラ100a,100bは交信処理中からダウン
中、監視中から交信処理中等の状態切換に当つて
上位の管理用コンピユータ200に報告を行つて
いた。
Conventionally, in order to be recognized by the higher level, each controller 100a, 100b has reported to the higher level management computer 200 when the state changes from communication processing to down, from monitoring to communication processing, and the like.

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

しかしながら、係る端末を待たせないバツクア
ツプシステムにおいては、小さなエラーでもコン
トローラ100a,100bの状態切換えを行う
ことから、比較的頻繁に状態が切換えられ、これ
によつていちいち状態報告が行われるため、上位
のコンピユータ200もコントローラ100a,
100bもこのための処理が負担となるという問
題が生じていた。
However, in a backup system that does not keep the terminals waiting, the states of the controllers 100a and 100b are changed even if there is a small error, so the states are changed relatively frequently, and the status is reported one by one. The host computer 200 also has a controller 100a,
100b also has a problem in that the processing for this becomes a burden.

即ち、コントローラは状態切換毎に上位回線
lHを介し上位コンピユータ200への報告処理
を行わなければならず、一方、上位コンピユータ
200は状態切換毎に処理を中断して係る報告に
よつて状態認識処理を行う必要があり、処理効率
の低下が生じるという問題があつた。
In other words, the controller connects the upper line every time the state changes.
It is necessary to perform reporting processing to the host computer 200 via the lH, and on the other hand, the host computer 200 must interrupt processing every time the state changes and perform state recognition processing based on the report, which reduces processing efficiency. There was a problem that this occurred.

本発明は、係るコントローラの状態認識を状態
変化毎に行わないようにして、コントローラ及び
上位装置の処理効率の低下を防止することのでき
るデータ処理システムの状態認識方式を提供する
ことを目的とする。
An object of the present invention is to provide a state 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. .

〔問題点を解決するための手段〕[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 provided, and the controller is connected to a higher-level device, processing requests from the higher-level side can be processed regardless of the state of the controller. Issue to multiple controllers. 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 host device. The notification is sent as a processing message.

〔作用〕[Effect]

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

即ち、本発明では、上位ユニツトがコントロー
ラ全てに処理依頼を発することによつて状態認識
と処理の起動を兼ねるようにしている。これによ
つて監視中のコントローラは、処理依頼に応じ監
視中である旨の状態電文を返答してくるので、係
る状態電文の返答してこないコントローラが交信
処理中であると認識し、このコントローラからの
処理結果を待ち、処理依頼に応じた処理電文を受
けるようにしている。
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 controller that is monitoring will respond with a status message indicating that it is being monitored in response to the processing request, so it will recognize that the controller that does not respond with the status message is in the process of communicating, and this controller will The system waits for the processing results from and receives the processing message according to the processing request.

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

〔実施例〕〔Example〕

(a) 一実施例の構成の説明 第2図は本発明の一実施例構成図であり、コ
ントローラ100a,100bの内部構成を示
したものである。
(a) Description of the configuration of an embodiment FIG. 2 is a configuration diagram of an embodiment of the present invention, showing the internal configuration of the controllers 100a and 100b.

図中、第8図で示したものと同一のものは同
一の記号で示してあり、110はメインCPU
であり、上位200及びPOS端末130〜1
3nより要求されたタスクを処理実行するも
の、150は下位回線サブCPUであり、POS
端末130〜13nに対する下位回線lLに関す
る制御を行うもの、160は上位回線サブ
CPUであり、上位装置200に対する上位回
線lHの制御を行うもの、170は演算CPUで
あり、処理に必要な演算処理を受け持つもので
ある。尚、コントローラ100bも同一の構成
を有している。
In the figure, the same parts as shown in Fig. 8 are shown with the same symbols, and 110 is the main CPU.
and the top 200 and POS terminals 130 to 1
150 is a lower line sub-CPU that processes and executes the tasks requested by 3n.
Controls the lower line LL for the terminals 130 to 13n, 160 is the upper line sub
The CPU 170 is a CPU that controls the upper line IH for the host device 200, and the arithmetic CPU 170 is responsible for the arithmetic processing necessary for processing. Note that the controller 100b also has the same configuration.

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

図中、101は各端末毎の集計フアイル、1
02はPLUテーブルであつてコードと商品名
と価格と当該商品についての売上げ集計とをも
つもの、103は復旧処理部であつて障害の発
生したPLUコントローラに対する復旧処理を
行うもの、104はポーリング監視部であつて
他側コントローラが発するポーリング信号を監
視し他側(PLU)コントローラが健全状態か
障害状態かをチエツクするものを表している。
なお、図示を省略しているが、図示PLUコン
トローラ100a内にも復旧処理部103やボ
ーリング監視部104等を備えている。
In the figure, 101 is a summary file for each terminal, 1
02 is a PLU table that has a code, product name, price, and sales total for the product; 103 is a recovery processing unit that performs recovery processing for a failed PLU controller; 104 is a polling monitor It is a part that monitors the polling signal issued by the other side controller and checks whether the other side (PLU) controller is in a healthy state or a failure state.
Although not shown, the illustrated PLU controller 100a also includes a recovery processing section 103, a boring monitoring section 104, and the like.

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

(b) 一実施例の動作説明 第4図はコントローラの動作処理フロー図で
あり、第4図Aは下位回線に対するエラー処理
動作フロー図、第4図Bは上位回線に対する処
理動作フロー図である。第5図は障害(エラ
ー)検出の動作説明図である。
(b) Description of operation of one embodiment FIG. 4 is a flowchart of the operation processing of the controller, FIG. 4A is a flowchart of error processing operation for the lower line, and FIG. 4B is a flowchart of the processing operation 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. 4A, the standby controller 100b sends commands to the main controller 100a when the boring monitoring unit 104 detects that the commands sent at regular intervals from the main controller 100a have stopped. It is determined that a failure has occurred in 100a (processing A). This turns off the backup mode flag, which will be described later.

これに伴つて復旧処理部103におけるリ
ンク処理機能105が、全POS端末装置1
30ないし13nに対して回線をイニシヤラ
イズするためのコマンドを送出する(処理
B)。これに対応して、各端末装置において
は、当該時点の電文処理のイニシヤライズを
行い、再度その処理をやりなおすこととな
る。
Along with this, the link processing function 105 in the recovery processing unit 103
A command for initializing the line is sent to 30 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 backup processing function 106 thereafter executes PLU table inquiry request processing from each terminal device, notifies the contents of the PLU table 102 to each terminal device that made the request, and performs aggregation processing for sold products. Execute the same as 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).

このようにして予備側のコントローラ10
0bが動作している間に、上記メイン側のコ
ントローラ100aが復旧し、復旧電文を発
信した旨を、ボーリング監視部104が検出
したとき(処理D)、 コントローラ100bは、それまで上記引
継ぎの間に集計したデータを含むPLUテーブ
ル102の内容を、メイン側のコントローラ1
00aに伝送する(処理E)。これによつて、
メイン側のコントローラ100aにおいては、
自己内のPLUテーブル102の内容を更新す
ることとなる。
In this way, the spare controller 10
When the boring monitoring unit 104 detects that the main side controller 100a has recovered and sent a recovery message while the controller 0b is operating (processing D), the controller 100b will continue to operate during the handover until then. The contents of the PLU table 102 containing the data aggregated in the main controller 1
00a (processing E). By this,
In the main controller 100a,
The contents of the PLU table 102 within itself will be updated.

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

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

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

第5図はそのため原理を説明する説明図を示
している。第5図Aはメイン側のコントローラ
100aが健全状態にある状態を示し、第5図
Bは障害状態にする状態を示している。
FIG. 5 therefore shows an explanatory diagram for explaining the principle. FIG. 5A shows a state in which the main controller 100a is in a healthy state, and FIG. 5B shows a state in which the main controller 100a is in a faulty state.

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

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

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

上位200から処理依頼の有無を上位回線
サブCPU160が判定し、処理依頼がある
と、メインCPU110は、下位回線サブ
CPU150内予備モードフラグを参照する。
The upper line sub CPU 160 determines whether there is a processing request from the upper line 200, and if there is a processing request, the main CPU 110 sends the lower line sub
Refer to the reserve mode flag in the CPU 150.

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

一方、予備モードフラグがオフであれば、
メインコントローラ100aは障害(ダウ
ン)であり、予備用コントローラ100bが
回線サービス中であるから、依頼された処理
を実行する。例えば、依頼処理が集計であれ
ば、メインCPU110は演算CPU170に
命じて、PLUテーブル102内の集計デー
タを集計演算させる。
On the other hand, if the reserve mode flag is off,
Since the main controller 100a is in failure (down) and the standby controller 100b is in line service, it executes the requested process. For example, if the requested processing is aggregation, the main CPU 110 instructs the calculation CPU 170 to perform an aggregation operation on the aggregated data in the PLU table 102.

そして、集計結果を上位装置200へ上位
回線サブCPU160を介し、更に上位回線
lHを介し送信して、ステツプに戻る。
Then, the aggregated results are sent to the higher-level device 200 via the higher-level line sub CPU 160, and further to the higher-level line.
Send via lH and return to step.

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

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

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

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

第6図において下位回線サブCPU150は、
メインCPU110に対する上り、下りDMA
(ダイレクトメモリアクセス)機能部151,
152、メインCPU110へのコマンド、ス
テータスインターフエイス部153、タイマー
部154及び電文制御部155とで構成されて
おり、POS端末130〜13nと下り回線lL
を介し電文制御部155が電文のやりとりを行
い、メインCPU110とDMA部151,15
2、インターフエイス部153よりコマンド、
ステータス、データのやりとりを行うものであ
る。
In FIG. 6, the lower line sub CPU 150 is
Upstream and downstream DMA for main CPU 110
(direct memory access) functional unit 151,
152, a command to the main CPU 110, a status interface section 153, a timer section 154, and a message control section 155.
The message control unit 155 exchanges messages via the main CPU 110 and the DMA units 151 and 15.
2. Command from the interface section 153,
It is used to exchange status and data.

メインCPU110は、下位回線サブCPU1
50に対する上り、下りDMA部121,12
3及びインターフエイス部123と、上位回線
サブCPU160に対する下り、上りDMA部1
24,125及びインターフエイス部126
と、下位回線及び上位回線に対する各制御タス
ク111,112とを有する。
The main CPU 110 is the lower line sub CPU 1
Uplink and downlink DMA sections 121 and 12 for 50
3 and the interface section 123, and the downlink and uplink DMA sections 1 for the upper line sub CPU 160.
24, 125 and interface section 126
and control tasks 111 and 112 for the lower line and the upper line.

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

更に、メインCPU110は、第7図Bの如
く、演算CPU170に対する処理依頼送出部
130、動作情報受付部131、DMA部13
2,133を備える。
Furthermore, as shown in FIG.
2,133.

一方、上位回線サブCPU160は、メイン
CPU110に対する上り、下りDMA部16
4,165及びインターフエイス部166、タ
イマー部167及び電文制御部168を有し、
上位200と上位回線lHを介し電文制御部1
68が電文のやりとりを行い、メインCPU1
10とDMA部164,165、インターフエ
イス部166よりコマンド、ステータス、デー
タのやりとりを行うものである。
On the other hand, the upper line sub CPU 160
Upstream/downstream DMA section 16 for CPU 110
4,165, an interface section 166, a timer section 167, and a message control section 168,
Message control unit 1 via the upper 200 and upper line lH
68 exchanges messages, and main CPU1
10, DMA sections 164, 165, and interface section 166 exchange commands, status, and data.

演算CPUは、第7図Bに示す如く、メイン
CPU110に対する処理依頼受付部179、
動作情報送出部171及びDMA部172,1
73と、依頼タスク分析・分岐部174及びタ
スク(0〜n)175を備えている。
The calculation CPU is the main CPU, as shown in Figure 7B.
A processing request receiving unit 179 for the CPU 110;
Operation information sending unit 171 and DMA unit 172,1
73, 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.

まずコントローラの電源投入により、メイン
CPU110は自己が予備側のコントローラと
なるべきか否かを判断する。これは、下位回線
lL上において、既に電文等のやりとりが行われ
ているか否かをチエツクすることによつて行わ
れている。そして、回線lL上で電文のやりとり
があれば、メインCPU110の下位回線制御
タスク111は、サブCPU150の電文制御
部155に、予備モードを示すフラグ(図示せ
ず)をセツトする。
First, by turning on the power to the controller, the main
The CPU 110 determines whether or not it should serve as a standby controller. This is the lower line
This is done by checking whether or not messages such as messages have already been exchanged on the LL. Then, if a message is exchanged on the line LL, the lower line control task 111 of the main CPU 110 sets a flag (not shown) indicating a backup mode in the message control unit 155 of the sub CPU 150.

この予備モード指示により、電文制御部15
5は、タイマー部154をセツトして、回線lL
上の電文監視を行う。即ち、回線lL上にて電文
が受信される毎にタイマー部154をリセツト
する動作を行う。
By this preliminary mode instruction, the message control unit 15
Step 5 sets the timer section 154 and turns on the line lL.
Monitor the above messages. That is, the timer section 154 is reset every time a message is received on the line LL.

上述した例では、メイン側コントローラ10
0aから発せられる予備側宛へのボーリング間
隔を監視するものである。一方、本例において
は、回線lL上に送出されるコントローラ側及び
POS端末側からの電文の間隔を監視するもの
である。従つて、回線lL上から所定時間(例え
ば4秒)以内に何の電文も受信されない場合、
タイマー部154からのタイムアツプ信号が、
ステータスインターフエイス153,123を
介して、メインCPU110側へ送出されるこ
とになる。
In the above example, the main controller 10
This monitors the interval between borings issued from 0a to the reserve side. On the other hand, in this example, the controller side and
This monitors the interval between messages sent from the POS terminal. Therefore, if no message is received from the line LL within a predetermined period of time (for example, 4 seconds),
The time-up signal from the timer section 154 is
It will be sent to the main CPU 110 via the status interfaces 153 and 123.

尚、電文制御部155にて受信された電文
は、DMA制御部151,121を介して、メ
インCPU110側に送出される。そしてメイ
ンCPU110側の電文分析タスク113を経
て、その電文に対する通常の処理が行われる。
この処理は、分岐タスク115を介して、各処
理単位(例えばPLU処理、集計処理等)にま
とめられたモジユール117によつて実行され
ることになる。
Note that the message received by the message control unit 155 is sent to the main CPU 110 via the DMA control units 151 and 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 117 organized into processing units (for example, PLU processing, aggregation processing, etc.) via branching tasks 115.

そして、処理された結果等の応答が必要な場
合には、モジユール117によつて応答電文が
組立てられ、下位回線制御タスク111、及び
DMA制御部122,152を介して、サブ
CPU150側に送出される。サブCPU150
の電文制御部155は、メインCPU110側
から送られる応答電文(送信電文)を受ける
と、上述した予備モードフラグを参照する。そ
して予備モードフラグがオン(有効)となつて
いれば、受信した応答電文を廃棄する。
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
Through the DMA control units 122 and 152, the sub
It is sent to the CPU 150 side. Sub CPU150
When the message control unit 155 receives the response message (transmission message) sent from the main CPU 110 side, it refers to the backup mode flag described above. If the backup mode flag is on (valid), the received response message is discarded.

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

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

一方、上位200から上位回線lHを介し電
文制御部168にて受信された電文は、DMA
制御部165,125を介してメインCPU1
10側に送出され、メインCPU110の上位
回線制御タスク112、電文分析タスク114
を経て電文処理が行われる。この処理は、分岐
タスク115を介してモジユール117によつ
て実行される。上述した如く受信電文が前述の
処理依頼であると、モジユール117の実行に
よつて下位回線CPU150の電文制御部15
5の予備モードフラグを参照し、予備モードフ
ラグがオンとなつていると、前述の如く予備状
態電文を組立て、上位回線制御タスク112及
びDMA制御部124,164を介しサブCPU
160へ送出され、更に電文制御部168より
上位回線lHを介し上位200へ伝えられる。
On the other hand, the message received by the message control unit 168 from the upper layer 200 via the upper line lH is
Main CPU 1 via control units 165 and 125
10 side, and the upper line control task 112 and message analysis task 114 of the main CPU 110
Message processing is then performed. This processing is executed by module 117 via branch task 115. As described above, if the received message is the above-mentioned processing request, the message control unit 15 of the lower line CPU 150 is executed by the module 117.
5, and if the standby mode flag is on, the standby state message is assembled as described above, and sent to the sub CPU via the upper line control task 112 and the DMA control units 124 and 164.
160, and is further transmitted from the message control unit 168 to the higher level 200 via the higher level line lH.

逆に予備モードフラグがオフとなつている
と、依頼処理を実行する。例えば集計処理であ
れば、演算CPU170に第7図Bの如くフア
イル内の集計を依頼し、集計すべきデータを転
送し、演算処理させる。この集計結果をキユー
127を介し受け、同様に処理結果を含む処理
電文を組立て、上位回線制御タスク112及び
DMA制御部124,164を介しサブCPU1
60へ送出され、更に電文制御部168より上
位回線lHを介し上位200へ伝えられる。
Conversely, if the backup mode flag is off, the request process is executed. For example, in the case of aggregation processing, the calculation CPU 170 is requested to perform aggregation in a file as shown in FIG. 7B, and the data to be aggregated is transferred and subjected to arithmetic processing. This tally result is received via the queue 127, a processing message including the processing results is similarly assembled, and the upper line control task 112 and
Sub CPU 1 via DMA control units 124 and 164
60, and is further transmitted from the message control unit 168 to the higher level 200 via the higher level line lH.

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

同様に、障害の監視を自己宛のボーリングの
間隔又は電文の間隔によつて検出しているが、
他の方法であつてもよい。
Similarly, fault monitoring is detected by the interval of boring or the interval of messages addressed to the self.
Other methods may also be used.

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

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

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

更に、そのための手段も簡易であり容易に実現
できるという実用上優れた効果も奏する。
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〜13n……POS端末、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. 7A and B are software configuration diagrams configured in FIG. 2. , Figure 8 is a system configuration diagram, Figure 9
The figure is an explanatory diagram of the prior art. In the figure, 100a, 100b...controller,
130 to 13n...POS terminal, 200...Upper device.

Claims (1)

【特許請求の範囲】 1 複数の端末装置に接続され、該端末装置と交
信を行うための複数のコントローラと、 該複数のコントローラと接続された上位装置と
を有し、 該複数のコントローラの一方が該端末装置と交
信中に、他方のコントローラが該一方のコントロ
ーラの動作を監視し、 該一方のコントローラが障害となると該他方の
コントローラが該一方のコントローラに代つて該
端末装置と交信するデータ処理システムであつ
て、 該上位装置が該コントローラへ処理依頼を発す
るに際し、 該複数のコントローラに該処理依頼を発し、 該監視を行つているコントローラは該上位装置
に該処理要求に応じ該監視中である旨を通知し、 該上位装置に複数のコントローラの状態認識を
行わしめることを特徴とするデータ処理システム
の状態認識方式。
[Claims] 1. A plurality of controllers connected to a plurality of terminal devices for communicating with the terminal devices, and a host device connected to the plurality of controllers, one of the plurality of controllers. While the controller is communicating with the terminal device, the other controller monitors the operation of the one controller, and if the one controller fails, the other controller communicates with the terminal device on behalf of the one controller. In the processing system, 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 sends the monitoring request to the higher-level device in response to the processing request. 1. A state recognition method for a data processing system, characterized in that the host device is notified of the state of a plurality of controllers, and causes the host device to recognize the state 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 JPS622333A (en) 1987-01-08
JPH049345B2 true 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001062909A (en) * 1999-08-27 2001-03-13 Suzuki:Kk Plastic sheet with foldable ruled line and ruled line blade for plastic sheet

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001062909A (en) * 1999-08-27 2001-03-13 Suzuki:Kk Plastic sheet with foldable ruled line and ruled line blade for plastic sheet

Also Published As

Publication number Publication date
JPS622333A (en) 1987-01-08

Similar Documents

Publication Publication Date Title
US5121486A (en) Network control system for dynamically switching a logical connection between an identified terminal device and an indicated processing unit
JPH07212371A (en) Common control redundancy system changeover method
US5734810A (en) Client server system performing automatic reconnection and control method thereof
JP4487756B2 (en) Computer system and system monitoring program
JPH049345B2 (en)
JPH06236299A (en) Method and device for monitoring system
JP2000148525A (en) Method for reducing load of active system in service processor duplex system
JPH07141308A (en) Back-up method in information processing system
JP2000020336A (en) Duplex communication system
US6480466B1 (en) Terminal switching apparatus and method
JPH07321799A (en) Input output equipment management method
JPH05224964A (en) Bus abnormality information system
JPS61156437A (en) System obstacle restoring control system
JPS61156436A (en) System down back-up system
JPH01166161A (en) Mutual monitoring system for multiprocessor system
JPS61156469A (en) File update processing system
JP2704137B2 (en) Current / spare switching method
JP2725385B2 (en) Data transfer method of information processing system
JPS63279646A (en) Automatic restart processing system for network management equipment
JPH02310755A (en) Health check system
JPH02153437A (en) Output message recovery system
JPH04205161A (en) Multiprocessor system
JPH01259440A (en) Controlling system for terminal equipment
JPH01140316A (en) Correspondence system for hit of power source
JPH04281535A (en) Stand-by redundant type system