JP2017010491A - Network system, server and control method for network system - Google Patents

Network system, server and control method for network system Download PDF

Info

Publication number
JP2017010491A
JP2017010491A JP2015128467A JP2015128467A JP2017010491A JP 2017010491 A JP2017010491 A JP 2017010491A JP 2015128467 A JP2015128467 A JP 2015128467A JP 2015128467 A JP2015128467 A JP 2015128467A JP 2017010491 A JP2017010491 A JP 2017010491A
Authority
JP
Japan
Prior art keywords
data
information
status
unit
pos terminal
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
JP2015128467A
Other languages
Japanese (ja)
Other versions
JP6493017B2 (en
Inventor
崇 河森
Takashi Kawamori
崇 河森
一佳 山越
Kazuyoshi Yamakoshi
一佳 山越
昭雄 河西
Akio Kawanishi
昭雄 河西
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson 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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2015128467A priority Critical patent/JP6493017B2/en
Publication of JP2017010491A publication Critical patent/JP2017010491A/en
Application granted granted Critical
Publication of JP6493017B2 publication Critical patent/JP6493017B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To effectively utilize log data transmitted by a control device to a server for a system in which the log data is transmitted from the control device to the server and the server constituting the system.SOLUTION: A POS terminal 13 generates log data D11 including status information data indicating a status of a monitoring item of an object of which status is monitored, transmits the log data D11 generated as a request to a maintenance server 17. When receiving the log data D11, the maintenance server 17 transmits the request corresponding thereto, stores status information data included in the log data D11 received in a first status information database 513, determines classification of the status of the monitoring item on the basis of the status information data included in the log data D11 received, generates status processing information including information indicating the classification, and stores the status processing information in a second status information database 514.SELECTED DRAWING: Figure 2

Description

本発明は、ネットワークシステム、サーバー、及び、ネットワークシステムの制御方法に関する。   The present invention relates to a network system, a server, and a network system control method.

従来、クライアントである制御装置(取引先監視クライアント)から、サーバー(監視サーバー)に対して、ログデータ(監視ログ及び異常データ)を送信するネットワークシステム(リモートメンテナンスシステム)が知られている(例えば、特許文献1参照)。   Conventionally, a network system (remote maintenance system) that transmits log data (monitoring log and abnormal data) to a server (monitoring server) from a control device (client monitoring client) that is a client is known (for example, , See Patent Document 1).

特開2003−271238号公報JP 2003-271238 A

上述したネットワークシステムのように、クライアントである制御装置から、サーバーにログデータを送信するシステムでは、制御装置がサーバーに送信するログデータをできるだけ有効利用して、システムの価値を向上したいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、制御装置からサーバーにログデータを送信するシステム、当該システムを構成するサーバーについて、制御装置がサーバーに送信するログデータを有効利用することを目的とする。
In a system that transmits log data from a control device that is a client to a server, such as the network system described above, there is a need to improve the value of the system by effectively using the log data that the control device transmits to the server as much as possible. There is.
The present invention has been made in view of the above-described circumstances, and for a system that transmits log data from a control device to a server and a server that constitutes the system, the log data that the control device transmits to the server is effectively used. With the goal.

上記目的を達成するために、本発明のネットワークシステムは、リクエストを送信する制御装置と、前記制御装置にネットワークを介して接続され、リクエストの受信に応じてレスポンスを送信するサーバーとを備え、前記制御装置は、状態を監視する対象の監視項目の状態を示すステータス情報を含むログデータを生成し、生成した前記ログデータをリクエストとして前記サーバーに送信し、前記サーバーは、前記ログデータを受信した場合、対応するリクエストを送信し、受信した前記ログデータに含まれる前記ステータス情報を第1データベースに格納し、受信した前記ログデータに含まれる前記ステータス情報に基づいて前記監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2データベースに格納することを特徴とする。
本発明の構成によれば、制御装置からサーバーにログデータを送信するシステムについて、制御装置がサーバーに送信するログデータを有効利用できる。
To achieve the above object, a network system of the present invention includes a control device that transmits a request, and a server that is connected to the control device via a network and transmits a response in response to reception of the request, The control device generates log data including status information indicating a status of a monitoring item to be monitored, transmits the generated log data to the server as a request, and the server receives the log data A corresponding request is transmitted, the status information included in the received log data is stored in a first database, and the status classification of the monitoring item is classified based on the status information included in the received log data. The status processing information including information indicating the classification and classification is generated and stored in the second database. Characterized in that it pay.
According to the configuration of the present invention, log data transmitted from the control device to the server can be effectively used for a system that transmits log data from the control device to the server.

また、本発明のネットワークシステムは、前記制御装置は、前記監視項目の前記ステータス情報に、前記監視項目を識別するステータス識別情報を含め、前記サーバーは、前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報に基づいて前記監視項目を識別し、前記監視項目に対応する方法で前記監視項目の状態の分類を判別することを特徴とする。
本発明の構成によれば、サーバーは、ステータス識別情報を利用して、的確に監視項目を識別した上で、監視項目に対応する方法で監視項目の状態を分類することができる。
In the network system of the present invention, the control device includes status identification information for identifying the monitoring item in the status information of the monitoring item, and the server generates the status processing information when generating the status processing information. The monitoring item is identified based on the status identification information included in the item, and the status classification of the monitoring item is determined by a method corresponding to the monitoring item.
According to the configuration of the present invention, the server can classify the state of the monitoring item by a method corresponding to the monitoring item after accurately identifying the monitoring item using the status identification information.

また、本発明のネットワークシステムは、前記サーバーは、前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報の値が、前記ステータス情報が前記監視項目の状態を数値によって表す情報であることを示す値である場合、前記監視項目の状態を表す数値と所定の閾値との関係に基づいて、前記監視項目の状態の分類を判別することを特徴とする。
本発明の構成によれば、サーバーは、監視項目の状態の分類を的確に判別できる。
In the network system of the present invention, when the server generates the status processing information, the value of the status identification information included in the status information is information indicating that the status information is a numerical value indicating the state of the monitoring item. In the case of a value indicating the presence, the classification of the state of the monitoring item is determined based on a relationship between a numerical value representing the state of the monitoring item and a predetermined threshold value.
According to the configuration of the present invention, the server can accurately determine the classification of the status of the monitoring item.

また、本発明のネットワークシステムは、前記サーバーは、前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報の値が、前記ステータス情報が文字列によって前記監視項目の状態を表す情報であることを示す値の場合、前記監視項目の状態を表す文字列の内容に基づいて、前記監視項目の状態の分類を判別することを特徴とする。
本発明の構成によれば、サーバーは、監視項目の状態の分類を的確に判別できる。
Further, in the network system of the present invention, when the server generates the status processing information, the value of the status identification information included in the status information indicates that the status information indicates the state of the monitoring item by a character string. In the case of a value indicating that, the classification of the state of the monitoring item is determined based on the content of a character string representing the state of the monitoring item.
According to the configuration of the present invention, the server can accurately determine the classification of the status of the monitoring item.

また、本発明のネットワークシステムは、前記サーバーは、前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報の値が、前記ステータス情報に基づく前記監視項目の状態の分類の判別を要さないことを示す値である場合、分類を示す情報を含まない前記ステータス加工情報を前記第2データベースに格納することを特徴とする。
本発明の構成によれば、必要のない場合に、監視項目の状態の分類の判別が行われることを防止できる。
In the network system of the present invention, when the status processing information is generated, the server determines the status classification of the monitoring item based on the status identification information value included in the status information. When the value indicates that it is not necessary, the status processing information not including information indicating the classification is stored in the second database.
According to the configuration of the present invention, it is possible to prevent the classification of the status of the monitoring item from being performed when it is not necessary.

また、上記目的を達成するために、本発明は、状態を監視する対象の監視項目の状態を示すステータス情報を含むログデータを生成し、生成した前記ログデータをリクエストとして送信する制御装置にネットワークを介して接続可能なサーバーであって、前記ログデータを受信した場合、対応するリクエストを送信し、受信した前記ログデータに含まれる前記ステータス情報を第1データベースに格納し、受信した前記ログデータに含まれる前記ステータス情報に基づいて前記監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2データベースに格納することを特徴とする。
本発明の構成によれば、制御装置からサーバーにログデータを送信するシステムを構成するサーバーについて、制御装置がサーバーに送信するログデータを有効利用できる。
In order to achieve the above object, the present invention generates log data including status information indicating the status of a monitoring item whose status is to be monitored, and transmits the generated log data as a request to a control device. When the log data is received, a corresponding request is transmitted, the status information included in the received log data is stored in the first database, and the received log data The status classification of the monitoring item is determined based on the status information included in the status information, status processing information including information indicating the classification is generated, and stored in the second database.
According to the configuration of the present invention, the log data transmitted from the control device to the server can be effectively used for the server constituting the system for transmitting the log data from the control device to the server.

また、上記目的を達成するために、本発明は、リクエストを送信する制御装置と、前記制御装置にネットワークを介して接続され、リクエストの受信に応じてレスポンスを送信するサーバーとを備えるネットワークシステムの制御方法であって、前記制御装置は、状態を監視する対象の監視項目の状態を示すステータス情報を含むログデータを生成し、生成した前記ログデータをリクエストとして前記サーバーに送信し、前記サーバーは、前記ログデータを受信した場合、対応するリクエストを送信し、受信した前記ログデータに含まれる前記ステータス情報を第1データベースに格納し、受信した前記ログデータに含まれる前記ステータス情報に基づいて前記監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2データベースに格納することを特徴とする。
本発明の構成によれば、制御装置からサーバーにログデータを送信するシステムについて、制御装置がサーバーに送信するログデータを有効利用できる。
In order to achieve the above object, the present invention provides a network system comprising: a control device that transmits a request; and a server that is connected to the control device via a network and transmits a response in response to reception of the request. In the control method, the control device generates log data including status information indicating a status of a monitoring item to be monitored, and transmits the generated log data to the server as a request. When the log data is received, a corresponding request is transmitted, the status information included in the received log data is stored in the first database, and the status information included in the received log data is Determines the status classification of the monitoring item and generates status processing information including information indicating the classification. And, characterized by storing in the second database.
According to the configuration of the present invention, log data transmitted from the control device to the server can be effectively used for a system that transmits log data from the control device to the server.

本実施形態に係るネットワークシステムの構成を示す図。The figure which shows the structure of the network system which concerns on this embodiment. ネットワークシステムが備える各装置の機能的構成を示すブロック図。The block diagram which shows the functional structure of each apparatus with which a network system is provided. POS端末、及び、メンテナンスサーバーのブロック図。The block diagram of a POS terminal and a maintenance server. ネットワークシステムが備える各装置の動作を示すフローチャート。The flowchart which shows operation | movement of each apparatus with which a network system is provided. POS端末の動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal. ステータス情報データの内容を示す図。The figure which shows the content of status information data. リクエストデータを示す図。The figure which shows request data. メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a maintenance server. POS端末の動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal. メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a maintenance server. 第1ステータス情報データベース、第2ステータス情報データベースに記憶されるレコードを示す図。The figure which shows the record memorize | stored in a 1st status information database and a 2nd status information database. メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a maintenance server. メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a maintenance server. 電源状態監視データベースに記憶されるレコードを示す図。The figure which shows the record memorize | stored in a power supply state monitoring database. メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a maintenance server. メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a maintenance server. POS端末、及び、店舗管理サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal and a shop management server. 会計用ユーザーインターフェースを示す図。The figure which shows the user interface for accounts. POS端末の動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal. POS端末、及び、店舗管理サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal and a shop management server. POS端末、及び、店舗管理サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal and a shop management server. POS端末、及び、店舗管理サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a POS terminal and a shop management server.

以下、図面を参照して本発明の実施形態について説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

図1は、本実施形態に係るネットワークシステム1の構成を示す図である。
図1に示すように、ネットワークシステム1は、複数の店舗管理システム10(図1では、2台の第1店舗管理システム101、及び、第2店舗管理システム102)を備える。
FIG. 1 is a diagram showing a configuration of a network system 1 according to the present embodiment.
As shown in FIG. 1, the network system 1 includes a plurality of store management systems 10 (in FIG. 1, two first store management systems 101 and a second store management system 102).

店舗管理システム10は、スーパーマーケットや、コンビニエンスストア、デパート、飲食店等の店舗を運営する企業が利用するシステムである。図1において、第1店舗管理システム101は企業K1が利用するシステムであり、第2店舗管理システム102は企業K2が利用するシステムである。企業K1及び企業K2は、提携関係が全くない別の企業であり、第1店舗管理システム101と第2店舗管理システム102との間で情報の送受信は行われない。
本実施形態では、店舗は、商品を販売する施設であるものとする。ただし、店舗は、商品を販売する施設に限らず、飲食物や、所定のサービスを提供する施設等、会計が行われる施設であればよい。また、本実施形態では、店舗管理システム10を利用する主体は企業であるものとする。ただし、店舗管理システム10を利用する主体は企業に限らない。
The store management system 10 is a system used by companies that operate stores such as supermarkets, convenience stores, department stores, and restaurants. In FIG. 1, a first store management system 101 is a system used by the company K1, and a second store management system 102 is a system used by the company K2. The company K1 and the company K2 are other companies that have no partnership relationship, and information is not transmitted and received between the first store management system 101 and the second store management system 102.
In the present embodiment, it is assumed that the store is a facility that sells products. However, the store is not limited to a facility that sells products, and may be a facility where accounting is performed, such as a food and drink or a facility that provides a predetermined service. In the present embodiment, it is assumed that the entity that uses the store management system 10 is a company. However, the entity that uses the store management system 10 is not limited to a company.

店舗管理システム10は、1又は複数の店舗システム11と、店舗管理サーバー12とを備えており、各店舗システム11と、店舗管理サーバー12とは、インターネットを含んで構成されたグローバルネットワークGNを介して通信可能に接続される。   The store management system 10 includes one or a plurality of store systems 11 and a store management server 12. Each store system 11 and the store management server 12 are connected via a global network GN including the Internet. Connected to communicate.

店舗システム11は店舗ごとに設けられたシステムであり、後述するように会計を行う機能、及び、会計に応じてレシートを発行する機能を備える。
店舗システム11が適用される店舗には、顧客が会計を行なうレジカウンターLが設けられる。各レジカウンターLには、会計に応じてレシートを発行可能なPOS端末13(制御装置)、又は、印刷装置14(外部機器)が設けられる。POS端末13、及び、印刷装置14により発行されたレシートは、レジ担当者によって顧客に引き渡される。
POS端末13、及び、印刷装置14の構成、機能、及び、機能に基づく処理については後述する。
The store system 11 is a system provided for each store, and has a function of performing accounting as described later and a function of issuing a receipt in accordance with the accounting.
A store to which the store system 11 is applied is provided with a cashier counter L for a customer to pay for. Each checkout counter L is provided with a POS terminal 13 (control device) or a printing device 14 (external device) that can issue a receipt according to a transaction. Receipts issued by the POS terminal 13 and the printing device 14 are delivered to the customer by the cashier.
The configurations, functions, and processing based on the functions of the POS terminal 13 and the printing apparatus 14 will be described later.

店舗システム11は、ローカルネットワークLNを備える。
POS端末13、及び、印刷装置14は、LANに係る通信規格に従って、ローカルネットワークLNと接続する。POS端末13、及び、印刷装置14がローカルネットワークLNと接続する際に使用する通信規格は何でもよく、また、有線接続でも無線接続でもよい。
ローカルネットワークLNには、通信装置15が接続される。通信装置15は、ローカルネットワークLNと、グローバルネットワークGNとを接続するインターフェース装置である。通信装置15は、モデム(又は、ONU(Optical Network Unit))としての機能、ルーター機能、NAT(Network Address Translation)機能、及び、DHCP(Dynamic Host Configuration Protocol)サーバー機能等を有する。通信装置15は、ローカルネットワークLNに接続された機器と、グローバルネットワークGNに接続された機器との間で行われる通信に際し、機器間で送受信されるデータを転送する。なお、図1では、通信装置15を1つのブロックで表現するが、通信装置15は、機能に応じた複数の装置を有する構成でもよい。
The store system 11 includes a local network LN.
The POS terminal 13 and the printing apparatus 14 are connected to the local network LN according to a communication standard related to the LAN. Any communication standard may be used when the POS terminal 13 and the printing apparatus 14 are connected to the local network LN, and may be wired connection or wireless connection.
A communication device 15 is connected to the local network LN. The communication device 15 is an interface device that connects the local network LN and the global network GN. The communication device 15 has a function as a modem (or ONU (Optical Network Unit)), a router function, a NAT (Network Address Translation) function, a DHCP (Dynamic Host Configuration Protocol) server function, and the like. The communication device 15 transfers data transmitted / received between devices during communication performed between a device connected to the local network LN and a device connected to the global network GN. In FIG. 1, the communication device 15 is represented by one block, but the communication device 15 may have a plurality of devices corresponding to functions.

POS端末13と、印刷装置14とは、ローカルネットワークLNを介して、互いに通信可能である。
POS端末13は、ローカルネットワークLNの通信装置15を介して、グローバルネットワークGNにアクセスし、グローバルネットワークGNと接続する機器と通信可能である。
印刷装置14は、グローバルネットワークGNにアクセスする機能を備えない。
The POS terminal 13 and the printing apparatus 14 can communicate with each other via the local network LN.
The POS terminal 13 can access the global network GN via the communication device 15 of the local network LN, and can communicate with devices connected to the global network GN.
The printing apparatus 14 does not have a function of accessing the global network GN.

店舗システム11では、1台のPOS端末13と、0台以上の(0台でもよく、1台でもよく、2台以上でもよい。)印刷装置14と、によりPOSユニット16が構成される。本実施形態では、説明の便宜のため、POSユニット16は、1又は複数台の印刷装置14を備えるものとする。
後述するように、1のPOSユニット16において、当該1のPOSユニット16の1台のPOS端末13は、当該1のPOSユニット16の1又は複数の印刷装置14を制御する。
In the store system 11, a POS unit 16 is configured by one POS terminal 13 and zero or more (0, 1 or 2 or more) printing apparatuses 14. In the present embodiment, for convenience of explanation, it is assumed that the POS unit 16 includes one or a plurality of printing apparatuses 14.
As will be described later, in one POS unit 16, one POS terminal 13 of the one POS unit 16 controls one or a plurality of printing apparatuses 14 of the one POS unit 16.

店舗管理サーバー12は、POS端末13、その他の機器をクライアントとする、クラウドシステムのクラウドサーバーである。
店舗管理サーバー12の構成、機能、及び、機能に基づく処理については、後述する。
The store management server 12 is a cloud server of a cloud system using the POS terminal 13 and other devices as clients.
The configuration, function, and processing based on the function of the store management server 12 will be described later.

図1に示すように、グローバルネットワークGNには、メンテナンスサーバー17(サーバー)が接続される。メンテナンスサーバー17は、POS端末13、その他の機器をクライアントとする、クラウドシステムのクラウドサーバーである。
メンテナンスサーバー17の構成、機能、及び、機能に基づく処理については、後述する。
As shown in FIG. 1, a maintenance server 17 (server) is connected to the global network GN. The maintenance server 17 is a cloud server of a cloud system using the POS terminal 13 and other devices as clients.
The configuration, function, and processing based on the function of the maintenance server 17 will be described later.

なお、図1では、店舗管理サーバー12、及び、メンテナンスサーバー17を、それぞれ、1つのブロックによって表現するが、これは店舗管理サーバー12、及び、メンテナンスサーバー17が、それぞれ、単一のサーバー装置により構成されることを意味するものではない。例えば、店舗管理サーバー12、又は、メンテナンスサーバー17は、複数のサーバー装置を含んで構成されたものでもよい。   In FIG. 1, the store management server 12 and the maintenance server 17 are each represented by one block. This is because the store management server 12 and the maintenance server 17 are each represented by a single server device. It does not mean that it is composed. For example, the store management server 12 or the maintenance server 17 may be configured to include a plurality of server devices.

図2は、ネットワークシステム1が備えるPOS端末13、印刷装置14、店舗管理サーバー12、及び、メンテナンスサーバー17の機能的構成を示すブロック図である。   FIG. 2 is a block diagram showing functional configurations of the POS terminal 13, the printing device 14, the store management server 12, and the maintenance server 17 included in the network system 1.

POS端末13は、ロール紙(記録媒体)を収容し、ロール紙にライン型のサーマルヘッドによってドットを形成することにより画像を印刷するラインサーマルプリンターである。
図2に示すように、POS端末13は、制御装置制御部20と、制御装置印刷部21と、制御装置記憶部22と、制御装置通信部23(通信部)と、制御装置デバイス通信部24と、を備える。
The POS terminal 13 is a line thermal printer that accommodates roll paper (recording medium) and prints an image by forming dots on the roll paper with a line-type thermal head.
As shown in FIG. 2, the POS terminal 13 includes a control device control unit 20, a control device printing unit 21, a control device storage unit 22, a control device communication unit 23 (communication unit), and a control device device communication unit 24. And comprising.

制御装置制御部20は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、POS端末13を制御する。   The control device control unit 20 includes a CPU, ROM, RAM, and other peripheral circuits (not shown), and controls the POS terminal 13.

制御装置制御部20は、処理制御部201と、クライアント機能部202と、ログ収集部203と、通信管理部204と、命令実行部205と、を備える。
処理制御部201は、POS端末13にインストールされたファームウェア、その他付随するプログラムに基づいて処理を実行する機能ブロックである。
クライアント機能部202は、POS端末13にインストールされたウェブブラウザー、その他付随するプログラムに基づいて処理を実行する機能ブロックである。
ログ収集部203、通信管理部204、及び、命令実行部205は、それぞれ、POS端末13にインストールされた対応する所定のソフトウェア、その他付随するプログラムに基づいて処理を実行する機能ブロックである。
The control device control unit 20 includes a process control unit 201, a client function unit 202, a log collection unit 203, a communication management unit 204, and an instruction execution unit 205.
The processing control unit 201 is a functional block that executes processing based on firmware installed in the POS terminal 13 and other accompanying programs.
The client function unit 202 is a functional block that executes processing based on a web browser installed in the POS terminal 13 and other accompanying programs.
The log collection unit 203, the communication management unit 204, and the command execution unit 205 are functional blocks that execute processing based on corresponding predetermined software installed in the POS terminal 13 and other accompanying programs.

制御装置印刷部21は、POS端末13の筐体に収容されたロール紙を搬送する図示しない搬送機構のほか、印刷ヘッド211、及び、カッター212を備える。   The control device printing unit 21 includes a print head 211 and a cutter 212 in addition to a transport mechanism (not shown) that transports roll paper accommodated in the casing of the POS terminal 13.

搬送機構は、印刷ヘッド211と対向する位置に設けられたプラテンローラーを備え、印刷ヘッド211とプラテンローラーとでロール紙を挟持し、プラテンローラーを所定方向に回転させて、ロール紙を搬送方向へ搬送する。   The transport mechanism includes a platen roller provided at a position facing the print head 211. The roll paper is sandwiched between the print head 211 and the platen roller, the platen roller is rotated in a predetermined direction, and the roll paper is moved in the transport direction. Transport.

印刷ヘッド211は、ロール紙の搬送方向と交わる方向に解像度に応じた複数の発熱素子が並んで設けられたサーマルヘッドであり、発熱素子を発熱させて、感熱紙であるロール紙にドットを形成する。
制御装置印刷部21は、印刷ヘッド211による1ライン(搬送方向と交わる方向に延びる発熱素子の列)分のドットの形成、及び、搬送機構による1ライン分のロール紙の搬送を交互に繰り返し行って、画像の印刷を実行する。
The print head 211 is a thermal head in which a plurality of heating elements corresponding to the resolution are arranged in a direction crossing the roll paper conveyance direction, and heat is generated from the heating elements to form dots on the roll paper, which is thermal paper. To do.
The controller printing unit 21 alternately repeats the formation of dots for one line (rows of heating elements extending in the direction intersecting the conveyance direction) by the print head 211 and the conveyance of roll paper for one line by the conveyance mechanism. Print the image.

カッター212は、固定刃と可動刃とを備え、固定刃に対して可動刃を相対的に移動させて固定刃と可動刃とを交叉させることにより、ロール紙を切断する。
制御装置印刷部21は、制御装置制御部20の制御で、搬送機構によりロール紙を搬送しつつ、印刷ヘッド211によりロール紙にレシートに係る画像を印刷し、カッター212により所定の位置でロール紙を切断して、レシートを発行する。
The cutter 212 includes a fixed blade and a movable blade, and cuts the roll paper by moving the movable blade relative to the fixed blade to cross the fixed blade and the movable blade.
The control device printing unit 21 controls the control device control unit 20 to print an image related to the receipt on the roll paper by the print head 211 while the roll paper is being transported by the transport mechanism, and the roll paper at a predetermined position by the cutter 212. And issue a receipt.

制御装置記憶部22は、不揮発性メモリーを備え、各種データを記憶する。
制御装置記憶部22は、SSD(solid state drive)を備えており、SSDのフラッシュメモリー(以下、単に「SSD」という。)に各種データを記憶可能である。
制御装置記憶部22は、生成間隔設定ファイル221、送信間隔設定ファイル222、及び、ログファイル223を記憶する。これらデータにいては後述する。
The control device storage unit 22 includes a nonvolatile memory and stores various data.
The control device storage unit 22 includes an SSD (solid state drive), and can store various data in an SSD flash memory (hereinafter simply referred to as “SSD”).
The control device storage unit 22 stores a generation interval setting file 221, a transmission interval setting file 222, and a log file 223. These data will be described later.

制御装置通信部23は、制御装置制御部20の制御で、ローカルネットワークLNにアクセスし、ローカルネットワークLNに接続された機器(他のPOS端末13、及び、印刷装置14を含む。)と通信する。
また、制御装置通信部23は、制御装置制御部20の制御で、ローカルネットワークLNの通信装置15を介してグローバルネットワークGNにアクセスし、グローバルネットワークGNに接続された機器と通信する。
The control device communication unit 23 accesses the local network LN and communicates with devices (including other POS terminals 13 and the printing device 14) connected to the local network LN under the control of the control device control unit 20. .
Also, the control device communication unit 23 accesses the global network GN via the communication device 15 of the local network LN and communicates with devices connected to the global network GN under the control of the control device control unit 20.

制御装置デバイス通信部24は、USBの規格に従ったポートや、USB以外のシリアル通信規格に従ったポート、その他通信規格に従ったポートを有するインターフェースボードを備える。制御装置デバイス通信部24は、制御装置制御部20の制御で、ポートに接続されたデバイスと通信する。なお、制御装置デバイス通信部24が無線通信機能を備え、デバイスと無線通信する構成でもよい。   The control device device communication unit 24 includes an interface board having a port conforming to the USB standard, a port conforming to a serial communication standard other than USB, and a port conforming to another communication standard. The control device device communication unit 24 communicates with a device connected to the port under the control of the control device control unit 20. The controller device communication unit 24 may have a wireless communication function and wirelessly communicate with the device.

図2の例では、POS端末13に、デバイスとして、バーコードスキャナーBS、カスタマーディスプレーCD、キャッシュドロアーKS、及び、タッチパネルTPが接続される。   In the example of FIG. 2, a barcode scanner BS, a customer display CD, a cash drawer KS, and a touch panel TP are connected to the POS terminal 13 as devices.

バーコードスキャナーBSは、商品や、商品の包装等に付されたバーコードを読み取り、読取結果を示すデータを制御装置デバイス通信部24に出力する。制御装置デバイス通信部24は、バーコードスキャナーBSから入力されたデータを、制御装置制御部20に出力する。
カスタマーディスプレーCDは、液晶ディスプレー等の表示装置であり、制御装置制御部20の制御で、画像を表示する。カスタマーディスプレーCDに表示された情報は、レジカウンターLで会計を行う顧客が視認できる。
キャッシュドロアーKSは、現金を収容するトレイや、トレイをロックする機構、トレイを引き出す機構等を備え、制御装置制御部20の制御で、ロックを解除し、トレイを引き出す。
タッチパネルTPは、液晶表示パネルや有機ELパネル等の表示パネルと、当該表示装置に重ねて設けられ、ユーザー(レジ担当者を含む。)のタッチ操作を検出するタッチセンサーと、を有する。タッチパネルTPは、レジカウンターLにおいて、レジ担当者が視認可能であり、タッチ操作可能な位置に設けられる。タッチパネルTPは、制御装置制御部20の制御で、表示パネルに画像を表示する。制御装置制御部20のクライアント機能部202は、所定の手段で取得したHTMLファイルに基づいて、タッチパネルTPにウェブページを表示可能である。また、タッチパネルTPは、ユーザーのタッチ操作を検出した場合、タッチ操作された位置を示す信号を制御装置制御部20に出力する。制御装置制御部20は、タッチパネルTPからの入力に基づいて、ユーザーのタッチ操作に対応する処理を実行する。
The barcode scanner BS reads a barcode attached to a product or product packaging, and outputs data indicating the read result to the control device communication unit 24. The control device device communication unit 24 outputs the data input from the barcode scanner BS to the control device control unit 20.
The customer display CD is a display device such as a liquid crystal display, and displays an image under the control of the control device control unit 20. The information displayed on the customer display CD can be visually recognized by the customer who makes a payment at the cashier counter L.
The cash drawer KS includes a tray that stores cash, a mechanism that locks the tray, a mechanism that pulls out the tray, and the like, and is unlocked and pulled out under the control of the control device controller 20.
The touch panel TP includes a display panel such as a liquid crystal display panel or an organic EL panel, and a touch sensor that is provided over the display device and detects a touch operation of a user (including a cashier person). The touch panel TP is provided at a position where the cashier person can visually recognize the touch panel TP and can perform a touch operation. The touch panel TP displays an image on the display panel under the control of the control device control unit 20. The client function unit 202 of the control device control unit 20 can display a web page on the touch panel TP based on the HTML file acquired by a predetermined means. In addition, when the touch operation of the user is detected, the touch panel TP outputs a signal indicating a position where the touch operation is performed to the control device control unit 20. The control device control unit 20 executes processing corresponding to the user's touch operation based on the input from the touch panel TP.

印刷装置14は、ロール紙を収容し、ロール紙にライン型のサーマルヘッドによってドットを形成することにより画像を印刷するラインサーマルプリンターである。
図2に示すように、印刷装置14は、印刷装置制御部30と、印刷装置印刷部31と、印刷装置記憶部32と、印刷装置通信部33と、印刷装置デバイス通信部34と、を備える。
The printing device 14 is a line thermal printer that stores roll paper and prints an image by forming dots on the roll paper with a line-type thermal head.
As illustrated in FIG. 2, the printing apparatus 14 includes a printing apparatus control unit 30, a printing apparatus printing unit 31, a printing apparatus storage unit 32, a printing apparatus communication unit 33, and a printing apparatus device communication unit 34. .

印刷装置制御部30は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、印刷装置14を制御する。
印刷装置印刷部31は、印刷装置14の筐体に収容されたロール紙を搬送する図示しない搬送機構のほか、印刷ヘッド、及び、カッターを備える。 印刷装置記憶部32は、EPROM等の不揮発性メモリーを備え、各種データを記憶する。
印刷装置通信部33は、印刷装置制御部30の制御で、ローカルネットワークLNにアクセスし、ローカルネットワークLNに接続された機器(POS端末13、及び、他の印刷装置14を含む。)と通信する。
印刷装置デバイス通信部34は、USBの規格に従ったポートや、USB以外のシリアル通信規格に従ったポート、その他通信規格に従ったポートを有するインターフェースボードを備える。印刷装置デバイス通信部34は、印刷装置制御部30の制御で、ポートに接続されたデバイスと通信する。なお、印刷装置デバイス通信部34が無線通信機能を備え、デバイスと無線通信する構成でもよい。図2の例では、印刷装置14に、デバイスとして、バーコードスキャナーBS、カスタマーディスプレーCD、キャッシュドロアーKS、及び、タッチパネルTPが接続される。
The printing apparatus control unit 30 includes a CPU, a ROM, a RAM, and other peripheral circuits (not shown), and controls the printing apparatus 14.
The printing apparatus printing unit 31 includes a print head and a cutter in addition to a conveyance mechanism (not shown) that conveys roll paper accommodated in the casing of the printing apparatus 14. The printing device storage unit 32 includes a nonvolatile memory such as an EPROM and stores various data.
The printing device communication unit 33 accesses the local network LN and communicates with devices (including the POS terminal 13 and other printing devices 14) connected to the local network LN under the control of the printing device control unit 30. .
The printing device device communication unit 34 includes an interface board having a port conforming to the USB standard, a port conforming to a serial communication standard other than USB, and a port conforming to another communication standard. The printing device device communication unit 34 communicates with a device connected to the port under the control of the printing device control unit 30. The printing apparatus device communication unit 34 may have a wireless communication function and wirelessly communicate with the device. In the example of FIG. 2, a barcode scanner BS, a customer display CD, a cash drawer KS, and a touch panel TP are connected to the printing apparatus 14 as devices.

図2に示すように、店舗管理サーバー12は、店舗管理サーバー制御部40と、店舗管理サーバー記憶部41と、店舗管理サーバー通信部42と、を備える。   As illustrated in FIG. 2, the store management server 12 includes a store management server control unit 40, a store management server storage unit 41, and a store management server communication unit 42.

店舗管理サーバー制御部40は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、店舗管理サーバー12を制御する。
店舗管理サーバー制御部40は、会計関連処理実行部401を備える。
会計関連処理実行部401は、店舗管理サーバー12にインストールされたサーバーソフトウェアで動作する所定のウェブアプリケーション、その他付随するプログラムに基づいて処理を実行する機能ブロックである。
The store management server control unit 40 includes a CPU (not shown), ROM, RAM, and other peripheral circuits, and controls the store management server 12.
The store management server control unit 40 includes an accounting related process execution unit 401.
The accounting-related processing execution unit 401 is a functional block that executes processing based on a predetermined web application that operates with server software installed in the store management server 12 and other accompanying programs.

店舗管理サーバー記憶部41は、図示しないハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを記憶する。
店舗管理サーバー記憶部41は、商品マスター411を記憶する。商品マスター411は、店舗で販売される商品について、商品の商品コードと、商品の単価と、その他の商品に関する情報とを対応付けて記憶する。
店舗管理サーバー記憶部41は、会計情報管理データベース412を記憶する。会計情報管理データベース412については後述する。
The store management server storage unit 41 includes a hard disk (not shown) and a nonvolatile memory such as an EEPROM, and stores various data.
The store management server storage unit 41 stores a product master 411. The merchandise master 411 stores the merchandise code of the merchandise, the unit price of the merchandise, and information related to other merchandise in association with each other for the merchandise sold at the store.
The store management server storage unit 41 stores a transaction information management database 412. The accounting information management database 412 will be described later.

図2に示すように、メンテナンスサーバー17は、メンテナンスサーバー制御部50(サーバー制御部)と、メンテナンスサーバー記憶部51(サーバー記憶部)と、メンテナンスサーバー通信部52とを備える。   As shown in FIG. 2, the maintenance server 17 includes a maintenance server control unit 50 (server control unit), a maintenance server storage unit 51 (server storage unit), and a maintenance server communication unit 52.

メンテナンスサーバー制御部50は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、メンテナンスサーバー17を制御する。   The maintenance server control unit 50 includes a CPU (not shown), ROM, RAM, and other peripheral circuits, and controls the maintenance server 17.

メンテナンスサーバー制御部50は、ログ受信部501と、レスポンス応答部502と、ログ情報記憶部503と、ログ情報表示部504と、監視部505と、を備える。
ログ受信部501、レスポンス応答部502、ログ情報記憶部503、ログ情報表示部504、及び、監視部505は、それぞれ、メンテナンスサーバー17にインストールされたサーバーソフトウェアで動作する所定のウェブアプリケーション、その他付随するプログラムに基づいて処理を実行する機能ブロックである。
The maintenance server control unit 50 includes a log reception unit 501, a response response unit 502, a log information storage unit 503, a log information display unit 504, and a monitoring unit 505.
The log receiving unit 501, the response response unit 502, the log information storage unit 503, the log information display unit 504, and the monitoring unit 505 are each a predetermined web application that operates with server software installed in the maintenance server 17, and other associated items. This is a functional block that executes processing based on a program to be executed.

メンテナンスサーバー記憶部51は、図示しないハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを記憶する。
メンテナンスサーバー記憶部51は、命令格納データベース511、契約管理データベース512、第1ステータス情報データベース513、第2ステータス情報データベース514、及び、電源状態監視データベース515を記憶する。これらデータについては後述する。
The maintenance server storage unit 51 includes a hard disk (not shown) and a nonvolatile memory such as an EEPROM, and stores various data.
The maintenance server storage unit 51 stores an instruction storage database 511, a contract management database 512, a first status information database 513, a second status information database 514, and a power supply state monitoring database 515. These data will be described later.

メンテナンスサーバー通信部52は、メンテナンスサーバー制御部50の制御で、グローバルネットワークGNにアクセスし、当該ネットワークと接続する機器(POS端末13を含む。)と通信する。   The maintenance server communication unit 52 accesses the global network GN and communicates with devices (including the POS terminal 13) connected to the network under the control of the maintenance server control unit 50.

以上のように、ネットワークシステム1は、メンテナンスサーバー17を備える。
メンテナンスサーバー17は、店舗管理システム10を利用する企業にかかわらず、企業との事前の契約に基づいて、店舗管理システム10の店舗システム11が備えるPOS端末13及び印刷装置14の状態を管理する。本実施形態では、企業K1、及び、企業K2が、メンテナンスサーバー17によるPOS端末13及び印刷装置14の状態の管理に関する契約を事前に締結しており、メンテナンスサーバー17は、第1店舗管理システム101の店舗システム11、及び、第2店舗管理システム102の店舗システム11のそれぞれについて、各店舗システム11が備えるPOS端末13及び印刷装置14の状態を統括的に管理する。
さらに、メンテナンスサーバー17は、店舗システム11のPOS端末13及び印刷装置14の保守を担当する者(以下、「保守担当者」という。)に対して、POS端末13及び印刷装置14の保守のために有益な情報を提供する。
以下、POS端末13及び印刷装置14の状態を管理する際のメンテナンスサーバー17の動作について説明する。
As described above, the network system 1 includes the maintenance server 17.
The maintenance server 17 manages the states of the POS terminal 13 and the printing apparatus 14 included in the store system 11 of the store management system 10 based on a prior contract with the company regardless of the company using the store management system 10. In the present embodiment, the company K1 and the company K2 have previously concluded a contract relating to the management of the state of the POS terminal 13 and the printing apparatus 14 by the maintenance server 17, and the maintenance server 17 includes the first store management system 101. For each of the store system 11 and the store system 11 of the second store management system 102, the state of the POS terminal 13 and the printing device 14 included in each store system 11 is comprehensively managed.
Furthermore, the maintenance server 17 is for maintenance of the POS terminal 13 and the printing apparatus 14 for a person in charge of maintenance of the POS terminal 13 and the printing apparatus 14 of the store system 11 (hereinafter referred to as “maintenance person”). To provide useful information.
Hereinafter, the operation of the maintenance server 17 when managing the states of the POS terminal 13 and the printing apparatus 14 will be described.

図3は、POS端末13の制御装置制御部20が備える機能ブロックを制御装置記憶部22が記憶するデータと共に表し、メンテナンスサーバー17のメンテナンスサーバー制御部50が備える機能ブロックをメンテナンスサーバー記憶部51が記憶するデータと共に表す図である。
以下、まず、図3を用いて、メンテナンスサーバー17がPOS端末13及び印刷装置14の状態を管理するときの機能ブロック間で送受信されるデータの基本的な流れについて説明する。図3を用いた説明では、機能ブロックの処理の詳細、及び、機能ブロック間で送受信されるデータの内容の詳細については省略する。
FIG. 3 shows the functional blocks provided in the control device control unit 20 of the POS terminal 13 together with the data stored in the control device storage unit 22, and the functional blocks provided in the maintenance server control unit 50 of the maintenance server 17 It is a figure represented with the data to memorize | store.
Hereinafter, first, a basic flow of data transmitted and received between functional blocks when the maintenance server 17 manages the states of the POS terminal 13 and the printing apparatus 14 will be described with reference to FIG. In the description using FIG. 3, the details of the processing of the functional blocks and the details of the contents of data transmitted / received between the functional blocks are omitted.

図3に示すように、POS端末13のログ収集部203は、生成間隔設定ファイル221を参照し、生成間隔設定ファイル221が示す間隔でリクエストデータD1を生成する。
リクエストデータD1は、ログデータD11、及び、処理結果通知データD12を含むデータである。
ログ収集部203は、生成したリクエストデータD1を、通信管理部204に出力する(図3の矢印Y1)。
As illustrated in FIG. 3, the log collection unit 203 of the POS terminal 13 refers to the generation interval setting file 221 and generates request data D1 at an interval indicated by the generation interval setting file 221.
The request data D1 is data including log data D11 and processing result notification data D12.
The log collection unit 203 outputs the generated request data D1 to the communication management unit 204 (arrow Y1 in FIG. 3).

通信管理部204は、送信間隔設定ファイル222を参照し、送信間隔設定ファイル222が示す間隔で、ログ収集部203から入力されたリクエストデータD1をメンテナンスサーバー17に送信する(図3の矢印Y2)。
通信管理部204が間隔をあけてメンテナンスサーバー17に送信するリクエストデータD1は、クライアントであるPOS端末13からサーバーであるメンテナンスサーバー17に送信するリクエストに相当する。メンテナンスサーバー17は、リクエストであるリクエストデータD1の受信に応答するレスポンスとして、POS端末13にデータを送信することが可能となる。
The communication management unit 204 refers to the transmission interval setting file 222 and transmits the request data D1 input from the log collection unit 203 to the maintenance server 17 at an interval indicated by the transmission interval setting file 222 (arrow Y2 in FIG. 3). .
The request data D1 that the communication management unit 204 transmits to the maintenance server 17 at intervals corresponds to a request transmitted from the POS terminal 13 that is a client to the maintenance server 17 that is a server. The maintenance server 17 can transmit data to the POS terminal 13 as a response in response to reception of the request data D1 that is a request.

メンテナンスサーバー17のログ受信部501は、POS端末13が送信したリクエストデータD1を受信する。ログ受信部501は、受信したリクエストデータD1を、レスポンス応答部502に出力する(図3の矢印Y3)。   The log receiving unit 501 of the maintenance server 17 receives the request data D1 transmitted from the POS terminal 13. The log receiving unit 501 outputs the received request data D1 to the response response unit 502 (arrow Y3 in FIG. 3).

レスポンス応答部502は、ログ受信部501から入力されたログデータD11に基づいて、命令格納データベース511を参照し、リクエストデータD1(リクエスト)に対応するレスポンスとしてレスポンスデータD2を生成する。
レスポンスデータD2は、後述するように、POS端末13に所定の処理を実行させる処理命令制御データD21(制御データ)、及び、所定の監視項目(後述)の状態がエラー警告状態(後述)又はエラー予兆状態(後述)であることを示すエラー警告/予兆通知データD22を含む。
レスポンス応答部502は、生成したレスポンスデータD2をPOS端末13に送信する(図3の矢印Y5)。
また、レスポンス応答部502は、リクエストデータD1を、ログ情報記憶部503に出力する(図3の矢印Y4)。
The response response unit 502 refers to the instruction storage database 511 based on the log data D11 input from the log reception unit 501, and generates response data D2 as a response corresponding to the request data D1 (request).
As will be described later, the response data D2 includes processing command control data D21 (control data) for causing the POS terminal 13 to execute predetermined processing, and a predetermined monitoring item (described later) in an error warning state (described later) or an error. Error warning / prediction notification data D22 indicating a predictive state (described later) is included.
The response response unit 502 transmits the generated response data D2 to the POS terminal 13 (arrow Y5 in FIG. 3).
Also, the response response unit 502 outputs the request data D1 to the log information storage unit 503 (arrow Y4 in FIG. 3).

また、ログ情報記憶部503は、レスポンス応答部502から入力されたリクエストデータD1に基づいて、第1ステータス情報データベース513(後述)にレコードを記憶し、第2ステータス情報データベース514(後述)にレコードを記憶する。   Further, the log information storage unit 503 stores a record in the first status information database 513 (described later) based on the request data D1 input from the response response unit 502, and records in the second status information database 514 (described later). Remember.

POS端末13の通信管理部204は、メンテナンスサーバー17が送信したレスポンスデータD2を受信する。
通信管理部204は、受信したレスポンスデータD2に含まれるエラー警告/予兆通知データD22を、ログ収集部203に出力する(図3の矢印Y6)。
また、通信管理部204は、受信したレスポンスデータD2に含まれる処理命令制御データD21を、命令実行部205に出力する(図3の矢印Y7)。
The communication management unit 204 of the POS terminal 13 receives the response data D2 transmitted from the maintenance server 17.
The communication management unit 204 outputs the error warning / prediction notification data D22 included in the received response data D2 to the log collection unit 203 (arrow Y6 in FIG. 3).
Further, the communication management unit 204 outputs the processing command control data D21 included in the received response data D2 to the command execution unit 205 (arrow Y7 in FIG. 3).

命令実行部205は、通信管理部204から入力された処理命令制御データD21に基づいて、所定の処理を実行する。命令実行部205は、実行した所定の処理の処理結果を示す処理結果データD3を生成する。命令実行部205は、生成した処理結果データD3を、ログ収集部203に出力する(図3の矢印Y8)。   The command execution unit 205 executes predetermined processing based on the processing command control data D21 input from the communication management unit 204. The instruction execution unit 205 generates processing result data D3 indicating the processing result of the executed predetermined processing. The instruction execution unit 205 outputs the generated processing result data D3 to the log collection unit 203 (arrow Y8 in FIG. 3).

ログ収集部203は、通信管理部204から入力されたエラー警告/予兆通知データD22、及び、生成したログデータD11に基づいて、必要に応じて、生成間隔設定ファイル221の内容を変更する。
また、ログ収集部203は、命令実行部205から入力された処理結果データD3に基づいて、処理結果通知データD12を生成する。
The log collection unit 203 changes the contents of the generation interval setting file 221 as necessary based on the error warning / prediction notification data D22 input from the communication management unit 204 and the generated log data D11.
Further, the log collection unit 203 generates processing result notification data D12 based on the processing result data D3 input from the instruction execution unit 205.

その後、ログ収集部203は、生成間隔設定ファイル221を参照し、生成間隔設定ファイル221が示す間隔でリクエストデータD1を生成し、通信管理部204に出力する。   Thereafter, the log collection unit 203 refers to the generation interval setting file 221 to generate request data D1 at an interval indicated by the generation interval setting file 221 and outputs the request data D1 to the communication management unit 204.

以上のように、POS端末13が間隔をあけてリクエストデータD1(ログデータD11)をメンテナンスサーバー17に送信し、メンテナンスサーバー17が受信したリクエストデータD1に基づく処理を実行し、レスポンスとしてレスポンスデータD2を送信し、POS端末13が受信したレスポンスデータD2に基づく処理を実行する、というサイクルで、POS端末13及びメンテナンスサーバー17間でデータの送受信が行われる。   As described above, the POS terminal 13 transmits the request data D1 (log data D11) at an interval to the maintenance server 17, executes processing based on the request data D1 received by the maintenance server 17, and response data D2 as a response. Is transmitted and received, and data is transmitted and received between the POS terminal 13 and the maintenance server 17 in a cycle in which processing based on the response data D2 received by the POS terminal 13 is executed.

次に、POS端末13及び印刷装置14の状態を管理する際のメンテナンスサーバー17の動作について詳細に説明する。
図4は、POS端末13、及び、メンテナンスサーバー17の動作を示すフローチャートである。
図4(A)はPOS端末13のログ収集部203の動作を示し、(B)はPOS端末13の通信管理部204の動作を示し、(C)はPOS端末13の命令実行部205の動作を示し、(D)はメンテナンスサーバー17のログ受信部501の動作を示し、(E)はメンテナンスサーバー17のレスポンス応答部502の動作を示し、(F)はメンテナンスサーバー17のログ情報記憶部503の動作を示す。
Next, the operation of the maintenance server 17 when managing the states of the POS terminal 13 and the printing apparatus 14 will be described in detail.
FIG. 4 is a flowchart showing the operations of the POS terminal 13 and the maintenance server 17.
4A shows the operation of the log collection unit 203 of the POS terminal 13, FIG. 4B shows the operation of the communication management unit 204 of the POS terminal 13, and FIG. 4C shows the operation of the instruction execution unit 205 of the POS terminal 13. (D) shows the operation of the log receiving unit 501 of the maintenance server 17, (E) shows the operation of the response response unit 502 of the maintenance server 17, and (F) shows the log information storage unit 503 of the maintenance server 17. Shows the operation.

図4(A)に示すように、ログ収集部203は、生成間隔設定ファイル221を参照し、リクエストデータD1を生成するタイミングが到来したか否かを監視する(ステップSA1)。
生成間隔設定ファイル221は、リクエストデータD1を生成する間隔を示す情報が記録されたファイルである。ステップSA1において、ログ収集部203は、生成間隔設定ファイル221を参照し、前回、リクエストデータD1を生成した後、生成間隔設定ファイル221が示す間隔が経過した場合、リクエストデータD1を生成するタイミングが到来したと判別する。
As shown in FIG. 4A, the log collection unit 203 refers to the generation interval setting file 221 and monitors whether the timing for generating the request data D1 has arrived (step SA1).
The generation interval setting file 221 is a file in which information indicating an interval for generating the request data D1 is recorded. In step SA1, the log collection unit 203 refers to the generation interval setting file 221, and after generating the request data D1 last time, when the interval indicated by the generation interval setting file 221 has elapsed, the timing of generating the request data D1 is determined. It is determined that it has arrived.

後述するように、生成間隔設定ファイル221に記録された情報が示す間隔は、所定の間隔(以下、「基準生成間隔」という。)を最長の間隔として、基準生成間隔よりも短い間隔である場合がある。   As will be described later, the interval indicated by the information recorded in the generation interval setting file 221 is shorter than the reference generation interval, with a predetermined interval (hereinafter referred to as “reference generation interval”) as the longest interval. There is.

リクエストデータD1を生成するタイミングが到来した場合(ステップSA1:YES)、ログ収集部203は、所定の記憶領域に記憶された処理結果データD3に基づいて、処理結果通知データD12を生成する(ステップSA2)。
処理結果通知データD12は、情報を階層化して記述可能なテキストデータ(例えば、XML(Extensible Markup Language)形式のデータ)であり、メンテナンスサーバー17にリクエストとして送信可能なデータである。
処理結果通知データD12の生成後、ログ収集部203は、所定の記憶領域から処理結果通知データD12の生成に用いた処理結果データD3を削除する。
後に明らかとなる通り、ログ収集部203は、前回、リクエストデータD1を生成した後、ステップSA1でリクエストデータD1を生成するタイミングが到来したと判別するまでに、命令実行部205から入力された処理結果データD3を所定の記憶領域に記憶する。
When it is time to generate the request data D1 (step SA1: YES), the log collection unit 203 generates processing result notification data D12 based on the processing result data D3 stored in a predetermined storage area (step S1). SA2).
The processing result notification data D12 is text data (for example, data in XML (Extensible Markup Language) format) that can be described by hierarchizing information, and is data that can be transmitted to the maintenance server 17 as a request.
After generating the processing result notification data D12, the log collection unit 203 deletes the processing result data D3 used for generating the processing result notification data D12 from a predetermined storage area.
As will be apparent later, the log collection unit 203 generates the request data D1 before the processing that is input from the instruction execution unit 205 until it is determined in step SA1 that the timing for generating the request data D1 has arrived. The result data D3 is stored in a predetermined storage area.

