JP2017091160A - Network system and control device - Google Patents

Network system and control device Download PDF

Info

Publication number
JP2017091160A
JP2017091160A JP2015219615A JP2015219615A JP2017091160A JP 2017091160 A JP2017091160 A JP 2017091160A JP 2015219615 A JP2015219615 A JP 2015219615A JP 2015219615 A JP2015219615 A JP 2015219615A JP 2017091160 A JP2017091160 A JP 2017091160A
Authority
JP
Japan
Prior art keywords
command
control
printing
response request
data
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
JP2015219615A
Other languages
Japanese (ja)
Other versions
JP2017091160A5 (en
JP6578894B2 (en
Inventor
明男 高本
Akio Takamoto
明男 高本
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 JP2015219615A priority Critical patent/JP6578894B2/en
Priority to US15/335,185 priority patent/US10127482B2/en
Publication of JP2017091160A publication Critical patent/JP2017091160A/en
Publication of JP2017091160A5 publication Critical patent/JP2017091160A5/ja
Application granted granted Critical
Publication of JP6578894B2 publication Critical patent/JP6578894B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To add a function acquiring a state of a printer while suppressing modification of a program installed in a control device connectable to the printer.SOLUTION: A network system 1 comprises: a printer 9 performing printing on a recording medium; and a control device 8 capable of communicating with the printer. The control device includes: a processing control section generating and outputting a control command instructing the printer to execute the printing by a print control program; and a management section adding a state response request command requesting a response of information related to a state of the printer to the control command output by the processing control section by means of a program for maintenance different from the print control program and transmitting the control command added with the state response request command to the printer.SELECTED DRAWING: Figure 1

Description

本発明は、ネットワークシステム、及び、制御装置に関する。   The present invention relates to a network system and a control device.

従来、プリンタードライバー等の印刷制御プログラムがインストールされた制御装置(ホスト機器)と、この制御装置に接続された印刷装置とを備え、制御装置が、印刷制御プログラムの機能により、印刷装置を制御するネットワークシステムが知られている(例えば、特許文献1参照)。   2. Description of the Related Art Conventionally, a control device (host device) in which a print control program such as a printer driver is installed and a printing device connected to the control device are provided, and the control device controls the printing device by the function of the print control program. A network system is known (see, for example, Patent Document 1).

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

上述したネットワークシステムにおいて、制御装置に、印刷装置の状態に関する情報を取得する機能を付加する場合、印刷制御プログラムを改変して、制御装置に当該機能を付加することが考えられる。しかしながら、この場合、印刷制御プログラムの改変に要する作業が煩雑であり、また、印刷制御プログラムの改変が、制御装置の既存の処理に影響を与える可能性がある。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置に接続可能な制御装置について、制御装置にインストールされたプログラムの改変を抑制した上で、制御装置に対して印刷装置の状態を取得する機能を付加できるようにすることを目的とする。
In the network system described above, when a function for acquiring information related to the state of the printing apparatus is added to the control apparatus, it is conceivable to modify the print control program and add the function to the control apparatus. However, in this case, the work required for modifying the print control program is complicated, and the modification of the print control program may affect the existing processing of the control device.
The present invention has been made in view of the above-described circumstances, and for a control device that can be connected to a printing apparatus, the state of the printing apparatus is controlled with respect to the control apparatus after suppressing modification of a program installed in the control apparatus. The purpose is to make it possible to add a function to acquire the.

上記目的を達成するために、本発明は、記録媒体に印刷する印刷装置と、前記印刷装置と通信可能な制御装置とを備えるネットワークシステムであって、前記制御装置は、印刷制御プログラムにより、前記印刷装置に印刷の実行を指示する制御コマンドを生成し、出力する処理制御部と、前記印刷制御プログラムとは異なるメンテナンス用プログラムにより、前記処理制御部が出力した前記制御コマンドに、前記印刷装置の状態に関する情報の応答を要求する状態応答要求コマンドを付加し、前記状態応答要求コマンドが付加された前記制御コマンドを前記印刷装置に送信する管理部と、を有することを特徴とする。
本発明の構成によれば、制御装置は、印刷制御プログラムの改変を行うことなく、メンテナンス用プログラム機能に基づく管理部により、制御装置は、印刷装置の状態を取得できる。すなわち、印刷装置に接続可能な制御装置について、制御装置にインストールされたプログラムの改変を抑制した上で、制御装置に対して印刷装置の状態を取得する機能を付加できる。
In order to achieve the above object, the present invention provides a network system including a printing apparatus that prints on a recording medium, and a control device that can communicate with the printing apparatus. A processing control unit that generates and outputs a control command that instructs the printing apparatus to execute printing, and a maintenance program that is different from the printing control program, the control command output by the processing control unit is added to the control command of the printing apparatus. A management unit that adds a status response request command for requesting a response of information related to the status and transmits the control command to which the status response request command is added to the printing apparatus.
According to the configuration of the present invention, the control device can acquire the status of the printing device by the management unit based on the maintenance program function without modifying the printing control program. That is, with respect to a control device that can be connected to the printing apparatus, it is possible to add a function of acquiring the state of the printing apparatus to the control apparatus after suppressing modification of a program installed in the control apparatus.

また、本発明は、前記制御装置の前記管理部は、前記印刷装置から受信した受信データを取得して分析し、前記受信データが前記状態応答要求コマンドに対する応答のデータであるか否かを判別し、前記受信データが前記状態応答要求コマンドに対する応答のデータではない場合、前記受信データを前記処理制御部に出力し、前記受信データが前記状態応答要求コマンドに対する応答のデータである場合、前記受信データを前記処理制御部に出力することなく、前記受信データに基づく処理を実行することを特徴とする。
本発明の構成によれば、管理部は、印刷装置から受信したデータについて、処理制御部が処理すべきデータは、処理制御部に出力して、処理制御部に実行させることができる。また、管理部は、印刷装置から受信したデータについて、自身が処理すべきデータは、処理制御部に出力することなく、自身で実行できる。
Further, according to the present invention, the management unit of the control device acquires and analyzes received data received from the printing device, and determines whether the received data is data of a response to the status response request command. When the received data is not response data to the status response request command, the received data is output to the processing control unit, and when the received data is response data to the status response request command, the reception The processing based on the received data is executed without outputting the data to the processing control unit.
According to the configuration of the present invention, the management unit can output data to be processed by the processing control unit to the processing control unit for the data received from the printing apparatus, and cause the processing control unit to execute the data. Further, the management unit can execute the data received from the printing apparatus by itself without outputting the data to be processed by the processing control unit.

また、本発明は、前記制御コマンドは、前記印刷装置に紙片の発行を指示するコマンド群であり、前記記録媒体への画像の印刷を指示する印刷指示コマンドを含むと共に、コマンド群の末尾に前記記録媒体の切断を指示する切断指示コマンドを含み、前記管理部は、前記制御コマンドに前記状態応答要求コマンドを付加する場合、前記制御コマンドに含まれる前記切断指示コマンドの後ろに前記状態応答要求コマンドを付加することを特徴とする。
本発明の構成によれば、切断指示コマンドの後ろに状態応答要求コマンドを配置することにより、制御コマンドに含まれる1のコマンドと次のコマンドとの間に状態応答要求コマンドが配置されることを防止でき、正常に紙片が発行されない事態が発生することを防止できる。
According to the present invention, the control command is a command group for instructing the printing apparatus to issue a piece of paper, and includes a print instruction command for instructing printing of an image on the recording medium. Including a disconnection instruction command for instructing disconnection of a recording medium, and when the management unit adds the state response request command to the control command, the state response request command is included after the disconnection instruction command included in the control command Is added.
According to the configuration of the present invention, the status response request command is arranged between one command and the next command included in the control command by arranging the status response request command after the disconnection instruction command. It is possible to prevent the occurrence of a situation in which a piece of paper is not normally issued.

また、上記目的を達成するために、本発明は、記録媒体に印刷する印刷装置と通信可能な制御装置であって、印刷制御プログラムにより、前記印刷装置に印刷の実行を指示する制御コマンドを生成し、出力する処理制御部と、前記印刷制御プログラムとは異なるメンテナンス用プログラムにより、前記処理制御部が出力した前記制御コマンドに、前記印刷装置の状態に関する情報の応答を要求する状態応答要求コマンドを付加し、前記状態応答要求コマンドが付加された前記制御コマンドを前記印刷装置に送信する管理部と、を備えることを特徴とする。
本発明の構成によれば、制御装置は、印刷制御プログラムの改変を行うことなく、メンテナンス用プログラム機能に基づく管理部により、制御装置は、印刷装置の状態を取得できる。すなわち、印刷装置に接続可能な制御装置について、制御装置にインストールされたプログラムの改変を抑制した上で、制御装置に対して印刷装置の状態を取得する機能を付加できる。
In order to achieve the above object, the present invention is a control device capable of communicating with a printing device that prints on a recording medium, and generates a control command that instructs the printing device to execute printing by a print control program. And a status response request command for requesting a response of information related to the status of the printing apparatus to the control command output by the processing control unit by a processing control unit to be output and a maintenance program different from the print control program. And a management unit that transmits the control command to which the status response request command is added to the printing apparatus.
According to the configuration of the present invention, the control device can acquire the status of the printing device by the management unit based on the maintenance program function without modifying the printing control program. That is, with respect to a control device that can be connected to the printing apparatus, it is possible to add a function of acquiring the state of the printing apparatus to the control apparatus after suppressing modification of a program installed in the control apparatus.

また、本発明は、前記管理部は、前記印刷装置から受信した受信データを取得して分析し、前記受信データが前記状態応答要求コマンドに対する応答のデータであるか否かを判別し、前記受信データが前記状態応答要求コマンドに対する応答のデータではない場合、前記受信データを前記処理制御部に出力し、前記受信データが前記状態応答要求コマンドに対する応答のデータである場合、前記受信データを前記処理制御部に出力することなく、前記受信データに基づく処理を実行することを特徴とする。
本発明の構成によれば、管理部は、印刷装置から受信したデータについて、処理制御部が処理すべきデータは、処理制御部に出力して、処理制御部に実行させることができる。また、管理部は、印刷装置から受信したデータについて、自身が処理すべきデータは、処理制御部に出力することなく、自身で実行できる。
Further, according to the present invention, the management unit acquires and analyzes received data received from the printing apparatus, determines whether the received data is data of a response to the status response request command, and receives the received data When the data is not response data to the status response request command, the received data is output to the processing control unit. When the received data is response data to the status response request command, the received data is processed. The processing based on the received data is executed without outputting to the control unit.
According to the configuration of the present invention, the management unit can output data to be processed by the processing control unit to the processing control unit for the data received from the printing apparatus, and cause the processing control unit to execute the data. Further, the management unit can execute the data received from the printing apparatus by itself without outputting the data to be processed by the processing control unit.

また、本発明は、前記制御コマンドは、前記印刷装置に紙片の発行を指示するコマンド群であり、前記記録媒体への画像の印刷を指示する印刷指示コマンドを含むと共に、コマンド群の末尾に前記記録媒体の切断を指示する切断指示コマンドを含み、前記管理部は、前記制御コマンドに前記状態応答要求コマンドを付加する場合、前記制御コマンドに含まれる前記切断指示コマンドの後ろに前記状態応答要求コマンドを付加することを特徴とする。
本発明の構成によれば、切断指示コマンドの後ろに状態応答要求コマンドを配置することにより、制御コマンドに含まれる1のコマンドと次のコマンドとの間に状態応答要求コマンドが配置されることを防止でき、正常に紙片が発行されない事態が発生することを防止できる。
According to the present invention, the control command is a command group for instructing the printing apparatus to issue a piece of paper, and includes a print instruction command for instructing printing of an image on the recording medium. Including a disconnection instruction command for instructing disconnection of a recording medium, and when the management unit adds the state response request command to the control command, the state response request command is included after the disconnection instruction command included in the control command Is added.
According to the configuration of the present invention, the status response request command is arranged between one command and the next command included in the control command by arranging the status response request command after the disconnection instruction command. It is possible to prevent the occurrence of a situation in which a piece of paper is not normally issued.

本実施形態に係るネットワークシステムを示す図。The figure which shows the network system which concerns on this embodiment. 店舗システムを示す図。The figure which shows a store system. 制御装置、印刷装置の動作を示すフローチャート。6 is a flowchart illustrating operations of a control device and a printing device. 印刷装置、制御装置、メンテナンスサーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a printing apparatus, a control apparatus, and a maintenance server. 制御装置の要部を示す図。The figure which shows the principal part of a control apparatus. 制御装置の動作を示すフローチャート。The flowchart which shows operation | movement of a control apparatus. レシート発行指示コマンドを示す図。The figure which shows a receipt issue instruction command. 制御装置の動作を示すフローチャート。The flowchart which shows operation | movement of a control apparatus.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係るネットワークシステム1の構成を示す図である。ネットワークシステム1は、スーパーマーケットや、コンビニエンスストア、デパート、飲食店等の商品や、サービス等を提供し、当該提供に応じて会計が行われる店舗を運営する企業が利用するシステムである。
図1に示すように、ネットワークシステム1は、複数の店舗システム3と、メンテナンスサーバー7とを備える。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
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 and a maintenance server 7.

店舗システム3は、店舗に設けられるシステムである。
図1に示すように、店舗システム3は、ローカルネットワークLNを備える。ローカルネットワークLNには、1又は複数の制御装置8及び制御装置8に接続される印刷装置9と、POSサーバー10と、が接続される。
ローカルネットワークLNを介して行われる通信の通信規格は何でもよく、また、当該ローカルネットワークを介して行われる通信は有線通信でも無線通信でもよい。
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 control devices 8, a printing device 9 connected to the control device 8, and a POS server 10 are connected to the local network LN.
Any communication standard may be used for communication performed via the local network LN, and communication performed via the local network may be wired communication or wireless communication.

印刷装置9は、印刷機能を有する装置である。印刷装置9は、印刷装置9を制御する制御装置8と共に、店舗において顧客が会計を行なうレジカウンターに設けられる。つまり、レジカウンターには、印刷装置9と、制御装置8とが設けられる。
制御装置8は、印刷装置9と通信し、印刷装置9を制御する装置である。後述するように、店舗システム3において、制御装置8は、レジカウンターで行われる会計に応じて、POSサーバー10から必要な情報を取得して会計処理を実行し、会計処理に基づいて、印刷装置9にレシート(紙片)を発行させる。印刷装置9により発行されたレシートは、レジ担当者によって顧客に引き渡される。
また、後述するように、制御装置8は、印刷装置9から、印刷装置9の状態に関する情報を取得し、メンテナンスサーバー7に通知する機能を有する。
POSサーバー10は、制御装置8が会計処理を行うのに必要な情報を記憶するサーバーである。
制御装置8、印刷装置9、及び、POSサーバー10の構成、機能、及び、機能に基づく処理の詳細については後述する。
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 control device 8 that controls the printing device 9. That is, the register counter is provided with the printing device 9 and the control device 8.
The control device 8 communicates with the printing device 9 and controls the printing device 9. As will be described later, in the store system 3, the control device 8 acquires necessary information from the POS server 10 according to the accounting performed at the checkout counter, executes the accounting processing, and based on the accounting processing, the printing device 9 causes a receipt (paper piece) to be issued. The receipt issued by the printing device 9 is delivered to the customer by the cashier.
As will be described later, the control device 8 has a function of acquiring information related to the state of the printing device 9 from the printing device 9 and notifying the maintenance server 7 of the information.
The POS server 10 is a server that stores information necessary for the control device 8 to perform accounting processing.
Details of the configuration, functions, and processing based on the functions of the control device 8, the printing device 9, and the POS server 10 will be described later.

通信装置12は、ローカルネットワークLNと、グローバルネットワークGNとを接続するインターフェース装置である。通信装置12は、モデム(又は、ONU(Optical Network Unit))としての機能、ルーター機能、NAT(Network Address Translation)機能、及び、DHCP(Dynamic Host Configuration Protocol)サーバー機能等を有する。通信装置12は、ローカルネットワークに接続された機器と、グローバルネットワーク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 / received between devices during communication between a device connected to the local network 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において、制御装置8と、印刷装置9と、POSサーバー10とは、ローカルネットワークLNを介して通信可能である。
また、店舗システム3の印刷装置9は、通信装置12の機能を利用して、ローカルネットワークLN、及び、グローバルネットワークGNを介して、メンテナンスサーバー7と通信可能である。
In the store system 3, the control device 8, the printing device 9, and the POS server 10 can communicate with each other via the local network LN.
Further, the printing device 9 of the store system 3 can communicate with the maintenance server 7 via the local network LN and the global network GN using the function of the communication device 12.

なお、店舗システム3は、ネットワークシステム1の一部であり、「印刷装置9と、印刷装置9と通信可能な制御装置8とを備えるネットワークシステム」に相当する。   The store system 3 is a part of the network system 1 and corresponds to a “network system including a printing device 9 and a control device 8 capable of communicating with the printing device 9”.

メンテナンスサーバー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と、印刷装置9との間では、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.
In addition, between the maintenance server 7 and the printing apparatus 9, a technology related to encryption, such as a VPN (Virtual Private Network), or a technology related to a virtual dedicated line (may be a physical dedicated line). Thus, secure communication is performed.

図2は、店舗システム3が備える制御装置8、印刷装置9、及び、POSサーバー10の機能的構成を示すブロック図である。   FIG. 2 is a block diagram illustrating functional configurations of the control device 8, the printing device 9, and the POS server 10 included in the store system 3.

制御装置8は、印刷装置9を制御するホストコンピューターである。特に、制御装置8は、レジカウンターにおいて行われる会計に基づいて会計処理を実行し、会計処理に基づいて制御装置8を制御して、制御装置8にレシートを発行させる。
図2に示すように、制御装置制御部30と、制御装置記憶部31と、制御装置通信部32と、制御装置デバイス通信部33とを備える。
制御装置制御部30は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、制御装置8を制御する。
制御装置8には、会計処理を実行し、会計処理に基づいて印刷装置9に制御コマンドを送信して、印刷装置9を制御するPOSアプリケーションAP(印刷制御プログラム)がインストールされる。また、制御装置8には、メンテナンス実行部302(後述)に後述する各種処理を実行させるメンテナンス用プログラムMGがインストールされる。
制御装置制御部30は、インストールされたPOSアプリケーションAPを読み出して実行することにより処理を実行するPOSアプリケーション実行部301(処理制御部)を備える。
制御装置制御部30は、インストールされたメンテナンス用プログラムMGを読み出して実行することにより処理を実行するメンテナンス実行部302(管理部)を備える。
The control device 8 is a host computer that controls the printing device 9. In particular, the control device 8 executes an accounting process based on the accounting performed at the checkout counter, controls the control device 8 based on the accounting process, and causes the control device 8 to issue a receipt.
As shown in FIG. 2, a control device control unit 30, a control device storage unit 31, a control device communication unit 32, and a control device device communication unit 33 are provided.
The control device control unit 30 includes a CPU, ROM, RAM, and other peripheral circuits (not shown), and controls the control device 8.
The control device 8 is installed with a POS application AP (print control program) that executes accounting processing, transmits a control command to the printing device 9 based on the accounting processing, and controls the printing device 9. The control device 8 is also installed with a maintenance program MG that causes a maintenance execution unit 302 (described later) to execute various processes described later.
The control device control unit 30 includes a POS application execution unit 301 (processing control unit) that executes processing by reading and executing the installed POS application AP.
The control device control unit 30 includes a maintenance execution unit 302 (management unit) that executes processing by reading and executing the installed maintenance program MG.

制御装置記憶部31は、不揮発性メモリーを備え、各種データを記憶する。
制御装置通信部32は、制御装置制御部30の制御で、所定の通信プロトコルに従って、ローカルネットワークLNを介して、ローカルネットワークLNに接続された機器(他の制御装置8、印刷装置9、POSサーバー10、及び、通信装置12を含む。)と通信する。
また、制御装置通信部32は、制御装置制御部30の制御で、通信装置12を制御して、ローカルネットワークLN及びグローバルネットワークGNを介して、グローバルネットワークGNに接続された機器(メンテナンスサーバー7を含む。)と所定の通信プロトコルに従って通信する。
制御装置デバイス通信部33は、USBの規格に従ったポートや、USB以外のシリアル通信規格に従ったポート、その他通信規格に従ったポートを有するインターフェースボードを備える。制御装置デバイス通信部33は、制御装置制御部30の制御で、インターフェースに接続されたデバイスと通信する。なお、制御装置デバイス通信部33が無線通信機能を備え、デバイスと無線通信する構成でもよい。
The control device storage unit 31 includes a nonvolatile memory and stores various data.
The control device communication unit 32 is a device connected to the local network LN via the local network LN according to a predetermined communication protocol (another control device 8, a printing device 9, a POS server) under the control of the control device control unit 30. 10 and the communication device 12).
In addition, the control device communication unit 32 controls the communication device 12 under the control of the control device control unit 30, and the devices (maintenance server 7 are connected to the global network GN via the local network LN and the global network GN). In accordance with a predetermined communication protocol.
The control device device communication unit 33 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 control device device communication unit 33 communicates with a device connected to the interface under the control of the control device control unit 30. The controller device communication unit 33 may have a wireless communication function and wirelessly communicate with the device.

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

バーコードスキャナーBSは、商品や、商品の包装等に付されたバーコードを読み取り、読取結果を示すデータを制御装置デバイス通信部33に出力する。制御装置デバイス通信部33は、バーコードスキャナーBSから入力されたデータを、制御装置制御部30に出力する。
カスタマーディスプレーCDは、液晶ディスプレー等の表示装置であり、制御装置制御部30の制御で、各種情報を表示する。カスタマーディスプレーCDに表示された情報は、レジカウンターで会計を行う顧客が視認できる。
キャッシュドロアーKSは、現金を収容するトレイや、トレイをロックし、ロックを解除する機構、トレイを引き出す機構等を備え、制御装置制御部30の制御で、ロックを解除し、トレイを引き出す。
ディスプレーDPは、液晶表示パネル等の表示パネルを備え、制御装置制御部30の制御で、各種情報を表示する。ディスプレーDPに表示された情報は、レジカウンターでレジを行うレジ担当者が視認できる。
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 33. The control device device communication unit 33 outputs the data input from the barcode scanner BS to the control device control unit 30.
The customer display CD is a display device such as a liquid crystal display, and displays various information under the control of the control device control unit 30. The information displayed on the customer display CD can be visually recognized by customers who check out at the checkout counter.
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 control device control unit 30, and the lock is released and the tray is pulled out.
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 control device control unit 30. The information displayed on the display DP can be visually recognized by a cashier in charge at the cashier counter.

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

印刷装置制御部40は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、印刷装置9を制御する。
印刷装置制御部40は、印刷制御部401を備える。印刷制御部401は、CPUによりファームウェア、その他のプログラムを読み出して実行する等、ハードウェアとソフトウェアとにより処理を実行する。印刷制御部401については後述する。
印刷装置印刷部41は、印刷装置9の筐体に収容されたロール紙を搬送する搬送機構のほか、印刷ヘッドを有しロール紙に画像を印刷する印刷機構、カッターを有しロール紙を切断する切断機構等を備える。印刷装置印刷部41は、印刷装置制御部40の制御で、搬送機構によりロール紙を搬送しつつ、印刷機構によりロール紙にレシートに係る画像を印刷し、切断機構により所定の位置でロール紙を切断して、レシートを発行する。
The printing apparatus control unit 40 includes a CPU, a ROM, a RAM, and other peripheral circuits (not shown), and controls the printing apparatus 9.
The printing apparatus control unit 40 includes a print control unit 401. The print control unit 401 executes processing by hardware and software, such as reading and executing firmware and other programs by the CPU. The print control unit 401 will be described later.
The printing device printing unit 41 has a printing mechanism that has a print head and prints an image on the roll paper, in addition to a conveyance mechanism that conveys the roll paper accommodated in the casing of the printing device 9, and has a cutter to cut the roll paper. A cutting mechanism is provided. The printing apparatus printing unit 41 controls the printing apparatus control unit 40 to print an image relating to the receipt on the roll paper by the printing mechanism while conveying the roll paper by the conveyance mechanism, and to roll the roll paper at a predetermined position by the cutting mechanism. Cut and issue a receipt.

印刷装置記憶部42は、不揮発性メモリーを備え、各種データを記憶する。
印刷装置通信部43は、印刷装置制御部40の制御で、ローカルネットワークLNにアクセスし、ローカルネットワークLNに接続された機器(制御装置8、及び、POSサーバー10を含む。)と通信する。
The printing device storage unit 42 includes a nonvolatile memory and stores various data.
The printing device communication unit 43 accesses the local network LN and communicates with devices (including the control device 8 and the POS server 10) connected to the local network LN under the control of the printing device control unit 40.

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

次に、店舗のレジカウンターにおいて会計が行われた場合の制御装置8、及び、印刷装置9の動作について説明する。
図3は、会計が行われた場合の制御装置8、及び、印刷装置9の動作を示すフローチャートであり、(A)は制御装置8の動作を示し、(B)は印刷装置9の動作を示す。
なお、図3を用いた説明では、説明の便宜のため、制御装置8のPOSアプリケーション実行部301が生成する制御コマンドに、後述する状態応答要求コマンドが付加されないものとする。
Next, operations of the control device 8 and the printing device 9 when a transaction is made at a cash register counter in a store will be described.
FIG. 3 is a flowchart showing the operation of the control device 8 and the printing device 9 when accounting is performed. FIG. 3A shows the operation of the control device 8, and FIG. 3B shows the operation of the printing device 9. Show.
In the description using FIG. 3, for convenience of explanation, it is assumed that a state response request command described later is not added to the control command generated by the POS application execution unit 301 of the control device 8.

図3の(A)に示すように、制御装置8のPOSアプリケーション実行部301は、顧客の会計に応じて、会計処理を実行する(ステップSA1)。
詳述すると、会計に際し、レジ担当者は、顧客が購入した商品に付されたバーコードをバーコードスキャナーBSにより読み取る。POSアプリケーション実行部301は、バーコードスキャナーBSの読み取り結果に基づいて、商品の商品コードを取得し、適宜、POSサーバー10の商品マスター511を参照して、商品の単価等の会計処理に必要な商品に関する情報を取得する。POSアプリケーション実行部301は、取得した商品に関する情報に基づいて、カスタマーディスプレーCDや、ディスプレーDPに商品に関する情報を表示する。また、POSアプリケーション実行部301は、取得した商品に関する情報に基づいて、合計金額の計算や、釣銭の計算を行って会計を確定し、カスタマーディスプレーCDや、ディスプレーDPに計算結果を示す情報を表示し、また、キャッシュドロアーKSを制御する。
As shown in FIG. 3A, the POS application execution unit 301 of the control device 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 application execution unit 301 acquires the product code of the product based on the reading result of the barcode scanner BS, and refers to the product master 511 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 application execution unit 301 displays information about the product on the customer display CD or the display DP based on the acquired information about the product. Further, the POS application execution unit 301 determines the accounting by calculating the total amount or the change based on the information related to the acquired product, 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アプリケーション実行部301は、会計処理に基づいて、印刷装置9に会計に関する情報(商品に関する情報や、合計金額に関する情報、釣銭に関する情報等)が印刷されたレシートを発行させる制御コマンドを生成する(ステップSA2)。
次いで、POSアプリケーション実行部301は、制御装置通信部32を制御して、生成した制御コマンドを印刷装置9に送信する(ステップSA3)。
After executing the accounting process in step SA1, the POS application execution unit 301 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 control command for issuing a receipt is generated (step SA2).
Next, the POS application execution unit 301 controls the control device communication unit 32 to transmit the generated control command to the printing device 9 (step SA3).

図3の(B)に示すように、印刷装置9の印刷制御部401は、印刷装置通信部43を制御して、制御コマンドを受信する(ステップSB1)。
次いで、印刷制御部401は、受信した制御コマンドに基づいて、印刷装置印刷部41を制御して、レシートを発行する(ステップSB2)。
発行されたレシートは、レジ担当者によって、顧客に引き渡される。
As shown in FIG. 3B, the print control unit 401 of the printing apparatus 9 controls the printing apparatus communication unit 43 to receive a control command (step SB1).
Next, the print control unit 401 controls the printing apparatus printing unit 41 based on the received control command to issue a receipt (step SB2).
The issued receipt is delivered to the customer by the cashier.

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

図4の(B)に示すように、制御装置8の制御装置制御部30は、応答要求送信処理を実行する(ステップSD1)。
応答要求送信処理とは、印刷装置9に対して、印刷装置9の状態に関する情報を含む処理装置状態情報データ(詳細は後述)の応答を要求する状態応答要求コマンドを印刷装置9に送信する処理である。以下、ステップSD1の応答要求送信処理について詳述する。
As shown in FIG. 4B, the control device control unit 30 of the control device 8 executes a response request transmission process (step SD1).
The response request transmission process is a process for transmitting to the printing apparatus 9 a status response request command for requesting a response of processing apparatus status information data (details will be described later) including information related to the status of the printing apparatus 9 It is. Hereinafter, the response request transmission process in step SD1 will be described in detail.

図5は、制御装置8の要部を説明に適した態様で模式的に示す図である。
図5では、説明の便宜のため、機能ブロックや、プログラム、ソフトウェア的(論理的)なポート、物理的な装置等を同等のブロックで表す。
図5において、符号S1は階層型のオペレーティングシステムにおけるアプリケーション層を表し、符号S2はカーネル層を表し、符号S3は物理層S3を表す。
FIG. 5 is a diagram schematically showing the main part of the control device 8 in a mode suitable for explanation.
In FIG. 5, for convenience of explanation, functional blocks, programs, software (logical) ports, physical devices, and the like are represented by equivalent blocks.
In FIG. 5, reference numeral S1 represents an application layer in a hierarchical operating system, reference numeral S2 represents a kernel layer, and reference numeral S3 represents a physical layer S3.

図5において、仮想ポートKPは、POSアプリケーション実行部301がデータを出力し、また、POSアプリケーション実行部301に入力されたデータのインターフェースとして開設されたソフトウェア的(論理的)なポートである。POSアプリケーション実行部301は、データを出力する場合、仮想ポートKPに出力する。また、POSアプリケーション実行部301に対しては、仮想ポートKPからデータが出力される。   In FIG. 5, a virtual port KP is a software (logical) port established as an interface for data input by the POS application execution unit 301 and input to the POS application execution unit 301. When outputting data, the POS application execution unit 301 outputs the data to the virtual port KP. Data is output from the virtual port KP to the POS application execution unit 301.

また、図5において、LANポートLPは、ローカルネットワークLN(LAN)に対応する所定の通信プロトコルに対応する通信インターフェースに設けられた通信ポートである。LANポートLPには、LANケーブルが接続され、制御装置8は、LANポートLPに接続されたLANケーブルを介して、ローカルネットワークLNと通信する。   In FIG. 5, a LAN port LP is a communication port provided in a communication interface corresponding to a predetermined communication protocol corresponding to the local network LN (LAN). A LAN cable is connected to the LAN port LP, and the control device 8 communicates with the local network LN via the LAN cable connected to the LAN port LP.

また、図5において、ポートハンドラーPHは、仮想ポートKPと、LANポートLPとの間でのデータの送受信を仲介する機能ブロックであり、少なくとも、以下の機能を有する。
すなわち、ポートハンドラーPHは、POSアプリケーション実行部301が仮想ポートKPに出力した制御コマンドを、メンテナンス実行部302に出力する機能を有する。
また、ポートハンドラーPHは、メンテナンス実行部302からポートハンドラーPHに入力されたデータを、LANポートLPに出力する機能を有する。LANポートLPへのデータの出力に際し、ポートハンドラーPHは、PCS(Port Communication Service)の機能により、LANポートLPに係るインターフェースの規格(通信プロトコル)に対応したデータ変換を行う。
In FIG. 5, a port handler PH is a functional block that mediates data transmission / reception between the virtual port KP and the LAN port LP, and has at least the following functions.
That is, the port handler PH has a function of outputting the control command output from the POS application execution unit 301 to the virtual port KP to the maintenance execution unit 302.
The port handler PH has a function of outputting data input from the maintenance execution unit 302 to the port handler PH to the LAN port LP. When outputting data to the LAN port LP, the port handler PH performs data conversion corresponding to the interface standard (communication protocol) related to the LAN port LP by a PCS (Port Communication Service) function.

図5に示すように、POSアプリケーション実行部301、メンテナンス実行部302、及び、ポートハンドラーPHは、アプリケーション層S1に位置する。仮想ポートKPは、カーネル層S2に位置する。LANポートLPは、物理層S3に位置する。   As shown in FIG. 5, the POS application execution unit 301, the maintenance execution unit 302, and the port handler PH are located in the application layer S1. The virtual port KP is located in the kernel layer S2. The LAN port LP is located in the physical layer S3.

図6は、図4のステップSD1の応答要求送信処理の実行時におけるPOSアプリケーション実行部301、及び、メンテナンス実行部302の動作を示すフローチャートである。図6の(A)はPOSアプリケーション実行部301の動作を示し、(B)はメンテナンス実行部302の動作を示す。
図6の説明で明らかとなるとおり、制御装置8は、印刷装置9にレシートを発行させる制御コマンドを送信するタイミングで、状態応答要求コマンドを印刷装置9に送信する。
FIG. 6 is a flowchart showing the operations of the POS application execution unit 301 and the maintenance execution unit 302 during the execution of the response request transmission process in step SD1 of FIG. 6A shows the operation of the POS application execution unit 301, and FIG. 6B shows the operation of the maintenance execution unit 302.
As will be apparent from the description of FIG. 6, the control device 8 transmits a status response request command to the printing device 9 at the timing of transmitting a control command for causing the printing device 9 to issue a receipt.

図6の(A)に示すように、レジカウンターにおいて会計が行われた場合、図3の(A)のフローチャートを用いて説明したとおりPOSアプリケーション実行部301は、会計処理を実行して、レシートの発行を指示する制御コマンドを生成する(ステップSF1)。
以下の説明では、POSアプリケーション実行部301が生成する制御コマンドのうち、レシートの発行を指示する制御コマンドを、特に、「レシート発行指示コマンド」という。
なお、本実施形態では、POSアプリケーションAPが、プリンタードライバーとしての機能を有し、POSアプリケーション実行部301が、制御コマンドを生成する。しかしながら、POSアプリケーションAPとは別にプリンタードライバーが制御装置8にインストールされ、POSアプリケーションAPとプリンタードライバーとが協働して制御コマンドを生成する構成でもよい。
As shown in FIG. 6A, when the checkout is performed at the checkout counter, the POS application execution unit 301 executes the checkout process as described with reference to the flowchart of FIG. A control command for instructing issuance is generated (step SF1).
In the following description, among the control commands generated by the POS application execution unit 301, a control command that instructs the issuance of a receipt is particularly referred to as a “receipt issuance instruction command”.
In this embodiment, the POS application AP has a function as a printer driver, and the POS application execution unit 301 generates a control command. However, a configuration in which a printer driver is installed in the control device 8 separately from the POS application AP, and the POS application AP and the printer driver cooperate to generate a control command.

POSアプリケーション実行部301は、生成した制御コマンドを、仮想ポートKPに出力する(ステップSF2)。
仮想ポートKPに出力された制御コマンド(本例では、レシート発行指示コマンド。)は、ポートハンドラーPHの機能により、メンテナンス実行部302に出力される。
The POS application execution unit 301 outputs the generated control command to the virtual port KP (step SF2).
The control command (receipt issue instruction command in this example) output to the virtual port KP is output to the maintenance execution unit 302 by the function of the port handler PH.

図6の(B)に示すように、メンテナンス実行部302は、POSアプリケーション実行部301が出力した制御コマンドを取得する(ステップSG1)。
次いで、メンテナンス実行部302は、ステップSG1で取得した制御コマンドがレシート発行指示コマンドであるか否かを判別する(ステップSG2)。ここで、POSアプリケーション実行部301が生成し出力する制御コマンドは、レシート発行指示コマンドでない場合がある。レシート発行指示コマンド以外の制御コマンドとしては、例えば、印刷装置9の所定の設定の変更を指示するコマンドがある。つまり、ステップSG1でメンテナンス実行部302が取得する制御コマンドは、レシート発行指示コマンドであるとは限らないため、ステップSG2の処理が必要となる。
As shown in FIG. 6B, the maintenance execution unit 302 acquires the control command output by the POS application execution unit 301 (step SG1).
Next, the maintenance execution unit 302 determines whether or not the control command acquired in step SG1 is a receipt issuance instruction command (step SG2). Here, the control command generated and output by the POS application execution unit 301 may not be a receipt issuance instruction command. As a control command other than the receipt issue instruction command, for example, there is a command for instructing a change of a predetermined setting of the printing apparatus 9. That is, since the control command acquired by the maintenance execution unit 302 in step SG1 is not necessarily a receipt issue instruction command, the process in step SG2 is necessary.

図7は、レシート発行指示コマンドの内容を模式的に示す図である。図7では、説明の便宜のため、レシート発行指示コマンドの内容を、単純化して模式的に表す。
レシート発行指示コマンドは、複数のコマンドを含んで構成されたコマンド群である。
図7に示すように、レシート発行指示コマンドは、1又は複数の印刷指示コマンドを含む。印刷指示コマンドとは、レシートに印刷すべき画像(ロゴや、会計に関する情報、その他の文字列等)の印刷の実行を指示するコマンドである。印刷装置9は、レシート発行指示コマンドに含まれる印刷指示コマンドを順番に実行することにより、ロール紙に画像を印刷していく。
また、図7に示すように、レシート発行指示コマンドは、コマンド群の末尾に、ロール紙の切断を指示する切断指示コマンドを含む。印刷装置9は、切断指示コマンドに基づいてロール紙の切断を実行し、これにより、ロール紙から、レシートに対応する部分が切り離されて、レシートが発行される。
このように、レシート発行指示コマンドでは、コマンド群の末尾に切断指示コマンドが配置される。これは、印刷装置9におけるレシートの発行に係る処理のうち、ロール紙の切断は最後に実行される処理だからである。
FIG. 7 is a diagram schematically showing the contents of a receipt issuance instruction command. In FIG. 7, for the convenience of explanation, the contents of the receipt issuance instruction command are schematically shown in a simplified manner.
The receipt issuance instruction command is a command group configured to include a plurality of commands.
As shown in FIG. 7, the receipt issuance instruction command includes one or a plurality of print instruction commands. The print instruction command is a command for instructing execution of an image to be printed on a receipt (such as a logo, accounting information, and other character strings). The printing apparatus 9 prints images on roll paper by sequentially executing the print instruction commands included in the receipt issuance instruction command.
As shown in FIG. 7, the receipt issuance instruction command includes a cutting instruction command for instructing cutting of the roll paper at the end of the command group. The printing device 9 performs cutting of the roll paper based on the cutting instruction command, whereby a portion corresponding to the receipt is cut off from the roll paper and a receipt is issued.
Thus, in the receipt issuance instruction command, the cutting instruction command is arranged at the end of the command group. This is because, among the processes related to the receipt issuance in the printing apparatus 9, the cutting of the roll paper is the process executed last.

図6の(B)に示すように、ステップSG2において、メンテナンス実行部302は、ステップSG1で取得した制御コマンドを分析して、レシート発行指示コマンドであるか否かを判別する。例えば、メンテナンス実行部302は、制御コマンドのコマンド群レシートに必ず印刷される文字列(例えば、レシートに文字列「合計金額」が必ず印刷される場合、当該文字列)の印刷の実行を指示する印刷指示コマンドが含まれるか否かを判別することによって、ステップSG1で取得した制御コマンドがレシート発行指示コマンドであるか否かを判別する。ステップSG2の処理はどのような方法で行われてもよい。   As shown in FIG. 6B, in step SG2, the maintenance execution unit 302 analyzes the control command acquired in step SG1, and determines whether it is a receipt issuance instruction command. For example, the maintenance execution unit 302 instructs the execution of printing of a character string that is always printed on the command group receipt of the control command (for example, the character string “total amount” is always printed on the receipt). By determining whether or not a print instruction command is included, it is determined whether or not the control command acquired in step SG1 is a receipt issuance instruction command. The process of step SG2 may be performed by any method.

ステップSG1で取得した制御コマンドがレシート発行指示コマンドではない場合(ステップSG2:NO)、メンテナンス実行部302は、当該制御コマンドをポートハンドラーPHに出力する(ステップSG3)。ポートハンドラーPHに出力された制御コマンドは、ポートハンドラーPHの機能により、LANポートLPを介して印刷装置9に送信される。   When the control command acquired in step SG1 is not a receipt issuance instruction command (step SG2: NO), the maintenance execution unit 302 outputs the control command to the port handler PH (step SG3). The control command output to the port handler PH is transmitted to the printing apparatus 9 via the LAN port LP by the function of the port handler PH.

ステップSG1で取得した制御コマンドがレシート発行指示コマンドである場合(ステップSG2:YES)、メンテナンス実行部302は、切断指示コマンドの後ろに状態応答要求コマンドを付加する(ステップSG4)。上述したように、状態応答要求コマンドは、印刷装置9の状態に関する情報を含む処理装置状態情報データ(詳細は後述)の応答を要求するコマンドである。
次いで、メンテナンス実行部302は、状態応答要求コマンドが付加されたレシート発行指示コマンド(以下、「付加済コマンド」という。)をポートハンドラーPHに出力する(ステップSG5)。ポートハンドラーPHに出力された制御コマンドは、ポートハンドラーPHの機能により、LANポートLPを介して印刷装置9に送信される。ステップSG5の処理は、「状態応答要求コマンドが付加された制御コマンドを印刷装置9に送信する」処理に相当する。
When the control command acquired in step SG1 is a receipt issuance instruction command (step SG2: YES), the maintenance execution unit 302 adds a state response request command after the cutting instruction command (step SG4). As described above, the status response request command is a command for requesting a response of processing device status information data (details will be described later) including information related to the status of the printing device 9.
Next, the maintenance execution unit 302 outputs a receipt issuance instruction command to which the status response request command is added (hereinafter referred to as “added command”) to the port handler PH (step SG5). The control command output to the port handler PH is transmitted to the printing apparatus 9 via the LAN port LP by the function of the port handler PH. The process of step SG5 corresponds to a process of “sending a control command to which a status response request command is added to the printing apparatus 9”.

図6で説明した応答要求送信処理が行われて、制御装置8から印刷装置9に対して状態応答要求コマンドが送信されるため、以下の効果を奏する。
すなわち、メンテナンス実行部302が状態応答要求コマンドを印刷装置9に送信するための論理的な通信経路(例えば、ローカルネットワークLNを介してメンテナンス実行部302と、印刷装置9の印刷制御部401との間で確立されるTCPコネクション)を新たに設ける必要がない。メンテナンス実行部302は、新たに通信コネクションを確立することなく、POSアプリケーション実行部301が印刷装置9の印刷制御部401との間でのデータの送受信に使用する通信経路を用いて、状態応答要求コマンドの送信を実行することができる。このことは、特に、印刷制御部401との間での通信に使用可能な論理ポート(例えば、TCPポート)が「1つ」である場合に、有効である。なぜなら、POSアプリケーション実行部301と、印刷装置9の印刷制御部401との間で通信コネクションが確立した状態のときに、当該通信コネクションの確立を解除することなく、当該通信コネクションを使用して、状態応答要求コマンドの送信が可能となるからである。
Since the response request transmission process described in FIG. 6 is performed and the status response request command is transmitted from the control device 8 to the printing device 9, the following effects are obtained.
That is, a logical communication path for the maintenance execution unit 302 to transmit a status response request command to the printing apparatus 9 (for example, the maintenance execution unit 302 and the print control unit 401 of the printing apparatus 9 via the local network LN). There is no need to newly provide a TCP connection established between them. The maintenance execution unit 302 uses the communication path used by the POS application execution unit 301 to transmit / receive data to / from the print control unit 401 of the printing apparatus 9 without newly establishing a communication connection, Command transmission can be executed. This is particularly effective when the number of logical ports (for example, TCP ports) that can be used for communication with the print control unit 401 is “one”. This is because when the communication connection is established between the POS application execution unit 301 and the print control unit 401 of the printing apparatus 9, the communication connection is used without canceling the establishment of the communication connection. This is because the status response request command can be transmitted.

さらに、図6で説明した応答要求送信処理が行われて、制御装置8から印刷装置9に対して状態応答要求コマンドが送信されるため、POSアプリケーションAPに対する改変を行うことなく、状態応答要求コマンドの印刷装置9への送信が可能となる。
すなわち、図6で説明した通り、状態応答要求コマンドの送信に関し、POSアプリケーション実行部301が出力する制御コマンド(レシート発行指示コマンド)に何ら変更はない。メンテナンス実行部302の機能により、POSアプリケーション実行部301の処理に影響を与えることなく、状態応答要求コマンドの付加が行われるからである。つまり、状態応答要求コマンドの送信のためにPOSアプリケーション実行部301が出力する制御コマンドの内容を変更する必要がなく、従って、POSアプリケーションAPに変更が必要ない。
Furthermore, since the response request transmission process described with reference to FIG. 6 is performed and the status response request command is transmitted from the control device 8 to the printing device 9, the status response request command is not changed without modifying the POS application AP. Can be transmitted to the printing apparatus 9.
That is, as described with reference to FIG. 6, there is no change in the control command (receipt issue instruction command) output by the POS application execution unit 301 regarding the transmission of the status response request command. This is because the status response request command is added without affecting the processing of the POS application execution unit 301 by the function of the maintenance execution unit 302. That is, it is not necessary to change the contents of the control command output by the POS application execution unit 301 for transmission of the status response request command, and accordingly, the POS application AP does not need to be changed.

また、状態応答要求コマンドは、切断指示コマンドの後ろに配置されるように付加される。これは、以下の理由による。すなわち、レシート発行指示コマンドに含まれるコマンドは、一連のコマンドであり、レシート発行指示コマンドに含まれるコマンドが順番どおりに連続して実行されることによって正常にレシートの発行が可能になる。そして、上述したように、切断指示コマンドは、レシート発行指示コマンドにおいて末尾に配置されるコマンドであるため、切断指示コマンドの後ろに状態応答要求コマンドを配置することにより、レシート発行指示コマンドに含まれる1のコマンドと次のコマンドとの間に状態応答要求コマンドが配置されることを防止でき、正常にレシートが発行されない事態が発生することを防止できる。
また、状態応答要求コマンドを付加する制御コマンドを、レシート発行指示コマンドとする理由は、レシート発行指示コマンドは必ず切断指示コマンドを含むが、レシート発行指示コマンド以外の制御コマンドは切断指示コマンドを含むとは限らないからである。
The status response request command is added so as to be placed after the disconnection instruction command. This is due to the following reason. That is, the commands included in the receipt issuance instruction command are a series of commands, and a receipt can be normally issued by executing the commands included in the receipt issuance instruction command successively in order. As described above, since the cutting instruction command is a command arranged at the end of the receipt issuing instruction command, it is included in the receipt issuing instruction command by arranging the status response request command after the cutting instruction command. It is possible to prevent a status response request command from being placed between one command and the next command, and to prevent a situation in which a receipt is not normally issued.
The reason why the control command for adding the status response request command is the receipt issuance instruction command is that the receipt issuance instruction command always includes a cutting instruction command, but the control commands other than the receipt issuance instruction command include a cutting instruction command. Because there is no limit.

図4の(B)に示すように、ステップSD1の応答要求送信処理により、付加済コマンド(状態応答要求コマンドが付加されたレシート発行指示コマンド)が、制御装置8から印刷装置9に送信される。
なお、レシート発行指示コマンドへの状態応答要求コマンドの付加は、POSアプリケーション実行部301がレシート発行指示コマンドを生成する度に毎回行う構成でもよく、予め定められた条件が成立した場合等、所定のタイミングでのみ行う構成でもよい。
As shown in FIG. 4B, the added command (receipt issue instruction command to which the status response request command is added) is transmitted from the control device 8 to the printing device 9 by the response request transmission processing in step SD1. .
The addition of the status response request command to the receipt issuance instruction command may be performed every time the POS application execution unit 301 generates a receipt issuance instruction command. For example, when a predetermined condition is satisfied, It may be configured to perform only at the timing.

図4の(A)に示すように、印刷装置9の印刷制御部401は、付加済コマンドを受信する(ステップSC1)。
図4における図示は省略するが、印刷制御部401は、受信した付加済コマンドに含まれるレシート発行指示コマンドに基づいてレシートを発行する。
また、印刷制御部401は、付加済コマンドに含まれる状態応答要求コマンドに基づいて、処理装置状態情報データを生成し、制御装置8に送信(応答)する(ステップSC2)。
処理装置状態情報データとは、印刷装置9を識別する印刷装置識別情報、及び、予め定められた監視項目のログを含むデータである。
監視項目とは、状態を監視し、ログを取る対象とすることが事前に定められた項目のことである。監視項目として、例えば、印刷に関するエラーの発生の有無や、通信に関するエラーの発生の有無、印刷ヘッドを使用可能な残日数、カッターを使用可能な残日数等がある。
以下、処理装置状態情報データに含まれる監視項目のそれぞれのログのことを監視項目ログ情報という。
処理装置状態情報データは、状態応答要求コマンドに対する応答のデータに相当する。
As shown in FIG. 4A, the print control unit 401 of the printing apparatus 9 receives the added command (step SC1).
Although not shown in FIG. 4, the print control unit 401 issues a receipt based on a receipt issuance instruction command included in the received added command.
Further, the print control unit 401 generates processing device status information data based on the status response request command included in the added command, and transmits (responds) to the control device 8 (step SC2).
The processing device state information data is data including printing device identification information for identifying the printing device 9 and a log of predetermined monitoring items.
The monitoring item is an item that is determined in advance as a target for monitoring a state and collecting a log. The monitoring items include, for example, whether or not an error relating to printing has occurred, whether or not an error relating to communication has occurred, the remaining number of days that the print head can be used, the remaining number of days that the cutter can be used, and the like.
Hereinafter, each log of the monitoring items included in the processing device state information data is referred to as monitoring item log information.
The processing device status information data corresponds to response data to the status response request command.

図4の(B)に示すように、制御装置8の制御装置制御部30は、印刷装置9が送信したデータの受信に応じて、応答受信処理を実行する(ステップSD2)。
以下、ステップSD2の応答受信処理について詳述する。
As shown in FIG. 4B, the control device control unit 30 of the control device 8 executes response reception processing in response to the reception of data transmitted by the printing device 9 (step SD2).
Hereinafter, the response reception process in step SD2 will be described in detail.

図8は、図4の(B)の応答受信処理の実行時のメンテナンス実行部302の動作を示すフローチャートである。
なお、制御装置8が送信したデータは、LANポートLPを介してポートハンドラーPHに出力され、ポートハンドラーPHの機能によりメンテナンス実行部302に出力される。以下、制御装置8が印刷装置9から受信したデータ(ポートハンドラーPHからメンテナンス実行部302に出力されたデータ)のことを「受信データ」という。
FIG. 8 is a flowchart showing the operation of the maintenance execution unit 302 when the response reception process of FIG. 4B is executed.
The data transmitted by the control device 8 is output to the port handler PH via the LAN port LP, and is output to the maintenance execution unit 302 by the function of the port handler PH. Hereinafter, data received by the control device 8 from the printing device 9 (data output from the port handler PH to the maintenance execution unit 302) is referred to as “reception data”.

図8に示すように、メンテナンス実行部302は、ポートハンドラーPHが出力した受信データを取得する(ステップSH1)。
次いで、メンテナンス実行部302は、ステップSH1で取得した受信データを分析し、当該受信データが、ステップSD1の応答要求送信処理で送信した状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)であるか否かを判別する(ステップSH2)。
状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)は、データのフォーマットが定まっており、ステップSH2において、メンテナンス実行部302は、受信データのフォーマットに基づいて判別を実行する。ステップSD1の応答要求送信処理で送信した状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)であるか否かの判別は、どのような方法で行われてもよい。
As shown in FIG. 8, the maintenance execution unit 302 acquires the reception data output by the port handler PH (step SH1).
Next, the maintenance execution unit 302 analyzes the received data acquired in step SH1, and the received data is response data (processing device status information data) to the status response request command transmitted in the response request transmission process in step SD1. It is determined whether or not there is (step SH2).
The data of the response to the status response request command (processing device status information data) has a predetermined data format. In step SH2, the maintenance execution unit 302 performs determination based on the format of the received data. It is possible to determine whether or not the data is response data (processing device status information data) to the status response request command transmitted in the response request transmission processing of step SD1.

