[go: up one dir, main page]

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 PDF

Info

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
Application number
JP2008188783A
Other languages
Japanese (ja)
Other versions
JP5311546B2 (en
Inventor
Yoshiyuki Kikuchi
善行 菊地
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SII Data Service Corp
Original Assignee
SII Data Service Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SII Data Service Corp filed Critical SII Data Service Corp
Priority to JP2008188783A priority Critical patent/JP5311546B2/en
Publication of JP2010026862A publication Critical patent/JP2010026862A/en
Application granted granted Critical
Publication of JP5311546B2 publication Critical patent/JP5311546B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an ordering system which assures correctness of order information even in occurrence of power interruption in the middle of writing to a volatile memory. <P>SOLUTION: An order information processing part 12 receives order information from an order input device 20 and registers the order information to sequential data in a RAM 13. The order information processing part 12 registers in an index table in the RAM 13 an index showing the tail position of information whenever information is registered in the sequential data. When a host device 10 is restarted, the order information processing part 12 obtains the tail information of the sequential data on the basis of the index in the index table, and recovers the host device 10 on the basis of the tail information. <P>COPYRIGHT: (C)2010,JPO&amp;INPIT

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の技術が開示されている。
特開平7−220180号公報 特開2006−235868号公報
2. Description of the Related Art Conventionally, in restaurants and the like, an ordering system is used in which a customer attendant inputs an order using an order input device and transmits the order to a host device in the kitchen by wireless communication. Usually, the host device is operated by power from a commercial power source. Therefore, it is necessary to avoid the loss of the order information written in the volatile memory in the host device when a power failure or a cable connected to the power source is dropped. Therefore, conventionally, an uninterruptible power supply is provided, and the loss of information in the volatile memory is prevented by switching the power supply to the uninterruptible power supply when the power is turned off.
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.
JP-A-7-220180 JP 2006-235868 A

特許文献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 host device 10, an order input device 20, an accounting device 30, and an output device 40. The host device 10 receives the order information from the order input device 20 and manages the order information. The order input device 20 receives an order input from a user and transmits order information to the host device 10. The order information is information including a slip number, an order information identification number, an order input device number, and order contents. Here, the order information identification number is a unique identification number that the order input device 20 assigns to each order information created by itself.
The accounting device 30 receives the order information from the host device 10 based on the slip number, performs accounting for the order indicated by the order information, and transmits the accounting information to the host device 10. The accounting information is information including a slip number.
The output device 40 receives order information from the host device 10, creates slip information (output information) from the order information, and outputs the slip. Although the host device 10 may be provided in the output device 40, for convenience of explanation, the host device 10 and the output device 40 will be described as different devices here.

ホスト装置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 host device 10 includes a communication unit 11 (communication unit), an order information processing unit 12, a RAM (Random Access Memory) 13, a power backup 14, a power cut detection unit 15 (power cut detection unit), and a voltage dividing unit. 16 (first voltage dividing section) and a voltage dividing section 17 (second voltage dividing section). The communication unit 11 communicates with the order input device 20, the accounting device 30, and the output device 40. The RAM 13 sequentially holds order information, accounting information, and flags (order management information registration identification information, preliminary order management information registration identification information, acceptance completion notification transmission identification information, and slip output identification information) used for recovery from power failure. Sequential data (sequential storage means), an index table (index storage means) that holds an index indicating the end position of the sequential data, a spare index table (spare index storage means), a slip number, order information, and accounting information An order management table (order management information storage means) and a preliminary order management table (preliminary order management information storage means) that store the order management information integrated for each number in association with each other are stored. The power backup 14 supplies power to the RAM 13 when the power is cut off. The power-off detector 15 detects a voltage drop in the voltage divider 16 and notifies the order information processor 12 of a voltage drop notice in the voltage divider 17. The voltage dividing sections 16 and 17 are power supplies that obtain a 100 V power supply from the commercial power supply 50 (AC power supply), convert the voltages to 24 V and 5 V, respectively, and output them. The power output from the voltage dividing unit 16 is input to each processing unit that operates at a voltage of 24V of the host device 10, and the power output from the voltage dividing unit 17 is input to each processing unit that operates at a voltage of 5V from the host device 10. Is done. At least the order information processing unit 12 operates with the power output from the voltage dividing unit 17.

注文情報処理部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 information processing unit 12 performs the following processes (1) to (8). (1) Processing for sequentially registering order information and transaction information acquired by the communication unit 11 (reception information registration means), (2) Order management table and preliminary order management table based on order information and transaction information Processing for updating information (order management information registration means, preliminary order management information registration means), (3) Processing for sending acceptance completion notification to order input device 20 and accounting device 30 via communication unit 11 (acceptance completion notification transmission) Means), (4) processing for transmitting a slip output command to the output device 40 via the communication unit 11 and receiving a slip information output completion notification (slip output command transmitting means, slip information output completion notification receiving means), (5 ) Processing for registering indexes in the index table and the spare index table (index registration means, spare index registration means), (6) index table Processing for assigning an error detection code to the information in the spare and spare index table (index error detection code registration means), (7) Obtaining a voltage drop notice and registering it in the RAM 13 with the power of the voltage divider 17 registered in advance Waiting for a time during which information can be reliably registered, and processing for prohibiting registration of information in the RAM 13 (registration time storage means, registration control means) after elapse of time during which information can be reliably registered in the RAM 13 (8) pre-stored Processing for restoring the host device 10 based on the processing procedure information indicating the order of processing executed by the order information processing unit 12 and the information stored in the RAM 13 (processing procedure storage means, order management information recovery means) Index recovery means, recovery means).