次いで、ログ収集部203は、ログデータ生成処理を実行する(ステップSA3)。ログデータ生成処理は、ログデータD11を生成する処理である。以下、ログデータ生成処理について詳述する。   Next, the log collection unit 203 executes log data generation processing (step SA3). The log data generation process is a process for generating log data D11. Hereinafter, the log data generation process will be described in detail.

図5は、ログデータ生成処理の実行時のログ収集部203の動作を詳細に示すフローチャートである。
図5に示すように、ログ収集部203は、制御装置記憶部22が記憶するログファイル223を参照する(ステップSG1)。
ログファイル223は、複数の監視項目のそれぞれのログが記録されたファイルである。監視項目とは、状態を監視し、ログを取る対象とすることが事前に定められた項目のことである。本実施形態では、監視項目として、監視項目:通信エラー、監視項目:プリンターエラー、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、監視項目:データ転送速度、監視項目:SSD使用実績値、監視項目:印刷ヘッド形成ライン累計数、監視項目:カッター使用累計数、監視項目:動作プロセス、及び、監視項目:接続デバイスが存在する。なお、本実施形態で説明する監視項目は一例であり、例示した監視項目に加えて、又は、例示した監視項目の少なくとも一部に代えて、他の監視項目が存在してもよい。
FIG. 5 is a flowchart showing in detail the operation of the log collection unit 203 when the log data generation process is executed.
As shown in FIG. 5, the log collection unit 203 refers to the log file 223 stored in the control device storage unit 22 (step SG1).
The log file 223 is a file in which logs of a plurality of monitoring items are recorded. The monitoring item is an item that is determined in advance as a target for monitoring a state and collecting a log. In this embodiment, monitoring items: monitoring item: communication error, monitoring item: printer error, monitoring item: RAM usage rate, monitoring item: CPU usage rate, monitoring item: CPU temperature, monitoring item: data transfer rate, monitoring item : SSD usage record value, monitoring item: print head formation line cumulative number, monitoring item: cumulative cutter usage number, monitoring item: operation process, and monitoring item: connected device. Note that the monitoring items described in the present embodiment are examples, and other monitoring items may exist in addition to the exemplified monitoring items or instead of at least a part of the exemplified monitoring items.

監視項目:通信エラーのログとして、ログファイル223には、通信エラーが発生したことを示す情報、及び、発生した通信エラーが解消したことを示す情報が、日時(日付+時刻)を示す情報と共に、時系列で記録される。通信エラーとは、受信したデータを一時的に格納する受信バッファーのオーバーフロー等、正常に通信を行うことができない状態をいう。
処理制御部201は、通信エラーが発生したか否か、及び、通信エラーが解消したか否かを監視し(監視項目:通信エラーの状態を監視し)、ログファイル223に監視項目:通信エラーのログを記録する。
Monitoring item: As a communication error log, the log file 223 includes information indicating that a communication error has occurred and information indicating that the generated communication error has been resolved together with information indicating the date and time (date + time). , Recorded in time series. A communication error refers to a state in which normal communication cannot be performed, such as an overflow of a reception buffer that temporarily stores received data.
The processing control unit 201 monitors whether or not a communication error has occurred and whether or not the communication error has been resolved (monitoring item: monitoring the state of the communication error), and the monitoring item: communication error is recorded in the log file 223. Record the log.

監視項目:プリンターエラーのログとして、ログファイル223には、プリンターエラーが発生したことを示す情報、及び、発生したプリンターエラーが解消したことを示す情報が、日時を示す情報と共に、時系列で記録される。プリンターエラーとは、ロール紙の紙切れや、ロール紙の紙詰まり等、正常に印刷を行うことができない状態をいう。
処理制御部201は、プリンターエラーが発生したか否か、及び、プリンターエラーが解消したか否かを監視し(監視項目:プリンターエラーの状態を監視し)、ログファイル223に監視項目:プリンターエラーのログを記録する。
Monitoring item: As a log of printer errors, the log file 223 records information indicating that a printer error has occurred and information indicating that the generated printer error has been resolved in chronological order together with information indicating the date and time. Is done. A printer error refers to a state where printing cannot be performed normally, such as running out of roll paper or jammed roll paper.
The processing control unit 201 monitors whether or not a printer error has occurred and whether or not the printer error has been resolved (monitoring item: monitoring the status of the printer error), and the monitoring item: printer error in the log file 223. Record the log.

監視項目:RAM使用率のログとして、ログファイル223には、RAMの使用率(以下、「RAM使用率」という。)を示す情報が、日時を示す情報と共に、時系列で記録される。
処理制御部201は、所定の手段により、所定の間隔でRAM使用率を取得し(監視項目:RAM使用率の状態を監視し)、ログファイル223に監視項目:RAM使用率のログを記録する。
As a log of the monitoring item: RAM usage rate, information indicating the RAM usage rate (hereinafter referred to as “RAM usage rate”) is recorded in the log file 223 in time series together with information indicating the date and time.
The processing control unit 201 acquires the RAM usage rate at a predetermined interval (monitoring item: monitoring the status of the RAM usage rate) by a predetermined means, and records a log of the monitoring item: RAM usage rate in the log file 223. .

監視項目:CPU使用率のログとして、ログファイル223には、CPUの使用率(以下、「CPU使用率」という。)を示す情報が、日時を示す情報と共に、時系列で記録される。
処理制御部201は、所定の間隔でCPU使用率を取得し(監視項目:CPU使用率の状態を監視し)、ログファイル223に監視項目:CPU使用率のログを記録する。
As a monitoring item: CPU usage rate log, information indicating the CPU usage rate (hereinafter referred to as “CPU usage rate”) is recorded in the log file 223 along with information indicating the date and time.
The process control unit 201 acquires the CPU usage rate at a predetermined interval (monitors the status of the monitoring item: CPU usage rate), and records the log of the monitoring item: CPU usage rate in the log file 223.

監視項目:CPU温度のログとして、ログファイル223には、CPUの温度(以下、「CPU温度」という。)を示す情報が、日時を示す情報と共に、時系列で記録される。
処理制御部201は、所定の手段により所定の間隔でCPU温度を取得し(監視項目:CPU温度の状態を監視し)、ログファイル223に監視項目:CPU温度のログを記録する。
As a monitoring item: CPU temperature log, information indicating the temperature of the CPU (hereinafter referred to as “CPU temperature”) is recorded in time series in the log file 223 together with information indicating the date and time.
The process control unit 201 acquires the CPU temperature at predetermined intervals by a predetermined means (monitoring item: monitoring the state of the CPU temperature), and records a log of the monitoring item: CPU temperature in the log file 223.

監視項目:データ転送速度のログとして、ログファイル223には、データ転送速度を示す情報が、日時を示す情報と共に、時系列で記録される。データ転送速度とは、グローバルネットワークGNを介して送信可能な単位時間あたりのデータのデータ量である。
処理制御部201は、所定の間隔で、所定の手段でデータ転送速度を取得し(監視項目データ転送速度の状態を監視し)、ログファイル223に監視項目:データ転送速度のログを記録する。
As a log of monitoring item: data transfer rate, information indicating the data transfer rate is recorded in the log file 223 in time series together with information indicating the date and time. The data transfer rate is the amount of data per unit time that can be transmitted via the global network GN.
The processing control unit 201 acquires the data transfer rate by a predetermined means at a predetermined interval (monitors the status of the monitoring item data transfer rate), and records a log of the monitoring item: data transfer rate in the log file 223.

監視項目:SSD使用実績値のログとして、ログファイル223には、SSDに対する累計の書き込み回数、及び、SSDに対して単位時間あたりに書き込まれるデータのデータ量の平均値、その他のSSDの寿命を算出するために必要な値(以下、SSDの寿命を算出するために必要な値を「SSD使用実績値」という。)を示す情報が、日時を示す情報と共に、時系列で記録される。
処理制御部201は、所定の間隔でSSD使用実績値を取得し(監視項目:使用実績値の状態を監視し)、ログファイル223に監視項目:SSD使用実績値のログを記録する。
Monitoring item: As a log of actual SSD usage values, the log file 223 includes the cumulative number of writes to the SSD, the average value of the amount of data written to the SSD per unit time, and the life of other SSDs. Information indicating a value necessary for calculation (hereinafter, a value necessary for calculating the life of the SSD is referred to as “SSD actual use value”) is recorded in time series together with information indicating the date and time.
The process control unit 201 acquires the SSD usage record value at a predetermined interval (monitoring item: monitoring the status of the use record value), and records the log of the monitoring item: SSD use record value in the log file 223.

監視項目:印刷ヘッド形成ライン累計数のログとして、ログファイル223には、印刷ヘッド形成ライン累計数を示す情報が、日時を示す情報と共に、時系列で記録される。
印刷ヘッド形成ライン累計数とは、印刷ヘッド211により形成したラインの累計数のことである。上述したように、本実施形態に係るPOS端末13の制御装置印刷部21は、印刷ヘッド211による1ライン分のドットの形成、及び、搬送機構による1ライン分のロール紙の搬送を交互に繰り返し行って画像の印刷を実行する。また上述したように、ラインの形成とは、印刷ヘッド211により1ライン分のドットを形成することをいう。
処理制御部201は、所定の間隔で印刷ヘッドライン累計数を取得し(監視項目:印刷ヘッド形成ライン累計数を監視し)、ログファイル223に監視項目:印刷ヘッド形成ライン累計数のログを記録する。
Monitoring item: As a log of the total number of print head formation lines, information indicating the total number of print head formation lines is recorded in time series in the log file 223 together with information indicating the date and time.
The cumulative number of print head formation lines is the cumulative number of lines formed by the print head 211. As described above, the control device printing unit 21 of the POS terminal 13 according to this embodiment alternately repeats the formation of dots for one line by the print head 211 and the conveyance of roll paper for one line by the conveyance mechanism. Go to print the image. As described above, the formation of a line means that a dot for one line is formed by the print head 211.
The processing control unit 201 acquires the print head line cumulative number at a predetermined interval (monitoring item: monitors the print head forming line cumulative number), and records a log of the monitoring item: print head forming line cumulative number in the log file 223. To do.

監視項目:カッター使用累計数のログとして、ログファイル223には、カッター使用累計数を示す情報が、日時を示す情報と共に、時系列で記録される。
カッター使用累計数とは、カッター212が行ったロール紙の切断の累計数のことである。
処理制御部201は、所定の間隔でカッター使用累計数を取得し(監視項目:カッター使用累計数を監視し)、ログファイル223に監視項目:カッター使用累計数のログを記録する。
Monitoring item: As a log of the cumulative number of cutters used, information indicating the cumulative number of cutters used is recorded in the log file 223 in time series together with information indicating the date and time.
The cumulative number of cutters used is the cumulative number of roll paper cuts performed by the cutter 212.
The processing control unit 201 acquires the cumulative number of cutters used at a predetermined interval (monitoring item: monitors the cumulative number of cutters used), and records a log of the monitoring item: cumulative number of cutters used in the log file 223.

監視項目:動作プロセスのログとして、ログファイル223には、動作状態の(=CPUの割り当てが行われた状態の)プロセスの名称を表す文字列が、日時を示す情報と共に、時系列で記録される。
処理制御部201は、所定の間隔で動作状態のプロセスを取得し、ログファイル223に監視項目:動作プロセスのログを記録する。
Monitoring item: As a log of an operation process, in the log file 223, a character string indicating the name of a process in an operation state (= a state in which a CPU is assigned) is recorded in time series together with information indicating date and time. The
The process control unit 201 acquires a process in an operation state at a predetermined interval, and records a log of monitoring item: operation process in the log file 223.

監視項目:接続デバイスのログとして、ログファイル223には、接続状態のデバイスの種類を表す文字列が、日時を示す情報と共に、時系列で記録される。
接続状態のデバイスとは、有線接続、又は、無線接続されたデバイスであり、正常に通信可能なデバイスのことをいう。
処理制御部201は、所定の間隔で接続状態のデバイスの種類を取得し、ログファイル223に監視項目:接続デバイスのログを記録する。
As a monitoring item: connected device log, a character string indicating the type of device in the connected state is recorded in the log file 223 in time series together with information indicating the date and time.
The connected device is a device connected by wire or wirelessly and means a device that can communicate normally.
The process control unit 201 acquires the type of the connected device at a predetermined interval, and records the monitoring item: connected device log in the log file 223.

なお、ログファイル223には、上述した監視項目のログのほか、少なくとも、ライン形成時記録媒体属性情報、及び、切断時記録媒体属性情報が記録される。
ライン形成時記録媒体属性情報は、過去にPOS端末13に収容されたロール紙の紙質、種類、及び、厚さの組み合わせ(以下、「記録媒体属性」という。)を示す情報と、それぞれの記録媒体属性のロール紙に対して形成されたラインの累計数を示す情報とを対応付けた値のことである。
例えば、過去に、紙質kx1、種類sx1、及び、厚さax1の組み合わせに係る記録媒体属性z1のロール紙と、紙質kx2、種類sx2、及び、厚さsx2の組み合わせに係る記録媒体属性z2のロール紙とが、POS端末13に収容されたことがあるとする。さらに、印刷ヘッド形成ライン累計数が「100」であり、記録媒体属性z1のロール紙に形成したラインの累計数が「30」であり、記録媒体属性z2のロール紙に形成したラインの累計数が「70」であるとする。この場合、ライン形成時記録媒体属性情報は、記録媒体属性z1を示す情報と、記録媒体属性z1のロール紙に形成したラインの累計数である「30」を示す情報とを対応付けた情報、及び、記録媒体属性z2を示す情報と、記録媒体属性z2のロール紙に形成したラインの累計数である「70」を示す情報とを対応付けた情報である。
The log file 223 records at least the line formation time recording medium attribute information and the disconnection time recording medium attribute information in addition to the monitoring item log described above.
The recording medium attribute information at the time of line formation includes information indicating a combination of the quality, type, and thickness (hereinafter referred to as “recording medium attribute”) of the roll paper accommodated in the POS terminal 13 in the past, and the respective recordings. This is a value associated with information indicating the cumulative number of lines formed on roll paper having a medium attribute.
For example, in the past, a roll paper having a recording medium attribute z1 associated with a combination of paper quality kx1, type sx1, and thickness ax1, and a roll having a recording medium attribute z2 associated with a combination of paper quality kx2, type sx2, and thickness sx2. Assume that paper has been accommodated in the POS terminal 13. Further, the cumulative number of print head formation lines is “100”, the cumulative number of lines formed on the roll paper with the recording medium attribute z1 is “30”, and the cumulative number of lines formed on the roll paper with the recording medium attribute z2. Is “70”. In this case, the recording medium attribute information at the time of line formation is information in which information indicating the recording medium attribute z1 is associated with information indicating “30” that is the cumulative number of lines formed on the roll paper having the recording medium attribute z1. The information indicating the recording medium attribute z2 is associated with information indicating “70”, which is the cumulative number of lines formed on the roll paper having the recording medium attribute z2.

また、切断時記録媒体属性情報は、過去にPOS端末13に収容されたロール紙の記録媒体属性を示す情報と、それぞれの記録媒体属性のロール紙に対してカッター212により行われた切断の累計数を示す情報とを対応付けた値のことである。
例えば、過去に、記録媒体属性z1のロール紙と、記録媒体属性z2のロール紙とが、POS端末13に収容されたことがあるとする。さらに、カッター使用累計数が「100」であり、記録媒体属性z1のロール紙に対してカッター212により行った切断の累計数が「30」であり、記録媒体属性z2のロール紙に対してカッター212により行った切断の累計数が「70」であるとする。この場合、切断時記録媒体属性情報は、記録媒体属性z1を示す情報と、記録媒体属性z1のロール紙に形成したラインの累計数である「30」を示す情報とを対応付けた情報、及び、記録媒体属性z2を示す情報と、記録媒体属性z2のロール紙に形成したラインの累計数である「70」を示す情報とを対応付けた情報である。
The recording medium attribute information at the time of cutting includes information indicating the recording medium attribute of the roll paper accommodated in the POS terminal 13 in the past, and the cumulative number of cuttings performed by the cutter 212 on the roll paper of each recording medium attribute. It is a value associated with information indicating the number.
For example, it is assumed that the roll paper having the recording medium attribute z1 and the roll paper having the recording medium attribute z2 have been accommodated in the POS terminal 13 in the past. Further, the cumulative number of cutters used is “100”, the cumulative number of cuts made by the cutter 212 with respect to the roll paper having the recording medium attribute z1 is “30”, and the cutter is used with respect to the roll paper having the recording medium attribute z2. Assume that the cumulative number of cuts made in 212 is “70”. In this case, the recording medium attribute information at the time of cutting is information in which information indicating the recording medium attribute z1 is associated with information indicating “30” that is the cumulative number of lines formed on the roll paper of the recording medium attribute z1; , Information indicating the recording medium attribute z2 and information indicating “70” that is the cumulative number of lines formed on the roll paper having the recording medium attribute z2.

処理制御部201は、所定のセンサーからの入力や、所定の手段によるユーザーの入力に基づいて、POS端末13に収納されたロール紙の記録媒体属性を管理し、管理した記録媒体属性に基づいて、適宜、ログファイル223にライン形成時記録媒体属性情報、及び、切断時記録媒体属性情報を記録する。   The processing control unit 201 manages the recording medium attribute of the roll paper stored in the POS terminal 13 based on an input from a predetermined sensor or a user input by a predetermined means, and based on the managed recording medium attribute The recording medium attribute information at the time of line formation and the recording medium attribute information at the time of cutting are recorded in the log file 223 as appropriate.

図5に示すように、ログ収集部203は、ステップSG1で参照したログファイル223に基づいて、各監視項目のログ、ライン形成時記録媒体属性情報、及び、切断時記録媒体属性情報を取得する(ステップSG2)。   As illustrated in FIG. 5, the log collection unit 203 acquires the log of each monitoring item, the line formation recording medium attribute information, and the cutting recording medium attribute information based on the log file 223 referred to in step SG1. (Step SG2).

次いで、ログ収集部203は、各監視項目のステータス情報データ(ステータス情報)を生成する(ステップSG3)。以下、各監視項目のステータス情報データについて、詳述する。   Next, the log collection unit 203 generates status information data (status information) for each monitoring item (step SG3). Hereinafter, the status information data of each monitoring item will be described in detail.

図6は、各監視項目のステータス情報データの内容を模式的に示す図である。
後述するように、ステータス情報データは、ステータス情報データを識別する識別情報であるステータス識別情報を含む。
FIG. 6 is a diagram schematically showing the contents of status information data of each monitoring item.
As will be described later, the status information data includes status identification information that is identification information for identifying the status information data.

図6(A)は、監視項目:通信エラーのステータス情報データ(以下、「通信エラーステータス情報データ」という。)の内容を示す図である。
図6(A)に示すように、通信エラーステータス情報データは、通信エラーステータス情報データを識別するステータス識別情報(以下、「通信エラーステータス識別情報」という。)を備える。
また、通信エラーステータス情報データは、通信エラー状態情報を備える。通信エラー状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)で発生した状態の通信エラーを示す情報と、通信エラーが発生した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:通信エラーのログに基づいて通信エラー状態情報を生成し、通信エラーステータス識別情報と、通信エラー状態情報とを対応付けて通信エラーステータス情報データを生成する。
なお、ログ収集部203は、現時点で、通信エラーが発生した状態ではない場合(過去に発生した通信エラーが解消しており、新たに通信エラーが発生してない状態の場合)、通信エラーステータス情報データを生成しない。
FIG. 6A shows the contents of monitoring item: communication error status information data (hereinafter referred to as “communication error status information data”).
As shown in FIG. 6A, the communication error status information data includes status identification information for identifying communication error status information data (hereinafter referred to as “communication error status identification information”).
The communication error status information data includes communication error status information. The communication error status information includes information indicating a communication error that has occurred at the present time (time corresponding to the timing for generating the request data D1) and information indicating the date and time when the communication error occurred.
In step SG3, the log collection unit 203 generates communication error status information based on the monitoring item: communication error log, and associates the communication error status identification information with the communication error status information to generate communication error status information data. Generate.
Note that the log collection unit 203 does not have a communication error at the present time (when a communication error that has occurred in the past has been resolved and no new communication error has occurred), a communication error status. Does not generate information data.

図6(B)は、監視項目:プリンターエラーのステータス情報データ(以下、「プリンターエラーステータス情報データ」という。)の内容を示す図である。
図6(B)に示すように、プリンターエラーステータス情報データは、プリンターエラーステータス情報データを識別するステータス識別情報(以下、「プリンターエラーステータス識別情報」という。)を備える。
また、プリンターエラーステータス情報データは、プリンターエラー状態情報を備える。プリンターエラー状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)で発生した状態のプリンターエラーを示す情報と、プリンターエラーが発生した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:プリンターエラーのログに基づいてプリンターエラー状態情報を生成し、プリンターエラーステータス識別情報と、プリンターエラー状態情報とを対応付けてプリンターエラーステータス情報データを生成する。
なお、ログ収集部203は、現時点で、プリンターエラーが発生した状態ではない場合(過去に発生したプリンターエラーが解消しており、新たにプリンターエラーが発生してない状態の場合)、プリンターエラーステータス情報データを生成しない。
FIG. 6B is a diagram showing the contents of monitoring item: printer error status information data (hereinafter referred to as “printer error status information data”).
As shown in FIG. 6B, the printer error status information data includes status identification information for identifying printer error status information data (hereinafter referred to as “printer error status identification information”).
The printer error status information data includes printer error status information. The printer error status information includes information indicating a printer error that has occurred at the present time (time corresponding to the timing of generating the request data D1) and information indicating the date and time when the printer error occurred.
In step SG3, the log collection unit 203 generates printer error status information based on the monitoring item: printer error log, and associates the printer error status identification information with the printer error status information to obtain printer error status information data. Generate.
Note that the log collection unit 203 determines that the printer error status is not in a state where a printer error has occurred (when a printer error that has occurred in the past has been resolved and no new printer error has occurred). Does not generate information data.

図6(C)は、監視項目:RAM使用率のステータス情報データ(以下、「RAM使用率ステータス情報データ」という。)の内容を示す図である。
図6(C)に示すように、RAM使用率ステータス情報データは、RAM使用率ステータス情報データを識別するステータス識別情報(以下、「RAM使用率ステータス識別情報」という。)を備える。
また、RAM使用率ステータス情報データは、RAM使用率状態情報を備える。RAM使用率状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)のRAM使用率を示す情報と、RAM使用率を測定した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:RAM使用率のログに基づいてRAM使用率状態情報を生成し、RAM使用率ステータス識別情報と、RAM使用率状態情報とを対応付けてRAM使用率ステータス情報データを生成する。
FIG. 6C is a diagram showing the contents of monitoring item: RAM usage rate status information data (hereinafter referred to as “RAM usage rate status information data”).
As shown in FIG. 6C, the RAM usage rate status information data includes status identification information for identifying the RAM usage rate status information data (hereinafter referred to as “RAM usage rate status identification information”).
The RAM usage rate status information data includes RAM usage rate state information. The RAM usage rate state information includes information indicating the RAM usage rate at the present time (time corresponding to the timing of generating the request data D1) and information indicating the date and time when the RAM usage rate is measured.
In step SG3, the log collection unit 203 generates RAM usage status information based on the log of the monitoring item: RAM usage, and associates the RAM usage status identification information with the RAM usage status information to use the RAM. Generate rate status information data.

図6(D)は、監視項目:CPU使用率のステータス情報データ(以下、「CPU使用率ステータス情報データ」という。)の内容を示す図である。
図6(D)に示すように、CPU使用率ステータス情報データは、CPU使用率ステータス情報データを識別するステータス識別情報(以下、「CPU使用率ステータス識別情報」という。)を備える。
また、CPU使用率ステータス情報データは、CPU使用率状態情報を備える。CPU使用率状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)のCPU使用率を示す情報と、CPU使用率を測定した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:CPU使用率のログに基づいてCPU使用率状態情報を生成し、CPU使用率ステータス識別情報と、CPU使用率状態情報とを対応付けてCPU使用率ステータス情報データを生成する。
FIG. 6D is a diagram showing the contents of monitoring item: status information data of CPU usage rate (hereinafter referred to as “CPU usage rate status information data”).
As shown in FIG. 6D, the CPU usage rate status information data includes status identification information for identifying the CPU usage rate status information data (hereinafter referred to as “CPU usage rate status identification information”).
The CPU usage rate status information data includes CPU usage rate state information. The CPU usage rate state information includes information indicating the CPU usage rate at the present time (the time corresponding to the timing of generating the request data D1) and information indicating the date and time when the CPU usage rate is measured.
In step SG3, the log collection unit 203 generates CPU usage rate status information based on the log of the monitoring item: CPU usage rate, and associates the CPU usage rate status identification information with the CPU usage rate status information to use the CPU. Generate rate status information data.

図6(E)は、監視項目:CPU温度のステータス情報データ(以下、「CPU温度ステータス情報データ」という。)の内容を示す図である。
図6(E)に示すように、CPU温度ステータス情報データは、CPU温度ステータス情報データを識別するステータス識別情報(以下、「CPU温度ステータス識別情報」という。)を備える。
また、CPU温度ステータス情報データは、CPU温度状態情報を備える。CPU温度状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)のCPU温度を示す情報と、CPU温度を測定した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:CPU温度のログに基づいてCPU温度状態情報を生成し、CPU温度ステータス識別情報と、CPU温度状態情報とを対応付けてCPU温度ステータス情報データを生成する。
FIG. 6E is a diagram showing the contents of monitoring item: CPU temperature status information data (hereinafter referred to as “CPU temperature status information data”).
As shown in FIG. 6E, the CPU temperature status information data includes status identification information for identifying CPU temperature status information data (hereinafter referred to as “CPU temperature status identification information”).
The CPU temperature status information data includes CPU temperature state information. The CPU temperature state information includes information indicating the CPU temperature at the present time (the time corresponding to the timing for generating the request data D1) and information indicating the date and time when the CPU temperature is measured.
In step SG3, the log collection unit 203 generates CPU temperature status information based on the log of the monitoring item: CPU temperature, and associates the CPU temperature status identification information with the CPU temperature status information to obtain the CPU temperature status information data. Generate.

