JP2017130044A - Pos system, printer and control method of printer - Google Patents

Pos system, printer and control method of printer Download PDF

Info

Publication number
JP2017130044A
JP2017130044A JP2016008955A JP2016008955A JP2017130044A JP 2017130044 A JP2017130044 A JP 2017130044A JP 2016008955 A JP2016008955 A JP 2016008955A JP 2016008955 A JP2016008955 A JP 2016008955A JP 2017130044 A JP2017130044 A JP 2017130044A
Authority
JP
Japan
Prior art keywords
port
printing
printing apparatus
state
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2016008955A
Other languages
Japanese (ja)
Inventor
巧 山口
Takumi Yamaguchi
巧 山口
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 JP2016008955A priority Critical patent/JP2017130044A/en
Publication of JP2017130044A publication Critical patent/JP2017130044A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a POS system, a printer and a control method of the printer which can suppress delay in processing based on a command received from a management device.SOLUTION: A store system 3 includes: a printer 9 having a USB port P1 and a LAN port 2; a POS terminal 8 connected to the USB port P1; and a management device 11 connected to the LAN port P2. The POS terminal 8 can transmit a receipt issue command instructing execution of printing to the USB port P1. The management device 11 can transmit a transmission command instructing transmission of the state of the printer 9 to the LAN port P2. The printer executes processing based on the transmission command received by the LAN port P2 in preference to processing based on the receipt issue command received by the USB port P1 when it is determined that the state of itself is turned into the prescribed state.SELECTED DRAWING: Figure 3

Description

本発明は、POSシステム、印刷装置、及び、印刷装置の制御方法に関する。   The present invention relates to a POS system, a printing apparatus, and a printing apparatus control method.

従来、サーバーと複数のデジタル複合機とがネットワークを介して接続するネットワークシステムにおいて、同じネットワーク内の1のデジタル複合機又はサーバーのファームウェアを更新することにより、ネットワーク内に接続する全てのデジタル複合機のファームウェアが更新するシステムが知られている(例えば、特許文献1参照)。   Conventionally, in a network system in which a server and a plurality of digital multi-function peripherals are connected via a network, all digital multi-function peripherals connected to the network by updating the firmware of one digital multi-function peripheral or server in the same network There is known a system in which the firmware is updated (see, for example, Patent Document 1).

特開2006−129362号公報JP 2006-129362 A

一般に、複数のポートを有する印刷装置と、印刷装置に印刷コマンドを送信するPOS装置と、印刷装置の状態を取得し印刷装置を管理する管理装置とを備えるPOSシステムが知られている。この種のPOSシステムの印刷装置は、POS装置から送信される印刷コマンドに基づく処理を優先して実行する構成とされる場合がある。特に、店舗のレジにて利用される印刷装置は、レシートの発行に遅延を生じさせないために常にレシートの印刷処理を優先して実行している。しかし、このような構成の印刷装置は、印刷装置の状態に係らず、印刷の動作を優先して実行するため、管理装置から受信したコマンドに基づく処理に遅延が発生する可能性があり、印刷装置が印刷の動作を実行できない状態が長い期間継続してしまう虞があった。
そこで、本発明は、印刷装置の状態に応じて、優先して実行する印刷装置の処理を変えることにより、管理装置から受信したコマンドに基づく処理の遅延を抑制できるようにすることを目的とする。
In general, a POS system including a printing apparatus having a plurality of ports, a POS apparatus that transmits a print command to the printing apparatus, and a management apparatus that acquires the state of the printing apparatus and manages the printing apparatus is known. A printing apparatus of this type of POS system may be configured to preferentially execute processing based on a print command transmitted from the POS apparatus. In particular, a printing apparatus used at a cash register in a store always executes the receipt printing process with priority in order to prevent a delay in issuing a receipt. However, since a printing apparatus having such a configuration executes printing operations with priority regardless of the state of the printing apparatus, there is a possibility that processing may be delayed based on commands received from the management apparatus. There is a possibility that the state in which the apparatus cannot execute the printing operation continues for a long period of time.
Therefore, an object of the present invention is to suppress a delay in processing based on a command received from a management device by changing processing of a printing device to be executed with priority according to the state of the printing device. .

上記目的を達成するために、本発明は、第1ポートと第2ポートとを有する印刷装置と、前記第1ポートに接続するPOS装置と、前記第2ポートに接続する管理装置とを備えるPOSシステムであって、前記POS装置は、印刷の実行を指示する印刷コマンドを前記第1ポートに送信可能であり、前記管理装置は、前記印刷装置の状態の送信を指示する送信コマンドを前記第2ポートに送信可能であり、前記印刷装置は、自身の状態が所定の状態になったと判別した場合、前記第2ポートで受信する前記送信コマンドに基づく処理を、前記第1ポートで受信する前記印刷コマンドに基づく処理よりも優先して実行することを特徴とする。
これにより、印刷装置の状態が所定の状態である場合に、第1ポートで受信する印刷コマンドに基づく処理よりも優先して第2ポートで受信する送信コマンドに基づく処理を実行するため、管理装置から受信したコマンドに基づく処理の遅延を抑制できる。
In order to achieve the above object, the present invention provides a POS comprising a printing device having a first port and a second port, a POS device connected to the first port, and a management device connected to the second port. In the system, the POS device can transmit a print command instructing execution of printing to the first port, and the management device transmits a transmission command instructing transmission of the state of the printing device to the second port. The printing apparatus is capable of transmitting to a port, and when the printing apparatus determines that its own state has reached a predetermined state, the printing apparatus receives processing based on the transmission command received at the second port at the first port. It is characterized by being executed with priority over processing based on commands.
Thereby, when the state of the printing apparatus is a predetermined state, the management apparatus executes processing based on the transmission command received at the second port in preference to processing based on the printing command received at the first port. The processing delay based on the command received from can be suppressed.

また、本発明は、前記印刷装置は、前記第1ポートで前記印刷コマンドを受信した場合、受信した印刷コマンドに基づく処理を優先して実行し、受信した前記印刷コマンドに基づく処理を実行している間、前記管理装置から送信される前記送信コマンドを処理せず、自身の状態が前記所定の状態になったと判別した場合に、前記第2ポートで受信した前記送信コマンドに基づく処理を優先して実行することを特徴とする。
これにより、印刷コマンドに基づく処理を実行している間、送信コマンドを処理せず、印刷装置が所定の状態になった場合に、送信コマンドに基づく処理を優先して実行するため、印刷コマンドに基づく処理を実行している場合であっても、管理装置から受信した送信コマンドに基づく処理の遅延を抑制できる。
Further, according to the present invention, when the printing apparatus receives the print command at the first port, the printing apparatus preferentially executes processing based on the received print command, and executes processing based on the received print command. If the transmission command transmitted from the management device is not processed while it is determined that its own state is the predetermined state, the processing based on the transmission command received at the second port is prioritized. It is characterized by executing.
As a result, while the processing based on the print command is being executed, the transmission command is not processed, and the processing based on the transmission command is preferentially executed when the printing apparatus is in a predetermined state. Even when the processing based on the command is executed, the delay of the processing based on the transmission command received from the management apparatus can be suppressed.

また、本発明は、前記印刷装置は、前記第1ポートを示す第1ポート情報、又は、前記第2ポートを示す第2ポート情報のいずれかに、処理を優先して実行することを示す優先情報が対応付く優先ポート情報を記憶し、自身の状態が前記所定の状態になったと判別した場合、前記第2ポート情報に前記優先情報を対応付け、前記優先ポート情報に基づき、前記第2ポートで受信する前記送信コマンドに基づく処理を優先して実行することを特徴とする。
これにより、印刷装置が所定の状態になった場合、第2ポート情報に優先情報を対応付けるため、優先ポート情報に基づいて、送信コマンドに基づく処理を実行でき、管理装置から受信したコマンドに基づく処理の遅延を抑制できる。
Also, the present invention provides a priority indicating that the printing apparatus preferentially executes a process on either the first port information indicating the first port or the second port information indicating the second port. If the priority port information associated with the information is stored and it is determined that its own state is the predetermined state, the priority information is associated with the second port information, and the second port information is based on the priority port information. The processing based on the transmission command received in step 1 is preferentially executed.
Thus, when the printing apparatus is in a predetermined state, the priority information is associated with the second port information, so that the process based on the transmission command can be executed based on the priority port information, and the process based on the command received from the management apparatus Can be suppressed.

また、本発明は、前記印刷装置は、前記所定の状態が解除された場合、前記第1ポート情報に前記優先情報を対応付けることを特徴とする。
これにより、印刷装置が所定の状態から解除された場合、第1ポート情報に優先情報を対応付けるため、印刷装置が所定の状態になった後、所定の状態が解除された場合、印刷コマンドに基づく処理を優先して実行できる。
Further, the present invention is characterized in that the printing apparatus associates the priority information with the first port information when the predetermined state is released.
As a result, when the printing apparatus is released from the predetermined state, priority information is associated with the first port information. Therefore, when the predetermined state is released after the printing apparatus is in the predetermined state, the print command is used. Processing can be prioritized and executed.

また、本発明は、前記所定の状態は、前記印刷装置が印刷できない状態であることを特徴とする。
これにより、印刷装置が印刷の動作を実行できない場合に、管理装置から受信したコマンドに基づく処理の遅延を抑制できる。
In addition, the present invention is characterized in that the predetermined state is a state in which the printing apparatus cannot print.
Thereby, when the printing apparatus cannot execute the printing operation, it is possible to suppress a delay in processing based on the command received from the management apparatus.

上記目的を達成するために、本発明は、POS装置と接続し、前記POS装置から印刷の実行を指示する印刷コマンドを受信する第1ポートと、管理装置と接続し、前記管理装置から前記印刷装置の状態の送信を指示する送信コマンドを受信する第2ポートと、自身の状態が所定の状態になったと判別した場合、前記第2ポートで受信する前記送信コマンドに基づく処理を、前記第1ポートで受信する前記印刷コマンドに基づく処理よりも優先して実行する制御部と、を備えることを特徴とする。
これにより、印刷装置の状態が所定の状態である場合に、第1ポートで受信する印刷コマンドに基づく処理よりも優先して第2ポートで受信する送信コマンドに基づく処理を実行するため、管理装置から受信したコマンドに基づく処理の遅延を抑制できる。
In order to achieve the above object, the present invention connects a POS device, receives a print command for instructing execution of printing from the POS device, connects to a management device, and connects the print from the management device. When it is determined that the second port that receives a transmission command instructing transmission of the state of the device and the state of the device has reached a predetermined state, processing based on the transmission command received at the second port is And a control unit that has priority over processing based on the print command received at the port.
Thereby, when the state of the printing apparatus is a predetermined state, the management apparatus executes processing based on the transmission command received at the second port in preference to processing based on the printing command received at the first port. The processing delay based on the command received from can be suppressed.