図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 host device 10 from the ordering device 20 and the accounting device 30 and information representing the history of processing in the device itself are listed. As shown in FIG. 2, the sequential data includes sequentially order information, accounting information, order management information registration completion flag (order management information registration identification information), preliminary order management information registration completion flag (preliminary order management information registration identification information). ), A reception completion notification flag (reception completion notification transmission identification information), and a slip output completion flag (slip output identification information) are registered. The order management information registration completion flag and the preliminary order management information registration completion flag indicate that the registration of the order management information is completed in the order management table and the preliminary order management table, respectively. The reception completion notification flag indicates that a reception completion notification has been transmitted to the order input device 20 or the accounting device 30. The slip output completion flag indicates that the output device 40 has output a slip.

図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 ordering device 20 and the accounting device 30 for each slip number. The order management information is used when the accounting apparatus 30 performs accounting. As shown in FIG. 3, in the order management table, a slip number, order contents, and an accounting flag are registered for each customer. The accounting flag indicates that the accounting device 30 has finished accounting processing when it is ON, and indicates that accounting processing is not being performed when it is OFF. The configuration of the preliminary order management table is the same as the order management table.

図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 order input device 20 and the order input device 20 receives an order transmission by pressing an order confirmation button (not shown) or the like, the order input device 20 receives the input order information as a host device. 10 (step S1). The order information processing unit 12 of the host device 10 acquires the transmitted order information via the communication unit 11. The order information processing unit 12 registers the acquired order information in the sequential data in the RAM 13 (step S2). Details of the registration process for sequential data will be described later. When the registration process to the sequential data is completed, the order information processing unit 12 registers and updates the order contents stored in the order information in the order management table and the preliminary order management table in the RAM 13 (step S3). Details of the update processing of the order management table and the preliminary order management table will be described later. When the update processing of the order management table and the preliminary order management table is completed, the order information processing unit 12 transmits a reception completion notification indicating that the reception of the order information has been completed to the order input device 20 via the communication unit 11 (step S4). If the order input device 20 does not receive the reception completion notification for a predetermined time that has been registered in advance after transmitting the order information in step S1, it determines that transmission of the order information to the host device 10 has failed, Returning to step S1, order information is transmitted again.

ホスト装置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 information processing unit 12 of the host device 10 transmits the reception completion notification in step S4, the reception completion notification flag is registered in the sequential data in the RAM 13 (step S5). When the registration of the acceptance completion notification flag is completed, the order information processing unit 12 transmits a slip output command to the output device 40 (step S6). The slip output command includes order information. When receiving the slip output command, the output device 40 generates slip information based on the order information stored in the slip output command. Then, the output device 40 outputs the generated slip information (step S7). Next, when the slip information is output, the output device 40 transmits a slip output completion notification to the host device 10 (step S8). The order information processing unit 12 of the host device 10 acquires the transmitted slip output completion notification via the communication unit 11. When receiving the slip output completion notification, the order information processing unit 12 registers the slip output completion flag in the sequential data in the RAM 13 (step S9).
If the order input device 20 does not receive the order reception completion notification for some reason despite the host device 10 transmitting the order reception completion notification to the order input device 20 in step S4, the order input device 20 Returning to step S1, order information is transmitted again. The host device 10 has received the order information identification number and the order input device number of the received order information that respectively match the order information identification number and the order input device number in the order information of the sequential data, and has received the order information. If the flag has already been registered, only the order acceptance completion notification transmission process in step S4 is performed.