図6(F)は、監視項目:データ転送速度のステータス情報データ(以下、「データ転送速度ステータス情報データ」という。)の内容を示す図である。
図6(F)に示すように、データ転送速度ステータス情報データは、データ転送速度ステータス情報データを識別するステータス識別情報(以下、「データ転送速度ステータス識別情報」という。)を備える。
また、データ転送速度ステータス情報データは、データ転送速度状態情報を備える。データ転送速度状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)のデータ転送速度を示す情報と、データ転送速度を測定した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:データ転送速度のログに基づいてデータ転送速度状態情報を生成し、データ転送速度ステータス識別情報と、データ転送速度状態情報とを対応付けてデータ転送速度ステータス情報データを生成する。
FIG. 6F is a diagram showing the contents of monitoring item: data transfer rate status information data (hereinafter referred to as “data transfer rate status information data”).
As shown in FIG. 6F, the data transfer rate status information data includes status identification information for identifying the data transfer rate status information data (hereinafter referred to as “data transfer rate status identification information”).
The data transfer rate status information data includes data transfer rate state information. The data transfer rate state information includes information indicating the data transfer rate at the present time (a time corresponding to the timing for generating the request data D1) and information indicating the date and time when the data transfer rate is measured.
In step SG3, the log collection unit 203 generates data transfer rate state information based on the log of the monitoring item: data transfer rate, associates the data transfer rate status identification information with the data transfer rate state information, and transfers the data. Generate speed status information data.

図6(G)は、監視項目:SSD使用実績値のステータス情報データ(以下、「SSD使用実績値ステータス情報データ」という。)の内容を示す図である。
図6(G)に示すように、SSD使用実績値ステータス情報データは、SSD使用実績値ステータス情報データを識別するステータス識別情報(以下、「SSD使用実績値ステータス識別情報」という。)を備える。
また、SSD使用実績値ステータス情報データは、SSD使用実績値状態情報と、SSD寿命情報と、を備える。
SSD使用実績値状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)におけるSSD使用実績値(SSDに対する累計の書き込み回数等)を示す情報と、SSD使用実績値を取得した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:SSD使用実績値のログに基づいてSSD使用実績値状態情報を生成する。
SSD寿命情報は、SSDの寿命を示す情報である。
ステップSG3において、ログ収集部203は、SSD使用実績値に基づいて、所定の方法によりSSDの寿命を算出し、SSD寿命情報を生成する。
ステップSG3において、ログ収集部203は、SSD使用実績値ステータス識別情報と、SSD使用実績値状態情報、及び、SSD寿命情報とを対応付けてSSD使用実績値ステータス情報データを生成する。
FIG. 6G is a diagram showing the contents of monitoring item: status information data of SSD usage record value (hereinafter referred to as “SSD use record value status information data”).
As shown in FIG. 6G, the SSD usage record value status information data includes status identification information for identifying the SSD use record value status information data (hereinafter referred to as “SSD use record value status identification information”).
The SSD usage record value status information data includes SSD use record value status information and SSD life information.
The SSD usage record value status information includes information indicating the SSD use record value (such as the cumulative number of times written to the SSD) at the present time (the time corresponding to the timing for generating the request data D1) and the date and time when the SSD use record value was acquired. Information.
In step SG3, the log collection unit 203 generates SSD use result value state information based on the log of the monitoring item: SSD use result value.
The SSD life information is information indicating the life of the SSD.
In step SG3, the log collection unit 203 calculates the SSD lifetime by a predetermined method based on the SSD usage record value, and generates SSD lifetime information.
In step SG3, the log collection unit 203 associates the SSD usage record value status identification information, the SSD use record value status information, and the SSD life information to generate SSD use record value status information data.

図6(H)は、監視項目:印刷ヘッド形成ライン累計数のステータス情報データ(以下、「印刷ヘッド形成ライン累計数ステータス情報データ」という。)の内容を示す図である。
図6(H)に示すように、印刷ヘッド形成ライン累計数ステータス情報データは、印刷ヘッド形成ライン累計数ステータス情報データを識別するステータス識別情報(以下、「印刷ヘッド形成ライン累計数ステータス識別情報」という。)を備える。
また、印刷ヘッド形成ライン累計数ステータス情報データは、印刷ヘッド形成ライン累計数状態情報と、印刷ヘッド残使用日数情報とを備える。
印刷ヘッド形成ライン累計数状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)における印刷ヘッド形成ライン累計数を示す情報と、印刷ヘッド形成ライン累計数を取得した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:印刷ヘッド形成ライン累計数のログに基づいて印刷ヘッド形成ライン累計数状態情報を生成する。
FIG. 6H is a diagram showing the contents of status information data (hereinafter referred to as “print head formation line cumulative number status information data”) of the monitoring item: print head formation line cumulative number.
As shown in FIG. 6H, the print head formation line cumulative number status information data includes status identification information for identifying the print head formation line cumulative number status information data (hereinafter, “print head formation line cumulative number status identification information”). Is provided.)
The print head formation line cumulative number status information data includes print head formation line cumulative number state information and print head remaining use days information.
The print head formation line cumulative number state information includes information indicating the print head formation line cumulative number at the present time (the time corresponding to the timing of generating the request data D1), and information indicating the date and time when the print head formation line cumulative number is acquired. including.
In step SG3, the log collection unit 203 generates print head formation line total number state information based on a log of monitoring item: print head formation line total number.

印刷ヘッド残使用日数情報は、印刷ヘッド211が使用可能な残りの日数(以下、「印刷ヘッド残使用日数」という。)を示す情報である。
ステップSG3において、ログ収集部203は、以下の式(1)で印刷ヘッド残使用日数を算出する。
The remaining print head use days information is information indicating the remaining days that the print head 211 can be used (hereinafter referred to as “print head remaining use days”).
In step SG3, the log collection unit 203 calculates the remaining print head usage days using the following equation (1).

IH=(IUseLimit−IUse(N))÷[(IUse(N)−IUse(0))÷N]・・・(1)。   IH = (IUseLimit−IUse (N)) ÷ [(IUse (N) −IUse (0)) ÷ N] (1).

なお、式(1)において、「IH」は、印刷ヘッド残使用日数を表す。また、「IUseLimit」は、印刷ヘッド211が形成可能なラインの上限値(印刷ヘッド211の使用回数の上限値)を表す。また、「IUse(N)」は、POS端末13が、店舗に設置された日を1日目として、1日目からN日目までに印刷ヘッド211により形成されたラインの累計数を表す。IUse(0)は、POS端末13が店舗に設置された日より前に印刷ヘッド211により形成されたラインの累計数を表す。テストのための印刷等の理由により、店舗に設置される前にPOS端末13により印刷が行われる場合がある。   In Expression (1), “IH” represents the number of days that the print head remains used. “IUseLimit” represents an upper limit value of lines that can be formed by the print head 211 (upper limit value of the number of times the print head 211 is used). “IUse (N)” represents the total number of lines formed by the print head 211 from the first day to the Nth day, with the day when the POS terminal 13 is installed in the store as the first day. IUse (0) represents the cumulative number of lines formed by the print head 211 before the date when the POS terminal 13 was installed in the store. For reasons such as printing for testing, printing may be performed by the POS terminal 13 before being installed in the store.

式(1)において、右辺の「(IUseLimit−IUse(N))」の部位は、印刷ヘッド211により形成可能な残りのラインの数を表す。
また、式(1)において、右辺の「[(IUse(N)−IUse(0))÷N]」の部位は、POS端末13店舗に設置された後、印刷ヘッド211が1日に形成するラインの数の平均値を表す。
そして、印刷ヘッド211により形成可能な残りのラインの数を、POS端末13が1日に形成するラインの数の平均値で除算することにより、POS端末13が継続して使用された場合における印刷ヘッド残使用日数を算出することができる。
In the formula (1), the part of “(IUseLimit−IUse (N))” on the right side represents the number of remaining lines that can be formed by the print head 211.
Further, in the formula (1), the part of “[(IUse (N) −IUse (0)) ÷ N]” on the right side is set up in one day by the print head 211 after being installed in the POS terminal 13 store. Represents the average number of lines.
Then, by dividing the number of remaining lines that can be formed by the print head 211 by the average value of the number of lines that the POS terminal 13 forms in one day, printing in a case where the POS terminal 13 is continuously used. The remaining head usage days can be calculated.

ここで、式(1)を用いた印刷ヘッド残使用日数の算出にあたり、ログ収集部203は、N、IUse(N)、及び、IUse(0)の値を、ログファイル223に基づいて算出する。ログファイル223には、処理制御部201により、これら変数の値(これら変数を算出するために必要な値でもよい。)が記録される。   Here, in calculating the remaining print head usage days using Expression (1), the log collection unit 203 calculates values of N, IUse (N), and IUse (0) based on the log file 223. . In the log file 223, the process control unit 201 records the values of these variables (may be values necessary for calculating these variables).

また、ログ収集部203は、IUseLimitの値を、ログファイル223に記録されたライン形成時記録媒体属性情報に基づいて、以下の方法で算出する。
すなわち、ログ収集部203は、予め定められたIUseLimitの初期値に対して、過去にPOS端末13に収容されたロール紙の記録媒体属性のそれぞれに設定された係数を乗算することによって、IUseLimitを算出する。なお、IUseLimitの算出にあたり、ログ収集部203は、各記録媒体属性の係数を、記録媒体属性のロール紙に形成されたラインの累計数に応じた重みを反映させた値とする。
ここで、記録媒体属性は、ロール紙の紙質、種類、及び、厚さの組み合わせを示す情報である。そして、ロール紙の紙質、種類、及び、厚さの組み合わせに応じて、印刷ヘッド211によりラインを形成したときの劣化の進行度は異なる。これを踏まえ、1の記録媒体属性に設定される係数は、当該1の記録媒体属性のロール紙にラインを形成したときの印刷ヘッド211の劣化の進行度が大きいほど値が大きくなり、一方、印刷ヘッド211の劣化の進行度が小さいほど値が小さくなるように、事前のテストやシミュレーションの結果に基づいて設定される。
Further, the log collection unit 203 calculates the value of IUseLimit based on the line formation recording medium attribute information recorded in the log file 223 by the following method.
That is, the log collection unit 203 multiplies IUseLimit by multiplying a predetermined initial value of IUseLimit by a coefficient set for each recording medium attribute of the roll paper accommodated in the POS terminal 13 in the past. calculate. In calculating IUseLimit, the log collection unit 203 takes the coefficient of each recording medium attribute as a value reflecting a weight corresponding to the cumulative number of lines formed on the roll paper having the recording medium attribute.
Here, the recording medium attribute is information indicating a combination of the quality, type, and thickness of the roll paper. The progress of deterioration when a line is formed by the print head 211 differs depending on the combination of the paper quality, type, and thickness of the roll paper. Based on this, the coefficient set to one recording medium attribute increases as the progress of deterioration of the print head 211 when a line is formed on roll paper having the one recording medium attribute increases. The value is set based on the result of a prior test or simulation so that the value decreases as the progress of deterioration of the print head 211 decreases.

以上のような方法で算出したIUseLimitを用いて、式(1)の方法で、印刷ヘッド211の印刷ヘッド残使用日数を算出することにより、印刷ヘッド211の劣化の進行度が、ラインを形成するロール紙の紙質、種類、又は、厚さによって異なる、という特性を踏まえ、当該特性を反映して適切に印刷ヘッド残使用日数を算出することができる。
なお、本実施形態では、過去に収容したロール紙(記録媒体)の紙質、種類、及び、厚さを反映して、印刷ヘッド残使用日数を算出するか、紙質、種類、及び、厚さのうち少なくともいずれか1つを反映して算出すれば、上述した効果を奏することができる。後述するカッター残使用日数についても同様である。
By using the IUseLimit calculated by the above method and calculating the remaining print head remaining days of the print head 211 by the method of Expression (1), the degree of progress of deterioration of the print head 211 forms a line. Based on the characteristic that it varies depending on the paper quality, type, or thickness of the roll paper, it is possible to appropriately calculate the remaining days of use of the print head by reflecting the characteristic.
In this embodiment, the remaining print head usage days are calculated by reflecting the paper quality, type, and thickness of the roll paper (recording medium) accommodated in the past, or the paper quality, type, and thickness are calculated. If the calculation is performed by reflecting at least one of them, the above-described effects can be obtained. The same applies to the remaining cutter use days described later.

ステップSG3において、ログ収集部203は、ライン形成時記録媒体属性情報に基づいて、上述した方法で、印刷ヘッド残使用日数情報を算出し、算出した印刷ヘッド残使用日数を示す印刷ヘッド残使用日数情報を生成する。
ステップSG3において、ログ収集部203は、印刷ヘッド形成ライン累計数ステータス識別情報と、印刷ヘッド形成ライン累計数状態情報、及び、印刷ヘッド残使用日数情報とを対応付けて印刷ヘッド形成ライン累計数ステータス情報データを生成する。
In step SG3, the log collection unit 203 calculates print head remaining use days information by the above-described method based on the line formation recording medium attribute information, and indicates the calculated print head remaining use days. Generate information.
In step SG3, the log collection unit 203 associates the print head formation line cumulative number status identification information, the print head formation line cumulative number state information, and the print head remaining use day information with the print head formation line cumulative number status. Generate information data.

図6(I)は、監視項目:カッター使用累計数のステータス情報データ(以下、「カッター使用累計数ステータス情報データ」という。)の内容を示す図である。
図6(I)に示すように、カッター使用累計数ステータス情報データは、カッター使用累計数ステータス情報データを識別するステータス識別情報(以下、「カッター使用累計数ステータス識別情報」という。)を備える。
また、カッター使用累計数ステータス情報データは、カッター使用累計数状態情報と、カッター残使用日数情報とを備える。
カッター使用累計数状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)におけるカッター使用累計数を示す情報と、カッター使用累計数を取得した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:カッター使用累計数のログに基づいてカッター使用累計数状態情報を生成する。
FIG. 6I is a diagram showing the contents of status information data (hereinafter referred to as “cutter use cumulative number status information data”) of monitoring item: cumulative cutter use number.
As shown in FIG. 6I, the cumulative cutter usage count status information data includes status identification information (hereinafter referred to as “cumulative cutter usage cumulative status identification information”) for identifying the cumulative cutter usage status information data.
The cumulative cutter usage number status information data includes cumulative cutter usage number status information and remaining cutter usage day information.
The cumulative cutter usage count state information includes information indicating the cumulative cutter usage count at the present time (the time corresponding to the timing of generating the request data D1) and information indicating the date and time when the cumulative cutter usage count is acquired.
In step SG3, the log collection unit 203 generates cutter usage cumulative number state information based on a log of monitoring item: cumulative cutter usage number.

カッター残使用日数情報は、カッター212が使用可能な残りの日数(以下、「カッター残使用日数」という。)を示す情報である。
ステップSG3において、ログ収集部203は、以下の式(2)でカッター残使用日数を算出する。
The remaining cutter use days information is information indicating the remaining days that the cutter 212 can use (hereinafter referred to as “cutter remaining use days”).
In step SG3, the log collection unit 203 calculates the remaining cutter use days by the following equation (2).

KH=(KUseLimit−KUse(N))÷[(KUse(N)−KUse(0))÷N]・・・(2)。   KH = (KUseLimit−KUse (N)) ÷ [(KUse (N) −KUse (0)) ÷ N] (2).

なお、式(2)において、「KH」は、カッター残使用日数を表す。また、「KUseLimit」は、カッター212の使用回数の上限値を表す。また、「KUse(N)」は、POS端末13が、店舗に設置された日を1日目として、1日目からN日目までのカッター212の使用回数の累計数を表す。IUse(0)は、POS端末13が店舗に設置された日より前のカッター212の使用回数の累計数を表す。   In Equation (2), “KH” represents the remaining cutter usage days. “KUseLimit” represents an upper limit value of the number of times the cutter 212 is used. “KUse (N)” represents the cumulative number of times the cutter 212 is used from the first day to the Nth day, with the day when the POS terminal 13 is installed in the store as the first day. IUse (0) represents the cumulative number of times the cutter 212 has been used before the date when the POS terminal 13 is installed in the store.

式(2)において、右辺の「(KUseLimit−KUse(N))」の部位は、カッター212を使用可能な残りの回数を表す。
また、式(2)において、右辺の「[(KUse(N)−KUse(0))÷N]」の部位は、POS端末13が店舗に設置された後、カッター212の1日の使用回数の平均値を表す。
そして、カッター212を使用可能な残りの回数を、カッター212の1日の使用回数の平均値で除算することにより、店舗でPOS端末13が継続して使用された場合におけるカッター残使用日数を算出することができる。
In Expression (2), the part “(KUseLimit−KUse (N))” on the right side represents the remaining number of times that the cutter 212 can be used.
In Expression (2), the part “[(KUse (N) −KUse (0)) ÷ N]” on the right side is the number of times the cutter 212 is used per day after the POS terminal 13 is installed in the store. The average value of.
Then, by dividing the remaining number of times that the cutter 212 can be used by the average value of the daily usage count of the cutter 212, the remaining cutter usage days when the POS terminal 13 is continuously used in the store are calculated. can do.

ここで、式(2)を用いたカッター残使用日数の算出にあたり、ログ収集部203は、N、KUse(N)、及び、KUse(0)の値を、ログファイル223に基づいて算出する。ログファイル223には、処理制御部201により、これら変数の値(これら変数を算出するために必要な値でもよい。)が記録される。   Here, in calculating the remaining cutter use days using Expression (2), the log collection unit 203 calculates the values of N, KUse (N), and KUse (0) based on the log file 223. In the log file 223, the process control unit 201 records the values of these variables (may be values necessary for calculating these variables).

また、ログ収集部203は、KUseLimitの値を、ログファイル223に記録された切断時記録媒体属性情報に基づいて、以下の方法で算出する。
すなわち、ログ収集部203は、予め定められたKUseLimitの初期値に対して、過去にPOS端末13に収容されたロール紙の記録媒体属性のそれぞれに設定された係数を乗算することによって、KUseLimitを算出する。なお、KUseLimitの算出にあたり、ログ収集部203は、各記録媒体属性の係数を、記録媒体属性のロール紙を切断した回数に応じた重みを反映させた値とする。
ここで、記録媒体属性は、ロール紙の紙質、種類、及び、厚さの組み合わせを示す情報である。そして、ロール紙の紙質、種類、及び、厚さの組み合わせに応じて、カッター212によりロール紙を切断したときの劣化の進行度は異なる。これを踏まえ、1の記録媒体属性に設定される係数は、当該1の記録媒体属性のロール紙を切断したときのカッター212の劣化の進行度が大きいほど値が大きくなり、一方、カッター212の劣化の進行度が小さいほど値が小さくなるように、事前のテストやシミュレーションの結果に基づいて設定される。
In addition, the log collection unit 203 calculates the value of KUseLimit based on the recording medium attribute information at the time of cutting recorded in the log file 223 by the following method.
In other words, the log collection unit 203 multiplies a predetermined initial value of KUseLimit by a coefficient set for each of the recording medium attributes of the roll paper accommodated in the POS terminal 13 in the past, to thereby calculate KUseLimit. calculate. In calculating KUseLimit, the log collection unit 203 sets the coefficient of each recording medium attribute to a value reflecting a weight corresponding to the number of times the recording medium attribute roll paper has been cut.
Here, the recording medium attribute is information indicating a combination of the quality, type, and thickness of the roll paper. The progress of deterioration when the roll paper is cut by the cutter 212 differs depending on the combination of the paper quality, type, and thickness of the roll paper. Based on this, the coefficient set to one recording medium attribute increases as the progress of deterioration of the cutter 212 when the roll paper having the one recording medium attribute is cut, while the coefficient of the cutter 212 It is set based on the results of prior tests and simulations so that the value decreases as the degree of progress of deterioration decreases.

以上のような方法で算出したKUseLimitを用いて、式(2)の方法で、カッター212のカッター残使用日数を算出することにより、カッター212の劣化の進行度が、切断するロール紙の紙質、種類、又は、厚さによって異なる、という特性を踏まえ、当該特性を反映して適切にカッター残使用日数を算出することができる。   By using KUseLimit calculated by the above method and calculating the remaining number of days of use of the cutter 212 by the method of formula (2), the degree of deterioration of the cutter 212 is determined by the paper quality of the roll paper to be cut, Based on the characteristic that it varies depending on the type or thickness, the remaining cutter use days can be calculated appropriately reflecting the characteristic.

ステップSG3において、ログ収集部203は、切断時記録媒体属性情報に基づいて、上述した方法で、カッター残使用日数情報を算出し、算出したカッター残使用日数を示すカッター残使用日数情報を生成する。
ステップSG3において、ログ収集部203は、カッター使用累計数ステータス識別情報と、カッター使用累計数状態情報、及び、カッター残使用日数情報とを対応付けてカッター使用累計数ステータス情報データを生成する。
In step SG3, the log collection unit 203 calculates the remaining cutter use days information by the method described above based on the recording medium attribute information at the time of cutting, and generates remaining cutter use days information indicating the calculated remaining cutter use days. .
In step SG3, the log collection unit 203 associates the cumulative cutter usage status identification information, the cumulative cutter usage status information, and the remaining cutter usage date information to generate cumulative cutter usage status information data.

図6(J)は、監視項目:動作プロセスのステータス情報データ(以下、「動作プロセスステータス情報データ」という。)の内容を示す図である。
図6(J)に示すように、動作プロセスステータス情報データは、動作プロセスステータス情報データを識別するステータス識別情報(以下、「動作プロセスステータス識別情報」という。)を備える。
また、動作プロセスステータス情報データは、動作プロセス状態情報を備える。動作プロセス状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)で動作状態の(=CPUの割り当てが行われた状態の)プロセスを示す情報(プロセスを表す文字列)と、動作プロセス状態情報を取得した日時を示す情報とを示す情報を含む。
ステップSG3において、ログ収集部203は、監視項目:動作プロセスのログに基づいて動作プロセス状態情報を生成し、動作プロセスステータス識別情報と、動作プロセス状態情報とを対応付けて動作プロセスステータス情報データを生成する。
FIG. 6J is a diagram showing the contents of monitoring item: status information data of operation process (hereinafter referred to as “operation process status information data”).
As shown in FIG. 6J, the operation process status information data includes status identification information for identifying the operation process status information data (hereinafter referred to as “operation process status identification information”).
The operation process status information data includes operation process state information. The operation process state information includes information (a character string representing a process) indicating a process in an operation state (= a state in which a CPU is assigned) at the present time (a time corresponding to the timing at which the request data D1 is generated), and an operation And information indicating the date and time when the process status information is acquired.
In step SG3, the log collection unit 203 generates operation process state information based on the monitoring item: operation process log, and associates the operation process status identification information with the operation process state information to generate operation process status information data. Generate.

図6(K)は、監視項目:接続デバイスのステータス情報データ(以下、「接続デバイスステータス情報データ」という。)の内容を示す図である。
図6(K)に示すように、接続デバイスステータス情報データは、接続デバイスステータス情報データを識別するステータス識別情報(以下、「接続デバイスステータス識別情報」という。)を備える。
また、接続デバイスステータス情報データは、接続デバイス状態情報を備える。接続デバイス状態情報は、現時点(リクエストデータD1を生成するタイミングに対応する時点)で接続されたデバイスの種類を示す情報(デバイスの種類を表す文字列)を示す情報と、接続デバイス状態情報を取得した日時を示す情報とを含む。
ステップSG3において、ログ収集部203は、監視項目:接続デバイスのログに基づいて接続デバイス状態情報を生成し、接続デバイスステータス識別情報と、接続デバイス状態情報とを対応付けて接続デバイスステータス情報データを生成する。
FIG. 6K is a diagram showing the contents of monitoring item: status information data of connected devices (hereinafter referred to as “connected device status information data”).
As shown in FIG. 6K, the connected device status information data includes status identification information for identifying the connected device status information data (hereinafter referred to as “connected device status identification information”).
The connected device status information data includes connected device status information. The connected device status information acquires information indicating the type of the device connected at the present time (the time corresponding to the timing of generating the request data D1) (character string indicating the type of device) and the connected device status information. Information indicating the date and time of the date.
In step SG3, the log collection unit 203 generates connection device status information based on the log of the monitoring item: connection device, and associates the connection device status identification information with the connection device status information to obtain the connection device status information data. Generate.

ステップSG3で、各監視項目のステータス情報データを生成した後、ログ収集部203は、各監視項目のステータス情報データ、及び、POS端末13のPOS端末識別情報を含むログデータD11を生成する(ステップSG4)。
POS端末識別情報とは、POS端末13を識別する識別情報であり、例えば、POS端末13の製造段階でPOS端末13に一意に割り当てられるシリアル番号である。
ログデータD11は、情報を階層化して記述可能なテキストデータ(例えば、XML形式のデータ)であり、各情報が、階層化されたキーと値との組み合わせによって記述される。
After generating the status information data of each monitoring item in step SG3, the log collecting unit 203 generates log data D11 including the status information data of each monitoring item and the POS terminal identification information of the POS terminal 13 (step) SG4).
The POS terminal identification information is identification information for identifying the POS terminal 13 and is, for example, a serial number uniquely assigned to the POS terminal 13 at the manufacturing stage of the POS terminal 13.
The log data D11 is text data that can be described by layering information (for example, data in XML format), and each piece of information is described by a combination of layered keys and values.

次いで、ログ収集部203は、同じPOSユニット16に属する印刷装置14のそれぞれと通信し、印刷装置14ごとにログデータD11を生成する(ステップSG5)。以下、POS端末13のログデータD11をメインログデータD11mと表現し、印刷装置14のログデータD11をサブログデータD11sと表現し、適宜、これらデータを区別する。   Next, the log collection unit 203 communicates with each of the printing apparatuses 14 belonging to the same POS unit 16, and generates log data D11 for each printing apparatus 14 (step SG5). Hereinafter, the log data D11 of the POS terminal 13 is expressed as main log data D11m, the log data D11 of the printing apparatus 14 is expressed as sub-log data D11s, and these data are appropriately distinguished.

サブログデータD11sは、メインログデータD11mと同様、印刷装置14の各監視項目のステータス情報データ、及び、印刷装置14の印刷装置識別情報を含むデータである。
印刷装置識別情報とは、印刷装置14を識別する識別情報であり、例えば、印刷装置14の製造段階で印刷装置14に一意に割り当てられるシリアル番号である。
ステップSG5において、ログ収集部203は、同じPOSユニット16に属する印刷装置14のそれぞれと通信して、印刷装置14のそれぞれから、印刷装置14の各監視項目のログ、その他のサブログデータD11sを生成するために必要な情報を取得する。印刷装置14のIPアドレスや、印刷装置14との通信で使用するプロトコル、印刷装置14と送受信するデータのフォーマット等の、印刷装置14と通信するために必要な情報は、事前に登録される。
次いで、ログ収集部203は、各印刷装置14について、各監視項目のログに基づいて各監視項目のステータス情報データを生成し、生成したステータス情報データに基づいてサブログデータD11sを生成する。
The sub-log data D11s is data including status information data of each monitoring item of the printing device 14 and printing device identification information of the printing device 14 as with the main log data D11m.
The printing device identification information is identification information for identifying the printing device 14 and is, for example, a serial number uniquely assigned to the printing device 14 in the manufacturing stage of the printing device 14.
In step SG5, the log collection unit 203 communicates with each of the printing apparatuses 14 belonging to the same POS unit 16, and from each of the printing apparatuses 14, logs of each monitoring item of the printing apparatus 14 and other sub-log data D11s. Get the information needed to generate. Information necessary for communication with the printing apparatus 14 such as the IP address of the printing apparatus 14, the protocol used for communication with the printing apparatus 14, and the format of data transmitted to and received from the printing apparatus 14 is registered in advance.
Next, the log collection unit 203 generates status information data of each monitoring item based on the log of each monitoring item for each printing apparatus 14, and generates sub-log data D11s based on the generated status information data.

ログ収集部203は、メインログデータD11m、及び、サブログデータD11sの生成後、ステップSA3のログデータ生成処理を終了する。   After generating the main log data D11m and the sub log data D11s, the log collection unit 203 ends the log data generation process in step SA3.

図4(A)に示すように、ステップSA3のログデータ生成処理でログデータD11(メインログデータD11m、及び、サブログデータD11s)を生成した後、ログ収集部203は、リクエストデータD1を生成する(ステップSA4)。
リクエストデータD1は、POS端末13が設置された店舗を識別する店舗識別情報、POS端末13のPOS端末識別情報、処理結果通知データD12、メインログデータD11m、及び、サブログデータD11s(POS端末13と同一のPOSユニット16に属する印刷装置14が複数ある場合は、複数のサブログデータD11s)を含み、各情報が階層化されて記述されたテキストデータである。
As shown in FIG. 4A, after log data D11 (main log data D11m and sub-log data D11s) is generated in the log data generation process in step SA3, the log collection unit 203 generates request data D1. (Step SA4).
The request data D1 includes store identification information for identifying the store where the POS terminal 13 is installed, POS terminal identification information for the POS terminal 13, processing result notification data D12, main log data D11m, and sub-log data D11s (POS terminal 13). In the case where there are a plurality of printing apparatuses 14 belonging to the same POS unit 16, the text data includes a plurality of sublog data D11s) and each information is described in a hierarchical manner.

図7は、リクエストデータD1の一例を、説明に適した態様で模式的に示す図である。
図7で例示するリクエストデータD1において、領域A1には、店舗識別情報、及び、POS端末識別情報が記述される。
また、領域A2には、処理結果通知データD12が記述される。
また、領域A3には、メインログデータD11mが記述される。領域A3の領域A31には、POS端末識別情報が記述される。領域A3の領域A32には、ステータス情報データが記述される。領域A32の領域A321には、ステータス識別情報が記述される。
また、領域A4には、サブログデータD11sが記述される。領域A4の領域A41には、印刷装置識別情報が記述される。領域A4の領域A42には、ステータス情報データが記述される。領域A42の領域A421には、ステータス識別情報が記述される。
FIG. 7 is a diagram schematically illustrating an example of the request data D1 in a mode suitable for explanation.
In the request data D1 illustrated in FIG. 7, store identification information and POS terminal identification information are described in the area A1.
In the area A2, processing result notification data D12 is described.
In the area A3, main log data D11m is described. In the area A31 of the area A3, POS terminal identification information is described. Status information data is described in area A32 of area A3. Status identification information is described in area A321 of area A32.
In the area A4, sub log data D11s is described. In the area A41 of the area A4, printing device identification information is described. Status information data is described in area A42 of area A4. Status identification information is described in area A421 of area A42.

図4(A)に示すように、ステップSA4でリクエストデータD1を生成した後、ログ収集部203は、生成したリクエストデータD1を、プログラム間通信により、通信管理部204に出力する(ステップSA5)。   As shown in FIG. 4A, after generating the request data D1 in step SA4, the log collection unit 203 outputs the generated request data D1 to the communication management unit 204 by inter-program communication (step SA5). .

図4(B)に示すように、通信管理部204は、ログ収集部203から入力されたリクエストデータD1を取得する(ステップSB1)。
次いで、通信管理部204は、取得したリクエストデータD1を、所定の記憶領域に記憶する(ステップSB2)。所定の記憶領域には、メンテナンスサーバー17に未送信のリクエストデータD1、及び、メンテナンスサーバー17に送信された後に後述する理由によりメンテナンスサーバー17において破棄されたリクエストデータD1が累積的に記憶される。
As shown in FIG. 4B, the communication management unit 204 acquires the request data D1 input from the log collection unit 203 (step SB1).
Next, the communication management unit 204 stores the acquired request data D1 in a predetermined storage area (step SB2). In the predetermined storage area, request data D1 that has not been transmitted to the maintenance server 17 and request data D1 that has been transmitted to the maintenance server 17 and discarded for the reason described later are accumulated.

次いで、通信管理部204は、送信間隔設定ファイル222を参照し、リクエストデータD1をメンテナンスサーバー17に送信するタイミングが到来したか否かを監視する(ステップSB3)。
送信間隔設定ファイル222は、リクエストデータD1を送信するタイミングを示す情報が記録されたファイルである。
本実施形態では、リクエストデータD1を送信するタイミングとして、以下の2つのタイミングがある。
1つ目のタイミングは、ログ収集部203によりリクエストデータD1が生成されたタイミングである。この場合、リクエストデータD1の生成するタイミングと、リクエストデータD1を送信するタイミングとで同期がとられ、リクエストデータD1の生成に応じて、生成されたリクエストデータD1がメンテナンスサーバー17に送信される。以下、1つ目のタイミングを「通常送信タイミング」という。
Next, the communication management unit 204 refers to the transmission interval setting file 222 and monitors whether or not the timing for transmitting the request data D1 to the maintenance server 17 has arrived (step SB3).
The transmission interval setting file 222 is a file in which information indicating the timing for transmitting the request data D1 is recorded.
In the present embodiment, there are the following two timings for transmitting the request data D1.
The first timing is the timing when the request data D1 is generated by the log collection unit 203. In this case, the timing at which the request data D1 is generated is synchronized with the timing at which the request data D1 is transmitted, and the generated request data D1 is transmitted to the maintenance server 17 in response to the generation of the request data D1. Hereinafter, the first timing is referred to as “normal transmission timing”.

2つ目のタイミングは、前回、リクエストデータD1を送信した後、所定の間隔(以下、「契約期間外間隔」という。)が経過したタイミングである。契約期間外間隔は、上述した基準生成間隔(リクエストデータD1を生成する最長の間隔)よりも長い間隔とされる。例えば、基準生成間隔が「5分」の場合に、リクエストデータD1を送信する所定の間隔は、「1時間」とされる。以下、2つ目のタイミングを「契約期間外送信タイミング」という。
後述するように、POS端末13を備える店舗システム11を利用する企業との契約が切れた状態にある場合に、送信間隔設定ファイル222に契約期間外送信タイミングを示す情報が記録される。
The second timing is a timing at which a predetermined interval (hereinafter referred to as “interval outside the contract period”) has elapsed since the request data D1 was transmitted last time. The interval outside the contract period is an interval longer than the reference generation interval (the longest interval for generating the request data D1) described above. For example, when the reference generation interval is “5 minutes”, the predetermined interval for transmitting the request data D1 is “1 hour”. Hereinafter, the second timing is referred to as “transmission timing outside the contract period”.
As will be described later, when the contract with the company using the store system 11 including the POS terminal 13 is in a state of being expired, information indicating the transmission timing outside the contract period is recorded in the transmission interval setting file 222.

ステップSB3において、通信管理部204は、送信間隔設定ファイル222に記録された情報が通常送信タイミングを示す場合、ログ収集部203からのログデータD11の入力が完了した時点で、リクエストデータD1をメンテナンスサーバー17に送信するタイミングが到来したと判別する。
また、ステップSB3において、通信管理部204は、送信間隔設定ファイル222が示す情報が契約期間外送信タイミングである場合、前回、リクエストデータD1を送信した後、契約期間外送信間隔が経過したときに、リクエストデータD1を送信するタイミングが到来したと判別する。
In step SB3, when the information recorded in the transmission interval setting file 222 indicates the normal transmission timing, the communication management unit 204 maintains the request data D1 when the input of the log data D11 from the log collection unit 203 is completed. It is determined that the transmission timing to the server 17 has arrived.
In step SB3, when the information indicated by the transmission interval setting file 222 is the transmission timing outside the contract period, the communication management unit 204 transmits the request data D1 the last time after the transmission period outside the contract period has elapsed. It is determined that the timing for transmitting the request data D1 has arrived.

リクエストデータD1を送信するタイミングが到来した場合(ステップSB3:YES)、通信管理部204は、制御装置通信部23を制御して、所定の記憶領域に記憶されたリクエストデータD1をリクエストとしてメンテナンスサーバー17に送信する(ステップSB4)。例えば、通信管理部204は、リクエストボディーにリクエストデータD1が記述されたHTTP(Hypertext Transfer Protocol)リクエストを、HTTPに従って、メンテナンスサーバー17に送信する。なお、リクエストデータD1を送信するメンテナンスサーバー17のURLや、使用するプロトコル等の、リクエストデータD1をリクエストとしてメンテナンスサーバー17に送信するために必要な情報は、事前に登録される。   When it is time to transmit the request data D1 (step SB3: YES), the communication management unit 204 controls the control device communication unit 23 to use the request data D1 stored in a predetermined storage area as a request as a maintenance server. 17 (step SB4). For example, the communication management unit 204 transmits an HTTP (Hypertext Transfer Protocol) request in which the request data D1 is described in the request body to the maintenance server 17 according to HTTP. Information necessary for transmitting the request data D1 to the maintenance server 17 as a request, such as the URL of the maintenance server 17 that transmits the request data D1 and the protocol to be used, is registered in advance.

なお、所定の記憶領域に記憶されたリクエストデータD1が複数ある場合、通信管理部204は、所定の記憶領域に記憶されたタイミングが最も古いリクエストデータD1を送信する。   When there are a plurality of request data D1 stored in the predetermined storage area, the communication management unit 204 transmits the request data D1 having the oldest timing stored in the predetermined storage area.

ステップSB4でリクエストデータを送信した後、通信管理部204は、メンテナンスサーバー17からレスポンス(契約情報レスポンスデータ、又は、レスポンスデータD2)を受信したか否かを監視する(ステップSB5)。   After transmitting the request data in step SB4, the communication management unit 204 monitors whether or not a response (contract information response data or response data D2) is received from the maintenance server 17 (step SB5).

図4(D)に示すように、メンテナンスサーバー17のログ受信部501は、メンテナンスサーバー通信部52を制御して、通信管理部204が送信したリクエストデータD1を受信し、取得する(ステップSD1)。
次いで、ログ受信部501は、取得したリクエストデータD1を、レスポンス応答部502に出力する(ステップSD2)。
As shown in FIG. 4D, the log receiving unit 501 of the maintenance server 17 controls the maintenance server communication unit 52 to receive and acquire the request data D1 transmitted by the communication management unit 204 (step SD1). .
Next, the log receiving unit 501 outputs the acquired request data D1 to the response response unit 502 (step SD2).

図4(E)に示すように、レスポンス応答部502は、ログ受信部501から入力されたリクエストデータD1を取得する(ステップSE1)。
次いで、レスポンス応答部502は、契約管理データベース512(契約期間情報)を参照し、現時点が、対応する企業の契約期間内であるか否かを判別する(ステップSE2)。
契約管理データベース512は、メンテナンスサーバー17の管理の対象となり得る店舗ごとに、店舗識別情報と、店舗の店舗システム11を利用する企業の契約期間を示す情報とを対応付けたレコードを記憶するデータベースである。企業の契約期間とは、企業が、メンテナンスサーバー17を利用して店舗システム11の管理を行うことが可能な期間である。店舗の契約期間は、メンテナンスサーバー17を運営する会社と企業との間で事前の契約で取り決められる。メンテナンスサーバー17を運営する会社は、契約期間中にメンテナンスサーバー17により契約した企業の店舗システム11のPOS端末13及び印刷装置14の状態を管理し、その対価として収入を得る。
契約管理データベース512の内容は、企業ごとの契約の状況に応じて、適宜、所定の手段により書き換えられ、実際の契約の状況に対応した内容とされる。
As shown in FIG. 4E, the response response unit 502 acquires the request data D1 input from the log reception unit 501 (step SE1).
Next, the response response unit 502 refers to the contract management database 512 (contract period information) and determines whether or not the current time is within the contract period of the corresponding company (step SE2).
The contract management database 512 is a database that stores a record in which store identification information is associated with information indicating a contract period of a company that uses the store system 11 of the store for each store that can be managed by the maintenance server 17. is there. The contract period of the company is a period during which the company can manage the store system 11 using the maintenance server 17. The contract period of the store is negotiated by a prior contract between the company operating the maintenance server 17 and the company. The company that operates the maintenance server 17 manages the state of the POS terminal 13 and the printing device 14 of the store system 11 of the company contracted by the maintenance server 17 during the contract period, and obtains revenue as the price.
The content of the contract management database 512 is appropriately rewritten by a predetermined means according to the contract status for each company, and the content corresponds to the actual contract status.

