JP2015146153A - Print control system, and control method of print control system - Google Patents

Print control system, and control method of print control system Download PDF

Info

Publication number
JP2015146153A
JP2015146153A JP2014019203A JP2014019203A JP2015146153A JP 2015146153 A JP2015146153 A JP 2015146153A JP 2014019203 A JP2014019203 A JP 2014019203A JP 2014019203 A JP2014019203 A JP 2014019203A JP 2015146153 A JP2015146153 A JP 2015146153A
Authority
JP
Japan
Prior art keywords
print
printing
print control
data
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2014019203A
Other languages
Japanese (ja)
Inventor
啓悟 森
Keigo Mori
啓悟 森
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 JP2014019203A priority Critical patent/JP2015146153A/en
Publication of JP2015146153A publication Critical patent/JP2015146153A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable a print control server to control a first print device and a second print device by efficient data processing corresponding to: a configuration of the first print device and the print control server communicating with each other via a first network; and a configuration of the first print device and the second print device communicating with each other via a second network.SOLUTION: A control server 10 transmits a print control command to a print device 12 by a first WebSocket connection CT 1 or a second WebSocket connection CT 2. The print device 12 performs print processing on the basis of the print control command received by the first WebSocket connection CT 1, and on the other hand, makes a print apparatus 7 perform print processing by transmitting the print control command received by the second WebSocket connection CT 2 to the print apparatus 7.

Description

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

従来、印刷制御装置の制御の下、印刷装置によって印刷媒体に印刷し、レシートを発行する印刷制御システムが知られている(例えば、特許文献1参照)。この種の印刷制御システムでは、印刷装置と、印刷制御装置としての印刷制御サーバーとがインターネット等のネットワーク(以下、「第1のネットワーク」という。)を介して通信するものがある。また、複数の印刷装置がローカルエリアネットワーク等のネットワーク(以下、「第2のネットワーク」という。)を介して通信するシステムが知られている。   2. Description of the Related Art Conventionally, a print control system that prints on a print medium by a printing apparatus and issues a receipt under the control of the printing control apparatus is known (see, for example, Patent Document 1). In this type of print control system, there is a type in which a printing apparatus and a print control server as a print control apparatus communicate via a network such as the Internet (hereinafter referred to as “first network”). There is also known a system in which a plurality of printing apparatuses communicate via a network such as a local area network (hereinafter referred to as “second network”).

特開2011−108097号公報JP 2011-108097 A

印刷装置(以下、「第1の印刷装置」という。)と、印刷制御サーバーとが第1のネットワークを介して通信するシステムについて、第1の印刷装置に、当該ネットワークとは異なる第2のネットワークを介して印刷装置(以下、「第2の印刷装置」という。)を接続するシステムを構築する場合、第1の印刷装置と印刷制御サーバーとが第1のネットワークを介して通信する構成、及び、第1の印刷装置と第2の印刷装置とが第2のネットワークを介して通信する構成に対応させて、印刷制御サーバーにより、効率のよいデータ処理によって第1の印刷装置及び第2の印刷装置を制御できるようにしたいとするニーズがある。
本発明は、上述した事情に鑑みてなされたものであり、第1の印刷装置と印刷制御サーバーとが第1のネットワークを介して通信し、第1の印刷装置と第2の印刷装置とが第2のネットワークを介して通信するシステムについて、第1の印刷装置と印刷制御サーバーとが第1のネットワークを介して通信する構成、及び、第1の印刷装置と第2の印刷装置とが第2のネットワークを介して通信する構成に対応させて、印刷制御サーバーにより、効率のよいデータ処理によって第1の印刷装置及び第2の印刷装置を制御できるようにすることを目的とする。
Regarding a system in which a printing apparatus (hereinafter referred to as a “first printing apparatus”) and a print control server communicate via a first network, the first printing apparatus has a second network different from the network. In the case of constructing a system for connecting a printing apparatus (hereinafter referred to as “second printing apparatus”) via the network, a configuration in which the first printing apparatus and the print control server communicate via the first network, and Corresponding to the configuration in which the first printing apparatus and the second printing apparatus communicate via the second network, the first printing apparatus and the second printing are performed by the print control server by efficient data processing. There is a need to be able to control the device.
The present invention has been made in view of the above-described circumstances. The first printing apparatus and the print control server communicate with each other via the first network, and the first printing apparatus and the second printing apparatus are connected. In the system that communicates via the second network, the first printing apparatus and the print control server communicate via the first network, and the first printing apparatus and the second printing apparatus include the first printing apparatus and the printing control server. It is an object of the present invention to enable a print control server to control a first printing apparatus and a second printing apparatus by efficient data processing in correspondence with a configuration in which communication is performed via two networks.

上記目的を達成するために、本発明の印刷制御システムは、第1の印刷制御コマンド及び第2の印刷制御コマンドを生成する印刷データ処理部、前記印刷データ処理部で生成された前記第1の印刷制御コマンドを第1のネットワークの第1の通信経路で送信する第1の通信処理部、及び前記印刷データ処理部で生成された前記第2の印刷制御コマンドを前記第1のネットワークの第2の通信経路で送信する第2の通信処理部を有する印刷制御サーバーと、印刷を行う印刷部、前記第1の通信経路で前記第1の印刷制御コマンドを受信する第1の印刷データ通信制御部、受信した前記第1の印刷制御コマンドに基づいて前記印刷部を制御する印刷制御部、及び前記第2の通信経路で前記第2の印刷制御コマンドを受信して受信した前記第2の印刷制御コマンドを第2のネットワークで送信する第2の印刷データ通信制御部を有する第1の印刷装置と、印刷を行う印刷ユニット、及び前記第2のネットワークで前記第2の印刷制御コマンドを受信して受信した前記第2の印刷制御コマンドに基づいて前記印刷ユニットを制御する機器制御部を有する第2の印刷装置と、を備えることを特徴とする。
本発明の構成によれば、印刷制御サーバーの第1の通信処理部、及び、第1の印刷装置の第1の印刷データ通信制御部の機能により、印刷制御サーバーが、第1の通信経路で第1の印刷制御コマンドを第1の印刷装置に送信した場合、第1の印刷装置は、受信した第1の印刷制御コマンドに基づいて印刷処理を行う。また、印刷制御サーバーの第2の通信処理部、及び、第1の印刷装置の第2の印刷データ通信制御部の機能により、印刷制御サーバーが、第2の通信経路で第2の印刷制御コマンドを第1の印刷装置に送信した場合、第1の印刷装置は、受信した第2の印刷制御コマンドを第2の印刷装置に送信し、第2の印刷装置は、第2の印刷制御コマンドに基づいて印刷処理を行う。このため、印刷制御サーバーは、第1の印刷装置と第2の印刷装置とのいずれかに印刷処理を実行させる場合、第1の通信経路及び第2の通信経路のうち対応する通信経路で印刷制御コマンドを第1の印刷装置に送信すればよく、印刷制御サーバーで、第1の印刷装置と第2の印刷装置のいずれかを指定して印刷処理をおこなわせるために印刷制御コマンドを加工するデータ処理を行ったり、第1の印刷装置で、受信した印刷制御コマンドに基づいて第1の印刷装置と第2の印刷装置とのいずれで印刷処理を行うのかを判別するデータ処理を行ったりする必要がなく、印刷制御システムについて、第1の印刷装置と印刷制御サーバーとが第1のネットワークを介して通信する構成、及び、第1の印刷装置と第2の印刷装置とが第2のネットワークを介して通信する構成に対応させて、印刷制御サーバーにより、効率のよいデータ処理によって第1の印刷装置及び第2の印刷装置を制御できる。
In order to achieve the above object, a print control system of the present invention includes a print data processing unit that generates a first print control command and a second print control command, and the first data generated by the print data processing unit. A first communication processing unit that transmits a print control command through a first communication path of the first network, and a second print control command generated by the print data processing unit is transmitted to the second network of the first network. A print control server having a second communication processing unit that transmits via the communication path, a print unit that performs printing, and a first print data communication control unit that receives the first print control command via the first communication path A print control unit that controls the printing unit based on the received first print control command, and the second mark received by receiving the second print control command through the second communication path. A first printing apparatus having a second print data communication control unit that transmits a control command over a second network, a printing unit that performs printing, and the second network that receives the second print control command; And a second printing apparatus having a device control unit for controlling the printing unit based on the received second printing control command.
According to the configuration of the present invention, the function of the first communication processing unit of the print control server and the first print data communication control unit of the first printing apparatus allows the print control server to be connected via the first communication path. When the first printing control command is transmitted to the first printing apparatus, the first printing apparatus performs printing processing based on the received first printing control command. Also, the functions of the second communication processing unit of the print control server and the second print data communication control unit of the first printing apparatus allow the print control server to execute the second print control command on the second communication path. Is transmitted to the first printing apparatus, the first printing apparatus transmits the received second printing control command to the second printing apparatus, and the second printing apparatus transmits the second printing control command to the second printing control command. Based on this, the printing process is performed. Therefore, when the print control server causes either the first printing device or the second printing device to execute the printing process, the print control server prints on the corresponding communication route of the first communication route and the second communication route. The control command may be transmitted to the first printing device, and the print control server processes the print control command so that either the first printing device or the second printing device is designated and the printing process is performed. Data processing is performed, or the first printing apparatus performs data processing for determining which of the first printing apparatus and the second printing apparatus performs the printing process based on the received print control command. In the print control system, the first printing apparatus and the print control server communicate with each other via the first network, and the first printing apparatus and the second printing apparatus are connected to the second network. In correspondence with the configuration to communicate over the click, the print control server can control the first printer and the second printer by good data processing efficiency.

また、前記第1の印刷装置の前記第1の印刷データ通信制御部は、電源が投入されたときに、前記第1の通信経路を確立し、前記第1の印刷装置の前記第2の印刷データ通信制御部は、電源が投入されたときに、前記第2の通信経路を確立する。
本発明の構成によれば、ユーザーによる作業を経ることなく、第1の印刷装置の電源の投入をトリガーとして、第1の印刷装置と印刷制御サーバーとの間に、第1の通信経路及び第2の通信経路を確立し、印刷制御サーバーの制御により、第1の印刷装置及び第2の印刷装置を制御できる状態を確立できる。
Further, the first print data communication control unit of the first printing apparatus establishes the first communication path when the power is turned on, and the second printing of the first printing apparatus. The data communication control unit establishes the second communication path when the power is turned on.
According to the configuration of the present invention, the first communication path and the first communication path between the first printing apparatus and the print control server can be triggered by the power-on of the first printing apparatus without user work. 2 is established, and a state in which the first printing apparatus and the second printing apparatus can be controlled can be established by the control of the print control server.

また、前記印刷制御サーバーと前記第1の印刷装置とは、非同期の双方向通信を行う。
本発明の構成によれば、印刷制御サーバーは、第1の印刷装置との間で通信に係る同期を取ることなく、任意のタイミングで、第1の印刷制御コマンド、及び、第2の印刷制御コマンドを、第1の印刷装置に送信できる。
The print control server and the first printing apparatus perform asynchronous bidirectional communication.
According to the configuration of the present invention, the print control server can perform the first print control command and the second print control at an arbitrary timing without synchronizing the communication with the first printing apparatus. The command can be sent to the first printing device.

また、前記印刷制御サーバーの前記印刷データ処理部は、前記第1の印刷制御コマンドに対応する所定のフォーマットの第1の印刷制御データを生成し、前記印刷制御サーバーの前記第1の通信処理部は、前記印刷データ処理部で生成された前記第1の印刷制御データを前記第1の通信経路で送信し、前記第1の印刷装置の前記第1の印刷データ通信制御部は、前記第1の通信経路で前記第1の印刷制御データを受信し、受信した前記第1の印刷制御データに基づいて前記第1の印刷制御コマンドを生成して前記印刷制御部に送信する。
本発明の構成によれば、印刷制御サーバーは、第1のネットワークに適したフォーマットのデータ(第1の印刷制御データ)を送信して、第1の印刷装置を制御することができ、通信効率の向上を図ることができる。
The print data processing unit of the print control server generates first print control data of a predetermined format corresponding to the first print control command, and the first communication processing unit of the print control server Transmits the first print control data generated by the print data processing unit through the first communication path, and the first print data communication control unit of the first printing apparatus receives the first print data communication unit. The first print control data is received through the communication path, and the first print control command is generated based on the received first print control data and transmitted to the print control unit.
According to the configuration of the present invention, the print control server can control the first printing apparatus by transmitting data in a format suitable for the first network (first print control data), and communication efficiency. Can be improved.

また、前記印刷制御サーバーの前記印刷データ処理部は、前記第2の印刷制御コマンドに対応する前記所定のフォーマットの第2の印刷制御データを生成し、前記印刷制御サーバーの前記第2の通信処理部は、前記印刷データ処理部で生成された前記第2の印刷制御データを前記第2の通信経路で送信し、前記第1の印刷装置の前記第2の印刷データ通信制御部は、前記第2の通信経路で前記第2の印刷制御データを受信し、受信した前記第2の印刷制御データに基づいて前記第2の印刷制御コマンドを生成して前記第2のネットワークで送信する。
本発明の構成によれば、印刷制御サーバーは、第1のネットワークに適したフォーマットのデータ(第2の印刷制御データ)を送信して、第2の印刷装置を制御することができ、通信効率の向上を図ることができる。また、第2の印刷装置に、第2の印刷制御データを第2の制御コマンドに変換する処理を行う機能を持たせる必要がなく、第2の印刷装置に加わる処理負荷の軽減を図ることができる。
The print data processing unit of the print control server generates second print control data of the predetermined format corresponding to the second print control command, and the second communication process of the print control server. The second print control data generated by the print data processing unit via the second communication path, and the second print data communication control unit of the first printing apparatus The second print control data is received through two communication paths, the second print control command is generated based on the received second print control data, and transmitted through the second network.
According to the configuration of the present invention, the print control server can control the second printing apparatus by transmitting data in a format suitable for the first network (second print control data), and communication efficiency. Can be improved. In addition, it is not necessary for the second printing apparatus to have a function of converting the second print control data into the second control command, and the processing load applied to the second printing apparatus can be reduced. it can.