ステップSH1で取得した受信データが、状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)ではない場合(ステップSH2:NO)、メンテナンス実行部302は、ポートハンドラーPHに受信データを出力する(ステップSH3)。ポートハンドラーPHに入力された受信データは、ポートハンドラーPHの機能により、POSアプリケーション実行部301に出力される。
ステップSH3の処理は、「受信データが状態応答要求コマンドに対する応答のデータではない場合、受信データをPOSアプリケーション実行部301(処理制御部)に出力する処理」に相当する。
このように、受信データが、状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)ではない場合、メンテナンス実行部302は、POSアプリケーション実行部301に受信データを出力する。これは、この場合、受信データは、印刷装置9が、POSアプリケーション実行部301に処理させることを目的として送信したデータだからである。
When the reception data acquired in step SH1 is not response data (processing device state information data) to the state response request command (step SH2: NO), the maintenance execution unit 302 outputs the reception data to the port handler PH ( Step SH3). The received data input to the port handler PH is output to the POS application execution unit 301 by the function of the port handler PH.
The process of step SH3 corresponds to “a process of outputting the received data to the POS application execution unit 301 (process control unit) when the received data is not data of a response to the status response request command”.
As described above, when the received data is not data for the response to the status response request command (processing device status information data), the maintenance execution unit 302 outputs the received data to the POS application execution unit 301. This is because in this case, the received data is data transmitted by the printing apparatus 9 for the purpose of causing the POS application execution unit 301 to process it.