なお、本実施例では、注文情報処理部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 information processing unit 12 transmits a reception completion notification indicating that the reception of the order information has been completed to the order input device 20 in step S4, and sequentially registers the notification flag in the data, An example in which a slip output command is transmitted from the order information processing unit 12 to the output device 40 in S6 is shown. However, the present invention is not limited to this, and the following processing procedure may be used. That is, the order information processing unit 12 registers and updates the order contents stored in the order information in step S3 in the order management table and the preliminary order management table in the RAM 13. When the order management table and the preliminary order management table are updated, the order information processing unit 12 transmits a slip output command to the output device 40 in step S6. Next, the order information processing unit 12 receives a slip output completion notification from the output device 40 in step S9 and registers a slip output completion flag in the sequential data. When the slip output completion flag is registered, the order information processing unit 12 transmits a reception completion notification to the order input device 20 in step S4, and registers the reception completion notification flag in the sequential data in the RAM 13 in step S5. Also good.

図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 accounting device 30 and receives a request for sending an order management information request by an accounting start button (not shown) or the like, the accounting device 30 issues an order management information request storing the input slip number. Is transmitted to the host device 10 (step S11). The order information processing unit 12 of the host device 10 acquires the transmitted order management information request via the communication unit 11. The order information processing unit 12 acquires order management information associated with the slip number stored in the acquired order management information request from the order management table in the RAM 13. The order information processing unit 12 transmits the acquired order management information to the accounting apparatus 30 (step S12). The accounting device 30 calculates a fee based on the order contents of the received order management information, and performs accounting processing (step S13).

使用者が会計装置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 accounting device 30 and accepts the completion of accounting by an accounting confirmation button (not shown) or the like, the accounting device 30 transmits accounting information to the host device 10 (step S14). The order information processing unit 12 of the host device 10 acquires the transmitted transaction information via the communication unit 11. The order information processing unit 12 registers the acquired transaction information in the sequential data in the RAM 13 (step S15). When the registration process to the sequential data is completed, the order information processing unit 12 updates the accounting flag of the order management table and the preliminary order management table in the RAM 13 from OFF to ON (step S16). When the update processing of the order management table and the preliminary order management table is completed, the order information processing unit 12 transmits a reception completion notification indicating that the reception of the accounting information has been completed to the order input device 20 via the communication unit 11 (step). S17). If the accounting device 30 does not receive the acceptance completion notification for a predetermined time after transmitting the accounting information in step S14, the accounting device 30 determines that the transmission of the accounting information to the host device 10 has failed, Returning to S14, the accounting information is transmitted again.
When the order information processing unit 12 of the host device 10 transmits the reception completion notification in step S17, the reception completion notification flag is registered in the sequential data in the RAM 13 (step S18).
If the accounting apparatus 30 does not receive the accounting information reception completion notification for some reason despite the fact that the host apparatus 10 has transmitted the accounting information reception completion notification to the accounting apparatus 30 in step S17, the accounting apparatus 30 performs step S14. Return to and send the accounting information again. When the slip number of the received accounting information matches the slip number of the order information of the sequential data and the receipt completion notification flag of the accounting information has already been registered, the host device 10 receives the accounting information acceptance completion notification in step S17. Only send processing.