また、本発明の印刷制御システムの制御方法は、印刷制御サーバーで、第1の印刷制御コマンド及び第2の印刷制御コマンドを生成し、生成した前記第1の印刷制御コマンドを第1のネットワークの第1の通信経路で送信し、生成した前記第2の印刷制御コマンドを前記第1のネットワークの第2の通信経路で送信し、第1の印刷装置で、前記第1の通信経路で前記第1の印刷制御コマンド及び前記第2の印刷制御コマンドを受信し、受信した前記第1の印刷制御コマンドに基づいて印刷処理を行い、受信した前記第2の印刷制御コマンドを第2のネットワークで第2の印刷装置に送信し、前記第2の印刷装置で、前記第1の印刷装置から前記第2の印刷制御コマンドを受信し、受信した前記第2の印刷制御コマンドに基づいて印刷処理を行うことを特徴とする。
本発明の構成によれば、印刷制御システムについて、第1の印刷装置と印刷制御サーバーとが第1のネットワークを介して通信する構成、及び、第1の印刷装置と第2の印刷装置とが第2のネットワークを介して通信する構成に対応させて、印刷制御サーバーにより、効率のよいデータ処理によって第1の印刷装置及び第2の印刷装置を制御できる。
According to the control method of the print control system of the present invention, the print control server generates the first print control command and the second print control command, and the generated first print control command is transmitted to the first network. The second print control command transmitted by the first communication path and transmitted is transmitted by the second communication path of the first network, and the first printing apparatus transmits the second print control command by the first communication path. 1 print control command and the second print control command are received, print processing is performed based on the received first print control command, and the received second print control command is transmitted to the second network via the second network. 2, the second printing device receives the second print control command from the first printing device, and performs print processing based on the received second print control command. It is characterized in.
According to the configuration of the present invention, the print control system includes a configuration in which the first printing device and the print control server communicate via the first network, and the first printing device and the second printing device. The print control server can control the first printing device and the second printing device by efficient data processing in correspondence with the configuration for communicating via the second network.

また、前記第1の印刷装置の電源が投入されたときに、前記第1の通信経路及び前記第2の通信経路を形成する。
本発明の構成によれば、ユーザーによる作業を経ることなく、第1の印刷装置の電源の投入をトリガーとして、第1の印刷装置と印刷制御サーバーとの間に、第1の通信経路及び第2の通信経路を確立し、印刷制御サーバーの制御により、第1の印刷装置及び第2の印刷装置を制御できる状態を確立できる。
In addition, the first communication path and the second communication path are formed when the power of the first printing apparatus is turned on.
According to the configuration of the present invention, the first communication path and the first communication path between the first printing apparatus and the print control server can be triggered by the power-on of the first printing apparatus without user work. 2 is established, and a state in which the first printing apparatus and the second printing apparatus can be controlled can be established by the control of the print control server.

また、本発明の印刷制御システムの制御方法は、印刷制御サーバーで、第1の印刷制御データ及び第2の印刷制御データを生成し、生成した前記第1の印刷制御データを第1のネットワークの第1の通信経路で送信し、生成した前記第2の印刷制御データを前記第1のネットワークの第2の通信経路で送信し、第1の印刷装置で、前記第1の通信経路で前記第1の印刷制御データ及び前記第2の印刷制御データを受信し、受信した前記第1の印刷制御データに基づいて第1の印刷制御コマンドを生成し、前記第1の印刷制御コマンドに基づいて印刷処理を行い、受信した前記第2の印刷制御データに基づいて第2の印刷制御コマンドを生成し、前記第2の印刷制御コマンドを第2のネットワークで第2の印刷装置に送信し、前記第2の印刷装置で、前記第1の印刷装置から前記第2の印刷制御コマンドを受信し、受信した前記第2の印刷制御コマンドに基づいて印刷処理を行うことを特徴とする。
本発明の構成によれば、印刷制御システムについて、第1の印刷装置と印刷制御サーバーとが第1のネットワークを介して通信する構成、及び、第1の印刷装置と第2の印刷装置とが第2のネットワークを介して通信する構成に対応させて、印刷制御サーバーにより、効率のよいデータ処理によって第1の印刷装置及び第2の印刷装置を制御できる。
According to the control method of the print control system of the present invention, the print control server generates the first print control data and the second print control data, and the generated first print control data is stored in the first network. The second print control data transmitted by the first communication path is transmitted by the second communication path of the first network, and the first printing apparatus transmits the second print control data by the first communication path. 1 print control data and the second print control data are received, a first print control command is generated based on the received first print control data, and printing is performed based on the first print control command. Performing processing, generating a second print control command based on the received second print control data, transmitting the second print control command to a second printing apparatus over a second network, and 2 printing equipment In, it receives the second print control command from the first printing device, and performs a printing process based on the second print control command received.
According to the configuration of the present invention, the print control system includes a configuration in which the first printing device and the print control server communicate via the first network, and the first printing device and the second printing device. The print control server can control the first printing device and the second printing device by efficient data processing in correspondence with the configuration for communicating via the second network.

本実施形態に係る印刷制御システムの構成を示す図。1 is a diagram illustrating a configuration of a print control system according to an embodiment. 印刷制御システムの各装置の関係を示す図。The figure which shows the relationship of each apparatus of a printing control system. 印刷制御システムの各装置の機能的構成を示すブロック図。FIG. 3 is a block diagram illustrating a functional configuration of each device of the print control system. 印刷装置、制御サーバーの動作を示すフローチャート。The flowchart which shows operation | movement of a printing apparatus and a control server. 管理装置、制御サーバー、印刷装置の動作を示すフローチャート。6 is a flowchart illustrating operations of a management apparatus, a control server, and a printing apparatus. 管理装置、制御サーバー、印刷装置、印刷機器の動作を示すフローチャート。The flowchart which shows operation | movement of a management apparatus, a control server, a printing apparatus, and a printing apparatus.

以下、図面を参照して本発明の実施形態について説明する。
<第1実施形態>
図1は、本実施形態に係る印刷制御システム1の構成を示す図である。
図1に示すように、印刷制御システム1は、制御サーバー10(印刷制御サーバー)を備える。制御サーバー10は、インターネット等のネットワークGN(第1のネットワーク)を介して複数の店舗システム11と接続する。ネットワークGNには、複数の管理装置14が接続される。
店舗システム11は、スーパーマーケットや、コンビニエンスストア、デパート、飲食店等の店舗に用いるシステムである。店舗システム11は、店舗に来店した顧客に対してレシートを発行する機能を備える。
店舗システム11は、印刷装置12(第1の印刷装置)と、印刷機器7(第2の印刷装置)とを備える。印刷装置12、及び、印刷機器7は、印刷媒体に印刷を行う印刷機能を有し、レシートを発行可能である。
印刷装置12、及び、印刷機器7は、店舗に構築されたローカルエリアネットワークLN(第2のネットワーク)に接続する。
ローカルエリアネットワークLNには、ネットワークルーターや、モデム等の通信機器を含んで構成されたネットワーク通信制御装置13が接続する。印刷装置12は、ネットワーク通信制御装置13を介して、ネットワークGNにアクセスする機能を有する。印刷機器7は、ローカルエリアネットワークLNを介して、印刷装置12と通信する機能を有する。
ローカルエリアネットワークLNには、DHCPサーバー6が接続する。DHCPサーバー6は、DHCP(dynamic host configuration protocol)に従って、当該DHCPサーバー6が接続するローカルエリアネットワークLNの印刷機器7に対して、IPアドレスを含む通信に必要な情報を割り当てる。
図1で、店舗システム11Aは、スーパーマーケットSMに用いるシステムである。スーパーマーケットSMには、複数のレジカウンターRCが設けられ、レジカウンターRCには、印刷装置12、又は、印刷機器7が設けられる。店舗システム11Aの印刷装置12は、ローカルエリアネットワークLNに接続し、ネットワーク通信制御装置13を介して、ネットワークGNにアクセスする。
本実施形態に係る印刷制御システム1では、店舗システム11の印刷装置12が、制御サーバー10との間で通信経路を確立し、制御サーバー10と通信する。そして、印刷装置12は、制御サーバー10の制御で、印刷に係る処理や、印刷機器7の印刷を制御する処理、印刷機器7へのデータを中継する処理等を実行する。
管理装置14は、後述するように1又は複数の店舗システム11を管理する装置である。例えば、管理装置14は、店舗を運営する企業の本社に設けられ、当該店舗を運営する企業のグループに属する複数の店舗に設けられた店舗システム11を管理する。後述するように、管理装置14は、管理する店舗システム11の所定の印刷装置12、又は、所定の印刷機器7を制御して、当該所定の印刷装置12、又は、当該所定の印刷機器7に印刷を実行させることができる。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
<First Embodiment>
FIG. 1 is a diagram illustrating a configuration of a print control system 1 according to the present embodiment.
As shown in FIG. 1, the print control system 1 includes a control server 10 (print control server). The control server 10 is connected to a plurality of store systems 11 via a network GN (first network) such as the Internet. A plurality of management devices 14 are connected to the network GN.
The store system 11 is a system used in stores such as supermarkets, convenience stores, department stores, restaurants, and the like. The store system 11 has a function of issuing a receipt to a customer who has visited the store.
The store system 11 includes a printing device 12 (first printing device) and a printing device 7 (second printing device). The printing device 12 and the printing device 7 have a printing function for printing on a printing medium and can issue a receipt.
The printing apparatus 12 and the printing device 7 are connected to a local area network LN (second network) built in the store.
Connected to the local area network LN is a network communication control device 13 configured to include communication devices such as a network router and a modem. The printing device 12 has a function of accessing the network GN via the network communication control device 13. The printing device 7 has a function of communicating with the printing apparatus 12 via the local area network LN.
A DHCP server 6 is connected to the local area network LN. The DHCP server 6 allocates information necessary for communication including an IP address to the printing device 7 of the local area network LN to which the DHCP server 6 is connected in accordance with DHCP (dynamic host configuration protocol).
In FIG. 1, the store system 11A is a system used for the supermarket SM. The supermarket SM is provided with a plurality of cashier counters RC, and the cashier counter RC is provided with the printing device 12 or the printing device 7. The printing device 12 of the store system 11A is connected to the local area network LN and accesses the network GN via the network communication control device 13.
In the print control system 1 according to the present embodiment, the printing device 12 of the store system 11 establishes a communication path with the control server 10 and communicates with the control server 10. Then, under the control of the control server 10, the printing apparatus 12 executes processing relating to printing, processing for controlling printing of the printing device 7, processing for relaying data to the printing device 7, and the like.
The management device 14 is a device that manages one or a plurality of store systems 11 as described later. For example, the management device 14 is provided at the head office of a company that operates a store, and manages the store system 11 that is provided at a plurality of stores that belong to the group of companies that operate the store. As will be described later, the management device 14 controls the predetermined printing device 12 or the predetermined printing device 7 of the store system 11 to be managed, and controls the predetermined printing device 12 or the predetermined printing device 7. Printing can be executed.

図2は、印刷制御システム1における制御サーバー10と、印刷装置12と、印刷機器7と、管理装置14との関係を示す図である。
図2に示すように、印刷制御システム1において、制御サーバー10と、店舗システム11の印刷装置12との間には、WebSocketで通信を行うWebSocketコネクションCT(通信経路)が確立される。
WebSocketは、非同期な双方向通信を可能とする通信規格の1つである。WebSocketでは、サーバーとクライアントがWebSocketコネクションCTを確立した後は、データの送受信を、当該コネクションによりプロトコルを用いて行う。このため、データの送受信が発生する度に、コネクションを確立する必要がない。
また、WebSocketコネクションCTは、当該コネクションで接続された印刷装置12と、制御サーバー10との間で、WebSocketのプロトコル、手続きに従ってデータを送受信する論理的な通信経路である。従って、印刷装置12と、制御サーバー10との間で、所定のハンドシェイクが行われ、WebSocketコネクションCTを確立した後は、印刷装置12と、制御サーバー10とは、WebSocketコネクションCTにより、非同期にデータを送受信できる。制御サーバー10は、任意のタイミングでWebSocketコネクションCTにより印刷装置12にデータを送信でき、印刷装置12は、任意のタイミングでWebSocketコネクションCTにより制御サーバー10にデータを送信できる。
また、WebSocket通信は、WebSocketコネクションCTにより印刷装置12と、制御サーバー10との間で行われる、WebSocketのプロトコル、手続きに従った非同期な双方向通信である。
WebSocketコネクションCTの確立により、印刷装置12、及び、制御サーバー10は、非同期で、双方向通信できる。つまり、制御サーバー10は、クライアントとしての印刷装置12からリクエストを受けることなく、任意のタイミングで、WebSocketコネクションCTによりWebSocket通信で印刷装置12にデータをプッシュ送信できる。同様に、印刷装置12は、任意のタイミングで、WebSocketコネクションCTで制御サーバー10に対してデータをプッシュ送信できる。
また、制御サーバー10は、複数の管理装置14と通信可能に接続する。後述するように、管理装置14は、制御サーバー10の機能を用いて、所定の印刷装置12に印刷制御データを送信し、当該所定の印刷装置12に印刷を実行させることができる。また、管理装置14は、制御サーバー10の機能を用いて、印刷装置12を介して、所定の印刷機器7に印刷制御データを送信し、当該所定の印刷機器7に印刷を実行させることができる。
図2に示すように、印刷装置12には、ローカルエリアネットワークLNを介して複数の印刷機器7が通信可能に接続される。
FIG. 2 is a diagram illustrating a relationship among the control server 10, the printing device 12, the printing device 7, and the management device 14 in the printing control system 1.
As shown in FIG. 2, in the print control system 1, a WebSocket connection CT (communication path) for performing communication using WebSocket is established between the control server 10 and the printing device 12 of the store system 11.
WebSocket is one of the communication standards that enables asynchronous two-way communication. In the WebSocket, after the server and the client establish the WebSocket connection CT, data transmission / reception is performed using the protocol using the connection. For this reason, it is not necessary to establish a connection every time data transmission / reception occurs.
The WebSocket connection CT is a logical communication path for transmitting and receiving data according to the WebSocket protocol and procedure between the printing apparatus 12 connected by the connection and the control server 10. Therefore, after a predetermined handshake is performed between the printing apparatus 12 and the control server 10 and the WebSocket connection CT is established, the printing apparatus 12 and the control server 10 are asynchronously transmitted by the WebSocket connection CT. Can send and receive data. The control server 10 can transmit data to the printing apparatus 12 through the WebSocket connection CT at an arbitrary timing, and the printing apparatus 12 can transmit data to the control server 10 through the WebSocket connection CT at an arbitrary timing.
The WebSocket communication is asynchronous two-way communication according to the WebSocket protocol and procedure, which is performed between the printing apparatus 12 and the control server 10 through the WebSocket connection CT.
By establishing the WebSocket connection CT, the printing apparatus 12 and the control server 10 can perform two-way communication asynchronously. That is, the control server 10 can push-transmit data to the printing apparatus 12 by WebSocket communication using the WebSocket connection CT at an arbitrary timing without receiving a request from the printing apparatus 12 as a client. Similarly, the printing apparatus 12 can push-transmit data to the control server 10 through the WebSocket connection CT at an arbitrary timing.
Further, the control server 10 is communicably connected to a plurality of management devices 14. As will be described later, the management device 14 can use the function of the control server 10 to transmit print control data to a predetermined printing device 12 and cause the predetermined printing device 12 to execute printing. Further, the management device 14 can transmit print control data to a predetermined printing device 7 via the printing device 12 using the function of the control server 10 and cause the predetermined printing device 7 to execute printing. .
As shown in FIG. 2, a plurality of printing devices 7 are communicably connected to the printing apparatus 12 via a local area network LN.