一方、ステップSH1で取得した受信データが、状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)である場合(ステップSH2:YES)、メンテナンス実行部302は、ポートハンドラーPHに受信データを出力することなく、受信データ(=処理装置状態情報データ)に基づく処理を実行する(ステップSH4)。具体的には、メンテナンス実行部302は、処理装置状態情報データをメンテナンスサーバー7に送信する。
ステップSH4の処理は、「受信データが状態応答要求コマンドに対する応答のデータである場合、受信データをPOSアプリケーション実行部301(処理制御部)に出力することなく、受信データに基づく処理を実行する」ことに相当する。
このように、受信データが、状態応答要求コマンドに対する応答のデータである場合、メンテナンス実行部302は、POSアプリケーション実行部301に受信データを出力することなく、受信データに基づく処理を実行する。これにより、POSアプリケーション実行部301に想定されないデータが入力されて、POSアプリケーション実行部301の処理に影響が生じることを防止できる。
On the other hand, when the received data acquired in step SH1 is data of response to the status response request command (processing device status information data) (step SH2: YES), the maintenance execution unit 302 outputs the received data to the port handler PH. Without processing, the process based on the received data (= processing device state information data) is executed (step SH4). Specifically, the maintenance execution unit 302 transmits the processing apparatus state information data to the maintenance server 7.
The process of step SH4 is “if the received data is data of a response to the status response request command, execute a process based on the received data without outputting the received data to the POS application execution unit 301 (process control unit)”. It corresponds to that.
As described above, when the received data is data of a response to the status response request command, the maintenance execution unit 302 executes processing based on the received data without outputting the received data to the POS application execution unit 301. Thereby, it is possible to prevent unexpected data from being input to the POS application execution unit 301 and affecting the processing of the POS application execution unit 301.