上記目的を達成するために、本発明は、POS装置と接続し、前記POS装置から印刷の実行を指示する印刷コマンドを受信する第1ポートと、管理装置と接続し、前記管理装置から印刷装置の状態の送信を指示する送信コマンドを受信する第2ポートと、を備える印刷装置の制御方法であって、自身の状態が所定の状態になったと判別した場合、前記第2ポートで受信する前記送信コマンドに基づく処理を、前記第1ポートで受信する前記印刷コマンドに基づく処理よりも優先して実行することを特徴とする。
これにより、印刷装置の状態が所定の状態である場合に、第1ポートで受信する印刷コマンドに基づく処理よりも優先して第2ポートで受信する送信コマンドに基づく処理を実行するため、管理装置から受信したコマンドに基づく処理の遅延を抑制できる。
In order to achieve the above object, the present invention connects a POS device, a first port for receiving a print command instructing execution of printing from the POS device, a management device, and the management device to the printing device. And a second port for receiving a transmission command for instructing transmission of the state of the printing apparatus, wherein the second port receives the second port when it is determined that the state is a predetermined state. The process based on the transmission command is executed with priority over the process based on the print command received at the first port.
Thereby, when the state of the printing apparatus is a predetermined state, the management apparatus executes processing based on the transmission command received at the second port in preference to processing based on the printing command received at the first port. The processing delay based on the command received from can be suppressed.

本実施形態に係るネットワークシステムの構成を示す図。The figure which shows the structure of the network system which concerns on this embodiment. メンテナンスサーバーの構成を示すブロック図。The block diagram which shows the structure of a maintenance server. 店舗システムの構成を示すブロック図。The block diagram which shows the structure of a store system. POS端末、及び、印刷装置のフローチャート。The flowchart of a POS terminal and a printing apparatus. 印刷装置、管理装置、及び、メンテナンスサーバーのフローチャート。The flowchart of a printing apparatus, a management apparatus, and a maintenance server. 店舗システムの動作を示すフローチャート。The flowchart which shows operation | movement of a shop system. 優先ポートテーブルの一例を示す図。The figure which shows an example of a priority port table.

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

図1は、本実施形態に係るネットワークシステム1の構成を示す図である。ネットワークシステム1は、スーパーマーケットや、コンビニエンスストア、デパート、飲食店等の商品や、サービス等を提供し、当該提供に応じて会計が行われる店舗を運営する企業が利用するシステムである。
図1に示すように、ネットワークシステム1は、複数の店舗システム3(POSシステム)と、メンテナンスサーバー7とを備える。
FIG. 1 is a diagram showing a configuration of a network system 1 according to the present embodiment. The network system 1 is a system that is used by companies that provide products, services, etc., such as supermarkets, convenience stores, department stores, restaurants, etc., and operate stores that perform accounting according to the provisions.
As shown in FIG. 1, the network system 1 includes a plurality of store systems 3 (POS systems) and a maintenance server 7.

店舗システム3は、店舗に設けられるシステムである。
図1に示すように、店舗システム3は、ローカルネットワークLNを備える。ローカルネットワークLNには、1又は複数の印刷装置9と、POSサーバー10と、管理装置11と、通信装置12とが接続する。1又は複数の印刷装置9のそれぞれには、POS端末8(POS装置)が接続する。
The store system 3 is a system provided in the store.
As shown in FIG. 1, the store system 3 includes a local network LN. One or a plurality of printing devices 9, a POS server 10, a management device 11, and a communication device 12 are connected to the local network LN. A POS terminal 8 (POS device) is connected to each of one or a plurality of printing devices 9.

印刷装置9は、印刷機能を有する装置である。印刷装置9は、印刷装置9を制御するPOS端末8と共に、店舗において顧客が会計を行なうレジカウンターに設けられる。つまり、レジカウンターには、印刷装置9と、POS端末8とが設けられる。   The printing device 9 is a device having a printing function. The printing device 9 is provided at a cashier counter at which a customer accounts at a store together with a POS terminal 8 that controls the printing device 9. That is, the register counter is provided with the printing device 9 and the POS terminal 8.

POS端末8は、印刷装置9と通信し、印刷装置9を制御する装置である。後述するように、店舗システム3において、POS端末8は、レジカウンターで行われる会計に応じて、POSサーバー10から必要な情報を取得して会計処理を実行し、会計処理に基づいて、印刷装置9にレシートを発行させる。印刷装置9により発行されたレシートは、レジ担当者によって顧客に引き渡される。   The POS terminal 8 is a device that communicates with the printing apparatus 9 and controls the printing apparatus 9. As will be described later, in the store system 3, the POS terminal 8 obtains necessary information from the POS server 10 according to the accounting performed at the cashier counter, executes the accounting processing, and based on the accounting processing, the printing device Let 9 issue a receipt. The receipt issued by the printing device 9 is delivered to the customer by the cashier.

POSサーバー10は、POS端末8が会計処理を行うのに必要な情報を記憶するサーバーである。   The POS server 10 is a server that stores information necessary for the POS terminal 8 to perform accounting processing.

管理装置11は、印刷装置9の状態に関する情報をメンテナンスサーバー7に送信する機能を備える装置である。   The management device 11 is a device having a function of transmitting information related to the state of the printing device 9 to the maintenance server 7.

POS端末8、印刷装置9、POSサーバー10、及び、管理装置11の構成、機能、及び、機能に基づく処理の詳細については後述する。   Details of the configuration, functions, and processing based on the functions of the POS terminal 8, the printing apparatus 9, the POS server 10, and the management apparatus 11 will be described later.

通信装置12は、ローカルネットワークLNと、グローバルネットワークGNとを接続するインターフェース装置である。通信装置12は、モデム(又は、ONU(Optical Network Unit))としての機能、ルーター機能、NAT(Network Address Translation)機能、及び、DHCP(Dynamic Host Configuration Protocol)サーバー機能等を有する。通信装置12は、ローカルネットワークLNに接続された機器と、グローバルネットワークGNに接続された機器との間で行われる通信に際し、機器間で送受信されるデータを転送する。なお、図1では、通信装置12を1つのブロックで表現するが、通信装置12は、機能に応じた複数の装置を有する構成でもよい。   The communication device 12 is an interface device that connects the local network LN and the global network GN. The communication device 12 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 12 transfers data transmitted and 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 12 is represented by one block, but the communication device 12 may have a plurality of devices according to functions.

店舗システム3において、印刷装置9と、POSサーバー10と、管理装置11とは、ローカルネットワークLNを介して通信可能である。
また、店舗システム3の管理装置11は、通信装置12の機能を利用して、ローカルネットワークLN、及び、グローバルネットワークGNを介して、メンテナンスサーバー7と通信する。
In the store system 3, the printing device 9, the POS server 10, and the management device 11 can communicate with each other via the local network LN.
Moreover, the management apparatus 11 of the store system 3 communicates with the maintenance server 7 via the local network LN and the global network GN using the function of the communication apparatus 12.

メンテナンスサーバー7は、店舗システム3に設けられた印刷装置9の状態を管理する機能を有するサーバーである。メンテナンスサーバー7については後述する。   The maintenance server 7 is a server having a function of managing the state of the printing device 9 provided in the store system 3. The maintenance server 7 will be described later.

なお、図1では、メンテナンスサーバー7、及び、POSサーバー10を、それぞれ、1つのブロックによって表現するが、これは、これらサーバーが、それぞれ、単一のサーバー装置により構成されることを意味するものではない。例えば、メンテナンスサーバー7、及び、POSサーバー10は、複数のサーバー装置を含んで構成されたものでもよい。
また、メンテナンスサーバー7と、管理装置11との間では、VPN(Virtual Private Network)等の、暗号化に係る技術や、仮想専用線(物理的な専用線であってもよい。)に係る技術によりセキュアな通信が行われる。
In FIG. 1, the maintenance server 7 and the POS server 10 are each represented by one block, which means that each of these servers is constituted by a single server device. is not. For example, the maintenance server 7 and the POS server 10 may be configured to include a plurality of server devices.
Further, between the maintenance server 7 and the management apparatus 11, a technology related to encryption, such as a VPN (Virtual Private Network), or a technology related to a virtual private line (may be a physical private line). Thus, secure communication is performed.

次に、メンテナンスサーバー7の構成について説明する。
図2は、メンテナンスサーバー7の構成を示すブロック図である。
Next, the configuration of the maintenance server 7 will be described.
FIG. 2 is a block diagram showing the configuration of the maintenance server 7.

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

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

メンテナンスサーバー記憶部72は、図示しないハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを不揮発的に記憶する。また、メンテナンスサーバー記憶部72は、後述するステータスデータベース72aを記憶する。   The maintenance server storage unit 72 includes a hard disk (not shown) and a nonvolatile memory such as an EEPROM, and stores various data in a nonvolatile manner. The maintenance server storage unit 72 stores a status database 72a described later.

メンテナンスサーバー通信部73は、メンテナンスサーバー制御部71の制御で、ローカルネットワークLNを介して、グローバルネットワークGNに接続する店舗システム3と通信する。   The maintenance server communication unit 73 communicates with the store system 3 connected to the global network GN via the local network LN under the control of the maintenance server control unit 71.

次に、店舗システム3が備えるPOS端末8、印刷装置9、POSサーバー10、及び、管理装置11の構成について説明する。
図3は、店舗システム3の構成を示すブロック図である。
Next, the configuration of the POS terminal 8, the printing device 9, the POS server 10, and the management device 11 provided in the store system 3 will be described.
FIG. 3 is a block diagram showing the configuration of the store system 3.

POS端末8は、印刷装置9を制御するホストコンピューターである。特に、POS端末8は、レジカウンターにおいて行われる会計に基づいて会計処理を実行し、会計処理に基づいて印刷装置9を制御して、印刷装置9にレシートを発行させる。   The POS terminal 8 is a host computer that controls the printing apparatus 9. In particular, the POS terminal 8 executes an accounting process based on the accounting performed at the checkout counter, controls the printing apparatus 9 based on the accounting process, and causes the printing apparatus 9 to issue a receipt.

図3に示すように、POS端末制御部80と、POS端末記憶部81と、POS端末通信部82と、POS端末デバイス通信部83とを備える。   As shown in FIG. 3, a POS terminal control unit 80, a POS terminal storage unit 81, a POS terminal communication unit 82, and a POS terminal device communication unit 83 are provided.

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

POS端末記憶部81は、図示しないハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを不揮発的に記憶する。   The POS terminal storage unit 81 includes a hard disk (not shown) and a nonvolatile memory such as an EEPROM, and stores various data in a nonvolatile manner.

POS端末通信部82は、POS端末制御部80の制御で、印刷装置9と通信する。本実施形態では、POS端末通信部82は、印刷装置9のUSBインターフェース93bに接続し、USB規格に従って印刷装置9と通信する。   The POS terminal communication unit 82 communicates with the printing apparatus 9 under the control of the POS terminal control unit 80. In the present embodiment, the POS terminal communication unit 82 is connected to the USB interface 93b of the printing apparatus 9 and communicates with the printing apparatus 9 according to the USB standard.

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

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