本実施形態において、制御サーバー10は、印刷装置12をクライアントとする、クラウドシステムのクラウドサーバーである。制御サーバー10は、演算処理機能を有し、印刷装置12の要求や、管理装置14の要求、所定の条件の成立等をトリガーとして所定の演算処理を実行し、演算処理の結果に基づくデータを、WebSocketコネクションCTで印刷装置12に送信する。
なお、図2では、制御サーバー10を、1つのブロックによって表現するが、これは、制御サーバー10が単一のサーバー装置により構成されることを意味するものではない。例えば、制御サーバー10は、複数のサーバー装置を含んで構成されたものであってもよく、所定のシステムの一部の機能により実現されるサーバーであってもよい。すなわち、制御サーバー10について、後述する処理を実現可能な構成であれば、その形態を問わない。
また、本実施形態では、制御サーバー10と、印刷装置12との間で、WebSocket通信を行う。しかしながら、これら装置が、WebSocket通信に代えて、WebSocket通信と同様な非同期の双方向通信を行う構成であってもよい。
また、図2での詳細な図示は省略したが、本実施形態では、印刷装置12が備える機能部(後述)に応じて、印刷装置12と制御サーバー10との間で、複数のWebSocketコネクションCTが確立する。
In the present embodiment, the control server 10 is a cloud server of a cloud system that uses the printing apparatus 12 as a client. The control server 10 has an arithmetic processing function, and executes predetermined arithmetic processing triggered by a request from the printing device 12, a request from the management device 14, establishment of a predetermined condition, etc., and data based on the result of the arithmetic processing is obtained. , And transmitted to the printing apparatus 12 by the WebSocket connection CT.
In FIG. 2, the control server 10 is represented by one block, but this does not mean that the control server 10 is configured by a single server device. For example, the control server 10 may be configured to include a plurality of server devices, or may be a server realized by some functions of a predetermined system. That is, the control server 10 can be of any form as long as it can implement processing to be described later.
In the present embodiment, WebSocket communication is performed between the control server 10 and the printing apparatus 12. However, these devices may be configured to perform asynchronous bidirectional communication similar to WebSocket communication instead of WebSocket communication.
Further, although detailed illustration in FIG. 2 is omitted, in the present embodiment, a plurality of WebSocket connections CT between the printing apparatus 12 and the control server 10 according to functional units (described later) provided in the printing apparatus 12. Established.

このように、印刷制御システム1は、印刷機能を有する印刷装置12を、複数台(例えば、1000台)、WebSocketコネクションCTで、制御サーバー10との間で通信可能に接続する。
このような構成のため、以下の効果を得ることができる。
すなわち、制御サーバー10は、複数の店舗システム11に接続された複数の印刷装置12から受信したデータに基づく情報を収集し、管理、分析できる。このため、制御サーバー10は、有益な情報を蓄積することができる。蓄積した情報は、いわゆるビッグデータとして利用可能である。
また、店舗システム11の構築の簡易化、及び、低コスト化を図ることが可能となる。すなわち、印刷制御システム1では、印刷装置12がWebSocketコネクションCTにより制御サーバー10に接続される。このため、制御サーバー10が提供するサービスを用いて、制御サーバー10の制御で、印刷装置12に所定の処理を実行させることが可能である。所定の処理には、印刷装置12による印刷、印刷機器7の印刷の制御、印刷機器7に対して送信するデータの中継、及び、印刷機器7から送信されたデータの中継が含まれている。従って、店舗システム11を構築する管理者は、店舗システム11の構築に際し、印刷装置12を所望の場所に設置し、印刷装置12をネットワークGNに接続すし、ローカルエリアネットワークLNに印刷装置12、及び、印刷機器7を接続するという簡易な作業を行えばよい。これにより、制御サーバー10が提供するサービスを用いて、印刷装置12に所望の処理、例えば、レシートの発行に係る処理を実行させることが可能となる。管理装置14においても、構築の簡易化、及び、低コスト化を図ることができる。
特に、店舗システム11を構築する管理者は、1又は複数の店舗システム11を管理する管理装置14に、印刷装置12を制御する機能を有する必要がない。管理装置14は、制御サーバー10にアクセスし、制御サーバー10が提供するサービスを用いることによって、制御サーバー10に接続された印刷装置12、及び、印刷装置12にローカルエリアネットワークLNを介して接続された印刷機器7を制御できる。これにより、店舗システム11の構築の簡易化、及び、低コスト化を図ることが可能となる。
As described above, the print control system 1 connects a plurality of (for example, 1000) printing apparatuses 12 having a printing function so that they can communicate with the control server 10 using the WebSocket connection CT.
Due to such a configuration, the following effects can be obtained.
That is, the control server 10 can collect, manage, and analyze information based on data received from a plurality of printing apparatuses 12 connected to a plurality of store systems 11. For this reason, the control server 10 can accumulate useful information. The accumulated information can be used as so-called big data.
In addition, the construction of the store system 11 can be simplified and the cost can be reduced. That is, in the print control system 1, the printing apparatus 12 is connected to the control server 10 by the WebSocket connection CT. Therefore, it is possible to cause the printing apparatus 12 to execute a predetermined process under the control of the control server 10 using the service provided by the control server 10. The predetermined processing includes printing by the printing device 12, printing control of the printing device 7, relaying of data transmitted to the printing device 7, and relaying of data transmitted from the printing device 7. Therefore, the manager who constructs the store system 11 installs the printing device 12 at a desired location, connects the printing device 12 to the network GN, constructs the printing device 12 in the local area network LN, and A simple operation of connecting the printing device 7 may be performed. Accordingly, it is possible to cause the printing apparatus 12 to execute a desired process, for example, a process related to the receipt issuance, using the service provided by the control server 10. Also in the management apparatus 14, the construction can be simplified and the cost can be reduced.
In particular, an administrator who constructs the store system 11 does not need to have a function of controlling the printing device 12 in the management device 14 that manages one or a plurality of store systems 11. The management device 14 accesses the control server 10 and uses a service provided by the control server 10 to connect the printing device 12 connected to the control server 10 and the printing device 12 via the local area network LN. The printing device 7 can be controlled. This makes it possible to simplify the construction of the store system 11 and reduce the cost.

図3は、本実施形態に係る印刷装置12、印刷機器7、制御サーバー10、及び、管理装置14の機能的構成を示すブロック図である。
図3に示すように、印刷装置12(第1の印刷装置)は、装置制御部12Sと、第1通信部16と、第2通信部20と、第3通信部24と、印刷部18と、印刷装置記憶部19と、を備える。
第1通信部16、及び、第2通信部20の機能については後述する。
装置制御部12Sは、CPUや、ROM、RAM、その他の周辺回路等を備え、印刷装置12を制御する。装置制御部12Sは、機能ブロックとして、第1印刷データ通信制御部21(第1の印刷データ通信制御部)と、第2印刷データ通信制御部22(第2の印刷データ通信制御部)と、印刷制御部17と、を備える。これら機能ブロックについては後述する。
第3通信部24は、装置制御部12Sの制御で、ローカルエリアネットワークLNに接続された印刷機器7と、当該ネットワークに対応する所定の通信規格で通信する。
印刷部18は、印刷媒体に印刷する印刷機構、印刷媒体を搬送する搬送機構、印刷媒体を切断する切断機構等の印刷に係る機構、及び、各機構の制御に係る制御基板等を備える。
印刷装置記憶部19は、不揮発性メモリーを備え、各種データを記憶する。印刷装置記憶部19が記憶するデータについては後述する。
以下の説明では、第1印刷データ通信制御部21、及び、第2印刷データ通信制御部22を区別せずに表現する場合、これら機能ブロックを総称して「機能部」と表現する。
印刷装置12は、ネットワークGN(第1のネットワーク)により制御サーバー10と通信する機能、及び、ローカルエリアネットワークLN(第2のネットワーク)により印刷機器7と通信する機能を有する。
FIG. 3 is a block diagram showing a functional configuration of the printing apparatus 12, the printing device 7, the control server 10, and the management apparatus 14 according to the present embodiment.
As shown in FIG. 3, the printing apparatus 12 (first printing apparatus) includes an apparatus control unit 12S, a first communication unit 16, a second communication unit 20, a third communication unit 24, and a printing unit 18. A printing device storage unit 19.
The functions of the first communication unit 16 and the second communication unit 20 will be described later.
The apparatus control unit 12S includes a CPU, a ROM, a RAM, other peripheral circuits, and the like, and controls the printing apparatus 12. The apparatus control unit 12S includes, as functional blocks, a first print data communication control unit 21 (first print data communication control unit), a second print data communication control unit 22 (second print data communication control unit), A printing control unit 17. These functional blocks will be described later.
The third communication unit 24 communicates with the printing device 7 connected to the local area network LN according to a predetermined communication standard corresponding to the network under the control of the device control unit 12S.
The printing unit 18 includes a printing mechanism that prints on a printing medium, a conveyance mechanism that conveys the printing medium, a printing mechanism such as a cutting mechanism that cuts the printing medium, and a control board that controls each mechanism.
The printing device storage unit 19 includes a nonvolatile memory and stores various data. Data stored in the printing device storage unit 19 will be described later.
In the following description, when the first print data communication control unit 21 and the second print data communication control unit 22 are expressed without distinction, these functional blocks are collectively expressed as “functional unit”.
The printing apparatus 12 has a function of communicating with the control server 10 via the network GN (first network) and a function of communicating with the printing device 7 via the local area network LN (second network).

図3に示すように、印刷機器7(第2の印刷装置)は、機器制御部7Sと、印刷ユニット61と、印刷機器記憶部62と、通信インターフェース63と、を備える。
機器制御部7Sは、CPUや、ROM、RAM、その他の制御回路等を備え、印刷機器7を制御する。
印刷ユニット61は、印刷媒体に印刷する印刷機構、印刷媒体を搬送する搬送機構、印刷媒体を切断する切断機構等の印刷に係る機構、及び、各機構の制御に係る制御基板等を備える。
印刷機器記憶部62は、不揮発性メモリーを備え、各種データを記憶する。印刷機器記憶部62が記憶するデータについては後述する。
通信インターフェース63は、機器制御部7Sの制御に従って、ローカルエリアネットワークLNに接続された印刷装置12と、所定の通信規格で通信する。
印刷機器7は、ローカルエリアネットワークLN(第2のネットワーク)により印刷装置12と通信する機能を有する一方、ネットワークGNにアクセスする機能を有さない。
As illustrated in FIG. 3, the printing device 7 (second printing apparatus) includes a device control unit 7 </ b> S, a printing unit 61, a printing device storage unit 62, and a communication interface 63.
The device control unit 7S includes a CPU, a ROM, a RAM, other control circuits, and the like, and controls the printing device 7.
The printing unit 61 includes a printing mechanism that prints on a printing medium, a conveyance mechanism that conveys the printing medium, a printing mechanism such as a cutting mechanism that cuts the printing medium, and a control board that controls each mechanism.
The printing device storage unit 62 includes a nonvolatile memory and stores various data. Data stored in the printing device storage unit 62 will be described later.
The communication interface 63 communicates with the printing apparatus 12 connected to the local area network LN according to a predetermined communication standard according to the control of the device control unit 7S.
The printing device 7 has a function of communicating with the printing apparatus 12 via the local area network LN (second network), but does not have a function of accessing the network GN.

図3に示すように、制御サーバー10(印刷制御サーバー)は、サーバー制御部10Sと、第1接続部26と、第2接続部31と、第3接続部32と、制御サーバー記憶部28と、を備える。
第1接続部26、及び、第2接続部31の機能、及び、機能に基づく処理については後述する。
サーバー制御部10Sは、CPUや、ROM、RAM、その他の制御回路等を備え、制御サーバー10を制御する。制御サーバー10は、機能ブロックとして、印刷データ処理部27と、第1通信処理部29(第1の通信処理部)と、第2通信処理部30(第2の通信処理部)と、を備える。これら機能ブロックの機能については後述する。
制御サーバー記憶部28は、不揮発性メモリーを備え、各種データを記憶する。制御サーバー記憶部28が記憶するデータについては後述する。
第3接続部32は、管理装置14との間で、HTTP通信を行う。管理装置14にウェブブラウザーがインストールされており、第3接続部32は、管理装置14との間で、制御サーバー10をサーバーとし、管理装置14をクライアントとするHTTP通信をコネクションにより行う。
以下の説明では、印刷データ処理部27、第1通信処理部29、及び、第2通信処理部30を区別せずに表現する場合、これら機能ブロックを総称して「処理部」と表現する。
As shown in FIG. 3, the control server 10 (printing control server) includes a server control unit 10S, a first connection unit 26, a second connection unit 31, a third connection unit 32, and a control server storage unit 28. .
The functions of the first connection unit 26 and the second connection unit 31 and processing based on the functions will be described later.
The server control unit 10S includes a CPU, a ROM, a RAM, other control circuits, and the like, and controls the control server 10. The control server 10 includes a print data processing unit 27, a first communication processing unit 29 (first communication processing unit), and a second communication processing unit 30 (second communication processing unit) as functional blocks. . The functions of these functional blocks will be described later.
The control server storage unit 28 includes a nonvolatile memory and stores various data. The data stored in the control server storage unit 28 will be described later.
The third connection unit 32 performs HTTP communication with the management device 14. A web browser is installed in the management apparatus 14, and the third connection unit 32 performs HTTP communication with the management apparatus 14 using the control server 10 as a server and the management apparatus 14 as a client.
In the following description, when the print data processing unit 27, the first communication processing unit 29, and the second communication processing unit 30 are expressed without distinction, these functional blocks are collectively expressed as “processing unit”.

図3に示すように、管理装置14は、管理装置制御部40と、通信インターフェース41と、表示部42と、を備える。
管理装置制御部40は、CPUや、ROM、RAM、その他の周辺回路等を備え、管理装置14を制御する。管理装置14は、機能ブロックとして、ブラウザー実行部40aを備える。ブラウザー実行部40aは、ウェブブラウザーによって、その機能が実現される機能ブロックである。
通信インターフェース41は、管理装置制御部40の制御で、制御サーバー10とHTTP通信する。
表示部42は、液晶表示パネル等の表示パネルを備え、管理装置制御部40の制御で、表示パネルに画像を表示する。
As illustrated in FIG. 3, the management device 14 includes a management device control unit 40, a communication interface 41, and a display unit 42.
The management device control unit 40 includes a CPU, ROM, RAM, and other peripheral circuits, and controls the management device 14. The management device 14 includes a browser execution unit 40a as a functional block. The browser execution unit 40a is a functional block whose function is realized by a web browser.
The communication interface 41 performs HTTP communication with the control server 10 under the control of the management device control unit 40.
The display unit 42 includes a display panel such as a liquid crystal display panel, and displays an image on the display panel under the control of the management device control unit 40.