なお、図4では、受信データが、状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)であったものとして、フローチャートを記載している。   In FIG. 4, the flowchart is described assuming that the received data is data of a response to the status response request command (processing device status information data).

図4の(C)に示すように、メンテナンスサーバー7は、制御装置8が送信した処理装置状態情報データを受信する(ステップSE1)。
次いで、メンテナンスサーバー7は、受信した処理装置状態情報データに基づいて、ステータスデータベース(不図示)を更新する(ステップSE2)。
ステータスデータベースとは、店舗システム3に設けられた印刷装置9ごとに、印刷装置9を識別する印刷装置識別情報と、監視項目ログ情報とを対応付けて記憶するデータベースである。
ステップSE2において、メンテナンスサーバー7は、受信した処理装置状態情報データに基づいて、ステータスデータベースに記憶された対応する監視項目ログ情報を更新する。
As shown in FIG. 4C, the maintenance server 7 receives the processing device state information data transmitted by the control device 8 (step SE1).
Next, the maintenance server 7 updates a status database (not shown) based on the received processing device state information data (step SE2).
The status database is a database that stores printing device identification information for identifying the printing device 9 and monitoring item log information in association with each printing device 9 provided in the store system 3.
In step SE2, the maintenance server 7 updates the corresponding monitoring item log information stored in the status database based on the received processing device state information data.