次に、電源断時のホスト装置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 host device 10 when the power is turned off will be described.
FIG. 7 is a diagram illustrating the operation of the host device 10 when the power is turned off.
When the commercial power supply 50 is cut off due to a power failure, cable disconnection, or the like, the output voltage becomes zero due to the interruption of the power output divided by the voltage divider 16 after the time T1 has elapsed since the power cut. When the output voltage of the voltage dividing unit 16 becomes 0, the power interruption detection unit 15 monitors the output voltage of the voltage dividing unit 16 for a time T2 after the output voltage of the voltage dividing unit 16 becomes 0. Thereby, it is determined whether or not the voltage is temporarily lowered due to a cause different from the power interruption, such as a connection failure of the cable connecting the commercial power supply 50 and the voltage dividing unit 16. If there is no increase in the output voltage during time T2 after the output voltage of the voltage dividing unit 16 becomes 0, the power-off detection unit 15 determines that the commercial power source 50 is powered off, and the order information processing unit 12 Notify the voltage drop notice. When the output voltage rises during time T2 after the output voltage of the voltage divider 16 becomes 0, the power-off detector 15 determines that the voltage is temporarily lowered. In the case of a temporary voltage drop, the output voltage of the voltage dividing unit 17 does not become 0, so that a voltage drop notice is not notified.
Upon obtaining the voltage drop notice, the order information processing unit 12 waits for a time (registration permission time) T5 during which information can be reliably registered in the RAM 13 with the output power of the voltage dividing unit 17. The time T5 is registered in the order information processing unit 12 in advance, and the time T3 to T1, T2 from when the commercial power supply 50 is turned off until the output voltage becomes 0 due to the interruption of the power output divided by the voltage dividing unit 17 This is a time calculated by subtracting the time (registration required time) T4 required to complete the registration of information in the RAM 13. The values of T1 to T4 used for calculating T5 are measured in advance. Here, the time T4 is a time required to write information to the sequential data in the RAM 13, register the index in the index table and the spare index table, and update the error detection code. At this time, the time T4 is expected to vary depending on the type and amount of information written to the sequential data in the RAM 13. Therefore, for example, information is written to sequential data in the RAM 13, the index is registered in the index table and the spare index table, and the time required to update the error detection code is measured in advance for each type of information. In order to reliably complete writing of long information, a time longer than the measurement time of the information is adopted as T4.
The order information processing unit 12 sets the new registration prohibition flag stored in the order information processing unit 12 indicating that new registration of information to the RAM 13 is prohibited after the time T5 has elapsed from the voltage drop notice acquisition from OFF to ON. The new registration prohibition flag indicates that new registration of information in the RAM 13 is permitted when OFF, and indicates that new registration of information in the RAM 13 is prohibited when ON. If the new registration prohibition flag is switched from OFF to ON during registration of information in the RAM 13, the information registration process is continued. After the time T4 elapses after the new registration prohibition flag is turned ON, the output voltage of the voltage dividing unit 17 becomes 0, and the operation of the host device 10 is stopped.

以下に、注文情報登録処理及び会計情報登録処理における注文管理テーブルと予備注文管理テーブルの更新処理の詳細を説明する。
図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 information processing unit 12 of the host device 10 first determines whether new registration of information in the RAM 13 is prohibited by the new registration prohibition flag stored in the order information processing unit 12. (Step S31). If registration in the RAM 13 is prohibited because the new registration prohibition flag is ON, information is not registered in the RAM 13 and the subsequent processing is stopped. This is to prevent loss of information during registration due to the output power of the voltage divider 17 becoming 0 during registration of information in the RAM 13.
If it is determined in step S31 that registration in the RAM 13 is not prohibited because the new registration prohibition flag is OFF, the order information processing unit 12 updates the order management information in the order management table in the RAM 13 (step S32). In the case of order information registration processing, the order contents in the order management table are updated. In the case of accounting information registration processing, the accounting flag in the order management table is updated. When the update of the order management table is completed, the order information processing unit 12 registers the order management information registration completion flag in the sequential data in the RAM 13 (step S33). The order management information registration completion flag indicates that the update of the order management table is completed by being registered. When the registration to the sequential data is completed, the order information processing unit 12 updates the preliminary order management table (step S34). In the case of the order information registration process, the order contents in the preliminary order management table are updated. In the case of the accounting information registration process, the accounting flag in the preliminary order management table is updated. When the update of the preliminary order management table is completed, the order information processing unit 12 registers the preliminary order management information registration completion flag in the sequential data in the RAM 13 (step S35). The order management information registration completion flag indicates that the update of the preliminary order management table is completed by being registered.
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 information processing unit 12 of the host device 10 first determines whether the registration of information in the RAM 13 is prohibited by the new registration prohibition flag stored in the order information processing unit 12 ( Step S41). If registration in the RAM 13 is prohibited because the new registration prohibition flag is ON, information is not registered in the RAM 13 and the subsequent processing is stopped.
If it is determined in step S41 that registration in the RAM 13 is not prohibited because the new registration prohibition flag is OFF, the order information processing unit 12 registers information in the sequential data in the RAM 13 (step S42). When the registration to the sequential data is completed, the order information processing unit 12 acquires the logical address at the end of the sequential data, and registers an index indicating the logical address at the end of the sequential data in the index table of the RAM 13 (step S43). When the registration to the index table is completed, the order information processing unit 12 updates the error detection code in the index table (step S44). When the update of the error detection code is completed, the order information processing unit 12 sequentially registers the last index of the data in the spare index table of the RAM 13 (step S45). When registration in the spare index table is completed, the order information processing unit 12 updates the error detection code in the spare index table (step S46).
If registration of information in the RAM 13 is not prohibited in step S41, the output voltage of the voltage divider 17 does not become zero at least for the time T4 described above. As described above, the time T4 is the time required to write information to the sequential data in the RAM 13, register the index in the index table and the spare index table, and update the error detection code. By starting the registration, it is ensured that the output voltage of the voltage dividing unit 17 does not become zero until the processing of steps S42 to S46 is completed.