なお、図3では、制御サーバー10と、制御サーバー10に接続された1つの印刷装置12との関係を示す。制御サーバー10に、複数の印刷装置12が接続される場合は、制御サーバー10は、複数の印刷装置12に対応して複数の第1接続部26(WebSocketインターフェース)、及び、第2接続部31(WebSocketインターフェース)をる。そして、制御サーバー10は、印刷装置12との間でWebSocketコネクションCTを確立し、印刷装置12とWebSocketコネクションCTでWebSocket通信する。
また、図3では、制御サーバー10と、制御サーバー10に接続された1つの管理装置14との関係を示す。制御サーバー10に、複数の管理装置14が接続される場合は、制御サーバー10は、複数の管理装置14に対応して複数の第3接続部32を備え、管理装置14との間でコネクションを確立し、管理装置14と通信する。
FIG. 3 shows the relationship between the control server 10 and one printing device 12 connected to the control server 10. When a plurality of printing devices 12 are connected to the control server 10, the control server 10 corresponds to the plurality of printing devices 12, a plurality of first connection units 26 (WebSocket interface), and a second connection unit 31. (WebSocket interface). Then, the control server 10 establishes a WebSocket connection CT with the printing apparatus 12 and performs WebSocket communication with the printing apparatus 12 through the WebSocket connection CT.
Further, FIG. 3 shows the relationship between the control server 10 and one management device 14 connected to the control server 10. When a plurality of management devices 14 are connected to the control server 10, the control server 10 includes a plurality of third connection units 32 corresponding to the plurality of management devices 14, and establishes a connection with the management device 14. Establish and communicate with the management device 14.

次に、印刷装置12の電源投入時における、印刷装置12、及び、制御サーバー10の動作について説明する。
図4は、印刷装置12に電源が投入された後の印刷装置12、及び、制御サーバー10の動作を示すフローチャートであり、(A)は印刷装置12の動作を、(B)は制御サーバー10の動作を示す。
なお、図4のフローチャートの処理のトリガーは、電源投入時に限らない。例えば、印刷装置12がネットワークGNに通信可能に接続された場合や、ユーザーから指示があった場合等であってもよい。
Next, operations of the printing apparatus 12 and the control server 10 when the printing apparatus 12 is turned on will be described.
FIG. 4 is a flowchart showing operations of the printing apparatus 12 and the control server 10 after the printing apparatus 12 is turned on. (A) shows the operation of the printing apparatus 12, and (B) shows the control server 10. Shows the operation.
The trigger of the process in the flowchart of FIG. 4 is not limited to when the power is turned on. For example, the case where the printing apparatus 12 is connected to the network GN so as to be communicable or the case where an instruction is given from the user may be used.

以下の説明において、印刷装置12が備える第1印刷データ通信制御部21、第2印刷データ通信制御部22、印刷制御部17、及び、制御サーバー10が備える第1通信処理部29、第2通信処理部30、印刷データ処理部27の機能は、例えば、以下のようにして実現される。
これら機能ブロックは、オブジェクトである。オブジェクトは、オブジェクト指向プログラミングで生成されるインスタンス、すなわち、データ及びメソッドの集合として定義された機能ブロックである。そして、これら機能ブロックの機能は、機能ブロックに実装されたメソッドが呼び出されることによって実現される。
また例えば、これら機能ブロックの機能は、アプリケーションがCPU等のハードウェアによって読み出され実行されることによって実現される。1つのアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。また、1つのアプリケーションにより複数の機能ブロックの機能が実現される構成であってもよい。また、複数のアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。
すなわち、機能ブロックは、機能をブロックとして表現したものであり、特定のアプリケーションや、ハードウェア等を意味するものではない。
In the following description, the first print data communication control unit 21, the second print data communication control unit 22, the print control unit 17, and the first communication processing unit 29 included in the control server 10, the second communication included in the printing apparatus 12. The functions of the processing unit 30 and the print data processing unit 27 are realized as follows, for example.
These functional blocks are objects. An object is an instance generated by object-oriented programming, that is, a functional block defined as a collection of data and methods. And the function of these functional blocks is implement | achieved by calling the method mounted in the functional block.
Further, for example, the functions of these functional blocks are realized by an application being read and executed by hardware such as a CPU. A configuration in which the function of one functional block is realized by one application may be employed. Moreover, the structure by which the function of a some functional block is implement | achieved by one application may be sufficient. Moreover, the structure by which the function of one functional block is implement | achieved by several applications may be sufficient.
In other words, the function block represents a function as a block, and does not mean a specific application, hardware, or the like.

図4(A)に示すように、印刷装置12の電源が投入されると(ステップSX1)、第1印刷データ通信制御部21は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する第1通信先情報データを取得する(ステップSA1)。
第1通信先情報データは、WebSocketコネクションCTである第1WebSocketコネクションCT1(第1の通信経路)を確立する際に、アクセスする制御サーバー10のアドレス(ドメイン名、IPアドレス、パス名、ポート情報等。)を示すデータである。ここで、WebSocketでは、WebSocketコネクションCTの確立時に、クライアント(本例では、印刷装置12)は、サーバー(本例では、制御サーバー10)に対して、HTTP(Hypertext Transfer Protocol)に基づくハンドシェイクを行う。ハンドシェイクで、クライアントは、サーバーのアドレスが含まれるメッセージ等のメッセージを送信するが、第1通信先情報データは、アクセス先のアドレスを含むデータである。
印刷装置12の機能部に応じて、WebSocketコネクションCTを確立するときのアクセス先のアドレスが異なる。本例では、印刷装置12は、第1印刷データ通信制御部21と第2印刷データ通信制御部22との2つの機能部を有する。そして、第1印刷データ通信制御部21が、第1WebSocketコネクションCT1を確立するときにアクセスするアドレスと、第2印刷データ通信制御部22が、第2WebSocketコネクションCT2を確立するときにアクセスするアドレスとは異なる。印刷装置記憶部19は、第1通信先情報データ、及び、第2通信先情報データを記憶する。第1通信先情報データは、上述したように、第1WebSocketコネクションCT1を確立するときにアクセスするアドレスを含み、第2通信先情報データは、第2WebSocketコネクションCT2を確立するときにアクセスするアドレスを含む。
As shown in FIG. 4A, when the printing apparatus 12 is turned on (step SX1), the first print data communication control unit 21 accesses the printing apparatus storage unit 19, and the printing apparatus storage unit 19 The first communication destination information data to be stored is acquired (step SA1).
The first communication destination information data is the address (domain name, IP address, path name, port information, etc.) of the control server 10 to be accessed when establishing the first WebSocket connection CT1 (first communication path) which is the WebSocket connection CT. .). Here, in WebSocket, when the WebSocket connection CT is established, the client (printing apparatus 12 in this example) performs a handshake based on HTTP (Hypertext Transfer Protocol) to the server (control server 10 in this example). Do. In the handshake, the client transmits a message such as a message including the server address, and the first communication destination information data is data including the access destination address.
The address of the access destination when establishing the WebSocket connection CT differs depending on the function unit of the printing apparatus 12. In this example, the printing apparatus 12 has two functional units, a first print data communication control unit 21 and a second print data communication control unit 22. The address accessed when the first print data communication control unit 21 establishes the first WebSocket connection CT1 and the address accessed when the second print data communication control unit 22 establishes the second WebSocket connection CT2 Different. The printing device storage unit 19 stores first communication destination information data and second communication destination information data. As described above, the first communication destination information data includes an address that is accessed when establishing the first WebSocket connection CT1, and the second communication destination information data includes an address that is accessed when establishing the second WebSocket connection CT2. .

次いで、第1印刷データ通信制御部21は、第1通信先情報データが示すアドレスに基づいて制御サーバー10にアクセスする。そして、第1印刷データ通信制御部21は、制御サーバー10の第1通信処理部29と、第1通信部16と第1接続部26との間に、第1WebSocketコネクションCT1を確立する(ステップSA2、ステップSB1)。印刷装置12の第1印刷データ通信制御部21は、制御サーバー10からの要求を受けることなく、印刷装置12の電源が投入されたことをトリガーとして第1WebSocketコネクションCT1を確立する。
第1通信部16、及び、第1接続部26は、WebSocketの規格、手続きに従ってデータの送受信を行うWebSocketインターフェースである。これら機能ブロックは、例えば、WebSocketのSocketライブラリーを用いて生成される。
第1通信部16は、第1印刷データ通信制御部21から受信したデータについて、WebSocketの規格に従って処理を行い、WebSocketの手続きで第1WebSocketコネクションCT1によりデータを送信する機能を有する。また、第1通信部16は、第1WebSocketコネクションCT1で受信したデータについて、WebSocketに従った処理を行って、第1印刷データ通信制御部21に送信する機能を有する。第1接続部26、第2通信部20、第2接続部31についても同様である。
第1WebSocketコネクションCT1の確立に伴って、印刷装置12、及び、制御サーバー10は、非同期で、双方向通信できる。制御サーバー10は、クライアントとしての印刷装置12からリクエストを受けることなく、第1WebSocketコネクションCT1によりプッシュ送信で印刷装置12にデータを送信できる。同様に、印刷装置12は、第1WebSocketコネクションCT1によりプッシュ送信で制御サーバー10にデータを送信できる。
また、第1WebSocketコネクションCT1の確立により、印刷装置12の第1印刷データ通信制御部21と、制御サーバー10の第1通信処理部29との間で、第1WebSocketコネクションCT1に基づく第1機能部間通信経路KT1が確立する。第1機能部間通信経路KT1は、第1印刷データ通信制御部21と、第1通信処理部29との間で通信するデータを送受信する論理的な通信経路である。第1印刷データ通信制御部21と第1通信処理部29とは、第1機能部間通信経路KT1により、非同期な双方向通信を行う。第1機能部間通信経路KT1により行われる非同期な双方向通信については後述する。
Next, the first print data communication control unit 21 accesses the control server 10 based on the address indicated by the first communication destination information data. Then, the first print data communication control unit 21 establishes the first WebSocket connection CT1 between the first communication processing unit 29 of the control server 10, the first communication unit 16, and the first connection unit 26 (step SA2). Step SB1). The first print data communication control unit 21 of the printing apparatus 12 establishes the first WebSocket connection CT <b> 1 triggered by the power-on of the printing apparatus 12 without receiving a request from the control server 10.
The first communication unit 16 and the first connection unit 26 are WebSocket interfaces that transmit and receive data according to WebSocket standards and procedures. These functional blocks are generated using, for example, a socket library of WebSocket.
The first communication unit 16 has a function of processing the data received from the first print data communication control unit 21 according to the WebSocket standard and transmitting the data through the first WebSocket connection CT1 in the WebSocket procedure. The first communication unit 16 has a function of performing processing according to WebSocket on the data received through the first WebSocket connection CT1 and transmitting the processed data to the first print data communication control unit 21. The same applies to the first connection unit 26, the second communication unit 20, and the second connection unit 31.
With the establishment of the first WebSocket connection CT1, the printing apparatus 12 and the control server 10 can perform two-way communication asynchronously. The control server 10 can transmit data to the printing apparatus 12 by push transmission through the first WebSocket connection CT1 without receiving a request from the printing apparatus 12 as a client. Similarly, the printing apparatus 12 can transmit data to the control server 10 by push transmission using the first WebSocket connection CT1.
In addition, by establishing the first WebSocket connection CT1, between the first function unit based on the first WebSocket connection CT1 between the first print data communication control unit 21 of the printing apparatus 12 and the first communication processing unit 29 of the control server 10. A communication path KT1 is established. The first inter-function unit communication path KT1 is a logical communication path for transmitting and receiving data communicated between the first print data communication control unit 21 and the first communication processing unit 29. The first print data communication control unit 21 and the first communication processing unit 29 perform asynchronous two-way communication through the first inter-function unit communication path KT1. Asynchronous bidirectional communication performed by the first functional unit communication path KT1 will be described later.

次いで、第1印刷データ通信制御部21は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する印刷装置識別情報データを取得する(ステップSA3)。印刷装置識別情報データは、印刷装置12の識別情報(以下、「印刷装置識別情報」という。)を示すデータである。印刷装置識別情報は、例えば、印刷装置12の製造段階で、印刷装置12に割り当てられるシリアル番号である。
次いで、第1印刷データ通信制御部21は、印刷装置識別情報データを第1通信部16に送信する(ステップSA4)。
第1通信部16は、受信した印刷装置識別情報データを、第1WebSocketコネクションCT1で、制御サーバー10に送信する(ステップSA5)。
Next, the first print data communication control unit 21 accesses the printing device storage unit 19 and acquires printing device identification information data stored in the printing device storage unit 19 (step SA3). The printing apparatus identification information data is data indicating identification information of the printing apparatus 12 (hereinafter referred to as “printing apparatus identification information”). The printing device identification information is, for example, a serial number assigned to the printing device 12 at the manufacturing stage of the printing device 12.
Next, the first print data communication control unit 21 transmits the printing apparatus identification information data to the first communication unit 16 (step SA4).
The first communication unit 16 transmits the received printing apparatus identification information data to the control server 10 through the first WebSocket connection CT1 (step SA5).

図4(B)に示すように、制御サーバー10の第1接続部26は、第1WebSocketコネクションCT1で、印刷装置識別情報データを受信する(ステップSB2)。次いで、第1接続部26は、受信した印刷装置識別情報データを第1通信処理部29に送信する(ステップSB3)。
第1通信処理部29は、制御サーバー記憶部28が記憶するコネクション管理データベースにアクセスする(ステップSB4)。コネクション管理データベースは、制御サーバー10と接続する印刷装置12との間で確立しているWebSocketコネクションCTについて、WebSocketコネクションCTの識別情報であるコネクション識別情報と、印刷装置12の印刷装置識別情報とを対応付けて記憶するデータベースである。次いで、第1通信処理部29は、コネクション管理データベースに1件のレコードを生成する。そして、第1通信処理部29は、生成したレコードにおいて、ステップSB1で確立したWebSocketコネクションCT(本例では、第1WebSocketコネクションCT1)のコネクション識別情報と、受信した印刷装置識別情報データが示す印刷装置識別情報とを対応付けて記憶する(ステップSB5)。第1通信処理部29は、WebSocketコネクションCTが確立したときに、既に確立しているWebSocketコネクションCTのコネクション識別情報と異なる値のコネクション識別情報を生成する。ステップSB5の処理により、WebSocketコネクションCTと、印刷装置12との対応関係が管理される。
このように、印刷装置12の第1印刷データ通信制御部21は、制御サーバー10からの要求を受けることなく、印刷装置12の電源が投入されたことをトリガーとして第1WebSocketコネクションCT1を確立する。このような構成のため、ユーザーは、第1WebSocketコネクションCT1を確立するために、煩雑な作業を行う必要がない。また、ユーザーは、第1WebSocketコネクションCT1を確立するために、専門的な知識も必要ない。
As shown in FIG. 4B, the first connection unit 26 of the control server 10 receives the printing apparatus identification information data through the first WebSocket connection CT1 (step SB2). Next, the first connection unit 26 transmits the received printing apparatus identification information data to the first communication processing unit 29 (step SB3).
The first communication processing unit 29 accesses the connection management database stored in the control server storage unit 28 (step SB4). The connection management database includes connection identification information that is identification information of the WebSocket connection CT and printing apparatus identification information of the printing apparatus 12 for the WebSocket connection CT established with the printing apparatus 12 connected to the control server 10. It is a database that is stored in association with each other. Next, the first communication processing unit 29 generates one record in the connection management database. Then, the first communication processing unit 29 includes, in the generated record, the connection identification information of the WebSocket connection CT established in Step SB1 (in this example, the first WebSocket connection CT1) and the printing device indicated by the received printing device identification information data The identification information is stored in association with each other (step SB5). When the WebSocket connection CT is established, the first communication processing unit 29 generates connection identification information having a value different from the connection identification information of the already established WebSocket connection CT. By the processing in step SB5, the correspondence relationship between the WebSocket connection CT and the printing apparatus 12 is managed.
As described above, the first print data communication control unit 21 of the printing apparatus 12 establishes the first WebSocket connection CT1 using the power of the printing apparatus 12 as a trigger without receiving a request from the control server 10. Due to such a configuration, the user does not need to perform a complicated operation to establish the first WebSocket connection CT1. In addition, the user does not need specialized knowledge to establish the first WebSocket connection CT1.