以上のようにして、ステータスデータベースは、店舗システム3に設けられた印刷装置9のそれぞれについて、印刷装置9を識別する印刷装置情報と、最新の監視項目ログ情報とが対応付けられた状態とされる。
メンテナンスサーバー7は、特定の印刷装置9の状態についての問い合わせに応じて、ステータスデータベースを参照し、当該特定の印刷装置9の監視項目ログ情報を取得する。次いで、メンテナンスサーバー7は、取得した監視項目ログ情報に基づいて、当該特定の印刷装置9の状態に関する情報を応答する。
As described above, the status database is in a state in which the printing device information for identifying the printing device 9 and the latest monitoring item log information are associated with each of the printing devices 9 provided in the store system 3. The
The maintenance server 7 refers to the status database in response to an inquiry about the state of the specific printing apparatus 9 and acquires the monitoring item 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 monitoring item log information.

以上説明したように、本実施形態に係るネットワークシステム1に含まれる店舗システム3は、ロール紙(記録媒体)に印刷する印刷装置9と、印刷装置9と通信可能な制御装置8とを備える。制御装置8は、POSアプリケーションAP(印刷制御プログラム)により、印刷装置9に印刷の実行を指示する制御コマンドを生成し、出力するPOSアプリケーション実行部(処理制御部)を有する。また、制御装置8は、POSアプリケーションAPとは異なるメンテナンス用プログラムMGにより、POSアプリケーション実行部301が出力した制御コマンドに、印刷装置9の状態に関する情報の応答を要求する状態応答要求コマンドを付加し、状態応答要求コマンドが付加された制御コマンドを印刷装置9に送信するメンテナンス実行部302(管理部)を有する。
この構成によれば、制御装置8は、POSアプリケーションAPの改変を行うことなく、メンテナンス用プログラムMGの機能に基づくメンテナンス実行部302により、制御装置8は、印刷装置9の状態を取得できる。すなわち、印刷装置9に接続可能な制御装置8について、制御装置8にインストールされたプログラムの改変を抑制した上で、制御装置8に対して印刷装置9の状態を取得する機能を付加できる。
なお、印刷制御プログラムに相当するプログラムは、POSアプリケーションAPに限られない。例えば、POSアプリケーションAPとプリンタードライバーの組み合わせであってもよく、他のプログラムであってもよい。すなわち、印刷制御プログラムは、メンテナンス用プログラムMGとは異なるプログラムであればよい。
As described above, the store system 3 included in the network system 1 according to the present embodiment includes the printing device 9 that prints on roll paper (recording medium) and the control device 8 that can communicate with the printing device 9. The control device 8 has a POS application execution unit (processing control unit) that generates and outputs a control command that instructs the printing device 9 to execute printing by a POS application AP (print control program). Further, the control device 8 adds a status response request command for requesting a response of information related to the status of the printing device 9 to the control command output by the POS application execution unit 301 by a maintenance program MG different from the POS application AP. The maintenance execution unit 302 (management unit) transmits a control command to which the status response request command is added to the printing apparatus 9.
According to this configuration, the control device 8 can acquire the state of the printing device 9 by the maintenance execution unit 302 based on the function of the maintenance program MG without modifying the POS application AP. That is, with respect to the control device 8 that can be connected to the printing device 9, it is possible to add a function of acquiring the state of the printing device 9 to the control device 8 while suppressing modification of a program installed in the control device 8.
Note that the program corresponding to the print control program is not limited to the POS application AP. For example, it may be a combination of a POS application AP and a printer driver, or another program. That is, the print control program may be a program different from the maintenance program MG.