バーコードスキャナーBSは、商品や、商品の包装等に付されたバーコードを読み取り、読取結果を示すデータをPOS端末デバイス通信部83に出力する。POS端末デバイス通信部83は、バーコードスキャナーBSから入力されたデータを、POS端末制御部80に出力する。   The barcode scanner BS reads a barcode attached to a product, product packaging, and the like, and outputs data indicating the read result to the POS terminal device communication unit 83. The POS terminal device communication unit 83 outputs the data input from the barcode scanner BS to the POS terminal control unit 80.

カスタマーディスプレーCDは、液晶ディスプレー等の表示装置であり、POS端末制御部80の制御で、各種情報を表示する。カスタマーディスプレーCDに表示された情報は、レジカウンターで会計を行う顧客が視認できる。   The customer display CD is a display device such as a liquid crystal display, and displays various information under the control of the POS terminal control unit 80. The information displayed on the customer display CD can be visually recognized by customers who check out at the checkout counter.

キャッシュドロアーKSは、現金を収容するトレイや、トレイをロックし、ロックを解除する機構、トレイを引き出す機構等を備え、POS端末制御部80の制御で、ロックを解除し、トレイを引き出す。   The cash drawer KS includes a tray for storing cash, a mechanism for locking and unlocking the tray, a mechanism for pulling out the tray, and the like. The control is controlled by the POS terminal control unit 80 to release the lock and pull out the tray.

ディスプレーDPは、液晶表示パネル等の表示パネルを備え、POS端末制御部80の制御で、各種情報を表示する。ディスプレーDPに表示された情報は、レジカウンターでレジを行うレジ担当者が視認できる。   The display DP includes a display panel such as a liquid crystal display panel, and displays various types of information under the control of the POS terminal control unit 80. The information displayed on the display DP can be visually recognized by a cashier in charge at the cashier counter.

印刷装置9は、前述したとおり、印刷機能を有する装置であり、例えば、店舗において顧客が会計を行うレジカウンターに設けられる。印刷装置9は、ロール紙(不図示)を収容し、ロール紙にライン型のサーマルヘッドによってドットを形成することにより、画像を印刷するラインサーマルプリンターである。図1に示すように、印刷装置9は、印刷装置制御部90(制御部)と、印刷装置印刷部91と、印刷装置記憶部92と、印刷装置通信部93とを備える。   As described above, the printing device 9 is a device having a printing function. For example, the printing device 9 is provided at a cashier counter where a customer accounts at a store. The printing device 9 is a line thermal printer that stores roll paper (not shown) and prints an image by forming dots on the roll paper with a line-type thermal head. As illustrated in FIG. 1, the printing device 9 includes a printing device control unit 90 (control unit), a printing device printing unit 91, a printing device storage unit 92, and a printing device communication unit 93.

印刷装置制御部90は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、印刷装置9を制御する。   The printing apparatus control unit 90 includes a CPU, a ROM, a RAM, and other peripheral circuits (not shown) and controls the printing apparatus 9.

印刷装置印刷部91は、印刷ヘッド911、カッター912、及び、搬送モーター913の印刷機構を備える。   The printing apparatus printing unit 91 includes a print head 911, a cutter 912, and a printing mechanism of a transport motor 913.

印刷ヘッド911は、ロール紙の搬送方向と交わる方向に解像度に応じた複数の発熱素子が並んで設けられたライン型のサーマルヘッドであり、発熱素子を発熱させて、感熱紙であるロール紙にドットを形成する。
カッター912は、固定刃と可動刃とを備え、固定刃に対して可動刃を相対的に移動させて固定刃と可動刃とを交叉させることにより、ロール紙を切断する。
搬送モーター913は、搬送ローラー(不図示)を回転させて、印刷装置9の筐体に収容されたロール紙を搬送する。
印刷装置印刷部91は、印刷装置制御部90の制御で、搬送モーター913によりロール紙を搬送しつつ、印刷ヘッド911によりロール紙にレシートに係る画像を印刷し、カッター912により所定の位置でロール紙を切断して、レシートを発行する。
The print head 911 is a line-type thermal head in which a plurality of heating elements corresponding to the resolution are arranged in a direction intersecting with the conveyance direction of the roll paper, and heat is generated from the heating elements to roll paper that is thermal paper. Form dots.
The cutter 912 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 transport motor 913 rotates a transport roller (not shown) to transport the roll paper accommodated in the casing of the printing apparatus 9.
The printing apparatus printing unit 91 controls the printing apparatus control unit 90 to print an image related to the receipt on the roll paper by the print head 911 while the roll motor is transported by the transport motor 913, and rolls the paper at a predetermined position by the cutter 912. Cut the paper and issue a receipt.

印刷装置記憶部92は、図示しないハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを不揮発的に記憶する。また、印刷装置記憶部92は、後述するログファイル92a、及び、優先ポートテーブル92bを記憶する。   The printing device storage unit 92 includes a hard disk (not shown) and a nonvolatile memory such as an EEPROM, and stores various data in a nonvolatile manner. The printing device storage unit 92 stores a log file 92a and a priority port table 92b described later.

印刷装置通信部93は、LANインターフェース93aと、USBインターフェース93bとを備える。   The printing apparatus communication unit 93 includes a LAN interface 93a and a USB interface 93b.

LANインターフェース93aは、LANに係るLANポートP2(第2ポート)を有するインターフェースボード、その他のLAN通信に従った通信に関する構成を備える。LANインターフェース93aが有線LANインターフェースである場合、有線LANインターフェースは、イーサネット(登録商標)等の有線LANに係る通信プロトコルに対応するインターフェースボード、その他の有線LANに係る通信プロトコルに従った通信に関する構成を備える。また、LANインターフェース93aが無線LANインターフェースである場合、無線LANインターフェースは、Wi−Fi(登録商標)等の無線LANに係る通信プロトコルに対応する無線通信モジュール、その他の無線LANに係る通信プロトコルに従った通信に関する構成を備える。
本実施形態では、管理装置11は、LANインターフェース93aが有線LANインターフェースである場合において、LANインターフェース93aのLANポートP2を介して印刷装置9と通信する場合を例示する。したがって、LANインターフェース93aは、印刷装置制御部90の制御で、LANポートP2にLANケーブルを介して接続された管理装置11と通信する。
The LAN interface 93a includes an interface board having a LAN port P2 (second port) related to the LAN, and other configurations related to communication according to LAN communication. When the LAN interface 93a is a wired LAN interface, the wired LAN interface has a configuration related to communication according to a communication protocol related to a wired LAN such as Ethernet (registered trademark), and other communication protocols related to a wired LAN. Prepare. When the LAN interface 93a is a wireless LAN interface, the wireless LAN interface conforms to a wireless communication module corresponding to a communication protocol related to a wireless LAN, such as Wi-Fi (registered trademark), and other communication protocols related to the wireless LAN. A configuration related to communication is provided.
In the present embodiment, the management device 11 exemplifies a case where the LAN interface 93a communicates with the printing device 9 via the LAN port P2 of the LAN interface 93a when the LAN interface 93a is a wired LAN interface. Therefore, the LAN interface 93a communicates with the management apparatus 11 connected to the LAN port P2 via the LAN cable under the control of the printing apparatus control unit 90.

USBインターフェース93bは、USBに係るUSBポートP1(第1ポート)を有するインターフェースボード、その他のUSB通信に従った通信に関する構成を備える。USBインターフェース93bは、印刷装置制御部90の制御で、USBポートP1にUSBケーブルを介して接続されたPOS端末8との間で通信する。   The USB interface 93b includes an interface board having a USB port P1 (first port) related to USB, and other configurations related to communication according to USB communication. The USB interface 93b communicates with the POS terminal 8 connected to the USB port P1 via a USB cable under the control of the printing apparatus control unit 90.

なお、本実施形態では、LANに係るLANポートP2は、印刷装置9が有する第2ポートに相当し、USBに係るUSBポートP1は、印刷装置9が有する第1ポートに相当する。   In this embodiment, the LAN port P2 related to the LAN corresponds to the second port included in the printing apparatus 9, and the USB port P1 related to the USB corresponds to the first port included in the printing apparatus 9.

図3に示すように、POSサーバー10は、商品マスター10aを備える。商品マスター10aは、店舗で販売される商品について、商品の商品コードと、商品の単価と、その他の商品に関する情報とを対応付けて記憶するデータベースである。   As shown in FIG. 3, the POS server 10 includes a product master 10a. The product master 10a is a database that stores a product code of a product, a unit price of the product, and information about other products in association with each other for the products sold in the store.

管理装置11は、管理装置制御部111と、管理装置記憶部112と、管理装置通信部113とを備える。   The management device 11 includes a management device control unit 111, a management device storage unit 112, and a management device communication unit 113.

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

管理装置記憶部112は、図示しないハードディスクや、EEPROM等の不揮発性メモリーを備え、各種データを記憶する。   The management device storage unit 112 includes a hard disk (not shown) and a nonvolatile memory such as an EEPROM, and stores various data.

管理装置通信部113は、管理装置制御部111の制御で、ローカルネットワークLNにアクセスし、ローカルネットワークLNに接続された機器(印刷装置9を含む。)と通信する。また、管理装置通信部113は、管理装置制御部111の制御で、通信装置12を制御して、ローカルネットワークLN、及び、グローバルネットワークGNを介して、メンテナンスサーバー7と通信する。   The management device communication unit 113 accesses the local network LN and communicates with devices (including the printing device 9) connected to the local network LN under the control of the management device control unit 111. Further, the management device communication unit 113 controls the communication device 12 under the control of the management device control unit 111 and communicates with the maintenance server 7 via the local network LN and the global network GN.

次に、店舗のレジカウンターにおいて、会計が行われた場合のPOS端末8、及び、印刷装置9の動作について説明する。
図4は、会計が行われた場合のPOS端末8、及び、印刷装置9の動作を示すフローチャートであり、(A)はPOS端末8の動作を示し、(B)は印刷装置9の動作を示す。
Next, operations of the POS terminal 8 and the printing device 9 when a transaction is made at the register counter of the store will be described.
FIG. 4 is a flowchart showing the operations of the POS terminal 8 and the printing device 9 when accounting is performed. FIG. 4A shows the operation of the POS terminal 8, and FIG. 4B shows the operation of the printing device 9. Show.

図4の(A)に示すように、POS端末8のPOS端末制御部80は、顧客の会計に応じて、会計処理を実行する(ステップSA1)。
詳述すると、会計に際し、レジ担当者は、顧客が購入した商品に付されたバーコードをバーコードスキャナーBSにより読み取る。POS端末制御部80は、バーコードスキャナーBSの読み取り結果に基づいて、商品の商品コードを取得し、適宜、POSサーバー10の商品マスター10aを参照して、商品の単価等の会計処理に必要な商品に関する情報を取得する。POS端末制御部80は、取得した商品に関する情報に基づいて、カスタマーディスプレーCDや、ディスプレーDPに商品に関する情報を表示する。また、POS端末制御部80は、取得した商品に関する情報に基づいて、合計金額の計算や、釣銭の計算を行って会計を確定し、カスタマーディスプレーCDや、ディスプレーDPに計算結果を示す情報を表示し、また、キャッシュドロアーKSを制御する。
As shown in FIG. 4A, the POS terminal control unit 80 of the POS terminal 8 executes transaction processing according to customer transaction (step SA1).
More specifically, at the time of accounting, the cashier in charge reads the barcode attached to the product purchased by the customer with the barcode scanner BS. The POS terminal control unit 80 acquires the product code of the product based on the reading result of the barcode scanner BS, and refers to the product master 10a of the POS server 10 as necessary, and is necessary for accounting processing such as the unit price of the product. Get information about the product. The POS terminal control unit 80 displays information about the product on the customer display CD or the display DP based on the acquired information about the product. In addition, the POS terminal control unit 80 calculates the total amount or calculates the change based on the information related to the acquired product, confirms the accounting, and displays information indicating the calculation result on the customer display CD or the display DP. In addition, the cash drawer KS is controlled.