以上、第1WebSocketコネクションCT1確立時の印刷装置12及び制御サーバー10の動作を説明したが、第2WebSocketコネクションCT2(第2の通信経路)の確立時も同様の処理が行われる。
以下、第2WebSocketコネクションCT2の確立時の処理について説明する。
印刷装置12の電源がオンされると、第2印刷データ通信制御部22は、制御サーバー10の第2通信処理部30と、第2通信部20と第2接続部31との間に第2WebSocketコネクションCT2を確立する。当該コネクションの確立に応じて、制御サーバー10の第2通信処理部30は、コネクション管理データベースに、当該コネクションのコネクション識別情報と、印刷装置12の印刷装置識別情報とを対応付けて記憶する。第2WebSocketコネクションCT2の確立に応じて、第2印刷データ通信制御部22と第2通信処理部30との間に、当該コネクションに基づく第2機能部間通信経路KT2が確立する。第2機能部間通信経路KT2によるデータの送受信については後述する。
このように、印刷装置12と制御サーバー10との間で、印刷装置12が備える機能部ごとにWebSocketコネクションCTが確立される。このため、1の機能部は、制御サーバー10の対応する処理部との間でのデータの送受信を、他の機能部とは独立して、当該他の処理部の通信に影響を受けることなく、また、影響を与えることなく実行できる。
The operation of the printing apparatus 12 and the control server 10 when the first WebSocket connection CT1 is established has been described above, but the same processing is performed when the second WebSocket connection CT2 (second communication path) is established.
Hereinafter, a process when the second WebSocket connection CT2 is established will be described.
When the power of the printing apparatus 12 is turned on, the second print data communication control unit 22 connects the second WebSocket between the second communication processing unit 30 of the control server 10 and the second communication unit 20 and the second connection unit 31. Connection CT2 is established. In response to the establishment of the connection, the second communication processing unit 30 of the control server 10 stores the connection identification information of the connection and the printing apparatus identification information of the printing apparatus 12 in association with each other in the connection management database. In response to the establishment of the second WebSocket connection CT2, a communication path KT2 between the second functional units based on the connection is established between the second print data communication control unit 22 and the second communication processing unit 30. Data transmission / reception via the second functional unit communication path KT2 will be described later.
In this way, a WebSocket connection CT is established for each functional unit included in the printing apparatus 12 between the printing apparatus 12 and the control server 10. For this reason, one function unit transmits and receives data to and from the corresponding processing unit of the control server 10 without being affected by the communication of the other processing unit independently of the other function unit. Also, it can be executed without any influence.

次に、管理装置14の指示に応じて、制御サーバー10が印刷装置12の印刷を制御する場合における管理装置14、制御サーバー10、及び、印刷装置12の動作について説明する。
図5は、管理装置14が印刷装置12の印刷を制御する場合の各装置の動作を示すフローチャートであり、(A)は管理装置14の動作を、(B)は制御サーバー10の動作を、(C)は印刷装置12の動作を示す。
また、図5のフローチャートを用いて、制御サーバー10の第1通信処理部29と、印刷装置12の第1印刷データ通信制御部21との間で行われる第1機能部間通信経路KT1による非同期な双方向通信について説明する。
また、以下の説明において、管理装置14の管理装置制御部40のブラウザー実行部40aの機能は、例えば、ブラウザー上で動作するアプリケーションや、描画ファイル(後述)が有するスクリプトの機能により実行される。
Next, operations of the management device 14, the control server 10, and the printing device 12 when the control server 10 controls printing of the printing device 12 according to an instruction from the management device 14 will be described.
FIG. 5 is a flowchart showing the operation of each device when the management device 14 controls printing of the printing device 12, (A) shows the operation of the management device 14, (B) shows the operation of the control server 10, (C) shows the operation of the printing apparatus 12.
In addition, using the flowchart of FIG. 5, the first functional unit communication path KT <b> 1 that is performed between the first communication processing unit 29 of the control server 10 and the first print data communication control unit 21 of the printing apparatus 12 is asynchronous. Will be described.
In the following description, the function of the browser execution unit 40a of the management device control unit 40 of the management device 14 is executed by, for example, a function of an application that runs on the browser or a script that a drawing file (described later) has.

図5(A)に示すように、印刷装置12による印刷に際し、ユーザーは、管理装置14のブラウザーを立ち上げ、所定のURLへのアクセスを指示する(ステップSY1)。当該URLは、後述する印刷情報入力用ユーザーインターフェース(以下、「印刷UI」と表現する。)を、ブラウザーウィンドーに表示する場合にアクセスするURLである。当該所定のURLは、ユーザーに対して予め通知される。URLは、制御サーバー10が管理するURLであってもよく、他のサーバーが管理するURLであってもよい。
ステップSY1の指示に応じて、管理装置14の管理装置制御部40のブラウザー実行部40aは、指定されたURLへアクセスし、印刷UIの表示に係る描画ファイルを要求する(ステップSC1)。描画ファイルは、HTML(HyperText Markup Language)等のマークアップ言語で記述されたファイルであり、管理装置14のブラウザーウィンドーにウェブページを表示させるファイルである。
As shown in FIG. 5A, when printing by the printing apparatus 12, the user starts up the browser of the management apparatus 14 and gives an instruction to access a predetermined URL (step SY1). The URL is a URL that is accessed when a user interface for inputting print information (hereinafter referred to as “print UI”), which will be described later, is displayed on the browser window. The predetermined URL is notified to the user in advance. The URL may be a URL managed by the control server 10 or a URL managed by another server.
In response to the instruction in step SY1, the browser execution unit 40a of the management device control unit 40 of the management device 14 accesses the designated URL and requests a drawing file related to the display of the print UI (step SC1). The drawing file is a file described in a markup language such as HTML (HyperText Markup Language), and is a file for displaying a web page in the browser window of the management apparatus 14.

次いで、ブラウザー実行部40aは、ステップSC1の要求に応じて取得した描画ファイルに基づいて、印刷UIを表示する(ステップSC2)。
印刷UIは、印刷装置12に印刷させる印刷情報を、ユーザーが入力するユーザーインターフェースである。印刷情報は、画像データが格納されたファイル名や、印刷媒体における画像の位置に関する情報等である。印刷UIでは、制御サーバー10の印刷データ処理部27が、印刷制御コマンドの生成に用いる情報を入力可能である。
また、印刷UIは、印刷させる印刷装置12の印刷装置識別情報をユーザーが入力するユーザーインターフェースである。
印刷UIには、印刷情報、及び、印刷装置識別情報を入力する欄が設けられ、ユーザーは、当該欄に印刷情報、及び、印刷装置識別情報を入力する。
Next, the browser execution unit 40a displays a print UI based on the drawing file acquired in response to the request in step SC1 (step SC2).
The print UI is a user interface through which a user inputs print information to be printed by the printing apparatus 12. The print information is a file name in which image data is stored, information on the position of the image on the print medium, and the like. In the print UI, the print data processing unit 27 of the control server 10 can input information used to generate a print control command.
The print UI is a user interface through which the user inputs printing device identification information of the printing device 12 to be printed.
The printing UI is provided with a column for inputting printing information and printing device identification information, and the user inputs the printing information and the printing device identification information in the column.

ユーザーが、印刷UIに対して印刷情報、及び、印刷装置識別情報を入力し、入力を確定すると(ステップSY2)、ブラウザー実行部40aは、以下の処理を実行する。
ブラウザー実行部40aは、印刷指示データを生成する(ステップSC3)。印刷指示データは、印刷UIに入力された情報に基づく印刷情報、及び、印刷装置識別情報が含まれた所定のフォーマットのデータである。
次いで、ブラウザー実行部40aは、通信インターフェース41を制御して、制御サーバー10に印刷指示データを送信する(ステップSC4)。ステップSC4において、ブラウザー実行部40aは、制御サーバー10との間で、例えば、HTTPでハンドシェイクを行ってコネクションを確立し、コネクションにより印刷指示データを送信する。
When the user inputs print information and printing apparatus identification information to the print UI and confirms the input (step SY2), the browser execution unit 40a executes the following processing.
The browser execution unit 40a generates print instruction data (step SC3). The print instruction data is data in a predetermined format including print information based on information input to the print UI and printing apparatus identification information.
Next, the browser execution unit 40a controls the communication interface 41 and transmits print instruction data to the control server 10 (step SC4). In step SC4, the browser execution unit 40a establishes a connection with, for example, HTTP by handshaking with the control server 10, and transmits print instruction data through the connection.

図5(B)に示すように、制御サーバー10の印刷データ処理部27は、第3接続部32を制御して、印刷指示データを受信する(ステップSD1)。
次いで、印刷データ処理部27は、受信した印刷指示データに基づいて、印刷制御コマンド(第1の印刷制御コマンド)を生成する(ステップSD2)。印刷制御コマンドは、印刷装置12が有する印刷部18、及び、印刷機器7が有する印刷ユニット61が対応するコマンド体系の制御コマンドである。印刷制御部17は、印刷制御コマンドを解釈する機能を有し、印刷制御コマンドに基づいて、印刷部18を制御して印刷処理を実行させることができる。同様に、機器制御部7Sは、印刷制御コマンドを解釈する機能を有し、印刷制御コマンドに基づいて、印刷ユニット61を制御して印刷処理を実行させることができる。
次いで、印刷データ処理部27は、生成した印刷制御コマンドを、第1通信処理部29に送信する(ステップSD3)。
As shown in FIG. 5B, the print data processing unit 27 of the control server 10 controls the third connection unit 32 to receive print instruction data (step SD1).
Next, the print data processing unit 27 generates a print control command (first print control command) based on the received print instruction data (step SD2). The print control command is a control command of a command system corresponding to the printing unit 18 included in the printing apparatus 12 and the printing unit 61 included in the printing device 7. The print control unit 17 has a function of interpreting a print control command, and can control the print unit 18 to execute a printing process based on the print control command. Similarly, the device control unit 7S has a function of interpreting the print control command, and can control the print unit 61 to execute print processing based on the print control command.
Next, the print data processing unit 27 transmits the generated print control command to the first communication processing unit 29 (step SD3).

ステップSD3の処理について、詳述する。
印刷データ処理部27は、受信した印刷指示データに印刷情報及び印刷装置識別情報が含まれ、印刷機器識別情報(後述)が含まれていない場合、印刷装置12により印刷を実行することが指示されていると判別し、第1通信処理部29にデータを送信する。第1通信処理部29は、第1WebSocketコネクションCT1で、データを送信する機能を有する。一方、印刷データ処理部27は、受信した印刷指示データに印刷情報、印刷装置識別情報、及び、印刷機器識別情報が含まれている場合、印刷機器7により印刷を実行することが指示されていると判別し、第2通信処理部30にデータを送信する。第2通信処理部30は、第2WebSocketコネクションCT2で、データを送信する機能を有する。
上述したように、制御サーバー10に複数の印刷装置12が接続されている場合は、制御サーバー10は、印刷装置12に応じて、第1通信処理部29及び第2通信処理部30を有する。印刷データ処理部27は、印刷装置識別情報と対応付けて、第1通信処理部29及び第2通信処理部30を管理している。ステップSD3では、印刷データ処理部27は、当該管理に基づいて、受信した印刷指示データに含まれる印刷装置識別情報に対応する第1通信処理部29に、印刷制御コマンドを送信する。
第1通信処理部29は、受信した印刷制御コマンドを、第1接続部26に送信する(ステップSD4)。
第1接続部26は、受信した印刷制御コマンドを、第1WebSocketコネクションCT1で、印刷装置12に送信する(ステップSD5)。
The process of step SD3 will be described in detail.
The print data processing unit 27 is instructed to execute printing by the printing device 12 when the received printing instruction data includes printing information and printing device identification information and does not include printing device identification information (described later). The data is transmitted to the first communication processing unit 29. The first communication processing unit 29 has a function of transmitting data through the first WebSocket connection CT1. On the other hand, the print data processing unit 27 is instructed to execute printing by the printing device 7 when the received print instruction data includes printing information, printing device identification information, and printing device identification information. And the data is transmitted to the second communication processing unit 30. The second communication processing unit 30 has a function of transmitting data through the second WebSocket connection CT2.
As described above, when a plurality of printing devices 12 are connected to the control server 10, the control server 10 includes a first communication processing unit 29 and a second communication processing unit 30 according to the printing device 12. The print data processing unit 27 manages the first communication processing unit 29 and the second communication processing unit 30 in association with the printing apparatus identification information. In step SD3, the print data processing unit 27 transmits a print control command to the first communication processing unit 29 corresponding to the printing apparatus identification information included in the received print instruction data based on the management.
The first communication processing unit 29 transmits the received print control command to the first connection unit 26 (step SD4).
The first connection unit 26 transmits the received print control command to the printing apparatus 12 through the first WebSocket connection CT1 (step SD5).

図5(C)に示すように、印刷装置12の第1通信部16は、第1WebSocketコネクションCT1で印刷制御コマンドを受信する(ステップSE1)。次いで、第1通信部16は、受信した印刷制御コマンドを第1印刷データ通信制御部21に送信する(ステップSE2)。
第1印刷データ通信制御部21は、受信した印刷制御コマンドを、印刷制御部17に送信する(ステップSE3)。
印刷制御部17は、受信した印刷制御コマンドに基づいて、印刷部18を制御して、印刷処理を実行する(ステップSE4)。
As shown in FIG. 5C, the first communication unit 16 of the printing apparatus 12 receives the print control command through the first WebSocket connection CT1 (step SE1). Next, the first communication unit 16 transmits the received print control command to the first print data communication control unit 21 (step SE2).
The first print data communication control unit 21 transmits the received print control command to the print control unit 17 (step SE3).
The print control unit 17 controls the printing unit 18 based on the received print control command, and executes a printing process (step SE4).