ステップSE2において、レスポンス応答部502は、リクエストデータD1の送信元のPOS端末13が設置された店舗の店舗識別情報を取得する。上述したように、店舗識別情報は、リクエストデータD1に記述される。次いで、レスポンス応答部502は、契約管理データベース512のレコードのうち、取得した店舗識別情報を有するレコードを特定する。次いで、レスポンス応答部502は、特定したレコードの契約期間を示す情報を取得し、現時点が、契約期間内であるか否かを判別する。   In step SE2, the response response unit 502 acquires the store identification information of the store where the POS terminal 13 that is the transmission source of the request data D1 is installed. As described above, the store identification information is described in the request data D1. Next, the response response unit 502 specifies a record having the acquired store identification information among the records in the contract management database 512. Next, the response response unit 502 acquires information indicating the contract period of the identified record, and determines whether the current time is within the contract period.

次いで、レスポンス応答部502は、現時点が企業の契約期間内であるか否かを判別する(ステップSE3)。   Next, the response response unit 502 determines whether or not the current time is within the contract period of the company (step SE3).

契約期間内でない場合(ステップSE3:NO)、レスポンス応答部502は、契約情報レスポンスデータを生成し、メンテナンスサーバー通信部52を制御して、生成した契約情報レスポンスデータをレスポンスとして送信する(ステップSE4)。
詳述すると、レスポンス応答部502は、契約期間内でないことを示す情報を含む契約情報レスポンスデータを生成し、レスポンスとして送信する。
If not within the contract period (step SE3: NO), the response response unit 502 generates contract information response data, controls the maintenance server communication unit 52, and transmits the generated contract information response data as a response (step SE4). ).
More specifically, the response response unit 502 generates contract information response data including information indicating that it is not within the contract period, and transmits it as a response.

次いで、レスポンス応答部502は、リクエストデータD1を破棄し(ステップSE5)、処理を終了する。この場合、リクエストデータD1に基づく第1ステータス情報データベース513及び第2ステータス情報データベース514へのレコードの記憶(ログデータD11に基づく情報の記憶)は行われない。これらの処理は、契約期間内の企業、つまり、対価を支払う企業に対して行うべき処理だからである。   Next, the response response unit 502 discards the request data D1 (step SE5) and ends the process. In this case, storage of records (storage of information based on the log data D11) is not performed in the first status information database 513 and the second status information database 514 based on the request data D1. This is because these processes should be performed for companies within the contract period, that is, companies that pay the consideration.

現時点が企業の契約期間内である場合(ステップSE3:YES)、レスポンス応答部502は、ステップSE1で取得したリクエストデータD1を、ログ情報記憶部503に出力する(ステップSE6)。ログ情報記憶部503の処理については、後述する。   If the current time is within the contract period of the company (step SE3: YES), the response response unit 502 outputs the request data D1 acquired in step SE1 to the log information storage unit 503 (step SE6). The processing of the log information storage unit 503 will be described later.

次いで、レスポンス応答部502は、レスポンスデータ生成処理を実行する(ステップSE7)。
レスポンスデータ生成処理は、レスポンスデータD2を生成する処理である。以下、レスポンスデータ生成処理について詳述する。
Next, the response response unit 502 executes response data generation processing (step SE7).
The response data generation process is a process for generating response data D2. Hereinafter, the response data generation process will be described in detail.

図8(A)は、レスポンスデータ生成処理の実行時のレスポンス応答部502の動作を詳細に示すフローチャートである。
図8(A)に示すように、レスポンスデータ生成処理において、レスポンス応答部502は、処理命令制御データ生成処理を実行し(ステップSH1)、処理命令制御データD21を生成する。
FIG. 8A is a flowchart showing in detail the operation of the response response unit 502 when executing the response data generation process.
As shown in FIG. 8A, in the response data generation process, the response response unit 502 executes a process command control data generation process (step SH1) and generates process command control data D21.

図8(B)は、処理命令制御データ生成処理の実行時のレスポンス応答部502の動作を詳細に示すフローチャートである。
図8(B)に示すように、処理命令制御データ生成処理において、レスポンス応答部502は、命令格納データベース511を参照する(ステップSI1)。
命令格納データベース511は、POS端末13のPOS端末識別情報と、POS端末13に実行させる処理に関する情報(以後、「実行処理情報」という。)と、を対応付けたレコードを記憶するデータベースである。
実行処理情報は、POS端末13に実行させる処理を識別する情報や、処理を実行するために必要なデータ、その他の処理命令制御データD21の生成に必要な情報等を含む。
FIG. 8B is a flowchart showing in detail the operation of the response response unit 502 when executing the processing instruction control data generation process.
As shown in FIG. 8B, in the process command control data generation process, the response response unit 502 refers to the command storage database 511 (step SI1).
The instruction storage database 511 is a database that stores a record in which POS terminal identification information of the POS terminal 13 and information related to processing to be executed by the POS terminal 13 (hereinafter referred to as “execution processing information”) are associated with each other.
The execution process information includes information for identifying a process to be executed by the POS terminal 13, data necessary for executing the process, information necessary for generating other process command control data D21, and the like.

レスポンス応答部502は、企業の担当者や、保守担当者に対して、特定のPOS端末13のPOS端末識別情報、及び、当該特定のPOS端末13に実行させる処理に係る実行処理情報を生成するために必要な情報を入力させるユーザーインターフェースを提供し、ユーザーインターフェースに対する入力に基づいて、命令格納データベース511にレコードを記憶する機能を有する。なお、POS端末13に実行させる処理としては、例えば、ファームウェアのバージョンアップがあり、実行させる処理がファームウェアのバージョンアップの場合、実行処理情報を生成するために必要な情報は、例えば、ファームウェアのプログラムデータ等である。
詳述すると、特定のPOS端末13に所定の処理を実行させることを望む企業の担当者等は、ウェブブラウザーがインストールされた端末のウェブブラウザーを立ち上げ、ウェブブラウザーに、メンテナンスサーバー17の所定のURLにアクセスさせる。レスポンス応答部502は、当該所定のURLへのアクセスがあった場合、必要な認証を行った後、POS端末識別情報、及び、実行処理情報を生成するために必要な情報の入力が可能なユーザーインターフェース(ウェブページ)を、当該端末に表示させる。企業の担当者等は、当該ユーザーインターフェースに、当該特定のPOS端末13のPOS端末識別情報、及び、当該特定のPOS端末13に実行させる処理に係る処理実行関連情報を生成するために必要な情報を入力する。レスポンス応答部502は、当該ユーザーインターフェースに入力された処理実行関連情報を生成するために必要な情報を取得し、取得した情報に基づいて実行処理情報を生成する。レスポンス応答部502は、命令格納データベース511にアクセスし、当該データベースに、当該ユーザーインターフェースに入力されたPOS端末識別情報と、生成した実行処理情報とを対応付けたレコードを記憶する。
The response response unit 502 generates POS terminal identification information of a specific POS terminal 13 and execution processing information related to processing to be executed by the specific POS terminal 13 for a person in charge of the company or a person in charge of maintenance. Therefore, a user interface for inputting necessary information is provided, and a record is stored in the instruction storage database 511 based on an input to the user interface. The process executed by the POS terminal 13 is, for example, firmware upgrade. When the process to be executed is firmware upgrade, information necessary for generating execution process information is, for example, a firmware program. Data, etc.
More specifically, a person in charge of a company who desires a specific POS terminal 13 to execute a predetermined process starts up a web browser of a terminal in which the web browser is installed, Access URL. The response response unit 502 is a user who can input necessary information to generate POS terminal identification information and execution processing information after performing necessary authentication when there is an access to the predetermined URL. An interface (web page) is displayed on the terminal. The person in charge of the company, for example, information necessary for generating the POS terminal identification information of the specific POS terminal 13 and the process execution related information related to the process to be executed by the specific POS terminal 13 in the user interface. Enter. The response response unit 502 acquires information necessary for generating the process execution related information input to the user interface, and generates execution process information based on the acquired information. The response response unit 502 accesses the command storage database 511 and stores a record in which the POS terminal identification information input to the user interface is associated with the generated execution process information.

ステップSI1で命令格納データベース511を参照した後、レスポンス応答部502は、リクエストデータD1の送信元のPOS端末13のPOS端末識別情報を取得する(ステップSI2)。上述したように、POS端末識別情報は、リクエストデータD1に記述される。
次いで、レスポンス応答部502は、ステップSI2で取得したPOS端末識別情報を有するレコードが命令格納データベース511に存在するか否かを判別する(ステップSI3)。
ステップSI2で取得したPOS端末識別情報を有するレコードが命令格納データベース511に1つも存在しない場合(ステップSI3:NO)、レスポンス応答部502は、処理手順をステップSI5へ移行する。
After referring to the instruction storage database 511 in step SI1, the response response unit 502 acquires the POS terminal identification information of the POS terminal 13 that is the transmission source of the request data D1 (step SI2). As described above, the POS terminal identification information is described in the request data D1.
Next, the response response unit 502 determines whether or not a record having the POS terminal identification information acquired in step SI2 exists in the instruction storage database 511 (step SI3).
When there is no record having the POS terminal identification information acquired in step SI2 in the command storage database 511 (step SI3: NO), the response response unit 502 shifts the processing procedure to step SI5.

ステップSI2で取得したPOS端末識別情報を有するレコードが命令格納データベース511に存在する場合(ステップSI3:YES)、レスポンス応答部502は、ステップSI2で取得したPOS端末識別情報を有するレコード(当該レコードが複数ある場合は、複数のレコードのそれぞれ)が有する実行処理情報を取得する(ステップSI4)。なお、前回、レスポンスデータD2を送信してから現時点までの間に、企業の担当者を含むユーザーが、リクエストデータD1の送信元のPOS端末13に所定の処理を実行させることを目的として、上述した手段により、命令格納データベース511に対応するレコードを記憶した場合に、ステップSI2で取得したPOS端末識別情報を有するレコードが命令格納データベース511に存在した状態となる。   When the record having the POS terminal identification information acquired in step SI2 exists in the instruction storage database 511 (step SI3: YES), the response response unit 502 records the record having the POS terminal identification information acquired in step SI2 (the record is If there are a plurality of records, the execution process information of each of the plurality of records) is acquired (step SI4). For the purpose of causing the POS terminal 13 that is the transmission source of the request data D1 to execute predetermined processing by the user including the person in charge of the company between the time when the response data D2 is transmitted and the current time. When the record corresponding to the command storage database 511 is stored by the means, the record having the POS terminal identification information acquired in step SI2 is in the command storage database 511.

続くステップSI5において、レスポンス応答部502は、リクエストデータD1に含まれる処理結果通知データD12を取得する(ステップSI5)。   In the subsequent step SI5, the response response unit 502 acquires the processing result notification data D12 included in the request data D1 (step SI5).

次いで、レスポンス応答部502は、ステップSI4で取得した実行処理情報、及び、ステップSI5で取得した処理結果通知データD12に基づいて、処理命令制御データD21を生成する(ステップSI6)。
詳述すると、レスポンス応答部502は、取得した実行処理情報に基づいて、実行処理情報に対応する処理をPOS端末13に実行させる制御データ(以下、「第1制御データ」という。)を生成する。取得した実行処理情報が、複数、存在する場合、レスポンス応答部502は、複数の実行処理情報に対応する処理のそれぞれを実行させる制御データを生成する。なお、レスポンス応答部502は、1又は複数の実行処理情報に基づいて、対応する1又は複数の処理を実行させる処理命令制御データD21を生成する機能を有する。
さらに、レスポンス応答部502は、処理結果通知データD12に基づいて、命令実行部205が実行した処理の処理結果に応じて、POS端末13に実行させるべき処理が存在する場合は、当該処理を実行させる制御データ(以下、「第2制御データ」という。)を生成する。
次いで、レスポンス応答部502は、第1制御データ、及び、第2制御データを含む処理命令制御データD21を生成する。処理命令制御データD21は、JSON(JavaScript(登録商標) Object Notation)形式、XML形式等のレスポンスとしてPOS端末13に送信可能なデータである。
Next, the response response unit 502 generates processing command control data D21 based on the execution processing information acquired in step SI4 and the processing result notification data D12 acquired in step SI5 (step SI6).
More specifically, the response response unit 502 generates control data (hereinafter referred to as “first control data”) that causes the POS terminal 13 to execute a process corresponding to the execution process information based on the acquired execution process information. . If there are a plurality of acquired execution process information, the response response unit 502 generates control data for executing each of the processes corresponding to the plurality of execution process information. Note that the response response unit 502 has a function of generating processing instruction control data D21 for executing corresponding one or more processes based on one or more execution process information.
Further, the response response unit 502 executes the process when there is a process to be executed by the POS terminal 13 based on the process result notification data D12 and according to the process result of the process executed by the instruction execution unit 205. Control data (hereinafter referred to as “second control data”) to be generated.
Next, the response response unit 502 generates processing command control data D21 including the first control data and the second control data. The processing command control data D21 is data that can be transmitted to the POS terminal 13 as a response in JSON (JavaScript (registered trademark) Object Notation) format, XML format, or the like.

処理命令制御データD21を生成後、レスポンス応答部502は、命令格納データベース511から、ステップSI2で取得したPOS端末識別情報を有するレコードのそれぞれを削除する(ステップSI7)。ステップSI7の処理により、命令格納データベース511から、処理命令制御データD21の生成の元となったレコードが存在しない状態となる。   After generating the processing command control data D21, the response response unit 502 deletes each of the records having the POS terminal identification information acquired in step SI2 from the command storage database 511 (step SI7). As a result of the processing in step SI7, the instruction storage database 511 is in a state where there is no record from which the process instruction control data D21 is generated.

レコードを削除した後、レスポンス応答部502は、処理命令制御データ生成処理を終了する。
なお、「命令格納データベース511に対応するレコードがない」、かつ、「リクエストデータD1に処理結果通知データD12がない、又は、リクエストデータD1に含まれる処理結果通知データD12に応じてPOS端末13に実行させる処理がない」場合は、処理命令制御データD21は生成されない。しかし、以下では、説明の便宜のため、処理命令制御データD21が生成されたものとして、レスポンス応答部502、その他の主体の処理を説明する。
After deleting the record, the response response unit 502 ends the processing command control data generation process.
Note that “there is no record corresponding to the instruction storage database 511” and “the request data D1 does not have the processing result notification data D12, or the processing result notification data D12 included in the request data D1 indicates to the POS terminal 13 If there is no process to be executed, the process command control data D21 is not generated. However, in the following, for the convenience of description, the response response unit 502 and other main processes will be described on the assumption that the processing command control data D21 has been generated.

図8(A)に示すように、ステップSH1で処理命令制御データ生成処理を実行して処理命令制御データD21を生成した後、レスポンス応答部502は、エラー警告/予兆通知データ生成処理を実行して、エラー警告/予兆通知データD22を生成する(ステップSH2)。   As shown in FIG. 8A, after the processing instruction control data generation process is executed in step SH1 to generate the processing instruction control data D21, the response response unit 502 executes the error warning / predictive notification data generation process. Thus, error warning / predictive notification data D22 is generated (step SH2).

図8(C)は、エラー警告/予兆通知データ生成処理の実行時のレスポンス応答部502の動作を詳細に示すフローチャートである。
図8(C)に示すように、エラー警告/予兆通知データ生成処理において、レスポンス応答部502は、リクエストデータD1に含まれるログデータD11(メインログデータD11m、及び、サブログデータD11s)を取得する(ステップSJ1)。
FIG. 8C is a flowchart showing in detail the operation of the response response unit 502 when the error warning / predictive notification data generation process is executed.
As shown in FIG. 8C, in the error warning / predictive notification data generation process, the response response unit 502 acquires log data D11 (main log data D11m and sub log data D11s) included in the request data D1. (Step SJ1).

次いで、レスポンス応答部502は、ステップSJ1で取得したログデータD11に基づいて、POS端末13の所定の監視項目がエラー警告状態又はエラー予兆状態であるか否か、及び、印刷装置14の所定の監視項目がエラー警告状態又はエラー予兆状態であるか否かを判別する(ステップSJ2)。
ここで、エラー警告状態又はエラー予兆状態であるか否かを判別する対象となる監視項目は、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、及び、監視項目:データ転送速度である。
レスポンス応答部502は、POS端末13監視項目:RAM使用率について、以下の方法でエラー警告状態又はエラー予兆状態であるか否かを判別する。すなわち、監視項目:RAM使用率について、エラー状態(RAMに障害が発生した状態)、エラー警告状態(RAMに障害は発生していないものの、対応する処置を行わないと障害が発生する蓋然性が高い状態)、及び、エラー予兆状態(RAMに障害は発生していないものの継続的な使用によって障害が発生する可能性がある状態)のそれぞれの状態と判別するための条件が予め定められる。条件は、RAM使用率(数値)と、所定の閾値とが所定の関係となった場合に成立する条件とされる。エラー状態と判別する条件は、例えば、RAM使用率が所定の閾値を上回ることである。エラー警告状態と判別する条件は、例えば、RAM使用率が、エラー状態の判別に係る閾値よりも値が小さい所定の閾値を上回ることである。エラー予兆状態と判別する条件は、例えば、RAM使用率の増加又は低下のペースが所定の閾値を上回ることである。ここで閾値を上回るとは、例えば、RAM使用率が瞬間的に閾値を上回ることに加え、RAM使用率が閾値を超えた状態が所定期間継続する状態にある場合も含む。
監視項目:RAM使用率がエラー警告状態又はエラー予兆状態であるか否かを判別するにあたって、レスポンス応答部502は、リクエストデータD1のメインログデータD11mに含まれるRAM使用率ステータス情報データのRAM使用率状態情報を取得する。上述したように、RAM使用率状態情報は、所定の期間におけるRAM使用率の推移を時系列で示す情報を含む。次いで、レスポンス応答部502は、取得したRAM使用率状態情報に基づいて、エラー警告状態又はエラー予兆状態に係る条件が成立するか否かを判別することにより、監視項目:RAM使用率について、エラー警告状態又はエラー予兆状態であるか否かを判別する。
Next, based on the log data D11 acquired in step SJ1, the response response unit 502 determines whether the predetermined monitoring item of the POS terminal 13 is in the error warning state or the error predictor state, and the predetermined response of the printing device 14. It is determined whether or not the monitoring item is in an error warning state or an error predictor state (step SJ2).
Here, the monitoring items that are targets for determining whether or not the error warning state or the error predictor state are monitoring item: RAM usage rate, monitoring item: CPU usage rate, monitoring item: CPU temperature, and monitoring item: Data transfer rate.
The response response unit 502 determines whether the POS terminal 13 monitoring item: RAM usage rate is in an error warning state or an error predictor state by the following method. That is, with regard to the monitoring item: RAM usage rate, there is a high probability that a failure will occur if a corresponding action is not taken, although an error state (a failure has occurred in the RAM), an error warning state (a failure has not occurred in the RAM) Conditions) and an error sign state (a state in which a failure has not occurred in the RAM but a failure may occur due to continuous use) are determined in advance. The condition is a condition that is satisfied when the RAM usage rate (numerical value) and a predetermined threshold value have a predetermined relationship. The condition for determining an error state is, for example, that the RAM usage rate exceeds a predetermined threshold. The condition for determining the error warning state is, for example, that the RAM usage rate exceeds a predetermined threshold value that is smaller than the threshold value for determining the error state. The condition for determining the error sign state is, for example, that the increase or decrease in the RAM usage rate exceeds a predetermined threshold. Here, exceeding the threshold includes, for example, the case where the RAM usage rate exceeds the threshold instantaneously and the state where the RAM usage rate exceeds the threshold continues for a predetermined period.
Monitoring item: In determining whether the RAM usage rate is in the error warning state or the error predictor state, the response response unit 502 uses the RAM usage rate status information data included in the main log data D11m of the request data D1. Get rate status information. As described above, the RAM usage rate state information includes information indicating the transition of the RAM usage rate in a predetermined period in time series. Next, the response response unit 502 determines whether or not a condition relating to the error warning state or the error predictor state is satisfied based on the acquired RAM usage rate state information, so that an error about the monitoring item: RAM usage rate is obtained. It is determined whether the state is a warning state or an error predictor state.

エラー警告状態、及び、エラー予兆状態と判別する条件は、保守担当者、及び、企業の担当者等により、所定の手段によって変更可能である。   The conditions for discriminating between the error warning state and the error predictor state can be changed by a predetermined means by a maintenance person, a person in charge of the company, or the like.

レスポンス応答部502は、同様の方法で、監視項目:CPU使用率、監視項目:CPU温度、及び、監視項目:データ転送速度について、エラー警告状態又はエラー予兆状態であるか否かを判別する。
また、レスポンス応答部502は、同様の方法で、印刷装置14の所定の監視項目について、サブログデータD11sに基づいて、エラー警告状態又はエラー予兆状態であるか否かを判別する。
In a similar manner, the response response unit 502 determines whether the monitoring item: CPU usage rate, the monitoring item: CPU temperature, and the monitoring item: data transfer rate are in an error warning state or an error predictor state.
Further, the response response unit 502 determines whether the predetermined monitoring item of the printing apparatus 14 is in an error warning state or an error predictor state based on the sublog data D11s in the same manner.

なお、レスポンス応答部502は、監視項目がエラー警告状態又はエラー予兆状態であるか否かの判別にあたり、監視項目が所定の状態に至った日時と、現時点の日時との時間的な関係も加味する。   Note that the response response unit 502 takes into account the temporal relationship between the date and time when the monitoring item has reached a predetermined state and the current date and time when determining whether the monitoring item is in an error warning state or an error predictor state. To do.

エラー警告状態、及び、エラー予兆状態は、「エラーが発生する可能性が高い状態」に相当する。   The error warning state and the error predictor state correspond to “a state where an error is highly likely to occur”.

続くステップSJ3において、レスポンス応答部502は、ステップSJ2の判別結果に基づいて、エラー警告/予兆通知データD22を生成する。
すなわち、レスポンス応答部502は、POS端末13の所定の監視項目がエラー警告状態又はエラー予兆状態である場合、又は、印刷装置14の所定の監視項目がエラー警告状態又はエラー予兆状態である場合に、エラー警告状態又はエラー予兆状態である監視項目のそれぞれについて、監視項目を示す情報、及び、エラー警告状態又はエラー予兆状態のいずれかを示す情報を含むエラー警告/予兆通知データD22を生成する。
また、レスポンス応答部502は、エラー警告状態又はエラー予兆状態の監視項目が1つもない場合、エラー警告状態又はエラー予兆状態の監視項目が1つもないことを示す情報を含むエラー警告/予兆通知データD22を生成する。
エラー警告/予兆通知データD22は、情報を階層化して記述可能なテキストデータ(例えば、XML形式のデータ)であり、POS端末13にレスポンスとして送信可能なデータである。
In subsequent step SJ3, the response response unit 502 generates error warning / predictive notification data D22 based on the determination result in step SJ2.
In other words, the response response unit 502 is configured when the predetermined monitoring item of the POS terminal 13 is in the error warning state or the error predictor state, or when the predetermined monitoring item of the printing apparatus 14 is in the error warning state or the error predictor state. For each monitoring item that is in the error warning state or the error predictor state, error warning / prediction notification data D22 including information indicating the monitoring item and information indicating either the error warning state or the error predictor state is generated.
The response response unit 502 also includes error warning / prediction notification data including information indicating that there is no error warning state or error predictor state monitoring item when there is no error warning state or error predictor state monitoring item. D22 is generated.
The error warning / predictive notification data D22 is text data (for example, data in XML format) that can be described by layering information, and is data that can be transmitted to the POS terminal 13 as a response.

図8(A)に示すように、エラー警告/予兆通知データ生成処理を実行した後、レスポンス応答部502は、ステップSE2の判別結果に基づく現時点が企業の契約期間内であることを示す情報と、ステップSH1で生成した処理命令制御データD21と、ステップSH2で生成したエラー警告/予兆通知データD22と、に基づいて、レスポンスデータD2を生成し(ステップSH3)、レスポンスデータ生成処理を終了する。
レスポンスデータD2は、現時点が企業の契約期間内であることを示す情報、処理命令制御データD21、及び、エラー警告/予兆通知データD22を含むデータである。
As shown in FIG. 8A, after executing the error warning / predictive notification data generation process, the response response unit 502 includes information indicating that the current time based on the determination result in step SE2 is within the contract period of the company. Response data D2 is generated based on the processing instruction control data D21 generated in step SH1 and the error warning / prediction notification data D22 generated in step SH2 (step SH3), and the response data generation process is terminated.
The response data D2 is data including information indicating that the current time is within the contract period of the company, processing command control data D21, and error warning / prediction notification data D22.

図4(E)に示すように、ステップSE7のレスポンスデータ生成処理を実行した後、レスポンス応答部502は、メンテナンスサーバー通信部52を制御して、生成したレスポンスデータD2をレスポンスとしてPOS端末13に送信する(ステップSE8)。例えば、レスポンス応答部502は、レスポンスボディーにレスポンスデータD2が記述されたHTTPレスポンスを、HTTPに従って、POS端末13に送信する。
レスポンスデータD2の送信後、レスポンス応答部502は、処理を終了する。
As shown in FIG. 4 (E), after executing the response data generation process of step SE7, the response response unit 502 controls the maintenance server communication unit 52 and sends the generated response data D2 to the POS terminal 13 as a response. Transmit (step SE8). For example, the response response unit 502 transmits an HTTP response in which the response data D2 is described in the response body to the POS terminal 13 according to HTTP.
After transmitting the response data D2, the response response unit 502 ends the process.

このように、本実施形態では、POS端末13は、所定の間隔をあけてログデータD11を生成し、ログデータD11を含むリクエストデータD1をメンテナンスサーバー17に送信する。メンテナンスサーバー17は、リクエストデータD1に応じて、レスポンスデータD2を送信する。このような構成のため、POS端末13は、所定の間隔をあけてPOS端末13及び印刷装置14の監視項目の状態をメンテナンスサーバー17に通知することができる。また、メンテナンスサーバー17は、POS端末13が間隔をあけてログデータD11を含むリクエストデータD1を送信する構成を利用して、レスポンスとしてレスポンスデータD2を送信して、POS端末13に必要な処理を実行させることができる。   Thus, in this embodiment, the POS terminal 13 generates the log data D11 with a predetermined interval, and transmits the request data D1 including the log data D11 to the maintenance server 17. The maintenance server 17 transmits response data D2 in response to the request data D1. Due to such a configuration, the POS terminal 13 can notify the maintenance server 17 of the status of the monitoring items of the POS terminal 13 and the printing apparatus 14 at a predetermined interval. In addition, the maintenance server 17 uses the configuration in which the POS terminal 13 transmits the request data D1 including the log data D11 at intervals, and transmits the response data D2 as a response to perform processing necessary for the POS terminal 13. Can be executed.

図4(B)に示すように、ステップSB5においてレスポンス(契約情報レスポンスデータ、又は、レスポンスデータD2)の受信を待機中の通信管理部204は、レスポンスを受信した場合(ステップSB5:YES)、送信間隔設定処理を実行する(ステップSB6)。
詳述すると、通信管理部204は、契約情報レスポンスデータ、又は、レスポンスデータD2に基づいて、現時点が契約期間内であるか否かを判別する。現時点が規約期間内である場合、通信管理部204は、送信間隔設定ファイル222に、通常送信タイミングを示す情報を記録する。一方、現時点が契約期間内ではない場合、通信管理部204は、送信間隔設定ファイル222に、契約期間外送信タイミングを示す情報を書き込む。契約期間外タイミングは、前回、リクエストデータD1を送信した後、契約期間外間隔が経過したタイミングである。契約期間外間隔は、基準生成間隔(リクエストデータD1を生成する最長の間隔)よりも長い間隔である。例えば、基準生成間隔が「5分」の場合に、契約期間外間隔は、「1時間」である。
As shown in FIG. 4B, the communication management unit 204 waiting for reception of a response (contract information response data or response data D2) in step SB5 receives a response (step SB5: YES). A transmission interval setting process is executed (step SB6).
Specifically, the communication management unit 204 determines whether the current time is within the contract period based on the contract information response data or the response data D2. When the current time is within the contract period, the communication management unit 204 records information indicating the normal transmission timing in the transmission interval setting file 222. On the other hand, when the current time is not within the contract period, the communication management unit 204 writes information indicating the transmission timing outside the contract period in the transmission interval setting file 222. The non-contract period timing is the timing at which the non-contract period interval has elapsed since the request data D1 was transmitted last time. The non-contract period interval is an interval longer than the reference generation interval (the longest interval for generating the request data D1). For example, when the reference generation interval is “5 minutes”, the non-contract period is “1 hour”.

ステップSB5の処理により、現時点が契約期間内の場合は、リクエストデータD1は、生成される間隔と同期がとられた間隔で送信され、現時点が契約期間内ではない場合は、リクエストデータD1は、契約期間外間隔で送信される。   If the current time is within the contract period by the processing of step SB5, the request data D1 is transmitted at an interval synchronized with the generated interval. If the current time is not within the contract period, the request data D1 is Sent at intervals outside the contract period.

このように、本実施形態では、現時点が企業の契約期間内ではない場合、リクエストデータD1(ログデータD11)を送信する間隔が、現時点が企業の契約期間内の場合と比較して、長い時間とされる。これにより、以下の効果を奏する。
すなわち、POS端末13がリクエストデータD1を送信した場合、その分、通信帯域を消費することになり、また、リクエストデータD1を受信したメンテナンスサーバー17は、必要な記憶領域を使用して必要なデータを記憶し、必要な演算処理を実行することになる。つまり、POS端末13によるリクエストデータD1の送信は、通信に関する資源、メンテナンスサーバー17におけるソフトウェア、及び、ハードウェアに関する資源の消費を伴う。そして、契約期間内ではない企業に係るPOS端末13がリクエストデータD1を送信する間隔を、契約期間内の企業に係るPOS端末13がリクエストデータD1を送信する間隔よりも長くすることにより、契約期間内ではない企業に係るPOS端末13によるリクエストデータD1の送信に起因する資源の消費を抑制することができ、また、契約を行った企業とそうでない企業とに対する対応を差別化でき、公平さを担保できる。
ここで、契約期間内ではない企業については、当該企業に係るPOS端末13からのリクエストデータD1の送信を完全に停止することも可能である。しかしながら、企業が、契約する意思を持っているのにもかかわらず手続きのミス等により、現時点が契約期間内ではない事態が生じ得ると想定される。そして、本実施形態のように、契約期間内ではない企業について、当該企業に係るPOS端末13からのリクエストデータD1の送信を完全に停止するのではなく、契約期間内ではない間だけ一時的にリクエストデータD1の送信間隔を長くすることにより、契約する意思を持つ企業にメンテナンスサーバー17の機能が全く使えないことに伴う不測の不利益が生じることを抑制できる。また、メンテナンスサーバー17は、リクエストデータD1を受信する度に、契約期間内であるか否かを判別するため、POS端末13によるリクエストデータD1の送信が継続的に行われることにより、メンテナンスサーバー17によるリクエストデータD1の受信に伴う契約期間内か否かの判別が継続して行われる。このため、新たに契約が行われた場合に、リクエストデータD1を送信するタイミングを通常送信タイミングとすることが可能となる。
なお、後述するように、契約期間内ではない間に生成されたリクエストデータD1は、消失せず、契約期間内となったときにメンテナンスサーバー17に送信され当該サーバーにより適切に処理される。
Thus, in the present embodiment, when the current time is not within the contract period of the company, the interval for transmitting the request data D1 (log data D11) is longer than that when the current time is within the contract period of the company. It is said. Thereby, the following effects are produced.
That is, when the POS terminal 13 transmits the request data D1, the communication bandwidth is consumed correspondingly, and the maintenance server 17 that has received the request data D1 uses the necessary storage area to obtain the necessary data. Is stored, and necessary arithmetic processing is executed. That is, transmission of the request data D1 by the POS terminal 13 involves consumption of resources related to communication, software in the maintenance server 17, and resources related to hardware. Then, by making the interval at which the POS terminal 13 related to the company not within the contract period transmits the request data D1 longer than the interval at which the POS terminal 13 related to the company within the contract period transmits the request data D1, the contract period It is possible to suppress the consumption of resources due to the transmission of the request data D1 by the POS terminal 13 related to a company that is not within, and to differentiate the response between the contracted company and the company that is not, and to improve the fairness Can be secured.
Here, for companies that are not within the contract period, it is possible to completely stop the transmission of the request data D1 from the POS terminal 13 related to the company. However, it is assumed that there may be a situation where the current time is not within the contract period due to a mistake in the procedure even though the company is willing to contract. Then, as in this embodiment, for companies that are not within the contract period, the transmission of the request data D1 from the POS terminal 13 related to the company is not completely stopped, but only temporarily during the contract period. By increasing the transmission interval of the request data D1, it is possible to suppress the occurrence of unexpected disadvantages due to the fact that the function of the maintenance server 17 cannot be used at all for a company that intends to make a contract. In addition, every time the maintenance server 17 receives the request data D1, the maintenance server 17 continuously transmits the request data D1 by the POS terminal 13 in order to determine whether it is within the contract period. Whether or not it is within the contract period accompanying reception of the request data D1 is continuously performed. For this reason, when a new contract is made, the timing for transmitting the request data D1 can be set as the normal transmission timing.
As will be described later, the request data D1 generated while not within the contract period does not disappear, but is transmitted to the maintenance server 17 and appropriately processed by the server when it is within the contract period.

ステップSB6で送信間隔設定処理を実行した後、通信管理部204は、現時点が契約期間内か否かを判別する(ステップSB7)。
契約期間内ではない場合(ステップSB7:NO)、通信管理部204は、処理を終了する。この場合、所定の記憶領域に記憶したリクエストデータD1の削除は行われず、記憶された状態が維持される。所定の記憶領域に記憶されたリクエストデータD1は、次にリクエストデータD1を送信するタイミングが到来したときに、送信する対象のデータ(複数のリクエストデータD1が所定の記憶領域に記憶された状態の場合は、送信する対象のデータの1つ)とされる。
After executing the transmission interval setting process in step SB6, the communication management unit 204 determines whether or not the current time is within the contract period (step SB7).
If it is not within the contract period (step SB7: NO), the communication management unit 204 ends the process. In this case, the request data D1 stored in the predetermined storage area is not deleted, and the stored state is maintained. The request data D1 stored in the predetermined storage area is the data to be transmitted (in the state where a plurality of request data D1 is stored in the predetermined storage area) when the next transmission timing of the request data D1 arrives. In this case, it is one of the data to be transmitted).

契約期間内の場合(ステップSB7:YES)、通信管理部204は、レスポンスデータD2に含まれるエラー警告/予兆通知データD22を取得し、ログ収集部203に出力する(ステップSB8)。   If it is within the contract period (step SB7: YES), the communication management unit 204 acquires the error warning / predictive notification data D22 included in the response data D2 and outputs it to the log collection unit 203 (step SB8).

図4(A)に示すように、ログ収集部203は、通信管理部204から入力され取得したエラー警告/予兆通知データD22、及び、ステップSA3のログデータ生成処理で生成したログデータD11に基づいて、生成間隔設定処理を実行する(ステップSA6)。   As shown in FIG. 4A, the log collection unit 203 is based on the error warning / prediction notification data D22 input and acquired from the communication management unit 204, and the log data D11 generated by the log data generation processing in step SA3. Then, the generation interval setting process is executed (step SA6).

図9は、生成間隔設定処理の実行時のログ収集部203の処理の詳細を示すフローチャートである。
図9に示すように、ログ収集部203は、ログデータD11(メインログデータD11m、及び、サブログデータD11s)を取得する(ステップSK1)。
次いで、ログ収集部203は、ステップSK1で取得したログデータD11に基づいて、POS端末13の所定の監視項目がエラー警告状態又はエラー予兆状態であるか否か、及び、印刷装置14の所定の監視項目がエラー警告状態又はエラー予兆状態であるか否かを判別する(ステップSK2)。
FIG. 9 is a flowchart showing details of the process of the log collection unit 203 when the generation interval setting process is executed.
As illustrated in FIG. 9, the log collection unit 203 acquires log data D11 (main log data D11m and sub-log data D11s) (step SK1).
Next, the log collection unit 203 determines whether the predetermined monitoring item of the POS terminal 13 is in the error warning state or the error predictor state based on the log data D11 acquired in step SK1, and the predetermined amount of the printing apparatus 14. It is determined whether or not the monitoring item is in an error warning state or an error sign state (step SK2).

監視項目がエラー警告状態又はエラー予兆状態であるか否かの判別は、上述したエラー警告/予兆通知データ生成処理で説明した方法と同様の方法で行われる。すなわち、ログ収集部203は、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、及び、監視項目:データ転送速度について、エラー警告状態に係る対応する条件が成立した場合は、エラー警告状態であると判別する。また、ログ収集部203は、これら監視項目について、エラー予兆状態に係る対応する条件が成立した場合は、エラー予兆状態であると判別する。
ステップSK2の処理で、エラー警告状態又はエラー予兆状態であるか否かの判別に使用される条件は、所定の担当者により、所定の手段によって、事前に登録される。
Whether the monitoring item is in an error warning state or an error predictor state is determined by the same method as described in the error warning / predictor notification data generation process described above. In other words, the log collection unit 203 determines that the corresponding condition relating to the error warning state is satisfied for the monitoring item: RAM usage rate, the monitoring item: CPU usage rate, the monitoring item: CPU temperature, and the monitoring item: data transfer rate. Is determined to be in an error warning state. In addition, the log collection unit 203 determines that these monitoring items are in the error predictor state when the corresponding condition relating to the error predictor state is satisfied.
In the process of step SK2, conditions used for determining whether or not an error warning state or an error predictor state is registered in advance by a predetermined person by a predetermined means.

