JP2017091160A - Network system and control device - Google Patents
Network system and control device Download PDFInfo
- 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
Links
Images
Landscapes
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
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).
上述したネットワークシステムにおいて、制御装置に、印刷装置の状態に関する情報を取得する機能を付加する場合、印刷制御プログラムを改変して、制御装置に当該機能を付加することが考えられる。しかしながら、この場合、印刷制御プログラムの改変に要する作業が煩雑であり、また、印刷制御プログラムの改変が、制御装置の既存の処理に影響を与える可能性がある。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置に接続可能な制御装置について、制御装置にインストールされたプログラムの改変を抑制した上で、制御装置に対して印刷装置の状態を取得する機能を付加できるようにすることを目的とする。
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.
以下、図面を参照して本発明の実施形態について説明する。
図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
店舗システム3は、店舗に設けられるシステムである。
図1に示すように、店舗システム3は、ローカルネットワークLNを備える。ローカルネットワークLNには、1又は複数の制御装置8及び制御装置8に接続される印刷装置9と、POSサーバー10と、が接続される。
ローカルネットワークLNを介して行われる通信の通信規格は何でもよく、また、当該ローカルネットワークを介して行われる通信は有線通信でも無線通信でもよい。
The
As shown in FIG. 1, the
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
The
As will be described later, the
The
Details of the configuration, functions, and processing based on the functions of the
通信装置12は、ローカルネットワークLNと、グローバルネットワークGNとを接続するインターフェース装置である。通信装置12は、モデム(又は、ONU(Optical Network Unit))としての機能、ルーター機能、NAT(Network Address Translation)機能、及び、DHCP(Dynamic Host Configuration Protocol)サーバー機能等を有する。通信装置12は、ローカルネットワークに接続された機器と、グローバルネットワークGNに接続された機器との間で行われる通信に際し、機器間で送受信されるデータを転送する。なお、図1では、通信装置12を1つのブロックで表現するが、通信装置12は、機能に応じた複数の装置を有する構成でもよい。
The
店舗システム3において、制御装置8と、印刷装置9と、POSサーバー10とは、ローカルネットワークLNを介して通信可能である。
また、店舗システム3の印刷装置9は、通信装置12の機能を利用して、ローカルネットワークLN、及び、グローバルネットワークGNを介して、メンテナンスサーバー7と通信可能である。
In the
Further, the
なお、店舗システム3は、ネットワークシステム1の一部であり、「印刷装置9と、印刷装置9と通信可能な制御装置8とを備えるネットワークシステム」に相当する。
The
メンテナンスサーバー7は、店舗システム3に設けられた印刷装置9の状態を管理する機能を有するサーバーである。メンテナンスサーバー7については後述する。
The
なお、図1では、メンテナンスサーバー7、及び、POSサーバー10を、それぞれ、1つのブロックによって表現するが、これは、これらサーバーが、それぞれ、単一のサーバー装置により構成されることを意味するものではない。例えば、メンテナンスサーバー7、及び、POSサーバー10は、複数のサーバー装置を含んで構成されたものでもよい。
また、メンテナンスサーバー7と、印刷装置9との間では、VPN(Virtual Private Network)等の、暗号化に係る技術や、仮想専用線(物理的な専用線であってもよい。)に係る技術によりセキュアな通信が行われる。
In FIG. 1, the
In addition, between the
図2は、店舗システム3が備える制御装置8、印刷装置9、及び、POSサーバー10の機能的構成を示すブロック図である。
FIG. 2 is a block diagram illustrating functional configurations of the
制御装置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
As shown in FIG. 2, a control
The control
The
The control
The control
制御装置記憶部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
The control
In addition, the control
The control 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
バーコードスキャナー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
The customer display CD is a display device such as a liquid crystal display, and displays various information under the control of the control
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
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
印刷装置9は、ロール紙(記録媒体)を収容し、ロール紙にライン型のサーマルヘッドによってドットを形成することにより画像を印刷するラインサーマルプリンターである。
図2に示すように、印刷装置9は、印刷装置制御部40と、印刷装置印刷部41と、印刷装置記憶部42と、印刷装置通信部43と、を備える。
The
As illustrated in FIG. 2, the
印刷装置制御部40は、図示しないCPUや、ROM、RAM、その他周辺回路等を備え、印刷装置9を制御する。
印刷装置制御部40は、印刷制御部401を備える。印刷制御部401は、CPUによりファームウェア、その他のプログラムを読み出して実行する等、ハードウェアとソフトウェアとにより処理を実行する。印刷制御部401については後述する。
印刷装置印刷部41は、印刷装置9の筐体に収容されたロール紙を搬送する搬送機構のほか、印刷ヘッドを有しロール紙に画像を印刷する印刷機構、カッターを有しロール紙を切断する切断機構等を備える。印刷装置印刷部41は、印刷装置制御部40の制御で、搬送機構によりロール紙を搬送しつつ、印刷機構によりロール紙にレシートに係る画像を印刷し、切断機構により所定の位置でロール紙を切断して、レシートを発行する。
The printing
The printing
The printing
印刷装置記憶部42は、不揮発性メモリーを備え、各種データを記憶する。
印刷装置通信部43は、印刷装置制御部40の制御で、ローカルネットワークLNにアクセスし、ローカルネットワークLNに接続された機器(制御装置8、及び、POSサーバー10を含む。)と通信する。
The printing
The printing
図2に示すように、POSサーバー10は、商品マスター511を備える。商品マスター511は、店舗で販売される商品について、商品の商品コードと、商品の単価と、その他の商品に関する情報とを対応付けて記憶するデータベースである。
As shown in FIG. 2, the
次に、店舗のレジカウンターにおいて会計が行われた場合の制御装置8、及び、印刷装置9の動作について説明する。
図3は、会計が行われた場合の制御装置8、及び、印刷装置9の動作を示すフローチャートであり、(A)は制御装置8の動作を示し、(B)は印刷装置9の動作を示す。
なお、図3を用いた説明では、説明の便宜のため、制御装置8のPOSアプリケーション実行部301が生成する制御コマンドに、後述する状態応答要求コマンドが付加されないものとする。
Next, operations of the
FIG. 3 is a flowchart showing the operation of the
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
図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
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
ステップSA1の会計処理を実行した後、POSアプリケーション実行部301は、会計処理に基づいて、印刷装置9に会計に関する情報(商品に関する情報や、合計金額に関する情報、釣銭に関する情報等)が印刷されたレシートを発行させる制御コマンドを生成する(ステップSA2)。
次いで、POSアプリケーション実行部301は、制御装置通信部32を制御して、生成した制御コマンドを印刷装置9に送信する(ステップSA3)。
After executing the accounting process in step SA1, the POS
Next, the POS
図3の(B)に示すように、印刷装置9の印刷制御部401は、印刷装置通信部43を制御して、制御コマンドを受信する(ステップSB1)。
次いで、印刷制御部401は、受信した制御コマンドに基づいて、印刷装置印刷部41を制御して、レシートを発行する(ステップSB2)。
発行されたレシートは、レジ担当者によって、顧客に引き渡される。
As shown in FIG. 3B, the
Next, the
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
FIG. 4 is a flowchart showing the operations of the
図4の(B)に示すように、制御装置8の制御装置制御部30は、応答要求送信処理を実行する(ステップSD1)。
応答要求送信処理とは、印刷装置9に対して、印刷装置9の状態に関する情報を含む処理装置状態情報データ(詳細は後述)の応答を要求する状態応答要求コマンドを印刷装置9に送信する処理である。以下、ステップSD1の応答要求送信処理について詳述する。
As shown in FIG. 4B, the control
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
図5は、制御装置8の要部を説明に適した態様で模式的に示す図である。
図5では、説明の便宜のため、機能ブロックや、プログラム、ソフトウェア的(論理的)なポート、物理的な装置等を同等のブロックで表す。
図5において、符号S1は階層型のオペレーティングシステムにおけるアプリケーション層を表し、符号S2はカーネル層を表し、符号S3は物理層S3を表す。
FIG. 5 is a diagram schematically showing the main part of the
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
また、図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
また、図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
The port handler PH has a function of outputting data input from the
図5に示すように、POSアプリケーション実行部301、メンテナンス実行部302、及び、ポートハンドラーPHは、アプリケーション層S1に位置する。仮想ポートKPは、カーネル層S2に位置する。LANポートLPは、物理層S3に位置する。
As shown in FIG. 5, the POS
図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
As will be apparent from the description of FIG. 6, the
図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
In the following description, among the control commands generated by the POS
In this embodiment, the POS application AP has a function as a printer driver, and the POS
POSアプリケーション実行部301は、生成した制御コマンドを、仮想ポートKPに出力する(ステップSF2)。
仮想ポートKPに出力された制御コマンド(本例では、レシート発行指示コマンド。)は、ポートハンドラーPHの機能により、メンテナンス実行部302に出力される。
The POS
The control command (receipt issue instruction command in this example) output to the virtual port KP is output to the
図6の(B)に示すように、メンテナンス実行部302は、POSアプリケーション実行部301が出力した制御コマンドを取得する(ステップSG1)。
次いで、メンテナンス実行部302は、ステップSG1で取得した制御コマンドがレシート発行指示コマンドであるか否かを判別する(ステップSG2)。ここで、POSアプリケーション実行部301が生成し出力する制御コマンドは、レシート発行指示コマンドでない場合がある。レシート発行指示コマンド以外の制御コマンドとしては、例えば、印刷装置9の所定の設定の変更を指示するコマンドがある。つまり、ステップSG1でメンテナンス実行部302が取得する制御コマンドは、レシート発行指示コマンドであるとは限らないため、ステップSG2の処理が必要となる。
As shown in FIG. 6B, the
Next, the
図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
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
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
図6の(B)に示すように、ステップSG2において、メンテナンス実行部302は、ステップSG1で取得した制御コマンドを分析して、レシート発行指示コマンドであるか否かを判別する。例えば、メンテナンス実行部302は、制御コマンドのコマンド群レシートに必ず印刷される文字列(例えば、レシートに文字列「合計金額」が必ず印刷される場合、当該文字列)の印刷の実行を指示する印刷指示コマンドが含まれるか否かを判別することによって、ステップSG1で取得した制御コマンドがレシート発行指示コマンドであるか否かを判別する。ステップSG2の処理はどのような方法で行われてもよい。
As shown in FIG. 6B, in step SG2, the
ステップ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
ステップ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
Next, the
図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
That is, a logical communication path for the
さらに、図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
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
また、状態応答要求コマンドは、切断指示コマンドの後ろに配置されるように付加される。これは、以下の理由による。すなわち、レシート発行指示コマンドに含まれるコマンドは、一連のコマンドであり、レシート発行指示コマンドに含まれるコマンドが順番どおりに連続して実行されることによって正常にレシートの発行が可能になる。そして、上述したように、切断指示コマンドは、レシート発行指示コマンドにおいて末尾に配置されるコマンドであるため、切断指示コマンドの後ろに状態応答要求コマンドを配置することにより、レシート発行指示コマンドに含まれる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
The addition of the status response request command to the receipt issuance instruction command may be performed every time the POS
図4の(A)に示すように、印刷装置9の印刷制御部401は、付加済コマンドを受信する(ステップSC1)。
図4における図示は省略するが、印刷制御部401は、受信した付加済コマンドに含まれるレシート発行指示コマンドに基づいてレシートを発行する。
また、印刷制御部401は、付加済コマンドに含まれる状態応答要求コマンドに基づいて、処理装置状態情報データを生成し、制御装置8に送信(応答)する(ステップSC2)。
処理装置状態情報データとは、印刷装置9を識別する印刷装置識別情報、及び、予め定められた監視項目のログを含むデータである。
監視項目とは、状態を監視し、ログを取る対象とすることが事前に定められた項目のことである。監視項目として、例えば、印刷に関するエラーの発生の有無や、通信に関するエラーの発生の有無、印刷ヘッドを使用可能な残日数、カッターを使用可能な残日数等がある。
以下、処理装置状態情報データに含まれる監視項目のそれぞれのログのことを監視項目ログ情報という。
処理装置状態情報データは、状態応答要求コマンドに対する応答のデータに相当する。
As shown in FIG. 4A, the
Although not shown in FIG. 4, the
Further, the
The processing device state information data is data including printing device identification information for identifying the
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
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
The data transmitted by the
図8に示すように、メンテナンス実行部302は、ポートハンドラーPHが出力した受信データを取得する(ステップSH1)。
次いで、メンテナンス実行部302は、ステップSH1で取得した受信データを分析し、当該受信データが、ステップSD1の応答要求送信処理で送信した状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)であるか否かを判別する(ステップSH2)。
状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)は、データのフォーマットが定まっており、ステップSH2において、メンテナンス実行部302は、受信データのフォーマットに基づいて判別を実行する。ステップSD1の応答要求送信処理で送信した状態応答要求コマンドに対する応答のデータ(処理装置状態情報データ)であるか否かの判別は、どのような方法で行われてもよい。
As shown in FIG. 8, the
Next, the
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
ステップ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
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
一方、ステップ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
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
なお、図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
Next, the
The status database is a database that stores printing device identification information for identifying the
In step SE2, the
以上のようにして、ステータスデータベースは、店舗システム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
The
以上説明したように、本実施形態に係るネットワークシステム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
According to this configuration, the
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
According to this configuration, the
また、本実施形態では、POSアプリケーション実行部301が出力する制御コマンドは、印刷装置9にレシート(紙片)の発行を指示するコマンド群であり、ロール紙への画像の印刷を指示する印刷指示コマンドを含むと共に、コマンド群の末尾にロール紙の切断を指示する切断指示コマンドを含む。そして、メンテナンス実行部302は、制御コマンドに状態応答要求コマンドを付加する場合、制御コマンドに含まれる切断指示コマンドの後ろに前記状態応答要求コマンドを付加する。
この構成によれば、切断指示コマンドの後ろに状態応答要求コマンドを配置することにより、レシート発行指示コマンドに含まれる1のコマンドと次のコマンドとの間に状態応答要求コマンドが配置されることを防止でき、正常にレシートが発行されない事態が発生することを防止できる。
In this embodiment, the control command output by the POS
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
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
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. .
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) |
-
2015
- 2015-11-09 JP JP2015219615A patent/JP6578894B2/en active Active
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 |