このように、制御サーバー10は、印刷装置12に印刷を実行させる事象が発生した場合に、印刷装置12からのリクエストを受けることなく、印刷装置12に印刷制御コマンドを送信して、印刷装置12に印刷させることができる。印刷装置12に印刷を実行させる事象が発生した場合とは、例えば、上記例のように通信可能に接続された外部機器からの要求があった場合や、ユーザーからの指示があった場合、予め定めた条件が成立した場合等、である。
このため、印刷装置12から制御サーバー10に対して間欠的にリクエストを送り、印刷装置12に印刷をさせたい場合に、当該リクエストに応じて印刷制御データを送信する構成とした場合と比較して、印刷を実行させる事象の発生後、より迅速に印刷を開始させることができる。
また、上記のように、制御サーバー10の第1通信処理部29と、印刷装置12の第1印刷データ通信制御部21とは、第1WebSocketコネクションCT1に基づく第1機能部間通信経路KT1により、非同期の双方向通信を行う。
As described above, when an event that causes the printing apparatus 12 to execute printing occurs, the control server 10 transmits a print control command to the printing apparatus 12 without receiving a request from the printing apparatus 12, and the printing apparatus 12. Can be printed. For example, when an event that causes the printing apparatus 12 to execute printing occurs, for example, when there is a request from an external device that is communicably connected as in the above example, or when there is an instruction from the user, For example, when a predetermined condition is satisfied.
For this reason, when a request is intermittently sent from the printing apparatus 12 to the control server 10 and printing is desired to be performed by the printing apparatus 12, the print control data is transmitted in response to the request. The printing can be started more quickly after the occurrence of the event for executing the printing.
Further, as described above, the first communication processing unit 29 of the control server 10 and the first print data communication control unit 21 of the printing apparatus 12 are connected via the first inter-function unit communication path KT1 based on the first WebSocket connection CT1. Perform asynchronous two-way communication.

なお、印刷部18による印刷が行われた後は、印刷装置12、制御サーバー10、及び、管理装置14は、以下の処理を実行する。
すなわち、印刷制御部17は、印刷部18による印刷の結果に基づいて、第1印刷結果データを生成する。第1印刷結果データとは、印刷部18による印刷が成功したか失敗したかを示す情報、及び、失敗した場合はその原因を示す情報を含むデータである。印刷制御部17は、第1印刷結果データを、第1印刷データ通信制御部21に送信する。
第1印刷データ通信制御部21は、WebSocketコネクションCTに基づく第1機能部間通信経路KT1により、第1通信処理部29に第1印刷結果データを送信する。第1通信処理部29は、受信した第1印刷結果データを、印刷指示データを送信した管理装置14に対して送信する。例えば、第1通信処理部29は、印刷指示データの受信に用いたコネクションを管理し、当該コネクションを利用して、第1印刷結果データを管理装置14に送信する。管理装置14の管理装置制御部40のブラウザー実行部40aは、受信した第1印刷結果データに基づいて対応する処理を実行する。例えば、管理装置制御部40は、印刷結果を示す情報を表示部42に表示し、印刷結果をユーザーに報知する処理を行う。
Note that after printing by the printing unit 18, the printing device 12, the control server 10, and the management device 14 execute the following processing.
That is, the print control unit 17 generates first print result data based on the result of printing by the printing unit 18. The first print result data is data including information indicating whether the printing by the printing unit 18 is successful or unsuccessful, and information indicating the cause when the printing is unsuccessful. The print control unit 17 transmits the first print result data to the first print data communication control unit 21.
The first print data communication control unit 21 transmits the first print result data to the first communication processing unit 29 through the first inter-function unit communication path KT1 based on the WebSocket connection CT. The first communication processing unit 29 transmits the received first print result data to the management apparatus 14 that has transmitted the print instruction data. For example, the first communication processing unit 29 manages the connection used for receiving the print instruction data, and transmits the first print result data to the management device 14 using the connection. The browser execution unit 40a of the management device control unit 40 of the management device 14 executes a corresponding process based on the received first print result data. For example, the management device control unit 40 displays information indicating the print result on the display unit 42 and performs processing for notifying the user of the print result.

次に、管理装置14の指示に応じて、制御サーバー10が、印刷装置12を介して印刷機器7を制御して、所定の印刷機器識別情報の印刷機器7に印刷を実行させる場合の各装置の動作について説明する。
図6は、各装置の動作を示すフローチャートであり、(A)は管理装置14の動作を、(B)は制御サーバー10の動作を、(C)は印刷装置12の動作を、(D)は印刷機器7の動作を示す。
Next, each device when the control server 10 controls the printing device 7 via the printing device 12 in accordance with an instruction from the management device 14 and causes the printing device 7 to execute predetermined printing device identification information to execute printing. Will be described.
FIG. 6 is a flowchart showing the operation of each device. (A) shows the operation of the management device 14, (B) shows the operation of the control server 10, (C) shows the operation of the printing device 12, and (D). Indicates the operation of the printing device 7.

図6(A)に示すように、印刷機器7による印刷に際し、ユーザーは、管理装置14のブラウザーを立ち上げ、所定のURLへのアクセスを指示する(ステップSZ1)。当該URLは、後述する印刷機器用ユーザーインターフェース(以下、「印刷機器UI」と表現する。)を、ブラウザーウィンドーに表示する場合にアクセスするURLである。当該所定のURLは、ユーザーに対して予め通知される。なお、URLは、制御サーバー10が管理するURLであってもよく、他のサーバーが管理するURLであってもよい。
ステップSZ1の指示に応じて、管理装置14の管理装置制御部40のブラウザー実行部40aは、指定されたURLへアクセスし、印刷機器UIの表示に係る描画ファイルを要求する(ステップSF1)。
As shown in FIG. 6A, when printing with the printing device 7, the user starts up the browser of the management apparatus 14 and instructs access to a predetermined URL (step SZ1). The URL is a URL that is accessed when a later-described printing device user interface (hereinafter referred to as “printing device UI”) is displayed in a browser window. The predetermined URL is notified to the user in advance. The URL may be a URL managed by the control server 10 or a URL managed by another server.
In response to the instruction in step SZ1, the browser execution unit 40a of the management device control unit 40 of the management device 14 accesses the designated URL and requests a drawing file related to the display of the printing device UI (step SF1).

次いで、ブラウザー実行部40aは、ステップSF1の要求に応じて取得した描画ファイルに基づいて、印刷機器UIを表示する(ステップSF2)。
印刷機器UIは、印刷機器7に印刷させる印刷情報を、ユーザーが入力するユーザーインターフェースである。印刷情報は、画像データが格納されたファイル名や、印刷媒体における画像の位置に関する情報等である。
また、印刷機器UIは、印刷させる印刷機器7とローカルエリアネットワークLNを介して接続された印刷装置12の印刷装置識別情報、及び、当該ローカルエリアネットワークLNで印刷を実行させる印刷機器7の印刷機器識別情報を入力するユーザーインターフェースである。印刷機器識別情報とは、印刷機器7の識別情報である。印刷機器識別情報は、例えば、印刷機器7の製造段階で、印刷機器7に割り当てられるシリアル番号である。
印刷機器UIには、印刷情報、印刷装置識別情報、及び、印刷機器識別情報を入力する欄が設けられ、ユーザーは、当該欄に印刷情報、印刷装置識別情報、及び、印刷機器識別情報を入力する。
Next, the browser execution unit 40a displays the printing device UI based on the drawing file acquired in response to the request in step SF1 (step SF2).
The printing device UI is a user interface through which a user inputs print information to be printed by the printing device 7. The print information is a file name in which image data is stored, information on the position of the image on the print medium, and the like.
The printing device UI also includes printing device identification information of the printing device 12 connected to the printing device 7 to be printed via the local area network LN, and the printing device 7 of the printing device 7 that executes printing on the local area network LN. It is a user interface for inputting identification information. The printing device identification information is identification information of the printing device 7. The printing device identification information is, for example, a serial number assigned to the printing device 7 at the manufacturing stage of the printing device 7.
The printing device UI is provided with columns for inputting printing information, printing device identification information, and printing device identification information, and the user inputs printing information, printing device identification information, and printing device identification information in the corresponding columns. To do.

ユーザーが、印刷機器UIに対して印刷情報、印刷装置識別情報、及び、印刷機器識別情報を入力し、入力を確定すると(ステップSZ2)、ブラウザー実行部40aは、以下の処理を実行する。
ブラウザー実行部40aは、印刷指示データを生成する(ステップSF3)。
ステップSF3でブラウザー実行部40aが生成する印刷指示データは、印刷機器UIに入力された情報に基づく印刷情報、印刷装置識別情報、及び、印刷機器識別情報が含まれている。
次いで、ブラウザー実行部40aは、通信インターフェース41を制御して、制御サーバー10に印刷指示データを送信する(ステップSF4)。
When the user inputs printing information, printing device identification information, and printing device identification information to the printing device UI and confirms the input (step SZ2), the browser execution unit 40a executes the following processing.
The browser execution unit 40a generates print instruction data (step SF3).
The print instruction data generated by the browser execution unit 40a in step SF3 includes printing information based on information input to the printing device UI, printing device identification information, and printing device identification information.
Next, the browser execution unit 40a controls the communication interface 41 and transmits print instruction data to the control server 10 (step SF4).

図6(B)に示すように、制御サーバー10の印刷データ処理部27は、第3接続部32を制御して、印刷指示データを受信する(ステップSG1)。
次いで、印刷データ処理部27は、受信した印刷指示データに基づいて、印刷制御コマンド(第2の印刷制御コマンド)を生成する(ステップSG2)。次いで、印刷データ処理部27は、生成した印刷制御コマンドを、第2通信処理部30に送信する(ステップSG3)。上述したように、印刷データ処理部27は、受信した印刷指示データに印刷情報、印刷装置識別情報、及び、印刷機器識別情報が含まれている場合、印刷機器7により印刷を実行することが指示されていると判別し、第2通信処理部30にデータを送信する。
第2通信処理部30は、受信した印刷制御コマンドを、第2接続部31に送信する(ステップSG4)。
第2接続部31は、受信した印刷制御コマンドを、第2WebSocketコネクションCT2で、印刷装置12に送信する(ステップSG5)
As shown in FIG. 6B, the print data processing unit 27 of the control server 10 controls the third connection unit 32 to receive the print instruction data (step SG1).
Next, the print data processing unit 27 generates a print control command (second print control command) based on the received print instruction data (step SG2). Next, the print data processing unit 27 transmits the generated print control command to the second communication processing unit 30 (step SG3). As described above, the print data processing unit 27 instructs the printing device 7 to perform printing when the received printing instruction data includes printing information, printing device identification information, and printing device identification information. The data is transmitted to the second communication processing unit 30.
The second communication processing unit 30 transmits the received print control command to the second connection unit 31 (step SG4).
The second connection unit 31 transmits the received print control command to the printing apparatus 12 through the second WebSocket connection CT2 (step SG5).

図6(C)に示すように、印刷装置12の第2通信部20は、第2WebSocketコネクションCT2で、印刷制御コマンドを受信する(ステップSH1)。次いで、第2通信部20は、受信した印刷制御コマンドを第2印刷データ通信制御部22に送信する(ステップSH2)。
第2印刷データ通信制御部22は、印刷制御コマンドに含まれる印刷機器識別情報を取得する(ステップSH3)。ステップSH3で第2印刷データ通信制御部22が取得した印刷機器識別情報は、印刷をさせる印刷機器7の識別情報である。
次いで、第2印刷データ通信制御部22は、印刷装置記憶部19が記憶する印刷機器管理データベースを参照する(ステップSH4)。印刷機器管理データベースは、ローカルエリアネットワークLNに接続され、DHCPサーバー6によりIPアドレスが付与された印刷機器7について、MACアドレスと、印刷機器識別情報とを対応付けて記憶するデータベースである。第2印刷データ通信制御部22は、所定のタイミングで、印刷機器7に印刷機器識別情報を問い合わせ、問い合わせに対する応答に応じて、印刷機器管理データベースの内容を更新する。
As shown in FIG. 6C, the second communication unit 20 of the printing apparatus 12 receives the print control command through the second WebSocket connection CT2 (step SH1). Next, the second communication unit 20 transmits the received print control command to the second print data communication control unit 22 (step SH2).
The second print data communication control unit 22 acquires the printing device identification information included in the print control command (step SH3). The printing device identification information acquired by the second print data communication control unit 22 in step SH3 is identification information of the printing device 7 that performs printing.
Next, the second print data communication control unit 22 refers to the printing device management database stored in the printing device storage unit 19 (step SH4). The printing device management database is a database that stores the MAC address and the printing device identification information in association with each other for the printing device 7 that is connected to the local area network LN and assigned the IP address by the DHCP server 6. The second print data communication control unit 22 inquires the printing device 7 about the printing device identification information at a predetermined timing, and updates the contents of the printing device management database according to the response to the inquiry.

次いで、第2印刷データ通信制御部22は、ステップSH3で取得した印刷機器識別情報をキーとして、印刷機器管理データベースで、当該識別情報と対応付けられたMACアドレスを取得する(ステップSH5)。
次いで、第2印刷データ通信制御部22は、ステップSH5で取得したMACアドレスの印刷機器7に設定されているIPアドレスを問い合わせるデータを、ローカルエリアネットワークLNに対してブロードキャストで送信する。そして、第2印刷データ通信制御部22は、当該問い合わせに対する応答に基づいて、ステップSH5で取得したMACアドレスの印刷機器7に設定されているIPアドレスを取得する(ステップSH6)。
次いで、第2印刷データ通信制御部22は、第3通信部24を制御して、印刷制御コマンドを、ステップSH6で取得したIPアドレスの印刷機器7に送信する(ステップSH7)。
このように、本実施形態では、第2印刷データ通信制御部22は、印刷制御コマンドを送信する場合、印刷機器識別情報に対応付けられたMACアドレスを取得し、MACアドレスを用いて、印刷機器7のIPアドレスを取得する。そして、第2印刷データ通信制御部22は、取得したIPアドレスに基づいて、印刷機器7に印刷制御コマンドを送信する。これは、以下の理由による。すなわち、DHCPサーバー6により印刷機器7に付与されたIPアドレスは、付与後に全く変更がないわけではなく、例えば、IPアドレスの貸し出し期限が切れたタイミングで変更がある可能性がある。そして、本実施形態によれば、印刷装置12は、アドレスの変化に影響を受けることなく、印刷制御コマンドを送信するときに印刷機器7に付与されているアドレスに基づいて、印刷制御コマンドを印刷機器7に送信することができる。
Next, the second print data communication control unit 22 acquires the MAC address associated with the identification information in the printing device management database using the printing device identification information acquired in step SH3 as a key (step SH5).
Next, the second print data communication control unit 22 transmits, to the local area network LN, data inquiring about the IP address set in the printing device 7 having the MAC address acquired in step SH5. Then, based on the response to the inquiry, the second print data communication control unit 22 acquires the IP address set in the printing device 7 having the MAC address acquired in step SH5 (step SH6).
Next, the second print data communication control unit 22 controls the third communication unit 24 to transmit a print control command to the printing device 7 with the IP address acquired in step SH6 (step SH7).
As described above, in the present embodiment, when transmitting the print control command, the second print data communication control unit 22 acquires the MAC address associated with the printing device identification information, and uses the MAC address to print the printing device. 7 IP address is acquired. Then, the second print data communication control unit 22 transmits a print control command to the printing device 7 based on the acquired IP address. This is due to the following reason. In other words, the IP address assigned to the printing device 7 by the DHCP server 6 is not changed at all after the assignment, and may be changed, for example, at the timing when the lending period of the IP address expires. According to this embodiment, the printing apparatus 12 prints the print control command based on the address given to the printing device 7 when transmitting the print control command without being affected by the change in address. It can be transmitted to the device 7.

