JPH0732414B2 - Correction method of total error - Google Patents
Correction method of total errorInfo
- Publication number
- JPH0732414B2 JPH0732414B2 JP60277303A JP27730385A JPH0732414B2 JP H0732414 B2 JPH0732414 B2 JP H0732414B2 JP 60277303 A JP60277303 A JP 60277303A JP 27730385 A JP27730385 A JP 27730385A JP H0732414 B2 JPH0732414 B2 JP H0732414B2
- Authority
- JP
- Japan
- Prior art keywords
- control device
- data
- terminal
- recovery
- error
- 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
Links
Landscapes
- Detection And Prevention Of Errors In Transmission (AREA)
- Communication Control (AREA)
- Maintenance And Management Of Digital Transmission (AREA)
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は集計誤差修正方法、詳しくは制御装置と多数の
端末装置とを通信回線で結んでデータ伝送し制御装置側
で集計を行うシステムにおいて伝送ミスが発生した場合
それが集計誤差とならないようにする手段に関する。DETAILED DESCRIPTION OF THE INVENTION [Industrial field of application] The present invention relates to a method of correcting a totalization error, more specifically, a system for connecting a control device and a large number of terminal devices via a communication line to transmit data and perform totalization on the control device side. When a transmission error occurs, it relates to a means for preventing it from becoming a counting error.
制御装置と端末装置との間は回線インタフェースで接続
される場合が多いが、この場合回線エラーによる伝送ミ
スが考えられる。投票券(馬券)などに対するトータリ
ゼータシステムのように高信頼性と高処理能力が必要な
場合は速いターンアラウンドタイムを実現するために伝
送には簡単な手順であることを必要とするが、回線エラ
ーに対する対策は充分講じておかなければならない。The control device and the terminal device are often connected by a line interface, but in this case, a transmission error due to a line error is considered. When high reliability and high processing capacity like a totalizer system for voting tickets (horse tickets) etc. are required, the transmission must be a simple procedure to achieve fast turnaround time, but line error You must take sufficient measures against.
第3図はトータリゼータシステムの概要を示し、図示の
ように場合にはホストCPU及びトータリゼータ制御装置
を有する制御側、および構内回線を通してトータリゼー
タ制御装置と接続する多数の端末装置を有し、またサテ
ライト場外に通信(公社)回線を通してトータリゼータ
制御装置と接続する複数の端末を有する。端末から投票
券に関するデータ例えば第×レース、連勝式、3−5
番、投票金額×円などのデータが送られ、トータリゼー
タ制御装置側ではその登録集計などを行うが、このデー
タ伝送はポーリング方式で行われる。FIG. 3 shows an outline of the totalizer system. In the case shown in the figure, it has a control side having a host CPU and a totalizer controller, and a large number of terminal devices connected to the totalizer controller via a private line, and also outside the satellite field Has a plurality of terminals connected to the totalizer controller through a communication (public corporation) line. Data on voting tickets from the terminal, for example, x race, consecutive winning ceremony, 3-5
The data such as the number, voting amount x yen, etc. is sent, and the totalizer control device side performs the registration and aggregation, but this data transmission is performed by the polling method.
第4図で説明すると、制御装置、端末ともにアイドル状
態で始まったとして制御装置は周期的に問い合わせ信号
ENQを送出し、その応答を待つ。端末は要求RQがある
(発券する)ときはENQを受けるとアテンションデータ
(投票内容)ADを送出し、応答待ちとする。制御装置は
データADを受け取るとそれを自身で又はホストへ上げて
該ホストで記憶、集計する。この処理がすむと制御装置
はリスポンスデータ(発券可)RDを送出し、応答待ちと
なる。端末はデータRDを受け取るとその旨の信号ACKを
返し、キャンセル待ちとなる。制御装置はACKを正常に
受け取ると所定の保証時間中端末に対して何もせず、端
末は一定時間経ってもキャンセルがなければ発券動作す
る。これで1サイクル完了で、アイドル状態になり、制
御装置は一定時間後再びENQを送出する。Referring to FIG. 4, it is assumed that both the control device and the terminal start in the idle state, and the control device periodically issues an inquiry signal.
Send ENQ and wait for its response. When the terminal receives a request RQ (issues a ticket), it receives an ENQ, sends attention data (voting content) AD, and waits for a response. When the control device receives the data AD, it sends it to itself or to the host and stores and aggregates it in the host. After this processing is completed, the control device sends response data (ticket issuable) RD and waits for a response. Upon receiving the data RD, the terminal returns a signal ACK to that effect and waits for cancellation. When the control device receives the ACK normally, it does nothing to the terminal for a predetermined guarantee time, and if the terminal does not cancel even after a certain period of time, it issues a ticket. When this completes one cycle, the controller goes into the idle state, and the controller again sends ENQ after a certain period of time.
正常時は上記の如くであり、発券内容は記憶、集計さ
れ、集計結果と発券状態とは一致するが、エラーで過小
に集計され又は過大に集計されることがある。即ち第5
図に示すようにENQ,AD,ADの記憶及び集計、RD,ACKと進
んで端末はキャンセル待ちに入ったところ、回線障害が
発生してACKが制御装置に届かなかったとすると、制御
装置ではADキャンセルを行い端末へはEOT(エンドオブ
テキスト)を送る。しかし回線障害であるからこれは端
末へは届かず、そこで端末はキャンセルなしとして発券
動作してしまう。しかしこれでは集計結果は実際の発券
状態より少ないものになる。The normal situation is as described above, the ticketing contents are stored and tabulated, and the tabulation result and the ticketing status match, but there is a case where the ticket is tabulated too much or too much due to an error. That is, the fifth
As shown in the figure, ENQ, AD, AD are stored and totaled, and RD, ACK proceed to the terminal, and the terminal goes into a wait for cancellation.If the ACK did not reach the control device due to a line failure, the control device Cancel and send EOT (End of Text) to the terminal. However, because of a line failure, this does not reach the terminal, and the terminal will issue a ticket without cancellation there. However, in this case, the counting result is less than the actual ticketing state.
また第6図に示すようにENQ,AD,AD記憶及び集計、RD,AC
Kと進み、端末ではキャンセル待ちに入ったところ、回
線にノイズが発生し、これを端末ではEOTとして受信し
てしまうことがある。実際はACKは制御装置に正常に受
信され、そこで制御装置は所定の保証時間何もせず、然
るのちアイドルに入ったのであるから集計はそのままで
ある。端末ではEOTが来たのでキャンセルと受け止め、
発券動作はしない。従ってこの場合は集計結果が実際よ
り過大になる。Also, as shown in Fig. 6, ENQ, AD, AD memory and total, RD, AC
When I proceeded to K and entered the waiting list for cancellation at the terminal, noise was generated on the line and the terminal sometimes received it as EOT. Actually, the ACK is normally received by the control device, and the control device does not perform a predetermined guarantee time there, and then enters the idle state. EOT came at the terminal, so I accepted it as cancellation,
Does not issue tickets. Therefore, in this case, the totalized result becomes larger than it actually is.
このように、制御装置と端末装置が電話回線などの長距
離伝送線で接続されたトータリゼータシステムでは回線
断または回線上のノイズで過小または過大集計が行われ
る恐れがある。本発明はかかる集計誤差が発生したらそ
れを自動的に修正しようとするものである。As described above, in a totalizer system in which the control device and the terminal device are connected by a long-distance transmission line such as a telephone line, there is a risk that the line is disconnected or noise on the line causes under- or over-counting. The present invention is intended to automatically correct such a counting error when it occurs.
本発明は、制御装置と多数の端末とを通信回線で接続
し、制御装置がポーリング方式で各端末から送出させた
データの集計を行うシステムにおける集計誤差修正方法
において、端末装置が異常を検出したときには、自身で
リカバリ処理モードに入り、制御装置から正常時に周期
的に送られる問い合わせ信号に対する応答としてリカバ
リ照会データを返送し、制御装置は端末装置からの上記
リカバリ照会データに対する対応として最終処理データ
を送出し、端末装置は自身が持つ最終処理データと制御
装置からの上記最終処理データとを比較して、不一致で
あれば、その差分データについての集計又はキャンセル
処理を行うことを特徴とするものである。According to the present invention, a terminal device detects an abnormality in a totaling error correction method in a system in which a control device and a large number of terminals are connected by a communication line, and the control device totalizes data sent from each terminal by a polling method. Occasionally, the recovery processing mode is entered by itself, the recovery inquiry data is returned as a response to the inquiry signal periodically sent from the control device, and the control device sends the final processing data as a response to the recovery inquiry data from the terminal device. The terminal device compares the final processing data that the terminal device has with the final processing data from the control device, and if they do not match, the terminal device performs a totaling or canceling process on the difference data. is there.
このような自動誤差修正機能を持たせると、障害発生時
に従来のように手修正は不要となり、迅速な復旧、省力
化に非常に有効である。By providing such an automatic error correction function, manual correction is no longer required when a failure occurs, which is very effective for quick recovery and labor saving.
はじめに、リカバリ処理について説明する。このリカバ
リ処理は適宜の方法をとり得る。例えばポーリングモー
ドに復帰した制御装置はENQを送出し、端末ではこれを
受けると、通常の発券データではなく、リカバリ処理モ
ードになった直前の発券データ、具体例としては発券デ
ータに通し番号を付しておいてその番号(処理番号)を
制御装置へ送る。制御装置では処理したデータの最新の
ものと端末装置から送られてきたデータとを対比し、そ
の一致、不一致をチェックする。First, the recovery process will be described. This recovery process can take an appropriate method. For example, the control device that returned to the polling mode sends ENQ, and when the terminal receives this, it issues the serial number to the ticket issuing data immediately before the recovery processing mode, specifically, the ticket issuing data, instead of the normal ticket issuing data. The number (process number) is sent to the control device. The control device compares the latest processed data with the data sent from the terminal device, and checks whether they match or not.
上記の例では制御装置でも同様に処理番号を使用するよ
うにし、そして本例ではキャンセルしてしまったので端
末の処理番号をiとすれば制御装置の処理番号はi−1
であるから、i番のデータの記憶及び集計を再度行う。
あるいは制御装置は端末i番のデータを送れと指示し、
これを受けて端末はi番のデータを送る。勿論このため
には、前者では制御装置がキャンセルデータを少なくと
も次のAD記憶及び集計が正常終了する迄は保管するよう
にし、後者では端末が次のデータが制御装置に正常受信
される迄は前のデータを記憶しておく。制御装置は配下
に例えば400台という多数の端末を持っており、その各
端末毎に現在の処理番号を保管し、そして上記の前者で
はキャンセルデータの保管を行う。処理番号は循環使用
が可能であり、集計誤差をカバーできる小数ビット例え
ば1バイトでよい。端末はリカバリデータ(処理番号
等)を送ったら通常のアイドル状態になり、発券要求RQ
がありそして制御装置がENQがあればADを送る。In the above example, the processing number is also used in the control device, and the processing number is canceled in this example. Therefore, if the processing number of the terminal is i, the processing number of the control device is i-1.
Therefore, the i-th data is stored and tabulated again.
Alternatively, the control device instructs to send the data of terminal i,
In response to this, the terminal sends the i-th data. For this purpose, of course, in the former case, the control device stores the cancel data at least until the next AD storage and totalization is normally completed, and in the latter case, the terminal device waits until the next data is normally received by the control device. The data of is stored. The control device has a large number of terminals under its control, for example, 400 terminals. The current processing number is stored for each of the terminals, and the cancellation data is stored in the former case. The processing number can be used cyclically, and may be a fractional bit, for example, 1 byte, which can cover a counting error. When the terminal sends the recovery data (process number, etc.), it goes into a normal idle state and issues a ticket request RQ.
Send AD if there is and the controller has ENQ.
端末側で異常を検出した場合の処理を第1図に示す。FIG. 1 shows the processing when an abnormality is detected on the terminal side.
第1図で端末は、異常を検知するとリカバリ処理モード
に入り、そのとき発券に関する動作中であれば該動作を
キャンセルする。制御装置はポーリングモードであり、
ENQを送ってくる。これを受けると端末はリカバリ照会A
Dを送り、制御装置は該ADを受けると最後に処理したデ
ータの処理番号をリカバリ照会RDで端末へ送り、端末は
それを受けるとACKを返すと共に照会データチェックに
入り、自分の持っている最終処理番号と比較する。制御
装置はその後、再びENQを送ってくるが、端末装置はこ
のとき上記の比較の結果をリカバリ処理ADとして制御装
置へ送出する。リカバリ処理ADは例えば2ビットとし、
各々は次のことを意味する。In FIG. 1, when the terminal detects an abnormality, the terminal enters the recovery processing mode and cancels the operation related to the ticket issuing at that time. The controller is in polling mode,
Send me an ENQ. Upon receiving this, the terminal makes a recovery inquiry A
When D is sent and the control device receives the AD, the processing number of the last processed data is sent to the terminal by recovery inquiry RD, and when the terminal receives it, it returns ACK and enters inquiry data check, which it has Compare with the final treatment number. After that, the control device sends ENQ again, but at this time, the terminal device sends the result of the above comparison to the control device as the recovery process AD. Recovery processing AD is, for example, 2 bits,
Each means the following:
0:データ一致(リカバリ処理不要) 1:データ不一致(集計データをキャンセルせよ) 2: 〃 (キャンセルデータを再集計せよ) 3:チェック不能(自動修正不能のためアラーム出力し、
マニュアル修正せよ) 上記の0は集計状態は正常の場合、1は過大集計、2は
過小集計である。回線障害時の殆どは0〜2の状態にな
り、自動修正可能である。3は端末自身が障害の場合に
考えられるが、この場合は少数ケースと考えられ、マニ
ュアル集計により対応してそれ程支障はない。この場合
も制御装置には、各端末別に、少なくとも次回データが
正常処理されるまでは前回データを保管させておく。0: Data match (recovery process not required) 1: Data mismatch (cancel aggregated data) 2: 〃 (Re-aggregate canceled data) 3: Uncheckable (alarm output because automatic correction is impossible,
Manual correction) When 0 is the normal counting state, 1 is over-counting, and 2 is under-counting. In the case of line failure, most of the time is 0 to 2, and automatic correction is possible. No. 3 can be considered when the terminal itself has a failure, but in this case, it is considered to be a small number of cases, and there is no problem so much as it is dealt with by manual tabulation. Also in this case, the control device stores the previous data for each terminal at least until the next normal processing of the data.
制御装置はリカバリ処理ADを受けるとその処理を行い、
処理終了を告げるリカバリ処理RDを端末へ送り、所定の
保証時間中何もしない。端末装置はリカバリRDをうける
とACKを返し、キャンセル待ちになる。何もなければ共
にアイドル状態になり、制御装置は周期的なENQ送出を
再開する。When the control device receives the recovery processing AD, it performs that processing,
Send the recovery process RD to the terminal to notify the end of the process and do nothing during the specified guarantee time. When the terminal device receives the recovery RD, it returns ACK and waits for cancellation. If there is nothing, both will be in an idle state, and the control device will restart the periodic ENQ transmission.
リカバリ処理モードでは通常の処理に優先してリカバリ
処理を先に行い、前の処理での集計に誤差がある場合に
自動修正を行う。また端末自身が障害によりリセットし
たり電源再投入した場合も同様にリカバリ処理モードに
なり、リカバリ処理手順の後で立上るようにする。リカ
バリ処理モードとなる条件を一括して示すと、制御装置
側から指示された場合、キャンセル待ち時に動作キャン
セルを行った場合、及び電源投入/リセットした場合、
である。In the recovery processing mode, the recovery processing is performed prior to the normal processing, and automatic correction is performed when there is an error in the aggregation in the previous processing. Also, when the terminal itself is reset due to a failure or when the power is turned on again, the terminal similarly enters the recovery processing mode and is started after the recovery processing procedure. The conditions for the recovery processing mode are collectively indicated as follows: when instructed by the control device side, when the operation is canceled while waiting for the cancellation, and when the power is turned on / reset.
Is.
第1図では照会データチェックを端末側で行っている
が、これは制御装置側で行ってもよい。第2図はこれを
説明する図で、(a)は前者、(b)は後者を示す。Although the inquiry data check is performed on the terminal side in FIG. 1, this may be performed on the control device side. FIG. 2 is a diagram for explaining this, where (a) shows the former and (b) shows the latter.
以上説明したように本発明によれば、従来は集計誤差の
可能性のある場合にはアラーム停止により手修正を行う
ことが必要であったが、これを自動的に修正することが
可能になり、信頼性の高いトータリゼータシステム(投
票券発売機制御システム)を構築できる。特に手順上の
打ち切り範囲を越えるような障害の場合でも次の手順で
保証するようにした事で、簡単な手順でも信頼性の高い
システムを提供できる点で効果が大きい。As described above, according to the present invention, conventionally, when there is a possibility of a counting error, it was necessary to manually correct by stopping the alarm, but this can be corrected automatically. , A highly reliable totalizer system (voting ticket vending machine control system) can be built. In particular, even in the case of a failure that exceeds the censored range in the procedure, the following procedure guarantees it, which is highly effective in providing a highly reliable system even with a simple procedure.
第1図および第2図は本発明の実施例の説明図、第3図
はトータリゼータシステムの説明図、第4図ないし第6
図はデータ伝送要領の説明図である。 図面でADはアテンションデータ、RDはリスポンスデー
タ、ENQは問い合わせ信号、ACKは肯定応答信号である。1 and 2 are explanatory views of an embodiment of the present invention, FIG. 3 is an explanatory view of a totalizer system, and FIGS. 4 to 6
The figure is an illustration of a data transmission procedure. In the drawing, AD is attention data, RD is response data, ENQ is an inquiry signal, and ACK is an acknowledgment signal.
Claims (1)
し、制御装置がポーリング方式で各端末から送出させた
データの集計を行うシステムにおける集計誤差修正方法
において、 端末装置が異常を検出したときには、自身でリカバリ処
理モードに入り、制御装置から正常時に周期的に送られ
る問い合わせ信号に対する応答としてリカバリ照会デー
タを返送し、制御装置は端末装置からの上記リカバリ照
会データに対する応答として最終処理データを端末装置
へ送出し、端末装置は自身が持つ最終処理データと制御
装置から送られた上記最終処理データとを比較して、そ
の比較結果を上記問い合わせ信号に対する応答として返
送し、その後制御装置は端末装置から返送された比較結
果の内容が不一致を示していれば、その差分データにつ
いての集計又はキャンセル処理を行うことを特徴とする
集計誤差修正方法。1. A method for correcting an error in a system in which a control device and a large number of terminals are connected by a communication line, and the control device totalizes data sent from each terminal by a polling method. When it does, it enters the recovery processing mode by itself and returns the recovery inquiry data as a response to the inquiry signal periodically sent from the control device at normal times, and the control device sends the final processing data as a response to the recovery inquiry data from the terminal device. To the terminal device, the terminal device compares the final processing data that it has with the final processing data sent from the control device, and returns the comparison result as a response to the inquiry signal, after which the control device If the content of the comparison result returned from the terminal device indicates a mismatch, the difference data A method of correcting a totalization error, characterized by performing totalization or cancellation processing.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60277303A JPH0732414B2 (en) | 1985-12-10 | 1985-12-10 | Correction method of total error |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP60277303A JPH0732414B2 (en) | 1985-12-10 | 1985-12-10 | Correction method of total error |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPS62136949A JPS62136949A (en) | 1987-06-19 |
| JPH0732414B2 true JPH0732414B2 (en) | 1995-04-10 |
Family
ID=17581656
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP60277303A Expired - Lifetime JPH0732414B2 (en) | 1985-12-10 | 1985-12-10 | Correction method of total error |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0732414B2 (en) |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS5535528A (en) * | 1978-09-06 | 1980-03-12 | Toshiba Corp | Communication control system |
| JPS5786934A (en) * | 1980-11-19 | 1982-05-31 | Casio Comput Co Ltd | Data collection system |
-
1985
- 1985-12-10 JP JP60277303A patent/JPH0732414B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPS62136949A (en) | 1987-06-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JPH0732414B2 (en) | Correction method of total error | |
| JPS5981940A (en) | Data transfer system | |
| JPH02189663A (en) | Input/output data transfer system | |
| US6833928B2 (en) | Image forming apparatus supervising system | |
| JP2528225Y2 (en) | Electronic interlocking device | |
| JPS59229660A (en) | Updating method of data file | |
| JPS63248252A (en) | Data transmission method | |
| JP3123575B2 (en) | Voting ticket issuing system | |
| JP2513120B2 (en) | Non-stop type information processing device | |
| JPS6325736B2 (en) | ||
| JPS5814204A (en) | Microcomputer control device | |
| JP2507072B2 (en) | Recovery method | |
| JP2683474B2 (en) | Remote control system | |
| JPS61172450A (en) | Noise quantity detector | |
| JPS62287354A (en) | Method for preventing generation of time-over error during high load operation of on-line processing system | |
| JPH04109792A (en) | Automatic sales data collection system | |
| JPH02149042A (en) | Network data collection system | |
| JPS6252352B2 (en) | ||
| JPH06149699A (en) | Data transmission system | |
| JPH0353663B2 (en) | ||
| JPH06348652A (en) | Preventive maintenance system for terminal equipment | |
| JPS62239245A (en) | Out-of-control program detection system | |
| JPH0159782B2 (en) | ||
| JPS63220332A (en) | Computer monitoring system | |
| JPH07264182A (en) | How to check communication data |