ここで、メンテナンスサーバー17が行うエラー警告/予兆通知データ生成処理で使用する条件(以下、「サーバー側条件」という。)と、POS端末13が行うステップSK2の処理で使用する条件(以下、「POS端末側条件」という。)とは、内容が同一である必要はない。
例えば、POS端末側条件は、POS端末13が設置された環境等のPOS端末13の実際の使用態様等を把握できる者が、POS端末13の実際の使用態様を反映した条件とする等、サーバー側条件とは異なる観点で、条件の内容を設定可能である。
Here, the conditions used in the error warning / predictive notification data generation process performed by the maintenance server 17 (hereinafter referred to as “server-side conditions”) and the conditions used in the process of step SK2 performed by the POS terminal 13 (hereinafter referred to as “ "POS terminal side condition") does not have to be the same.
For example, the POS terminal-side condition is such that a person who can grasp the actual usage mode of the POS terminal 13 such as the environment where the POS terminal 13 is installed is a condition reflecting the actual usage mode of the POS terminal 13. The content of the condition can be set from a viewpoint different from the side condition.

エラー警告状態又はエラー予兆状態の監視項目が1つでもある場合(ステップSK2:YES)、ログ収集部203は、生成間隔設定ファイル221を更新して、生成間隔設定ファイル221に、基準生成間隔よりも短い間隔(以下、「短縮生成間隔」という。)を示す情報を記録する(ステップSK3)。その後、ログ収集部203は、処理手順をステップSK4に移行する。上述したように、基準生成間隔は、リクエストデータD1(ログデータD11)を生成する間隔として設定可能な最長の間隔である。短縮生成間隔の値は、エラー警告状態又はエラー予兆状態である監視項目の状態に応じて、所定の方法により定められる。   When there is at least one monitoring item in the error warning state or the error predictor state (step SK2: YES), the log collection unit 203 updates the generation interval setting file 221 to the generation interval setting file 221 based on the reference generation interval. Also, information indicating a short interval (hereinafter referred to as “shortened generation interval”) is recorded (step SK3). Thereafter, the log collection unit 203 proceeds to step SK4. As described above, the reference generation interval is the longest interval that can be set as an interval for generating the request data D1 (log data D11). The value of the shortened generation interval is determined by a predetermined method according to the state of the monitoring item that is in the error warning state or the error predictor state.

ログデータD11に基づくエラー警告状態又はエラー予兆状態の監視項目が1つもない場合(ステップSK2:NO)、ログ収集部203は、処理手順をステップSK4に移行する。   When there is no monitoring item of the error warning state or the error predictor state based on the log data D11 (step SK2: NO), the log collection unit 203 moves the processing procedure to step SK4.

ステップSK4において、ログ収集部203は、エラー警告/予兆通知データD22を取得する。   In step SK4, the log collection unit 203 acquires error warning / predictive notification data D22.

次いで、ログ収集部203は、ステップSK4で取得したエラー警告/予兆通知データD22に基づいて、POS端末13の所定の監視項目がエラー警告状態又はエラー予兆状態であるか否か、及び、印刷装置14の所定の監視項目がエラー警告状態又はエラー予兆状態であるか否かを判別する(ステップSK5)。
エラー警告状態又はエラー予兆状態の監視項目が1つでもある場合(ステップSK5:YES)、ログ収集部203は、生成間隔設定ファイル221を更新して、生成間隔設定ファイル221に、短縮生成間隔を示す情報を記録する(ステップSK6)。その後、ログ収集部203は、処理手順をステップSK7に移行する。短縮生成間隔の値は、ステップSK2でエラー警告状態又はエラー予兆状態と判別した監視項目の状態、及び、エラー警告/予兆通知データD22においてエラー警告状態又はエラー予兆状態であると示された監視項目の状態に応じた値とされる。
Next, the log collection unit 203 determines whether or not the predetermined monitoring item of the POS terminal 13 is in the error warning state or the error prediction state based on the error warning / prediction notification data D22 acquired in step SK4, and the printing apparatus. It is determined whether or not the 14 predetermined monitoring items are in an error warning state or an error predictor state (step SK5).
When there is at least one monitoring item in the error warning state or the error predictor state (step SK5: YES), the log collection unit 203 updates the generation interval setting file 221 and sets a shortened generation interval in the generation interval setting file 221. The information shown is recorded (step SK6). Thereafter, the log collection unit 203 shifts the processing procedure to step SK7. The value of the shortened generation interval includes the status of the monitoring item determined as the error warning state or the error predictor state in step SK2, and the monitor item indicated as the error warning state or the error predictor state in the error warning / predictor notification data D22. It is a value according to the state of.

エラー警告/予兆通知データD22に基づくエラー警告状態又はエラー予兆状態の監視項目が1つもない場合(ステップSK7:YES)、ログ収集部203は、処理手順をステップSK8に移行する。   When there is no monitoring item of the error warning state or the error prediction state based on the error warning / prediction notification data D22 (step SK7: YES), the log collection unit 203 shifts the processing procedure to step SK8.

ステップSK7において、ログ収集部203は、ステップSK2、及び、ステップSK5のいずれの処理においても、エラー警告状態又はエラー予兆状態の監視項目が1つもないと判別したか否かを判別する。
ステップSK2、及び、ステップSK5のいずれの処理においても、エラー警告状態又はエラー予兆状態の監視項目が1つもないと判別した場合(ステップSK7:YES)、ログ収集部203は、生成間隔設定ファイル221を更新して、生成間隔設定ファイル221に、基準生成間隔を示す情報を記録する(ステップSK8)。その後、ログ収集部203は、生成間隔設定処理を終了する。
ステップSK2、及び、ステップSK5のいずれかの処理で、エラー警告状態又はエラー警告状態と判別した監視項目がある場合(ステップSK7:NO)、ログ収集部203は、生成間隔設定処理を終了する。
In step SK7, the log collection unit 203 determines whether there is no monitoring item in the error warning state or the error predictor state in any of the processes in steps SK2 and SK5.
When it is determined that there is no monitoring item in the error warning state or the error predictor state in any of the processes of step SK2 and step SK5 (step SK7: YES), the log collection unit 203 generates the generation interval setting file 221. And information indicating the reference generation interval is recorded in the generation interval setting file 221 (step SK8). Thereafter, the log collection unit 203 ends the generation interval setting process.
If there is a monitoring item that has been determined as an error warning state or an error warning state in any of the processes of step SK2 and step SK5 (step SK7: NO), the log collection unit 203 ends the generation interval setting process.

以上のように、本実施形態では、所定の監視項目がエラー警告状態又はエラー予兆状態の場合(エラー状態となる可能性が高い場合)、そうではない場合と比較して、リクエストデータD1(ログデータD11)を生成する間隔が短くなる。これにより以下の効果を奏する。なお、短縮生成間隔でリクエストデータD1が生成される場合は、基本的には、リクエストデータD1を送信するタイミングは通常送信タイミングであるため、リクエストデータD1を送信する間隔も短くなる。
すなわち、1の監視項目がエラー警告状態又はエラー予兆状態となった場合、当該1の監視項目は、エラー状態(障害が発生した状態)となる可能性が高い状態である。この場合、保守担当者は、当該1の監視項目の状態をできるだけ短い間隔で監視し、必要に応じて対応する処理を行う必要がある。そして、後述するように、メンテナンスサーバー17のログ情報記憶部503は、リクエストデータD1の受信に応じて、第2ステータス情報データベース514にリクエストデータD1に基づくレコードを記憶する。さらに、メンテナンスサーバー17のログ情報表示部504は、保守担当者の要求に応じて、第2ステータス情報データベース514に基づいて、POS端末13及び印刷装置14の状態を報知する。このため、監視項目がエラー警告状態又はエラー予兆状態となった場合にリクエストデータD1を生成、送信する間隔を短くすることにより、このような状態の場合に、保守担当者が、監視項目の状態をできるだけ短い間隔で監視し、必要に応じて対応する処理を行うことが可能となる。
なお、リクエストデータD1を生成、送信する間隔を常に短縮生成間隔とすることも可能である。しかしながら、上述したように、リクエストデータD1の送信は、各種資源の消費を伴う。従って、監視項目がエラー警告状態又はエラー予兆状態の間、リクエストデータD1の生成、送信の間隔を短くすることにより、不必要な資源の消費を抑制した上で、必要な場合に効率的な方法で保守担当者に監視項目の状態を報知することができる。
As described above, in the present embodiment, when the predetermined monitoring item is in the error warning state or the error predictor state (when there is a high possibility of being in the error state), the request data D1 (log) The interval for generating the data D11) is shortened. This produces the following effects. When the request data D1 is generated at the shortened generation interval, basically, the request data D1 is transmitted at the normal transmission timing, and therefore the request data D1 is transmitted at a shorter interval.
In other words, when one monitoring item is in an error warning state or an error predictor state, the one monitoring item is in a state where there is a high possibility of being in an error state (a state in which a failure has occurred). In this case, the person in charge of maintenance needs to monitor the state of the one monitoring item at intervals as short as possible, and perform corresponding processing as necessary. As will be described later, the log information storage unit 503 of the maintenance server 17 stores a record based on the request data D1 in the second status information database 514 in response to the reception of the request data D1. Further, the log information display unit 504 of the maintenance server 17 notifies the states of the POS terminal 13 and the printing device 14 based on the second status information database 514 in response to a request from the maintenance staff. Therefore, by shortening the interval for generating and transmitting the request data D1 when the monitoring item is in an error warning state or an error predictive state, the maintenance staff can change the state of the monitoring item in such a state. Can be monitored at intervals as short as possible, and corresponding processing can be performed as necessary.
It should be noted that the interval at which the request data D1 is generated and transmitted can always be a shortened generation interval. However, as described above, transmission of the request data D1 involves consumption of various resources. Therefore, while the monitoring item is in the error warning state or the error predicting state, the generation and transmission intervals of the request data D1 are shortened, thereby suppressing unnecessary resource consumption and efficient when necessary. The maintenance staff can be notified of the status of the monitoring items.

図4(B)に示すように、ステップSB9でエラー警告/予兆通知データD22をログ収集部203に出力した後、通信管理部204は、レスポンスデータD2に含まれる処理命令制御データD21を取得し、命令実行部205に出力する(ステップSB9)。
次いで、通信管理部204は、ステップSB4で送信したリクエストデータD1を所定の記憶領域から削除する(ステップSB10)。ステップSB11の処理により、メンテナンスサーバー17に送信され、メンテナンスサーバー17で処理された(リクエストデータD1に基づく情報が記憶された)リクエストデータD1が、重複して送信されることが防止される。
次いで、通信管理部204は、所定の記憶領域に、リクエストデータD1が記憶された状態か否かを判別する(ステップSB11)。ステップSB12の時点で、所定の記憶領域に記憶された状態のリクエストデータD1は、メンテナンスサーバー17によって処理された状態にない(リクエストデータD1に基づく情報が記憶された状態にない)データである。
所定の記憶領域にリクエストデータD1が記憶された状態の場合(ステップSB11:YES)、通信管理部204は、処理手順をステップSB4へ移行する。
所定の記憶領域にリクエストデータD1が記憶された状態ではない場合(ステップSB11:NO)、通信管理部204は、処理を終了する。
As shown in FIG. 4B, after outputting the error warning / prediction notification data D22 to the log collection unit 203 in step SB9, the communication management unit 204 acquires the processing command control data D21 included in the response data D2. Is output to the instruction execution unit 205 (step SB9).
Next, the communication management unit 204 deletes the request data D1 transmitted in step SB4 from a predetermined storage area (step SB10). By the process of step SB11, the request data D1 transmitted to the maintenance server 17 and processed by the maintenance server 17 (information based on the request data D1 is stored) is prevented from being transmitted redundantly.
Next, the communication management unit 204 determines whether or not the request data D1 is stored in a predetermined storage area (step SB11). The request data D1 stored in the predetermined storage area at the time of step SB12 is data that is not processed by the maintenance server 17 (information that is based on the request data D1 is not stored).
When the request data D1 is stored in the predetermined storage area (step SB11: YES), the communication management unit 204 moves the processing procedure to step SB4.
If the request data D1 is not stored in the predetermined storage area (step SB11: NO), the communication management unit 204 ends the process.

図4(C)に示すように、命令実行部205は、通信管理部204から入力された処理命令制御データD21を取得する(ステップSC1)。
次いで、命令実行部205は、取得した処理命令制御データD21に基づいて、対応する処理を実行する(ステップSC2)。上述したように、処理命令制御データD21には、命令実行部205が実行すべき処理ごとに、当該処理の実行を指示する制御データが含まれる。命令実行部205は、必要に応じて制御データのコマンド体系の変更等行って、処理を実行する。例えば、処理命令制御データD21に、ファームウェアのアップデートを指示する制御データが含まれた状態の場合、命令実行部205は、当該制御データに基づいてファームウェアのアップデートを実行する。
As shown in FIG. 4C, the command execution unit 205 acquires the processing command control data D21 input from the communication management unit 204 (step SC1).
Next, the instruction execution unit 205 executes a corresponding process based on the acquired process instruction control data D21 (step SC2). As described above, the processing instruction control data D21 includes control data for instructing execution of each process to be executed by the instruction execution unit 205. The instruction execution unit 205 executes processing by changing the command system of the control data as necessary. For example, when the processing instruction control data D21 includes control data for instructing firmware update, the instruction execution unit 205 executes firmware update based on the control data.

次いで、命令実行部205は、処理命令制御データD21に基づいて実行した処理の処理結果を示す処理結果データD3を生成する(ステップSC3)。
次いで、命令実行部205は、生成した処理結果データD3を、ログ収集部203に出力する(ステップSC4)。
Next, the instruction execution unit 205 generates process result data D3 indicating the process result of the process executed based on the process instruction control data D21 (step SC3).
Next, the instruction execution unit 205 outputs the generated processing result data D3 to the log collection unit 203 (step SC4).

図4(A)に示すように、ログ収集部203は、命令実行部205から入力された処理結果データD3を取得し、所定の記憶領域に記憶し(ステップSA7)、処理をステップSA1へ戻す。   As shown in FIG. 4A, the log collection unit 203 acquires the processing result data D3 input from the instruction execution unit 205, stores it in a predetermined storage area (step SA7), and returns the processing to step SA1. .

上述したように、図4(E)のステップSE6において、レスポンス応答部502は、リクエストデータD1をログ情報記憶部503に出力する。   As described above, in step SE6 of FIG. 4E, the response response unit 502 outputs the request data D1 to the log information storage unit 503.

図4(F)に示すように、ログ情報記憶部503は、ログ受信部501から入力されたリクエストデータD1を受信し、取得する(ステップSF1)。
次いで、ログ情報記憶部503は、データベース登録処理を実行する(ステップSF2)。
As illustrated in FIG. 4F, the log information storage unit 503 receives and acquires the request data D1 input from the log reception unit 501 (step SF1).
Next, the log information storage unit 503 executes database registration processing (step SF2).

図10は、データベース登録処理の実行時のログ情報記憶部503の処理の詳細を示すフローチャートである。
図10に示すように、ログ情報記憶部503は、リクエストデータD1に含まれるログデータD11(メインログデータD11m、及び、サブログデータD11s)を取得する(ステップSL1)。
FIG. 10 is a flowchart showing details of the process of the log information storage unit 503 when the database registration process is executed.
As illustrated in FIG. 10, the log information storage unit 503 acquires log data D11 (main log data D11m and sub-log data D11s) included in the request data D1 (step SL1).

次いで、ログ情報記憶部503は、取得したログデータD11に基づいて、第1データベース登録処理を実行する(ステップSL2)。以下、第1データベース登録処理について詳述する。
第1データベース登録処理は、ログデータD11に含まれるステータス情報データに基づくレコードを生成し、第1ステータス情報データベース513に記憶する処理である。
1の監視項目のステータス情報データベースに基づくレコードを生成する場合、ログ情報記憶部503は、以下の処理を実行する。すなわち、ログ情報記憶部503は、対応する店舗の店舗識別情報と、当該1の監視項目に対応する装置(POS端末13又は印刷装置14)の識別情報(POS端末識別情報又は印刷装置識別情報)と、当該1の監視項目のステータス情報データとを対応付けたレコードを生成する。なお、ログ情報記憶部503は、レコードに含まれるステータス情報データについて、第1ステータス情報データベース513のレコードのデータ構造に対応するように形式的な変更を施す。
Next, the log information storage unit 503 executes a first database registration process based on the acquired log data D11 (step SL2). Hereinafter, the first database registration process will be described in detail.
The first database registration process is a process for generating a record based on the status information data included in the log data D11 and storing it in the first status information database 513.
When generating a record based on the status information database of one monitoring item, the log information storage unit 503 executes the following processing. That is, the log information storage unit 503 stores the store identification information of the corresponding store and the identification information (POS terminal identification information or printing device identification information) of the device (POS terminal 13 or printing device 14) corresponding to the one monitoring item. And a record that associates the status information data of the one monitoring item with each other. Note that the log information storage unit 503 performs a formal change on the status information data included in the record so as to correspond to the data structure of the record in the first status information database 513.

図11(A)は、POS端末13の監視項目:RAM使用率のRAM使用率ステータス情報データ(ステータス情報データ)に基づいて生成されるレコードを模式的に示す図である。
例えば、POS端末13の監視項目:RAM使用率に基づくレコードを生成する場合、ログ情報記憶部503は、以下の処理を実行する。すなわち、ログ情報記憶部503は、リクエストデータD1に記述された店舗識別情報と、POS端末13のPOS端末識別情報と、第1ステータス情報データベース513のデータ構造への対応を目的とした形式的な変更が行われたRAM使用率ステータス情報データと、を対応付けたレコードを生成する。この結果、監視項目:RAM使用率に基づくレコードとして、図11(A)に示すレコードが生成され、第1ステータス情報データベース513に記憶される。
FIG. 11A is a diagram schematically showing a record generated based on the monitoring item of the POS terminal 13: RAM usage rate status information data (status information data) of the RAM usage rate.
For example, when generating a record based on the monitoring item: RAM usage rate of the POS terminal 13, the log information storage unit 503 executes the following processing. That is, the log information storage unit 503 has a formal format for the purpose of supporting the store identification information described in the request data D1, the POS terminal identification information of the POS terminal 13, and the data structure of the first status information database 513. A record in which the changed RAM usage status information data is associated is generated. As a result, a record shown in FIG. 11A is generated as a record based on the monitoring item: RAM usage rate and stored in the first status information database 513.

ステップSL2の第1データベース登録処理において、POS端末13は、上述した方法で、ログデータD11(メインログデータD11m及びサブログデータD11s)に基づいて、POS端末13の各監視項目のステータス情報データ、及び、印刷装置14の各監視項目のステータス情報に基づくレコードを生成し、第1ステータス情報データベース513に記憶する。   In the first database registration process of step SL2, the POS terminal 13 uses the above-described method, based on the log data D11 (main log data D11m and sub log data D11s), status information data of each monitoring item of the POS terminal 13, A record based on the status information of each monitoring item of the printing apparatus 14 is generated and stored in the first status information database 513.

第1データベース登録処理の実行後、ログ情報記憶部503は、第2データベース登録処理を実行する(ステップSL3)。以下、第2データベース登録処理について詳述する。
第2データベース登録処理は、ログデータD11に含まれるステータス情報データに基づくレコードを生成し、第2ステータス情報データベース514に記憶する処理である。特に、第2データベース登録処理では、ログ情報記憶部503は、所定の場合に、後述する状態分類情報が含まれたレコードを生成する。
After execution of the first database registration process, the log information storage unit 503 executes the second database registration process (step SL3). Hereinafter, the second database registration process will be described in detail.
The second database registration process is a process for generating a record based on the status information data included in the log data D11 and storing it in the second status information database 514. In particular, in the second database registration process, the log information storage unit 503 generates a record including state classification information described later in a predetermined case.

図12は、第2データベース登録処理において、1つの監視項目のステータス情報データに基づいて1件のレコードを生成するときのログ情報記憶部503の処理の詳細を示すフローチャートである。
図12に示すように、ログ情報記憶部503は、ログデータD11から、ステータス情報データを取得する(ステップSM1)。
次いで、ログ情報記憶部503は、取得したステータス情報データに、ステータス識別情報が含まれた状態か否かを判別する(ステップSM2)。
FIG. 12 is a flowchart showing details of the process of the log information storage unit 503 when one record is generated based on the status information data of one monitoring item in the second database registration process.
As shown in FIG. 12, the log information storage unit 503 acquires status information data from the log data D11 (step SM1).
Next, the log information storage unit 503 determines whether or not status identification information is included in the acquired status information data (step SM2).

ステータス情報データにステータス識別情報が含まれた状態ではない場合(ステップSM2:NO)、ログ情報記憶部503は、第2データベース登録処理を終了する。この場合、ステップSM1で取得したステータス情報データに基づくレコードの生成、第2ステータス情報データベース514への記憶は行われない。なお、ステータス情報データが、監視項目の状態を示すデータではない場合や、ステータス識別情報が割り振られた状態にない場合等に、ステータス情報データにステータス識別情報が含まれない。   If the status information data is not in a state where the status identification information is included (step SM2: NO), the log information storage unit 503 ends the second database registration process. In this case, the generation of the record based on the status information data acquired in step SM1 and the storage in the second status information database 514 are not performed. Note that the status information does not include the status identification information when the status information data is not data indicating the status of the monitoring item or when the status identification information is not allocated.

ステータス情報データにステータス識別情報が含まれた状態の場合(ステップSM2:YES)、ログ情報記憶部503は、ステータス識別情報の値に基づいて、ステータス情報データが、監視項目の状態がエラー状態であることを示すデータであるか否かを判別する(ステップSM3)。
詳述すると、本実施形態では、ステータス情報データのうち、監視項目:通信エラーの通信エラーステータス情報データ(ステータス情報データ)、及び、監視項目:プリンターエラーのプリンターエラーステータス情報データ(ステータス情報データ)が、「監視項目がエラー状態であることを示すデータ」である。上述したように、これらステータス情報データは、監視項目の状態がエラー状態となった場合に生成されるデータだからである。これらステータス情報データに対応する監視項目は、状態がエラー状態であることが確定しており、後述するログ情報記憶部503による状態の分類を行う必要がない。
When the status information includes the status identification information (step SM2: YES), the log information storage unit 503 determines that the status information data is in the error status based on the status identification information value. It is determined whether or not the data is present (step SM3).
More specifically, in the present embodiment, in the status information data, monitoring item: communication error status information data (status information data) for communication error and monitoring item: printer error status information data (status information data) for printer error Is “data indicating that the monitoring item is in an error state”. As described above, these status information data are data generated when the status of the monitoring item becomes an error state. The monitoring items corresponding to these status information data are determined to be in an error state, and there is no need to classify the state by the log information storage unit 503 described later.

ステップSM3において、ログ情報記憶部503は、ステータス識別情報の値に基づいて監視項目を識別し、監視項目が監視項目:通信エラー又は監視項目:プリンターエラーの場合、ステータス情報データが、監視項目の状態がエラー状態であることを示すデータであると判別する。   In step SM3, the log information storage unit 503 identifies the monitoring item based on the value of the status identification information. If the monitoring item is a monitoring item: communication error or a monitoring item: printer error, the status information data indicates the monitoring item. It is determined that the data indicates that the state is an error state.

ステータス情報データが、監視項目の状態がエラー状態であることを示すデータである場合(ステップSM3:YES)、ログ情報記憶部503は、以下のレコードを生成して、第2ステータス情報データベース514に記憶し(ステップSM4)、第2データベース登録処理を終了する。すなわち、ログ情報記憶部503は、対応する店舗の店舗識別情報と、当該1の監視項目に対応する装置(POS端末13又は印刷装置14)の識別情報(POS端末識別情報又は印刷装置識別情報)と、当該1の監視項目のステータス情報データと、エラー状態を示す分類情報とを対応付けたレコードを生成する。なお、ログ情報記憶部503は、レコードに含まれるステータス情報データについて、第2ステータス情報データベース514のレコードのデータ構造に対応するように形式的な変更を施す。
分類情報とは、監視項目の状態の分類を示す情報である。本実施形態では、監視項目の状態は、エラー状態(障害が発生した状態)、エラー警告状態(障害は発生していないものの、対応する処置を行わないと障害が発生する蓋然性が高い状態)、エラー予兆状態(障害は発生していないものの継続的な使用によって障害が発生する可能性がある状態)、及び、通常状態の4つの状態に分類される。分類情報とは、上述した4つの状態の何れかを示す情報である。
When the status information data is data indicating that the state of the monitoring item is an error state (step SM3: YES), the log information storage unit 503 generates the following record and stores it in the second status information database 514. Store (step SM4) and end the second database registration process. That is, the log information storage unit 503 stores the store identification information of the corresponding store and the identification information (POS terminal identification information or printing device identification information) of the device (POS terminal 13 or printing device 14) corresponding to the one monitoring item. And a record in which status information data of the one monitoring item is associated with classification information indicating an error state. Note that the log information storage unit 503 performs a formal change on the status information data included in the record so as to correspond to the data structure of the record in the second status information database 514.
The classification information is information indicating the classification of the status of the monitoring item. In this embodiment, the status of the monitoring item is an error state (a state in which a failure has occurred), an error warning state (a state in which no failure has occurred, but there is a high probability that a failure will occur if no corresponding action is taken), It is classified into four states: an error predicting state (a state in which no failure has occurred but a failure may occur due to continuous use) and a normal state. The classification information is information indicating any one of the four states described above.

図11(B)は、POS端末13の監視項目:通信エラーの通信エラーステータス情報データ(ステータス情報データ)に基づいて生成されるレコードを模式的に示す図である。
例えば、POS端末13の監視項目:通信エラーに基づくレコードを生成する場合、ログ情報記憶部503は、以下の処理を実行する。すなわち、ログ情報記憶部503は、リクエストデータD1に記述された店舗識別情報と、POS端末13のPOS端末識別情報と、第2ステータス情報データベース514のデータ構造への対応を目的とした形式的な変更が行われた通信エラーステータス情報データと、エラー状態であることを示す分類情報と、を対応付けたレコードを生成する。この結果、監視項目:通信エラーに基づくレコードとして、図11(B)に示すレコードが生成され、第2ステータス情報データベース514に記憶される。
FIG. 11B is a diagram schematically showing a record generated based on the monitoring item of the POS terminal 13: communication error status information data (status information data) of a communication error.
For example, when the record based on the monitoring item: communication error of the POS terminal 13 is generated, the log information storage unit 503 executes the following processing. That is, the log information storage unit 503 has a formal format for the purpose of supporting the store identification information described in the request data D1, the POS terminal identification information of the POS terminal 13, and the data structure of the second status information database 514. A record is generated in which the communication error status information data that has been changed is associated with the classification information that indicates an error state. As a result, a record shown in FIG. 11B is generated as a record based on the monitoring item: communication error, and stored in the second status information database 514.

ステップSM3において、ステータス情報データが、監視項目の状態がエラー状態であることを示すデータではないと判別した場合(ステップSM3:NO)、ログ情報記憶部503は、ステータス情報データが、監視項目の状態を数値によって表すデータと、監視項目の状態を文字列によって表すデータとのうちいずれであるかを判別する(ステップSM5)。
本実施形態では、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、監視項目:データ転送速度、監視項目:SSD使用実績値、監視項目:印刷ヘッド形成ライン累計数、及び、監視項目:カッター使用累計数のステータス情報データが、監視項目の状態を数値によって表すデータである。
特に、監視項目:SSD使用実績値のステータス情報データについては、SSD寿命情報が示すSSDの寿命が、数値によって表される監視項目の状態に相当する。また、監視項目:印刷ヘッド形成ライン累計数のステータス情報データについては、印刷ヘッド残使用日数情報が示す印刷ヘッド残使用日数が、数値によって表される監視項目の状態に相当する。また、監視項目:カッター使用累計数のステータス情報データについては、カッター残使用日数情報が示すカッター残使用日数が、数値によって表される監視項目の状態に相当する。
また、本実施形態では、監視項目:動作プロセス、及び、監視項目:接続デバイスのステータス情報データが、監視項目の状態を文字列によって表すデータである。
In step SM3, when it is determined that the status information data is not data indicating that the status of the monitoring item is an error state (step SM3: NO), the log information storage unit 503 displays the status information data of the monitoring item. It is determined whether the data represents the state by a numerical value or the data that represents the state of the monitoring item by a character string (step SM5).
In this embodiment, monitoring item: RAM usage rate, monitoring item: CPU usage rate, monitoring item: CPU temperature, monitoring item: data transfer rate, monitoring item: SSD usage record, monitoring item: print head formation line cumulative number, And the monitoring item: the status information data of the cumulative number of cutters used is data representing the state of the monitoring item by a numerical value.
In particular, regarding the status information data of the monitoring item: SSD usage record value, the SSD life indicated by the SSD life information corresponds to the state of the monitoring item represented by a numerical value. In addition, regarding the status information data of the monitoring item: cumulative number of print head formation lines, the remaining print head use days indicated by the print head remaining use days information corresponds to the state of the monitor item represented by a numerical value. In addition, regarding the status information data of the monitoring item: cumulative number of cutters used, the remaining cutter usage days indicated by the remaining cutter usage days information corresponds to the state of the monitoring item represented by a numerical value.
In this embodiment, the status information data of the monitoring item: operation process and the monitoring item: connected device is data representing the status of the monitoring item by a character string.

ステップSM5において、ログ情報記憶部503は、ステータス識別情報の値に基づいて監視項目を識別し、監視項目が、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、監視項目:データ転送速度、監視項目:SSD使用実績値、監視項目:印刷ヘッド形成ライン累計数、又は、監視項目:カッター使用累計数の場合、ステータス情報データが、監視項目の状態を数値によって表すデータであると判別する。
また、ステップSM5において、ログ情報記憶部503は、ステータス情報の値に基づいて監視項目を識別し、監視項目が、監視項目:動作プロセス、又は、監視項目:接続デバイスの場合、ステータス情報データが、監視項目の状態を文字列によって表すデータであると判別する。
In step SM5, the log information storage unit 503 identifies the monitoring item based on the value of the status identification information, and the monitoring item is monitoring item: RAM usage rate, monitoring item: CPU usage rate, monitoring item: CPU temperature, monitoring. In the case of item: data transfer speed, monitoring item: SSD usage record value, monitoring item: print head formation line cumulative number, or monitoring item: cutter usage cumulative number, the status information data represents the status of the monitoring item as a numerical value. It is determined that
In step SM5, the log information storage unit 503 identifies the monitoring item based on the value of the status information. If the monitoring item is monitoring item: operation process or monitoring item: connected device, the status information data is stored. , It is determined that the data represents the status of the monitoring item by a character string.

ステータス情報データが、監視項目の状態を数値によって表すデータの場合(ステップSM5:「数値」)、ログ情報記憶部503は、監視項目の状態を表す数値と所定の閾値との関係に基づいて監視項目の状態の分類を判別する(ステップSM6)。
詳述すると、監視項目ごとに、エラー状態、エラー警告状態、エラー予兆状態、及び、通常状態のそれぞれについて、各状態に分類すると判別する条件が予め定められる。条件は、監視項目の状態を示す数値と、所定の閾値とが所定の関係となった場合に成立する条件とされる。
When the status information data is data representing the state of the monitoring item by a numerical value (step SM5: “numerical value”), the log information storage unit 503 monitors based on the relationship between the numerical value representing the state of the monitoring item and a predetermined threshold value. The classification of the item state is determined (step SM6).
Specifically, for each monitoring item, a condition for determining that each of the error state, the error warning state, the error predictor state, and the normal state is classified into each state is determined in advance. The condition is a condition that is established when a numerical value indicating the state of the monitoring item and a predetermined threshold value have a predetermined relationship.

例えば、エラー状態と判別する条件について、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、及び、監視項目:データ転送速度の場合、監視項目ごとに予め設定された所定の閾値を超えたことが条件とされる。また例えば、エラー状態と判別する条件について、監視項目:SSD使用実績値の場合、SSDの寿命が、予め定められた閾値よりも短いことが条件とされる。また例えば、エラー状態と判別する条件について、監視項目:印刷ヘッド形成ライン累計数、又は、監視項目:カッター使用累計数の場合、印刷ヘッド211又はカッター212の使用可能な残りの日数が、所定の閾値よりも短いことが条件とされる。
なお、所定の監視項目について、条件は、上述したエラー警告/予兆通知データ生成処理で使用する条件と同一でもよい。
For example, regarding the condition for determining an error state, in the case of monitoring item: RAM usage rate, monitoring item: CPU usage rate, monitoring item: CPU temperature, and monitoring item: data transfer rate, a predetermined value set in advance for each monitoring item It is a condition that the threshold value is exceeded. Further, for example, regarding the condition for determining an error state, in the case of the monitoring item: SSD usage record value, the condition is that the life of the SSD is shorter than a predetermined threshold. Further, for example, regarding the condition for determining an error state, in the case of monitoring item: cumulative number of print head formation lines or monitoring item: cumulative number of cutters used, the remaining number of days that the print head 211 or the cutter 212 can be used is a predetermined number. The condition is that it is shorter than the threshold value.
Note that the condition for a predetermined monitoring item may be the same as the condition used in the error warning / predictive notification data generation process described above.

条件は、保守担当者、及び、企業の担当者等により、所定の手段によって変更可能である。   The conditions can be changed by a predetermined means by a maintenance person, a person in charge of the company, or the like.

次いで、ログ情報記憶部503は、対応する店舗の店舗識別情報と、ステップSM1で取得したステータス情報データの監視項目に対応する装置(POS端末13又は印刷装置14)の識別情報(POS端末識別情報又は印刷装置識別情報)と、ステップSM1で取得したステータス情報データと、ステップSM6で判別した分類を示す分類情報とを対応付けたレコードを生成し、第2ステータス情報データベース514に記憶する(ステップSM7)。その後、ログ情報記憶部503は、第2データベース登録処理を終了する。なお、ログ情報記憶部503は、レコードに含まれるステータス情報データについて、第2ステータス情報データベース514のレコードのデータ構造に対応するように形式的な変更を施す。   Next, the log information storage unit 503 stores the store identification information of the corresponding store and the identification information (POS terminal identification information) of the device (POS terminal 13 or printing device 14) corresponding to the monitoring item of the status information data acquired in step SM1. Alternatively, a record in which the status information data acquired in step SM1 and the classification information indicating the classification determined in step SM6 are associated with each other is generated and stored in the second status information database 514 (step SM7). ). Thereafter, the log information storage unit 503 ends the second database registration process. Note that the log information storage unit 503 performs a formal change on the status information data included in the record so as to correspond to the data structure of the record in the second status information database 514.

図11(C)は、POS端末13の監視項目:RAM使用率のRAM使用率ステータス情報データ(ステータス情報データ)に基づいてステップSM6で生成されるレコードを模式的に示す図である。
例えば、POS端末13の監視項目:RAM使用率に基づくレコードを生成する場合、ログ情報記憶部503は、以下の処理を実行する。すなわち、ログ情報記憶部503は、リクエストデータD1に記述された店舗識別情報と、POS端末13のPOS端末識別情報と、第2ステータス情報データベース514のデータ構造への対応を目的とした形式的な変更が行われたRAM使用率ステータス情報データと、ステップSM6で判別した分類を示す分類情報と、を対応付けたレコードを生成する。この結果、監視項目:RAM使用率に基づくレコードとして、図11(C)に示すレコードが生成され、第2ステータス情報データベース514に記憶される。
図11(A)に示すレコードと、図11(C)に示すレコードとの比較によって明らかなとおり、第1ステータス情報データベース513に記憶されるレコードには分類情報が付加されないが、第2ステータス情報データベース514に記憶されるレコードには分類情報が付加される。
FIG. 11C is a diagram schematically showing a record generated in step SM6 based on the monitoring item of the POS terminal 13: RAM usage status information data (status information data) of the RAM usage rate.
For example, when generating a record based on the monitoring item: RAM usage rate of the POS terminal 13, the log information storage unit 503 executes the following processing. That is, the log information storage unit 503 has a formal format for the purpose of supporting the store identification information described in the request data D1, the POS terminal identification information of the POS terminal 13, and the data structure of the second status information database 514. A record is generated in which the changed RAM usage status information data is associated with the classification information indicating the classification determined in step SM6. As a result, a record shown in FIG. 11C is generated as a record based on the monitoring item: RAM usage rate and stored in the second status information database 514.
As is clear from the comparison between the record shown in FIG. 11A and the record shown in FIG. 11C, the classification information is not added to the record stored in the first status information database 513, but the second status information Classification information is added to the record stored in the database 514.

一方、ステータス情報データが、監視項目の状態を文字列によって表すデータの場合(ステップSM5:「文字列」)、ログ情報記憶部503は、監視項目の状態を表す文字列の内容に基づいて監視項目の状態の分類を判別する(ステップSM8)。
ステーター情報データの監視項目が監視項目:動作プロセスの場合におけるステップSM8の処理について詳述すると、POS端末13ごとに、動作状態である必要があるプロセス(以下、「必要プロセス」という。)と、動作状態であってはならないプロセス(以下、「不必要プロセス」という。)が事前に定められ、POS端末13のPOS端末識別情報又は印刷装置14の印刷装置識別情報と対応付けて登録される。ステップSM8において、ログ情報記憶部503は、文字列によって表された監視項目の状態について、文字列検索等の技術を利用して、必要プロセス、及び、不必要プロセスのそれぞれについて動作状態か否かを判別する。そして、ログ情報記憶部503は、必要プロセスが動作状態であり、不必要プロセスが動作状態ではない場合、監視項目の状態が、通常状態であると判別する。一方、ログ情報記憶部503は、必要プロセスに動作状態でないものがあり、又は、不必要プロセスに動作状態であるものがある場合、監視項目の状態が、エラー状態であると判別する。
必要プロセス、及び、不必要プロセスは、保守担当者、及び、企業の担当者等により、所定の手段によって変更可能である。
On the other hand, when the status information data is data representing the state of the monitoring item by a character string (step SM5: “character string”), the log information storage unit 503 monitors based on the content of the character string representing the state of the monitoring item. The classification of the item state is discriminated (step SM8).
The processing in step SM8 when the monitoring item of the status information data is the monitoring item: an operation process will be described in detail. For each POS terminal 13, a process that needs to be in an operation state (hereinafter referred to as “necessary process”). A process that should not be in an operating state (hereinafter referred to as “unnecessary process”) is determined in advance and registered in association with the POS terminal identification information of the POS terminal 13 or the printing apparatus identification information of the printing apparatus 14. In step SM8, the log information storage unit 503 determines whether or not the status of the monitoring item represented by the character string is an operating state for each of the necessary process and the unnecessary process using a technique such as character string search. Is determined. The log information storage unit 503 determines that the state of the monitoring item is the normal state when the necessary process is in the operating state and the unnecessary process is not in the operating state. On the other hand, the log information storage unit 503 determines that the state of the monitoring item is an error state when there is a necessary process that is not in an operating state or there is an unnecessary process that is in an operating state.
Necessary processes and unnecessary processes can be changed by predetermined means by a maintenance person, a person in charge of a company, or the like.