図6(D)に示すように、印刷機器7の機器制御部7Sは、通信インターフェース63を制御して、印刷制御コマンドを受信する(ステップSI1)。
次いで、機器制御部7Sは、印刷制御コマンドに基づいて、印刷ユニット61を制御して、印刷処理を実行する(ステップSI2)。
このように、本実施形態では、制御サーバー10は、管理装置14の指示に応じて、印刷装置12を介して、所定の印刷機器7に印刷を実行させることができる。
As shown in FIG. 6D, the device control unit 7S of the printing device 7 controls the communication interface 63 to receive a print control command (step SI1).
Next, the device control unit 7S controls the printing unit 61 based on the printing control command and executes printing processing (step SI2).
Thus, in the present embodiment, the control server 10 can cause a predetermined printing device 7 to execute printing via the printing device 12 in accordance with an instruction from the management device 14.

なお、印刷機器7の印刷ユニット61による印刷が行われた後は、印刷機器7、印刷装置12、制御サーバー10、及び、管理装置14は、以下の処理を実行する。
すなわち、印刷機器7の機器制御部7Sは、印刷ユニット61による印刷の結果に基づいて、第2印刷結果データを生成する。第2印刷結果データとは、印刷ユニット61による印刷が成功したか失敗したかを示す情報、及び、失敗した場合はその原因を示す情報を含むデータである。
次いで、機器制御部7Sは、第2印刷結果データを、印刷装置12の第2印刷データ通信制御部22に送信する。第2印刷データ通信制御部22は、第2WebSocketコネクションCT2に基づく第2機能部間通信経路KT2により、制御サーバー10の第2通信処理部30に第2印刷結果データを送信する。
第2通信処理部30は、受信した第2印刷結果データを、印刷指示データを送信した管理装置14に対して送信する。例えば、第2通信処理部30は、印刷指示データの受信に用いたコネクションを管理し、当該コネクションを利用して、第2印刷結果データを管理装置14に送信する。管理装置14の管理装置制御部40のブラウザー実行部40aは、受信した第2印刷結果データに基づいて対応する処理を実行する。例えば、管理装置制御部40は、印刷結果を示す情報を表示部42に表示し、印刷結果をユーザーに報知する処理を行う。
Note that after the printing by the printing unit 61 of the printing device 7 is performed, the printing device 7, the printing device 12, the control server 10, and the management device 14 execute the following processing.
That is, the device control unit 7S of the printing device 7 generates the second print result data based on the result of printing by the printing unit 61. The second print result data is data including information indicating whether the printing by the printing unit 61 is successful or unsuccessful, and information indicating the cause when the printing is unsuccessful.
Next, the device control unit 7S transmits the second print result data to the second print data communication control unit 22 of the printing apparatus 12. The second print data communication control unit 22 transmits the second print result data to the second communication processing unit 30 of the control server 10 through the second inter-function unit communication path KT2 based on the second WebSocket connection CT2.
The second communication processing unit 30 transmits the received second print result data to the management apparatus 14 that has transmitted the print instruction data. For example, the second communication processing unit 30 manages the connection used for receiving the print instruction data, and transmits the second print result data to the management device 14 using the connection. The browser execution unit 40a of the management device control unit 40 of the management device 14 executes a corresponding process based on the received second print result data. For example, the management device control unit 40 displays information indicating the print result on the display unit 42 and performs processing for notifying the user of the print result.

以上説明したように、本実施形態に係る印刷制御システム1は、制御サーバー10(印刷制御サーバー)と、印刷装置12(第1の印刷装置)と、印刷機器(第2の印刷装置)と、を備える。
制御サーバー10は、印刷装置12の制御に係る印刷制御コマンド(第1の印刷制御コマンド)及び印刷機器7の制御に係る印刷制御コマンド(第2の印刷制御コマンド)を生成する印刷データ処理部27、印刷データ処理部27で生成された印刷制御コマンドをネットワークGN(第1のネットワーク)の第1WebSocketコネクションCT1(第1の通信経路)で送信する第1通信処理部29(第1の通信処理部)、及び印刷データ処理部27で生成された印刷制御コマンドをネットワークGNの第2WebSocketコネクションCT2(第2の通信経路)で送信する第2通信処理部30(第2の通信処理部)を有する。
印刷装置12は、印刷を行う印刷部18、第1WebSocketコネクションCT1で印刷制御コマンドを受信する第1印刷データ通信制御部21(第1の印刷データ通信制御部)、受信した印刷制御コマンドに基づいて印刷部18を制御する印刷制御部17、及び第2WebSocketコネクションCT2で印刷制御コマンドを受信して受信した印刷制御コマンドをローカルエリアネットワークLN(第2のネットワーク)で送信する第2印刷データ通信制御部22(第2の印刷データ通信制御部)を有する。
印刷機器7は、印刷を行う印刷ユニット61、及びローカルエリアネットワークLNで印刷制御コマンドを受信して受信した印刷制御コマンドに基づいて印刷ユニット61を制御する機器制御部7Sを有する。
この構成によれば、制御サーバー10の第1通信処理部29、及び、印刷装置12の第1印刷データ通信制御部21の機能により、制御サーバー10が、第1WebSocketコネクションCT1で印刷制御コマンドを印刷装置12に送信した場合、印刷装置12は、受信した印刷制御コマンドに基づいて印刷処理を行う。また、制御サーバー10の第2通信処理部30、及び、印刷装置12の第2印刷データ通信制御部の機能により、制御サーバー10が、第2WebSocketコネクションCT2で印刷制御コマンドを印刷装置12に送信した場合、印刷装置12は、受信した印刷制御コマンドを印刷機器7に送信し、印刷機器7は、印刷制御コマンドに基づいて印刷処理を行う。このため、制御サーバー10は、印刷装置12と印刷機器7とのいずれかに印刷処理を実行させる場合、第1WebSocketコネクションCT1及び第2WebSocketコネクションCT2のうち対応する通信経路で印刷制御コマンドを印刷装置12に送信すればよく、制御サーバー10で、印刷装置12と印刷機器7のいずれかを指定して印刷処理をおこなわせるために印刷制御コマンドを加工するデータ処理を行ったり、印刷装置12で、受信した印刷制御コマンドに基づいて印刷装置12と印刷機器7とのいずれで印刷処理を行うのかを判別するデータ処理を行ったりする必要がなく、印刷制御システム1について、印刷装置12と制御サーバー10とがネットワークGNを介して通信する構成、及び、印刷装置12と印刷機器7とがローカルエリアネットワークLNを介して通信する構成に対応させて、制御サーバー10により、効率のよいデータ処理によって印刷装置12及び印刷機器7を制御できる。
As described above, the print control system 1 according to the present embodiment includes the control server 10 (print control server), the printing device 12 (first printing device), the printing device (second printing device), Is provided.
The control server 10 generates a print control command (second print control command) for controlling the printing apparatus 12 and a print control command (second print control command) for controlling the printing device 7. The first communication processing unit 29 (first communication processing unit) that transmits the print control command generated by the print data processing unit 27 through the first WebSocket connection CT1 (first communication path) of the network GN (first network). ), And a second communication processing unit 30 (second communication processing unit) that transmits the print control command generated by the print data processing unit 27 through the second WebSocket connection CT2 (second communication path) of the network GN.
The printing apparatus 12 includes a printing unit 18 that performs printing, a first print data communication control unit 21 (first print data communication control unit) that receives a print control command through the first WebSocket connection CT1, and based on the received print control command. A print control unit 17 that controls the print unit 18 and a second print data communication control unit that receives the print control command via the second WebSocket connection CT2 and transmits the received print control command via the local area network LN (second network). 22 (second print data communication control unit).
The printing device 7 includes a printing unit 61 that performs printing, and a device control unit 7S that controls the printing unit 61 based on the printing control command received and received by the local area network LN.
According to this configuration, the control server 10 prints a print control command through the first WebSocket connection CT1 by the functions of the first communication processing unit 29 of the control server 10 and the first print data communication control unit 21 of the printing apparatus 12. When transmitted to the apparatus 12, the printing apparatus 12 performs a printing process based on the received print control command. Further, the control server 10 transmits a print control command to the printing device 12 through the second WebSocket connection CT2 by the functions of the second communication processing unit 30 of the control server 10 and the second print data communication control unit of the printing device 12. In this case, the printing apparatus 12 transmits the received print control command to the printing device 7, and the printing device 7 performs a printing process based on the print control command. For this reason, when the control server 10 causes either the printing device 12 or the printing device 7 to execute the printing process, the control server 10 sends a printing control command to the printing device 12 through the corresponding communication path of the first WebSocket connection CT1 and the second WebSocket connection CT2. In the control server 10, data processing for processing a print control command to perform printing processing by designating either the printing device 12 or the printing device 7 is performed or received by the printing device 12. It is not necessary to perform data processing for determining which of the printing apparatus 12 and the printing device 7 performs the printing process based on the printed control command, and the printing apparatus 12, the control server 10, Configured to communicate via the network GN, and the printing apparatus 12 and the printing press 7 and is in correspondence with the configuration of communicating via a local area network LN, the control server 10, can be controlled better data processing by the printing apparatus 12 and the printing device 7 efficient.

また、本実施形態では、印刷装置12の第1印刷データ通信制御部21は、電源が投入されたときに、第1WebSocketコネクションCT1を確立し、第2印刷データ通信制御部22は、電源が投入されたときに、第2WebSocketコネクションCT2を確立する。
この構成によれば、ユーザーによる作業を経ることなく、印刷装置12の電源の投入をトリガーとして、印刷装置12と制御サーバー10との間に、第1WebSocketコネクションCT1及び第2WebSocketコネクションCT2を確立し、制御サーバー10の制御により、印刷装置12及び印刷機器7を制御できる状態を確立できる。
In the present embodiment, the first print data communication control unit 21 of the printing apparatus 12 establishes the first WebSocket connection CT1 when the power is turned on, and the second print data communication control unit 22 is turned on. The second WebSocket connection CT2 is established.
According to this configuration, the first WebSocket connection CT1 and the second WebSocket connection CT2 are established between the printing apparatus 12 and the control server 10 using the power-on of the printing apparatus 12 as a trigger without any work by the user. Under the control of the control server 10, it is possible to establish a state in which the printing device 12 and the printing device 7 can be controlled.

<第2実施形態>
次に、第2実施形態について説明する。
上述した第1実施形態では、印刷データ処理部27が、印刷指示データに基づいて、印刷制御コマンドを生成した。
一方、第2実施形態に係る印刷データ処理部27は、管理装置14から印刷指示データを受信した場合、印刷指示データに基づいて、印刷制御データを生成する。印刷制御データは、印刷装置12又は印刷機器7に印刷させる情報が含まれるXML(Extensible Markup Language)ファイルである。印刷制御データには、XMLフォーマットに従って、印刷装置12又は印刷機器7に印刷させる情報、例えば、画像データや、画像の位置を示す情報等が含まれる。XMLフォーマットに従ったデータは、インターネットを含むネットワークGNで送受信するデータとして適している。
印刷データ処理部27による印刷制御データの生成後、印刷装置12に印刷させる場合は、印刷データ処理部27は、印刷制御データ(所定のフォーマットの第1の印刷制御データ)を第1通信処理部29に送信する。第1通信処理部29は、第1WebSocketコネクションCT1に基づく第1機能部間通信経路KT1により、印刷制御データを、印刷装置12の第1印刷データ通信制御部21に送信する。第1印刷データ通信制御部21は、受信した印刷制御データに基づいて、印刷制御コマンドを生成し、印刷制御部17に送信する。つまり、本実施形態に係る第1印刷データ通信制御部21は、受信した印刷制御データに基づいて、印刷制御コマンドを生成する機能を有する。印刷制御部17は、受信した印刷制御コマンドに基づいて印刷部18を制御して印刷処理を実行する。
一方、印刷データ処理部27による印刷制御データの生成後、印刷機器7に印刷させる場合は、印刷データ処理部27は、印刷制御データ(所定のフォーマットの第2の印刷制御データ)を第2通信処理部30に送信する。第2通信処理部30は、第2WebSocketコネクションCT2に基づく第2機能部間通信経路KT2により、印刷制御データを、印刷装置12の第2印刷データ通信制御部22に送信する。第2印刷データ通信制御部22は、受信した印刷制御データに基づいて、印刷制御コマンドを生成する。つまり、本実施形態に係る第2印刷データ通信制御部22は、受信した印刷制御データに基づいて、印刷制御コマンドを生成する機能を有する。第2印刷データ通信制御部22は、第3通信部24を制御して、印刷制御コマンドを印刷機器7に送信する。印刷機器7の機器制御部7Sは、受信した印刷制御コマンドに基づいて、印刷ユニット61を制御して、印刷処理を実行する。
以上のように、制御サーバー10は、印刷装置12に対して印刷制御データを送信する。印刷装置12は、印刷制御データに基づいて印刷制御コマンドを生成する機能を有する。印刷装置12は、印刷装置12により印刷処理を実行する場合は、印刷制御データに基づいて印刷制御コマンドを生成し、当該コマンドに基づいて印刷処理を実行する。一方、印刷装置12は、印刷機器7により印刷処理を実行する場合は、印刷制御データに基づいて印刷制御コマンドを生成し、当該コマンドを印刷機器7に送信し、印刷機器7に印刷処理を実行させる。このような構成であってもよい。
Second Embodiment
Next, a second embodiment will be described.
In the first embodiment described above, the print data processing unit 27 generates a print control command based on the print instruction data.
On the other hand, when the print data processing unit 27 according to the second embodiment receives print instruction data from the management device 14, the print data processing unit 27 generates print control data based on the print instruction data. The print control data is an XML (Extensible Markup Language) file that includes information to be printed by the printing device 12 or the printing device 7. The print control data includes information to be printed by the printing apparatus 12 or the printing device 7 according to the XML format, for example, image data, information indicating the position of the image, and the like. Data according to the XML format is suitable as data to be transmitted / received in the network GN including the Internet.
When the printing apparatus 12 prints after the print control data is generated by the print data processing unit 27, the print data processing unit 27 sends the print control data (first print control data in a predetermined format) to the first communication processing unit. 29. The first communication processing unit 29 transmits the print control data to the first print data communication control unit 21 of the printing apparatus 12 through the first inter-function unit communication path KT1 based on the first WebSocket connection CT1. The first print data communication control unit 21 generates a print control command based on the received print control data and transmits it to the print control unit 17. That is, the first print data communication control unit 21 according to the present embodiment has a function of generating a print control command based on the received print control data. The print control unit 17 controls the printing unit 18 based on the received print control command to execute print processing.
On the other hand, after the print data processing unit 27 generates the print control data, the print data processing unit 27 sends the print control data (second print control data in a predetermined format) to the second communication when printing is performed on the printing device 7. The data is transmitted to the processing unit 30. The second communication processing unit 30 transmits the print control data to the second print data communication control unit 22 of the printing apparatus 12 through the second inter-function unit communication path KT2 based on the second WebSocket connection CT2. The second print data communication control unit 22 generates a print control command based on the received print control data. That is, the second print data communication control unit 22 according to the present embodiment has a function of generating a print control command based on the received print control data. The second print data communication control unit 22 controls the third communication unit 24 to transmit a print control command to the printing device 7. The device control unit 7S of the printing device 7 controls the printing unit 61 based on the received print control command, and executes the printing process.
As described above, the control server 10 transmits print control data to the printing apparatus 12. The printing apparatus 12 has a function of generating a print control command based on the print control data. When the printing apparatus 12 executes the printing process, the printing apparatus 12 generates a printing control command based on the printing control data, and executes the printing process based on the command. On the other hand, when the printing device 12 executes the printing process by the printing device 7, the printing device 12 generates a printing control command based on the printing control data, transmits the command to the printing device 7, and executes the printing process on the printing device 7. Let Such a configuration may be used.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
上述した実施形態では、印刷装置12は店舗に用いる店舗システム11に設けられていた。しかしながら、印刷装置12は、必ずしも、店舗システム11に設けられたものでなくてもよい。例えば、他のシステムに設けられたものであってもよい。
また、図3に示す各機能ブロックはハードウェアとソフトウェアにより任意に実現可能であり、特定のハードウェア構成を示唆するものではない。また、印刷装置12の機能を、当該装置に外部接続される別の装置に持たせるようにしてもよい。また、印刷装置12は、外部接続される記憶媒体に記憶させたプログラムを実行することによって、各種処理を実行しても良い。
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.
In the above-described embodiment, the printing apparatus 12 is provided in the store system 11 used for the store. However, the printing apparatus 12 is not necessarily provided in the store system 11. For example, it may be provided in another system.
Each functional block shown in FIG. 3 can be arbitrarily realized by hardware and software, and does not suggest a specific hardware configuration. Further, the function of the printing apparatus 12 may be provided to another apparatus externally connected to the apparatus. Further, the printing apparatus 12 may execute various processes by executing a program stored in an externally connected storage medium.

