JP2010026862A - Ordering system, information management system, method for preventing order information from disappearing, and program - Google Patents
Ordering system, information management system, method for preventing order information from disappearing, and program Download PDFInfo
- Publication number
- JP2010026862A JP2010026862A JP2008188783A JP2008188783A JP2010026862A JP 2010026862 A JP2010026862 A JP 2010026862A JP 2008188783 A JP2008188783 A JP 2008188783A JP 2008188783 A JP2008188783 A JP 2008188783A JP 2010026862 A JP2010026862 A JP 2010026862A
- Authority
- JP
- Japan
- Prior art keywords
- information
- order
- registration
- index
- storage means
- 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
Links
- 238000000034 method Methods 0.000 title claims description 77
- 230000010365 information processing Effects 0.000 claims abstract description 69
- 238000012545 processing Methods 0.000 claims description 84
- 230000005540 biological transmission Effects 0.000 claims description 39
- 238000001514 detection method Methods 0.000 claims description 36
- 238000004891 communication Methods 0.000 claims description 23
- 238000011084 recovery Methods 0.000 claims description 23
- 230000002265 prevention Effects 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 3
- 238000012790 confirmation Methods 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 230000001174 ascending effect Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
Images
Landscapes
- Cash Registers Or Receiving Machines (AREA)
Abstract
Description
本発明は、外食産業などで使用されるオーダリングシステム、及びシステムの電源断時に情報の消失を防止する情報管理システム、及び当該オーダリングシステムの電源断時に注文情報の消失を防止する注文情報消失防止方法、及びそのプログラムに関する。 The present invention relates to an ordering system used in the restaurant industry, etc., an information management system for preventing loss of information when the system is turned off, and an order information loss prevention method for preventing loss of order information when the ordering system is turned off. And the program.
従来、飲食店等では接客係が注文入力装置を用いて注文の入力を行い、注文を厨房のホスト装置に無線通信で送信するオーダリングシステムが利用されている。通常、ホスト装置は商用電源からの電力によって稼動する。そのため、停電や、電源に接続されているケーブルが脱落した場合にホスト装置において揮発性メモリに書き込まれた注文情報が消失してしまうことを避ける必要がある。そのため、従来は無停電電源装置を備え、電源断時に電源を無停電電源装置に切り替えることで揮発性メモリの情報の消失を防いでいた。
なお、ホスト装置における電源断時の緊急停止処理方法として特許文献1、特許文献2の技術が開示されている。
In addition, the technique of patent document 1 and the patent document 2 is disclosed as an emergency stop processing method at the time of the power failure in a host apparatus.
特許文献1の技術では、ホスト装置の揮発性メモリに電源バックアップを備え、揮発性メモリが記憶する注文情報の消失を防いでいる。しかし、揮発性メモリへの書き込みの途中で電源断が発生するなどによって、揮発性メモリが記憶する注文情報が欠損してしまい、注文情報に誤りが無いことを保証することができなくなる可能性があった。
特許文献2の技術では、オーダリングシステムは複数のホスト装置を備え、複数のホスト装置が同一の情報を記憶することで、あるホスト装置に障害が発生しても他のホスト装置が稼動しているためにオーダリングシステムは注文情報の消失を防いでいる。しかし、停電などによる電源断が発生した場合、全てのホスト装置の稼動が停止することとなる。ホスト装置は電源バックアップを備えるため、揮発性メモリが記憶する注文情報の消失を防ぐことができるが、その場合は特許文献1と同様に、揮発性メモリへの書き込みの途中で電源断が発生するなどによって、揮発性メモリが記憶する注文情報が欠損してしまい、注文情報に誤りが無いことを保証することができなくなる可能性があった。
本発明は上記の点に鑑みてなされたものであり、その目的は、揮発性メモリへの書き込みの途中で電源断が発生しても、注文情報の欠損を防ぐことができるオーダリングシステムを提供することにある。
In the technique of Patent Document 1, the volatile memory of the host device is provided with a power backup, and the order information stored in the volatile memory is prevented from being lost. However, there is a possibility that the order information stored in the volatile memory may be lost due to a power failure during the writing to the volatile memory, and it is impossible to guarantee that the order information is error-free. there were.
In the technique of Patent Document 2, the ordering system includes a plurality of host devices, and the plurality of host devices store the same information, so that even if a failure occurs in a certain host device, another host device is operating. Therefore, the ordering system prevents the loss of order information. However, when the power is cut off due to a power failure or the like, the operation of all the host devices is stopped. Since the host device has a power backup, the order information stored in the volatile memory can be prevented from being lost. In this case, as in Patent Document 1, a power interruption occurs during writing to the volatile memory. For example, the order information stored in the volatile memory may be lost, and it may not be possible to guarantee that the order information is free of errors.
The present invention has been made in view of the above points, and an object of the present invention is to provide an ordering system that can prevent order information from being lost even if a power failure occurs during writing to a volatile memory. There is.
本発明は上記の課題を解決するためになされたものであり、使用者から注文の入力を受け付け、伝票番号を含み当該注文の内容を示す注文情報を送信する注文入力装置と、前記注文入力装置から前記注文情報を受信し、当該注文情報の管理を行うホスト装置と、注文の会計を行い、前記伝票番号を含み当該会計の完了を示す会計情報を生成し、前記会計情報を送信する会計装置と、前記ホスト装置から受信した情報に基づいて出力情報を生成し、当該出力情報を出力する出力装置とを備えるオーダリングシステムであって、前記ホスト装置は、前記注文入力装置または前記会計装置または前記出力装置と通信を行う通信手段と、前記注文入力装置または前記会計装置から受信した、前記注文情報または前記会計情報を逐次記憶手段に登録する受信情報登録手段と、前記伝票番号に対応付けて、前記伝票番号毎に統合した前記注文情報または前記会計情報を示す注文管理情報を注文管理情報記憶手段に登録し、当該登録が完了したことを示す注文管理情報登録識別情報を前記逐次記憶手段に登録する注文管理情報登録手段と、前記注文管理情報の登録が完了したことを示す受付完了通知を前記注文入力装置または前記会計装置に送信し、当該受付完了通知の送信が完了したことを示す受付完了通知送信識別情報を前記逐次記憶手段に登録する受付完了通知送信手段と、前記出力装置に、注文の内容を示す伝票情報の出力命令を送信する伝票出力命令送信手段と、前記出力装置からの前記伝票情報の出力完了を示す通知の受信後、前記伝票情報の出力が完了したことを示す伝票出力識別情報を前記逐次記憶手段に登録する伝票出力完了通知受信手段と、前記逐次記憶手段に情報が登録される毎に前記逐次記憶手段の末尾の情報の位置を示すインデックスをインデックス記憶手段に登録するインデックス登録手段と、前記受信情報登録手段、前記注文管理情報登録手段、前記受付完了通知送信手段、前記伝票出力命令送信手段、前記伝票出力完了通知受信手段が実行する処理の順番を示す処理手順情報を予め記憶する処理手順記憶手段と、前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報と前記処理手順情報とに基づいて再起動前に完了した処理を判定し、当該完了した処理以降の処理を実行することで前記ホスト装置の復旧を行う復旧手段と、を備えることを特徴とする。 The present invention has been made in order to solve the above-described problem. An order input device that receives an order input from a user and transmits order information including a slip number and indicating the content of the order, and the order input device. An accounting apparatus that receives the order information from the host, manages the order information, performs accounting for the order, generates accounting information including the slip number and indicates completion of the accounting, and transmits the accounting information And an output device that generates output information based on information received from the host device and outputs the output information, wherein the host device is the order input device, the accounting device, or the A communication means for communicating with the output device, and the order information or the accounting information received from the order input device or the accounting device are sequentially registered in the storage means. Registration information registration means, and the order management information indicating the order information or the accounting information integrated for each slip number in association with the slip number is registered in the order management information storage means, and the registration is completed. Order management information registration means for registering the order management information registration identification information shown in the sequential storage means, and a reception completion notification indicating that the registration of the order management information is completed to the order input device or the accounting device, A reception completion notification transmission means for registering the reception completion notification transmission identification information indicating that the transmission of the reception completion notification is completed in the sequential storage means, and a slip information output command indicating the contents of the order is transmitted to the output device. A slip output command transmission means, and a slip output identification indicating that the output of the slip information is completed after receiving a notification indicating completion of output of the slip information from the output device. A slip output completion notification receiving means for registering information in the sequential storage means, and an index for registering an index indicating the position of information at the end of the sequential storage means in the index storage means each time information is registered in the sequential storage means Processing procedure information indicating the order of processing executed by the registration means, the reception information registration means, the order management information registration means, the acceptance completion notification transmission means, the slip output command transmission means, and the slip output completion notification reception means; Processing procedure storage means stored in advance, and when the host device is restarted, the tail information of the sequential storage means is acquired based on the index stored in the index registration means, and the tail information and the processing Based on the procedure information, the process completed before the restart is determined, and the process after the completed process is executed to execute the process of the host device. And a recovery means for performing recovery.
また、本発明の前記ホスト装置は、前記インデックスを予備インデックス記憶手段に登録する予備インデックス登録手段と、前記インデックス記憶手段または前記予備インデックス記憶手段に上記インデックスが登録される毎に、当該インデックスの誤りを検出する誤り検出符号を、当該インデックスが登録された記憶手段に登録するインデックス誤り検出符号登録手段と、前記インデックス記憶手段及び前記予備インデックス記憶手段の前記誤り検出符号によって前記インデックスの誤りを検出し、前記インデックス記憶手段の前記インデックスに誤りが検出された場合、前記予備インデックス記憶手段の前記インデックスを前記インデックス記憶手段に複写し、前記予備インデックス記憶手段の前記インデックスに誤りが検出された場合、前記インデックス記憶手段の前記インデックスを前記予備インデックス記憶手段に複写するインデックス復旧手段と、を備えることを特徴とする。 The host device according to the present invention includes a spare index registration unit that registers the index in the spare index storage unit, and an error of the index every time the index is registered in the index storage unit or the spare index storage unit. An error in the index is detected by an index error detection code registration means for registering an error detection code for detecting the error in the storage means in which the index is registered, and the error detection code of the index storage means and the spare index storage means. When an error is detected in the index of the index storage means, the index of the reserve index storage means is copied to the index storage means, and an error is detected in the index of the reserve index storage means Characterized in that it comprises a and an index recovery means for copying the index of the index storage means to said pre-index storage unit.
また、本発明の前記逐次記憶手段は、注文情報の後に注文管理情報登録識別情報が登録され、また会計情報の後に注文管理情報登録識別情報が登録されるものであり、前記ホスト装置は、前記注文管理情報登録識別情報の登録完了後、前記伝票番号に対応付けて、前記注文管理情報を予備注文管理情報記憶手段に登録し、当該登録が完了したことを示す予備注文管理情報登録識別情報を前記逐次記憶手段に登録する予備注文管理情報登録手段と、前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記逐次記憶手段の末尾の情報が注文情報または会計情報であった場合、前記予備注文管理情報記憶手段の前記注文管理情報を前記注文管理情報記憶手段に複写し、前記逐次記憶手段の末尾の情報が注文管理情報登録識別情報であった場合、前記注文管理情報記憶手段の前記注文管理情報を前記予備注文管理情報記憶手段に複写し、前記予備注文管理情報登録識別情報を前記逐次記憶手段に登録する注文管理情報復旧手段と、を備えること特徴とする。 Further, the sequential storage means of the present invention is such that order management information registration identification information is registered after order information, and order management information registration identification information is registered after accounting information. After the registration of the order management information registration identification information is completed, the order management information is registered in the preliminary order management information storage means in association with the slip number, and the preliminary order management information registration identification information indicating that the registration is completed. Preliminary order management information registration means for registering in the sequential storage means, and at the time of restarting the host device, acquiring the tail information of the sequential storage means based on the index stored in the index registration means, When the information at the end of the sequential storage means is order information or accounting information, the order management information storage means stores the order management information in the preliminary order management information storage means. When the information at the end of the sequential storage means is order management information registration identification information, the order management information in the order management information storage means is copied to the preliminary order management information storage means, and the preliminary order management Order management information recovery means for registering information registration identification information in the sequential storage means.
また、本発明の前記ホスト装置は、交流電源に接続され、前記交流電源の電力を所定の電圧に分圧し、当該分圧した電力を当該電力で稼動する自装置の各処理手段に供給し、前記交流電源からの電力供給が中断した場合、分圧した電力出力の中断により出力電圧が0になる第1の分圧手段と、前記交流電源に接続され、前記交流電源の電力を前記第1の分圧手段が出力する電圧と異なる電圧に分圧し、当該分圧した電力を当該電力で稼動する少なくとも前記各登録手段を含む自装置の各処理手段に供給し、前記交流電源からの電力供給が無くなった場合、前記第1の分圧部が出力する電圧が0になった時刻よりも所定の時間後に出力する電圧が0になる第2の分圧手段と、を有する構成であり、前記第1の分圧部の電圧低下が発生した場合に、前記第2の分圧手段の電圧低下発生予告を出力する電源断検出手段と、予め、前記電圧低下発生予告の出力があった時刻から前記第2の分圧手段が出力する電圧が0になる時刻までの時間である電力残留時間と、前記逐次記憶手段に登録する情報の何れかを前記逐次記憶手段に登録し、当該情報に関するインデックスを前記インデックス記憶手段に登録することができる最低限の時間である登録所要時間とを記憶する登録時間記憶手段と、前記電圧低下発生予告の取得後、前記電力残留時間から前記登録所要時間を減じた時間である登録許可時間以降の前記記憶手段への情報の新規登録を禁止する登録制御手段と、を備え、前記各登録手段は前記登録許可時間以内に前記逐次記憶手段に登録する情報の前記逐次記憶手段への登録を開始する、ことを特徴とする。 Further, the host device of the present invention is connected to an AC power source, divides the power of the AC power source into a predetermined voltage, and supplies the divided power to each processing means of the own device operating with the power, When power supply from the AC power supply is interrupted, the voltage dividing power output is interrupted to interrupt the output voltage to zero, and the first voltage dividing means is connected to the AC power supply. The voltage is divided into a voltage different from the voltage output by the voltage dividing means, and the divided power is supplied to each processing means of the own apparatus including at least each of the registration means operated by the power, and the power supply from the AC power supply And the second voltage dividing means that the voltage outputted after a predetermined time becomes 0 after the time when the voltage outputted by the first voltage dividing part becomes 0, When a voltage drop occurs in the first voltage divider The power-off detecting means for outputting the voltage drop occurrence notice of the second voltage dividing means, and the voltage output by the second voltage dividing means from the time when the voltage drop occurrence notice is output in advance becomes zero. Either the remaining power time, which is the time until the time, or the information registered in the sequential storage unit, is registered in the sequential storage unit, and the minimum time during which an index related to the information can be registered in the index storage unit Registration time storage means for storing the required registration time, and information to the storage means after the registration permission time, which is a time obtained by subtracting the required registration time from the remaining power time after obtaining the voltage drop occurrence notice. Registration control means for prohibiting new registration, and each registration means starts registration of information to be registered in the sequential storage means within the sequential storage means within the registration permission time. It is characterized in.
また、本発明は、使用者から情報の入力を受け付け、入力された情報である入力情報を送信する入力装置と、前記入力装置から前記入力情報を受信し、当該入力情報の管理を行うホスト装置と、を備える情報管理システムであって、前記ホスト装置は、前記入力装置または前記出力装置と通信を行う通信手段と、前記入力装置から受信した、前記入力情報を逐次記憶手段に登録する入力情報登録手段と、前記入力情報に対して処理を行い、当該処理が完了したことを示す処理完了識別情報を前記逐次記憶手段に登録する1つまたは複数の入力情報処理手段と、前記逐次記憶手段に情報が登録される毎に前記逐次記憶手段の末尾の情報の位置を示すインデックスをインデックス記憶手段に登録するインデックス登録手段と、1つまたは複数の前記入力情報処理手段が実行する処理の順番を示す処理手順情報を予め記憶する処理手順記憶手段と、前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報と前記処理手順記憶手段に記憶されている処理手順情報とに基づいて再起動前に完了した処理を判定し、当該完了した処理以降の処理を実行することで前記ホスト装置の復旧を行う復旧手段と、を備えることを特徴とする。 The present invention also includes an input device that receives input of information from a user and transmits input information that is input information, and a host device that receives the input information from the input device and manages the input information The host device includes: a communication unit that communicates with the input device or the output device; and input information that is received from the input device and that sequentially registers the input information in a storage unit One or a plurality of input information processing means for performing processing on the input information, registering processing completion identification information indicating completion of the processing in the sequential storage means, and the sequential storage means An index registration means for registering an index indicating the position of the last information of the sequential storage means in the index storage means each time information is registered; Processing procedure storage means for storing processing procedure information indicating the order of processing executed by the input information processing means, and the sequential storage based on the index stored in the index registration means when the host device is restarted The information at the end of the means is acquired, the process completed before restart is determined based on the information at the end and the processing procedure information stored in the processing procedure storage means, and the processing after the completed processing is determined. And a recovery means for recovering the host device by executing.
また、本発明は、使用者から注文の入力を受け付け、伝票番号を含む注文情報を生成し、当該注文情報を送信する注文入力装置と、前記注文入力装置から前記注文情報を受信し、当該注文情報の管理を行うホスト装置と、注文の会計を行い、前記伝票番号を含み当該会計の完了を示す会計情報を生成し、当該会計情報を送信する会計装置と、前記ホスト装置から受信した情報に基づいて出力情報を生成し、当該出力情報を出力する出力装置とを備えるオーダリングシステムにおける注文情報消失防止方法であって、前記ホスト装置の通信手段は、前記注文入力装置または前記会計装置または前記出力装置と通信を行い、前記ホスト装置の前記受信情報登録手段は、前記注文入力装置または前記会計装置から受信した、前記注文情報または前記会計情報を逐次記憶手段に登録し、前記ホスト装置の注文管理情報登録手段は、前記伝票番号に対応付けて、前記伝票番号毎に統合した前記注文情報または前記会計情報を注文管理情報として注文管理情報記憶手段に登録し、当該登録が完了したことを示す注文管理情報登録識別情報を前記逐次記憶手段に登録し、前記ホスト装置の受付完了通知送信手段は、前記注文管理情報の登録が完了したことを示す受付完了通知を前記注文入力装置または前記会計装置に送信し、当該受付完了通知の送信が完了したことを示す受付完了通知送信識別情報を前記逐次記憶手段に登録し、前記ホスト装置の伝票出力命令送信手段は、前記出力装置に伝票情報の出力命令を送信し、前記ホスト装置の伝票情報出力完了通知受信手段は、前記出力装置からの前記伝票情報の出力完了を示す通知の受信後、前記伝票情報の出力が完了したことを示す伝票出力識別情報を前記逐次記憶手段に登録し、前記ホスト装置のインデックス登録手段は、前記逐次記憶手段に情報が登録される毎に情報の末尾の位置を示すインデックスをインデックス記憶手段に登録し、前記ホスト装置の復旧手段は、前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報に基づいて前記ホスト装置の復旧を行う、ことを特徴とする。 The present invention also receives an order input from a user, generates order information including a slip number, transmits the order information, receives the order information from the order input device, and receives the order. A host device that manages information, and performs accounting for the order, generates accounting information that includes the slip number and indicates completion of the accounting, transmits the accounting information, and information received from the host device. An order information loss prevention method in an ordering system including output information based on an output device and outputting the output information, wherein the communication means of the host device is the order input device, the accounting device, or the output The reception information registration means of the host device communicates with the device, the order information received from the order input device or the accounting device, or the Total information is sequentially registered in the storage means, and the order management information registration means of the host device associates with the slip number and manages the order information or the accounting information integrated for each slip number as order management information. Registering in the information storage means, registering the order management information registration identification information indicating that the registration has been completed in the sequential storage means, and receiving completion notification transmission means of the host device has completed registration of the order management information A reception completion notification indicating that the reception completion notification is transmitted to the order input device or the accounting device, and registration completion notification transmission identification information indicating that the transmission of the reception completion notification is completed is registered in the sequential storage unit. The slip output command transmission means transmits a slip information output command to the output device, and the slip information output completion notification reception means of the host device receives the previous information from the output device. After receiving the notification indicating the completion of the output of the slip information, the slip output identification information indicating that the output of the slip information is completed is registered in the sequential storage means, and the index registration means of the host device is stored in the sequential storage means. Each time the information is registered, an index indicating the position of the end of the information is registered in the index storage unit, and the recovery unit of the host device stores the index stored in the index registration unit when the host device is restarted The end information of the sequential storage means is acquired based on the information, and the host device is restored based on the end information.
また、本発明は、使用者から注文の入力を受け付け、伝票番号を含む注文情報を生成し、当該注文情報を送信する注文入力装置と、前記注文入力装置から前記注文情報を受信し、当該注文情報の管理を行うホスト装置と、注文の会計を行い、前記伝票番号を含み当該会計の完了を示す会計情報を生成し、前記会計情報を送信する会計装置と、前記ホスト装置から受信した情報に基づいて出力情報を生成し、当該出力情報を出力する出力装置とを備えるオーダリングシステムにおける前記ホスト装置のコンピュータを、前記注文入力装置または前記会計装置または前記出力装置と通信を行う通信手段、前記注文入力装置または前記会計装置から受信した、前記注文情報または前記会計情報を逐次記憶手段に登録する受信情報登録手段、前記伝票番号に対応付けて、前記伝票番号毎に統合した前記注文情報または前記会計情報を注文管理情報として注文管理情報記憶手段に登録し、当該登録が完了したことを示す注文管理情報登録識別情報を前記逐次記憶手段に登録する注文管理情報登録手段、前記注文管理情報の登録が完了したことを示す受付完了通知を前記注文入力装置または前記会計装置に送信し、当該受付完了通知の送信が完了したことを示す受付完了通知送信識別情報を前記逐次記憶手段に登録する受付完了通知送信手段、前記出力装置に伝票情報の出力命令を送信する伝票出力命令送信手段、前記出力装置からの前記伝票情報の出力完了を示す通知の受信後、前記伝票情報の出力が完了したことを示す伝票出力識別情報を前記逐次記憶手段に登録する伝票情報出力完了通知受信手段、前記逐次記憶手段に情報が登録される毎に情報の末尾の位置を示すインデックスをインデックス記憶手段に登録するインデックス登録手段、前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報に基づいて前記ホスト装置の復旧を行う復旧手段、として機能させるためのプログラムである。 The present invention also receives an order input from a user, generates order information including a slip number, transmits the order information, receives the order information from the order input device, and receives the order. A host device for managing information, accounting for the order, generating accounting information including the slip number and indicating completion of the accounting, and transmitting the accounting information; and information received from the host device A communication unit that communicates with the order input device, the accounting device, or the output device, the computer of the host device in an ordering system that generates output information based on the output device and outputs the output information; Received information registration means for sequentially registering the order information or the accounting information received in the storage means received from the input device or the accounting device, the slip The order information or the accounting information integrated for each voucher number is registered in the order management information storage means as order management information, and the order management information registration identification information indicating that the registration is completed Order management information registration means for registering in the sequential storage means, a reception completion notification indicating that the registration of the order management information has been completed is transmitted to the order input device or the accounting device, and transmission of the reception completion notification is completed Reception completion notification transmission means for registering the reception completion notification transmission identification information indicating the information in the sequential storage means, slip output command transmission means for transmitting a slip information output command to the output device, and output of the slip information from the output device After receiving notification indicating completion, slip information output completion notification for registering slip output identification information indicating completion of output of the slip information in the sequential storage means Each time information is registered in the sequential storage means, an index registration means for registering an index indicating the end position of the information in the index storage means, and when the host device is restarted, the index registration means stores the index. The program for obtaining information at the end of the sequential storage means based on the index and for causing the host device to recover based on the information at the end.
本発明によれば、逐次記憶手段への登録が完了してからインデックス記憶手段にインデックスを登録するので、インデックスによって示される逐次記憶手段の末尾の情報までの登録が完了し、当該情報に誤りが無いことを保証することができる。これにより、逐次記憶手段への登録の途中で電源断が発生しても、注文情報、会計情報、注文管理情報を保証することができる。
また、本発明によれば、インデックスに誤り検出符号を付与し、予備インデックス記憶手段をさらに備えることで、インデックス記憶手段に登録されているインデックスに誤りが無いことを保証することができる。これにより、インデックス記憶手段への登録の途中で電源断が発生しても、登録の完了している情報に関するインデックスに誤りが無いため、欠損の無い注文情報、会計情報、注文管理情報を保証することができる。
また、本発明によれば、予備注文管理情報記憶手段をさらに備え、注文管理情報を二重管理することで、注文管理情報記憶手段に登録されている注文管理情報に誤りが無いことを保証することができる。これにより、注文管理情報記憶手段への登録の途中で電源断が発生しても、欠損のない注文管理情報を保証することができる。
また、本発明によれば、電力低下が発生する時間が異なる2つの分圧部を用い、情報の登録が可能な時間を保証することで、電力低下時に各記憶手段が欠損なく情報登録を完了し、記憶する情報に誤りが無いことを保証することができる。これにより、記憶手段への登録の途中での電源断の発生を防ぐことができるため、欠損の無い注文情報、会計情報、注文管理情報を保証することができる。
According to the present invention, since the index is registered in the index storage unit after the registration in the sequential storage unit is completed, the registration up to the last information of the sequential storage unit indicated by the index is completed, and there is an error in the information. It can be guaranteed that there is no. As a result, even if the power is cut off during the registration to the sequential storage means, the order information, the accounting information, and the order management information can be guaranteed.
In addition, according to the present invention, it is possible to guarantee that there is no error in the index registered in the index storage unit by adding an error detection code to the index and further including a spare index storage unit. As a result, even if the power is cut off during registration in the index storage means, there is no error in the index related to the information that has been registered, so order information, accounting information, and order management information that are not missing are guaranteed. be able to.
In addition, according to the present invention, it is further provided with a preliminary order management information storage means, and the order management information registered in the order management information storage means is guaranteed to be error-free by managing the order management information twice. be able to. As a result, even if the power is cut off during the registration to the order management information storage means, it is possible to guarantee order management information without any loss.
In addition, according to the present invention, by using two voltage dividers with different power generation times and guaranteeing the time that information can be registered, each storage unit completes information registration without loss when power is reduced. Therefore, it can be ensured that there is no error in the stored information. Thus, it is possible to prevent the occurrence of power interruption during the registration to the storage means, and thus it is possible to guarantee order information, transaction information, and order management information that are free from defects.
以下、図面を参照しながら本発明の実施形態について詳しく説明する。
図1は、本発明の一実施形態によるオーダリングシステムの構成を示す概略ブロック図である。オーダリングシステム1は、ホスト装置10、注文入力装置20、会計装置30、出力装置40を備える。ホスト装置10は、注文入力装置20から注文情報を受信し、注文情報の管理を行う。注文入力装置20は、使用者からの注文の入力を受け付け、ホスト装置10に注文情報を送信する。注文情報は、伝票番号と注文情報識別番号と注文入力装置番号と、注文内容とを含む情報である。ここで注文情報識別番号は、注文入力装置20が、自装置が作成したそれぞれの注文情報に対して付与する固有の識別番号である。
会計装置30は、伝票番号を基にホスト装置10から注文情報を受信し、注文情報が示す注文の会計を行い、会計情報をホスト装置10に送信する。会計情報は、伝票番号を含む情報である。
出力装置40は、ホスト装置10から注文情報を受信し、注文情報から伝票情報(出力情報)を作成し、伝票の出力を行う。なお、ホスト装置10は出力装置40内に備えられる場合があるが、説明の便宜上、ここではホスト装置10と出力装置40を異なる装置として説明する。
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings.
FIG. 1 is a schematic block diagram showing a configuration of an ordering system according to an embodiment of the present invention. The ordering system 1 includes a
The
The
ホスト装置10は、通信部11(通信手段)、注文情報処理部12、RAM(ランダムアクセスメモリ:Random Access Memory)13、電源バックアップ14、電源断検出部15(電源断検出手段)、分圧部16(第1の分圧部)、分圧部17(第2の分圧部)を備える。通信部11は注文入力装置20、会計装置30、出力装置40と通信を行う。RAM13は、注文情報と会計情報と電源断時からの復旧に用いるフラグ(注文管理情報登録識別情報、予備注文管理情報登録識別情報、受付完了通知送信識別情報、伝票出力識別情報)を逐次保持する逐次データ(逐次記憶手段)と、逐次データの末尾の位置を示すインデックスを保持するインデックステーブル(インデックス記憶手段)と予備インデックステーブル(予備インデックス記憶手段)と、伝票番号と注文情報及び会計情報を伝票番号毎に統合した注文管理情報を対応付けて保持した注文管理テーブル(注文管理情報記憶手段)と予備注文管理テーブル(予備注文管理情報記憶手段)と、を記憶する。電源バックアップ14は、電源断時にRAM13へ電源を供給する。電源断検出部15は、分圧部16の電圧低下を検知し、分圧部17の電圧低下予告を注文情報処理部12に通知する。分圧部16、17は商用電源50(交流電源)から100Vの電源を取得し、それぞれ電圧を24V、5Vに変換して出力する電源である。分圧部16が出力する電力はホスト装置10の24Vの電圧で稼動する各処理部に入力され、分圧部17が出力する電力はホスト装置10の5Vの電圧で稼動する各処理部に入力される。少なくとも注文情報処理部12は分圧部17が出力する電力で稼動する。
The
注文情報処理部12は、下記(1)〜(8)の処理を行う。すなわち、(1)通信部11が取得した注文情報及び会計情報を逐次データに登録する処理(受信情報登録手段)、(2)注文情報及び会計情報に基づいて注文管理テーブル及び予備注文管理テーブルの情報を更新する処理(注文管理情報登録手段、予備注文管理情報登録手段)、(3)通信部11を介して注文入力装置20及び会計装置30に受付完了通知を送信する処理(受付完了通知送信手段)、(4)通信部11を介して出力装置40に伝票出力命令を送信し、伝票情報出力完了通知を受信する処理(伝票出力命令送信手段、伝票情報出力完了通知受信手段)、(5)インデックステーブル及び予備インデックステーブルにインデックスを登録する処理(インデックス登録手段、予備インデックス登録手段)、(6)インデックステーブル、予備インデックステーブルの情報に誤り検出符号を付与する処理(インデックス誤り検出符号登録手段)、(7)電圧低下予告を取得し、予め登録されている、分圧部17の電力でRAM13に情報を確実に登録できる時間の間待機し、RAM13に情報を確実に登録できる時間の経過後、RAM13への情報の登録を禁止する処理(登録時間記憶手段、登録制御手段)、(8)予め記憶している、注文情報処理部12が実行する処理の順番を示す処理手順情報とRAM13に格納されている情報とに基づいてホスト装置10を復旧させる処理(処理手順記憶手段、注文管理情報復旧手段、インデックス復旧手段、復旧手段)、である。
The order
図2は、RAMが記憶する逐次データの例を示す図である。
逐次データは、ホスト装置10が注文装置20、会計装置30から取得した情報、及び自装置内の処理の履歴を表す情報を羅列したデータである。図2に示されるように、逐次データには逐次、注文情報、会計情報、注文管理情報登録完了フラグ(注文管理情報登録識別情報)、予備注文管理情報登録完了フラグ(予備注文管理情報登録識別情報)、受付完了通知フラグ(受付完了通知送信識別情報)、伝票出力完了フラグ(伝票出力識別情報)が登録される。注文管理情報登録完了フラグ、予備注文管理情報登録完了フラグは、それぞれ注文管理テーブル、予備注文管理テーブルに注文管理情報の登録が完了したことを示す。受付完了通知フラグは、注文入力装置20または会計装置30へ受付完了通知を送信したことを示す。伝票出力完了フラグは、出力装置40が伝票を出力したことを示す。
FIG. 2 is a diagram illustrating an example of sequential data stored in the RAM.
The sequential data is data in which information acquired by the
図3は、RAMが記憶する注文管理テーブルを示す図である。
注文管理テーブルは、注文装置20、会計装置30から取得した情報を伝票番号毎に統合した注文管理情報を保持するテーブルである。注文管理情報は会計装置30で会計を行う際に使用される。図3に示されるように、注文管理テーブルには、客毎に、伝票番号、注文内容、会計済みフラグが登録される。会計済みフラグは、ONのとき会計装置30が会計処理を終了したことを示し、OFFのとき会計処理が行われていないことを示す。予備注文管理テーブルの構成は注文管理テーブルと同一である。
FIG. 3 is a diagram showing an order management table stored in the RAM.
The order management table is a table that holds order management information obtained by integrating information acquired from the
図4は、RAMが記憶するインデックステーブルを示す図である。
図4に示されるように、インデックステーブルには、逐次データの登録毎にインデックスが登録され、インデックスの登録毎に誤り検出符号を更新する。インデックスは逐次データの各情報の論理アドレスを示すデータである。誤り検出符号は、誤り検出符号を含むインデックステーブル全体のデータに誤りが存在するかを検出する際に用いられる符号である。予備インデックステーブルの構成はインデックステーブルと同一である。
FIG. 4 is a diagram showing an index table stored in the RAM.
As shown in FIG. 4, an index is registered in the index table for each sequential data registration, and the error detection code is updated each time the index is registered. The index is data indicating a logical address of each piece of information of sequential data. The error detection code is a code used when detecting whether an error exists in the data of the entire index table including the error detection code. The configuration of the spare index table is the same as that of the index table.
次に、正常時のオーダリングシステム1の動作を説明する。
図5は、オーダリングシステムの正常時の注文情報登録処理を示すシーケンス図である。
使用者が注文入力装置20に注文を入力し、注文入力装置20が注文確定ボタン(図示せず)の押下等によって注文の送信を受け付けると、注文入力装置20は入力された注文情報をホスト装置10に送信する(ステップS1)。送信された注文情報を、ホスト装置10の注文情報処理部12が通信部11を介して取得する。注文情報処理部12は取得した注文情報をRAM13の逐次データに登録する(ステップS2)。逐次データへの登録処理の詳細は後に説明する。逐次データへの登録処理が終了すると、注文情報処理部12は注文情報に格納されている注文内容をRAM13の注文管理テーブルと予備注文管理テーブルに登録して更新を行う(ステップS3)。注文管理テーブルと予備注文管理テーブルの更新処理の詳細は後に説明する。注文管理テーブルと予備注文管理テーブルの更新処理が終了すると、注文情報処理部12は通信部11を介して注文入力装置20に注文情報の受け付けを完了したことを示す受付完了通知を送信する(ステップS4)。注文入力装置20はステップS1で注文情報を送信してから予め登録してある所定の時間の間、受付完了通知を受信しない場合、ホスト装置10への注文情報の送信が失敗したと判定し、ステップS1に戻って再度注文情報を送信する。
Next, the operation of the ordering system 1 at the normal time will be described.
FIG. 5 is a sequence diagram showing order information registration processing when the ordering system is normal.
When a user inputs an order to the
ホスト装置10の注文情報処理部12は、ステップS4によって受付完了通知を送信すると、受付完了通知フラグをRAM13の逐次データに登録する(ステップS5)。受付完了通知フラグの登録が終了すると、注文情報処理部12は、出力装置40に伝票出力命令を送信する(ステップS6)。伝票出力命令には注文情報が含まれる。出力装置40は伝票出力命令を受信すると伝票出力命令に格納されている注文情報に基づいて伝票情報を生成する。そして、出力装置40は生成した伝票情報を出力する(ステップS7)。次に、伝票情報を出力すると、出力装置40はホスト装置10に伝票出力完了通知を送信する(ステップS8)。送信された伝票出力完了通知を、ホスト装置10の注文情報処理部12が通信部11を介して取得する。伝票出力完了通知を受信すると、注文情報処理部12はRAM13の逐次データに伝票出力完了フラグを登録する(ステップS9)。
なお、ステップS4によって、ホスト装置10が注文入力装置20へ注文受付完了通知を送信したにも関わらず、何らかの理由で注文入力装置20が注文受付完了通知を受信しない場合、注文入力装置20は、ステップS1に戻り、再度注文情報を送信する。ホスト装置10は、受信した注文情報の注文情報識別番号と注文入力装置番号が、それぞれ逐次データの注文情報の中の注文情報識別番号と注文入力装置番号に一致し、かつその注文情報の受付完了フラグが登録済みである場合、ステップS4による注文受付完了通知の送信処理のみを行う。
When the order
If the
なお、本実施例では、注文情報処理部12は、ステップS4によって注文入力装置20に注文情報の受け付けを完了したことを示す受付完了通知を送信し、逐次データに通知フラグを登録した後、ステップS6によって注文情報処理部12から出力装置40に伝票出力命令を送信する例を示した。しかし、これに限られず、以下のような処理手順としてもよい。すなわち、注文情報処理部12は、ステップS3によって注文情報に格納されている注文内容をRAM13の注文管理テーブルと予備注文管理テーブルに登録して更新を行う。注文管理テーブルと予備注文管理テーブルの更新を行うと、注文情報処理部12は、ステップS6によって出力装置40に伝票出力命令を送信する。次に、注文情報処理部12は、ステップS9によって出力装置40から伝票出力完了通知を受信して逐次データに伝票出力完了フラグを登録する。伝票出力完了フラグを登録すると、注文情報処理部12は、ステップS4によって注文入力装置20に受付完了通知を送信し、ステップS5によって受付完了通知フラグをRAM13の逐次データに登録する、という処理手順としてもよい。
In this embodiment, the order
図6は、オーダリングシステムの正常時の会計情報登録処理を示すシーケンス図である。
使用者が会計装置30に伝票番号を入力し、会計開始ボタン(図示せず)等によって注文管理情報要求の送信命令を受け付けると、会計装置30は入力された伝票番号を格納した注文管理情報要求をホスト装置10に送信する(ステップS11)。送信された注文管理情報要求を、ホスト装置10の注文情報処理部12が通信部11を介して取得する。注文情報処理部12は取得した注文管理情報要求に格納された伝票番号に対応付けられた注文管理情報をRAM13の注文管理テーブルから取得する。注文情報処理部12は取得した注文管理情報を会計装置30に送信する(ステップS12)。会計装置30は受信した注文管理情報の注文内容に基づいて料金を計算し、会計処理を行う(ステップS13)。
FIG. 6 is a sequence diagram showing a transaction information registration process when the ordering system is normal.
When the user inputs a slip number into the
使用者が会計装置30で会計処理を実行し、会計確定ボタン(図示せず)等によって会計の完了を受け付けると、会計装置30は会計情報をホスト装置10に送信する(ステップS14)。送信された会計情報を、ホスト装置10の注文情報処理部12が通信部11を介して取得する。注文情報処理部12は取得した会計情報をRAM13の逐次データに登録する(ステップS15)。逐次データへの登録処理が終了すると、注文情報処理部12はRAM13の注文管理テーブルと予備注文管理テーブルの会計済みフラグをOFFからONにして更新を行う(ステップS16)。注文管理テーブルと予備注文管理テーブルの更新処理が終了すると、注文情報処理部12は通信部11を介して注文入力装置20に会計情報の受け付けを完了したことを示す受付完了通知を送信する(ステップS17)。会計装置30はステップS14で会計情報を送信してから予め登録してある所定の時間の間、受付完了通知を受信しない場合、ホスト装置10への会計情報の送信が失敗したと判定し、ステップS14に戻って再度会計情報を送信する。
ホスト装置10の注文情報処理部12は、ステップS17によって受付完了通知を送信すると、受付完了通知フラグをRAM13の逐次データに登録する(ステップS18)。
なお、ホスト装置10がステップS17によって会計装置30へ会計情報受付完了通知を送信したにも関わらず、何らかの理由で会計装置30が会計情報受付完了通知を受信しない場合、会計装置30は、ステップS14に戻り、再度会計情報を送信する。ホスト装置10は、受信した会計情報の伝票番号が逐次データの注文情報の伝票番号と一致し、かつその会計情報の受付完了通知フラグが登録済みである場合、ステップS17による会計情報受付完了通知の送信処理のみを行う。
When the user executes the accounting process with the
When the order
If the
次に、電源断時のホスト装置10の動作を説明する。
図7は、電源断時のホスト装置10の動作を示す図である。
停電やケーブルの脱落などによって商用電源50に電源断が発生すると、電源断から時間T1経過後に分圧部16が分圧した電力出力の中断により、出力電圧が0になる。分圧部16の出力電圧が0になると、電源断検出部15は分圧部16の出力電圧が0になってから時間T2の間分圧部16の出力電圧を監視する。これにより、商用電源50と分圧部16を繋ぐケーブルの接続不良など、電源断と異なる原因による一時的な電圧低下であるかを判定する。分圧部16の出力電圧が0になってから時間T2の間に出力電圧の上昇がない場合、電源断検出部15は商用電源50の電源断であると判定し、注文情報処理部12に電圧低下予告を通知する。分圧部16の出力電圧が0になってから時間T2の間に出力電圧の上昇があった場合、電源断検出部15は一時的な電圧低下であると判定する。一時的な電圧低下である場合、分圧部17の出力電圧は0にならないため、電圧低下予告を通知しない。
注文情報処理部12は、電圧低下予告を取得すると、分圧部17の出力電力でRAM13に情報を確実に登録できる時間(登録許可時間)T5の間待機する。時間T5は注文情報処理部12に予め登録されており、商用電源50の電源断から、分圧部17が分圧した電力出力の中断により出力電圧が0になるまでの時間T3からT1、T2、RAM13に情報の登録を完了するために必要な時間(登録所要時間)T4を減ずることで算出される時間である。T5の算出に使用するT1〜T4の値は予め計測しておく。ここで時間T4はRAM13の逐次データに情報を書き込み、インデックステーブル及び予備インデックステーブルにインデックスを登録し、誤り検出符号を更新するまでに必要な時間とする。このときT4は、RAM13の逐次データに書き込む情報の種類や量によって時間が異なることが予想される。そのため、例えばRAM13の逐次データに情報を書き込み、インデックステーブル及び予備インデックステーブルにインデックスを登録し、誤り検出符号を更新するまでに必要な時間を予め各種情報毎に計測しておき、当該時間が最も長い情報も確実に書き込みが完了できるよう、当該情報の計測時間よりも長い時間をT4として採用する。
注文情報処理部12は電圧低下予告取得から時間T5経過後にRAM13へ情報の新規登録を禁止することを示す注文情報処理部12が記憶する新規登録禁止フラグをOFFからONにする。新規登録禁止フラグは、OFFのときRAM13への情報の新規登録を許可することを示し、ONのときRAM13への情報の新規登録を禁止することを示す。また、RAM13への情報の登録中に新規登録禁止フラグがOFFからONに切り替わった場合、当該情報の登録処理は継続される。新規登録禁止フラグがONになってから時間T4経過後に分圧部17の出力電圧が0になり、ホスト装置10の稼動が停止する。
Next, the operation of the
FIG. 7 is a diagram illustrating the operation of the
When the
Upon obtaining the voltage drop notice, the order
The order
以下に、注文情報登録処理及び会計情報登録処理における注文管理テーブルと予備注文管理テーブルの更新処理の詳細を説明する。
図8は注文管理テーブルと予備注文管理テーブルの更新処理を示すフローチャートである。
注文管理情報の更新処理を開始すると、まずホスト装置10の注文情報処理部12は、注文情報処理部12が記憶する新規登録禁止フラグによってRAM13への情報の新規登録を禁止していないかを判定する(ステップS31)。新規登録禁止フラグがONであるためにRAM13への登録を禁止している場合、RAM13に情報の登録をせず、それ以降の処理を中止する。これは、RAM13への情報の登録中に分圧部17の出力電力が0になることによる登録中の情報の欠損を防止するためである。
ステップS31によって新規登録禁止フラグがOFFであるためにRAM13への登録を禁止していないと判定した場合、注文情報処理部12はRAM13の注文管理テーブルの注文管理情報を更新する(ステップS32)。注文情報登録処理の場合、注文管理テーブルの注文内容の更新を行い、会計情報登録処理の場合、注文管理テーブルの会計済みフラグの更新を行う。注文管理テーブルの更新が完了すると、注文情報処理部12は注文管理情報登録完了フラグをRAM13の逐次データに登録する(ステップS33)。注文管理情報登録完了フラグは、登録されることで注文管理テーブルの更新が完了したことを示す。逐次データへの登録が完了すると、注文情報処理部12は予備注文管理テーブルの更新を行う(ステップS34)。注文情報登録処理の場合、予備注文管理テーブルの注文内容の更新を行い、会計情報登録処理の場合、予備注文管理テーブルの会計済みフラグの更新を行う。予備注文管理テーブルの更新を完了すると、注文情報処理部12は予備注文管理情報登録完了フラグをRAM13の逐次データに登録する(ステップS35)。注文管理情報登録完了フラグは、登録されることで予備注文管理テーブルの更新が完了したことを示す。
注文管理情報は、注文管理テーブルと予備注文管理テーブルで二重管理しており、登録途中で電圧低下が発生しても、注文管理テーブルか予備注文管理テーブルの何れか一方の更新が完了しているため、注文管理テーブルか予備注文管理テーブルの何れかはデータの欠損を防止することができる。すなわち、予備注文管理テーブルの更新途中で電圧低下が発生した場合、注文管理テーブルは更新を完了しているため、注文管理テーブルの情報を使用することができる。注文管理テーブルの更新途中で電圧低下が発生した場合、前回更新を完了した予備注文管理テーブルの情報が欠損なく残っているので、この情報を使用することができる。これにより、注文管理情報の更新時間が時間T4を超えてしまう場合でも、情報の欠損のあるテーブルに情報の欠損の無いテーブルの情報をコピーすることで、情報の欠損を防止できる。そのため、注文管理情報の更新サイズに制限を加えることはない。
Details of the update process of the order management table and the preliminary order management table in the order information registration process and the accounting information registration process will be described below.
FIG. 8 is a flowchart showing the update process of the order management table and the preliminary order management table.
When the update process of the order management information is started, the order
If it is determined in step S31 that registration in the
Order management information is managed in duplicate in the order management table and the preliminary order management table. Even if a voltage drop occurs during registration, updating of either the order management table or the preliminary order management table is completed. Therefore, data loss can be prevented in either the order management table or the preliminary order management table. In other words, when a voltage drop occurs during the update of the preliminary order management table, the order management table has been updated, so the information in the order management table can be used. If a voltage drop occurs during the update of the order management table, the information in the preliminary order management table that has been updated last time remains without loss, so this information can be used. Thereby, even when the update time of the order management information exceeds the time T4, information loss can be prevented by copying the information of the table without information loss to the table with information loss. Therefore, there is no limit on the update size of the order management information.
以下に、注文情報登録処理及び会計情報登録処理における逐次データへの登録処理の詳細を説明する。
図9は逐次データへの登録処理を示すフローチャートである。逐次データへの登録処理を行う情報としては、注文情報、会計情報、注文管理情報登録フラグ、予備注文管理情報登録フラグ、受付完了通知フラグ、伝票出力完了フラグがある。
逐次データへの登録処理を開始すると、まずホスト装置10の注文情報処理部12は、注文情報処理部12が記憶する新規登録禁止フラグによってRAM13への情報の登録を禁止していないか判定する(ステップS41)。新規登録禁止フラグがONであるためにRAM13への登録を禁止している場合、RAM13に情報の登録をせず、それ以降の処理を中止する。
ステップS41によって新規登録禁止フラグがOFFであるためにRAM13への登録を禁止していないと判定した場合、注文情報処理部12はRAM13の逐次データに情報を登録する(ステップS42)。逐次データへの登録が完了すると、注文情報処理部12は逐次データの末尾の論理アドレスを取得し、RAM13のインデックステーブルに逐次データの末尾の論理アドレスを示すインデックスを登録する(ステップS43)。インデックステーブルへの登録が完了すると、注文情報処理部12はインデックステーブルの誤り検出符号の更新を行う(ステップS44)。誤り検出符号の更新を完了すると、注文情報処理部12はRAM13の予備インデックステーブルに逐次データの末尾のインデックスを登録する(ステップS45)。予備インデックステーブルへの登録が完了すると、注文情報処理部12は予備インデックステーブルの誤り検出符号の更新を行う(ステップS46)。
ステップS41でRAM13への情報の登録を禁止していない場合、少なくとも上述した時間T4の間は分圧部17の出力電圧は0にならない。時間T4は、上述したようにRAM13の逐次データに情報を書き込み、インデックステーブル及び予備インデックステーブルにインデックスを登録し、誤り検出符号を更新するまでに必要な時間であるため、時間T5の間にRAM13への登録を開始することにより、ステップS42〜S46の処理を終えるまでに分圧部17の出力電圧が0にならないことが保証される。
Details of the registration process for sequential data in the order information registration process and the accounting information registration process will be described below.
FIG. 9 is a flowchart showing a registration process for sequential data. Information for performing the registration process to sequential data includes order information, accounting information, order management information registration flag, preliminary order management information registration flag, acceptance completion notification flag, and slip output completion flag.
When the registration process to the sequential data is started, the order
If it is determined in step S41 that registration in the
If registration of information in the
以下に、電源断発生後、再起動時のホスト装置10の動作を説明する。
図10は再起動時のホスト装置10の動作を示すフローチャートである。
電源断発生後、ホスト装置10の再起動を行うと、注文情報処理部12はRAM13のインデックステーブルから誤り検出符号を取得し、当該誤り検出符号とインデックステーブルの情報を誤り符号の算出処理により再度算出した符合とを照合することで誤り検出を行い、誤りの有無を判定する(ステップS51)。インデックステーブルに誤りがあると判定した場合、予備インデックステーブルのインデックスをインデックステーブルにコピー(複写)する(ステップS52)。ここで予備インデックステーブルの誤り検出を行わない理由を説明する。インデックステーブルに誤りがあるということは、ステップ43によってインデックステーブルの登録中に電源断が発生したためである。そのため、予備インデックステーブルへの登録以前に電源断が発生しているため、誤り検出を行わなくても予備インデックステーブルに誤りがないことが保証される。
ステップS51によってインデックステーブルに誤りがないと判定した場合、注文情報処理部12はRAM13の予備インデックステーブルから誤り検出符号を取得し、予備インデックステーブルの誤り検出を行い、誤りの有無を判定する(ステップS53)。予備インデックステーブルに誤りがあると判定した場合、インデックステーブルのインデックスを予備インデックステーブルにコピーする(ステップS54)。
なお、上述したステップS41によるRAM13への登録禁止の有無を判定する処理により、RAM13の逐次データに情報を書き込み、インデックステーブル及び予備インデックステーブルにインデックスを登録し、誤り検出符号を更新するまでに必要な時間T4が確保されているため、T4の間にインデックステーブル及び予備インデックステーブルへの登録を完了できる。これにより、インデックステーブル及び予備インデックステーブルが誤っていないことが保証される。しかし、電源断検出部15、分圧部17の故障が発生した場合などには、RAM13への登録禁止後、登録所要時間より早く分圧部17の出力電圧が0になる可能性がある。そのため、ステップS51〜ステップS54の処理によって誤り検出を行うことで、電源断検出部15、分圧部17の故障時などにおいても確実にインデックスを保証することができる。
Hereinafter, the operation of the
FIG. 10 is a flowchart showing the operation of the
When the
When it is determined in step S51 that there is no error in the index table, the order
It is necessary to write information in sequential data of the
ステップS52によって予備インデックステーブルのインデックスをインデックステーブルにコピーし、またはステップS54によってインデックステーブルのインデックスを予備インデックステーブルにコピーし、またはステップS53によって予備インデックステーブルに誤りがないと判定した場合、注文情報処理部12はインデックステーブルからインデックスを取得する。取得したインデックスが示す逐次データの論理アドレスに基づいてRAM13の逐次データの末尾の情報を取得する(ステップS55)。次に注文情報処理部12は、インデックスを昇順に検索し、逐次データに最後に登録された注文情報または会計情報(以下処理対象と呼ぶ)を取得する(ステップS56)。ここで、インデックスはインデックステーブルに降順に登録されていくものとする。注文情報処理部12は、取得した逐次データの末尾の情報と取得した処理対象に基づいて復旧処理を行う(ステップS57)。以下にステップS57による復旧処理の詳細を説明する。
If the index of the spare index table is copied to the index table by step S52, or the index of the index table is copied to the spare index table by step S54, or if it is determined that there is no error in the spare index table by step S53, the order information processing The
図11は、処理対象と逐次データ末尾の情報に基づく復旧処理の方法を示す表である。
ステップS56で取得した処理対象が注文情報の場合において、ステップS55で取得した逐次データ末尾の情報が注文情報であるとき、ホスト装置10は注文情報の登録が完了した時点で処理を中断している。そのため、注文管理テーブルの登録中に分圧部17の電圧が0になり、注文管理テーブルの注文管理情報に破損が生じている可能性がある。そこで、注文情報処理部12は、まずRAM13の予備注文管理テーブルの注文管理情報をRAM13の注文管理テーブルにコピーする。これにより、注文管理テーブルの注文管理情報を、注文管理情報の登録処理開始前の状態に戻すことができる。注文管理情報のコピー後、注文情報処理部12は、逐次データの末尾にある注文情報を削除する。注文入力装置20は、注文情報受付完了通知を受信していないので、ステップS1に戻って再度注文情報を送信する。これにより、中断している処理を再開することができる。
ステップS56で取得した処理対象が注文情報の場合において、ステップS55で取得した逐次データ末尾の情報が注文管理情報登録完了フラグであるとき、ホスト装置10は注文管理テーブルの更新が完了した時点で処理を中断している。そのため、予備注文管理テーブルの登録中に分圧部17の電圧が0になり、予備注文管理テーブルの注文管理情報に破損が生じている可能性がある。そこで、注文情報処理部12は、まずRAM13の注文管理テーブルの注文管理情報をRAM13の予備注文管理テーブルにコピーする。これにより、予備注文管理テーブルの注文管理情報を、注文管理情報の登録処理が完了した状態に更新することができる。注文管理情報のコピー後、RAM13の逐次データに予備注文管理情報登録完了フラグを登録する。逐次データへの登録処理が完了すると、注文情報処理部12は、ステップS4による注文受付完了通知の送信を行わずに、ステップS5以降の処理によって受付完了通知の送信、伝票の出力命令の送信、それに伴う逐次データへのフラグの登録を行う。この場合、注文入力装置20は、注文受付完了通知を受信していないので、ステップS1に戻り、再度注文情報の送信を行う。ホスト装置10は、受信した注文情報の注文情報識別番号と注文入力装置番号が、それぞれ逐次データの注文情報の中の注文情報識別番号と注文入力装置番号に一致し、かつその注文情報の受付完了フラグが登録済みである場合、ステップS4による注文受付完了通知の送信処理のみ行う。これにより、中断している処理を再開し、完了させることができる。
ステップS56で取得した処理対象が注文情報の場合において、ステップS55で取得した逐次データ末尾の情報が予備注文管理情報登録完了フラグであるとき、注文情報処理部12は、ステップS4による注文受付完了通知の送信を行わずに、ステップS5以降の処理によって受付完了通知の送信、伝票の出力命令の送信、それに伴う逐次データへのフラグの登録を行う。注文入力装置20から再送信された注文情報を受信した場合、すなわち受信した注文情報の注文情報識別番号と注文入力装置番号が、それぞれ逐次データの注文情報の中の注文情報識別番号と注文入力装置番号に一致し、かつその注文情報の受付完了フラグが登録済みである場合、ホスト装置10はステップS4による注文受付完了通知の送信処理のみを行う。これにより、中断している処理を再開し、完了させることができる。
ステップS56で取得した処理対象が注文情報の場合において、ステップS55で取得した逐次データ末尾の情報が受付完了通知フラグであるとき、注文情報処理部12は、ステップS6以降の処理によって伝票の出力命令の送信、それに伴う逐次データへのフラグの登録を行う。これにより、中断している処理を再開し、完了させることができる。
ステップS56で取得した処理対象が注文情報の場合において、ステップS55で取得した逐次データ末尾の情報が伝票出力完了フラグであるとき、伝票発行済みであるため、復旧処理を行う必要は無い。
FIG. 11 is a table showing a recovery processing method based on the processing target and information at the end of the sequential data.
In the case where the processing target acquired in step S56 is order information, when the information at the end of the sequential data acquired in step S55 is order information, the
When the processing object acquired in step S56 is order information, when the information at the end of the sequential data acquired in step S55 is an order management information registration completion flag, the
When the processing target acquired in step S56 is order information, when the information at the end of the sequential data acquired in step S55 is a preliminary order management information registration completion flag, the order
In the case where the processing target acquired in step S56 is order information, when the information at the end of the sequential data acquired in step S55 is a reception completion notification flag, the order
When the processing target acquired in step S56 is order information, when the information at the end of the sequential data acquired in step S55 is a slip output completion flag, the slip has already been issued, so there is no need to perform recovery processing.
ステップS56で取得した処理対象が会計情報の場合において、ステップS55で取得した逐次データ末尾の情報が会計情報であるとき、ホスト装置10は会計情報の登録が完了した時点で処理を中断している。そのため、注文管理テーブルの登録中に分圧部17の電圧が0になり、注文管理テーブルの注文管理情報に破損が生じている可能性がある。そこで、注文情報処理部12は、まずRAM13の予備注文管理テーブルの注文管理情報をRAM13の注文管理テーブルにコピーする。これにより、注文管理テーブルの注文管理情報を、注文管理情報の登録処理開始前の状態に戻すことができる。注文管理情報のコピー後、注文情報処理部12は、逐次データの末尾にある会計情報を削除する。会計装置30は、会計情報受付完了通知を受信していないので、ステップS14に戻り、再度会計情報の送信を行う。これにより、中断している処理を再開することができる。
ステップS56で取得した処理対象が会計情報の場合において、ステップS55で取得した逐次データ末尾の情報が注文管理情報登録完了フラグであるとき、ホスト装置10は注文管理テーブルの更新が完了した時点で処理を中断している。そのため、予備注文管理テーブルの登録中に分圧部17の電圧が0になり、予備注文管理テーブルの注文管理情報に破損が生じている可能性がある。そこで、注文情報処理部12は、まずRAM13の注文管理テーブルの注文管理情報をRAM13の予備注文管理テーブルにコピーする。これにより、予備注文管理テーブルの注文管理情報を、注文管理情報の登録処理が完了した状態に更新することができる。注文管理情報のコピー後、RAM13の逐次データに予備注文管理情報登録完了フラグを登録する。逐次データへの登録処理が完了すると、注文情報処理部12は、ステップS17による受付完了通知の送信を行わずに、ステップS18による逐次データへのフラグの登録を行う。この場合、会計装置30は、会計受付完了通知を受信していないので、ステップS14に戻って再度会計情報の送信を行う。ホスト装置10は、受信した会計情報の伝票番号が逐次データの会計情報の中の伝票番号と一致し、かつその会計情報の受付完了フラグが登録済みである場合、ステップS17による会計受付完了通知の送信処理のみを行う。これにより、中断している処理を再開し、完了させることができる。
ステップS56で取得した処理対象が会計情報の場合において、ステップS55で取得した逐次データ末尾の情報が予備注文管理情報登録完了フラグであるとき、注文情報処理部12は、ステップS17による受付完了通知の送信を行わずに、ステップS18による逐次データへのフラグの登録を行う。会計装置30から再送信された会計情報を受信した場合、すなわち受信した会計情報の伝票番号が逐次データの会計情報の中の伝票番号と一致し、かつその会計情報の受付完了フラグが登録済みである場合、ホスト装置10はステップ17による会計受付完了通知の送信処理のみを行う。これにより、中断している処理を再開し、完了させることができる。
ステップS56で取得した処理対象が会計情報の場合において、ステップS55で取得した逐次データ末尾の情報が受付完了通知フラグであるとき、会計装置30に受付完了通知を送信しているため、復旧処理を行う必要は無い。
In the case where the processing object acquired in step S56 is accounting information, when the information at the end of the sequential data acquired in step S55 is accounting information, the
When the processing target acquired in step S56 is accounting information, when the information at the end of the sequential data acquired in step S55 is an order management information registration completion flag, the
When the processing object acquired in step S56 is accounting information, when the information at the end of the sequential data acquired in step S55 is a preliminary order management information registration completion flag, the order
In the case where the processing target acquired in step S56 is accounting information, when the information at the end of the sequential data acquired in step S55 is a reception completion notification flag, the reception completion notification is transmitted to the
このように、本実施形態によれば、RAM13の逐次データへの登録が完了してからRAM13のインデックステーブルにインデックスを登録するので、インデックスによって示される逐次データの末尾の情報までの登録が完了し、当該情報に誤りが無いことを保証することができる。これにより、逐次データへの登録の途中で電源断が発生しても、注文情報、会計情報、注文管理情報の欠損を防止することができる。
また、本実施形態によれば、インデックスに誤り検出符号を付与し、RAM13に予備インデックステーブルをさらに備えることで、インデックステーブルに登録されているインデックスに誤りが無いことを保証することができる。これにより、インデックステーブルへの登録の途中で電源断が発生しても、登録の完了している情報に関するインデックスに誤りが無いため、注文情報、会計情報、注文管理情報の欠損を防止することができる。
また、本実施形態によれば、RAM13に予備注文管理テーブルをさらに備え、注文管理情報を二重管理することで、注文管理テーブルに登録されている注文管理情報に誤りが無いことを保証することができる。これにより、注文管理テーブルへの登録の途中で電源断が発生しても、注文管理情報の欠損を防止することができる。
また、本実施形態によれば、電力低下が発生する時間が異なる2つの分圧部16、17を用いることで、情報の登録が可能な時間を保証することができる。これにより、電力低下時にRAM13が欠損なく情報登録を完了し、記憶する情報に誤りが無いことを保証することができる。そのため、RAM13への登録の途中での電源断の発生を防ぐことができるため、注文情報、会計情報、注文管理情報の欠損を防止することができる。
Thus, according to this embodiment, since the index is registered in the index table of the
Further, according to the present embodiment, it is possible to guarantee that there is no error in the index registered in the index table by adding an error detection code to the index and further providing a spare index table in the
Further, according to the present embodiment, the
In addition, according to the present embodiment, it is possible to guarantee a time when information can be registered by using the two
以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。
例えば、本実施形態では、ホスト装置10と出力装置40とが異なる装置である場合を説明したが、これに限られず、ホスト装置10に出力機能を備え、マルチプリンターとすることでホスト装置10と出力装置40を1つの装置とする構成にしてもよい。
As described above, the embodiment of the present invention has been described in detail with reference to the drawings. However, the specific configuration is not limited to the above, and various design changes and the like can be made without departing from the scope of the present invention. It is possible to
For example, in the present embodiment, the case where the
なお、本実施形態では、時間T4を「RAM13の逐次データに情報を書き込み、インデックステーブル及び予備インデックステーブルにインデックスを登録し、誤り検出符号を更新するまでに必要な時間」としたが、これに限られず、時間T4を「RAM13の逐次データに情報を書き込み、インデックステーブルにインデックスを登録し、誤り検出符号を更新するまでに必要な時間」としてもよい。少なくともインデックステーブルのインデックスと誤り検出符合の登録が確実に完了していれば、インデックステーブルに誤りが無いことは保証される。インデックステーブルのインデックスと誤り検出符号の登録前に分圧部17の出力電圧が0になった場合は、インデックステーブルに誤りが生じるが、その場合には、ステップS51でインデックステーブルに誤りがあると判定した場合のフローに沿って処理を行うことで、誤りの無いインデックステーブルを復旧することができる。また、ステップS53で予備インデックステーブルに誤りがなくても、インデックステーブルのみが最新の情報に更新されている可能性があるため、ステップS54のようにインデックステーブルのインデックスを予備インデックスにコピーすることで、再起動時にインデックスと予備インデックスを同一内容にすることができる。
また、インデックステーブルが誤り検出符号を記憶しない構成である場合は、時間T4を「RAM13の逐次データに情報を書き込み、インデックステーブルにインデックスを登録するまでに必要な時間」としてもよい。
In the present embodiment, the time T4 is “the time required to write information to the sequential data in the
Further, when the index table is configured not to store the error detection code, the time T4 may be set as “a time required for writing information to the sequential data in the
なお、本実施形態では、オーダリングシステムに情報管理システムを適用した例を示したが、これに限られず、入力装置に入力された情報をホスト装置で管理する他の情報管理システムに適用してもよい。 In the present embodiment, the information management system is applied to the ordering system. However, the present invention is not limited to this, and the information management system may be applied to another information management system that manages information input to the input device using the host device. Good.
上述のホスト装置は内部に、コンピュータシステムを有している。そして、上述した各処理の過程は、プログラムの形式でコンピュータ読み取り可能な記録媒体に記憶されており、このプログラムをコンピュータが読み出して実行することによって、上記処理が行われる。ここでコンピュータ読み取り可能な記録媒体とは、磁気ディスク、光磁気ディスク、CD−ROM、DVD−ROM、半導体メモリ等をいう。また、このコンピュータプログラムを通信回線によってコンピュータに配信し、この配信を受けたコンピュータが当該プログラムを実行するようにしても良い。 The host device described above has a computer system inside. Each process described above is stored in a computer-readable recording medium in the form of a program, and the above process is performed by the computer reading and executing the program. Here, the computer-readable recording medium means a magnetic disk, a magneto-optical disk, a CD-ROM, a DVD-ROM, a semiconductor memory, or the like. Alternatively, the computer program may be distributed to the computer via a communication line, and the computer that has received the distribution may execute the program.
また、上記プログラムは、前述した機能の一部を実現するためのものであっても良い。さらに、前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるもの、いわゆる差分ファイル(差分プログラム)であっても良い。 The program may be for realizing a part of the functions described above. Furthermore, what can implement | achieve the function mentioned above in combination with the program already recorded on the computer system, and what is called a difference file (difference program) may be sufficient.
1…オーダリングシステム 10…ホスト装置 11…通信部 12…注文情報処理部 13…RAM 14…電源バックアップ 15…電源断検出部 16、17…分圧部 20…注文入力装置 30…会計装置 40…出力装置 50…商用電源
DESCRIPTION OF SYMBOLS 1 ...
Claims (7)
前記ホスト装置は、
前記注文入力装置または前記会計装置または前記出力装置と通信を行う通信手段と、
前記注文入力装置または前記会計装置から受信した、前記注文情報または前記会計情報を逐次記憶手段に登録する受信情報登録手段と、
前記伝票番号に対応付けて、前記伝票番号毎に統合した前記注文情報または前記会計情報を示す注文管理情報を注文管理情報記憶手段に登録し、当該登録が完了したことを示す注文管理情報登録識別情報を前記逐次記憶手段に登録する注文管理情報登録手段と、
前記注文管理情報の登録が完了したことを示す受付完了通知を前記注文入力装置または前記会計装置に送信し、当該受付完了通知の送信が完了したことを示す受付完了通知送信識別情報を前記逐次記憶手段に登録する受付完了通知送信手段と、
前記出力装置に、注文の内容を示す伝票情報の出力命令を送信する伝票出力命令送信手段と、
前記出力装置からの前記伝票情報の出力完了を示す通知の受信後、前記伝票情報の出力が完了したことを示す伝票出力識別情報を前記逐次記憶手段に登録する伝票出力完了通知受信手段と、
前記逐次記憶手段に情報が登録される毎に前記逐次記憶手段の末尾の情報の位置を示すインデックスをインデックス記憶手段に登録するインデックス登録手段と、
前記受信情報登録手段、前記注文管理情報登録手段、前記受付完了通知送信手段、前記伝票出力命令送信手段、前記伝票出力完了通知受信手段が実行する処理の順番を示す処理手順情報を予め記憶する処理手順記憶手段と、
前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報と前記処理手順情報とに基づいて再起動前に完了した処理を判定し、当該完了した処理以降の処理を実行することで前記ホスト装置の復旧を行う復旧手段と、
を備えることを特徴とするオーダリングシステム。 An order input device that receives an order input from a user and transmits order information including a slip number and indicating the content of the order, and a host device that receives the order information from the order input device and manages the order information And accounting for the order, generating accounting information including the slip number and indicating completion of the accounting, and generating output information based on the accounting device that transmits the accounting information and information received from the host device An ordering system comprising an output device for outputting the output information,
The host device is
Communication means for communicating with the order input device or the accounting device or the output device;
Received information registration means for sequentially registering the order information or the accounting information received from the order input device or the accounting device in the storage means;
An order management information registration identification indicating that the registration is completed by registering the order management information indicating the order information or the accounting information integrated with the slip number in association with the slip number in the order management information storage means. Order management information registration means for registering information in the sequential storage means;
A reception completion notification indicating completion of registration of the order management information is transmitted to the order input device or the accounting device, and reception completion notification transmission identification information indicating completion of transmission of the reception completion notification is stored sequentially. An acceptance completion notification transmitting means to be registered in the means;
A slip output command transmitting means for transmitting a slip information output command indicating the content of the order to the output device;
A slip output completion notification receiving means for registering in the sequential storage means slip output identification information indicating that the output of the slip information is completed after receiving the notification indicating the completion of output of the slip information from the output device;
Index registration means for registering an index indicating the position of the information at the end of the sequential storage means in the index storage means every time information is registered in the sequential storage means;
A process for storing in advance processing procedure information indicating the order of processes executed by the reception information registration means, the order management information registration means, the acceptance completion notification transmission means, the slip output command transmission means, and the slip output completion notification reception means Procedure storage means;
When the host device is restarted, the end information of the sequential storage unit is acquired based on the index stored in the index registration unit, and before the restart based on the end information and the processing procedure information. A recovery means for determining the process completed in step S3 and performing the process subsequent to the completed process to recover the host device;
An ordering system comprising:
前記インデックスを予備インデックス記憶手段に登録する予備インデックス登録手段と、
前記インデックス記憶手段または前記予備インデックス記憶手段に上記インデックスが登録される毎に、当該インデックスの誤りを検出する誤り検出符号を、当該インデックスが登録された記憶手段に登録するインデックス誤り検出符号登録手段と、
前記インデックス記憶手段及び前記予備インデックス記憶手段の前記誤り検出符号によって前記インデックスの誤りを検出し、前記インデックス記憶手段の前記インデックスに誤りが検出された場合、前記予備インデックス記憶手段の前記インデックスを前記インデックス記憶手段に複写し、前記予備インデックス記憶手段の前記インデックスに誤りが検出された場合、前記インデックス記憶手段の前記インデックスを前記予備インデックス記憶手段に複写するインデックス復旧手段と、
を備えることを特徴とする請求項1に記載のオーダリングシステム。 The host device is
Spare index registration means for registering the index in the spare index storage means;
Each time the index is registered in the index storage unit or the spare index storage unit, an error detection code for detecting an error in the index is registered in the storage unit in which the index is registered. ,
When an error in the index is detected by the error detection code of the index storage means and the spare index storage means, and an error is detected in the index of the index storage means, the index of the spare index storage means is changed to the index Index recovery means for copying to the storage means and, when an error is detected in the index of the spare index storage means, copying the index of the index storage means to the spare index storage means;
The ordering system according to claim 1, further comprising:
注文情報の後に注文管理情報登録識別情報が登録され、また会計情報の後に注文管理情報登録識別情報が登録されるものであり、
前記ホスト装置は、
前記注文管理情報登録識別情報の登録完了後、前記伝票番号に対応付けて、前記注文管理情報を予備注文管理情報記憶手段に登録し、当該登録が完了したことを示す予備注文管理情報登録識別情報を前記逐次記憶手段に登録する予備注文管理情報登録手段と、
前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記逐次記憶手段の末尾の情報が注文情報または会計情報であった場合、前記予備注文管理情報記憶手段の前記注文管理情報を前記注文管理情報記憶手段に複写し、前記逐次記憶手段の末尾の情報が注文管理情報登録識別情報であった場合、前記注文管理情報記憶手段の前記注文管理情報を前記予備注文管理情報記憶手段に複写し、前記予備注文管理情報登録識別情報を前記逐次記憶手段に登録する注文管理情報復旧手段と、
を備えること特徴とする請求項1または請求項2に記載のオーダリングシステム。 The sequential storage means includes
Order management information registration identification information is registered after order information, and order management information registration identification information is registered after accounting information.
The host device is
After the registration of the order management information registration identification information is completed, the order management information is registered in the preliminary order management information storage means in association with the slip number, and preliminary order management information registration identification information indicating that the registration is completed Pre-order management information registration means for registering in the sequential storage means,
When the host device is restarted, information at the end of the sequential storage unit is acquired based on the index stored in the index registration unit, and the information at the end of the sequential storage unit is order information or accounting information. If the order management information in the preliminary order management information storage means is copied to the order management information storage means, and the information at the end of the sequential storage means is order management information registration identification information, the order management information Order management information recovery means for copying the order management information in the storage means to the preliminary order management information storage means, and registering the preliminary order management information registration identification information in the sequential storage means;
The ordering system according to claim 1, further comprising:
交流電源に接続され、前記交流電源の電力を所定の電圧に分圧し、当該分圧した電力を当該電力で稼動する自装置の各処理手段に供給し、前記交流電源からの電力供給が中断した場合、分圧した電力出力の中断により出力電圧が0になる第1の分圧手段と、
前記交流電源に接続され、前記交流電源の電力を前記第1の分圧手段が出力する電圧と異なる電圧に分圧し、当該分圧した電力を当該電力で稼動する少なくとも前記各登録手段を含む自装置の各処理手段に供給し、前記交流電源からの電力供給が無くなった場合、前記第1の分圧部が出力する電圧が0になった時刻よりも所定の時間後に出力する電圧が0になる第2の分圧手段と、を有する構成であり、
前記第1の分圧部の電圧低下が発生した場合に、前記第2の分圧手段の電圧低下発生予告を出力する電源断検出手段と、
予め、前記電圧低下発生予告の出力があった時刻から前記第2の分圧手段が出力する電圧が0になる時刻までの時間である電力残留時間と、前記逐次記憶手段に登録する情報の何れかを前記逐次記憶手段に登録し、当該情報に関するインデックスを前記インデックス記憶手段に登録することができる最低限の時間である登録所要時間とを記憶する登録時間記憶手段と、
前記電圧低下発生予告の取得後、前記電力残留時間から前記登録所要時間を減じた時間である登録許可時間以降の前記記憶手段への情報の新規登録を禁止する登録制御手段と、を備え、
前記各登録手段は前記登録許可時間以内に前記逐次記憶手段に登録する情報の前記逐次記憶手段への登録を開始する、
ことを特徴とする請求項1から請求項3の何れかに記載のオーダリングシステム。 The host device is
Connected to an AC power source, divides the power of the AC power source into a predetermined voltage, supplies the divided power to each processing means of its own device that operates with the power, and power supply from the AC power source is interrupted A first voltage dividing means in which the output voltage becomes 0 by interruption of the divided power output;
A power supply that is connected to the AC power source, divides the power of the AC power source into a voltage different from the voltage output by the first voltage dividing unit, and includes at least each of the registration units that operates the divided power with the power. When power is supplied from the AC power supply to each processing means of the apparatus, the voltage output after a predetermined time from the time when the voltage output by the first voltage dividing unit becomes 0 becomes 0. And a second voltage dividing means.
A power-off detecting means for outputting a voltage drop occurrence notice of the second voltage dividing means when a voltage drop of the first voltage dividing section occurs;
Any of the power remaining time, which is the time from when the voltage drop occurrence notice is output in advance to the time when the voltage output by the second voltage dividing means becomes 0, and information registered in the sequential storage means Registration time storage means for registering such information in the sequential storage means, and storing a registration required time which is a minimum time during which an index relating to the information can be registered in the index storage means;
Registration control means for prohibiting new registration of information in the storage means after the registration permission time, which is a time obtained by subtracting the registration required time from the power remaining time after obtaining the voltage drop occurrence notice,
Each of the registration means starts registration in the sequential storage means of information to be registered in the sequential storage means within the registration permission time;
The ordering system according to any one of claims 1 to 3, characterized in that:
前記ホスト装置は、
前記入力装置または前記出力装置と通信を行う通信手段と、
前記入力装置から受信した、前記入力情報を逐次記憶手段に登録する入力情報登録手段と、
前記入力情報に対して処理を行い、当該処理が完了したことを示す処理完了識別情報を前記逐次記憶手段に登録する1つまたは複数の入力情報処理手段と、
前記逐次記憶手段に情報が登録される毎に前記逐次記憶手段の末尾の情報の位置を示すインデックスをインデックス記憶手段に登録するインデックス登録手段と、
1つまたは複数の前記入力情報処理手段が実行する処理の順番を示す処理手順情報を予め記憶する処理手順記憶手段と、
前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報と前記処理手順記憶手段に記憶されている処理手順情報とに基づいて再起動前に完了した処理を判定し、当該完了した処理以降の処理を実行することで前記ホスト装置の復旧を行う復旧手段と、
を備えることを特徴とする情報管理システム。 Information management comprising: an input device that receives input of information from a user and transmits input information that is input information; and a host device that receives the input information from the input device and manages the input information A system,
The host device is
Communication means for communicating with the input device or the output device;
Input information registration means for sequentially registering the input information received from the input device in a storage means;
One or more input information processing means for performing processing on the input information and registering processing completion identification information indicating that the processing is completed in the sequential storage means;
Index registration means for registering an index indicating the position of the information at the end of the sequential storage means in the index storage means every time information is registered in the sequential storage means;
Processing procedure storage means for preliminarily storing processing procedure information indicating the order of processing executed by one or more of the input information processing means;
When the host device is restarted, the end information of the sequential storage unit is acquired based on the index stored in the index registration unit, and the end information and the process stored in the processing procedure storage unit are acquired. A recovery unit that determines processing completed before restart based on the procedure information, and performs recovery processing after the completed processing;
An information management system comprising:
前記ホスト装置の通信手段は、前記注文入力装置または前記会計装置または前記出力装置と通信を行い、
前記ホスト装置の前記受信情報登録手段は、前記注文入力装置または前記会計装置から受信した、前記注文情報または前記会計情報を逐次記憶手段に登録し、
前記ホスト装置の注文管理情報登録手段は、前記伝票番号に対応付けて、前記伝票番号毎に統合した前記注文情報または前記会計情報を注文管理情報として注文管理情報記憶手段に登録し、当該登録が完了したことを示す注文管理情報登録識別情報を前記逐次記憶手段に登録し、
前記ホスト装置の受付完了通知送信手段は、前記注文管理情報の登録が完了したことを示す受付完了通知を前記注文入力装置または前記会計装置に送信し、当該受付完了通知の送信が完了したことを示す受付完了通知送信識別情報を前記逐次記憶手段に登録し、
前記ホスト装置の伝票出力命令送信手段は、前記出力装置に伝票情報の出力命令を送信し、
前記ホスト装置の伝票情報出力完了通知受信手段は、前記出力装置からの前記伝票情報の出力完了を示す通知の受信後、前記伝票情報の出力が完了したことを示す伝票出力識別情報を前記逐次記憶手段に登録し、
前記ホスト装置のインデックス登録手段は、前記逐次記憶手段に情報が登録される毎に情報の末尾の位置を示すインデックスをインデックス記憶手段に登録し、
前記ホスト装置の復旧手段は、前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報に基づいて前記ホスト装置の復旧を行う、
ことを特徴とする注文情報消失防止方法。 An order input device that accepts input of an order from a user, generates order information including a slip number, transmits the order information, and a host that receives the order information from the order input device and manages the order information Accounting for the order with the device, generating accounting information including the slip number and indicating completion of the accounting, generating accounting information for transmitting the accounting information, and generating output information based on information received from the host device An order information loss prevention method in an ordering system comprising an output device that outputs the output information,
The communication means of the host device communicates with the order input device or the accounting device or the output device,
The reception information registration means of the host device registers the order information or the accounting information received from the order input device or the accounting device in a sequential storage means,
The order management information registering means of the host device registers the order information or the accounting information integrated with each slip number in association with the slip number in the order management information storage means as order management information. Register the order management information registration identification information indicating completion in the sequential storage means,
The reception completion notification transmission means of the host device transmits a reception completion notification indicating that the registration of the order management information is completed to the order input device or the accounting device, and confirms that the transmission of the reception completion notification is completed. Registration completion notification transmission identification information shown in the sequential storage means,
The slip output command transmission means of the host device transmits a slip information output command to the output device,
The slip information output completion notification receiving means of the host device stores the slip output identification information indicating that the output of the slip information is completed after receiving the notification indicating the completion of output of the slip information from the output device. Register with the means,
The index registration means of the host device registers an index indicating the position of the end of the information in the index storage means every time information is registered in the sequential storage means,
When the host device is restarted, the recovery unit of the host device acquires the end information of the sequential storage unit based on the index stored in the index registration unit, and based on the end information Recover the host device,
A method for preventing loss of order information.
前記注文入力装置または前記会計装置または前記出力装置と通信を行う通信手段、
前記注文入力装置または前記会計装置から受信した、前記注文情報または前記会計情報を逐次記憶手段に登録する受信情報登録手段、
前記伝票番号に対応付けて、前記伝票番号毎に統合した前記注文情報または前記会計情報を注文管理情報として注文管理情報記憶手段に登録し、当該登録が完了したことを示す注文管理情報登録識別情報を前記逐次記憶手段に登録する注文管理情報登録手段、
前記注文管理情報の登録が完了したことを示す受付完了通知を前記注文入力装置または前記会計装置に送信し、当該受付完了通知の送信が完了したことを示す受付完了通知送信識別情報を前記逐次記憶手段に登録する受付完了通知送信手段、
前記出力装置に伝票情報の出力命令を送信する伝票出力命令送信手段、
前記出力装置からの前記伝票情報の出力完了を示す通知の受信後、前記伝票情報の出力が完了したことを示す伝票出力識別情報を前記逐次記憶手段に登録する伝票情報出力完了通知受信手段、
前記逐次記憶手段に情報が登録される毎に情報の末尾の位置を示すインデックスをインデックス記憶手段に登録するインデックス登録手段、
前記ホスト装置の再起動時、前記インデックス登録手段が記憶している前記インデックスに基づいて前記逐次記憶手段の末尾の情報を取得し、前記末尾の情報に基づいて前記ホスト装置の復旧を行う復旧手段、
として機能させるためのプログラム。 An order input device that accepts input of an order from a user, generates order information including a slip number, transmits the order information, and a host that receives the order information from the order input device and manages the order information Accounting for the order, generating accounting information including the slip number and indicating completion of the accounting, generating accounting information for transmitting the accounting information, and generating output information based on information received from the host device And a computer of the host device in an ordering system comprising an output device that outputs the output information,
Communication means for communicating with the order input device or the accounting device or the output device;
Received information registration means for sequentially registering the order information or the accounting information received from the order input device or the accounting device in a storage means;
Order management information registration identification information indicating that the registration is completed by registering the order information or the accounting information integrated with each slip number in the order management information storage means in association with the slip number as order management information Order management information registration means for registering in the sequential storage means,
A reception completion notification indicating completion of registration of the order management information is transmitted to the order input device or the accounting device, and reception completion notification transmission identification information indicating completion of transmission of the reception completion notification is stored sequentially. An acceptance completion notification transmission means to be registered in the means;
Slip output command transmission means for transmitting a slip information output command to the output device;
A slip information output completion notification receiving means for registering in the sequential storage means slip output identification information indicating that the output of the slip information is completed after receiving a notification indicating completion of output of the slip information from the output device;
Index registration means for registering an index indicating an end position of information in the index storage means each time information is registered in the sequential storage means;
Recovery means for acquiring information at the end of the sequential storage means based on the index stored in the index registration means when the host device is restarted, and recovering the host device based on the information at the end ,
Program to function as.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008188783A JP5311546B2 (en) | 2008-07-22 | 2008-07-22 | Ordering system, information management system, order information loss prevention method and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2008188783A JP5311546B2 (en) | 2008-07-22 | 2008-07-22 | Ordering system, information management system, order information loss prevention method and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2010026862A true JP2010026862A (en) | 2010-02-04 |
| JP5311546B2 JP5311546B2 (en) | 2013-10-09 |
Family
ID=41732625
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2008188783A Expired - Fee Related JP5311546B2 (en) | 2008-07-22 | 2008-07-22 | Ordering system, information management system, order information loss prevention method and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP5311546B2 (en) |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160118924A1 (en) * | 2013-05-20 | 2016-04-28 | Daikin Industries, Ltd. | Motor driving apparatus |
| JP7496769B2 (en) | 2020-12-18 | 2024-06-07 | セイコーソリューションズ株式会社 | Management device, order entry system and management program |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07220180A (en) * | 1994-01-28 | 1995-08-18 | Sanyo Electric Co Ltd | Sales registering device |
| JP2005242708A (en) * | 2004-02-26 | 2005-09-08 | Matsushita Electric Ind Co Ltd | File repair method and file recording apparatus |
| JP2007087487A (en) * | 2005-09-21 | 2007-04-05 | Funai Electric Co Ltd | Information recording/reproducing device |
-
2008
- 2008-07-22 JP JP2008188783A patent/JP5311546B2/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPH07220180A (en) * | 1994-01-28 | 1995-08-18 | Sanyo Electric Co Ltd | Sales registering device |
| JP2005242708A (en) * | 2004-02-26 | 2005-09-08 | Matsushita Electric Ind Co Ltd | File repair method and file recording apparatus |
| JP2007087487A (en) * | 2005-09-21 | 2007-04-05 | Funai Electric Co Ltd | Information recording/reproducing device |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20160118924A1 (en) * | 2013-05-20 | 2016-04-28 | Daikin Industries, Ltd. | Motor driving apparatus |
| US9831813B2 (en) * | 2013-05-20 | 2017-11-28 | Daikin Industries, Ltd. | Motor driving apparatus |
| JP7496769B2 (en) | 2020-12-18 | 2024-06-07 | セイコーソリューションズ株式会社 | Management device, order entry system and management program |
Also Published As
| Publication number | Publication date |
|---|---|
| JP5311546B2 (en) | 2013-10-09 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7114094B2 (en) | Information processing system for judging if backup at secondary site is necessary upon failover | |
| JP6333410B2 (en) | Fault processing method, related apparatus, and computer | |
| CN1776675B (en) | Method and system for storing and using metadata in multiple storage locations | |
| CN111324192A (en) | System board power supply detection method, device, equipment and storage medium | |
| US7882388B2 (en) | Dual independent non volatile memory systems | |
| US20080072030A1 (en) | Computer System and Method for Updating Program Code | |
| JPWO2014076838A1 (en) | Virtual machine synchronization system | |
| JP2006172320A (en) | Data replication control device | |
| CN106528005A (en) | Disk adding method and device for distributed type storage system | |
| JP6558037B2 (en) | Operation management program, operation management method, and operation management apparatus | |
| CN111026735A (en) | Data transmission method, device, equipment and medium | |
| CN105138430A (en) | Embedded operating system backup and restoration method and device | |
| CN111176900A (en) | Distributed storage system and data recovery method, device and medium thereof | |
| US20090187603A1 (en) | File management method, file management device, and program | |
| JP5311546B2 (en) | Ordering system, information management system, order information loss prevention method and program | |
| CN110389863A (en) | A kind of data reconstruction method, device, equipment and computer readable storage medium | |
| JP2009215001A (en) | Remote updating system of elevator control program | |
| US20120158652A1 (en) | System and method for ensuring consistency in raid storage array metadata | |
| US7194675B2 (en) | Backup method, backup system, disk controller and backup program | |
| CN105573867A (en) | Method and system for realizing high availability of MySQL | |
| CN120508324A (en) | Restarting method of server | |
| JP2008276281A (en) | Data synchronization system, method, and program | |
| US20200195789A1 (en) | Image processing apparatus and image processing method | |
| CN104169876B (en) | A playback control method and system for a player | |
| JP2015032103A (en) | Image forming apparatus, image forming apparatus control method, and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20110512 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20130227 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20130326 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20130521 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20130618 |
|
| RD03 | Notification of appointment of power of attorney |
Free format text: JAPANESE INTERMEDIATE CODE: A7423 Effective date: 20130628 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20130628 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 Ref document number: 5311546 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
| R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| R250 | Receipt of annual fees |
Free format text: JAPANESE INTERMEDIATE CODE: R250 |
|
| LAPS | Cancellation because of no payment of annual fees |