ステーター情報データの監視項目が監視項目:接続デバイスの場合におけるステップSM8の処理について詳述すると、POS端末13ごとに、接続される必要があるプロセス(以下、「必要デバイス」という。)と、接続されてはならないデバイス(以下、「不必要デバイス」という。)が事前に定められ、POS端末13のPOS端末識別情報又は印刷装置14の印刷装置識別情報と対応付けて登録される。ステップSM8において、ログ情報記憶部503は、文字列によって表された監視項目の状態について、文字列検索等の技術を利用して、必要デバイス、及び、不必要デバイスのそれぞれについて接続された状態か否かを判別する。そして、ログ情報記憶部503は、必要デバイスが接続された状態であり、不必要デバイスが接続された状態ではない場合、監視項目の状態が、通常状態であると判別する。一方、ログ情報記憶部503は、必要デバイスに接続された状態でないものがあり、又は、不必要デバイスに接続された状態であるものがある場合、監視項目の状態が、エラー状態であると判別する。
必要デバイス、及び、不必要デバイスは、保守担当者、及び、企業の担当者等により、所定の手段によって変更可能である。
The processing in step SM8 when the monitoring item of the status information data is the monitoring item: connected device will be described in detail. For each POS terminal 13, a process that needs to be connected (hereinafter referred to as “necessary device”), connection, and the like. Devices that should not be performed (hereinafter referred to as “unnecessary devices”) are determined in advance and registered in association with the POS terminal identification information of the POS terminal 13 or the printing device identification information of the printing device 14. In step SM8, the log information storage unit 503 determines whether the status of the monitoring item represented by the character string is connected to each of the necessary device and the unnecessary device using a technique such as character string search. Determine whether or not. The log information storage unit 503 determines that the state of the monitoring item is the normal state when the necessary device is connected and the unnecessary device is not connected. On the other hand, the log information storage unit 503 determines that the state of the monitoring item is an error state when there is something that is not connected to a necessary device or there is something that is connected to an unnecessary device. To do.
Necessary devices and unnecessary devices can be changed by predetermined means by a maintenance person, a person in charge of a company, or the like.

次いで、ログ情報記憶部503は、対応する店舗の店舗識別情報と、ステップSM1で取得したステータス情報データの監視項目に対応する装置(POS端末13又は印刷装置14)の識別情報(POS端末識別情報又は印刷装置識別情報)と、ステップSM1で取得したステータス情報データと、ステップSM8で判別した分類を示す分類情報とを対応付けたレコードを生成し、第2ステータス情報データベース514に記憶する(ステップSM9)。その後、ログ情報記憶部503は、第2データベース登録処理を終了する。なお、ログ情報記憶部503は、レコードに含まれるステータス情報データについて、第2ステータス情報データベース514のレコードのデータ構造に対応するように形式的な加工を施す。   Next, the log information storage unit 503 stores the store identification information of the corresponding store and the identification information (POS terminal identification information) of the device (POS terminal 13 or printing device 14) corresponding to the monitoring item of the status information data acquired in step SM1. Alternatively, a record in which the status information data acquired in step SM1 and the classification information indicating the classification determined in step SM8 are associated with each other is generated and stored in the second status information database 514 (step SM9). ). Thereafter, the log information storage unit 503 ends the second database registration process. Note that the log information storage unit 503 performs formal processing on the status information data included in the record so as to correspond to the data structure of the record in the second status information database 514.

図11(D)は、POS端末13の監視項目:動作プロセスの動作プロセスステータス情報データ(ステータス情報データ)に基づいてステップSM9で生成されるレコードを模式的に示す図である。
例えば、POS端末13の監視項目:動作プロセスに基づくレコードを生成する場合、ログ情報記憶部503は、以下の処理を実行する。すなわち、ログ情報記憶部503は、リクエストデータD1に記述された店舗識別情報と、POS端末13のPOS端末識別情報と、第2ステータス情報データベース514のデータ構造への対応を目的とした形式的な加工が行われた動作プロセスステータス情報データと、ステップSM8で判別した分類を示す分類情報と、を対応付けたレコードを生成する。この結果、監視項目:動作プロセスに基づくレコードとして、図11(D)に示すレコードが生成され、第2ステータス情報データベース514に記憶される。
FIG. 11D is a diagram schematically showing a record generated in step SM9 based on the monitoring item of the POS terminal 13: operation process status information data (status information data) of the operation process.
For example, when generating a record based on the monitoring item: operation process of the POS terminal 13, the log information storage unit 503 executes the following processing. That is, the log information storage unit 503 has a formal format for the purpose of supporting the store identification information described in the request data D1, the POS terminal identification information of the POS terminal 13, and the data structure of the second status information database 514. A record is generated in which the operation process status information data subjected to the processing and the classification information indicating the classification determined in step SM8 are associated with each other. As a result, a record shown in FIG. 11D is generated as a record based on the monitoring item: operation process, and stored in the second status information database 514.

第2データベース登録処理において、ログ情報記憶部503は、リクエストデータD1に記録されたステータス情報データのそれぞれについて、図12のフローチャートの処理を実行し、レコードの生成、第2ステータス情報データベース514への記憶を実行する。   In the second database registration process, the log information storage unit 503 executes the process of the flowchart of FIG. 12 for each of the status information data recorded in the request data D1 to generate a record and store it in the second status information database 514. Execute memory.

以上のように、本実施形態では、ログ情報記憶部503は、図4のステップSF2のデータベース登録処理において、ステータス情報データに基づいて第1ステータス情報データベース513にレコードを記憶する場合は、分類情報を付加しない。一方、ログ情報記憶部503は、ステータス情報データに基づいて第2ステータス情報データベース514にレコードを記憶する場合は、所定の場合に、ステータス情報データの監視項目の状態の分類を判別し、分類を示す分類情報を付加する。
このような処理が行われることにより、以下の効果を奏する。
すなわち、第1ステータス情報データベース513の各レコードには、生成元となったステータス情報データの内容と同一の内容のデータが含まれる。従って、第1ステータス情報データベース513の各レコードに基づいて、第2ステータス情報データベース514のレコードの生成に使用した条件と異なる条件を使用した監視項目の状態の分類や、その他の監視項目の状態の分析が可能となる。
また、第2ステータス情報データベース514の所定のレコードには、所定の方法で判別された分類を示す分類情報が付加される。従って、第2ステータス情報データベース514の所定のレコードに基づいて、対応する監視項目の状態の分類に応じた処理の実行や、監視項目の状態の分類の報知等を即時に実行可能となる。
As described above, in the present embodiment, the log information storage unit 503 uses the classification information when storing records in the first status information database 513 based on the status information data in the database registration process in step SF2 of FIG. Is not added. On the other hand, when the log information storage unit 503 stores the record in the second status information database 514 based on the status information data, the log information storage unit 503 determines the classification of the status of the monitoring item of the status information data in a predetermined case, and classifies the classification. The classification information shown is added.
By performing such processing, the following effects are obtained.
That is, each record in the first status information database 513 includes data having the same content as the content of the status information data that is the generation source. Therefore, based on the records in the first status information database 513, the status classification of the monitoring items using conditions different from the conditions used for generating the records in the second status information database 514, and the statuses of other monitoring items Analysis becomes possible.
In addition, classification information indicating classification determined by a predetermined method is added to a predetermined record in the second status information database 514. Therefore, based on a predetermined record in the second status information database 514, it is possible to immediately execute processing according to the status category of the corresponding monitoring item, notification of the status classification of the monitoring item, and the like.

なお、分類情報が付加されて第2ステータス情報データベース514に格納される情報は、「ステータス加工情報」に相当する。   The information added with the classification information and stored in the second status information database 514 corresponds to “status processing information”.

以上、メンテナンスサーバー17によりPOS端末13及び印刷装置14の状態を管理するときの各装置の動作について説明した。以上の説明のとおり、POS端末13は間隔をあけてログデータD11を生成し、ログデータD11を含むリクエストデータD1をリクエストとして送信する。メンテナンスサーバー17は受信したリクエストデータD1に基づいて、第1ステータス情報データベース513及び第2ステータス情報データベース514にレコードを生成して監視項目の状態(POS端末13及び印刷装置14の状態)を管理する。さらに、メンテナンスサーバー17は、レスポンスとしてレスポンスデータD2をPOS端末13に送信し、POS端末13に必要な処理を実行させる。各装置がこのような処理を行うため、メンテナンスサーバー17によりPOS端末13及び印刷装置14の状態を、継続して、効率よく監視することができる。   The operation of each device when the status of the POS terminal 13 and the printing device 14 is managed by the maintenance server 17 has been described above. As described above, the POS terminal 13 generates the log data D11 at intervals, and transmits the request data D1 including the log data D11 as a request. The maintenance server 17 generates records in the first status information database 513 and the second status information database 514 based on the received request data D1, and manages the status of the monitoring items (the status of the POS terminal 13 and the printing device 14). . Furthermore, the maintenance server 17 transmits the response data D2 as a response to the POS terminal 13, and causes the POS terminal 13 to execute necessary processing. Since each apparatus performs such processing, the maintenance server 17 can continuously and efficiently monitor the states of the POS terminal 13 and the printing apparatus 14.

また、ログ収集部203、通信管理部204、及び、命令実行部205の処理について説明した。
そして、これら機能ブロックは、各機能ブロックに対応するプログラム(各機能ブロックの機能を実現するプログラム)に、プラグインを追加することにより、機能を追加可能に構成される。このような構成のため、ログ収集部203、通信管理部204、及び、命令実行部205のそれぞれについて、柔軟に簡易な手段で、必要に応じて機能を追加することができる。
In addition, the processing of the log collection unit 203, the communication management unit 204, and the instruction execution unit 205 has been described.
These functional blocks are configured such that functions can be added by adding plug-ins to programs corresponding to the functional blocks (programs that realize the functions of the functional blocks). With such a configuration, functions can be added as necessary to each of the log collection unit 203, the communication management unit 204, and the instruction execution unit 205 with a flexible and simple means.

次に、メンテナンスサーバー17が備えるログ情報表示部504について説明する。
ログ情報表示部504は、保守担当者(権限を有する他の者でもよい。)に対して、第2ステータス情報データベース514に基づいて、指定された装置(POS端末13又は印刷装置14)の監視項目の状態に関する情報を報知する。
特定のPOS端末13又は特定の印刷装置14に関する監視項目の状態に関する情報を取得することを望む保守担当者は、ウェブブラウザーがインストールされた端末のウェブブラウザーを立ち上げ、ウェブブラウザーに、メンテナンスサーバー17の所定のURLにアクセスさせる。例えば、保守担当者は、店舗の担当者から、電話やメール等で、特定のPOS端末13又は特定の印刷装置14の状態が通常の状態ではない旨の連絡を受けた場合に、上記の作業を行う。
ログ情報表示部504は、当該所定のURLへのアクセスがあった場合、必要な認証を行った後、所定のHTTPファイルを端末に送信して、POS端末識別情報又は印刷装置識別情報の入力が可能なユーザーインターフェース(ウェブページ)を、当該端末に表示させる。保守担当者は、当該ユーザーインターフェースに、当該特定のPOS端末13のPOS端末識別情報、又は、当該特定の印刷装置14の印刷装置識別情報を入力する。ログ情報表示部504は、当該ユーザーインターフェースに入力されたPOS端末識別情報又は印刷装置識別情報を取得する。
Next, the log information display unit 504 provided in the maintenance server 17 will be described.
The log information display unit 504 monitors the designated device (POS terminal 13 or printing device 14) based on the second status information database 514 with respect to a maintenance person (may be another person having authority). Information on the state of the item is notified.
A maintenance person who wants to acquire information on the status of the monitoring item related to the specific POS terminal 13 or the specific printing apparatus 14 starts up the web browser of the terminal in which the web browser is installed, and the maintenance server 17 The predetermined URL is accessed. For example, when the person in charge of maintenance receives a notification from the person in charge of the store that the state of the specific POS terminal 13 or the specific printing device 14 is not a normal state by telephone or e-mail, the above work is performed. I do.
When there is an access to the predetermined URL, the log information display unit 504 transmits a predetermined HTTP file to the terminal after performing necessary authentication, and inputs the POS terminal identification information or the printing apparatus identification information. A possible user interface (web page) is displayed on the terminal. The maintenance staff inputs the POS terminal identification information of the specific POS terminal 13 or the printing apparatus identification information of the specific printing apparatus 14 into the user interface. The log information display unit 504 acquires the POS terminal identification information or the printing apparatus identification information input to the user interface.

次いで、ログ情報表示部504は、第2ステータス情報データベース514を参照し、取得したPOS端末識別情報又は印刷装置識別情報に基づいて、対応するPOS端末13又は印刷装置14の各監視項目のステータス情報データに基づくレコードのうち必要なもの(少なくとも、直近で記憶されたレコードを含む。)を取得する。
次いで、ログ情報表示部504は、所定のHTTPファイルを端末に送信して、監視項目に関する以下の情報が表示されたユーザーインターフェース(ウェブページ、画面)を端末に表示させる。ログ情報表示部504は、監視項目:通信エラー、及び、監視項目:プリンターエラーについて、ユーザーインターフェースに、通信エラー又はプリンターエラーが発生している状態の場合に、その旨を示す情報が表示される。保守担当者は、ユーザーインターフェースを参照することにより、通信エラー又はプリンターエラーが発生した状態の場合に、そのことを認識できる。
また、ログ情報表示部504は、監視項目:RAM使用率、監視項目:CPU使用率、監視項目:CPU温度、監視項目:データ転送速度、監視項目:SSD使用実績値、監視項目:印刷ヘッド形成ライン累計数、及び、監視項目:カッター使用累計数について、ユーザーインターフェースに、各監視項目の状態の分類(エラー状態、エラー警告状態、エラー予兆状態、又は、通常状態)を示す情報を表示する。また、ログ情報表示部504は、監視項目:動作プロセス、及び、監視項目:接続デバイスについては、ユーザーインターフェースに、各監視項目の状態の分類(エラー状態、又は、通常状態)を示す情報を表示する。
ログ情報表示部504は、対応するレコードの分類情報に基づいて、これら監視項目の状態の分類を示す情報を表示する。
保守担当者は、ユーザーインターフェースを参照することにより、これら監視項目の状態の分類を認識でき、当該認識に基づいて、対応する処理を実行できる。
Next, the log information display unit 504 refers to the second status information database 514 and based on the acquired POS terminal identification information or printing apparatus identification information, status information of each monitoring item of the corresponding POS terminal 13 or printing apparatus 14 Get the necessary records (including at least the most recently stored records) based on the data.
Next, the log information display unit 504 transmits a predetermined HTTP file to the terminal and causes the terminal to display a user interface (web page, screen) on which the following information regarding the monitoring item is displayed. The log information display unit 504 displays information indicating a monitoring item: communication error and a monitoring item: printer error when a communication error or a printer error has occurred on the user interface. . The maintenance staff can recognize that a communication error or printer error has occurred by referring to the user interface.
In addition, the log information display unit 504 includes a monitoring item: RAM usage rate, a monitoring item: CPU usage rate, a monitoring item: CPU temperature, a monitoring item: data transfer speed, a monitoring item: SSD usage record value, a monitoring item: print head formation. Information indicating the status classification (error status, error warning status, error predictive status, or normal status) of each monitoring item is displayed on the user interface for the cumulative number of lines and monitoring items: cumulative number of cutters used. Further, the log information display unit 504 displays information indicating the status classification (error status or normal status) of each monitoring item on the user interface for the monitoring item: operation process and monitoring item: connected device. To do.
The log information display unit 504 displays information indicating the status classification of these monitoring items based on the corresponding record classification information.
The maintenance staff can recognize the status classification of these monitoring items by referring to the user interface, and can execute corresponding processing based on the recognition.

以上のように、保守担当者は、ログ情報表示部504の機能により、任意のタイミングで、任意のPOS端末13及び印刷装置14の監視項目の状態を認識できる。   As described above, the maintenance staff can recognize the status of the monitoring items of any POS terminal 13 and printing device 14 at any timing by the function of the log information display unit 504.

次に、メンテナンスサーバー17が備える監視部505について説明する。
監視部505は、店舗システム11に設けられたPOS端末13について、リクエストデータD1(リクエスト)の送信が正常に行われた状態か否かを監視する機能ブロックである。
Next, the monitoring unit 505 provided in the maintenance server 17 will be described.
The monitoring unit 505 is a functional block that monitors whether or not the transmission of the request data D1 (request) is normally performed for the POS terminal 13 provided in the store system 11.

ここで、電源のオンに応じて、POS端末13のPOS端末識別情報を少なくとも有する所定の情報を含むデータ(以下、「オン通知データ」という。)をメンテナンスサーバー17に送信する機能を有する。当該データは、電源がオンされたことを示すデータに相当する。
また、POS端末13は、電源がオフされた場合、電源のオフに応じたシャットダウン処理を実行する前に、POS端末13のPOS端末識別情報を含み、電源がオフされたことを示すデータ(以下、「オフ通知データ」という。)をメンテナンスサーバー17に送信する機能を有する。
本実施形態では、監視部505は、POS端末13の上記の処理を利用して、効率的に、POS端末13によるリクエストデータD1の送信が正常に行われた状態か否かを監視する。
以下の説明では、監視部505によるPOS端末13によるリクエストデータD1の送信が正常に行われた状態か否かの監視を、「ログ通信監視」という。
Here, it has a function of transmitting data including predetermined information having at least POS terminal identification information of the POS terminal 13 (hereinafter referred to as “on notification data”) to the maintenance server 17 when the power is turned on. The data corresponds to data indicating that the power is turned on.
In addition, when the POS terminal 13 is turned off, the POS terminal 13 includes the POS terminal identification information of the POS terminal 13 and indicates that the power is turned off (hereinafter referred to as “the power supply is turned off”) before executing the shutdown process corresponding to the power off. , “Off notification data”)) to the maintenance server 17.
In the present embodiment, the monitoring unit 505 efficiently monitors whether or not the transmission of the request data D1 by the POS terminal 13 is normally performed by using the above processing of the POS terminal 13.
In the following description, monitoring whether or not the request data D1 is normally transmitted by the POS terminal 13 by the monitoring unit 505 is referred to as “log communication monitoring”.

図13(A)は、監視部505の処理を示すフローチャートである。
図13(A)に示すように、監視部505は、管理する対象のPOS端末13のうち、いずれかのPOS端末13からオン通知データを受信したか否かを監視する(ステップSN1)。
オン通知データを受信した場合(ステップSN1:YES)、監視部505は、電源状態監視データベース515にアクセスし、オン通知データの送信元のPOS端末13に対応するレコードの電源状態情報の値を、電源が投入された状態であることを示す値とする(ステップSN2)。
FIG. 13A is a flowchart showing the processing of the monitoring unit 505.
As shown in FIG. 13A, the monitoring unit 505 monitors whether or not the ON notification data is received from any POS terminal 13 among the POS terminals 13 to be managed (step SN1).
When the ON notification data is received (step SN1: YES), the monitoring unit 505 accesses the power supply state monitoring database 515, and sets the value of the power supply state information of the record corresponding to the POS terminal 13 that is the transmission source of the ON notification data. A value indicating that the power is on is set (step SN2).

図14は、電源状態監視データベース515の1件のレコードのデータ構造を模式的に示す図である。
電源状態監視データベース515は、POS端末13ごとにレコードを有し、1件のレコードは、図14に示すように、POS端末13が設けられた店舗の店舗識別情報と、POS端末13のPOS端末識別情報と、電源状態情報とを対応付けて記憶する。
電源状態情報とは、POS端末13の電源が投入された状態か否かを示す情報であり、値として、電源が投入された状態であることを示す値と、電源が投入された状態でないことを示す値とのいずれかを取る。
ステップSN2において、監視部505は、電源状態監視データベース515のレコードのうち、ステップSN1で受信したオン通知データに含まれるPOS端末識別情報を有するレコードを特定する。次いで、監視部505は、特定したレコードの電源状態情報の値を、電源が投入された状態であることを示す値とする。
FIG. 14 is a diagram schematically showing the data structure of one record in the power supply state monitoring database 515.
The power supply state monitoring database 515 has a record for each POS terminal 13, and one record includes the store identification information of the store where the POS terminal 13 is provided and the POS terminal of the POS terminal 13 as shown in FIG. 14. The identification information and the power status information are stored in association with each other.
The power state information is information indicating whether or not the POS terminal 13 is in a power-on state, and includes a value indicating that the power is on and a state in which the power is not on. Takes one of the following values.
In step SN2, the monitoring unit 505 identifies a record having the POS terminal identification information included in the ON notification data received in step SN1 among the records in the power supply state monitoring database 515. Next, the monitoring unit 505 sets the value of the power state information of the identified record as a value indicating that the power is on.

図13(B)は、監視部505の処理を示すフローチャートである。
図13(B)に示すように、監視部505は、管理する対象のPOS端末13のうち、いずれかのPOS端末13からオフ通知データを受信したか否かを監視する(ステップSO1)。
オフ通知データを受信した場合(ステップSO1:YES)、監視部505は、電源状態監視データベース515にアクセスし、オン通知データの送信元のPOS端末13に対応するレコードの電源状態情報の値を、電源が投入された状態でないことを示す値とする(ステップSO2)。
ステップSO2において、監視部505は、電源状態監視データベース515のレコードのうち、ステップSO1で受信したオフ通知データに含まれるPOS端末識別情報を有するレコードを特定する。次いで、監視部505は、特定したレコードの電源状態情報の値を、電源が投入された状態でないことを示す値とする。
FIG. 13B is a flowchart showing processing of the monitoring unit 505.
As shown in FIG. 13B, the monitoring unit 505 monitors whether or not the off notification data is received from any POS terminal 13 among the POS terminals 13 to be managed (step SO1).
When the OFF notification data is received (step SO1: YES), the monitoring unit 505 accesses the power supply state monitoring database 515, and sets the value of the power supply state information of the record corresponding to the POS terminal 13 that is the transmission source of the ON notification data. A value indicating that the power is not turned on is set (step SO2).
In step SO2, the monitoring unit 505 identifies a record having the POS terminal identification information included in the off notification data received in step SO1 among the records in the power supply state monitoring database 515. Next, the monitoring unit 505 sets the value of the power state information of the identified record as a value indicating that the power is not turned on.

以上のように、1のPOS端末13の電源がオンされた場合、電源状態監視データベース515の対応するレコードの電源状態情報の値が、電源が投入された状態であることを示す値とされる。一方、当該1のPOS端末13の電源がオフされた場合、電源状態監視データベース515の対応するレコードの電源状態情報の値が、電源が投入された状態でないことを示す値とされる。このため、監視部505は、POS端末13について、電源状態情報の値により、電源が投入された状態か否かを監視できる。   As described above, when the power of one POS terminal 13 is turned on, the value of the power status information of the corresponding record in the power status monitoring database 515 is a value indicating that the power is on. . On the other hand, when the power of the one POS terminal 13 is turned off, the value of the power status information in the corresponding record in the power status monitoring database 515 is a value indicating that the power is not turned on. Therefore, the monitoring unit 505 can monitor whether or not the POS terminal 13 is in a power-on state based on the value of the power state information.

ここで、監視部505は、店舗システム11(店舗システム11が有するローカルネットワークLN)ごとに、以下の処理を行って、その店舗システム11が有するPOS端末13(ローカルネットワークLNに接続されたPOS端末13)をログ通信監視の対象とするか否かを判別する。
以下の説明では、店舗システム11について、その店舗システム11が有するPOS端末13をログ通信監視の対象とすることを単に、「店舗システム11をログ通信監視の対象とする」と表現する。
Here, the monitoring unit 505 performs the following processing for each store system 11 (local network LN included in the store system 11), and the POS terminal 13 included in the store system 11 (POS terminal connected to the local network LN). 13) is determined as a target for log communication monitoring.
In the following description, regarding the store system 11, the POS terminal 13 included in the store system 11 is simply subject to log communication monitoring as “the store system 11 is subject to log communication monitoring”.

図15は、ある1の店舗システム11をログ通信監視の対象とするか否かを判別する際の監視部505の動作を示すフローチャートである。
監視部505は、店舗システム11のそれぞれに対して、所定のタイミングで、図15のフローチャートで示す処理を実行し、店舗システム11をログ通信監視の対象とするか否か判別する。
図15のフローチャートを用いた説明において、処理の対象の店舗システム11を「処理対象店舗システム」と表現する。
FIG. 15 is a flowchart illustrating the operation of the monitoring unit 505 when determining whether or not a certain store system 11 is a target for log communication monitoring.
The monitoring unit 505 performs the process shown in the flowchart of FIG. 15 on each store system 11 at a predetermined timing, and determines whether or not the store system 11 is a target for log communication monitoring.
In the description using the flowchart of FIG. 15, the store system 11 to be processed is expressed as a “process target store system”.

図15に示すように、監視部505は、処理対象店舗システムが設けられた店舗が営業日であるか否かを判別する(ステップSP1)。監視部505は、店舗ごとに営業日を管理する。
本日が、処理対象店舗システムが設けられた店舗の営業日ではない場合(ステップSP1:NO)、監視部505は、処理対象店舗システムをログ通信監視の対象としない(ステップSP2)。その後、監視部505は、処理を終了する。
As shown in FIG. 15, the monitoring unit 505 determines whether or not the store provided with the processing target store system is a business day (step SP1). The monitoring unit 505 manages business days for each store.
When today is not a business day of the store where the processing target store system is provided (step SP1: NO), the monitoring unit 505 does not set the processing target store system as a target for log communication monitoring (step SP2). Thereafter, the monitoring unit 505 ends the process.

本日が、処理対象店舗システムが設けられた店舗の営業日の場合(ステップSP1:YES)、監視部505は、現時点が、処理対象店舗システムが設けられた店舗の営業時間に営業前の準備期間や営業後の残処理時間等に基づく所定のマージンを反映した時間帯(以下、「営業時間帯」という。)に属するか否かを判別する(ステップSP3)。
現時点が、営業時間帯に属さない場合(ステップSP3:NO)、監視部505は、処理対象店舗システムをログ通信監視の対象としない(ステップSP2)。その後、監視部505は、処理を終了する。
When today is the business day of the store where the processing target store system is provided (step SP1: YES), the monitoring unit 505 is the preparatory period before the business operation time of the store where the processing target store system is provided Or whether it belongs to a time zone reflecting a predetermined margin based on the remaining processing time after business or the like (hereinafter referred to as “business time zone”) (step SP3).
When the current time does not belong to the business hours (step SP3: NO), the monitoring unit 505 does not set the processing target store system as a target for log communication monitoring (step SP2). Thereafter, the monitoring unit 505 ends the process.

ここで、店舗が営業日ではなく、また、営業日でも営業時間帯でない場合は、店舗システム11が有するPOS端末13は電源が投入された状態ではないと想定され、従って、POS端末13をログ通信監視する必要はない。そして、本実施形態では、監視部505は、処理対象店舗システムについて、現在の日時が、対応する店舗の営業日ではないか、営業時間帯ではない場合、処理対象店舗システムをログ通信監視の対象としない。これにより、不必要に、POS端末13に対してログ通信監視が行われることを防止できる。   Here, if the store is not a business day, and it is not a business time zone even on a business day, it is assumed that the POS terminal 13 of the store system 11 is not in a power-on state, and therefore the POS terminal 13 is logged. There is no need to monitor communications. In the present embodiment, the monitoring unit 505 determines that the processing target store system is subject to log communication monitoring if the current date and time is not the business day of the corresponding store or the business hours. And not. Thereby, it is possible to prevent the log communication monitoring from being performed on the POS terminal 13 unnecessarily.

現時点が、営業時間帯に属する場合(ステップSP3:YES)、監視部505は、処理対象店舗システムに設けられたPOS端末13のうち、電源が投入された状態のPOS端末13の数が、所定の閾値を下回るか否かを判別する(ステップSP4)。
なお、監視部505は、電源状態監視データベース515に基づいて、処理対象店舗システムにおいて電源が投入された状態のPOS端末13の数を取得する。
ここで、所定の閾値は、店舗において、通常通りの営業が行われる場合に、電源が投入された状態である必要がある最低限のPOS端末13の数とされる。所定の閾値は、店舗システム11ごとに、予め定められ、登録される。
When the current time belongs to the business hours (step SP3: YES), the monitoring unit 505 determines that the number of the POS terminals 13 that are turned on among the POS terminals 13 provided in the processing target store system is predetermined. It is determined whether or not the threshold value is below (step SP4).
The monitoring unit 505 acquires the number of POS terminals 13 in a state where power is turned on in the processing target store system based on the power state monitoring database 515.
Here, the predetermined threshold is the minimum number of POS terminals 13 that need to be in a power-on state when a normal business is performed in a store. The predetermined threshold is predetermined and registered for each store system 11.

電源が投入された状態のPOS端末13の数が、所定の閾値を下回る場合(ステップSP4:YES)、監視部505は、処理対象店舗システムをログ通信監視の対象としない(ステップSP5)。これは、以下の理由による。すなわち、電源が投入された状態のPOS端末13が所定の閾値を下回るということは、通常通りの営業を行うために必要な台数のPOS端末13について電源が投入された状態ではなく、通常通りの営業が行えない状態ということである。この場合、店舗システム11に何らかの障害が発生していると想定されるため、まず、発生した障害を解消する必要がある。また、店舗システム11に障害が発生している状態で、店舗システム11をログ通信監視の対象としたとしても、発生した障害に起因して、ログ通信監視の精度が保障されない。以上を踏まえ、電源が投入された状態のPOS端末13の数が、所定の閾値を下回る場合、監視部505は、店舗システム11をログ通信監視の対象としない。   When the number of POS terminals 13 in a state where the power is turned on is below a predetermined threshold (step SP4: YES), the monitoring unit 505 does not set the processing target store system as a target for log communication monitoring (step SP5). This is due to the following reason. In other words, the fact that the POS terminal 13 in a state where the power is turned on falls below a predetermined threshold means that the number of POS terminals 13 required for normal business operation is not in a state where the power is turned on, and is normal. This means that business is not possible. In this case, since it is assumed that some kind of trouble has occurred in the store system 11, first, it is necessary to eliminate the trouble that has occurred. Further, even if the store system 11 is targeted for log communication monitoring in a state where a failure has occurred in the store system 11, the accuracy of log communication monitoring is not guaranteed due to the failure that has occurred. Based on the above, when the number of POS terminals 13 that are turned on is below a predetermined threshold, the monitoring unit 505 does not target the store system 11 for log communication monitoring.

処理対象店舗システムをログ通信監視の対象としない場合、監視部505は、対応する処理を実行する(ステップSP6)。その後、監視部505は、処理を終了する。ステップSP6において、例えば、監視部505は、保守担当者、その他の関係者に、その旨報知する。報知に際し、例えば、監視部505は、保守担当者等が視認可能な所定の表示装置に、処理対象店舗システムが設けられた店舗の店舗識別情報、及び、店舗において電源が投入された状態のPOS端末13の数が少なく障害が発生している可能性があることを示す情報を表示する。報知に際し、また例えば、監視部505は、処理対象店舗システムが設けられた店舗の店舗識別情報、及び、店舗において電源が投入された状態のPOS端末13の数が少なく障害が発生している可能性があることを示す情報が記載された電子メールを予め登録された所定の宛先に送信する。   When the processing target store system is not the target of log communication monitoring, the monitoring unit 505 executes a corresponding process (step SP6). Thereafter, the monitoring unit 505 ends the process. In step SP6, for example, the monitoring unit 505 notifies the maintenance staff and other related parties to that effect. For the notification, for example, the monitoring unit 505 displays the store identification information of the store where the processing target store system is provided on a predetermined display device that can be visually recognized by a maintenance person and the POS in a state where power is turned on in the store. Information indicating that the number of terminals 13 is small and a failure may occur is displayed. At the time of notification, for example, the monitoring unit 505 may have a failure due to a small number of store identification information of the store where the processing target store system is provided and the number of POS terminals 13 in a state where power is turned on in the store. An e-mail in which information indicating the presence of the e-mail is described is transmitted to a predetermined destination registered in advance.

一方、電源が投入された状態のPOS端末13の数が、所定の閾値を下回らない場合(ステップSP4:NO)、監視部505は、処理対象店舗システムをログ通信監視の対象とする(ステップSP7)。   On the other hand, when the number of POS terminals 13 in the power-on state does not fall below a predetermined threshold (step SP4: NO), the monitoring unit 505 sets the processing target store system as a target for log communication monitoring (step SP7). ).

次に、ログ通信監視の対象となった店舗システム11のPOS端末13に対して、リクエストデータD1の送信が正常に行われた状態か否かを監視(ログ通信監視)する場合の監視部505の動作について説明する。   Next, the monitoring unit 505 for monitoring whether or not the request data D1 is normally transmitted to the POS terminal 13 of the store system 11 subjected to log communication monitoring (log communication monitoring). Will be described.

図16は、ある1のPOS端末13の監視に係る処理の実行時の監視部505の動作を示すフローチャートである。
監視部505は、ログ通信監視の対象となった店舗システム11のPOS端末13のそれぞれに対して、図16のフローチャートで示す処理を実行し、POS端末13によるリクエストデータD1の送信が正常に行われた状態か否かを監視する。
なお、図16のフローチャートの開始時点では、対応するPOS端末13の電源は投入された状態ではない。
また、図16のフローチャートを用いた説明において、処理の対象のPOS端末13を「処理対象POS端末」と表現する。
FIG. 16 is a flowchart showing the operation of the monitoring unit 505 when executing processing related to monitoring of a certain POS terminal 13.
The monitoring unit 505 executes the process shown in the flowchart of FIG. 16 for each of the POS terminals 13 of the store system 11 that are the targets of log communication monitoring, and the transmission of the request data D1 by the POS terminal 13 is normally performed. Monitor whether it is broken.
Note that at the start of the flowchart of FIG. 16, the corresponding POS terminal 13 is not turned on.
In the description using the flowchart of FIG. 16, the processing target POS terminal 13 is expressed as a “processing target POS terminal”.

また、監視部505は、契約期間内の企業に係るPOS端末13について、図16のフローチャートが示す処理を実行する。これにより、契約期間内の企業と、そうではない企業との間で、メンテナンスサーバー17が提供するサービスを差別化できる。   In addition, the monitoring unit 505 executes the process illustrated in the flowchart of FIG. 16 for the POS terminal 13 related to the company within the contract period. Thereby, the service provided by the maintenance server 17 can be differentiated between a company within the contract period and a company that is not.

図16に示すように、監視部505は、処理対象POS端末の電源がオンされたか否かを監視する(ステップSQ1)。ステップSQ1において、監視部505は、電源状態監視データベース515の処理対象POS端末に対応するレコードが有する電源状態情報の値が、電源が投入された状態でないことを示す値から、電源が投入された状態であることを示す値へと変化した場合、処理対象POS端末の電源がオンされたと判別する。   As shown in FIG. 16, the monitoring unit 505 monitors whether or not the processing target POS terminal is powered on (step SQ1). In step SQ1, the monitoring unit 505 is powered on from the value indicating that the power status information included in the record corresponding to the processing target POS terminal in the power status monitoring database 515 is not in a power-on state. When the value changes to a value indicating the state, it is determined that the processing target POS terminal is powered on.

処理対象POS端末の電源がオンされた場合(ステップSQ1:YES)、監視部505は、処理対象POS端末を、リクエストデータD1の送信が正常に行われた状態か否かを監視する対象とする(ステップSQ2)。
監視部505は、監視の対象とした処理対象POS端末について、以下のようにして、リクエストデータD1の送信が正常に行われた状態か否かを監視する(ステップSQ3)。
すなわち、監視部505は、基準生成間隔(契約期間内の企業に係るPOS端末13が、リクエストデータD1を生成、送信するときの最長の間隔)に所定のマージンを反映した期間以上の間、処理対象POS端末によりリクエストデータD1の送信が行われなかった場合(処理対象POS端末からリクエストデータD1を受信しなかった場合)、処理対象POS端末によるリクエストデータD1の送信が正常に行われた状態ではないと判別する。上述したように、契約期間内の企業に係るPOS端末13は、基準生成間隔を最長とする間隔でリクエストデータD1を送信する構成のため、当該基準生成間隔に所定のマージンを反映した期間を超えて、リクエストデータD1の送信が行われなった場合、何らかのエラーが発生した状態であると想定されるからである。
When the power of the processing target POS terminal is turned on (step SQ1: YES), the monitoring unit 505 sets the processing target POS terminal as a target for monitoring whether or not the transmission of the request data D1 is normally performed. (Step SQ2).
The monitoring unit 505 monitors whether or not the processing target POS terminal to be monitored is in a state where the transmission of the request data D1 is normally performed (step SQ3).
That is, the monitoring unit 505 performs processing for a period longer than a period in which a predetermined margin is reflected in the reference generation interval (the longest interval when the POS terminal 13 related to the company within the contract period generates and transmits the request data D1). When the request data D1 is not transmitted by the target POS terminal (when the request data D1 is not received from the processing target POS terminal), the request data D1 is normally transmitted by the processing target POS terminal. It is determined that there is not. As described above, the POS terminal 13 associated with the company within the contract period transmits the request data D1 at an interval that makes the reference generation interval the longest, so that the reference generation interval exceeds a period reflecting a predetermined margin. This is because if the request data D1 is not transmitted, it is assumed that an error has occurred.

なお、監視部505は、処理対象POS端末によるリクエストデータD1の送信が正常に行われた状態でないと判別した場合、保守担当者、その他の関係者に、その旨報知する。例えば、監視部505は、保守担当者等が視認可能な所定の表示装置に処理対象POS端末のPOS端末識別情報、及び、リクエストデータD1の送信が正常に行われた状態でないことを示す情報を表示する。また例えば、監視部505は、POS端末識別情報、及び、リクエストデータD1の送信が正常に行われた状態でないことを示す情報が記載された電子メールを予め登録された所定の宛先に送信する。   If the monitoring unit 505 determines that the transmission of the request data D1 by the processing target POS terminal is not in a normal state, the monitoring unit 505 notifies the maintenance staff and other related parties to that effect. For example, the monitoring unit 505 displays information indicating that the transmission of the POS terminal identification information of the processing target POS terminal and the request data D1 is not normally performed on a predetermined display device that can be visually recognized by a maintenance person or the like. indicate. Further, for example, the monitoring unit 505 transmits the POS terminal identification information and an e-mail in which information indicating that the request data D1 is not normally transmitted is described to a predetermined destination registered in advance.

監視部505は、ステップSQ3で処理対象POS端末によるリクエストデータD1の送信が正常に行われた状態か否かを監視しつつ、処理対象POS端末の電源がオフされたか否かを監視する(ステップSQ4)。ステップSQ4において、監視部505は、電源状態監視データベース515の処理対象POS端末に対応するレコードが有する電源状態情報の値が、電源が投入された状態であることを示す値から、電源が投入された状態でないことを示す値へと変化した場合、処理対象POS端末の電源がオフされたと判別する。   The monitoring unit 505 monitors whether or not the processing target POS terminal is turned off while monitoring whether or not the transmission of the request data D1 by the processing target POS terminal is normally performed in step SQ3 (step SQ3). SQ4). In step SQ4, the monitoring unit 505 turns on the power from the value indicating that the power supply state information included in the record corresponding to the processing target POS terminal in the power supply state monitoring database 515 indicates that the power supply is turned on. When the value is changed to a value indicating that it is not in the state, it is determined that the processing target POS terminal is turned off.