1…制御システム(印刷制御システム)、7…印刷機器(第2の印刷装置)、7S…機器制御部、10…制御サーバー(印刷制御サーバー)、12…印刷装置(第1の印刷装置)、17…印刷制御部、18…印刷部、21…第1印刷データ通信制御部(第1の印刷データ通信制御部)、22…第2印刷データ通信制御部(第2の印刷データ通信制御部)、27…印刷データ処理部、29…第1通信処理部(第1の通信処理部)、30…第2通信処理部(第2の通信処理部)、61…印刷ユニット、GN…ネットワーク(第1のネットワーク)、LN…ローカルエリアネットワーク(第2のネットワーク)、CT1…第1WebSocketコネクション(第1の通信経路)、CT2…第2WebSocketコネクション(第2の通信経路)。   DESCRIPTION OF SYMBOLS 1 ... Control system (printing control system), 7 ... Printing apparatus (2nd printing apparatus), 7S ... Equipment control part, 10 ... Control server (printing control server), 12 ... Printing apparatus (1st printing apparatus), DESCRIPTION OF SYMBOLS 17 ... Print control part, 18 ... Print part, 21 ... 1st print data communication control part (1st print data communication control part), 22 ... 2nd print data communication control part (2nd print data communication control part) , 27 ... print data processing unit, 29 ... first communication processing unit (first communication processing unit), 30 ... second communication processing unit (second communication processing unit), 61 ... printing unit, GN ... network (first) 1 network), LN ... local area network (second network), CT1 ... first WebSocket connection (first communication path), CT2 ... second WebSocket connection (second communication path)

Claims (8)

第1の印刷制御コマンド及び第2の印刷制御コマンドを生成する印刷データ処理部、前記印刷データ処理部で生成された前記第1の印刷制御コマンドを第1のネットワークの第1の通信経路で送信する第1の通信処理部、及び前記印刷データ処理部で生成された前記第2の印刷制御コマンドを前記第1のネットワークの第2の通信経路で送信する第2の通信処理部を有する印刷制御サーバーと、
印刷を行う印刷部、前記第1の通信経路で前記第1の印刷制御コマンドを受信する第1の印刷データ通信制御部、受信した前記第1の印刷制御コマンドに基づいて前記印刷部を制御する印刷制御部、及び前記第2の通信経路で前記第2の印刷制御コマンドを受信して受信した前記第2の印刷制御コマンドを第2のネットワークで送信する第2の印刷データ通信制御部を有する第1の印刷装置と、
印刷を行う印刷ユニット、及び前記第2のネットワークで前記第2の印刷制御コマンドを受信して受信した前記第2の印刷制御コマンドに基づいて前記印刷ユニットを制御する機器制御部を有する第2の印刷装置と、
を備えることを特徴とする印刷制御システム。
A print data processing unit that generates a first print control command and a second print control command, and the first print control command generated by the print data processing unit is transmitted through a first communication path of a first network. And a second communication processing unit that transmits the second print control command generated by the print data processing unit through the second communication path of the first network. Server,
A printing unit that performs printing, a first print data communication control unit that receives the first print control command through the first communication path, and controls the printing unit based on the received first print control command A print control unit; and a second print data communication control unit configured to receive the second print control command through the second communication path and transmit the received second print control command through a second network. A first printing device;
A printing unit that performs printing; and a second control unit that controls the printing unit based on the second printing control command received by receiving the second printing control command on the second network. A printing device;
A printing control system comprising:
前記第1の印刷装置の前記第1の印刷データ通信制御部は、電源が投入されたときに、前記第1の通信経路を確立し、
前記第1の印刷装置の前記第2の印刷データ通信制御部は、電源が投入されたときに、前記第2の通信経路を確立する請求項1に記載の印刷制御システム。
The first print data communication control unit of the first printing apparatus establishes the first communication path when power is turned on,
The print control system according to claim 1, wherein the second print data communication control unit of the first printing device establishes the second communication path when power is turned on.
前記印刷制御サーバーと前記第1の印刷装置とは、非同期の双方向通信を行う請求項1又は2に記載の印刷制御システム。   The print control system according to claim 1, wherein the print control server and the first printing apparatus perform asynchronous bidirectional communication. 前記印刷制御サーバーの前記印刷データ処理部は、前記第1の印刷制御コマンドに対応する所定のフォーマットの第1の印刷制御データを生成し、前記印刷制御サーバーの前記第1の通信処理部は、前記印刷データ処理部で生成された前記第1の印刷制御データを前記第1の通信経路で送信し、
前記第1の印刷装置の前記第1の印刷データ通信制御部は、前記第1の通信経路で前記第1の印刷制御データを受信し、受信した前記第1の印刷制御データに基づいて前記第1の印刷制御コマンドを生成して前記印刷制御部に送信する請求項1乃至3のいずれか1項に記載の印刷制御システム。
The print data processing unit of the print control server generates first print control data in a predetermined format corresponding to the first print control command, and the first communication processing unit of the print control server includes: Transmitting the first print control data generated by the print data processing unit through the first communication path;
The first print data communication control unit of the first printing apparatus receives the first print control data through the first communication path, and the first print data communication control unit receives the first print control data based on the received first print control data. The print control system according to claim 1, wherein one print control command is generated and transmitted to the print control unit.
前記印刷制御サーバーの前記印刷データ処理部は、前記第2の印刷制御コマンドに対応する前記所定のフォーマットの第2の印刷制御データを生成し、前記印刷制御サーバーの前記第2の通信処理部は、前記印刷データ処理部で生成された前記第2の印刷制御データを前記第2の通信経路で送信し、
前記第1の印刷装置の前記第2の印刷データ通信制御部は、前記第2の通信経路で前記第2の印刷制御データを受信し、受信した前記第2の印刷制御データに基づいて前記第2の印刷制御コマンドを生成して前記第2のネットワークで送信する請求項4に記載の印刷制御システム。
The print data processing unit of the print control server generates second print control data of the predetermined format corresponding to the second print control command, and the second communication processing unit of the print control server , Transmitting the second print control data generated by the print data processing unit through the second communication path,
The second print data communication control unit of the first printing device receives the second print control data through the second communication path, and the second print data communication control unit receives the second print control data based on the received second print control data. The print control system according to claim 4, wherein two print control commands are generated and transmitted through the second network.
印刷制御サーバーで、第1の印刷制御コマンド及び第2の印刷制御コマンドを生成し、
生成した前記第1の印刷制御コマンドを第1のネットワークの第1の通信経路で送信し、
生成した前記第2の印刷制御コマンドを前記第1のネットワークの第2の通信経路で送信し、
第1の印刷装置で、前記第1の通信経路で前記第1の印刷制御コマンド及び前記第2の印刷制御コマンドを受信し、
受信した前記第1の印刷制御コマンドに基づいて印刷処理を行い、
受信した前記第2の印刷制御コマンドを第2のネットワークで第2の印刷装置に送信し、
前記第2の印刷装置で、前記第1の印刷装置から前記第2の印刷制御コマンドを受信し、受信した前記第2の印刷制御コマンドに基づいて印刷処理を行うことを特徴とする印刷制御システムの制御方法。
The print control server generates a first print control command and a second print control command,
Transmitting the generated first print control command via the first communication path of the first network;
Transmitting the generated second print control command through the second communication path of the first network;
The first printing apparatus receives the first print control command and the second print control command through the first communication path;
Print processing is performed based on the received first print control command,
The received second print control command is transmitted to the second printing apparatus via the second network,
A printing control system, wherein the second printing apparatus receives the second printing control command from the first printing apparatus and performs a printing process based on the received second printing control command. Control method.
前記第1の印刷装置の電源が投入されたときに、前記第1の通信経路及び前記第2の通信経路を形成する請求項6に記載の印刷制御システムの制御方法。   The method according to claim 6, wherein the first communication path and the second communication path are formed when the power of the first printing apparatus is turned on. 印刷制御サーバーで、第1の印刷制御データ及び第2の印刷制御データを生成し、
生成した前記第1の印刷制御データを第1のネットワークの第1の通信経路で送信し、
生成した前記第2の印刷制御データを前記第1のネットワークの第2の通信経路で送信し、
第1の印刷装置で、前記第1の通信経路で前記第1の印刷制御データ及び前記第2の印刷制御データを受信し、
受信した前記第1の印刷制御データに基づいて第1の印刷制御コマンドを生成し、前記第1の印刷制御コマンドに基づいて印刷処理を行い、
受信した前記第2の印刷制御データに基づいて第2の印刷制御コマンドを生成し、前記第2の印刷制御コマンドを第2のネットワークで第2の印刷装置に送信し、
前記第2の印刷装置で、前記第1の印刷装置から前記第2の印刷制御コマンドを受信し、受信した前記第2の印刷制御コマンドに基づいて印刷処理を行うことを特徴とする印刷制御システムの制御方法。
The print control server generates first print control data and second print control data,
Transmitting the generated first print control data through a first communication path of a first network;
Transmitting the generated second print control data through the second communication path of the first network;
The first printing apparatus receives the first print control data and the second print control data through the first communication path,
Generating a first print control command based on the received first print control data, performing a printing process based on the first print control command,
Generating a second print control command based on the received second print control data, and transmitting the second print control command to the second printing apparatus via the second network;
A printing control system, wherein the second printing apparatus receives the second printing control command from the first printing apparatus and performs a printing process based on the received second printing control command. Control method.
JP2014019203A 2014-02-04 2014-02-04 Print control system, and control method of print control system Pending JP2015146153A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014019203A JP2015146153A (en) 2014-02-04 2014-02-04 Print control system, and control method of print control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014019203A JP2015146153A (en) 2014-02-04 2014-02-04 Print control system, and control method of print control system

Publications (1)

Publication Number Publication Date
JP2015146153A true JP2015146153A (en) 2015-08-13

Family

ID=53890346

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014019203A Pending JP2015146153A (en) 2014-02-04 2014-02-04 Print control system, and control method of print control system

Country Status (1)

Country Link
JP (1) JP2015146153A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019160278A (en) * 2018-03-07 2019-09-19 株式会社リコー Information processor, information processing system, workflow processing method and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019160278A (en) * 2018-03-07 2019-09-19 株式会社リコー Information processor, information processing system, workflow processing method and program

Similar Documents

Publication Publication Date Title
JP6291846B2 (en) Print control system, print control method, and printing apparatus
JP6521640B2 (en) INFORMATION PROCESSING APPARATUS, CONTROL METHOD THEREOF, AND PROGRAM
JP2008186160A (en) Document display apparatus and program
JP2015146153A (en) Print control system, and control method of print control system
JP2015141569A (en) Print control system and control method of the same
JP6221681B2 (en) Print control system and print control method
JP2012068835A (en) Image forming apparatus, control method of image forming apparatus, and program
JP2019105911A (en) Maintenance data providing system, server and information processing program
JP6268931B2 (en) Print control apparatus and print control system
JP6260231B2 (en) Print control system and print control method
JP6252115B2 (en) Print control system
JP6287215B2 (en) POS control system, printing apparatus, and control method of POS control system
JP2015148873A (en) Control system and control system control method
JP2015148874A (en) Print control system control method and print control system
JP2015135635A (en) Pos system and pos system control method
JP6331337B2 (en) Print control system and printing apparatus
JP6269055B2 (en) Print control system control method, print control system, and printing apparatus
JP2015090653A (en) Print control system and management server
JP2015127850A (en) Print control system and print control method
JP2015090646A (en) Printing control device and printing control system
JP2015127877A (en) Print control system and print control method
JP2015088105A (en) Printer and print control system
JP6417907B2 (en) PRINT SYSTEM, IMAGE FORMING DEVICE, SERVER, TERMINAL DEVICE, INFORMATION PRESENTATION METHOD, AND COMPUTER PROGRAM
JP2015147307A (en) Printer and printing control system
JP2015005090A (en) Information processing system, client device, server device and program