また、本実施形態では、制御装置8のメンテナンス実行部302は、印刷装置9から受信した受信データを取得して分析し、受信データが状態応答要求コマンドに対する応答のデータであるか否かを判別する。そして、メンテナンス実行部302は、受信データが状態応答要求コマンドに対する応答のデータではない場合、受信データをPOSアプリケーション実行部301に出力し、受信データが状態応答要求コマンドに対する応答のデータである場合、受信データをPOSアプリケーション実行部301に出力することなく、受信データに基づく処理を実行する。
この構成によれば、メンテナンス実行部302は、印刷装置9から受信したデータについて、POSアプリケーション実行部301が処理すべきデータは、POSアプリケーション実行部301に出力して、POSアプリケーション実行部301に実行させることができる。また、メンテナンス実行部302は、印刷装置9から受信したデータについて、自身が処理すべきデータは、POSアプリケーション実行部301に出力することなく、自身で実行できる。
In the present embodiment, the maintenance execution unit 302 of the control device 8 acquires and analyzes the received data received from the printing device 9, and determines whether the received data is data for a response to the status response request command. To do. When the received data is not response data to the status response request command, the maintenance execution unit 302 outputs the received data to the POS application execution unit 301. When the received data is response data to the status response request command, The process based on the received data is executed without outputting the received data to the POS application execution unit 301.
According to this configuration, the maintenance execution unit 302 outputs, to the POS application execution unit 301, data to be processed by the POS application execution unit 301 with respect to the data received from the printing apparatus 9. Can be made. In addition, the maintenance execution unit 302 can execute the data received from the printing apparatus 9 by itself without outputting the data to be processed to the POS application execution unit 301.