電源がオフされた場合(ステップSQ4:YES)、監視部505は、処理対象POS端末を、リクエストデータD1の送信が正常に行われた状態か否かを監視する対象から外し(ステップSQ5)、処理手順をステップSQ1へと戻す。   When the power is turned off (step SQ4: YES), the monitoring unit 505 removes the processing target POS terminal from the target for monitoring whether or not the transmission of the request data D1 is normally performed (step SQ5). The processing procedure is returned to step SQ1.

このように、本実施形態では、監視部505は、POS端末13がオン通知データ、及び、オフ通知データを送信することを利用してPOS端末13について電源が投入された状態か否かを管理する。そして、監視部505は、電源が投入された状態の場合、リクエストデータD1の送信が正常に行われた状態か否かを監視し、電源が投入された状態でない場合、リクエストデータD1の送信が正常に行われた状態か否かの監視を行わない。
これにより、以下の効果を奏する。
すなわち、店舗では、常に全てのレジカウンターLにおいて会計が行える状態とするのではなく、時間帯や、顧客の込み具合に応じて、レジカウンターLにおける会計を行える状態としたり行えない状態としたりするのが一般的である。そして、レジカウンターLにおける会計を行えない状態とする場合、POS端末13の電源をオフする場合がある。電源がオフされたPOS端末13は、リクエストデータD1の送信を行わないことになるが、これは、POS端末13が使用されないため意図的に電源がオフされた結果、リクエストデータD1を送信しないのであり、POS端末13に発生したエラー等により意図せずしてリクエストデータD1を送信しないのではない。以上を踏まえ、電源が投入された状態のPOS端末13をリクエストデータD1の送信が正常に行われた状態か否かの監視の対象とすることにより、不必要に、正常な状態ではないと判別されて対応する処理が実行されることを防止でき、また、監視の対象とする必要のあるPOS端末13が監視の対象となるため、処理効率が良い。
As described above, in the present embodiment, the monitoring unit 505 manages whether the POS terminal 13 is powered on by using the POS terminal 13 transmitting the ON notification data and the OFF notification data. To do. When the power is turned on, the monitoring unit 505 monitors whether the request data D1 is normally transmitted. When the power is not turned on, the monitoring unit 505 transmits the request data D1. Does not monitor whether the status is normal.
Thereby, the following effects are produced.
That is, in a store, it is not always possible to make an account at all the cashier counters L, but depending on the time of day and the customer's busyness, the cashier can be made to be in a cashier state or not. It is common. When the cashier counter L cannot be checked, the POS terminal 13 may be turned off. The POS terminal 13 whose power is turned off does not transmit the request data D1, but this is because the request data D1 is not transmitted as a result of the power being intentionally turned off because the POS terminal 13 is not used. Yes, the request data D1 is not transmitted unintentionally due to an error or the like occurring in the POS terminal 13. Based on the above, the POS terminal 13 in the power-on state is monitored as to whether or not the transmission of the request data D1 has been normally performed, thereby determining that the POS terminal 13 is not in a normal state unnecessarily. Thus, the corresponding processing can be prevented from being executed, and the POS terminal 13 that needs to be monitored is monitored, so that the processing efficiency is high.

次に、店舗に設置されたPOS端末13の電源がオンされた場合の、POS端末13の動作について説明する。
図17は、電源がオンされた場合のPOS端末13、及び、店舗管理サーバー12の動作を示すフローチャートである。図17(A)はPOS端末13の動作を示し、(B)は店舗管理サーバー12の動作を示す。
Next, the operation of the POS terminal 13 when the power of the POS terminal 13 installed in the store is turned on will be described.
FIG. 17 is a flowchart showing the operations of the POS terminal 13 and the store management server 12 when the power is turned on. FIG. 17A shows the operation of the POS terminal 13, and FIG. 17B shows the operation of the store management server 12.

レジ担当者は、POS端末13の電源をオンする(ステップS1)。本例では、POS端末13は、レジカウンターLに設置された状態であり、レジ担当者は、例えば、店舗の開店時にPOS端末13の電源をオンする。本実施形態では、POS端末13の電源のオンに応じて、自動で、ブラウザーが起動する。   The cashier person turns on the power of the POS terminal 13 (step S1). In this example, the POS terminal 13 is installed in the cashier counter L, and the cashier person turns on the POS terminal 13 when the store is opened, for example. In the present embodiment, the browser is automatically activated in response to turning on the power of the POS terminal 13.

図17(A)に示すように、ブラウザーの起動に応じて、POS端末13のクライアント機能部202は、店舗管理サーバー12の所定のURLにアクセスする(ステップSR1)。店舗管理サーバー12のURLや、店舗管理サーバー12との通信で送受信するデータのフォーマット、その他の店舗管理サーバー12との間で通信を行うのに必要な情報は、POS端末13に予め登録される。   As shown in FIG. 17A, the client function unit 202 of the POS terminal 13 accesses a predetermined URL of the store management server 12 in response to the activation of the browser (step SR1). The URL of the store management server 12, the format of data transmitted / received by communication with the store management server 12, and other information necessary for communication with the store management server 12 are registered in the POS terminal 13 in advance. .

図17(B)に示すように、POS端末13からの所定のURLへのアクセスに応じて、店舗管理サーバー12の会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、所定のHTMLファイルをPOS端末13に送信する(ステップSS1)。所定のHTMLファイルは、少なくとも後述する会計用ユーザーインターフェース60を表示させる機能を有するHTMLファイルである。   As shown in FIG. 17B, in response to access to a predetermined URL from the POS terminal 13, the accounting related process execution unit 401 of the store management server 12 controls the store management server communication unit 42 to perform a predetermined process. Are transmitted to the POS terminal 13 (step SS1). The predetermined HTML file is an HTML file having a function of displaying at least an accounting user interface 60 described later.

図17(A)に示すように、POS端末13のクライアント機能部202は、制御装置通信部23を制御して、所定のHTMLファイルを受信し、取得する(ステップSR2)。
次いで、クライアント機能部202は、取得した所定のHTMLファイルを実行して、会計用ユーザーインターフェース60(図18)をタッチパネルTPに表示する(ステップSR3)。
As shown in FIG. 17A, the client function unit 202 of the POS terminal 13 controls the control device communication unit 23 to receive and acquire a predetermined HTML file (step SR2).
Next, the client function unit 202 executes the acquired predetermined HTML file and displays the accounting user interface 60 (FIG. 18) on the touch panel TP (step SR3).

図18は、タッチパネルTPに表示された会計用ユーザーインターフェース60の一例を示す図である。
図18の会計用ユーザーインターフェース60において、左上部には、顧客が購入した商品の商品名、商品の単価、及び、商品の数量が一覧表示される一覧表示エリア61が設けられる。一覧表示エリア61の右方には、顧客が購入した商品の合計金額、会計に際して顧客から預かった貨幣の金額、及び、顧客に渡す釣銭の金額が表示される金額表示エリア62が設けられる。
一覧表示エリア61の下方には、バーコードスキャナーBSによって読み取られたバーコードの情報(以下、「バーコード情報」という。)が表示されるバーコード情報表示エリア63が設けられる。バーコード情報は、基本的には、商品に割り当てられた商品コードである。
バーコード情報表示エリア63の右方には、ソフトウェアテンキー64が設けられる。ソフトウェアテンキー64は、会計を確定する確定キー641、及び、小計(顧客が購入した商品の合計金額の計算)を指示する小計キー642を有する。
FIG. 18 is a diagram illustrating an example of the accounting user interface 60 displayed on the touch panel TP.
In the accounting user interface 60 of FIG. 18, a list display area 61 is provided in the upper left part, in which a list of product names, product unit prices, and product quantities of products purchased by the customer is displayed. To the right of the list display area 61, there is provided an amount display area 62 for displaying the total amount of products purchased by the customer, the amount of money deposited from the customer at the time of accounting, and the amount of change given to the customer.
Below the list display area 61, there is provided a barcode information display area 63 for displaying barcode information read by the barcode scanner BS (hereinafter referred to as "barcode information"). Bar code information is basically a product code assigned to a product.
A software numeric keypad 64 is provided on the right side of the bar code information display area 63. The software numeric keypad 64 has a confirmation key 641 for confirming the accounting and a subtotal key 642 for instructing a subtotal (calculation of the total amount of products purchased by the customer).

以後、レジカウンターLにおいて、レジ担当者は、会計用ユーザーインターフェース60を用いて、会計を行う。
このように、POS端末13の電源のオンに応じて、POS端末13のタッチパネルTPにレジカウンターLで行われる会計(業務)で使用する会計用ユーザーインターフェース60が自動で表示される。このため、レジ担当者は、POS端末13の電源のオン時に、店舗管理サーバー12のURLへの入力等の作業を行う必要がなく、レジ担当者の作業効率が良く、利便性が高い。
Thereafter, the cashier in charge at the cashier counter L performs accounting using the accounting user interface 60.
As described above, the accounting user interface 60 used for accounting (business) performed by the cashier counter L is automatically displayed on the touch panel TP of the POS terminal 13 in accordance with the power-on of the POS terminal 13. Therefore, the cashier person does not need to perform operations such as inputting the URL of the store management server 12 when the POS terminal 13 is turned on, and the cashier person's work efficiency is high and convenience is high.

次に、レジカウンターLでの会計に応じてPOS端末13が行う会計処理について詳述する。   Next, the accounting process performed by the POS terminal 13 in accordance with the accounting at the checkout counter L will be described in detail.

図19は、会計処理の実行時のPOS端末13の動作を示すフローチャートである。
図19に示すように、会計処理において、POS端末13の制御装置制御部20のクライアント機能部202は、商品情報取得処理を実行する(ステップST1)。
商品情報取得処理において、クライアント機能部202は、顧客が購入した商品ごとに、店舗管理サーバー12と通信して、商品の商品名、及び、商品の単価(以下、「商品関連情報」という。)を取得し、取得した商品関連情報に基づく処理を実行する。以下、商品情報取得処理について詳述する。
FIG. 19 is a flowchart showing the operation of the POS terminal 13 when executing the accounting process.
As shown in FIG. 19, in the accounting process, the client function unit 202 of the control device control unit 20 of the POS terminal 13 executes a product information acquisition process (step ST1).
In the product information acquisition process, the client function unit 202 communicates with the store management server 12 for each product purchased by the customer, and the product name of the product and the unit price of the product (hereinafter referred to as “product related information”). And executes processing based on the acquired product related information. Hereinafter, the product information acquisition process will be described in detail.

図20は、商品情報取得処理の実行時のPOS端末13の動作、及び、店舗管理サーバー12の動作を示すフローチャートである。図20(A)は、POS端末13の動作を示し、図20(B)は、店舗管理サーバー12の動作を示す。   FIG. 20 is a flowchart showing the operation of the POS terminal 13 and the operation of the store management server 12 when executing the product information acquisition process. FIG. 20A shows the operation of the POS terminal 13, and FIG. 20B shows the operation of the store management server 12.

レジカウンターLにおける会計において、レジ担当者は、バーコードスキャナーBSによって、顧客が購入する商品や商品の包装等に付されたバーコードを読み取る(ステップS2)。バーコードの読み取りに応じて、バーコードスキャナーBSは、読取結果に基づくデータ(以下、「読取結果データ」という。)を、バーコードスキャナーBSが接続されたポートを介して、POS端末13の制御装置デバイス通信部24に出力する。制御装置デバイス通信部24は、読取結果データを、制御装置制御部20に出力する。
読取結果データは、商品の商品コードを示す情報を含むデータである。
In the accounting at the cashier counter L, the cashier in charge reads the bar code attached to the product purchased by the customer, the packaging of the product, etc. by the bar code scanner BS (step S2). In response to the reading of the barcode, the barcode scanner BS controls the data from the reading result (hereinafter referred to as “reading result data”) of the POS terminal 13 via the port to which the barcode scanner BS is connected. The data is output to the device / device communication unit 24. The control device device communication unit 24 outputs the read result data to the control device control unit 20.
The read result data is data including information indicating the product code of the product.

図20(A)に示すように、POS端末13の制御装置制御部20のクライアント機能部202は、制御装置デバイス通信部24からの入力に基づいて、読取結果データを取得する(ステップSU1)。
次いで、クライアント機能部202は、読取結果データに基づいて、商品コードを取得する(ステップSU2)。
次いで、クライアント機能部202は、会計用ユーザーインターフェース60のバーコード情報表示エリア63にステップSU2で取得した商品コードを表示する(ステップSU3)。
次いで、クライアント機能部202は、制御装置通信部23を制御して、ステップSU2で取得した商品コードの商品の商品名、及び、商品の単価を問い合わせるデータ(以下、「商品情報要求データ」という。)を、店舗管理サーバー12に送信する(ステップSU4)。
As shown in FIG. 20A, the client function unit 202 of the control device control unit 20 of the POS terminal 13 acquires the read result data based on the input from the control device device communication unit 24 (step SU1).
Next, the client function unit 202 acquires a product code based on the read result data (step SU2).
Next, the client function unit 202 displays the product code acquired in step SU2 in the bar code information display area 63 of the accounting user interface 60 (step SU3).
Next, the client function unit 202 controls the control device communication unit 23 to inquire the product name of the product with the product code acquired in step SU2 and the unit price of the product (hereinafter referred to as “product information request data”). ) Is transmitted to the store management server 12 (step SU4).

図20(B)に示すように、店舗管理サーバー12の店舗管理サーバー制御部40の会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、商品情報要求データを受信する(ステップSV1)。
次いで、会計関連処理実行部401は、受信した商品情報要求データに基づいて、商品コードを取得し、店舗管理サーバー記憶部41が記憶する商品マスター411を参照し、取得した商品コードの商品の商品名、及び、商品の単価を取得する(ステップSV2)。
ステップSV2の処理は、店舗管理サーバー12(サーバー)によるリクエストに対応する処理に相当する。
As shown in FIG. 20B, the transaction related process execution unit 401 of the store management server control unit 40 of the store management server 12 controls the store management server communication unit 42 to receive the product information request data (step). SV1).
Next, the accounting related process execution unit 401 acquires a product code based on the received product information request data, refers to the product master 411 stored in the store management server storage unit 41, and stores the product of the product with the acquired product code. The name and the unit price of the product are acquired (step SV2).
The process of step SV2 corresponds to a process corresponding to a request from the store management server 12 (server).

次いで、会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、ステップSV2で取得した商品の商品名、及び、商品の単価を示す商品情報応答データをPOS端末13に送信する(ステップSV3)。
商品情報応答データはレスポンスに対応し、ステップSV3の処理は、リクエストに対応する処理の処理結果を示すレスポンスを送信する処理に相当する。
Next, the accounting-related process execution unit 401 controls the store management server communication unit 42 to transmit the product information response data indicating the product name and the unit price of the product acquired in step SV2 to the POS terminal 13 ( Step SV3).
The merchandise information response data corresponds to the response, and the process of step SV3 corresponds to a process of transmitting a response indicating the processing result of the process corresponding to the request.

図20(A)に示すように、POS端末13の制御装置制御部20のクライアント機能部202は、制御装置通信部23を制御して、商品情報応答データを受信する(ステップSU5)。
次いで、クライアント機能部202は、受信した商品情報応答データに基づいて、商品の商品名、及び、商品の単価を取得し、会計用ユーザーインターフェース60の一覧表示エリア61の対応する領域に、商品の商品名、商品の単価、及び、商品の数量の組み合わせを表示する(ステップSU6)。
As shown in FIG. 20A, the client function unit 202 of the control device control unit 20 of the POS terminal 13 controls the control device communication unit 23 to receive the product information response data (step SU5).
Next, the client function unit 202 acquires the product name of the product and the unit price of the product based on the received product information response data, and stores the product name in the corresponding area of the list display area 61 of the accounting user interface 60. A combination of a product name, a product unit price, and a product quantity is displayed (step SU6).

商品情報取得処理において、顧客が購入する商品のそれぞれについて、レジ担当者によりバーコードスキャナーBSによるバーコードの読み取りが行われ、バーコードの読み取りに応じて、POS端末13、及び、店舗管理サーバー12により図20のフローチャートで示す処理が実行される。
全ての商品のバーコードの読み取り、及び、読み取りに応じた各装置の処理が完了すると、図19のステップST1の商品情報取得処理が完了する。
全ての商品のバーコードの読み取り、及び、読み取りに応じた各装置の処理が完了すると、一覧表示エリア61に、顧客が購入する商品の商品名、単価、及び、数量の組み合わせが一覧表示された状態となる。
In the merchandise information acquisition process, the bar code scanner BS reads the barcode for each product purchased by the customer, and the POS terminal 13 and the store management server 12 are read according to the barcode reading. Thus, the processing shown in the flowchart of FIG. 20 is executed.
When the reading of the barcodes of all the products and the processing of each device corresponding to the reading are completed, the product information acquisition processing in step ST1 of FIG. 19 is completed.
When the barcodes of all products are read and the processing of each device according to the reading is completed, the list display area 61 displays a list of combinations of product names, unit prices, and quantities of products purchased by the customer. It becomes a state.

図19に示すように、ステップST1の商品情報取得処理の実行後、クライアント機能部202は、会計金額取得処理を実行する(ステップST2)。ステップST2の会計金額取得処理において、クライアント機能部202は、顧客が購入した商品の合計金額を取得し、顧客の支払いに応じて顧客に渡す釣銭の金額を取得する。以下、会計金額取得処理について詳述する。   As shown in FIG. 19, after executing the product information acquisition process of step ST1, the client function unit 202 executes the accounting amount acquisition process (step ST2). In the accounting amount acquisition process of step ST2, the client function unit 202 acquires the total amount of the products purchased by the customer, and acquires the amount of change to be given to the customer according to the customer's payment. The accounting amount acquisition process will be described in detail below.

図21は、会計金額取得処理の実行時のPOS端末13の動作、及び、対応する店舗管理サーバー12の動作を示すフローチャートである。図21(A)は、POS端末13の動作を示し、図21(B)は、店舗管理サーバー12の動作を示す。   FIG. 21 is a flowchart showing the operation of the POS terminal 13 and the corresponding operation of the store management server 12 when executing the transaction amount acquisition process. FIG. 21A shows the operation of the POS terminal 13, and FIG. 21B shows the operation of the store management server 12.

全ての商品のバーコードの読み取りが完了すると、レジ担当者は、ソフトウェアテンキー64の小計キー642を操作する(ステップS3)。
図21(A)に示すように、小計キー642が操作されたことを検出すると、POS端末13の制御装置制御部20のクライアント機能部202は、小計の計算を要求する小計計算要求データを生成し、制御装置通信部23を制御して、店舗管理サーバー12に送信する(ステップSW1)。小計計算要求データの送信に応じて、クライアント機能部202は、経過時間の計測を開始する。
When the reading of the barcodes of all products is completed, the cashier person operates the subtotal key 642 of the software numeric keypad 64 (step S3).
As shown in FIG. 21A, when it is detected that the subtotal key 642 is operated, the client function unit 202 of the control device control unit 20 of the POS terminal 13 generates subtotal calculation request data for requesting subtotal calculation. Then, the control device communication unit 23 is controlled and transmitted to the store management server 12 (step SW1). In response to the transmission of the subtotal calculation request data, the client function unit 202 starts measuring elapsed time.

図21(B)に示すように、店舗管理サーバー12の会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、小計計算要求データを受信する(ステップSX1)。
次いで、会計関連処理実行部401は、受信した小計計算要求データに基づいて、小計を計算する(ステップSX2)。なお、会計関連処理実行部401は、POS端末13から受信した商品情報応答要求データ、その他付随するデータに基づいて、顧客が購入した商品の商品コードを管理する。ステップSX2において、会計関連処理実行部401は、管理する商品コードに基づいて、適宜、商品マスター411を参照し、小計(顧客が購入した商品の合計金額)を計算する。小計を計算する方法は、上述した方法に限らず、どのような方法でもよい。
As shown in FIG. 21B, the transaction related process execution unit 401 of the store management server 12 controls the store management server communication unit 42 to receive subtotal calculation request data (step SX1).
Next, the accounting related process execution unit 401 calculates a subtotal based on the received subtotal calculation request data (step SX2). The accounting related processing execution unit 401 manages the product code of the product purchased by the customer based on the product information response request data received from the POS terminal 13 and other accompanying data. In step SX2, the accounting-related process execution unit 401 refers to the product master 411 as appropriate based on the managed product code, and calculates a subtotal (total amount of products purchased by the customer). The method for calculating the subtotal is not limited to the method described above, and any method may be used.

次いで、会計関連処理実行部401は、計算した小計を示す小計応答データをPOS端末13に送信する(ステップSX3)。   Next, the accounting related process execution unit 401 transmits subtotal response data indicating the calculated subtotal to the POS terminal 13 (step SX3).

図21(A)に示すように、POS端末13の制御装置制御部20のクライアント機能部202は、制御装置通信部23を制御して、小計応答データを受信する(ステップSW2)。
次いで、クライアント機能部202は、受信した小計応答データに基づいて、金額表示エリア62の対応する領域に、小計(顧客が購入した商品の合計金額)を表示する(ステップSW3)。
As shown in FIG. 21A, the client function unit 202 of the control device control unit 20 of the POS terminal 13 controls the control device communication unit 23 to receive subtotal response data (step SW2).
Next, based on the received subtotal response data, the client function unit 202 displays a subtotal (total price of products purchased by the customer) in a corresponding area of the price display area 62 (step SW3).

小計が金額表示エリア62に表示されると、顧客は、金銭をレジ担当者に引き渡す。レジ担当者は、顧客から金銭を受け取り、ソフトウェアテンキー64に受け取った金銭の額を入力し、確定キー641を操作する(ステップS4)。確定キー641が操作されたことを検出すると、クライアント機能部202は、顧客から受け取った金銭の額を金額表示エリア62の対応する領域に表示する。
さらに、確定キー641が操作されたことを検出すると、クライアント機能部202は、釣銭の額の計算を要求する釣銭計算要求データを店舗管理サーバー12に送信する(ステップSW4)。釣銭計算要求データの送信に応じて、クライアント機能部202は、経過時間の計測を開始する。
When the subtotal is displayed in the amount display area 62, the customer hands over money to the cashier. The cashier person receives money from the customer, inputs the amount of money received in the software numeric keypad 64, and operates the confirmation key 641 (step S4). When it is detected that the confirmation key 641 is operated, the client function unit 202 displays the amount of money received from the customer in a corresponding area of the amount display area 62.
Further, when detecting that the confirmation key 641 has been operated, the client function unit 202 transmits change calculation request data for requesting calculation of the change amount to the store management server 12 (step SW4). In response to transmission of the change calculation request data, the client function unit 202 starts measuring elapsed time.

図21(B)に示すように、店舗管理サーバー12の会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、釣銭計算要求データを受信する(ステップSX4)。
次いで、会計関連処理実行部401は、釣銭の額を計算する(ステップSX5)。
次いで、会計関連処理実行部401は、計算した釣銭の額を示す釣銭応答データをPOS端末13に送信する(ステップSX6)。
As shown in FIG. 21B, the transaction related process execution unit 401 of the store management server 12 controls the store management server communication unit 42 to receive change calculation request data (step SX4).
Next, the accounting related process execution unit 401 calculates the amount of change (step SX5).
Next, the accounting related process execution unit 401 transmits change response data indicating the calculated change amount to the POS terminal 13 (step SX6).

図21(A)に示すように、POS端末13のクライアント機能部202は、制御装置通信部23を制御して、釣銭応答データを受信する(ステップSW5)。
次いで、クライアント機能部202は、受信した釣銭応答データに基づいて、金額表示エリア62の対応する領域に、釣銭の額を表示する(ステップSW6)。
レジ担当者は、金額表示エリア62に表示された釣銭の額に基づいて、顧客に対して釣銭を引き渡す。
As shown in FIG. 21A, the client function unit 202 of the POS terminal 13 controls the control device communication unit 23 to receive change response data (step SW5).
Next, the client function unit 202 displays the amount of change in the corresponding area of the amount display area 62 based on the received change response data (step SW6).
The cashier person delivers the change to the customer based on the change amount displayed in the amount display area 62.

以上のように、ステップST2の会計金額取得処理において、クライアント機能部202は、顧客が購入した商品の合計金額を取得し、顧客の支払いに応じて顧客に渡す釣銭の金額を取得する。   As described above, in the accounting amount acquisition process of step ST2, the client function unit 202 acquires the total amount of the products purchased by the customer, and acquires the amount of change to be delivered to the customer according to the customer's payment.

図19に示すように、会計金額取得処理の実行後、クライアント機能部202は、レシート発行処理を実行する(ステップST3)。ステップST3のレシート発行処理において、クライアント機能部202は、店舗管理サーバー12と通信し、顧客が購入した商品に関する情報や、顧客が購入した商品の合計金額を示す情報等が印刷されたレシートを発行する。以下、レシート発行処理について詳述する。   As shown in FIG. 19, after executing the transaction amount acquisition process, the client function unit 202 executes a receipt issue process (step ST3). In the receipt issuing process of step ST3, the client function unit 202 communicates with the store management server 12 and issues a receipt on which information related to the product purchased by the customer, information indicating the total price of the product purchased by the customer, and the like are printed. To do. Hereinafter, the receipt issuing process will be described in detail.

図22は、レシート発行処理の実行時のPOS端末13の動作、及び、店舗管理サーバー12の動作を示すフローチャートである。図22(A)はPOS端末13の動作を示し、図22(B)は店舗管理サーバー12の動作を示す。   FIG. 22 is a flowchart showing the operation of the POS terminal 13 and the operation of the store management server 12 when executing the receipt issuing process. 22A shows the operation of the POS terminal 13, and FIG. 22B shows the operation of the store management server 12.

図22(A)に示すように、会計金額取得処理が終了すると、POS端末13の制御装置制御部20のクライアント機能部202は、会計情報を取得する(ステップSY1)。
会計情報は、会計ごとに一意に付与される識別情報(以下、「会計識別情報」という。)と、顧客が購入した商品のそれぞれの商品コード、商品名、単価、数量の組み合わせを示す情報(以下、「購入商品情報」という。)と、合計購入金額(小計)、顧客から受け取った貨幣の金額、及び、顧客に引き渡した釣銭の金額を示す情報(以下、「会計金額情報」という。)と、会計が行われた時刻を示す情報(以下、「会計時刻情報」という。)と、会計が行われた店舗の識別情報である店舗識別情報と、を含む情報である。
なお、会計中、クライアント機能部202は、購入商品情報に含まれる情報、及び、会計金額情報に含まれる情報を、所定の記憶領域に記憶する。ステップSY1において、クライアント機能部202は、当該所定の記憶領域に記憶した情報に基づいて、購入商品情報、及び、会計金額情報を取得する。
また、会計時刻情報が示す会計が行われた時刻は、確定キー641が操作された時刻である。会計時刻情報が示す会計が行われた時刻は、確定キー641が操作された時刻に限らず、会計に際して1つ目の商品のバーコードが読み取られた時刻等、会計に由来する時刻であればよい。
また、クライアント機能部202は、会計に応じて、会計識別情報を生成する機能を有し、当該機能に基づいて、会計識別情報を生成する。会計識別情報の値は、各店舗で行われる会計のそれぞれについて、一意な値とされる。
As shown in FIG. 22 (A), when the accounting amount acquisition process is completed, the client function unit 202 of the control device control unit 20 of the POS terminal 13 acquires accounting information (step SY1).
The accounting information includes identification information uniquely assigned for each accounting (hereinafter referred to as “accounting identification information”) and information indicating a combination of each product code, product name, unit price, and quantity of the product purchased by the customer ( Hereinafter referred to as “purchased product information”), total purchase amount (subtotal), amount of money received from the customer, and information indicating the amount of change delivered to the customer (hereinafter referred to as “accounting amount information”). And information indicating the time when the transaction was made (hereinafter referred to as “accounting time information”) and store identification information which is the identification information of the store where the transaction was performed.
During the accounting, the client function unit 202 stores the information included in the purchased product information and the information included in the accounting amount information in a predetermined storage area. In step SY1, the client function unit 202 acquires purchased product information and accounting amount information based on the information stored in the predetermined storage area.
Further, the time when the transaction indicated by the transaction time information is performed is the time when the enter key 641 is operated. The time at which the accounting indicated by the accounting time information is performed is not limited to the time at which the confirmation key 641 is operated, but may be any time derived from accounting, such as the time when the barcode of the first product is read during accounting. Good.
Further, the client function unit 202 has a function of generating transaction identification information according to the transaction, and generates the transaction identification information based on the function. The value of the transaction identification information is a unique value for each transaction performed at each store.

会計情報の取得後、クライアント機能部202は、制御装置通信部23を制御して、取得した会計情報を示す会計情報データを店舗管理サーバー12に送信する(ステップSY2)。   After acquiring the transaction information, the client function unit 202 controls the control device communication unit 23 to transmit the transaction information data indicating the acquired transaction information to the store management server 12 (step SY2).

図22(B)に示すように、店舗管理サーバー12の店舗管理サーバー制御部40の会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、会計情報データを受信する(ステップSZ1)。
次いで、会計関連処理実行部401は、受信した会計情報データが示す会計情報に基づいて、所定のレイアウトのレシートの発行を指示する記録データを生成する(ステップSZ2)。
記録データは、所定のレイアウトに従って、いわゆるトップロゴや、ボトムロゴ、会計識別情報、会計が行われた時刻、顧客が購入した商品の商品名、単価、数量、合計購入金額、顧客から受け取った貨幣の金額、顧客に引き渡した釣銭の金額等が記録されたレシートの発行を指示する制御データである。記録データは、XMLのフォーマットに従って情報が記述されたXMLドキュメントである。
As shown in FIG. 22B, the transaction related process execution unit 401 of the store management server control unit 40 of the store management server 12 controls the store management server communication unit 42 to receive the transaction information data (step SZ1). ).
Next, the accounting-related process execution unit 401 generates recording data instructing to issue a receipt having a predetermined layout based on the accounting information indicated by the received accounting information data (step SZ2).
The recorded data is in accordance with a predetermined layout, so-called top logo, bottom logo, accounting identification information, time when accounting was performed, product name, unit price, quantity, total purchase price of the product purchased by the customer, and the amount of money received from the customer. This is control data that instructs the issuance of a receipt in which the amount of money, the amount of change delivered to the customer, and the like are recorded. The recording data is an XML document in which information is described according to the XML format.

次いで、会計関連処理実行部401は、店舗管理サーバー通信部42を制御して、生成した記録データを、POS端末13に送信する(ステップSZ3)。   Next, the accounting related process execution unit 401 controls the store management server communication unit 42 to transmit the generated recording data to the POS terminal 13 (step SZ3).

また、会計関連処理実行部401は、ステップSZ1で会計情報データを受信した後、店舗管理サーバー記憶部41が記憶する会計情報管理データベース412にアクセスする(ステップSZ4)。
会計情報管理データベース412の1件のレコードは、会計識別情報と、購入商品情報と、会計金額情報と、会計時刻情報と、店舗識別情報と、を関連付けて記憶する。
次いで、ステップSZ1で受信した会計情報データに基づいて、会計情報管理データベース412に、会計識別情報と、購入商品情報と、会計金額情報と、会計時刻情報と、店舗識別情報とを関連付けた1件のレコードを生成する(ステップSZ5)。
このように、店舗管理サーバー12は、会計に応じた会計情報を累積的に記憶する。これにより、店舗ごとの売上や、店舗における商品ごとの売り上げを管理できる。
Further, after receiving the transaction information data in step SZ1, the transaction related process execution unit 401 accesses the transaction information management database 412 stored in the store management server storage unit 41 (step SZ4).
One record in the transaction information management database 412 stores transaction identification information, purchased product information, transaction amount information, transaction time information, and store identification information in association with each other.
Next, based on the transaction information data received in step SZ1, one item in which transaction identification information, purchased product information, transaction amount information, transaction time information, and store identification information are associated with the transaction information management database 412. Is generated (step SZ5).
As described above, the store management server 12 cumulatively stores the transaction information corresponding to the transaction. Thereby, sales for each store and sales for each product in the store can be managed.

図22(A)に示すように、POS端末13の制御装置制御部20のクライアント機能部202は、制御装置通信部23を制御して記録データを受信する(ステップSY3)。
次いで、クライアント機能部202は、XMLドキュメントの記録データに基づいて、処理制御部201が対応するコマンド体系の記録コマンドを生成する(ステップSY4)。クライアント機能部202は、生成した記録コマンドを処理制御部201に出力する。
次いで、処理制御部201は、生成した記録コマンドに基づいて、制御装置印刷部21を制御して、レシートを発行する(ステップSY5)。
ステップSY5で発行されたレシートは、レジ担当者により、顧客に引き渡される。
As shown in FIG. 22A, the client function unit 202 of the control device control unit 20 of the POS terminal 13 controls the control device communication unit 23 to receive recording data (step SY3).
Next, the client function unit 202 generates a command command recording command corresponding to the processing control unit 201 based on the XML document recording data (step SY4). The client function unit 202 outputs the generated recording command to the process control unit 201.
Next, the processing control unit 201 controls the control device printing unit 21 based on the generated recording command and issues a receipt (step SY5).
The receipt issued in step SY5 is delivered to the customer by the cashier.

以上のように、本実施形態では、会計に応じて、POS端末13が、店舗管理サーバー12の機能を利用して会計処理を行ってレシートを発行する。また、店舗管理サーバー12は、会計処理に基づく会計情報を累積に記憶する。   As described above, in the present embodiment, the POS terminal 13 issues a receipt by performing the accounting process using the function of the store management server 12 according to the accounting. Moreover, the store management server 12 memorize | stores the accounting information based on accounting processing cumulatively.

以上説明したように、本実施形態に係るPOS端末13は、レシート(紙片)の発行に係る機構の使用回数の上限値を当該機構の使用状況に応じて変更し、変更後の上限値に基づいて、当該機構を使用可能な残りの期間を算出する制御装置制御部20を備える。
この構成によれば、レシートの発行に係る機構の劣化の進行度が、当該機構の使用状況に応じて変わるという特性を反映して、レシートの発行に係る機構の使用可能な残りの期間を的確に算出できる。
As described above, the POS terminal 13 according to the present embodiment changes the upper limit value of the number of times of use of the mechanism related to the issuance of a receipt (paper piece) according to the use state of the mechanism, and based on the changed upper limit value. The control device control unit 20 calculates the remaining period during which the mechanism can be used.
According to this configuration, the remaining period of use of the mechanism relating to the issuance of receipts can be accurately determined, reflecting the characteristic that the degree of deterioration of the mechanism relating to the issuance of receipts changes according to the usage status of the mechanism. Can be calculated.

また、本実施形態では、制御装置制御部20は、印刷ヘッド211の使用状況に応じて変更した印刷ヘッド211の使用回数の上限値に基づいて印刷ヘッド211を使用可能な残りの期間を算出する。
この構成によれば、印刷ヘッド211の特性を反映して、印刷ヘッド211の使用可能な残りの期間を的確に算出できる。
In the present embodiment, the control device control unit 20 calculates the remaining period in which the print head 211 can be used based on the upper limit value of the number of times the print head 211 is used, which is changed according to the use state of the print head 211. .
According to this configuration, it is possible to accurately calculate the remaining usable period of the print head 211 by reflecting the characteristics of the print head 211.

また、本実施形態では、制御装置制御部20は、印刷ヘッド211を使用可能な残りの期間の算出にあたって、収容したロール紙(記録媒体)の紙質、種類、又は、厚さの少なくとも1つに基づいて、印刷ヘッド211の使用回数の上限値を変更する。
この構成によれば、印刷ヘッド211の特性を反映して、印刷ヘッド211の使用可能な残りの期間を的確に算出できる。
In the present embodiment, the control device control unit 20 calculates the remaining period in which the print head 211 can be used in at least one of the paper quality, type, and thickness of the accommodated roll paper (recording medium). Based on this, the upper limit value of the number of times the print head 211 is used is changed.
According to this configuration, it is possible to accurately calculate the remaining usable period of the print head 211 by reflecting the characteristics of the print head 211.

また、本実施形態では、制御装置制御部20は、カッター212の使用状況に応じて変更したカッター212の使用回数の上限値に基づいてカッター212を使用可能な残りの期間を算出する。
この構成によれば、カッター212の特性を反映して、カッター212の使用可能な残りの期間を的確に算出できる。
Moreover, in this embodiment, the control apparatus control part 20 calculates the remaining period which can use the cutter 212 based on the upper limit of the frequency | count of use of the cutter 212 changed according to the usage condition of the cutter 212. FIG.
According to this configuration, the remaining period in which the cutter 212 can be used can be accurately calculated by reflecting the characteristics of the cutter 212.

また、本実施形態では、制御装置制御部20は、カッター212を使用可能な残りの期間の算出にあたって、収容したロール紙の紙質、種類、又は、厚さの少なくとも1つに基づいて、カッター212の使用回数の上限値を変更する。
この構成によれば、カッター212の特性を反映して、カッター212の使用可能な残りの期間を的確に算出できる。
Further, in the present embodiment, the control device control unit 20 calculates the remaining period in which the cutter 212 can be used, based on at least one of the paper quality, type, or thickness of the accommodated roll paper. Change the maximum number of times you can use
According to this configuration, the remaining period in which the cutter 212 can be used can be accurately calculated by reflecting the characteristics of the cutter 212.

また、本実施形態では、制御装置制御部20は、算出したレシートの発行に係る機構を使用可能な残りの期間を示す情報をメンテナンスサーバー17(サーバー)に送信する。
この構成によれば、メンテナンスサーバー17は、使用可能な残りの期間に対応した処理を実行できる。
Further, in the present embodiment, the control device control unit 20 transmits information indicating the remaining period in which the calculated mechanism for issuing a receipt can be used to the maintenance server 17 (server).
According to this configuration, the maintenance server 17 can execute processing corresponding to the remaining usable period.

また、本実施形態では、制御装置制御部20は、レシートの発行に係る機構を使用可能な残りの期間として、レシートの発行に係る機構を使用可能な残りの日数を算出する。
この構成によれば、レシートの発行に係る機構を使用可能な残りの期間として、「日数」という人間が把握しやすい情報を提供可能である。
In the present embodiment, the control device control unit 20 calculates the remaining number of days for which the mechanism for issuing a receipt can be used as the remaining period in which the mechanism for issuing a receipt can be used.
According to this configuration, it is possible to provide information that can be easily grasped by humans as “the number of days” as the remaining period during which the mechanism relating to the receipt issuance can be used.