ステップSA1の会計処理を実行した後、POS端末制御部80は、会計処理に基づいて、印刷装置9に会計に関する情報(商品に関する情報や、合計金額に関する情報、釣銭に関する情報等)が印刷されたレシートを発行させるレシート発行コマンド(印刷コマンド)を生成する(ステップSA2)。つまり、POS端末制御部80は、印刷装置9に印刷の動作を指示するコマンドとして、レシート印刷コマンドを生成する。   After executing the accounting process in step SA1, the POS terminal control unit 80 prints information relating to accounting (information relating to merchandise, information relating to the total amount, information relating to change, etc.) on the printing device 9 based on the accounting process. A receipt issue command (print command) for issuing a receipt is generated (step SA2). That is, the POS terminal control unit 80 generates a receipt print command as a command for instructing the printing apparatus 9 to perform a printing operation.

次いで、POS端末制御部80は、POS端末通信部82を制御して、生成したレシート発行コマンドを印刷装置9に送信する(ステップSA3)。   Next, the POS terminal control unit 80 controls the POS terminal communication unit 82 to transmit the generated receipt issue command to the printing device 9 (step SA3).

図4の(B)に示すように、印刷装置9の印刷装置制御部90は、印刷装置通信部93を制御して、USBポートP1を介してレシート発行コマンドを受信する(ステップSB1)。   As shown in FIG. 4B, the printing apparatus control unit 90 of the printing apparatus 9 controls the printing apparatus communication unit 93 to receive a receipt issue command via the USB port P1 (step SB1).

次いで、印刷装置制御部90は、受信したレシート発行コマンドに基づいて、印刷装置印刷部91を制御して、レシートを発行する(ステップSB2)。発行されたレシートは、レジ担当者によって、顧客に引き渡される。   Next, the printing apparatus control unit 90 controls the printing apparatus printing unit 91 based on the received receipt issuing command to issue a receipt (step SB2). The issued receipt is delivered to the customer by the cashier.

次に、メンテナンスサーバー7により印刷装置9の状態を管理するときの印刷装置9、管理装置11、及び、メンテナンスサーバー7の動作について説明する。
図5は、印刷装置9、管理装置11、及び、メンテナンスサーバー7の動作を示すフローチャートであり、(A)は印刷装置9の動作を示し、(B)は管理装置11の動作を示し、(C)はメンテナンスサーバー7の動作を示す。
Next, operations of the printing device 9, the management device 11, and the maintenance server 7 when the state of the printing device 9 is managed by the maintenance server 7 will be described.
FIG. 5 is a flowchart showing the operations of the printing device 9, the management device 11, and the maintenance server 7. (A) shows the operation of the printing device 9, (B) shows the operation of the management device 11, and C) shows the operation of the maintenance server 7.

図5の(B)に示すように、管理装置11の管理装置制御部111は、所定のタイミングで、印刷装置9の状態に係る情報を含む印刷装置状態情報データの送信を指示する送信コマンドを印刷装置9に送信する(ステップSD1)。送信コマンドは、印刷装置の状態の送信を指示するコマンドに相当する。また、印刷装置状態情報データは、予め定められた監視項目のログを含む。   As shown in FIG. 5B, the management device control unit 111 of the management device 11 sends a transmission command for instructing transmission of printing device state information data including information related to the state of the printing device 9 at a predetermined timing. The data is transmitted to the printing device 9 (step SD1). The transmission command corresponds to a command for instructing transmission of the status of the printing apparatus. The printing apparatus status information data includes a log of predetermined monitoring items.

監視項目とは、印刷装置9の状態を監視し、ログを取る対象とすることが事前に定められた項目のことである。本実施形態では、監視項目として、監視項目:プリンターエラー、監視項目:印刷ヘッド形成ライン累計数、監視項目:カッター使用累計数が少なくとも存在する。なお、本実施形態で説明する監視項目は一例であり、例示した監視項目に加えて、又は、例示した監視項目の少なくとも一部に代えて、他の監視項目が存在してもよい。例えば、監視項目として、印刷装置9に接続されたデバイスに関する項目や、通信に関する項目(データ転送速度等)等が存在してもよい。   The monitoring item is an item that is predetermined to monitor the state of the printing apparatus 9 and take a log. In this embodiment, at least monitoring item: printer error, monitoring item: print head formation line cumulative number, and monitoring item: cutter usage cumulative number exist as monitoring items. 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. For example, as a monitoring item, there may be an item related to a device connected to the printing apparatus 9, an item related to communication (data transfer speed or the like), and the like.

図5の(A)に示すように、印刷装置9の印刷装置制御部90は、LANポートP2を介して、印刷装置状態情報データの送信を指示する送信コマンドを受信する(ステップSC1)。次いで、印刷装置制御部90は、印刷装置記憶部92が記憶するログファイル92aに基づき、印刷装置状態情報データを生成する。   As shown in FIG. 5A, the printing apparatus control unit 90 of the printing apparatus 9 receives a transmission command instructing transmission of printing apparatus state information data via the LAN port P2 (step SC1). Next, the printing apparatus control unit 90 generates printing apparatus state information data based on the log file 92 a stored in the printing apparatus storage unit 92.

ログファイル92aとは、ログ情報が記述されたファイルである。ログ情報とは、複数の監視項目のログである。監視項目とは、印刷装置9の状態を監視し、ログを取る対象とすることが事前に定められた項目のことである。   The log file 92a is a file in which log information is described. The log information is a log of a plurality of monitoring items. The monitoring item is an item that is predetermined to monitor the state of the printing apparatus 9 and take a log.

監視項目:プリンターエラーのログとして、ログファイル92aには、プリンターエラーが発生したことを示す情報、及び、発生したプリンターエラーが解消したことを示す情報が、日時を示す情報と共に、時系列で記録される。プリンターエラーとは、ロール紙の紙切れや、ロール紙の紙詰まり、印刷ヘッド911の異常発熱等、正常に印刷を行うことができない状態をいう。   Monitoring item: As a printer error log, the log file 92a records information indicating that a printer error has occurred and information indicating that the printer error has been resolved in time series 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, jamming of roll paper, abnormal heat generation of the print head 911, or the like.

印刷装置制御部90は、プリンターエラーが発生したか否か、及び、プリンターエラーが解消したか否かを監視し(監視項目:プリンターエラーの状態を監視し)、監視結果に基づいて、ログファイル92aに監視項目:プリンターエラーのログを記録する。   The printing apparatus control unit 90 monitors whether a printer error has occurred and whether the printer error has been resolved (monitoring item: monitors the status of the printer error), and based on the monitoring result, the log file A log of monitoring item: printer error is recorded in 92a.

監視項目:印刷ヘッド形成ライン累計数のログとして、ログファイル92aには、印刷ヘッド形成ライン累計数を示す情報が、日時を示す情報と共に、時系列で記録される。印刷ヘッド形成ライン累計数とは、印刷ヘッド911により形成したラインの累計数のことである。本実施形態に係る印刷装置9の印刷装置印刷部91は、印刷ヘッド911による1ライン分のドットの形成、及び、搬送機構による1ライン分のロール紙の搬送を交互に繰り返し行って画像の印刷を実行する。また上述したように、ラインの形成とは、印刷ヘッド911により1ライン分のドットを形成することをいう。   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 92a 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 911. The printing apparatus printing unit 91 of the printing apparatus 9 according to this embodiment prints an image by alternately repeating the formation of dots for one line by the print head 911 and the conveyance of roll paper for one line by the conveyance mechanism. Execute. As described above, the formation of a line means that a dot for one line is formed by the print head 911.

印刷装置制御部90は、所定の間隔で印刷ヘッドライン累計数を取得し(監視項目:印刷ヘッド形成ライン累計数を監視し)、ログファイル92aに監視項目:印刷ヘッド形成ライン累計数のログを記録する。   The printing apparatus control unit 90 acquires the cumulative number of print head lines at a predetermined interval (monitoring item: monitors the cumulative number of print head formation lines), and logs the monitoring item: cumulative number of print head formation lines in the log file 92a. Record.

監視項目:カッター使用累計数のログとして、ログファイル92aには、カッター使用累計数を示す情報が、日時を示す情報と共に、時系列で記録される。カッター使用累計数とは、カッター912が行ったロール紙の切断の累計数のことである。   Monitoring item: As a log of the cumulative number of cutters used, information indicating the cumulative number of cutters used is recorded in time series in the log file 92a 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 912.

印刷装置制御部90は、所定の間隔でカッター使用累計数を取得し(監視項目:カッター使用累計数を監視し)、ログファイル92aに監視項目:カッター使用累計数のログを記録する。   The printing apparatus control unit 90 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 monitored item: cumulative number of cutters used in the log file 92a.

印刷装置9の印刷装置制御部90は、印刷装置状態情報データを生成し、LANポートP2を介して管理装置11に送信する(ステップSC2)。   The printing apparatus control unit 90 of the printing apparatus 9 generates printing apparatus status information data and transmits it to the management apparatus 11 via the LAN port P2 (step SC2).

管理装置11の管理装置制御部111は、管理装置通信部113を制御して、印刷装置状態情報データを受信し(ステップSD2)、所定の記憶領域に記憶する(ステップSD3)。   The management device control unit 111 of the management device 11 controls the management device communication unit 113 to receive the printing device state information data (step SD2) and store it in a predetermined storage area (step SD3).

管理装置制御部111は、印刷装置状態情報データの受信、記憶と並行して、ステータスデータ(後述)を生成するタイミングが到来したか否かを監視する(ステップSD4)。本実施形態では、管理装置11からメンテナンスサーバー7に対して、所定の間隔でステータスデータを生成し、送信する構成となっている。ステップSD4において、管理装置通信部113は、前回、印刷装置状態情報データを送信してから所定の間隔が経過した場合、ステータスデータを生成するタイミングが到来したと判別する。   The management apparatus control unit 111 monitors whether the timing for generating status data (described later) has arrived in parallel with the reception and storage of the printing apparatus state information data (step SD4). In the present embodiment, status data is generated and transmitted from the management apparatus 11 to the maintenance server 7 at predetermined intervals. In step SD4, the management device communication unit 113 determines that the timing for generating the status data has arrived when a predetermined interval has elapsed since the printing device state information data was transmitted last time.