また、本実施形態では、POSアプリケーション実行部301が出力する制御コマンドは、印刷装置9にレシート(紙片)の発行を指示するコマンド群であり、ロール紙への画像の印刷を指示する印刷指示コマンドを含むと共に、コマンド群の末尾にロール紙の切断を指示する切断指示コマンドを含む。そして、メンテナンス実行部302は、制御コマンドに状態応答要求コマンドを付加する場合、制御コマンドに含まれる切断指示コマンドの後ろに前記状態応答要求コマンドを付加する。
この構成によれば、切断指示コマンドの後ろに状態応答要求コマンドを配置することにより、レシート発行指示コマンドに含まれる1のコマンドと次のコマンドとの間に状態応答要求コマンドが配置されることを防止でき、正常にレシートが発行されない事態が発生することを防止できる。
In this embodiment, the control command output by the POS application execution unit 301 is a command group that instructs the printing apparatus 9 to issue a receipt (paper piece), and a print instruction command that instructs printing of an image on roll paper. And a cutting instruction command for instructing cutting of the roll paper at the end of the command group. Then, when adding the status response request command to the control command, the maintenance execution unit 302 adds the status response request command after the disconnection instruction command included in the control command.
According to this configuration, by arranging the status response request command after the disconnection command, the status response request command is arranged between one command and the next command included in the receipt issuance command. It is possible to prevent a situation in which a receipt is not normally issued.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
例えば、上述した実施形態では、店舗システム3が、店舗に適用される場合を例示して発明を説明したが、店舗システム3が適用される施設は、店舗に限らない。
また例えば、ネットワークシステム1を構成する各装置の通信方法はどのような方法でもよい。
また例えば、上述した実施形態では、印刷装置9の記録方式は、サーマル式としたが、記録方式は何でもよい。
また例えば、上述した実施形態における各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。
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.
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.
Further, for example, any method may be used as a communication method for each device constituting the network system 1.
Further, for example, in the above-described embodiment, the recording method of the printing apparatus 9 is the thermal method, but any recording method may be used.
Further, for example, each functional block in the above-described embodiment can be arbitrarily realized by hardware and software, and does not suggest a specific hardware configuration.