また、以上説明したように、本実施形態に係るPOS端末13(制御装置)は、状態を監視する対象の監視項目の状態を示すステータス情報データ(ステータス情報)を含むログデータD11を生成するログ収集部203、ログ収集部203が生成したログデータD11をリクエストとしてメンテナンスサーバー17(サーバー)に送信し、メンテナンスサーバー17からレスポンスとして処理命令制御データD21(制御データ)を受信する通信管理部204、及び、通信管理部204が受信した処理命令制御データD21に基づいて処理を実行する命令実行部205を有する制御装置制御部20を備える。
この構成によれば、POS端末13からメンテナンスサーバー17にログデータD11を送信する構成を利用して、メンテナンスサーバー17は、ログデータD11に対するレスポンスとして処理命令制御データD21をPOS端末13に所定の処理を実行させることができる。
すなわち、POS端末13からメンテナンスサーバー17にログデータD11を送信するシステムについて、POS端末13がメンテナンスサーバー17にログデータD11を送信する構成に対応する処理を実行できる。
Further, as described above, the POS terminal 13 (control device) according to the present embodiment generates a log data D11 including status information data (status information) indicating the status of a monitoring item whose status is to be monitored. A communication management unit 204 that transmits the log data D11 generated by the collection unit 203 and the log collection unit 203 as a request to the maintenance server 17 (server) and receives the processing command control data D21 (control data) as a response from the maintenance server 17; And the control apparatus control part 20 which has the command execution part 205 which performs a process based on the process command control data D21 which the communication management part 204 received is provided.
According to this configuration, using the configuration in which the log data D11 is transmitted from the POS terminal 13 to the maintenance server 17, the maintenance server 17 sends the processing command control data D21 to the POS terminal 13 as a response to the log data D11. Can be executed.
In other words, for a system that transmits the log data D11 from the POS terminal 13 to the maintenance server 17, processing corresponding to the configuration in which the POS terminal 13 transmits the log data D11 to the maintenance server 17 can be executed.

また、本実施形態では、プラグインの追加によりログ収集部203、通信管理部204、及び、命令実行部205の機能を追加可能に構成した。
この構成によれば、ログ収集部203、通信管理部204、及び、命令実行部205のそれぞれについて、柔軟に簡易な手段で、必要に応じて機能を追加することができる。
In the present embodiment, the functions of the log collection unit 203, the communication management unit 204, and the instruction execution unit 205 can be added by adding plug-ins.
According to this configuration, functions can be added as necessary to each of the log collection unit 203, the communication management unit 204, and the instruction execution unit 205 with flexible and simple means.

また、本実施形態では、ログ収集部203は、命令実行部205の処理結果を取得し、取得した処理結果を示す情報を含む処理結果通知データD12を生成する。通信管理部204は、処理結果通知データD12、及び、ログデータD11をリクエストとしてメンテナンスサーバー17に送信する。
この構成によれば、POS端末13は、メンテナンスサーバー17から受信したデータに基づいて実行した処理の処理結果を、迅速に、メンテナンスサーバー17に通知することができる。
In the present embodiment, the log collection unit 203 acquires the processing result of the instruction execution unit 205, and generates processing result notification data D12 including information indicating the acquired processing result. The communication management unit 204 transmits the processing result notification data D12 and the log data D11 to the maintenance server 17 as requests.
According to this configuration, the POS terminal 13 can quickly notify the maintenance server 17 of the processing result of the process executed based on the data received from the maintenance server 17.

また、本実施形態では、ログ収集部203は、制御装置通信部23(通信部)により通信可能な印刷装置14(外部機器)に関するログデータD11(サブログデータD11s)を生成する。通信管理部204は、ログ収集部203が生成した印刷装置14に関するログデータD11(サブログデータD11s)をメンテナンスサーバー17に送信する。
この構成によれば、POS端末13は、自身に接続された印刷装置14の監視項目の状態を、メンテナンスサーバー17に通知できる。
In the present embodiment, the log collection unit 203 generates log data D11 (sub-log data D11s) related to the printing device 14 (external device) that can communicate with the control device communication unit 23 (communication unit). The communication management unit 204 transmits log data D11 (sub-log data D11s) relating to the printing apparatus 14 generated by the log collection unit 203 to the maintenance server 17.
According to this configuration, the POS terminal 13 can notify the maintenance server 17 of the status of the monitoring items of the printing device 14 connected to the POS terminal 13.

また、以上説明したように、本実施形態に係るメンテナンスサーバー17(サーバー)は、ログデータD11を受信するログ受信部501、及び、ログデータD11の受信に応じて、POS端末13に所定の処理を実行させる処理命令制御データD21(制御データ)をレスポンスとして送信するレスポンス応答部502を有するメンテナンスサーバー制御部50(サーバー制御部)を備える。
この構成によれば、メンテナンスサーバー17は、ログデータD11の受信に応じて、レスポンスとして処理命令制御データD21をPOS端末13に送信して、POS端末13に所定の処理を実行させることができる。すなわち、上記構成によれば、POS端末13からメンテナンスサーバー17にログデータD11を送信するシステムを構成するメンテナンスサーバー17について、POS端末13がログデータD11を送信する構成を利用した処理を実行できる。
In addition, as described above, the maintenance server 17 (server) according to the present embodiment performs predetermined processing on the POS terminal 13 in response to the log reception unit 501 that receives the log data D11 and the reception of the log data D11. A maintenance server control unit 50 (server control unit) having a response response unit 502 that transmits processing command control data D21 (control data) for executing the response as a response.
According to this configuration, the maintenance server 17 can transmit the processing command control data D21 to the POS terminal 13 as a response in response to the reception of the log data D11, and cause the POS terminal 13 to execute predetermined processing. That is, according to the above configuration, the processing using the configuration in which the POS terminal 13 transmits the log data D11 can be executed on the maintenance server 17 that configures the system that transmits the log data D11 from the POS terminal 13 to the maintenance server 17.

また、本実施形態では、レスポンス応答部502は、受信したログデータD11に含まれるPOS端末識別情報(装置識別情報)と対応付けて記憶された実行処理情報を取得し、取得した実行処理情報に対応する処理(実行処理情報が示す処理)を実行させる処理命令制御データD21(制御データ)をレスポンスとして送信する。
この構成によれば、特定のPOS端末13に所定の処理を実行させる場合に、事前に、特定のPOS端末13のPOS端末識別情報と、所定の処理に対応する実行処理情報とを対応付けてメンテナンスサーバー17に登録すれば、メンテナンスサーバー17がレスポンスを送信するタイミングで、POS端末13に所定の処理を実行させることができる。
In the present embodiment, the response response unit 502 acquires the execution process information stored in association with the POS terminal identification information (device identification information) included in the received log data D11, and adds the acquired execution process information to the acquired execution process information. Processing instruction control data D21 (control data) for executing the corresponding processing (processing indicated by the execution processing information) is transmitted as a response.
According to this configuration, when a specific process is to be executed by a specific POS terminal 13, the POS terminal identification information of the specific POS terminal 13 is associated with the execution process information corresponding to the predetermined process in advance. If registered in the maintenance server 17, it is possible to cause the POS terminal 13 to execute a predetermined process at a timing when the maintenance server 17 transmits a response.

また、本実施形態に係るメンテナンスサーバー17は、ログ受信部501が受信したログデータD11に基づく情報を記憶するメンテナンスサーバー記憶部51(サーバー記憶部)を備える。
この構成によれば、メンテナンスサーバー17は、記憶したログデータD11に基づく情報に基づく処理が可能である。
In addition, the maintenance server 17 according to the present embodiment includes a maintenance server storage unit 51 (server storage unit) that stores information based on the log data D11 received by the log reception unit 501.
According to this configuration, the maintenance server 17 can perform processing based on information based on the stored log data D11.

また、本実施形態では、メンテナンスサーバー制御部50は、グローバルネットワークGNを介して外部装置から要求があった場合、メンテナンスサーバー記憶部51が記憶するログデータD11に基づく情報が表示された画面(ユーザーインターフェース、ウェブページ)を外部装置に表示させるログ情報表示部504を有する。
この構成によれば、メンテナンスサーバー17は、表示によって、POS端末13の監視項目の状態に関する有益な情報を提供可能である。
Further, in the present embodiment, the maintenance server control unit 50 displays a screen on which information based on the log data D11 stored in the maintenance server storage unit 51 is displayed when a request is received from an external device via the global network GN (user A log information display unit 504 for displaying an interface and a web page on an external device.
According to this configuration, the maintenance server 17 can provide useful information regarding the status of the monitoring items of the POS terminal 13 by display.

また、以上説明したように、本実施形態に係るメンテナンスサーバー17(サーバー)は、電源が投入された状態のPOS端末13(制御装置)を監視の対象として、リクエストデータD1の送信が正常に行われた状態か否かを監視する監視部505を有するメンテナンスサーバー制御部50を備える。
この構成によれば、電源が投入された状態のPOS端末13をリクエストデータD1の送信が正常に行われた状態か否かの監視の対象とすることにより、監視の対象とする必要のあるPOS端末13が監視の対象となるため、処理効率が良く、メンテナンスサーバー17の処理負荷を低減できる。
Further, as described above, the maintenance server 17 (server) according to the present embodiment normally transmits the request data D1 with the POS terminal 13 (control device) in a power-on state being monitored. A maintenance server control unit 50 having a monitoring unit 505 for monitoring whether or not it is in a broken state is provided.
According to this configuration, the POS terminal 13 in a state where the power is turned on is a target for monitoring whether or not the transmission of the request data D1 is normally performed, so that it is necessary to be a target for monitoring. Since the terminal 13 is a monitoring target, the processing efficiency is good and the processing load on the maintenance server 17 can be reduced.

また、本実施形態では、監視部505は、POS端末13から電源がオンされたことを示すデータを受信した後、電源がオフされたことを示すデータを受信するまでの間、POS端末13を監視の対象とする。
この構成によれば、メンテナンスサーバー17は、POS端末13から受信するデータを利用して、電源が投入された状態のPOS端末13を的確に判別し、当該POS端末13を監視の対象とすることができる。
In this embodiment, the monitoring unit 505 receives the data indicating that the power is turned on from the POS terminal 13 and then receives the data indicating that the power is turned off until the POS terminal 13 is received. Target for monitoring.
According to this configuration, the maintenance server 17 uses the data received from the POS terminal 13 to accurately determine the POS terminal 13 in a power-on state, and makes the POS terminal 13 a monitoring target. Can do.

また、本実施形態では、監視部505は、監視の対象のPOS端末13によるリクエストデータD1の送信が正常に行われた状態ではない場合、その旨報知する。
この構成によれば、リクエストデータD1の送信が正常に行われた状態でないことを担当者に認識させることができる。
In the present embodiment, the monitoring unit 505 notifies the fact that the transmission of the request data D1 by the monitored POS terminal 13 is not normally performed.
According to this configuration, the person in charge can recognize that the transmission of the request data D1 is not normally performed.

また、本実施形態では、監視部505は、ローカルネットワークLNに接続された複数のPOS端末13のうち、電源が投入された状態のPOS端末13の数を取得し、取得した数が所定の閾値を下回る場合、ローカルネットワークLNに接続された複数のPOS端末13を監視の対象としない。
この構成によれば、ローカルネットワークLNに接続されたPOS端末13のうち、電源が投入された状態のPOS端末13の数が所定の閾値を下回る状態の場合に、POS端末13を監視の対象としないことができる。
In the present embodiment, the monitoring unit 505 acquires the number of POS terminals 13 that are turned on among the plurality of POS terminals 13 connected to the local network LN, and the acquired number is a predetermined threshold value. If the value is less than, the plurality of POS terminals 13 connected to the local network LN are not monitored.
According to this configuration, when the number of POS terminals 13 that are turned on among the POS terminals 13 connected to the local network LN falls below a predetermined threshold, the POS terminals 13 are set as monitoring targets. Can not.

また、本実施形態では、監視部505は、所定の時間帯は、ローカルネットワークLNに接続された複数のPOS端末13を監視の対象としない。
この構成によれば、POS端末13の使用の実態に応じて、所定の時間帯において、POS端末13を監視の対象としないようにすることができる。
In the present embodiment, the monitoring unit 505 does not monitor a plurality of POS terminals 13 connected to the local network LN during a predetermined time period.
According to this configuration, it is possible to prevent the POS terminal 13 from being monitored in a predetermined time period according to the actual use of the POS terminal 13.

また、以上説明したように、本実施形態に係るネットワークシステム1において、POS端末13(制御装置)は、状態を監視する対象の監視項目の状態を示すステータス情報データ(ステータス情報)を含むログデータD11を生成し、所定の間隔で生成したログデータD11をリクエストとしてメンテナンスサーバー17(サーバー)に送信する。メンテナンスサーバー17は、契約によりPOS端末13がメンテナンスサーバー17の機能を利用可能な期間を示す契約管理データベース512(契約期間情報)を記憶し、ログデータD11を受信した場合、POS端末13の契約管理データベース512に基づいて、契約期間内であるか否かを判別し、契約期間内ではない場合、契約期間内ではないことを示す情報を含むレスポンスをPOS端末13に送信し、契約期間内である場合、契約期間内であることを示す情報を含むレスポンスをPOS端末13に送信する。POS端末13は、契約期間内ではないことを示す情報を含むレスポンスを受信した場合、ログデータD11を送信する間隔を所定の間隔より長くする。
この構成によれば、契約期間内ではない企業に係るPOS端末13がリクエストデータD1を送信する間隔を、契約期間内の企業に係るPOS端末13がリクエストデータD1を送信する間隔よりも長くすることにより、契約期間内ではない企業に係るPOS端末13によるリクエストデータD1の送信に起因する資源の消費を抑制することができ、また、契約を行った企業とそうでない企業とに対する対応を差別化でき、公平さを担保できる。すなわち、上記構成によれば、POS端末13がメンテナンスサーバー17の機能を利用可能な期間が契約により定められたシステムについて、契約に基づく期間以外の期間でPOS端末13がメンテナンスサーバー17の機能を利用しようとする場合に対応する処理を実行できる。
Further, as described above, in the network system 1 according to the present embodiment, the POS terminal 13 (control device) includes log data including status information data (status information) indicating the status of the monitoring item to be monitored. D11 is generated, and the log data D11 generated at a predetermined interval is transmitted as a request to the maintenance server 17 (server). The maintenance server 17 stores a contract management database 512 (contract period information) indicating a period during which the function of the maintenance server 17 can be used by the POS terminal 13 by contract, and when the log data D11 is received, the contract management of the POS terminal 13 Based on the database 512, it is determined whether or not it is within the contract period. If it is not within the contract period, a response including information indicating that it is not within the contract period is transmitted to the POS terminal 13 and is within the contract period. In this case, a response including information indicating that it is within the contract period is transmitted to the POS terminal 13. When the POS terminal 13 receives a response including information indicating that it is not within the contract period, the interval for transmitting the log data D11 is set longer than a predetermined interval.
According to this configuration, the interval at which the POS terminal 13 related to the company not within the contract period transmits the request data D1 is made longer than the interval at which the POS terminal 13 related to the company within the contract period transmits the request data D1. Thus, it is possible to suppress the consumption of resources due to the transmission of the request data D1 by the POS terminal 13 related to a company that is not within the contract period, and it is possible to differentiate the response between the contracted company and the other company , Can ensure fairness. That is, according to the above configuration, the POS terminal 13 uses the function of the maintenance server 17 in a period other than the period based on the contract for a system in which the period during which the POS terminal 13 can use the function of the maintenance server 17 is determined by the contract. The process corresponding to the case where it is going to be performed can be performed.

また、本実施形態では、POS端末13は、契約期間情報が示す期間内ではないことを示す情報を含むレスポンスの受信に応じてログデータD11を送信する間隔を所定の間隔よりも長くした後、契約期間内であることを示す情報を含むレスポンスを受信した場合、ログデータD11を送信する間隔を所定の間隔とする。
この構成によれば、契約期間内の企業に係るPOS端末13について、ログデータD11を送信する間隔が、所定の間隔よりも長くなることを防止できる。
In the present embodiment, the POS terminal 13 makes the interval for transmitting the log data D11 longer than a predetermined interval in response to receiving a response including information indicating that it is not within the period indicated by the contract period information. When a response including information indicating that it is within the contract period is received, the interval for transmitting the log data D11 is set as a predetermined interval.
According to this configuration, it is possible to prevent the interval at which the log data D11 is transmitted for the POS terminal 13 related to the company within the contract period from becoming longer than the predetermined interval.

また、本実施形態では、POS端末13は、ログデータD11を生成した場合、生成したログデータD11を記憶し、記憶したログデータD11を送信する。POS端末13は、ログデータD11を送信した後、ログデータD11の送信に応じてメンテナンスサーバー17から受信したレスポンスに契約期間内であることを示す情報が含まれた状態の場合、記憶したログデータD11を削除し、レスポンスに契約期間内ではないことを示す情報が含まれた状態の場合、記憶したログデータD11を削除せず、次にリクエストを送信するときに送信する対象とする。メンテナンスサーバー17は、ログデータD11を受信した場合、契約管理データベース512に基づいて、契約期間内であるか否かを判別し、契約期間内の場合、ログデータD11を取得し、取得したログデータD11に基づく情報を記憶し、契約期間内ではない場合、ログデータD11に基づく情報を記憶しない。
この構成によれば、メンテナンスサーバー17において、契約期間内ではない企業に係るログデータD11に基づく情報の記憶が防止され、契約期間内ではない企業に係るPOS端末13によるリクエストデータD1の送信に起因する資源の消費を抑制することができ、また、契約を行った企業とそうでない企業とに対する対応を差別化できる。
In the present embodiment, when the POS terminal 13 generates the log data D11, the POS terminal 13 stores the generated log data D11 and transmits the stored log data D11. After the log data D11 is transmitted, the POS terminal 13 stores the log data stored when the response received from the maintenance server 17 according to the transmission of the log data D11 includes information indicating that it is within the contract period. When D11 is deleted and information indicating that the response is not within the contract period is included, the stored log data D11 is not deleted, but is a target to be transmitted when the next request is transmitted. When the maintenance server 17 receives the log data D11, the maintenance server 17 determines whether it is within the contract period based on the contract management database 512. If it is within the contract period, the maintenance server 17 acquires the log data D11 and acquires the acquired log data. Information based on D11 is stored, and if it is not within the contract period, information based on log data D11 is not stored.
According to this configuration, the maintenance server 17 is prevented from storing information based on the log data D11 related to the company not within the contract period, and is caused by the transmission of the request data D1 by the POS terminal 13 related to the company not within the contract period. It is possible to reduce the consumption of resources to be used, and to differentiate between the contracted company and the non-contracted company.

また、以上説明したように、本実施形態では、POS端末13(制御装置)は、状態を監視する対象の監視項目の状態を示すステータス情報データ(ステータス情報)を含むログデータD11を所定の間隔で生成し、生成したログデータD11をリクエストとしてメンテナンスサーバー17(サーバー)に送信する。POS端末13は、所定の監視項目の状態がエラー状態となる可能性が高い場合、ログデータD11を生成する間隔を所定の間隔よりも短くする。
この構成によれば、POS端末13は、エラー状態となる可能性が高い監視項目について、監視項目の状態を短い間隔でメンテナンスサーバー17に通知でき、これにより、例えば、保守担当者が、監視項目の状態をできるだけ短い間隔で監視し、必要に応じて対応する処理を行うことが可能となる。すなわち、上記構成によれば、クライアントであるPOS端末13から、メンテナンスサーバー17にログデータD11を送信するシステムについて、POS端末13からメンテナンスサーバー17にログデータD11を送信する構成に対応する処理を実行できる。
Further, as described above, in the present embodiment, the POS terminal 13 (control device) stores the log data D11 including the status information data (status information) indicating the status of the monitoring item whose status is to be monitored at a predetermined interval. The generated log data D11 is transmitted as a request to the maintenance server 17 (server). The POS terminal 13 sets the interval for generating the log data D11 to be shorter than the predetermined interval when there is a high possibility that the state of the predetermined monitoring item becomes an error state.
According to this configuration, the POS terminal 13 can notify the maintenance server 17 of the monitoring item status at a short interval with respect to the monitoring item that is likely to be in an error state. Can be monitored at intervals as short as possible, and corresponding processing can be performed as necessary. That is, according to the above configuration, for the system that transmits the log data D11 from the POS terminal 13 that is the client to the maintenance server 17, the processing corresponding to the configuration in which the log data D11 is transmitted from the POS terminal 13 to the maintenance server 17 is executed. it can.

また、本実施形態では、POS端末13は、生成したログデータD11に含まれる監視項目のステータス情報データに係る数値と所定の閾値との関係が所定の関係となった場合、監視項目の状態がエラー状態となる可能性が高いと判別し、ログデータD11を生成する間隔を所定の間隔よりも短くする。
この構成によれば、POS端末13は、監視項目の状態がエラー状態となる可能性が高いか否かを的確に判別できる。
In the present embodiment, the POS terminal 13 determines that the state of the monitoring item is in a state where the relationship between the numerical value related to the status information data of the monitoring item included in the generated log data D11 and the predetermined threshold value is a predetermined relationship. It is determined that there is a high possibility of an error state, and the interval for generating the log data D11 is made shorter than a predetermined interval.
According to this configuration, the POS terminal 13 can accurately determine whether or not the state of the monitoring item is likely to be an error state.

また、本実施形態では、メンテナンスサーバー17は、ログデータD11を受信し、受信したログデータD11に含まれる監視項目のステータス情報データに係る数値と所定の閾値との関係が所定の関係となった場合、監視項目の状態がエラー状態となる可能性が高いことを示す情報を含むレスポンスをPOS端末13に送信する。POS端末13は、エラー状態となる可能性が高いことを示す情報を含むレスポンスを受信した場合、エラー状態となる可能性が高いと判別し、ログデータD11を生成する間隔を所定の間隔よりも短くする。
この構成によれば、メンテナンスサーバー17は、監視項目の状態がエラー状態となる可能性が高いか否かを的確に判別でき、また、POS端末13は、メンテナンスサーバー17の判別結果を利用して、監視項目の状態がエラー状態となる可能性が高いか否かを判別できる。
In the present embodiment, the maintenance server 17 receives the log data D11, and the relationship between the numerical value related to the status information data of the monitoring item included in the received log data D11 and the predetermined threshold value is a predetermined relationship. In this case, a response including information indicating that the monitoring item is likely to be in an error state is transmitted to the POS terminal 13. When the POS terminal 13 receives a response including information indicating that there is a high possibility of being in an error state, the POS terminal 13 determines that there is a high possibility of being in an error state, and sets an interval for generating log data D11 to be greater than a predetermined interval. shorten.
According to this configuration, the maintenance server 17 can accurately determine whether or not the monitoring item is likely to be in an error state, and the POS terminal 13 uses the determination result of the maintenance server 17. Thus, it is possible to determine whether or not the state of the monitoring item is likely to be an error state.

また、本実施形態では、POS端末13は、ログデータD11を生成する間隔を所定の間隔よりも短くした後、エラー状態となる可能性が高くなくなった場合、ログデータD11を生成する間隔を所定の間隔とする。
この構成によれば、POS端末13が不必要に短い間隔でログデータD11を送信することを防止できる。
Further, in the present embodiment, the POS terminal 13 sets the interval for generating the log data D11 when the possibility that an error state is not high after the interval for generating the log data D11 is made shorter than the predetermined interval. The interval of
According to this configuration, it is possible to prevent the POS terminal 13 from transmitting the log data D11 at an unnecessarily short interval.

また、以上説明したように、本実施形態では、POS端末13(制御装置)は、状態を監視する対象の監視項目の状態を示すステータス情報データ(ステータス情報)を含むログデータD11を生成し、生成したログデータD11をリクエストとしてメンテナンスサーバー17に送信する。メンテナンスサーバー17は、ログデータD11を受信した場合、対応するリクエストを送信し、受信したログデータD11に含まれるステータス情報データを第1ステータス情報データベース513(第1データベース)に格納し、受信したログデータD11に含まれるステータス情報データに基づいて監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2ステータス情報データベース514(第2データベース)に格納する。
この構成によれば、第1ステータス情報データベース513の各レコードに基づいて、第2ステータス情報データベース514のレコードの生成に使用した条件と異なる条件を使用した監視項目の状態の分類や、その他の監視項目の状態の分析が可能となる。さらに、第2ステータス情報データベース514の所定のレコードには、所定の方法で判別された分類を示す分類情報が付加される。従って、第2ステータス情報データベース514の所定のレコードに基づいて、対応する監視項目の状態の分類に応じた処理の実行や、監視項目の状態の分類の報知等を即時に実行可能となる。
Further, as described above, in the present embodiment, the POS terminal 13 (control device) generates log data D11 including status information data (status information) indicating the status of the monitoring item to be monitored, The generated log data D11 is transmitted to the maintenance server 17 as a request. When the maintenance server 17 receives the log data D11, the maintenance server 17 transmits a corresponding request, stores the status information data included in the received log data D11 in the first status information database 513 (first database), and receives the received log Based on the status information data included in the data D11, the classification of the state of the monitoring item is determined, status processing information including information indicating the classification is generated, and stored in the second status information database 514 (second database).
According to this configuration, based on each record in the first status information database 513, the classification of the state of the monitoring item using a condition different from the condition used for generating the record in the second status information database 514, and other monitoring The status of items can be analyzed. Furthermore, classification information indicating classification determined by a predetermined method is added to a predetermined record in the second status information database 514. Therefore, based on a predetermined record in the second status information database 514, it is possible to immediately execute processing according to the status category of the corresponding monitoring item, notification of the status classification of the monitoring item, and the like.

また、本実施形態では、メンテナンスサーバー17は、ステータス加工情報の生成に際し、ステータス情報に含まれるステータス識別情報に基づいて監視項目を識別し、監視項目に対応する方法で監視項目の状態の分類を判別する。
この構成によれば、メンテナンスサーバー17は、ステータス識別情報を利用して、的確に監視項目を識別した上で、監視項目に対応する方法で監視項目の状態を分類することができる。
In the present embodiment, the maintenance server 17 identifies the monitoring item based on the status identification information included in the status information when generating the status processing information, and classifies the status of the monitoring item by a method corresponding to the monitoring item. Determine.
According to this configuration, the maintenance server 17 can classify the state of the monitoring item by a method corresponding to the monitoring item after accurately identifying the monitoring item using the status identification information.

また、本実施形態では、メンテナンスサーバー17は、ステータス加工情報の生成に際し、ステータス情報データに含まれるステータス識別情報の値が、ステータス情報データが監視項目の状態を数値によって表す情報であることを示す値である場合、監視項目の状態を表す数値と所定の閾値との関係に基づいて、監視項目の状態の分類を判別する。
この構成によれば、メンテナンスサーバー17は、監視項目の状態の分類を的確に判別できる。
Further, in the present embodiment, when the status processing information is generated, the maintenance server 17 indicates that the value of the status identification information included in the status information data is information in which the status information data represents the state of the monitoring item by a numerical value. If it is a value, the classification of the state of the monitoring item is determined based on the relationship between the numerical value representing the state of the monitoring item and a predetermined threshold.
According to this configuration, the maintenance server 17 can accurately determine the classification of the status of the monitoring item.

また、本実施形態では、メンテナンスサーバー17は、ステータス加工情報の生成に際し、ステータス情報データに含まれるステータス識別情報の値が、ステータス情報データが文字列によって監視項目の状態を表す情報であることを示す値の場合、監視項目の状態を表す文字列の内容に基づいて、監視項目の状態の分類を判別する。
この構成によれば、メンテナンスサーバー17は、監視項目の状態の分類を的確に判別できる。
In the present embodiment, when the status processing information is generated, the maintenance server 17 indicates that the value of the status identification information included in the status information data is information in which the status information data represents the state of the monitoring item by a character string. In the case of the indicated value, the state classification of the monitoring item is determined based on the content of the character string representing the state of the monitoring item.
According to this configuration, the maintenance server 17 can accurately determine the classification of the status of the monitoring item.

また、本実施形態では、メンテナンスサーバー17は、ステータス加工情報の生成に際し、ステータス情報データに含まれるステータス識別情報の値が、ステータス情報データに基づく監視項目の状態の分類の判別を要さないことを示す値である場合、分類情報を含まないステータス加工情報を第2ステータス情報データベース514(第2データベース)に格納する。   Further, in the present embodiment, when the status processing information is generated, the maintenance server 17 does not require the status identification information value included in the status information data to determine the status classification of the monitoring item based on the status information data. In the case of the value indicating status information, status processing information not including classification information is stored in the second status information database 514 (second database).

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
また例えば、上述した実施形態では、店舗システム11が、店舗に適用される場合を例示して発明を説明したが、店舗システム11が適用される施設は、店舗に限らない。
また例えば、ネットワークシステム1を構成する各装置の通信方法はどのような方法でもよい。
また、上述した実施形態では、POS端末13の記録方式は、サーマル式としたが、記録方式は何でもよい。
また例えば、図を用いて説明した各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
また、機能ブロック図に示した機能ブロックは、各装置の機能的構成を示すもので、具体的な実装形態を制限しない。つまり、図中の機能ブロックに対応するハードウェアが実装される必要はなく、一つのプロセッサーがプログラムを実行することで複数の機能部の機能を実現する構成とすることも勿論可能である。また、上記実施形態においてソフトウェアで実現される機能の一部をハードウェアで実現してもよく、あるいは、ハードウェアで実現される機能の一部をソフトウェアで実現してもよい。
The above-described embodiment is merely an aspect of the present invention, and can be arbitrarily modified and applied within the scope of the present invention.
Further, for example, in the above-described embodiment, the invention has been described by exemplifying the case where the store system 11 is applied to a store, but the facility to which the store system 11 is applied is not limited to a store.
Further, for example, any method may be used as a communication method for each device constituting the network system 1.
In the above-described embodiment, the recording method of the POS terminal 13 is the thermal method, but any recording method may be used.
Further, for example, each functional block described with reference to the drawings can be arbitrarily realized by hardware and software, and does not suggest a specific hardware configuration.
Moreover, the functional block shown in the functional block diagram shows the functional configuration of each device, and does not limit a specific mounting form. In other words, it is not necessary to implement hardware corresponding to the functional blocks in the figure, and it is of course possible to adopt a configuration in which the functions of a plurality of functional units are realized by one processor executing a program. In addition, in the above embodiment, a part of the function realized by software may be realized by hardware, or a part of the function realized by hardware may be realized by software.

1…ネットワークシステム、13…POS端末(制御装置、印刷装置)、14…印刷装置、17…メンテナンスサーバー(サーバー)。   DESCRIPTION OF SYMBOLS 1 ... Network system, 13 ... POS terminal (control apparatus, printing apparatus), 14 ... Printing apparatus, 17 ... Maintenance server (server).

Claims (7)

リクエストを送信する制御装置と、前記制御装置にネットワークを介して接続され、リクエストの受信に応じてレスポンスを送信するサーバーとを備え、
前記制御装置は、
状態を監視する対象の監視項目の状態を示すステータス情報を含むログデータを生成し、生成した前記ログデータをリクエストとして前記サーバーに送信し、
前記サーバーは、
前記ログデータを受信した場合、対応するリクエストを送信し、
受信した前記ログデータに含まれる前記ステータス情報を第1データベースに格納し、
受信した前記ログデータに含まれる前記ステータス情報に基づいて前記監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2データベースに格納する
ことを特徴とするネットワークシステム。
A control device that transmits a request; and a server that is connected to the control device via a network and that transmits a response in response to reception of the request;
The controller is
Generating log data including status information indicating the status of the monitoring item to be monitored, and transmitting the generated log data to the server as a request;
The server
When receiving the log data, send the corresponding request,
Storing the status information included in the received log data in a first database;
A network that determines a status classification of the monitoring item based on the status information included in the received log data, generates status processing information including information indicating the classification, and stores the status processing information in a second database system.
前記制御装置は、
前記監視項目の前記ステータス情報に、前記監視項目を識別するステータス識別情報を含め、
前記サーバーは、
前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報に基づいて前記監視項目を識別し、前記監視項目に対応する方法で前記監視項目の状態の分類を判別する
ことを特徴とする請求項1に記載のネットワークシステム。
The controller is
The status information of the monitoring item includes status identification information for identifying the monitoring item,
The server
When generating the status processing information, the monitoring item is identified based on the status identification information included in the status information, and the state classification of the monitoring item is determined by a method corresponding to the monitoring item. The network system according to claim 1.
前記サーバーは、
前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報の値が、前記ステータス情報が前記監視項目の状態を数値によって表す情報であることを示す値である場合、
前記監視項目の状態を表す数値と所定の閾値との関係に基づいて、前記監視項目の状態の分類を判別する
ことを特徴とする請求項2に記載のネットワークシステム。
The server
When generating the status processing information, when the value of the status identification information included in the status information is a value indicating that the status information is information representing the state of the monitoring item by a numerical value,
The network system according to claim 2, wherein a classification of the state of the monitoring item is determined based on a relationship between a numerical value representing the state of the monitoring item and a predetermined threshold value.
前記サーバーは、
前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報の値が、前記ステータス情報が文字列によって前記監視項目の状態を表す情報であることを示す値の場合、
前記監視項目の状態を表す文字列の内容に基づいて、前記監視項目の状態の分類を判別する
ことを特徴とする請求項2又は3に記載のネットワークシステム。
The server
When generating the status processing information, when the value of the status identification information included in the status information is a value indicating that the status information is information indicating the state of the monitoring item by a character string,
The network system according to claim 2 or 3, wherein a classification of the state of the monitoring item is determined based on a content of a character string representing the state of the monitoring item.
前記サーバーは、
前記ステータス加工情報の生成に際し、前記ステータス情報に含まれる前記ステータス識別情報の値が、前記ステータス情報に基づく前記監視項目の状態の分類の判別を要さないことを示す値である場合、
分類を示す情報を含まない前記ステータス加工情報を前記第2データベースに格納する
ことを特徴とする請求項2乃至4のいずれか1項に記載のネットワークシステム。
The server
When generating the status processing information, when the value of the status identification information included in the status information is a value indicating that it is not necessary to determine the status classification of the monitoring item based on the status information,
The network system according to any one of claims 2 to 4, wherein the status processing information not including information indicating classification is stored in the second database.
状態を監視する対象の監視項目の状態を示すステータス情報を含むログデータを生成し、生成した前記ログデータをリクエストとして送信する制御装置にネットワークを介して接続可能なサーバーであって、
前記ログデータを受信した場合、対応するリクエストを送信し、
受信した前記ログデータに含まれる前記ステータス情報を第1データベースに格納し、
受信した前記ログデータに含まれる前記ステータス情報に基づいて前記監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2データベースに格納する
ことを特徴とするサーバー。
A server that generates log data including status information indicating a status of a monitoring item to be monitored, and that can be connected via a network to a control device that transmits the generated log data as a request;
When receiving the log data, send the corresponding request,
Storing the status information included in the received log data in a first database;
A server that determines a status classification of the monitoring item based on the status information included in the received log data, generates status processing information including information indicating the classification, and stores the status processing information in a second database .
リクエストを送信する制御装置と、前記制御装置にネットワークを介して接続され、リクエストの受信に応じてレスポンスを送信するサーバーとを備えるネットワークシステムの制御方法であって、
前記制御装置は、
状態を監視する対象の監視項目の状態を示すステータス情報を含むログデータを生成し、生成した前記ログデータをリクエストとして前記サーバーに送信し、
前記サーバーは、
前記ログデータを受信した場合、対応するリクエストを送信し、
受信した前記ログデータに含まれる前記ステータス情報を第1データベースに格納し、
受信した前記ログデータに含まれる前記ステータス情報に基づいて前記監視項目の状態の分類を判別し、分類を示す情報を含むステータス加工情報を生成し、第2データベースに格納する
ことを特徴とするネットワークシステムの制御方法。
A control method of a network system comprising: a control device that transmits a request; and a server that is connected to the control device via a network and transmits a response in response to reception of the request,
The controller is
Generating log data including status information indicating the status of the monitoring item to be monitored, and transmitting the generated log data to the server as a request;
The server
When receiving the log data, send the corresponding request,
Storing the status information included in the received log data in a first database;
A network that determines a status classification of the monitoring item based on the status information included in the received log data, generates status processing information including information indicating the classification, and stores the status processing information in a second database How to control the system.
JP2015128467A 2015-06-26 2015-06-26 Network system, server, and network system control method Active JP6493017B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015128467A JP6493017B2 (en) 2015-06-26 2015-06-26 Network system, server, and network system control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015128467A JP6493017B2 (en) 2015-06-26 2015-06-26 Network system, server, and network system control method

Publications (2)

Publication Number Publication Date
JP2017010491A true JP2017010491A (en) 2017-01-12
JP6493017B2 JP6493017B2 (en) 2019-04-03

Family

ID=57761615

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015128467A Active JP6493017B2 (en) 2015-06-26 2015-06-26 Network system, server, and network system control method

Country Status (1)

Country Link
JP (1) JP6493017B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019175200A (en) * 2018-03-29 2019-10-10 シヤチハタ株式会社 Consumable management system for stamp face machines

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010086516A (en) * 2008-09-04 2010-04-15 Hitachi Ltd Method for analyzing fault caused in virtualized environment, management server, and program
JP2014191491A (en) * 2013-03-26 2014-10-06 Japan Digital Laboratory Co Ltd Information processor and information processing system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010086516A (en) * 2008-09-04 2010-04-15 Hitachi Ltd Method for analyzing fault caused in virtualized environment, management server, and program
JP2014191491A (en) * 2013-03-26 2014-10-06 Japan Digital Laboratory Co Ltd Information processor and information processing system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019175200A (en) * 2018-03-29 2019-10-10 シヤチハタ株式会社 Consumable management system for stamp face machines

Also Published As

Publication number Publication date
JP6493017B2 (en) 2019-04-03

Similar Documents

Publication Publication Date Title
CN106301884B (en) Control device, network system, and server
EP3109815A1 (en) Network system, control method of a network system and control device
JP6507882B2 (en) Network system and control method of network system
EP3154237B1 (en) Network system and communication control method
US10048912B2 (en) Control device, control method of a control device, server, and network system
JP6485250B2 (en) Network system and network system control method
JP6561622B2 (en) Network system, network system control method, and control apparatus
JP6493017B2 (en) Network system, server, and network system control method
JP6536219B2 (en) Network system, server, and control method of network system
JP6540444B2 (en) Network system and server
JP2017016177A (en) Network system, server, and network system control method
JP6596973B2 (en) Network system and network system control method
JP2017077660A (en) Printer, fan motor replacement period calculating method, and network system
JP2017010488A (en) Server, network system and control method for server
JP2017016180A (en) Server and server control method
JP2017016179A (en) Control device, network system, and control device control method
JP2017007302A (en) Printer, and control method of printer
JP2017010493A (en) Network system and network system control method
JP6623661B2 (en) Network system and communication control method
JP6550900B2 (en) Network system, control method of network system, and control device
JP6531606B2 (en) Network system
JP2017011660A (en) Network system and control method for the same
JP6686377B2 (en) Network system
JP6701729B2 (en) Control server, store management system, and control method of control server
JP6634832B2 (en) Network system, information processing apparatus, and control method for information processing apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180326

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20180906

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181026

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181106

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20181116

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181207

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: 20190205

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190218

R150 Certificate of patent or registration of utility model

Ref document number: 6493017

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150