ステータスデータを生成するタイミングが到来した場合(ステップSD4:YES)、管理装置制御部111は、所定の記憶領域に記憶した印刷装置状態情報データ(複数の印刷装置9に対応する複数の印刷装置状態情報データが記憶された状態の場合は、複数の印刷装置状態情報データ)に基づいて、ステータスデータを生成する(ステップSD5)。   When the timing for generating the status data has arrived (step SD4: YES), the management apparatus control unit 111 stores the printing apparatus state information data (a plurality of printing apparatus states corresponding to the plurality of printing apparatuses 9) stored in a predetermined storage area. If the information data is stored, status data is generated based on a plurality of printing apparatus state information data (step SD5).

ステータスデータとは、印刷装置状態情報データの送信元の印刷装置9のそれぞれについて、印刷装置9を識別する情報と、印刷装置状態データに含まれる監視項目ごとのログ情報との組み合わせを含むデータである。   The status data is data including a combination of information for identifying the printing device 9 and log information for each monitoring item included in the printing device status data for each printing device 9 that is the transmission source of the printing device status information data. is there.

ステータスデータを生成した後、管理装置制御部111は、管理装置通信部113を制御して、生成したステータスデータをメンテナンスサーバー7に送信する(ステップSD6)。次いで、管理装置制御部111は、所定の記憶領域に記憶された印刷装置状態情報データを、所定の記憶領域から削除し(ステップSD7)、処理手順をステップSD2へ戻す。   After generating the status data, the management device control unit 111 controls the management device communication unit 113 to transmit the generated status data to the maintenance server 7 (step SD6). Next, the management apparatus control unit 111 deletes the printing apparatus state information data stored in the predetermined storage area from the predetermined storage area (step SD7), and returns the processing procedure to step SD2.

図4の(C)に示すように、メンテナンスサーバー7は、ステータスデータを受信する(ステップSE1)。次いで、メンテナンスサーバー7は、受信したステータスデータに基づいて、ステータスデータベース72aを更新する(ステップSE2)。   As shown in FIG. 4C, the maintenance server 7 receives the status data (step SE1). Next, the maintenance server 7 updates the status database 72a based on the received status data (step SE2).

ステータスデータベース72aとは、店舗システム3に設けられた印刷装置9ごとに、印刷装置9を識別する情報と、監視項目ごとのログ情報とを対応付けて記憶するデータベースである。ステップSE2において、メンテナンスサーバー7は、ステータスデータに含まれる印刷装置9ごとのログ情報に基づいて、ステータスデータベース72aに記憶されたログ情報を更新する。   The status database 72a is a database that stores information for identifying the printing device 9 and log information for each monitoring item in association with each printing device 9 provided in the store system 3. In step SE2, the maintenance server 7 updates the log information stored in the status database 72a based on the log information for each printing device 9 included in the status data.

以上のようにして、ステータスデータベース72aは、店舗システム3に設けられた印刷装置9のそれぞれについて、印刷装置9を識別する情報と、最新のログ情報とが対応付けられた状態とされる。
メンテナンスサーバー7は、特定の印刷装置9の状態についての問い合わせに応じて、ステータスデータベース72aを参照し、当該特定の印刷装置9のログ情報を取得する。次いで、メンテナンスサーバー7は、取得したログ情報に基づいて、当該特定の印刷装置9の状態に関する情報を応答する。これによって、メンテナンスサーバー7は、店舗システム3の印刷装置9の保守を担当する保守担当者に対して、ステータスデータベース72aに基づき、印刷装置9の保守のために有益な情報を提供する。
As described above, the status database 72a is in a state in which information for identifying the printing device 9 is associated with the latest log information for each of the printing devices 9 provided in the store system 3.
The maintenance server 7 refers to the status database 72a in response to an inquiry about the state of the specific printing apparatus 9, and acquires log information of the specific printing apparatus 9. Next, the maintenance server 7 responds with information on the state of the specific printing device 9 based on the acquired log information. As a result, the maintenance server 7 provides useful information for maintenance of the printing apparatus 9 to the maintenance person in charge of maintenance of the printing apparatus 9 of the store system 3 based on the status database 72a.

ところで、印刷装置9は、受信したコマンドに基づく処理を複数並行して実行しない構成とされる場合がある。これは、印刷装置9が印刷の動作の実行の指示するコマンドを複数受信した場合に、並行して搬送モーター913や印刷ヘッド911等の印刷機構が動作することを確実に防止するためである。また、この種の印刷装置9は、受信したコマンドに基づく処理を優先して実行可能に構成される場合がある。特に、店舗システム3で利用される印刷装置9は、レシートの発行に遅延を生じさせないため、レシート発行コマンドに基づく処理を優先して実行する場合がある。つまり、本実施形態では、USBポートP1を介して受信するレシート発行コマンドに基づく処理を優先して実行する場合がある。したがって、処理を複数並行して実行しない構成の場合、レシート発行コマンドに基づく処理を実行している間は、印刷装置9は、他の受信したコマンドに基づく処理を実行しない。しかしながら、印刷装置9は、レシート発行コマンドに基づく処理を実行している間、他のコマンドに基づく処理を実行しないため、レシートを発行している間、印刷の動作が実行できない状態になった場合でも他のコマンドに基づく処理を実行しない。つまり、印刷装置9は、レシートを発行している間、例えば、ロール紙の紙切れ場合や、印刷ヘッド911が故障した場合等の印刷の動作が実行できない状態になった場合、管理装置11から受信するコマンドに基づく処理に遅延が生じる。管理装置11から受信するコマンドに基づく処理に遅延が発生すると、メンテナンスサーバー7は、印刷装置9が印刷の動作を実行できない状態であることの情報の取得に遅延が発生する。これにより、保守担当者へ、印刷装置9が印刷の動作を実行できない状態であることの情報の提供に遅延が生じ、印刷装置9の状態が印刷の動作を実行できない状態が長い期間継続する可能性がある。   By the way, the printing apparatus 9 may be configured not to execute a plurality of processes based on the received command in parallel. This is to reliably prevent the printing mechanisms such as the transport motor 913 and the print head 911 from operating in parallel when the printing apparatus 9 receives a plurality of commands instructing execution of the printing operation. In addition, this type of printing apparatus 9 may be configured to be able to preferentially execute processing based on a received command. In particular, the printing device 9 used in the store system 3 may preferentially execute processing based on the receipt issuance command in order not to delay receipt issuance. In other words, in the present embodiment, processing based on a receipt issue command received via the USB port P1 may be preferentially executed. Therefore, in the case of a configuration in which a plurality of processes are not executed in parallel, the printing apparatus 9 does not execute a process based on another received command while executing a process based on the receipt issue command. However, since the printing apparatus 9 does not execute processing based on other commands while executing processing based on the receipt issue command, the printing apparatus 9 is in a state where printing cannot be performed while issuing a receipt. However, it does not execute processing based on other commands. That is, the printing apparatus 9 receives from the management apparatus 11 when issuing a receipt, for example, when a roll operation is out of print or when a printing operation cannot be performed, such as when the print head 911 fails. Processing is delayed. When a delay occurs in processing based on a command received from the management apparatus 11, the maintenance server 7 has a delay in acquiring information indicating that the printing apparatus 9 is in a state where it cannot execute a printing operation. As a result, there is a delay in providing information to the maintenance staff that the printing apparatus 9 cannot execute the printing operation, and the state of the printing apparatus 9 cannot continue the printing operation for a long period of time. There is sex.

そこで、本実施形態の店舗システム3は、以下の動作を実行する。   Therefore, the store system 3 of the present embodiment performs the following operation.

図6は、店舗システム3の動作を示すフローチャートである。図6において、(A)はPOS端末8の動作を示し、(B)は印刷装置9の動作を示し、(C)は管理装置11の動作を示す。   FIG. 6 is a flowchart showing the operation of the store system 3. 6A shows the operation of the POS terminal 8, FIG. 6B shows the operation of the printing device 9, and FIG. 6C shows the operation of the management device 11.

POS端末8のPOS端末制御部80は、会計処理を実行しレシート発行コマンドを生成すると、図6の(A)に示すように、生成したレシート発行コマンドを印刷装置9に送信する(ステップSF1)。   When the POS terminal control unit 80 of the POS terminal 8 executes the accounting process and generates the receipt issue command, as shown in FIG. 6A, the generated receipt issue command is transmitted to the printing apparatus 9 (step SF1). .

図6の(B)に示すように、印刷装置9の印刷装置制御部90は、レシート発行コマンドを受信し(ステップSG1)、レシートの発行を開始する(ステップSG2)。レシートの発行を実行している間、印刷装置制御部90は、自身の状態が後述する状態でない場合、管理装置11からLANポートP2を介して送信コマンドを受信しない。これによって、仮に、管理装置11から印刷の動作を指示するコマンドを受信した場合であっても、並行した印刷機構の動作を伴う処理を防止できる。   As shown in FIG. 6B, the printing apparatus control unit 90 of the printing apparatus 9 receives the receipt issuance command (step SG1) and starts issuing the receipt (step SG2). While issuing a receipt, the printing apparatus control unit 90 does not receive a transmission command from the management apparatus 11 via the LAN port P2 when its own state is not a state described later. Accordingly, even if a command for instructing a printing operation is received from the management apparatus 11, a process involving the operation of the printing mechanism in parallel can be prevented.

次いで、印刷装置制御部90は、自身の状態が印刷の動作が実行できない状態であるか否かを判別する(ステップSG3)。印刷の動作が実行できない状態とは、例えば、ロール紙の紙切れや、ロール紙の紙詰まり、印刷ヘッド911の異常発熱等、正常に印刷を実行できない状態を示す。   Next, the printing apparatus control unit 90 determines whether or not its own state is a state in which a printing operation cannot be performed (step SG3). The state in which the printing operation cannot be performed indicates a state in which printing cannot be normally performed, for example, the roll paper is out of paper, the roll paper is jammed, or the print head 911 is abnormally heated.

印刷装置制御部90は、自身の状態が印刷の動作を実行できない状態であると判別した場合(ステップS3:YES)、ログファイル92aの監視項目:プリンターエラーに、プリンターエラーが発生したことのログを記録する。そして、印刷装置制御部90は、優先ポートテーブル92b(優先ポート情報)が備えるLANポートP2情報(第2ポート情報)に、処理を優先して実行することを示す優先情報を対応付ける(ステップSG4)。   When the printing apparatus control unit 90 determines that its own state is a state in which the printing operation cannot be executed (step S3: YES), a log indicating that a printer error has occurred in the monitoring item: printer error in the log file 92a Record. Then, the printing apparatus control unit 90 associates priority information indicating that the process is preferentially executed with the LAN port P2 information (second port information) included in the priority port table 92b (priority port information) (step SG4). .

ここで、優先ポートテーブル92bについて説明する。
図7は、優先ポートテーブル92bの一例を示す図である。
Here, the priority port table 92b will be described.
FIG. 7 is a diagram illustrating an example of the priority port table 92b.