以下に、電源断発生後、再起動時のホスト装置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 host apparatus 10 at the time of restart after the occurrence of power interruption will be described.
FIG. 10 is a flowchart showing the operation of the host apparatus 10 at the time of restart.
When the host apparatus 10 is restarted after the power failure occurs, the order information processing unit 12 acquires the error detection code from the index table of the RAM 13, and the error detection code and the index table information are obtained again by the error code calculation process. An error is detected by collating with the calculated code, and the presence or absence of an error is determined (step S51). If it is determined that there is an error in the index table, the index of the spare index table is copied (copied) to the index table (step S52). Here, the reason why error detection of the spare index table is not performed will be described. The fact that there is an error in the index table is because a power interruption occurred during registration of the index table in step 43. For this reason, since the power is cut off before registration in the spare index table, it is guaranteed that there is no error in the spare index table without error detection.
When it is determined in step S51 that there is no error in the index table, the order information processing unit 12 acquires an error detection code from the spare index table in the RAM 13, detects an error in the spare index table, and determines whether there is an error (step) S53). If it is determined that there is an error in the spare index table, the index of the index table is copied to the spare index table (step S54).
It is necessary to write information in sequential data of the RAM 13, register the index in the index table and the spare index table, and update the error detection code by the process of determining whether or not registration is prohibited in the RAM 13 in step S41 described above. Since a sufficient time T4 is secured, registration in the index table and the spare index table can be completed during T4. This ensures that the index table and the spare index table are not in error. However, when a failure occurs in the power-off detection unit 15 and the voltage dividing unit 17, the output voltage of the voltage dividing unit 17 may become 0 earlier than the required registration time after prohibiting registration in the RAM 13. For this reason, by performing error detection through the processing in steps S51 to S54, it is possible to reliably guarantee an index even when the power-off detector 15 and the voltage divider 17 are out of order.

ステップ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 unit 12 acquires an index from the index table. Based on the logical address of the sequential data indicated by the acquired index, information at the end of the sequential data in the RAM 13 is acquired (step S55). Next, the order information processing unit 12 searches the index in ascending order, and acquires the order information or the accounting information (hereinafter referred to as a processing target) registered last in the sequential data (step S56). Here, it is assumed that the indexes are registered in the index table in descending order. The order information processing unit 12 performs recovery processing based on the information at the end of the acquired sequential data and the acquired processing target (step S57). Details of the recovery process in step S57 will be described below.