… 1…ネットワークシステム、3…店舗システム、7…メンテナンスサーバー、8…制御装置、9…印刷装置、10…POSサーバー、12…通信装置、301…POSアプリケーション実行部(処理制御部)、302…メンテナンス実行部(管理部)、AP…POSアプリケーション(印刷制御プログラム)、MG…メンテナンス用プログラム。 DESCRIPTION OF SYMBOLS 1 ... Network system, 3 ... Store system, 7 ... Maintenance server, 8 ... Control apparatus, 9 ... Printing apparatus, 10 ... POS server, 12 ... Communication apparatus, 301 ... POS application execution part (process control part), 302 ... Maintenance execution unit (management unit), AP ... POS application (printing control program), MG ... maintenance program.

Claims (6)

記録媒体に印刷する印刷装置と、前記印刷装置と通信可能な制御装置とを備えるネットワークシステムであって、
前記制御装置は、
印刷制御プログラムにより、前記印刷装置に印刷の実行を指示する制御コマンドを生成し、出力する処理制御部と、
前記印刷制御プログラムとは異なるメンテナンス用プログラムにより、前記処理制御部が出力した前記制御コマンドに、前記印刷装置の状態に関する情報の応答を要求する状態応答要求コマンドを付加し、前記状態応答要求コマンドが付加された前記制御コマンドを前記印刷装置に送信する管理部と、を有する
ことを特徴とするネットワークシステム。
A network system comprising a printing device for printing on a recording medium, and a control device capable of communicating with the printing device,
The controller is
A processing control unit that generates and outputs a control command for instructing the printing apparatus to execute printing by a printing control program;
A status response request command for requesting a response of information related to the status of the printing apparatus is added to the control command output by the processing control unit by a maintenance program different from the print control program, and the status response request command And a management unit that transmits the added control command to the printing apparatus.
前記制御装置の前記管理部は、
前記印刷装置から受信した受信データを取得して分析し、前記受信データが前記状態応答要求コマンドに対する応答のデータであるか否かを判別し、前記受信データが前記状態応答要求コマンドに対する応答のデータではない場合、前記受信データを前記処理制御部に出力し、前記受信データが前記状態応答要求コマンドに対する応答のデータである場合、前記受信データを前記処理制御部に出力することなく、前記受信データに基づく処理を実行する
ことを特徴とする請求項1に記載のネットワークシステム。
The management unit of the control device includes:
Received data received from the printing device is acquired and analyzed to determine whether the received data is response data to the status response request command, and the received data is response data to the status response request command If not, the received data is output to the processing control unit, and when the received data is data of a response to the status response request command, the received data is not output to the processing control unit. The network system according to claim 1, wherein a process based on the process is executed.
前記制御コマンドは、前記印刷装置に紙片の発行を指示するコマンド群であり、前記記録媒体への画像の印刷を指示する印刷指示コマンドを含むと共に、コマンド群の末尾に前記記録媒体の切断を指示する切断指示コマンドを含み、
前記管理部は、
前記制御コマンドに前記状態応答要求コマンドを付加する場合、前記制御コマンドに含まれる前記切断指示コマンドの後ろに前記状態応答要求コマンドを付加する
ことを特徴とする請求項1又は2に記載のネットワークシステム。
The control command is a command group for instructing the printing apparatus to issue a piece of paper, and includes a print instruction command for instructing printing of an image on the recording medium, and instructing cutting of the recording medium at the end of the command group. Including a disconnection command to
The management unit
3. The network system according to claim 1, wherein when the state response request command is added to the control command, the state response request command is added after the disconnection instruction command included in the control command. 4. .
記録媒体に印刷する印刷装置と通信可能な制御装置であって、
印刷制御プログラムにより、前記印刷装置に印刷の実行を指示する制御コマンドを生成し、出力する処理制御部と、
前記印刷制御プログラムとは異なるメンテナンス用プログラムにより、前記処理制御部が出力した前記制御コマンドに、前記印刷装置の状態に関する情報の応答を要求する状態応答要求コマンドを付加し、前記状態応答要求コマンドが付加された前記制御コマンドを前記印刷装置に送信する管理部と、
を備えることを特徴とする制御装置。
A control device capable of communicating with a printing device for printing on a recording medium,
A processing control unit that generates and outputs a control command for instructing the printing apparatus to execute printing by a printing control program;
A status response request command for requesting a response of information related to the status of the printing apparatus is added to the control command output by the processing control unit by a maintenance program different from the print control program, and the status response request command A management unit for transmitting the added control command to the printing apparatus;
A control device comprising:
前記管理部は、
前記印刷装置から受信した受信データを取得して分析し、前記受信データが前記状態応答要求コマンドに対する応答のデータであるか否かを判別し、前記受信データが前記状態応答要求コマンドに対する応答のデータではない場合、前記受信データを前記処理制御部に出力し、前記受信データが前記状態応答要求コマンドに対する応答のデータである場合、前記受信データを前記処理制御部に出力することなく、前記受信データに基づく処理を実行する
ことを特徴とする請求項4に記載の制御装置。
The management unit
Received data received from the printing device is acquired and analyzed to determine whether the received data is response data to the status response request command, and the received data is response data to the status response request command If not, the received data is output to the processing control unit, and when the received data is data of a response to the status response request command, the received data is not output to the processing control unit. The control device according to claim 4, wherein a process based on the control unit is executed.
前記制御コマンドは、前記印刷装置に紙片の発行を指示するコマンド群であり、前記記録媒体への画像の印刷を指示する印刷指示コマンドを含むと共に、コマンド群の末尾に前記記録媒体の切断を指示する切断指示コマンドを含み、
前記管理部は、
前記制御コマンドに前記状態応答要求コマンドを付加する場合、前記制御コマンドに含まれる前記切断指示コマンドの後ろに前記状態応答要求コマンドを付加する
ことを特徴とする請求項4又は5に記載の制御装置。
The control command is a command group for instructing the printing apparatus to issue a piece of paper, and includes a print instruction command for instructing printing of an image on the recording medium, and instructing cutting of the recording medium at the end of the command group. Including a disconnection command to
The management unit
6. The control device according to claim 4, wherein when the state response request command is added to the control command, the state response request command is added after the disconnection instruction command included in the control command. 7. .
JP2015219615A 2015-11-09 2015-11-09 Network system and control device Active JP6578894B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2015219615A JP6578894B2 (en) 2015-11-09 2015-11-09 Network system and control device
US15/335,185 US10127482B2 (en) 2015-11-09 2016-10-26 Printing system including automatic status transmission function and control device and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015219615A JP6578894B2 (en) 2015-11-09 2015-11-09 Network system and control device

Publications (3)

Publication Number Publication Date
JP2017091160A true JP2017091160A (en) 2017-05-25
JP2017091160A5 JP2017091160A5 (en) 2018-12-06
JP6578894B2 JP6578894B2 (en) 2019-09-25

Family

ID=58769272

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015219615A Active JP6578894B2 (en) 2015-11-09 2015-11-09 Network system and control device

Country Status (1)

Country Link
JP (1) JP6578894B2 (en)

Also Published As

Publication number Publication date
JP6578894B2 (en) 2019-09-25

Similar Documents

Publication Publication Date Title
EP3154237B1 (en) Network system and communication control method
JP6277959B2 (en) Receipt issuing system, printer, and receipt issuing method
US9787858B2 (en) Network system and control method of a network system
JP6375853B2 (en) RECORDING DEVICE, ACCOUNTING SYSTEM, AND RECORDING DEVICE CONTROL METHOD
JP5728946B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, AND PROGRAM
TWI505178B (en) Printing systems and printers
US10089046B2 (en) Receipt printing system, control method of a receipt printing system, and control device
JP6578894B2 (en) Network system and control device
WO2016129226A1 (en) Printer driver and pos system
JP2016081106A (en) Information processor, accounting system and recording apparatus
JP6578895B2 (en) Network system and control device
JP2016212491A (en) Network system, network system control method, and control device
EP3023914B1 (en) Printing device and printing system
US10127482B2 (en) Printing system including automatic status transmission function and control device and control method thereof
JP6287215B2 (en) POS control system, printing apparatus, and control method of POS control system
JP5515498B2 (en) CONTROL DEVICE, CONTROL DEVICE CONTROL METHOD, PROGRAM
US9959489B2 (en) Network system, printing device, and control method of a printing device
JP2017130044A (en) Pos system, printer and control method of printer
JP2015099419A (en) Printing control device, printing control method and program
JP6127638B2 (en) Printing apparatus, printing apparatus control method, and program
JP6451251B2 (en) Printing apparatus and printing system
JP2011192107A (en) Control device, recording system, control method of the control device and program
JP2017091161A (en) Network system and information processor
JP6344152B2 (en) Recording apparatus and method for controlling recording apparatus
JP6405844B2 (en) Network system and communication method

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20181023

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181023

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190318

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190409

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190509

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190812

R150 Certificate of patent or registration of utility model

Ref document number: 6578894

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150