優先ポートテーブル92bが格納する1件のレコードには、ポートフィールドF1と、優先フィールドF2とが対応付く。ポートフィールドF1は、印刷装置9が備えるインターフェースが有するポートを示す情報を格納する。本実施形態の場合、印刷装置9は、LANポートP2と、USBポートP1とを備える。そのため、ポートフィールドF1には、図7に示すように、USBポートP1を示すUSBポートP1情報(第1ポート情報)と、LANポートP2を示すLANポートP2情報(第2ポート情報)とを格納する。優先フィールドF2は、印刷装置9が有するポートが受信したコマンドに基づく処理を優先して実行することを示す優先情報(図7では、「○」で表現)を格納する。優先情報は、優先ポートテーブル92bが複数のレコードを格納する場合でも、1のレコードの優先フィールドF2のみに格納される。図7では、レコードR1に優先情報(図7では、「○」で表現)が格納され、レコードR2には優先情報が格納されない。   The port field F1 and the priority field F2 are associated with one record stored in the priority port table 92b. The port field F1 stores information indicating a port included in an interface included in the printing apparatus 9. In the case of this embodiment, the printing apparatus 9 includes a LAN port P2 and a USB port P1. Therefore, as shown in FIG. 7, the port field F1 stores USB port P1 information (first port information) indicating the USB port P1 and LAN port P2 information (second port information) indicating the LAN port P2. To do. The priority field F2 stores priority information (represented by “◯” in FIG. 7) indicating that processing based on a command received by the port of the printing apparatus 9 is preferentially executed. The priority information is stored only in the priority field F2 of one record even when the priority port table 92b stores a plurality of records. In FIG. 7, priority information (represented by “◯” in FIG. 7) is stored in the record R1, and priority information is not stored in the record R2.

印刷装置制御部90は、優先する処理を優先情報が対応付くポートを示す情報に基づき、実行する。すなわち、図7の場合、レコードR1の優先フィールドF2に優先情報(図7では、「○」と表現)が格納されるため、印刷装置制御部90は、USBポートP1を介して通信する装置から受信するコマンドに基づく処理を実行する。すなわち、本実施形態の場合、印刷装置制御部90は、USBポートP1を介してPOS端末8と通信するため、POS端末8から受信するレシート発行コマンドに基づく処理を、LANポートP2を介して通信する管理装置11から受信する送信コマンドに基づく処理よりも優先して実行する。   The printing apparatus control unit 90 executes priority processing based on information indicating a port to which priority information corresponds. That is, in the case of FIG. 7, since priority information (expressed as “◯” in FIG. 7) is stored in the priority field F2 of the record R1, the printing apparatus control unit 90 is connected to the apparatus communicating via the USB port P1. Executes processing based on the received command. That is, in the case of the present embodiment, the printing apparatus control unit 90 communicates with the POS terminal 8 via the USB port P1, and therefore performs processing based on the receipt issue command received from the POS terminal 8 via the LAN port P2. This process is executed with higher priority than the processing based on the transmission command received from the management apparatus 11 to be executed.

図6に示すフローチャートの説明に戻り、前述した通り、印刷装置制御部90は、自身の状態が印刷の動作を実行できない状態であると判別した場合(ステップSG3:YES)、優先情報をLANポートP2情報に対応付ける。本実施形態の場合、印刷装置制御部90は、レコードR1の優先フィールドF2に優先情報(図7では「○」で表現)を格納することをやめ、レコードR2の優先フィールドF2に優先情報を格納する(図7では「○」で表現)。   Returning to the description of the flowchart shown in FIG. 6, as described above, when the printing apparatus control unit 90 determines that its own state is a state in which the printing operation cannot be performed (step SG <b> 3: YES), the priority information is set to the LAN port. Corresponds to P2 information. In the case of this embodiment, the printing apparatus control unit 90 stops storing priority information (represented by “◯” in FIG. 7) in the priority field F2 of the record R1, and stores priority information in the priority field F2 of the record R2. (Represented by “◯” in FIG. 7).

次いで、印刷装置制御部90は、優先ポートテーブル92bを参照し、LANポートP2を介して管理装置11から受信する送信コマンドに基づく処理を優先する。ここで、印刷装置制御部90は、優先ポートテーブル92bのLANポートP2情報に優先情報を対応付けると、LANポートP2を介して管理装置11からの送信コマンドを受信可能にする。   Next, the printing apparatus control unit 90 refers to the priority port table 92b and prioritizes processing based on the transmission command received from the management apparatus 11 via the LAN port P2. Here, when the priority information is associated with the LAN port P2 information in the priority port table 92b, the printing apparatus control unit 90 can receive a transmission command from the management apparatus 11 via the LAN port P2.

図6の(C)に示すように、管理装置11の管理装置制御部111は、所定のタイミングで、印刷装置状態情報データの送信を指示するコマンドを印刷装置9に送信する(ステップSH1)。   As shown in FIG. 6C, the management apparatus control unit 111 of the management apparatus 11 transmits a command instructing transmission of the printing apparatus state information data to the printing apparatus 9 at a predetermined timing (step SH1).

図6の(B)に示すように、印刷装置9の印刷装置制御部90は、管理装置11からLANポートP2を介して送信コマンドを受信する(ステップSG5)。次いで、印刷装置制御部90は、ログファイル92aを参照し、印刷装置状態情報データを生成して、管理装置11に送信する(ステップSG6)。   As shown in FIG. 6B, the printing apparatus control unit 90 of the printing apparatus 9 receives a transmission command from the management apparatus 11 via the LAN port P2 (step SG5). Next, the printing apparatus control unit 90 refers to the log file 92a, generates printing apparatus state information data, and transmits it to the management apparatus 11 (step SG6).

図6の(C)に示すように、管理装置11の管理装置制御部111は、印刷装置9から印刷装置状態情報データを受信する(ステップSH2)。   As shown in FIG. 6C, the management apparatus control unit 111 of the management apparatus 11 receives the printing apparatus state information data from the printing apparatus 9 (step SH2).

このように、印刷装置制御部90は、レシート発行コマンドに基づく処理を実行している間、印刷の動作が実行できない状態になった場合でも、管理装置11から受信する送信コマンドに基づく処理を実行できる。すなわち、印刷装置制御部90は、印刷の動作が実行できない状態になった場合でも、印刷装置状態情報データを管理装置11に送信でき、管理装置11から受信する送信コマンドに基づく処理の遅延の発生を抑制できる。
特に、管理装置11から受信する送信コマンドに基づく処理の遅延の発生を抑制できるため、印刷装置9が印刷の動作を実行できない状態である場合において、メンテナンスサーバー7が、印刷装置9が印刷の動作を実行できないことを示す情報の取得の遅延を抑制できる。これにより、保守担当者への印刷装置9が印刷の動作を実行できない状態であることを示す情報の提供の遅延を抑制でき、印刷装置9が印刷の動作を実行できない状態が長い期間継続することを抑制できる。
As described above, the printing apparatus control unit 90 executes the process based on the transmission command received from the management apparatus 11 even when the printing operation cannot be performed while the process based on the receipt issuance command is being executed. it can. In other words, the printing apparatus control unit 90 can transmit the printing apparatus state information data to the management apparatus 11 even when the printing operation cannot be performed, and the processing delay based on the transmission command received from the management apparatus 11 occurs. Can be suppressed.
In particular, since the occurrence of processing delay based on a transmission command received from the management apparatus 11 can be suppressed, the maintenance server 7 causes the printing apparatus 9 to perform the printing operation when the printing apparatus 9 is not capable of performing the printing operation. It is possible to suppress a delay in acquiring information indicating that cannot be executed. Accordingly, it is possible to suppress a delay in providing information indicating that the printing device 9 cannot perform the printing operation to the maintenance staff, and the state in which the printing device 9 cannot perform the printing operation continues for a long period of time. Can be suppressed.

図6の(B)に示すように、印刷装置9の印刷装置制御部90は、印刷の動作が実行できない状態が解除されたか否かを判別する(ステップSG7)。印刷の動作が実行できない状態が解除されたとは、例えば、印刷の動作が実行できない状態がロール紙の紙切れの場合、ロール紙が補充されたことを示す。また、例えば、印刷の動作が実行できない状態がロール紙の紙詰まりの場合、当該状態が解除されたとは、ロール紙の紙詰まりが解除されたことを示す。   As shown in FIG. 6B, the printing apparatus control unit 90 of the printing apparatus 9 determines whether or not the state where the printing operation cannot be performed has been canceled (step SG7). The state in which the printing operation cannot be performed is canceled, for example, when the state in which the printing operation cannot be performed is out of roll paper, the roll paper is replenished. For example, when the state where the printing operation cannot be performed is a paper jam of the roll paper, the release of the state indicates that the paper jam of the roll paper is released.

印刷の動作が実行できない状態が解除されたと判別した場合(ステップSG7:YES)、印刷装置制御部90は、優先情報をUSBポートP1情報に対応付ける(ステップSG8)。本実施形態の場合、印刷装置制御部90は、レコードR2の優先フィールドF2に優先情報(図7では「○」で表現)を格納することをやめ、レコードR1の優先フィールドF2に優先情報を格納する(図7では「○」で表現)。   When it is determined that the state in which the printing operation cannot be performed is canceled (step SG7: YES), the printing apparatus control unit 90 associates the priority information with the USB port P1 information (step SG8). In the case of this embodiment, the printing apparatus control unit 90 stops storing priority information (represented by “◯” in FIG. 7) in the priority field F2 of the record R2, and stores priority information in the priority field F2 of the record R1. (Represented by “◯” in FIG. 7).

次いで、印刷装置制御部90は、優先ポートテーブル92bを参照し、レシート印刷コマンドに基づく処理を再開する(ステップSG9)。印刷装置制御部90は、図示しない受信バッファーに格納されたレシート印刷コマンドが含むコマンドに基づく処理の実行を再開する。   Next, the printing apparatus control unit 90 refers to the priority port table 92b and resumes processing based on the receipt print command (step SG9). The printing apparatus control unit 90 resumes execution of processing based on a command included in a receipt print command stored in a reception buffer (not shown).

このように、印刷装置制御部90は、印刷の動作を実行できない状態が解除されると、レシートの発行を優先して実行できる。そのため、印刷装置制御部90は、印刷の動作を実行できない状態が解除された場合、ロール紙の紙切れや印刷ヘッド911の異常発熱等により中断されたレシートの発行が行われ、レシートの発行の遅延を抑制できる。   As described above, when the state in which the printing operation cannot be performed is canceled, the printing apparatus control unit 90 can preferentially execute the receipt issuance. For this reason, when the state in which the printing operation cannot be performed is canceled, the printing apparatus control unit 90 issues a receipt interrupted due to running out of roll paper, abnormal heat generation of the print head 911, and the like, and delays in issuing the receipt. Can be suppressed.