図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 host device 10 interrupts the processing when registration of the order information is completed. . Therefore, there is a possibility that the voltage of the voltage dividing unit 17 becomes 0 during registration of the order management table, and the order management information in the order management table is damaged. Therefore, the order information processing unit 12 first copies the order management information in the preliminary order management table in the RAM 13 to the order management table in the RAM 13. Thereby, the order management information in the order management table can be returned to the state before the start of the order management information registration process. After copying the order management information, the order information processing unit 12 deletes the order information at the end of the sequential data. Since the order input device 20 has not received the order information acceptance completion notification, the order input device 20 returns to step S1 and transmits the order information again. Thereby, the interrupted process can be resumed.
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 host device 10 performs processing when the update of the order management table is completed. Is interrupted. Therefore, there is a possibility that the voltage of the voltage dividing unit 17 becomes 0 during registration of the preliminary order management table, and the order management information in the preliminary order management table is damaged. Therefore, the order information processing unit 12 first copies the order management information in the order management table in the RAM 13 to the preliminary order management table in the RAM 13. Thereby, the order management information in the preliminary order management table can be updated to a state in which the registration process of the order management information is completed. After copying the order management information, a preliminary order management information registration completion flag is registered in the sequential data of the RAM 13. When the registration processing to the sequential data is completed, the order information processing unit 12 does not transmit the order reception completion notification in step S4, but transmits the reception completion notification, the slip output command transmission by the processing in step S5 and subsequent steps, The flag is registered in the sequential data associated therewith. In this case, since the order input device 20 has not received the order acceptance completion notification, the order input device 20 returns to step S1 and transmits the order information again. The host device 10 has received the order information identification number and the order input device number of the received order information that respectively match the order information identification number and the order input device number in the order information of the sequential data, and has received the order information. If the flag has already been registered, only the order acceptance completion notification transmission process in step S4 is performed. Thereby, the interrupted process can be resumed and completed.
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 information processing unit 12 notifies the order reception completion in step S4. Is not transmitted, the reception completion notification is transmitted, the slip output command is transmitted, and the flag is sequentially registered in the data accordingly. When the order information retransmitted from the order input device 20 is received, that is, the order information identification number and the order input device number of the received order information are respectively the order information identification number and the order input device in the order information of the sequential data. If the number matches the number and the reception completion flag of the order information has already been registered, the host device 10 performs only the order reception completion notification transmission processing in step S4. Thereby, the interrupted process can be resumed and completed.
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 information processing unit 12 performs a slip output command by the processing from step S6 Transmission and registration of the flag to the sequential data associated therewith. Thereby, the interrupted process can be resumed and completed.
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 host device 10 suspends processing when the registration of accounting information is completed. . Therefore, there is a possibility that the voltage of the voltage dividing unit 17 becomes 0 during registration of the order management table, and the order management information in the order management table is damaged. Therefore, the order information processing unit 12 first copies the order management information in the preliminary order management table in the RAM 13 to the order management table in the RAM 13. Thereby, the order management information in the order management table can be returned to the state before the start of the order management information registration process. After copying the order management information, the order information processing unit 12 deletes the transaction information at the end of the sequential data. Since the accounting apparatus 30 has not received the accounting information reception completion notification, the accounting apparatus 30 returns to step S14 and transmits the accounting information again. Thereby, the interrupted process can be resumed.
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 host device 10 performs processing when the update of the order management table is completed. Is interrupted. Therefore, there is a possibility that the voltage of the voltage dividing unit 17 becomes 0 during registration of the preliminary order management table, and the order management information in the preliminary order management table is damaged. Therefore, the order information processing unit 12 first copies the order management information in the order management table in the RAM 13 to the preliminary order management table in the RAM 13. Thereby, the order management information in the preliminary order management table can be updated to a state in which the registration process of the order management information is completed. After copying the order management information, a preliminary order management information registration completion flag is registered in the sequential data of the RAM 13. When the registration processing to the sequential data is completed, the order information processing unit 12 registers the flag to the sequential data at step S18 without transmitting the reception completion notification at step S17. In this case, since the accounting apparatus 30 has not received the accounting acceptance completion notification, the accounting apparatus 30 returns to step S14 and transmits the accounting information again. When the slip number of the received accounting information matches the slip number in the accounting information of the sequential data and the receipt completion flag of the accounting information has already been registered, the host device 10 sends an accounting acceptance completion notification in step S17. Only send processing. Thereby, the interrupted process can be resumed and completed.
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 information processing unit 12 receives an acceptance completion notification in step S17. Without transmission, the flag is registered in the sequential data in step S18. When the accounting information retransmitted from the accounting device 30 is received, that is, the slip number of the received accounting information matches the slip number in the accounting information of the sequential data, and the receipt completion flag of the accounting information is already registered If there is, the host device 10 performs only the transaction acceptance completion notification transmission processing in step 17. Thereby, the interrupted process can be resumed and completed.
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 accounting apparatus 30, so the recovery process is performed. There is no need to do it.

