JPH044433A - Communication controller - Google Patents
Communication controllerInfo
- Publication number
- JPH044433A JPH044433A JP2106038A JP10603890A JPH044433A JP H044433 A JPH044433 A JP H044433A JP 2106038 A JP2106038 A JP 2106038A JP 10603890 A JP10603890 A JP 10603890A JP H044433 A JPH044433 A JP H044433A
- Authority
- JP
- Japan
- Prior art keywords
- failure
- fault
- counter
- communication control
- control device
- 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.)
- Pending
Links
Landscapes
- Maintenance And Management Of Digital Transmission (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は通信制御装置に関し、特にその障害復旧処理
に関するものである。DETAILED DESCRIPTION OF THE INVENTION [Industrial Field of Application] The present invention relates to a communication control device, and particularly to failure recovery processing thereof.
[従来の技術]
販売時点情報管理システム(pos)の端末や、銀行の
現金自動支払い機(CD)等は、ホストコンピュータ等
に接続されて動作を行うようになっている。このような
PO8端末やCD端末等の下位機器とホストコンピュー
タ等の上位機器とのデータ通信の制御を行うものが通信
制御装置である。[Prior Art] Point-of-sale system (POS) terminals, bank automatic teller machines (CDs), and the like operate by being connected to a host computer or the like. A communication control device controls data communication between lower-order devices such as PO8 terminals and CD terminals and higher-order devices such as host computers.
第4図に、通信制御装置を用いたシステムの構成図を示
す。公衆回線や専用回線等の回線網2を介して、ホスト
コンピュータ4、通信制御装置6が接続されている。通
信制御装置6には、ライン8が接続されており、POS
やCD等の端末10とともに、ローカルエリアネットワ
ーク(LAN)を構成している。FIG. 4 shows a configuration diagram of a system using a communication control device. A host computer 4 and a communication control device 6 are connected via a line network 2 such as a public line or a private line. A line 8 is connected to the communication control device 6, and a POS
It constitutes a local area network (LAN) together with terminals 10 such as a computer and a CD.
通信制御装置6の役割は、端末10から送られてくるデ
ータをホストコンピュータ4に送ったり、ホストコンピ
ュータ4からのデータを端末IQに送ったりすることで
ある。例えば、CD端末10から暗証番号データが入力
されると、通信制御装置6はこれを受は取り、通信網2
を介してホストコンピュータ4に送る。暗証番号データ
を受は取ったホストコンピュータ4は、暗証番号の適否
を確認し、結果データを通信制御装置6に送り返す。通
信制御装置6は、この結果データを暗証番号データが送
られてきたCD端末10に送り返す。上記のようにして
一連のデータ通信が完了する。The role of the communication control device 6 is to send data sent from the terminal 10 to the host computer 4, and to send data from the host computer 4 to the terminal IQ. For example, when password data is input from the CD terminal 10, the communication control device 6 receives it and sends it to the communication network 2.
The data is sent to the host computer 4 via the host computer 4. The host computer 4 that has received the password data confirms the validity of the password and sends the result data back to the communication control device 6. The communication control device 6 sends this result data back to the CD terminal 10 to which the password data was sent. A series of data communications is completed as described above.
ところで、運用中の通信制御装置6に障害が生じた場合
のために、同じ構成の通信制御装置7が待機機として設
けられている。通常は、待機機である通信制御装置7に
は、電源が供給されておらず稼働していない。運用機6
に障害が生じると、電源制御ライン9を介して、待機機
7に電源を投入し、待機機7によって運用を行う。By the way, in case a failure occurs in the communication control device 6 in operation, a communication control device 7 having the same configuration is provided as a standby device. Normally, the communication control device 7, which is a standby device, is not supplied with power and is not in operation. Operational aircraft 6
When a failure occurs in the standby machine 7, power is turned on to the standby machine 7 via the power control line 9, and the standby machine 7 operates.
[発明が解決しようとする課題]
しかしながら、従来のようなシステムにおいては、次の
ような問題があった。[Problems to be Solved by the Invention] However, conventional systems have the following problems.
運用機6から待機機7への切り換えは、データの転送等
の手順が複雑であり、好ましいものではない。一方、運
用機6の障害の中には、一過性のプログラムバグのよう
に、再スタートを行うことによって再び正常に動作させ
ることができる場合がある。ところが、障害発生時に直
ちに待機機7への切り換えを行うシステムにおいては、
このような場合であっても待機機7への切り換えを行っ
てしまうという問題点があった。Switching from the operational machine 6 to the standby machine 7 requires complicated procedures such as data transfer, and is not preferable. On the other hand, some failures in the operational machine 6, such as temporary program bugs, can be made to operate normally again by restarting the machine. However, in a system that immediately switches to standby aircraft 7 when a failure occurs,
Even in such a case, there is a problem in that switching to the standby aircraft 7 is performed.
この発明は、上記のような問題点を解決して、障害に対
して適切な処理を行うことのできる通信制御装置を提供
することを目的とする。SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems and provide a communication control device that can appropriately handle failures.
[課題を解決するための手段]
この発明に係る通信制御装置においては、障害種別ごと
に障害発生回数カウンタを設け、障害種別および障害発
生回数カウンタにおいて示される障害発生回数に対応し
て障害復旧処理を行うことを特徴としている。[Means for Solving the Problems] In the communication control device according to the present invention, a failure occurrence count counter is provided for each failure type, and failure recovery processing is performed in accordance with the failure type and the failure occurrence count indicated by the failure occurrence count counter. It is characterized by doing the following.
[作用]
障害種別によって適切な障害復旧処理を行うようにして
いるので、復旧時間が早く、確実な復旧を行うことがで
きる。さらに、障害種別ごとに発生回数を記憶している
ので、同種の障害が連続して発生した場合にも、適切な
復旧処理を行うことができる。[Operation] Since appropriate failure recovery processing is performed depending on the failure type, recovery time is quick and reliable recovery can be performed. Furthermore, since the number of occurrences is stored for each type of failure, appropriate recovery processing can be performed even if the same type of failure occurs consecutively.
[実施例]
第3図に、この発明の一実施例による通信制御装置のハ
ードウェア構成図を示す。パスライン22(データライ
ンおよび制御ライン)には、ROM24、RAM26、
ホスト通信制御回路30、端末通信制御回路32、電源
制御回路34が接続されている。[Embodiment] FIG. 3 shows a hardware configuration diagram of a communication control device according to an embodiment of the present invention. The pass line 22 (data line and control line) includes a ROM 24, a RAM 26,
A host communication control circuit 30, a terminal communication control circuit 32, and a power supply control circuit 34 are connected.
CPU20は、ROM24およびRAM26に記憶され
たプログラムに従って、各部を制御する。なお、RAM
26には、障害の種別毎に障害発生回数が記憶される。The CPU 20 controls each section according to programs stored in the ROM 24 and RAM 26. In addition, RAM
26 stores the number of failure occurrences for each type of failure.
すなわち、この実施例では、RAM26の一部を、障害
発生回数カウンタとして用いている。また、バッテリバ
ックアップを施しておけば、故障時にも障害発生回数カ
ウンタの値が消失するおそれがない。That is, in this embodiment, a part of the RAM 26 is used as a failure occurrence counter. Furthermore, if battery backup is provided, there is no risk that the value of the failure occurrence counter will be lost even in the event of a failure.
ホスト通信制御回路30はホストコンピュータ4との通
信を制御するためのものであり、端末通信制御回路32
は各端末10との通信を制御するためのものである。電
源制御回路34は、自機が故障した場合に、自機の電源
回路28をオフにし、他機の電源回路(図示せず)をオ
ンにするためのものである。The host communication control circuit 30 is for controlling communication with the host computer 4, and the terminal communication control circuit 32
is for controlling communication with each terminal 10. The power supply control circuit 34 is for turning off the power supply circuit 28 of the own machine and turning on the power supply circuit (not shown) of the other machine when the own machine fails.
第2図に、ROM24およびRAM26に記憶されたプ
ログラムのフローチャートを示す。電源が投入されると
、まずハードウェアおよびソフトウェアの初期化が行わ
れる(ステップS+ 、S2)。次に、ハードウェアの
自己診断を行った後(ステップSa)、業務処理プログ
ラムを開始する(ステップS4)。FIG. 2 shows a flowchart of the programs stored in the ROM 24 and RAM 26. When the power is turned on, first, the hardware and software are initialized (steps S+, S2). Next, after performing a hardware self-diagnosis (step Sa), the business processing program is started (step S4).
業務処理を行っている際に障害が発生すると、CPU2
0は、第1図Aに示す障害処理プログラムを実行する。If a failure occurs during business processing, CPU2
0 executes the fault handling program shown in FIG. 1A.
障害処理プログラムは、障害の種別ごとに、障害処理1
から障害処理nまで設けられている(図において、障害
処理2から障害処理nのフローチャートは省略しである
)。ここでは、データエラーが発生したものとして説明
を進める。The fault processing program includes fault processing 1 for each fault type.
to fault processing n (in the figure, the flowchart for fault processing 2 to fault processing n is omitted). Here, the explanation will proceed assuming that a data error has occurred.
第1図Aのフローチャートにおいて、データエラーは、
障害処理1で処理されるものとする。In the flowchart of Figure 1A, a data error is
It is assumed that failure processing 1 is used.
まず、ステップSIOにおいて、障害発生カウンタがO
であるか1であるかを判断する。ここで、障害発生カウ
ンタは、第1表のように、障害種別ごとに設けられてい
る。なお、第1表では、例示として3種の障害のみを掲
げている。First, in step SIO, the fault occurrence counter is O.
or 1. Here, the failure occurrence counter is provided for each failure type, as shown in Table 1. Note that Table 1 lists only three types of disabilities as examples.
第1表
障害種別 データエラー 通信障害 ハード障害発生回
数 0 0 0第1表によれば
、データエラーの発生回数はOであるから、CPU20
はステップS+1へ分岐する。Table 1 Failure Type Data Error Communication Failure Hardware Failure Number of Occurrences 0 0 0 According to Table 1, the number of occurrences of data errors is O, so the CPU 20
branches to step S+1.
ステップSllにおいては、データエラーの発生回数を
+1 (インクリメント)する。したがって、障害発生
カウンタは、第2表のようになる。In step Sll, the number of data error occurrences is incremented by +1. Therefore, the failure occurrence counter is as shown in Table 2.
第2表
障害種別 データエラー 通信障害 ハード障害発生回
数 1 0 0次に、CPU20は
リセットを行って、システムを再起動させる(ステップ
S、2)。システムが再起動されると、第2図のステッ
プS1以降が実行される。したがって、リセット再起動
により、システムが正常に動作すれば、業務処理が継続
して行われる(ステップse)。データエラーは、リセ
ット再起動により復旧する可能性があるので、直ちに待
機機への切り換えを行わないようにしている。Table 2 Failure Type Data Error Communication Failure Hard Failure Number of Occurrences 1 0 0 Next, the CPU 20 performs a reset and restarts the system (step S, 2). When the system is restarted, steps S1 and subsequent steps in FIG. 2 are executed. Therefore, if the system operates normally due to the reset restart, business processing continues (step se). Since there is a possibility that a data error can be recovered by resetting and restarting, switching to a standby machine is not performed immediately.
ところで、システムが正常に再起動すれば、障害発生カ
ウンタをクリアする必要がある。このため、この実施例
では、業務処理開始後にタイマタスクを実行している(
ステップSS)。タイマタスクのフローチャートを第2
図の右側に示す。なお、このタイマタスクは、CPU2
0のマルチタスクとして業務処理プログラムと並行して
実行される。By the way, if the system restarts normally, it is necessary to clear the failure counter. Therefore, in this embodiment, the timer task is executed after the start of business processing (
Step SS). The second flowchart of the timer task
Shown on the right side of the figure. Note that this timer task is executed by CPU2.
0 multitasking in parallel with the business processing program.
まず、ステップS5゜において、復旧完了タイマをセッ
トする。この実施例においては、3600秒としている
。次に、1秒ごとに復旧カウンタを−1(デクリメント
)する(ステップS51.S5□)。そして、復旧カウ
ンタの値が0になれば、すべての障害発生カウンタをク
リアする(ステップ564)。First, in step S5, a recovery completion timer is set. In this example, it is 3600 seconds. Next, the recovery counter is -1 (decremented) every second (steps S51 and S5□). Then, when the value of the recovery counter becomes 0, all failure occurrence counters are cleared (step 564).
すなわち、この実施例では、業務処理が再開されて、3
600秒経過すれば、障害発生カウンタをクリアするよ
うにしている。このようにすることにより、−復旧され
た障害のカウント値がいつまでも残ることがなくなる。That is, in this embodiment, business processing is restarted and 3
When 600 seconds have elapsed, the failure occurrence counter is cleared. By doing this, the count value of recovered failures will not remain forever.
ところで、3600秒経過までに、再びデータエラーが
生じて停止した場合には、次のように処理される。CP
U20は、第1図の障害処理プログラムを実行し、まず
、データエラーの発生回数を見る。By the way, if a data error occurs again and the process is stopped before 3600 seconds have elapsed, the following process is performed. C.P.
U20 executes the fault handling program shown in FIG. 1, and first checks the number of data error occurrences.
ここでは、第2表に示すとおり、カウンタ値は1である
。したがって、ステップS1gを実行し、カウンタ値を
Oにする。次に、CPU20は、電源制御回路34を制
御して、待機機の電源回路をオンにする(ステップ51
4)。さらに、自機の電源回路28をオフにする(ステ
ップS0.)。このように″して、待機機への切り換え
を行う。すなわち、リセット再起動によっても障害が復
旧しない場合には、待機機への切り換えが行われる。Here, as shown in Table 2, the counter value is 1. Therefore, step S1g is executed and the counter value is set to O. Next, the CPU 20 controls the power supply control circuit 34 to turn on the power supply circuit of the standby machine (step 51
4). Furthermore, the power supply circuit 28 of the own device is turned off (step S0.). In this way, the switch to the standby machine is performed. That is, if the failure is not recovered even after a reset and restart, the switch to the standby machine is performed.
上記実施例においては、同一種別の障害について、1度
目の停止によりリセット再スタート、2度目の停止によ
り待機機への切り換えを行っている。しかし、複数回リ
セット再スタートを行った後に、待機機へ□の切り換え
を行うようにしてもよい。In the above embodiment, for the same type of failure, the first stop causes a reset restart, and the second stop causes switching to a standby machine. However, the switching to the standby machine may be performed after resetting and restarting a plurality of times.
次に、通信障害が生じた場合の障害処理を第1図Bにフ
ローチャートで示す。通信障害は、外部からの障害であ
るため、RAM26にプログラムやデータ等が正しく記
憶された状態で停止する場合がある。したがって、最初
の停止により、ホットスタートによるリセット再起動を
行う。すなわち、プログラムを外部記憶装置からロード
せず、RAM26に残っている内容によって起動する(
ステップ82a 、S2□)。このことにより、プログ
ラムをロードする時間を省略して再起動でき、再起動に
要する時間を短縮することができる。Next, FIG. 1B shows a flowchart of failure processing when a communication failure occurs. Since a communication failure is an external failure, there are cases where the RAM 26 stops even though programs, data, etc. are correctly stored. Therefore, the first stop causes a reset restart by hot start. In other words, the program is not loaded from an external storage device, but is started using the contents remaining in the RAM 26 (
Step 82a, S2□). As a result, the time required to load the program can be omitted and the computer can be restarted, thereby reducing the time required for restarting.
ホットスタートによって、正常に再起動しなかった場合
には、コールドスタートを行う(ステップS21 、S
p□)。すなわち、プログラムを外部記憶装置からRA
M26にロードして、起動を行う。If the hot start does not result in a normal restart, perform a cold start (steps S21 and S21).
p□). In other words, the program is transferred from the external storage device to RA.
Load it into M26 and start it up.
さらに、コールドスタートによっても正常に起動しない
場合には、待機機への切り換えを行う(ステップS2’
B、S*4,52s) 。Furthermore, if the machine does not start up normally even after a cold start, the machine is switched to a standby machine (step S2'
B, S*4,52s).
次に、ハードウェア障害によって停止した場合の障害処
理のフローチャートを第1図Cに示す。Next, FIG. 1C shows a flowchart of failure processing when the system stops due to a hardware failure.
ハードウェア障害の場合には、リセット再起動によって
復旧する見込がないので、直ちに待機機への切り換えを
行うようにしている(ステップS31゜S3□)。In the case of a hardware failure, there is no hope that recovery will be possible by reset restart, so the system is immediately switched to a standby machine (steps S31° and S3□).
[発明の効果]
この発明に係る通信制御装置においては、障害種別に対
応して種々の障害復旧処理を行うようにしているので、
復旧時間が早く、確実な復旧を行うことができる。さら
に、障害種別ごとに発生回数を記憶しているので、同種
の障害が連続して発生した場合にも、適切な復旧処理を
行うことができる。[Effects of the Invention] The communication control device according to the present invention performs various failure recovery processes depending on the type of failure.
Recovery time is quick and reliable recovery can be performed. Furthermore, since the number of occurrences is stored for each type of failure, appropriate recovery processing can be performed even if the same type of failure occurs consecutively.
第1図(AないしC)はこの発明の一実施例による通信
制御装置における障害処理を示すフローチャート、
第2図はこの発明の一実施例による通信制御システムに
おける業務処理およびタイマタスクを示すフローチャー
ト、
第8図は通信制御装置のハードウェア構成を示す図、
第4図は通信制御システムの一般的な構成を示す図であ
る。
4・・・ホストコンピュータ
6.7・・・通信制御装置
10・・・端末
第 2 図
電鴻オン タイマタスクハードウェ
ア 了タイマ〈力初期化
l ウンタ)をセットプログラム
1 秒WA I T S51初期化
ハードウェア 纜旧完了カワンタ s5
゜自己二臼折 アクリメント業務処
理開始 ウンタ=ON○ES
障害発生回数力ウ
タイママスク ンタを0にセット辻φΦカ
終了
業務処理
第 3 図1 (A to C) is a flowchart showing failure processing in a communication control device according to an embodiment of the present invention; FIG. 2 is a flowchart showing business processing and timer tasks in a communication control system according to an embodiment of the invention; FIG. 8 is a diagram showing the hardware configuration of the communication control device, and FIG. 4 is a diagram showing the general configuration of the communication control system. 4...Host computer 6.7...Communication control device 10...Terminal 2nd timer task hardware Initialize timer
l Counter) set program
1 second WAIT S51 initialization hardware complete s5
゜Self-returning Accrement Business Processing Start Counter=ON○ES Number of Failure Occurrence Outer Timer Mask Counter Set to 0 TsujiφΦka End Business Processing Figure 3
Claims (1)
る通信制御装置において、 障害種別ごとに障害発生回数カウンタを設け、障害種別
および障害発生回数カウンタにおいて示される障害発生
回数に対応して障害復旧処理を行うことを特徴とする通
信制御装置。(1) In a communication control device that controls data communication between a lower-level device and a higher-level device, a counter for the number of times a failure has occurred is provided for each type of failure, and a counter is provided for each type of failure, and a counter is provided for each failure type and the number of times the failure occurs corresponds to the number of times the failure occurs as indicated by the failure type and the number of times the failure occurs. A communication control device characterized by performing failure recovery processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2106038A JPH044433A (en) | 1990-04-20 | 1990-04-20 | Communication controller |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2106038A JPH044433A (en) | 1990-04-20 | 1990-04-20 | Communication controller |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JPH044433A true JPH044433A (en) | 1992-01-08 |
Family
ID=14423472
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2106038A Pending JPH044433A (en) | 1990-04-20 | 1990-04-20 | Communication controller |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH044433A (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007229041A (en) * | 2006-02-28 | 2007-09-13 | Sansei R & D:Kk | Game machine |
| JP2008118781A (en) * | 2006-11-06 | 2008-05-22 | Chugoku Electric Power Co Inc:The | Reset circuit, protection relay apparatus, and method for resetting protection relay apparatus |
-
1990
- 1990-04-20 JP JP2106038A patent/JPH044433A/en active Pending
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2007229041A (en) * | 2006-02-28 | 2007-09-13 | Sansei R & D:Kk | Game machine |
| JP2008118781A (en) * | 2006-11-06 | 2008-05-22 | Chugoku Electric Power Co Inc:The | Reset circuit, protection relay apparatus, and method for resetting protection relay apparatus |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US5155729A (en) | Fault recovery in systems utilizing redundant processor arrangements | |
| JP3844621B2 (en) | Application realization method and application realization apparatus | |
| US7975188B2 (en) | Restoration device for BIOS stall failures and method and computer program product for the same | |
| US6622261B1 (en) | Process pair protection for complex applications | |
| US4823256A (en) | Reconfigurable dual processor system | |
| JP2001184145A (en) | Remote power supply management system for information processor or the like | |
| CN111124728B (en) | Service automatic recovery method, system, readable storage medium and server | |
| CN108737153B (en) | Blockchain disaster recovery system, method, server and computer-readable storage medium | |
| JPH044444A (en) | Communication control system | |
| US20060023627A1 (en) | Computing system redundancy and fault tolerance | |
| JPH05314075A (en) | On-line computer system | |
| JP6364773B2 (en) | Information processing apparatus, information processing system, memory replication method, and computer program | |
| JPH06222943A (en) | Information processing continuous operation method | |
| JP3061998B2 (en) | Computer fault-tolerant method | |
| CN1322705C (en) | A method of datum plane reset for forwarding equipment | |
| JPS6139138A (en) | Multiplexing system | |
| JP2572176B2 (en) | Processor switching method for packet switch | |
| JP3328403B2 (en) | Failure detection method | |
| JPH03206529A (en) | Computer system | |
| JPH03266133A (en) | Line system fault processing system in hot stand-by system | |
| JP3830558B2 (en) | Online system and communication control method thereof | |
| JPH02121452A (en) | Electronic exchange system | |
| JPH039434A (en) | System constitution changing system | |
| JPS6126142A (en) | Fault processing system | |
| JPS61128359A (en) | Fault restoration system of common device |