次いで、印刷装置制御部90は、レシートの発行が終了したか否かを判別する(ステップSG10)。レシートの発行が終了しないと判別した場合(ステップSG10:NO)、印刷装置制御部90は、処理をステップSG3に戻す。一方で、レシートの発行が終了したと判別した場合、印刷装置制御部90は本処理を終了する。なお、レシートの発行の処理を実行していない場合、印刷装置制御部90は、受信したコマンドに基づく処理を実行する。すなわち、レシートの発行の処理を実行していない場合において管理装置11から送信コマンドを、LANポートP2を介して受信した場合、印刷装置制御部90は、送信コマンドに基づく処理を実行する。レシートの発行の処理を実行していない場合において、管理装置11からの送信コマンドと、POS端末8からのレシート発行コマンドとを同時に受信した場合、印刷装置制御部90は、レシート発行コマンドに基づく処理を優先して実行する。   Next, the printing apparatus control unit 90 determines whether or not the receipt has been issued (step SG10). If it is determined that the receipt issuance is not completed (step SG10: NO), the printing apparatus control unit 90 returns the process to step SG3. On the other hand, if it is determined that the receipt has been issued, the printing apparatus control unit 90 ends the process. If the receipt issuing process is not executed, the printing apparatus control unit 90 executes a process based on the received command. In other words, when the receipt issuing process is not executed and the transmission command is received from the management apparatus 11 via the LAN port P2, the printing apparatus control unit 90 executes the process based on the transmission command. When the receipt issuing process is not executed and the transmission command from the management apparatus 11 and the receipt issuing command from the POS terminal 8 are received simultaneously, the printing apparatus control unit 90 performs processing based on the receipt issuing command. Execute with priority.

以上、説明したように、本実施形態の店舗システム3(POSシステム)は、USBポートP1(第1ポート)とLANポートP2(第2ポート)とを有する印刷装置9と、USBポートP1に接続するPOS端末8(POS装置)と、LANポートP2に接続する管理装置11とを備える。POS端末8は、印刷の動作の実行を指示するレシート発行コマンド(印刷コマンド)をUSBポートP1に送信可能である。管理装置11は、印刷装置9の状態の送信を指示する送信コマンドをLANポートP2に送信可能である。印刷装置9は、自身の状態が印刷の動作を実行できない状態になった場合、LANポートP2で受信する送信コマンドに基づく処理を、USBポートP1で受信するレシート発行コマンドに基づく処理よりも優先して実行する。   As described above, the store system 3 (POS system) of this embodiment is connected to the printer 9 having the USB port P1 (first port) and the LAN port P2 (second port), and the USB port P1. A POS terminal 8 (POS device) to be connected, and a management device 11 connected to the LAN port P2. The POS terminal 8 can transmit a receipt issuance command (print command) instructing execution of a printing operation to the USB port P1. The management apparatus 11 can transmit a transmission command instructing transmission of the status of the printing apparatus 9 to the LAN port P2. When the printing apparatus 9 is in a state where it cannot execute the printing operation, the printing apparatus 9 prioritizes processing based on the transmission command received at the LAN port P2 over processing based on the receipt issue command received at the USB port P1. And execute.

これにより、印刷装置9の状態が印刷の動作を実行できない状態に、USBポートP1で受信するレシート発行コマンドよりも優先してLANポートP2で受信する送信コマンドに基づく処理を実行する。そのため、管理装置11から受信した送信コマンドに基づく処理の遅延を抑制できる。   As a result, processing based on the transmission command received at the LAN port P2 is executed in preference to the receipt issue command received at the USB port P1, so that the printing device 9 cannot perform the printing operation. Therefore, it is possible to suppress a delay in processing based on the transmission command received from the management apparatus 11.

また、印刷装置9は、USBポートP1でレシート発行コマンドを受信した場合、受信したレシート発行コマンドに基づく処理を優先して実行し、受信したレシート発行コマンドに基づく処理を実行している間、管理装置11から送信される送信コマンドを処理しない。印刷装置9は、レシート発行コマンドに基づく処理を実行している間、自身の状態が印刷の動作が実行できない状態になった場合に、送信コマンドをLANポートP2で受信し、受信した送信コマンドに基づく処理を優先して実行する。   In addition, when receiving a receipt issuance command at the USB port P1, the printing apparatus 9 preferentially executes processing based on the received receipt issuance command, and manages while executing processing based on the received receipt issuance command. The transmission command transmitted from the device 11 is not processed. The printing apparatus 9 receives the transmission command at the LAN port P2 when the state of the printing apparatus 9 becomes a state where the printing operation cannot be performed while executing the processing based on the receipt issuing command. Priority is given to the processing based on it.

これにより、レシート発行コマンドに基づく処理を実行している間、送信コマンドを処理せず、印刷装置9が印刷の動作を実行できない状態になった場合に、送信コマンドに基づく処理を優先して実行するため、レシート発行コマンドに基づく処理を実行している場合であっても、管理装置11から受信したコマンドに基づく処理の遅延を抑制できる。   As a result, when the processing based on the receipt issuance command is being executed, the transmission command is not processed, and the processing based on the transmission command is preferentially executed when the printing apparatus 9 cannot execute the printing operation. Therefore, even when the process based on the receipt issue command is executed, the delay of the process based on the command received from the management apparatus 11 can be suppressed.

また、印刷装置9は、USBポートP1を示すUSBポートP1情報(第1ポート情報)、又は、LANポートP2を示す第2ポート情報(LANポートP2情報)のいずれかに、処理を優先して実行することを示す優先情報が対応付く優先ポートテーブル92b(優先ポート情報)を記憶する。印刷装置9は、自身の状態が印刷の動作を実行できない状態になった場合、LANポートP2情報に優先情報を対応付け、優先ポートテーブル92b(優先ポート情報)に基づき、LANポートP2で受信する送信コマンドに基づく処理を優先して実行する。   Further, the printing apparatus 9 gives priority to the processing to either the USB port P1 information (first port information) indicating the USB port P1 or the second port information (LAN port P2 information) indicating the LAN port P2. A priority port table 92b (priority port information) associated with priority information indicating execution is stored. When the printing apparatus 9 becomes incapable of executing the printing operation, the printing apparatus 9 associates the priority information with the LAN port P2 information, and receives it at the LAN port P2 based on the priority port table 92b (priority port information). Priority is given to processing based on the send command.

これにより、印刷装置9が印刷の動作を実行できない状態なった場合、LANポートP2情報に優先情報を対応付けるため、優先ポートテーブル92bに基づいて、送信コマンドに基づく処理を実行でき、管理装置11から受信した送信コマンドに基づく処理の遅延を抑制できる。   As a result, when the printing apparatus 9 becomes unable to execute the printing operation, the priority information is associated with the LAN port P2 information, so that the process based on the transmission command can be executed based on the priority port table 92b. Processing delay based on the received transmission command can be suppressed.

また、印刷装置9は、印刷の動作を実行できない状態が解除された場合、USBポートP1情報に優先情報を対応付ける。   Further, when the state in which the printing operation cannot be performed is canceled, the printing apparatus 9 associates the priority information with the USB port P1 information.

これにより、印刷装置9が印刷の動作を実行できない状態から解除された場合、USBポートP1情報に優先情報を対応付けるため、印刷装置9が印刷の動作を実行できない状態になった後、当該状態が解除された場合に、レシート発行コマンドに基づく処理を優先して実行できる。   As a result, when the printing apparatus 9 is released from the state in which the printing operation cannot be performed, the priority information is associated with the USB port P1 information. When canceled, the processing based on the receipt issue command can be executed with priority.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。   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.

例えば、上述した実行形態では、印刷装置9がLANポートP2とUSBポートP1とを有する構成を例示したが、この構成に限定されない。例えば、RS232等の所定のシリアル通信プロトコルに係るポートや、IEEE1284等の所定のパラレル通信プロトコルに係るポート等を備える構成でもよい。この場合、各ポートに対応するインターフェースを印刷装置9が有する。また、この場合、優先ポートテーブル92bが有すレコードは、各ポートに対応するレコードを有する。   For example, in the above-described execution mode, the configuration in which the printing apparatus 9 includes the LAN port P2 and the USB port P1 is illustrated, but the configuration is not limited to this configuration. For example, a configuration including a port related to a predetermined serial communication protocol such as RS232 or a port related to a predetermined parallel communication protocol such as IEEE1284 may be used. In this case, the printing apparatus 9 has an interface corresponding to each port. In this case, the record included in the priority port table 92b includes a record corresponding to each port.

また、例えば、上述した実施形態では、レシート発行コマンドをUSBポートP1を介して、送信コマンドをLANポートP2を介して受信する構成、すなわち、物理ポートを介してコマンドを受信する構成を例示した。しかしながら、ブルートゥース等に従った論理ポートでもよい。   Further, for example, in the above-described embodiment, the configuration in which the receipt issue command is received via the USB port P1 and the transmission command is received via the LAN port P2, that is, the configuration in which the command is received via the physical port is exemplified. However, a logical port according to Bluetooth or the like may be used.

また、例えば、上述した実施形態において、印刷装置9は、レシート発行コマンドに基づきレシートの発行の動作を実行している場合、管理装置11から送信コマンドを受信しない構成を例示した。しかしながら、レシートの発行の動作を実行している間、送信コマンドに基づく処理を実行しなければよく、印刷装置9は、送信コマンドを受信してもよい。この場合、印刷装置9は、レシートの発行の動作を実行している間、図示しない受信バッファーに送信コマンドを格納し、レシートの動作を実行終了後、受信バッファーに格納した送信コマンドに基づく処理を実行する。また、印刷装置9は、レシートの発行の動作を実行している間、送信コマンドを受信し、その後、印刷の動作を実行できない状態になった場合、受信し受信バッファーに格納した送信コマンドに基づき処理を実行してもよい。   Further, for example, in the above-described embodiment, the configuration in which the printing apparatus 9 does not receive a transmission command from the management apparatus 11 when executing a receipt issuing operation based on a receipt issuing command. However, while the receipt issuing operation is being executed, the processing based on the transmission command need not be executed, and the printing apparatus 9 may receive the transmission command. In this case, the printing device 9 stores the transmission command in a reception buffer (not shown) while executing the receipt issuing operation, and after executing the receipt operation, performs processing based on the transmission command stored in the reception buffer. Run. Further, the printing apparatus 9 receives a transmission command while executing a receipt issuing operation. If the printing apparatus 9 becomes unable to execute a printing operation after that, the printing apparatus 9 receives the transmission command and stores it in the reception buffer. Processing may be executed.

また例えば、上述した実施形態では、店舗システム3が、店舗に適用される場合を例示して発明を説明したが、店舗システム3が適用される施設は、店舗に限らない。   Further, for example, in the above-described embodiment, the invention has been described by exemplifying the case where the store system 3 is applied to a store, but the facility to which the store system 3 is applied is not limited to a store.

また、例えば、ネットワークシステム1を構成する各装置の通信方法はどのような方法でもよい。   Further, for example, any method may be used as a communication method for each device constituting the network system 1.

また、例えば、図4、図5、及び、図6の処理単位は、店舗システム3の各構成の処理を理解容易にするために、主な処理内容に応じて分割したものであり、処理単位の分割の仕方や名称によって、本発明が限定されることはない。店舗システム3の各構成の処理は、処理内容に応じて、されに多くの処理単位に分割してもよい。また、1つの処理単位がさらに多くの処理を含むように分割してもよい。   Further, for example, the processing units in FIGS. 4, 5, and 6 are divided according to main processing contents in order to facilitate understanding of the processing of each component of the store system 3, and the processing unit The present invention is not limited by the way of division and names. The processing of each component of the store system 3 may be divided into many processing units depending on the processing contents. Moreover, you may divide | segment so that one process unit may contain many processes.