このように、本実施形態によれば、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 RAM 13 after the registration to the sequential data in the RAM 13 is completed, the registration up to the end information of the sequential data indicated by the index is completed. , It can be ensured that there is no error in the information. As a result, even if the power is cut off during the registration to the sequential data, it is possible to prevent the order information, the accounting information, and the order management information from being lost.
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 RAM 13. As a result, even if a power interruption occurs during registration in the index table, there is no error in the index related to the information that has been registered, so that loss of order information, accounting information, and order management information can be prevented. it can.
Further, according to the present embodiment, the RAM 13 further includes a preliminary order management table, and the order management information is double managed to ensure that there is no error in the order management information registered in the order management table. Can do. As a result, even if the power is cut off during registration in the order management table, loss of order management information can be prevented.
In addition, according to the present embodiment, it is possible to guarantee a time when information can be registered by using the two voltage dividers 16 and 17 that have different times when the power reduction occurs. Thereby, when the power is reduced, the RAM 13 can complete the information registration without loss, and it can be guaranteed that there is no error in the stored information. Therefore, it is possible to prevent the occurrence of power interruption during registration in the RAM 13, and thus it is possible to prevent the loss of order information, transaction information, and order management information.

以上、図面を参照してこの発明の一実施形態について詳しく説明してきたが、具体的な構成は上述のものに限られることはなく、この発明の要旨を逸脱しない範囲内において様々な設計変更等をすることが可能である。
例えば、本実施形態では、ホスト装置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 host device 10 and the output device 40 are different devices has been described. However, the present invention is not limited to this, and the host device 10 has an output function and is configured as a multi-printer. The output device 40 may be configured as one device.

なお、本実施形態では、時間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 RAM 13, register the index in the index table and the spare index table, and update the error detection code”. Without being limited thereto, the time T4 may be set as “a time required for writing information to the sequential data in the RAM 13, registering the index in the index table, and updating the error detection code”. If registration of at least the index of the index table and the error detection code is surely completed, it is guaranteed that there is no error in the index table. If the output voltage of the voltage dividing unit 17 becomes 0 before the index of the index table and the error detection code are registered, an error occurs in the index table. In this case, if there is an error in the index table in step S51. An error-free index table can be restored by performing processing along the flow in the case of determination. Even if there is no error in the spare index table in step S53, there is a possibility that only the index table is updated to the latest information, so the index in the index table can be copied to the spare index as in step S54. When restarting, the index and the spare index can have the same contents.
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 RAM 13 and registering the index in the index table”.

なお、本実施形態では、オーダリングシステムに情報管理システムを適用した例を示したが、これに限られず、入力装置に入力された情報をホスト装置で管理する他の情報管理システムに適用してもよい。   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.

本発明の一実施形態によるオーダリングシステムの構成を示す概略ブロック図である。It is a schematic block diagram which shows the structure of the ordering system by one Embodiment of this invention. RAMが記憶する逐次データの例を示す図である。It is a figure which shows the example of the sequential data which RAM memorize | stores. RAMが記憶する注文管理テーブルを示す図である。It is a figure which shows the order management table which RAM memorize | stores. RAMが記憶するインデックステーブルを示す図である。It is a figure which shows the index table which RAM memorize | stores. オーダリングシステムの正常時の注文情報登録処理を示すシーケンス図である。It is a sequence diagram which shows the order information registration process at the time of normal of an ordering system. オーダリングシステムの正常時の会計情報登録処理を示すシーケンス図である。It is a sequence diagram which shows the accounting information registration process at the time of normal of an ordering system. 電源断時のホスト装置の動作を示す図である。It is a figure which shows operation | movement of the host apparatus at the time of a power failure. 注文管理テーブルと予備注文管理テーブルの更新処理を示すフローチャートである。It is a flowchart which shows the update process of an order management table and a preliminary order management table. 逐次データへの登録処理を示すフローチャートである。It is a flowchart which shows the registration process to sequential data. 再起動時のホスト装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of the host apparatus at the time of restart. 処理対象と逐次データ末尾の情報に基づく復旧処理の方法を示す表である。It is a table | surface which shows the method of the recovery process based on the information of a process target and sequential data tail.

符号の説明Explanation of symbols

1…オーダリングシステム 10…ホスト装置 11…通信部 12…注文情報処理部 13…RAM 14…電源バックアップ 15…電源断検出部 16、17…分圧部 20…注文入力装置 30…会計装置 40…出力装置 50…商用電源   DESCRIPTION OF SYMBOLS 1 ... Ordering system 10 ... Host apparatus 11 ... Communication part 12 ... Order information processing part 13 ... RAM 14 ... Power supply backup 15 ... Power-off detection part 16, 17 ... Voltage division part 20 ... Order input device 30 ... Accounting apparatus 40 ... Output Device 50 ... Commercial power supply

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.
JP2008188783A 2008-07-22 2008-07-22 Ordering system, information management system, order information loss prevention method and program Expired - Fee Related JP5311546B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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