また、図2、及び、図3に示した各機能部は機能的構成を示すものであって、具体的な実装形態は特に限定されない。つまり、必ずしも各機能部に個別に対応するハードウェアが実装される必要はなく、一つのプロセッサーがプログラムを実行することで複数の機能部の機能を実現する構成とすることも勿論可能である。また、上述した各実施形態においてソフトウェアで実現される機能の一部をハードウェアとしてもよく、或いは、ハードウェアで実現される機能の一部をハードウェアで実現してもよい。その他、メンテナンスサーバー7、POS端末8、印刷装置9、POSサーバー10、及び、管理装置11の他の各部の具体的な細部構成についても、本発明の趣旨を逸脱しない範囲で任意に変更可能である。   Moreover, each function part shown in FIG.2 and FIG.3 shows a functional structure, Comprising: A specific mounting form is not specifically limited. That is, it is not always necessary to mount hardware corresponding to each function unit individually, and it is of course possible to adopt a configuration in which the functions of a plurality of function units are realized by one processor executing a program. In each of the above-described embodiments, a part of functions realized by software may be hardware, or a part of functions realized by hardware may be realized by hardware. In addition, the specific details of the other components of the maintenance server 7, the POS terminal 8, the printing device 9, the POS server 10, and the management device 11 can be arbitrarily changed without departing from the spirit of the present invention. is there.

また、例えば、上述した実施形態において、印刷装置9をサーマルプリンターとして例示したが、これに限定されない。例えば、インクジェットプリンターや、ドットインパクトプリンター、レーザープリンター等の他のプリンターでも本発明を適応できる。   For example, in the above-described embodiment, the printing apparatus 9 is exemplified as a thermal printer, but the present invention is not limited to this. For example, the present invention can be applied to other printers such as an ink jet printer, a dot impact printer, and a laser printer.

3…店舗システム、8…POS端末、9…印刷装置、10…POSサーバー、10a…商品マスター、11…管理装置、12…通信装置、80…POS端末制御部、81…POS端末記憶部、82…POS端末通信部、83…POS端末デバイス通信部、90…印刷装置制御部、91…印刷装置印刷部、92…印刷装置記憶部、92a…ログファイル、92b…優先ポートテーブル、93…印刷装置通信部、93a…LANインターフェース、93b…USBインターフェース、111…管理装置制御部、112…管理装置記憶部、113…管理装置通信部、911…印刷ヘッド、912…カッター、913…搬送モーター、BS…バーコードスキャナー、CD…カスタマーディスプレー、DP…ディスプレー、KS…キャッシュドロアー、P1…USBポート、P2…LANポート。   DESCRIPTION OF SYMBOLS 3 ... Store system, 8 ... POS terminal, 9 ... Printing apparatus, 10 ... POS server, 10a ... Merchandise master, 11 ... Management apparatus, 12 ... Communication apparatus, 80 ... POS terminal control part, 81 ... POS terminal storage part, 82 POS terminal communication unit 83 POS terminal device communication unit 90 Printing device control unit 91 Printing device printing unit 92 Printing device storage unit 92a Log file 92b Priority port table 93 Printing device Communication unit, 93a ... LAN interface, 93b ... USB interface, 111 ... management device control unit, 112 ... management device storage unit, 113 ... management device communication unit, 911 ... print head, 912 ... cutter, 913 ... transport motor, BS ... Barcode scanner, CD ... Customer display, DP ... Display, KS ... Cash drawer, 1 ... USB port, P2 ... LAN port.

Claims (7)

第1ポートと第2ポートとを有する印刷装置と、前記第1ポートに接続するPOS装置と、前記第2ポートに接続する管理装置とを備えるPOSシステムであって、
前記POS装置は、
印刷の実行を指示する印刷コマンドを前記第1ポートに送信可能であり、
前記管理装置は、
前記印刷装置の状態の送信を指示する送信コマンドを前記第2ポートに送信可能であり、
前記印刷装置は、
自身の状態が所定の状態になったと判別した場合、前記第2ポートで受信する前記送信コマンドに基づく処理を、前記第1ポートで受信する前記印刷コマンドに基づく処理よりも優先して実行する、
ことを特徴とするPOSシステム。
A POS system comprising a printing device having a first port and a second port, a POS device connected to the first port, and a management device connected to the second port,
The POS device is
A print command for instructing execution of printing can be transmitted to the first port;
The management device
A transmission command for instructing transmission of the status of the printing apparatus can be transmitted to the second port;
The printing apparatus includes:
When it is determined that its own state has become a predetermined state, the process based on the transmission command received at the second port is executed in preference to the process based on the print command received at the first port;
POS system characterized by that.
前記印刷装置は、
前記第1ポートで前記印刷コマンドを受信した場合、受信した印刷コマンドに基づく処理を優先して実行し、受信した前記印刷コマンドに基づく処理を実行している間、前記管理装置から送信される前記送信コマンドを処理せず、
自身の状態が前記所定の状態になったと判別した場合に、前記第2ポートで受信した前記送信コマンドに基づく処理を優先して実行する、
ことを特徴とする請求項1に記載のPOSシステム。
The printing apparatus includes:
When the print command is received at the first port, the process based on the received print command is preferentially executed, and the process transmitted from the management apparatus is performed while the process based on the received print command is being executed. Do not process send commands,
When it is determined that its own state is the predetermined state, the process based on the transmission command received at the second port is preferentially executed.
The POS system according to claim 1.
前記印刷装置は、
前記第1ポートを示す第1ポート情報、又は、前記第2ポートを示す第2ポート情報のいずれかに、処理を優先して実行することを示す優先情報が対応付く優先ポート情報を記憶し、
自身の状態が前記所定の状態になったと判別した場合、前記第2ポート情報に前記優先情報を対応付け、前記優先ポート情報に基づき、前記第2ポートで受信する前記送信コマンドに基づく処理を優先して実行する、
ことを特徴とする請求項1から2のいずれか一項に記載のPOSシステム。
The printing apparatus includes:
Storing priority port information associated with priority information indicating that processing is preferentially performed in either the first port information indicating the first port or the second port information indicating the second port;
When it is determined that its own state has become the predetermined state, the priority information is associated with the second port information, and processing based on the transmission command received at the second port is prioritized based on the priority port information And run,
The POS system according to claim 1, wherein the POS system is a POS system.
前記印刷装置は、
前記所定の状態が解除された場合、前記第1ポート情報に前記優先情報を対応付ける、
ことを特徴とする請求項3に記載のPOSシステム。
The printing apparatus includes:
When the predetermined state is released, the priority information is associated with the first port information.
The POS system according to claim 3.
前記所定の状態は、前記印刷装置が印刷できない状態である、
ことを特徴とする請求項1から4のいずれか一項に記載のPOSシステム。
The predetermined state is a state in which the printing apparatus cannot print.
The POS system according to any one of claims 1 to 4, wherein
POS装置と接続し、前記POS装置から印刷の実行を指示する印刷コマンドを受信する第1ポートと、
管理装置と接続し、前記管理装置から印刷装置の状態の送信を指示する送信コマンドを受信する第2ポートと、
自身の状態が所定の状態になったと判別した場合、前記第2ポートで受信する前記送信コマンドに基づく処理を、前記第1ポートで受信する前記印刷コマンドに基づく処理よりも優先して実行する制御部と、を備える、
ことを特徴とする印刷装置。
A first port connected to a POS device and receiving a print command instructing execution of printing from the POS device;
A second port connected to the management device and receiving a transmission command instructing transmission of the status of the printing device from the management device;
Control that executes processing based on the transmission command received at the second port in preference to processing based on the print command received at the first port when it is determined that its own state has reached a predetermined state And comprising
A printing apparatus characterized by that.
POS装置と接続し、前記POS装置から印刷の実行を指示する印刷コマンドを受信する第1ポートと、管理装置と接続し、前記管理装置から印刷装置の状態の送信を指示する送信コマンドを受信する第2ポートと、を備える印刷装置の制御方法であって、
自身の状態が所定の状態になったと判別した場合、前記第2ポートで受信する前記送信コマンドに基づく処理を、前記第1ポートで受信する前記印刷コマンドに基づく処理よりも優先して実行する、
ことを特徴とする印刷装置の制御方法。
A first port that is connected to the POS device and receives a print command for instructing execution of printing from the POS device, and a management device, and receives a transmission command for instructing transmission of the status of the printing device from the management device. And a second port control method, comprising:
When it is determined that its own state has become a predetermined state, the process based on the transmission command received at the second port is executed in preference to the process based on the print command received at the first port;
A control method for a printing apparatus.
JP2016008955A 2016-01-20 2016-01-20 Pos system, printer and control method of printer Pending JP2017130044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016008955A JP2017130044A (en) 2016-01-20 2016-01-20 Pos system, printer and control method of printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016008955A JP2017130044A (en) 2016-01-20 2016-01-20 Pos system, printer and control method of printer

Publications (1)

Publication Number Publication Date
JP2017130044A true JP2017130044A (en) 2017-07-27

Family

ID=59395579

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016008955A Pending JP2017130044A (en) 2016-01-20 2016-01-20 Pos system, printer and control method of printer

Country Status (1)

Country Link
JP (1) JP2017130044A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020117204A1 (en) * 2018-12-04 2020-06-11 Hewlett-Packard Development Company, L.P. Connector cables to transmit data and power

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020117204A1 (en) * 2018-12-04 2020-06-11 Hewlett-Packard Development Company, L.P. Connector cables to transmit data and power

Similar Documents

Publication Publication Date Title
EP3190509B1 (en) Network system
JP6375853B2 (en) RECORDING DEVICE, ACCOUNTING SYSTEM, AND RECORDING DEVICE CONTROL METHOD
JP2017130044A (en) Pos system, printer and control method of printer
JP6065761B2 (en) Control device and control method of control device
JP5556248B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2017073068A (en) Network system and server
JP6623661B2 (en) Network system and communication control method
JP2017077660A (en) Printer, fan motor replacement period calculating method, and network system
US9959489B2 (en) Network system, printing device, and control method of a printing device
JP2016212491A (en) Network system, network system control method, and control device
JP2019081273A (en) Printer and control method for printer
JP2016081106A (en) Information processor, accounting system and recording apparatus
JP6578894B2 (en) Network system and control device
JP6686377B2 (en) Network system
JP6531606B2 (en) Network system
JP6578895B2 (en) Network system and control device
JP2019204385A (en) Image processing system and image forming apparatus
JP6572785B2 (en) Network system, control device, and control method of control device
JP6015141B2 (en) CONTROL DEVICE, CONTROL SYSTEM, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
JP2017091161A (en) Network system and information processor
JP6003475B2 (en) Printing system, printing apparatus, and printing method
JP6634832B2 (en) Network system, information processing apparatus, and control method for information processing apparatus
US20170132500A1 (en) Printing System, Control Device, and Control Method of a Printing System
JP2011034506A (en) Controller, method for controlling controller, and program
JP6127638B2 (en) Printing apparatus, printing apparatus control method, and program