[go: up one dir, main page]

JP2015148874A - Print control system control method and print control system - Google Patents

Print control system control method and print control system Download PDF

Info

Publication number
JP2015148874A
JP2015148874A JP2014020185A JP2014020185A JP2015148874A JP 2015148874 A JP2015148874 A JP 2015148874A JP 2014020185 A JP2014020185 A JP 2014020185A JP 2014020185 A JP2014020185 A JP 2014020185A JP 2015148874 A JP2015148874 A JP 2015148874A
Authority
JP
Japan
Prior art keywords
control
printing
unit
printing apparatus
control program
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
JP2014020185A
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 JP2014020185A priority Critical patent/JP2015148874A/en
Publication of JP2015148874A publication Critical patent/JP2015148874A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To allow a print control device to manage the version of a control program of a printing device by using a configuration in which the printing device and the print control device communicate with each other via a network.SOLUTION: A control server 10 in a print control system 1 inquires the version of firmware after establishing second WebSocket connection CT 2. A printing device 12 reports the version. The control server 10 determines whether the version should be changed or not on the basis of the reported version, and transmits control data that has the printing device execute change processing to the printing device 12 if the version should be changed.

Description

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

従来、印刷制御装置の制御の下、印刷装置によって印刷媒体に印刷し、レシートを発行する印刷制御システムが知られている(例えば、特許文献1参照)。この種の印刷制御システムでは、印刷装置と、印刷制御装置とがネットワークを介して接続され、これら装置が当該ネットワークを介して通信するものがある。また、印刷装置は、ファームウェア等の制御プログラムがインストールされ、制御プログラムの機能で印刷等の各種処理を実行する。   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 printing control system, there is a printing apparatus and a printing control apparatus that are connected via a network, and these apparatuses communicate via the network. In addition, a control program such as firmware is installed in the printing apparatus, and various processes such as printing are executed by the function of the control program.

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

上述した印刷制御システムのように、印刷装置と、印刷制御装置とがネットワークを介して通信するシステムでは、印刷装置と印刷制御装置とがネットワークを介して通信する構成を用いて、印刷制御装置により、印刷装置の制御プログラムのバージョンを管理する必要が生じる場合がある。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置と印刷制御装置とがネットワークを介して通信する印刷制御システムについて、印刷装置と印刷制御装置とがネットワークを介して通信する構成を用いて、印刷制御装置により、印刷装置の制御プログラムのバージョンを管理できるようにすることを目的とする。
As in the above-described print control system, in a system in which a printing apparatus and the print control apparatus communicate via a network, a configuration in which the printing apparatus and the print control apparatus communicate via a network is used. In some cases, it is necessary to manage the version of the control program of the printing apparatus.
The present invention has been made in view of the circumstances described above, and relates to a print control system in which a printing apparatus and a print control apparatus communicate via a network, and a configuration in which the printing apparatus and the print control apparatus communicate via a network. Is used to manage the version of the control program of the printing apparatus by the print control apparatus.

上記目的を達成するために、本発明の印刷制御システムの制御方法は、印刷を制御する制御プログラムを有する印刷装置と印刷制御装置との間でネットワークを介した通信経路を確立し、前記通信経路の確立後、前記印刷制御装置から前記印刷装置に、前記制御プログラムのバージョンを問い合わせ、前記問い合わせに応じて、前記印刷装置から前記印刷装置へ前記制御プログラムのバージョン情報を通知し、通知された前記制御プログラムのバージョン情報に応じて、異なるバージョンの制御プログラムへの変更が必要か否かを前記印刷制御装置で判断し、前記異なるバージョンの制御プログラムへの変更が必要であると判断された場合、前記異なるバージョンの制御プログラムへの変更を前記印刷装置に実行させる制御データを前記印刷装置に送信し、前記制御データに基づいて前記印刷装置で前記異なるバージョンの制御プログラムへの変更を実行することを特徴とする。
本発明の構成によれば、印刷装置と、印刷制御装置との間でネットワークを介した通信経路の確立後、印刷制御装置は、印刷装置の制御プログラムのバージョンを取得し、管理することができる。
In order to achieve the above object, a printing control system control method according to the present invention establishes a communication path via a network between a printing apparatus having a control program for controlling printing and the printing control apparatus, and the communication path. After the establishment, the printing control apparatus inquires the printing apparatus about the version of the control program, and in response to the inquiry, the printing apparatus notifies the printing apparatus of the version information of the control program, and the notified In accordance with the version information of the control program, the print control device determines whether or not a change to a different version of the control program is necessary, and if it is determined that a change to the different version of the control program is necessary, Control data for causing the printing apparatus to execute a change to the control program of the different version Transmitted to the location, and executes the change to the different versions of the control program in the printing device based on the control data.
According to the configuration of the present invention, after establishing a communication path via the network between the printing apparatus and the printing control apparatus, the printing control apparatus can acquire and manage the version of the control program of the printing apparatus. .

また、前記印刷装置の電源が投入されたときに、前記印刷装置は前記印刷制御装置との間で前記通信経路を確立する。
本発明の構成によれば、電源投入時に、印刷装置により通信経路が確立されるため、ユーザーによる通信経路の確立のための作業が必要なく、また、電源投入に応じた通信経路の確立後、印刷制御装置により、必要に応じて、印刷装置の制御プログラムのバージョンを変更できる。
Further, when the printing apparatus is powered on, the printing apparatus establishes the communication path with the print control apparatus.
According to the configuration of the present invention, since the communication path is established by the printing apparatus when the power is turned on, there is no need for a user to establish a communication path, and after establishing the communication path in response to power-on, The print control apparatus can change the version of the control program of the printing apparatus as necessary.

また、前記問い合わせがあったときに、前記印刷装置で前記異なるバージョンの制御プログラムへの変更中である場合は、前記異なるバージョンの制御プログラムのバージョン情報を通知し、前記印刷制御装置は、通知された前記異なるバージョンの制御プログラムのバージョン情報に応じて、前記異なるバージョンの制御プログラムへの変更を継続して実行させるか否かを判断し、前記異なるバージョンの制御プログラムへの変更を継続して実行させる場合はそのことを通知する。
本発明の構成によれば、印刷制御装置は、印刷装置が、バージョンの異なる制御プログラムに変更中である場合に、バージョンの変更を継続して実行さるか否かを判断し、継続して実行させると判断した場合に、そのことを印刷装置に通知して、印刷装置に継続してバージョンの変更を実行させることができる。
Further, when the inquiry is made, if the printing apparatus is changing to the different version of the control program, the version information of the different version of the control program is notified, and the print control apparatus is notified. Further, according to the version information of the different version of the control program, it is determined whether or not to continuously execute the change to the different version of the control program, and the change to the different version of the control program is continuously executed. If so, notify that.
According to the configuration of the present invention, when the printing apparatus is changing to a control program with a different version, the printing control apparatus determines whether or not to continue to change the version and continues to execute it. If it is determined that the printing apparatus is to be used, this can be notified to the printing apparatus, and the printing apparatus can continue to execute version changes.

また、前記印刷装置と前記印刷制御装置との間で確立された前記通信経路は、非同期の双方向通信を行う。
本発明の構成によれば、印刷装置と、印刷制御装置とは、任意のタイミングで、バージョンの更新に係るデータの送受信を実行できる。
The communication path established between the printing apparatus and the print control apparatus performs asynchronous bidirectional communication.
According to the configuration of the present invention, the printing apparatus and the printing control apparatus can execute transmission / reception of data related to version update at an arbitrary timing.

また、本発明の印刷制御システムは、印刷を行う印刷部、前記印刷部を制御する制御プログラムを動作させる印刷制御部、前記制御プログラムのバージョン情報を取得して前記制御プログラムを管理する制御プログラム管理部、及び通信を行う通信部を有する印刷装置と、前記印刷装置の前記通信部と通信経路を確立して通信を行う接続部、前記印刷装置の前記制御プログラムのバージョン情報を問い合わせる第1のデータ及び前記第1のデータを送信したときに受信した情報に基づいて異なるバージョンの制御プログラムへの変更を要求する第2のデータを前記接続部に送信させる制御部を有する印刷制御装置と、を備えることを特徴とする。
本発明の構成によれば、印刷装置と、印刷制御装置との間でネットワークを介した通信経路の確立後、印刷制御装置は、印刷装置の制御プログラムのバージョンを取得し、管理することができる。
The printing control system of the present invention includes a printing unit that performs printing, a printing control unit that operates a control program that controls the printing unit, and control program management that acquires version information of the control program and manages the control program And a printing device having a communication unit for performing communication, a connection unit for establishing communication with the communication unit of the printing device and performing communication, and first data for inquiring version information of the control program of the printing device And a print control apparatus having a control unit that causes the connection unit to transmit second data that requests a change to a different version of the control program based on information received when the first data is transmitted. It is characterized by that.
According to the configuration of the present invention, after establishing a communication path via the network between the printing apparatus and the printing control apparatus, the printing control apparatus can acquire and manage the version of the control program of the printing apparatus. .

また、前記印刷装置の前記通信部と前記印刷制御装置の前記接続部とは、前記印刷装置の電源が投入されたときに、前記通信経路を確立する。
本発明の構成によれば、電源投入時に、印刷装置により通信経路が確立されるため、ユーザーによる通信経路の確立のための作業が必要なく、また、電源投入に応じた通信経路の確立後、印刷制御装置により、必要に応じて、印刷装置の制御プログラムのバージョンを変更できる。
The communication unit of the printing apparatus and the connection unit of the print control apparatus establish the communication path when the printing apparatus is powered on.
According to the configuration of the present invention, since the communication path is established by the printing apparatus when the power is turned on, there is no need for a user to establish a communication path, and after establishing the communication path in response to power-on, The print control apparatus can change the version of the control program of the printing apparatus as necessary.

また、前記印刷装置の前記制御プログラム管理部は、前記印刷制御部で動作する前記制御プログラムを異なるバージョンの制御プログラムに変更する。
本発明の構成によれば、印刷装置は、制御プログラム管理部の機能により、制御プログラムのバージョンを変更可能である。
Further, the control program management unit of the printing apparatus changes the control program operating in the print control unit to a different version of the control program.
According to the configuration of the present invention, the printing apparatus can change the version of the control program by the function of the control program management unit.

また、前記印刷装置の前記制御プログラム管理部は、前記印刷制御装置の前記接続部で送信される前記第1のデータ及び前記第2のデータを取得し、前記第2のデータを取得したときに前記印刷制御部で動作する前記制御プログラムを異なるバージョンの制御プログラムに変更する。
本発明の構成によれば、印刷装置は、制御プログラム管理部の機能により、印刷制御装置で送信された第2のデータに基づいて、制御プログラムのバージョンの変更を実行できる。
The control program management unit of the printing apparatus acquires the first data and the second data transmitted from the connection unit of the print control apparatus, and acquires the second data. The control program operating in the print control unit is changed to a different version control program.
According to the configuration of the present invention, the printing apparatus can change the version of the control program based on the second data transmitted from the printing control apparatus by the function of the control program management unit.

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

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る印刷制御システム1の構成を示す図である。
図1に示すように、印刷制御システム1は、制御サーバー10(印刷制御装置)を備え、制御サーバー10にインターネット等のネットワークGNを介して複数の店舗システム11と接続する。また、複数の管理装置14が、ネットワークGNに接続する。
店舗システム11は、スーパーマーケットや、コンビニエンスストア、デパート、飲食店等の店舗に用いるシステムである。店舗システム11は、店舗に来店した顧客に対してレシートを発行する機能を備える。
店舗システム11は、印刷媒体に印刷を行う印刷機能を有し、レシートを発行可能な1又は複数の印刷装置12を備える。印刷装置12は、店舗に構築されたローカルエリアネットワークLNに接続する。ローカルエリアネットワークLNは、ネットワークルーターや、モデム等の通信機器を含んで構成されたネットワーク通信制御装置13を接続する。印刷装置12は、ネットワーク通信制御装置13を介して、ネットワークGNにアクセスする。
店舗システム11Aは、スーパーマーケットSMに用いるシステムである。スーパーマーケットSMは、複数のレジカウンターRCが設けられ、レジカウンターRCは、印刷装置12が設けられる。店舗システム11Aの印刷装置12は、ローカルエリアネットワークLNに接続し、ネットワーク通信制御装置13を介して、ネットワークGNにアクセスする。
印刷制御システム1では、店舗システム11の印刷装置12が、制御サーバー10との間で通信経路を確立し、制御サーバー10と通信する。そして、印刷装置12は、制御サーバー10の制御に従って、印刷に係る処理を実行する。
管理装置14は、後述するように1又は複数の店舗システム11を管理する装置である。例えば、管理装置14は、店舗を運営する企業の本社に設けられ、当該店舗を運営する企業のグループに属する複数の店舗に設けられた店舗システム11を管理する。後述するように、管理装置14は、制御サーバー10の機能を用いて、管理する店舗システム11の所定の印刷装置12を制御して、当該所定の印刷装置12に印刷を実行させることができる。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
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 apparatus), and is connected to the plurality of store systems 11 via the network GN such as the Internet. A plurality of management apparatuses 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 has a printing function for printing on a print medium, and includes one or a plurality of printing apparatuses 12 that can issue receipts. The printing apparatus 12 is connected to a local area network LN built in the store. The local area network LN connects a network communication control device 13 including a network router and a communication device such as a modem. The printing device 12 accesses the network GN via the network communication control device 13.
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. 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, 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, the printing apparatus 12 executes processing related to printing in accordance with the control of the control server 10.
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 can control a predetermined printing device 12 of the store system 11 to be managed by using the function of the control server 10 and cause the predetermined printing device 12 to execute printing.

図2は、印刷制御システム1における制御サーバー10と、印刷装置12との間に確立される通信経路を示す図である。
図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に印刷を実行させることができる。
FIG. 2 is a diagram illustrating a communication path established between the control server 10 and the printing apparatus 12 in the print control system 1.
As illustrated in FIG. 2, a WebSocket connection CT (communication path) for performing communication using WebSocket is established between the control server 10 of the print control system 1 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 occurs.
The WebSocket connection CT is a logical communication path for transmitting and receiving data between the printing apparatus 12 connected by the connection and the control server 10 according to the WebSocket protocol and procedure. 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 asynchronously transmit data using the WebSocket connection CT. Can be sent and received. 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 an 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 apparatus 14 can transmit print control data to a predetermined printing apparatus 12 via the control server 10 and cause the predetermined printing apparatus 12 to execute printing.

本実施形態において、制御サーバー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. The control server 10 may be in any form as long as it can execute various processes 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に接続される。このため、印刷装置12は、制御サーバー10が提供するサービスを用いて、制御サーバー10の制御で、各種処理を実行できる。従って、店舗システム11を構築する管理者は、店舗システム11の構築に際し、印刷装置12を所望の場所に設置し、印刷装置12をネットワークGNに接続する、という簡易な作業を行えばよい。これにより、制御サーバー10が提供するサービスを用いて、印刷装置12に所望の処理、例えば、レシートの発行に係る処理を実行させることが可能となる。
また、管理装置14は、制御サーバー10にアクセスし、制御サーバー10が提供するサービスを用いることによって、制御サーバー10に接続された印刷装置12を制御できる。従って、店舗システム11を構築する管理者は、1又は複数の店舗システム11を管理する管理装置14について、制御サーバー10にアクセスし、制御サーバー10通信する機能を実装すればよい。このため、店舗システム11の構築の簡易化、及び、低コスト化を図ることが可能となる。
また、制御サーバー10に、異なる店舗システム11の印刷装置12がWebSocketコネクションCTで接続されるため、制御サーバー10は、複数の店舗システム11に接続された複数の印刷装置12を管理できる。また、制御サーバー10は、複数の店舗システム11に接続された複数の印刷装置12を動作させることが可能となる。
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.
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 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. For this reason, the printing apparatus 12 can execute various processes under the control of the control server 10 using services provided by the control server 10. Therefore, an administrator who constructs the store system 11 may perform a simple operation of installing the printing apparatus 12 at a desired location and connecting the printing apparatus 12 to the network GN when constructing the store system 11. 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.
The management device 14 can control the printing device 12 connected to the control server 10 by accessing the control server 10 and using a service provided by the control server 10. Therefore, an administrator who constructs the store system 11 may implement a function of accessing the control server 10 and communicating with the control server 10 for the management device 14 that manages one or a plurality of store systems 11. For this reason, it is possible to simplify the construction of the store system 11 and reduce the cost.
Further, since the printing devices 12 of different store systems 11 are connected to the control server 10 by the WebSocket connection CT, the control server 10 can manage a plurality of printing devices 12 connected to the plurality of store systems 11. Further, the control server 10 can operate a plurality of printing apparatuses 12 connected to a plurality of store systems 11.

図3は、本実施形態に係る印刷装置12、制御サーバー10、及び、管理装置14の機能的構成を示すブロック図である。
図3に示すように、印刷装置12は、装置制御部12Sと、第1通信部16と、第2通信部20(通信部)と、印刷部18と、印刷装置記憶部19と、を備える。
第1通信部16、及び、第2通信部20の機能については後述する。
装置制御部12Sは、CPUや、ROM、RAM、その他の周辺回路等を備える。装置制御部12Sは、CPUが、ファームウェア等の制御プログラムを読み出して実行する等して、印刷装置12を制御する。装置制御部12Sは、機能ブロックとして、印刷制御部17と、制御プログラム管理部21とを備える。制御プログラム管理部21については後述する。印刷制御部17は、印刷装置12にインストールされたファームウェアを含むプログラムの機能により、印刷部18を制御する。印刷制御部17の機能については、後に詳述する。
印刷部18は、印刷媒体に印刷する印刷機構、印刷媒体を搬送する搬送機構、印刷媒体を切断する切断機構等の印刷に係る機構、及び、各機構の制御に係る制御基板等を備える。
印刷装置記憶部19は、不揮発性メモリーを備え、各種データを記憶する。印刷装置記憶部19が記憶するデータについては後述する。
以下の説明では、印刷制御部17、及び制御プログラム管理部21を区別せずに表現する場合、これら機能ブロックを総称して「機能部」と表現する。
FIG. 3 is a block diagram showing a functional configuration of the printing apparatus 12, the control server 10, and the management apparatus 14 according to the present embodiment.
As illustrated in FIG. 3, the printing apparatus 12 includes an apparatus control unit 12 </ b> S, a first communication unit 16, a second communication unit 20 (communication unit), a printing unit 18, and 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 device control unit 12S includes a CPU, ROM, RAM, other peripheral circuits, and the like. The apparatus control unit 12S controls the printing apparatus 12 by the CPU reading and executing a control program such as firmware. The apparatus control unit 12S includes a print control unit 17 and a control program management unit 21 as functional blocks. The control program management unit 21 will be described later. The print control unit 17 controls the printing unit 18 by the function of a program including firmware installed in the printing apparatus 12. The function of the print control unit 17 will be described in detail later.
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 print control unit 17 and the control program management unit 21 are expressed without distinction, these functional blocks are collectively referred to as “functional unit”.

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

また、管理装置14は、管理装置制御部40と、通信インターフェース41と、表示部42と、を備える。
管理装置制御部40は、CPUや、ROM、RAM、その他の周辺回路等を備え、管理装置14を制御する。管理装置制御部40は、機能ブロックとして、ブラウザー実行部40aを備える。ブラウザー実行部40aは、ウェブブラウザーを実行することによって処理を実行する機能ブロックである。
通信インターフェース41は、管理装置制御部40の制御で、コネクションにより制御サーバー10とHTTP通信を行う。
表示部42は、液晶表示パネル等の表示パネルを備え、管理装置制御部40の制御で、表示パネルに画像を表示する。
In addition, 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 control unit 40 includes a browser execution unit 40a as a functional block. The browser execution unit 40a is a functional block that executes processing by executing a web browser.
The communication interface 41 performs HTTP communication with the control server 10 through a connection under the control of the management apparatus 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に対応して複数のWebSocketコネクションCTを確立し、印刷装置12とWebSocketコネクションCTでWebSocket通信する。
また、図3では、制御サーバー10と、制御サーバー10に接続された1つの管理装置14との関係を示す。制御サーバー10に、複数の管理装置14が接続される場合は、制御サーバー10は、複数の管理装置14に対応して複数のコネクションを確立し、管理装置14との間で当該コネクションにより通信する。
FIG. 3 shows the relationship between the control server 10 and one printing apparatus 12 connected to the control server 10. When a plurality of printing apparatuses 12 are connected to the control server 10, the control server 10 establishes a plurality of WebSocket connections CT corresponding to the plurality of printing apparatuses 12, and performs WebSocket communication with the printing apparatus 12 and the WebSocket connection CT. To do.
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 establishes a plurality of connections corresponding to the plurality of management devices 14 and communicates with the management device 14 through the connections. .

次に、印刷装置12の電源投入時における、印刷装置12、及び、制御サーバー10の動作について説明する。
図4は、印刷装置12に電源が投入された後の印刷装置12、及び、制御サーバー10の動作を示すフローチャートであり、(A)は印刷装置12の動作を、(B)は制御サーバー10の動作を示す。
図4では、印刷装置12の電源の投入に応じて、第1WebSocketコネクションCT1を確立するときの各装置の動作を説明し、その次に、図5で、第2WebSocketコネクションCT2を確立するときの各装置の動作を説明する。
なお、図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.
FIG. 4 illustrates the operation of each apparatus when establishing the first WebSocket connection CT1 in response to power-on of the printing apparatus 12. Next, FIG. 5 illustrates each operation when establishing the second WebSocket connection CT2. The operation of the apparatus will be described.
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が備える印刷制御部17、制御プログラム管理部21、及び、制御サーバー10が備える印刷データ処理部29、制御プログラム更新部30の機能は、例えば、以下のようにして実現される。
これら機能ブロックは、オブジェクトである。オブジェクトは、オブジェクト指向プログラミングで生成されるインスタンス、すなわち、データ及びメソッドの集合として定義された機能ブロックである。そして、これら機能ブロックの機能は、機能ブロックに実装されたメソッドが呼び出されることによって実現される。
また例えば、これら機能ブロックの機能は、アプリケーションがCPU等のハードウェアによって読み出され実行されることによって実現される。1つのアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。また、1つのアプリケーションにより複数の機能ブロックの機能が実現される構成であってもよい。また、複数のアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。
機能ブロックは、機能をブロックとして表現したものであり、特定のアプリケーションや、ハードウェア等を意味するものではない。
In the following description, the functions of the print control unit 17, the control program management unit 21, and the print data processing unit 29 and the control program update unit 30 provided in the control server 10 are as follows, for example. Realized.
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.
A functional block represents a function as a block, and does not mean a specific application, hardware, or the like.

図4(A)に示すように、印刷装置12の電源が投入されると(ステップSX1)、印刷制御部17は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する第1通信先情報データを取得する(ステップSA1)。
第1通信先情報データは、WebSocketコネクションCTである第1WebSocketコネクションCT1を確立する際に、アクセスする制御サーバー10のアドレス(ドメイン名、IPアドレス、パス名、ポート情報等。)を示すデータである。WebSocketでは、WebSocketコネクションCTの確立時に、クライアント(本例では、印刷装置12)は、サーバー(本例では、制御サーバー10)に対して、HTTP(Hypertext Transfer Protocol)に基づくハンドシェイクを行う。ハンドシェイクで、クライアントは、サーバーのアドレスが含まれるメッセージ等を送信するが、第1通信先情報データは、アクセス先のアドレス等のWebSocketコネクションCTを確立に用いる情報を含むデータである。
印刷装置12の機能部に応じて、WebSocketコネクションCTを確立するときのアクセス先のアドレスが異なる。本例では、印刷装置12は、印刷制御部17と制御プログラム管理部21との2つの機能部を有する。そして、印刷制御部17が、第1WebSocketコネクションCT1を確立するときにアクセスするアドレスと、制御プログラム管理部21が、第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 printing control unit 17 accesses the printing apparatus storage unit 19, and the first printing apparatus storage unit 19 stores the first. Communication destination information data is acquired (step SA1).
The first communication destination information data is data indicating 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, which is the WebSocket connection CT. . In WebSocket, when a WebSocket connection CT is established, the client (printing apparatus 12 in this example) performs handshake based on HTTP (Hypertext Transfer Protocol) to the server (control server 10 in this example). In the handshake, the client transmits a message including the server address, and the first communication destination information data is data including information used for establishing the WebSocket connection CT such as an 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 includes two functional units, a print control unit 17 and a control program management unit 21. The address accessed when the print control unit 17 establishes the first WebSocket connection CT1 is different from the address accessed when the control program management unit 21 establishes the second WebSocket connection CT2. 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. .

次いで、印刷制御部17は、第1通信先情報データが示すアドレスに基づいて制御サーバー10にアクセスする。そして、印刷制御部17は、制御サーバー10の印刷データ処理部29と通信してコネクションの確立に必要な情報を送受信し、第1通信部16と第1接続部26との間に、第1WebSocketコネクションCT1を確立する(ステップSA2、ステップSB1)。印刷装置12の印刷制御部17は、制御サーバー10からの要求を受けることなく、印刷装置12の電源が投入されたことをトリガーとして第1WebSocketコネクションCT1を確立する。
第1通信部16、及び、第1接続部26は、WebSocketの規格、手続きに従ってデータの送受信を行うWebSocketインターフェースである。これら機能ブロックは、例えば、WebSocketのSocketライブラリーを用いて生成される。
第1通信部16は、印刷制御部17から受信したデータについて、WebSocketの規格に従って処理を行い、WebSocketの手続きで第1WebSocketコネクションCT1によりデータを送信する機能を有する。また、第1通信部16は、第1WebSocketコネクションCT1で制御サーバー10から受信したデータについて、WebSocketに従った処理を行って、印刷制御部17に送信する機能を有する。第1接続部26、第2通信部20、第2接続部27についても同様である。
第1WebSocketコネクションCT1の確立に伴って、印刷装置12、及び、制御サーバー10は、非同期で、双方向通信できる。制御サーバー10は、クライアントとしての印刷装置12からリクエストを受けることなく、第1WebSocketコネクションCT1によりプッシュ送信で印刷装置12にデータを送信できる。同様に、印刷装置12は、第1WebSocketコネクションCT1によりプッシュ送信で制御サーバー10にデータを送信できる。
また、第1WebSocketコネクションCT1の確立により、印刷装置12の印刷制御部17と、制御サーバー10の印刷データ処理部29との間で、第1WebSocketコネクションCT1に基づく第1機能部間通信経路KT1が確立する。第1機能部間通信経路KT1は、印刷制御部17と、印刷データ処理部29との間で通信するデータを送受信する論理的な通信経路である。印刷制御部17と印刷データ処理部29とは、第1機能部間通信経路KT1により、非同期な双方向通信を行う。第1機能部間通信経路KT1により行われる非同期な双方向通信については後述する。
Next, the print control unit 17 accesses the control server 10 based on the address indicated by the first communication destination information data. The print control unit 17 communicates with the print data processing unit 29 of the control server 10 to transmit / receive information necessary for establishing a connection, and the first WebSocket is transmitted between the first communication unit 16 and the first connection unit 26. Connection CT1 is established (step SA2, step SB1). The print control unit 17 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 print control unit 17 in accordance with 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 from the control server 10 through the first WebSocket connection CT1 and transmitting the data to the print control unit 17. The same applies to the first connection unit 26, the second communication unit 20, and the second connection unit 27.
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, the establishment of the first WebSocket connection CT1 establishes the first functional unit communication path KT1 based on the first WebSocket connection CT1 between the print control unit 17 of the printing apparatus 12 and the print data processing unit 29 of the control server 10. To do. The first inter-function unit communication path KT1 is a logical communication path for transmitting and receiving data communicated between the print control unit 17 and the print data processing unit 29. The print control unit 17 and the print data processing unit 29 perform asynchronous two-way communication via the first functional unit communication path KT1. Asynchronous bidirectional communication performed by the first functional unit communication path KT1 will be described later.

次いで、印刷制御部17は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する印刷装置識別情報データを取得する(ステップSA3)。印刷装置識別情報データは、印刷装置12の識別情報(以下、「印刷装置識別情報」という。)を示すデータである。印刷装置識別情報は、例えば、印刷装置12の製造段階で、印刷装置12に割り当てられるシリアル番号である。
次いで、印刷制御部17は、印刷装置識別情報データを第1通信部16に送信する(ステップSA4)。
第1通信部16は、受信した印刷装置識別情報データを、第1WebSocketコネクションCT1で、制御サーバー10に送信する(ステップSA5)。
Next, the print control unit 17 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 print control unit 17 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は、受信した印刷装置識別情報データを印刷データ処理部29に送信する(ステップSB3)。
印刷データ処理部29は、制御サーバー記憶部31が記憶するコネクション管理データベースにアクセスする(ステップSB4)。コネクション管理データベースは、制御サーバー10と接続する印刷装置12との間で確立しているWebSocketコネクションCTについて、WebSocketコネクションCTの識別情報であるコネクション識別情報と、印刷装置12の印刷装置識別情報とを対応付けて記憶するデータベースである。次いで、印刷データ処理部29は、コネクション管理データベースに1件のレコードを生成する。そして、印刷データ処理部29は、生成したレコードにおいて、ステップSB1で確立したWebSocketコネクションCT(本例では、第1WebSocketコネクションCT1)のコネクション識別情報と、受信した印刷装置識別情報データが示す印刷装置識別情報とを対応付けて記憶する(ステップSB5)。印刷データ処理部29は、WebSocketコネクションCTが確立したときに、既に確立しているWebSocketコネクションCTのコネクション識別情報と異なる値のコネクション識別情報を生成する。ステップSB5の処理により、WebSocketコネクションCTと、印刷装置12との対応関係が管理される。
このように、印刷装置12の印刷制御部17は、制御サーバー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 print data processing unit 29 (step SB3).
The print data processing unit 29 accesses the connection management database stored in the control server storage unit 31 (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 print data processing unit 29 generates one record in the connection management database. Then, in the generated record, the print data processing unit 29 connects the connection identification information of the WebSocket connection CT (in this example, the first WebSocket connection CT1) established in Step SB1 and the printing device identification indicated by the received printing device identification information data. Information is stored in association with each other (step SB5). When the WebSocket connection CT is established, the print data 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 print control unit 17 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. 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.

次に、印刷装置12の電源の投入に応じて第2WebSocketコネクションCT2を確立するときの各装置の動作について説明する。
図5は、電源投入後の第2WebSocketコネクションCT2の確立時の印刷装置12、及び、制御サーバー10の動作を示すフローチャートである。(A)は印刷装置12の動作を、(B)は制御サーバー10の動作を示す。
図5(A)に示すように、印刷装置12の電源が投入されると(ステップSY1)、制御プログラム管理部21は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する第2通信先情報データを取得する(ステップSC1)。
第2通信先情報データは、第2WebSocketコネクションCT2を確立する際に、アクセスする制御サーバー10のアドレスを示す情報、その他の必要な情報を含むデータである。
次いで、制御プログラム管理部21は、第2通信先情報データが示すアドレスに基づいて制御サーバー10にアクセスする。そして、制御プログラム管理部21は、制御サーバー10の制御プログラム更新部30と通信してコネクションの確立に用いる情報を送受信し、第2通信部20と第2接続部27との間に、第2WebSocketコネクションCT2を確立する(ステップSC2、ステップSD1)。印刷装置12の制御プログラム管理部21は、制御サーバー10からの要求を受けることなく、印刷装置12の電源が投入されたことをトリガーとして第2WebSocketコネクションCT2を確立する。
第2WebSocketコネクションCT2の確立により、印刷装置12の制御プログラム管理部21と、制御サーバー10の制御プログラム更新部30との間で、第2WebSocketコネクションCT2に基づく第2機能部間通信経路KT2が確立する。第2機能部間通信経路KT2は、制御プログラム管理部21と、制御プログラム更新部30との間で通信するデータを送受信する論理的な通信経路である。制御プログラム管理部21と制御プログラム更新部30とは、第2機能部間通信経路KT2により、非同期な双方向通信を行う。第2機能部間通信経路KT2により行われる非同期な双方向通信については後述する。
Next, the operation of each device when establishing the second WebSocket connection CT2 in response to power-on of the printing device 12 will be described.
FIG. 5 is a flowchart showing the operation of the printing apparatus 12 and the control server 10 when the second WebSocket connection CT2 is established after the power is turned on. (A) shows the operation of the printing apparatus 12, and (B) shows the operation of the control server 10.
As shown in FIG. 5A, when the printing apparatus 12 is turned on (step SY1), the control program management unit 21 accesses the printing apparatus storage unit 19, and the printing apparatus storage unit 19 stores it. 2. Acquire communication destination information data (step SC1).
The second communication destination information data is data including information indicating the address of the control server 10 to be accessed when establishing the second WebSocket connection CT2, and other necessary information.
Next, the control program management unit 21 accesses the control server 10 based on the address indicated by the second communication destination information data. The control program management unit 21 communicates with the control program update unit 30 of the control server 10 to transmit and receive information used for establishing a connection, and the second WebSocket is transmitted between the second communication unit 20 and the second connection unit 27. Connection CT2 is established (step SC2, step SD1). The control program management unit 21 of the printing apparatus 12 establishes the second WebSocket connection CT <b> 2 by receiving the request from the control server 10 as a trigger when the printing apparatus 12 is turned on.
By establishing the second WebSocket connection CT2, a communication path KT2 between the second functional units based on the second WebSocket connection CT2 is established between the control program management unit 21 of the printing apparatus 12 and the control program update unit 30 of the control server 10. . The second inter-function unit communication path KT2 is a logical communication path for transmitting and receiving data communicated between the control program management unit 21 and the control program update unit 30. The control program management unit 21 and the control program update unit 30 perform asynchronous two-way communication through the second functional unit communication path KT2. Asynchronous bidirectional communication performed by the second functional unit communication path KT2 will be described later.

次いで、制御プログラム管理部21は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する印刷装置識別情報データを取得する(ステップSC3)。次いで、制御プログラム管理部21は、印刷装置識別情報データを第2通信部20に送信する(ステップSC4)。第2通信部20は、受信した印刷装置識別情報データを、第2WebSocketコネクションCT2で、制御サーバー10に送信する(ステップSC5)。
図5(B)に示すように、制御サーバー10の第2接続部27は、第2WebSocketコネクションCT2で、印刷装置識別情報データを受信する(ステップSD2)。次いで、第2接続部27は、受信した印刷装置識別情報データを制御プログラム更新部30に送信する(ステップSD3)。制御プログラム更新部30は、制御サーバー記憶部31が記憶するコネクション管理データベースにアクセスする(ステップSD4)。次いで、制御プログラム更新部30は、コネクション管理データベースで、ステップSD1で確立したWebSocketコネクションCT(本例では、第2WebSocketコネクションCT2)のコネクション識別情報と、受信した印刷装置識別情報データが示す印刷装置識別情報とを対応付けて記憶する(ステップSD5)。
Next, the control program management 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 SC3). Next, the control program management unit 21 transmits the printing apparatus identification information data to the second communication unit 20 (step SC4). The second communication unit 20 transmits the received printing device identification information data to the control server 10 through the second WebSocket connection CT2 (step SC5).
As shown in FIG. 5B, the second connection unit 27 of the control server 10 receives the printing apparatus identification information data through the second WebSocket connection CT2 (step SD2). Next, the second connection unit 27 transmits the received printing apparatus identification information data to the control program update unit 30 (step SD3). The control program update unit 30 accesses the connection management database stored in the control server storage unit 31 (step SD4). Next, the control program update unit 30 uses the connection management database to connect the connection identification information of the WebSocket connection CT (in this example, the second WebSocket connection CT2) established in Step SD1, and the printing apparatus identification indicated by the received printing apparatus identification information data. Information is stored in association with each other (step SD5).

次いで、制御プログラム更新部30は、第2接続部27を制御して、印刷装置12のファームウェアのバージョンを問い合わせる所定フォーマットのデータ(第1のデータ。以下、「バージョン要求データ」という。)を第2WebSocketコネクションCT2で印刷装置12に送信する(ステップSD6)。
図5(A)に示すように、印刷装置12の制御プログラム管理部21は、第2通信部20を制御して、第2WebSocketコネクションCT2でバージョン要求データを受信する(ステップSC6)。次いで、制御プログラム管理部21は、ファームウェアのバージョンを取得し、取得したバージョンを示す情報を含むデータ(以下、「バージョン通知データ」という。)を送信する(ステップSC7)。ファームウェアのバージョンを示す情報は、所定の記憶領域に記憶される。
バージョン通知データの送信後、制御プログラム管理部21は、当該データに基づく応答を制御サーバー10から受信したか否かを監視する(ステップSC8)。
Next, the control program update unit 30 controls the second connection unit 27 to obtain data in a predetermined format (first data; hereinafter referred to as “version request data”) for inquiring about the firmware version of the printing apparatus 12. 2 Transmit to the printing apparatus 12 using the WebSocket connection CT2 (step SD6).
As shown in FIG. 5A, the control program management unit 21 of the printing apparatus 12 controls the second communication unit 20 and receives the version request data through the second WebSocket connection CT2 (step SC6). Next, the control program management unit 21 acquires the firmware version, and transmits data including information indicating the acquired version (hereinafter referred to as “version notification data”) (step SC7). Information indicating the version of the firmware is stored in a predetermined storage area.
After transmitting the version notification data, the control program management unit 21 monitors whether a response based on the data is received from the control server 10 (step SC8).

図5(B)に示すように、制御プログラム更新部30は、第2接続部27を制御して、バージョン通知データを受信する(ステップSD7)。次いで、制御プログラム更新部30は、制御サーバー記憶部31が記憶するバージョン更新データベースを参照する(ステップSD8)。
バージョン更新データベースとは、制御サーバー10と接続する印刷装置12について、印刷装置識別情報と、ユーザーが指定したファームウェアのバージョンを示す情報と、を対応付けて記憶するデータベースである。ユーザーは、バージョン更新データベースのレコードの内容を書き換えることが可能であり、書き換えることにより、印刷装置識別情報と、ファームウェアのバージョンとの対応関係を設定できる。書き換えは、例えば、ユーザーによる所定のユーザーインターフェースに対する情報の入力に基づいて、管理装置14からの指示によって行われる。
As shown in FIG. 5B, the control program update unit 30 controls the second connection unit 27 to receive the version notification data (step SD7). Next, the control program update unit 30 refers to the version update database stored in the control server storage unit 31 (step SD8).
The version update database is a database that stores printing device identification information and information indicating the firmware version designated by the user in association with each other for the printing device 12 connected to the control server 10. The user can rewrite the contents of the record in the version update database, and can set the correspondence between the printing apparatus identification information and the firmware version. The rewriting is performed by an instruction from the management device 14 based on, for example, information input to a predetermined user interface by the user.

次いで、制御プログラム更新部30は、バージョン更新データベースで、ステップSD2で取得した印刷装置識別情報データが示す印刷装置識別情報と対応付けて記憶された情報が示すバージョンを取得する(ステップSD9)。
次いで、制御プログラム更新部30は、印刷装置12のファームウェアのバージョンの変更が必要か否か判断する(ステップSD10)。ステップSD10で、制御プログラム更新部30は、ステップSD7で受信したバージョン通知データが示すバージョンと、ステップSD9で取得したバージョンとが一致する場合は、バージョンの変更が必要ないと判断する。一方、一致しない場合、制御プログラム更新部30は、バージョンの変更が必要であると判断する。
バージョンの変更が必要でない場合(ステップSD10:NO)、制御プログラム更新部30は、以下の処理を行う。制御プログラム更新部30は、第2接続部27を制御して、第2WebSocketコネクションCT2で、ファームウェアのバージョンの変更が必要でない旨を示すデータ(以下、「バージョン維持通知データ」という。)を送信する(ステップSD11)。
バージョンの変更が必要である場合(ステップSD10:YES)、制御プログラム更新部30は、バージョンの変更を実行させる制御データ(第2のデータ)を生成する(ステップSD12)。制御サーバー記憶部31は、バージョンに応じて、バージョンに対応するプログラムファイルを記憶し、ステップSD10は、ステップSD9で取得したバージョンに対応するプログラムファイルに基づいて制御データを生成する。次いで、制御プログラム更新部30は、第2接続部27を制御して、第2WebSocketコネクションCT2で、制御データを印刷装置12に送信する(ステップSD13)。
Next, the control program update unit 30 acquires the version indicated by the information stored in association with the printing apparatus identification information indicated by the printing apparatus identification information data acquired in step SD2 in the version update database (step SD9).
Next, the control program update unit 30 determines whether it is necessary to change the firmware version of the printing apparatus 12 (step SD10). In step SD10, if the version indicated by the version notification data received in step SD7 matches the version acquired in step SD9, the control program update unit 30 determines that no version change is necessary. On the other hand, if they do not match, the control program update unit 30 determines that a version change is necessary.
When the version change is not necessary (step SD10: NO), the control program update unit 30 performs the following processing. The control program update unit 30 controls the second connection unit 27 to transmit data indicating that the firmware version does not need to be changed (hereinafter referred to as “version maintenance notification data”) through the second WebSocket connection CT2. (Step SD11).
When the version change is necessary (step SD10: YES), the control program update unit 30 generates control data (second data) for executing the version change (step SD12). The control server storage unit 31 stores a program file corresponding to the version according to the version, and step SD10 generates control data based on the program file corresponding to the version acquired in step SD9. Next, the control program update unit 30 controls the second connection unit 27 and transmits control data to the printing apparatus 12 through the second WebSocket connection CT2 (step SD13).

図5(A)に示すように、ステップSC8で制御サーバー10から応答があった場合(ステップSC8:YES)、印刷装置12の制御プログラム管理部21は、応答したデータが制御データであるか否かを判別する(ステップSC9)。制御データではない場合(ステップSC9:NO)、制御プログラム管理部21は、処理を終了する。
一方、制御データである場合(ステップSC9:YES)、制御プログラム管理部21は、制御データに基づいて、対応するバージョンのファームウェアをインストールし、バージョンの変更を実行する(ステップSC10)。
以上のように、印刷装置12は、電源の投入をトリガーとして、第2WebSocketコネクションCT2を確立する。当該コネクションの確立後、印刷装置12は、当該コネクションで、制御サーバー10と通信し、ファームウェアのバージョンが、ユーザーが指定したバージョンでない場合、ファームウェアのバージョンを対応するバージョンへと変更する。このため、電源投入後、自動で、印刷装置12のファームウェアのバージョンが、ユーザーの指定したバージョンとなる。ユーザーは、ファームウェアのバージョンを変更するための作業を実行する必要がなく、また、専門知識も必要ない。
As shown in FIG. 5A, when there is a response from the control server 10 in step SC8 (step SC8: YES), the control program management unit 21 of the printing apparatus 12 determines whether the responded data is control data. Is determined (step SC9). If it is not control data (step SC9: NO), the control program management unit 21 ends the process.
On the other hand, if it is control data (step SC9: YES), the control program management unit 21 installs a corresponding version of firmware based on the control data, and executes a version change (step SC10).
As described above, the printing apparatus 12 establishes the second WebSocket connection CT2 using power-on as a trigger. After the connection is established, the printing apparatus 12 communicates with the control server 10 through the connection, and when the firmware version is not the version specified by the user, the printing apparatus 12 changes the firmware version to the corresponding version. For this reason, after the power is turned on, the firmware version of the printing apparatus 12 automatically becomes the version specified by the user. The user does not need to perform a task to change the firmware version, and does not need any expertise.

以上、印刷装置12の電源投入時に、印刷装置12でのファームウェアのバージョンの変更が行われる場合の処理について説明した。
一方、ファームウェアのバージョンの変更が行われるタイミングは、印刷装置12の電源投入時に限らない。例えば、印刷装置12の電源が投入された後、制御サーバー10とWebSocketコネクションCTが確立している状態のときに、制御サーバー10が、管理装置14からの指示や、所定の条件の成立等をトリガーとして、バージョンを問い合わせ、問い合わせに基づいてバージョンの変更を指示する構成であってもよい。管理装置14は、所定のUIに対してユーザーから指示があった場合に、制御サーバー10に対して、バージョンの変更に係る処理を実行させる構成であってもよい。
The processing when the firmware version of the printing apparatus 12 is changed when the printing apparatus 12 is turned on has been described above.
On the other hand, the timing at which the firmware version is changed is not limited to when the printing apparatus 12 is turned on. For example, after the printing apparatus 12 is turned on, when the WebSocket connection CT is established with the control server 10, the control server 10 performs an instruction from the management apparatus 14 or establishment of a predetermined condition. The trigger may be configured to inquire about the version and to instruct the change of the version based on the inquiry. The management device 14 may be configured to cause the control server 10 to execute a process related to version change when an instruction is given from a user to a predetermined UI.

なお、制御サーバー10からファームウェアのバージョンの問い合わせがあったときに、印刷装置12がファームウェアのバージョンの異なるファームウェアに変更中である場合がある。例えば、印刷装置12がバージョンの異なるファームウェアへの変更中に電源がオフされ、その後、電源が投入され、電源投入に応じて上記処理を再開した場合である。この場合、印刷装置12及び制御サーバー10は以下の処理を実行する。
印刷装置12の制御プログラム管理部21は、電源の投入をトリガーとした第2WebSocketコネクションCT2の確立に応じて、ファームウェアのバージョンの問い合わせがあった場合に、変更中のバージョンを制御サーバー10に通知する。制御サーバー10の制御プログラム更新部30は、バージョン更新データベースを参照し、変更中のバージョンが、ユーザーが指示したバージョンであるか否かを判断する。ユーザーが指示したバージョンである場合、制御サーバー10の制御プログラム更新部30は、バージョンの異なるファームウェアへの変更を継続して実行させる旨の通知を行う。当該通知に応じて、印刷装置12の制御プログラム管理部21は、継続してバージョンの異なるファームウェアの変更を実行する。一方、ユーザーが指示したバージョンではない場合、制御サーバー10の制御プログラム更新部30は、ユーザーが指示したバージョンのファームウェアへの変更を実行させる制御データを送信する。印刷装置12の制御プログラム管理部21は、制御データに基づいて、ユーザーが指示したバージョンのファームウェアへの変更を実行する。この構成のため、制御サーバー10は、印刷装置12が、ファームウェアの変更中である場合に、変更中のファームウェアのバージョンがユーザーが指示したバージョンであるか否かに応じて、変更を中止させて、対応する他のバージョンへの変更を実行させることができる。
Note that when there is an inquiry about the firmware version from the control server 10, the printing apparatus 12 may be changing to a firmware with a different firmware version. For example, this is a case where the printing apparatus 12 is turned off while the firmware is being changed to a different version of firmware, then turned on, and the above processing is resumed in response to turning on the power. In this case, the printing apparatus 12 and the control server 10 execute the following processing.
The control program management unit 21 of the printing apparatus 12 notifies the control server 10 of the version being changed in response to a firmware version inquiry in response to the establishment of the second WebSocket connection CT2 triggered by power-on. . The control program update unit 30 of the control server 10 refers to the version update database and determines whether or not the version being changed is a version designated by the user. In the case of the version instructed by the user, the control program update unit 30 of the control server 10 notifies that the change to the firmware having a different version is continuously executed. In response to the notification, the control program management unit 21 of the printing apparatus 12 continuously changes the firmware with different versions. On the other hand, if the version is not the version designated by the user, the control program update unit 30 of the control server 10 transmits control data for executing the change to the firmware of the version designated by the user. Based on the control data, the control program management unit 21 of the printing apparatus 12 executes a change to the version of firmware designated by the user. Due to this configuration, when the printing device 12 is changing the firmware, the control server 10 cancels the change depending on whether or not the version of the firmware being changed is a version designated by the user. , Changes to other corresponding versions can be performed.

次に、管理装置14の指示に応じて、制御サーバー10が印刷装置12の印刷を制御する場合における管理装置14、制御サーバー10、及び、印刷装置12の動作について説明する。図6は、印刷制御システム1の各装置の動作を示すフローチャートであり、(A)は管理装置14の動作を、(B)は制御サーバー10の動作を、(C)は印刷装置12の動作を示す。
また、図6のフローチャートを用いて、制御サーバー10の印刷データ処理部29と、印刷装置12の印刷制御部17との間で行われる第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. 6 is a flowchart showing the operation of each device of the print control system 1. (A) shows the operation of the management device 14, (B) shows the operation of the control server 10, and (C) shows the operation of the printing device 12. Indicates.
In addition, with reference to the flowchart of FIG. 6, asynchronous two-way communication using the first inter-function unit communication path KT <b> 1 performed between the print data processing unit 29 of the control server 10 and the print control unit 17 of the printing apparatus 12. explain.
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, an application that operates in the browser or a script function included in a drawing file (described later).

図6(A)に示すように、印刷装置12による印刷に際し、ユーザー(管理装置14の管理者等)は、管理装置14のブラウザーを立ち上げ、所定のURLへのアクセスを指示する(ステップSZ1)。当該URLは、後述する印刷情報入力用ユーザーインターフェース(以下、「印刷UI」と表現する。)を、ブラウザーウィンドーに表示する場合にアクセスするURLである。当該所定のURLは、ユーザーに対して予め通知される。URLは、制御サーバー10が管理するURLであってもよく、他のサーバーが管理するURLであってもよい。
ステップSZ1の指示に応じて、管理装置14の管理装置制御部40のブラウザー実行部40aは、指定されたURLへアクセスし、印刷UIの表示に係る描画ファイルを要求する(ステップSE1)。描画ファイルは、HTML(HyperText Markup Language)等のマークアップ言語のファイルであり、管理装置14のブラウザーウィンドーにウェブページを表示させるファイルである。
As shown in FIG. 6A, when printing by the printing apparatus 12, a user (such as an administrator of the management apparatus 14) 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 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 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 print UI (step SE1). The drawing file is a file of 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は、ステップSE1の要求に応じて取得した描画ファイルに基づいて、印刷UIを表示する(ステップSE2)。
印刷UIは、印刷情報、及び、印刷装置識別情報をユーザーが入力するユーザーインターフェースである。印刷情報は、画像データが格納されたファイル名や、印刷媒体での画像の位置に関する情報等である。印刷UIでは、制御サーバー10の印刷データ処理部29が、後述の印刷制御データの生成に用いる情報を入力可能である。
印刷UIには、印刷情報、及び、印刷装置識別情報を入力する欄が設けられ、ユーザーは、当該欄に印刷情報、及び、印刷装置識別情報を入力する。
Next, the browser execution unit 40a displays a print UI based on the drawing file acquired in response to the request in step SE1 (step SE2).
The print UI is a user interface through which a user inputs print information and printing apparatus identification information. 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 29 of the control server 10 can input information used to generate print control data described later.
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に対して印刷情報、及び、印刷装置識別情報を入力し、入力を確定すると(ステップSZ2)、ブラウザー実行部40aは、以下の処理を実行する。ブラウザー実行部40aは、印刷指示データを生成する(ステップSE3)。印刷指示データは、印刷UIに入力された情報に基づく印刷情報、及び、印刷装置識別情報が含まれた所定のフォーマットのデータである。
次いで、ブラウザー実行部40aは、通信インターフェース41を制御して、制御サーバー10に印刷指示データを送信する(ステップSE4)。
When the user inputs print information and printing device identification information to the print 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 SE3). 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 SE4).

図6(B)に示すように、制御サーバー10の印刷データ処理部29は、第3接続部28を制御して、印刷指示データを受信する(ステップSF1)。
次いで、印刷データ処理部29は、受信した印刷指示データに基づいて、印刷制御データを生成する(ステップSF2)。印刷制御データは、印刷装置12に印刷させる印刷情報を有するXML(Extensible Markup Language)ファイルである。印刷制御データは、XMLのプロトコル(第1のプロトコル)に従って、印刷装置12に印刷させる印刷情報、例えば、画像データや、画像の位置を示す情報等が記録される。
次いで、印刷データ処理部29は、生成した印刷制御データを、第1接続部26に送信する(ステップSF3)。ステップSF3で、印刷データ処理部29は、コネクション管理データベースを参照し、当該データベースで印刷指示データに含まれる印刷装置識別情報と対応付けられたコネクション識別情報を取得する。次いで、印刷データ処理部29は、取得したコネクション識別情報に対応する第1接続部26に、印刷制御データを送信する。
第1接続部26は、第1WebSocketコネクションCT1で、受信した印刷制御データを、印刷装置12に送信する(ステップSF4)。
As shown in FIG. 6B, the print data processing unit 29 of the control server 10 controls the third connection unit 28 to receive print instruction data (step SF1).
Next, the print data processing unit 29 generates print control data based on the received print instruction data (step SF2). The print control data is an XML (Extensible Markup Language) file having print information to be printed by the printing apparatus 12. The print control data records print information to be printed by the printing apparatus 12 according to the XML protocol (first protocol), for example, image data, information indicating the position of the image, and the like.
Next, the print data processing unit 29 transmits the generated print control data to the first connection unit 26 (step SF3). In step SF3, the print data processing unit 29 refers to the connection management database, and acquires connection identification information associated with the printing apparatus identification information included in the print instruction data in the database. Next, the print data processing unit 29 transmits print control data to the first connection unit 26 corresponding to the acquired connection identification information.
The first connection unit 26 transmits the received print control data to the printing apparatus 12 through the first WebSocket connection CT1 (step SF4).

図6(C)に示すように、印刷装置12の第1通信部16は、第1WebSocketコネクションCT1で印刷制御データを受信する(ステップSG1)。次いで、第1通信部16は、受信した印刷制御データを、印刷制御部17に送信する(ステップSG2)。
印刷制御部17は、受信した印刷制御データを、印刷部18のコマンド体系の印刷制御コマンドに変換する(ステップSG3)。印刷制御部17は、XMLファイルである印刷制御データを、印刷部18が解釈可能なコマンドに変換する。次いで、印刷制御部17は、印刷制御コマンドを、印刷部18に送信する(ステップSG4)。
印刷部18は、印刷制御コマンドに基づいて、印刷媒体への印刷を実行する(ステップSG5)。
As shown in FIG. 6C, the first communication unit 16 of the printing apparatus 12 receives the print control data through the first WebSocket connection CT1 (step SG1). Next, the first communication unit 16 transmits the received print control data to the print control unit 17 (step SG2).
The print control unit 17 converts the received print control data into a print control command of the command system of the printing unit 18 (step SG3). The print control unit 17 converts the print control data, which is an XML file, into a command that can be interpreted by the printing unit 18. Next, the print control unit 17 transmits a print control command to the printing unit 18 (step SG4).
The printing unit 18 performs printing on the print medium based on the print control command (step SG5).

このように、制御サーバー10は、印刷装置12に印刷を実行させる事象が発生した場合に、印刷装置12からのリクエストを受けることなく、印刷装置12に印刷制御データを送信して、印刷装置12に印刷させることができる。印刷装置12に印刷を実行させる事象が発生した場合とは、例えば、上記例のように通信可能に接続された外部機器からの要求があった場合、ユーザーからの指示があった場合、もしくは予め定めた条件が成立した場合等、である。
このため、印刷装置12から制御サーバー10に対して間欠的にリクエストを送り、印刷装置12に印刷をさせたい場合に、当該リクエストに応じて印刷制御データを送信する構成とした場合と比較して、印刷を実行させる事象の発生後、より迅速に印刷を開始させることができる。
また、上記のように、制御サーバー10の印刷データ処理部29と、印刷装置12の印刷制御部17とは、第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 print control data 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, there is an instruction from the user, or in advance 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.
In addition, as described above, the print data processing unit 29 of the control server 10 and the print control unit 17 of the printing apparatus 12 perform asynchronous two-way communication via the first inter-function unit communication path KT1 based on the first WebSocket connection CT1. I do.

なお、印刷部18による印刷が行われた後は、印刷装置12、制御サーバー10、及び、管理装置14は、以下の処理を実行する。
すなわち、印刷制御部17は、印刷部18による印刷の結果に基づいて、印刷結果データを生成する。印刷結果データは、印刷部18による印刷が成功したか失敗したかを示す情報、及び、失敗した場合はその原因を示す情報を含むデータである。次いで、印刷制御部17は、第1WebSocketコネクションCT1に基づく第1機能部間通信経路KT1により、印刷データ処理部29に印刷結果データを送信する。印刷データ処理部29は、受信した印刷結果データを、印刷指示データを送信した管理装置14に対して送信する。例えば、印刷データ処理部29は、印刷指示データの受信に用いたコネクションを管理し、当該コネクションを用いて、印刷結果データを管理装置14に送信する。管理装置14の管理装置制御部40のブラウザー実行部40aは、受信した印刷結果データに基づいて対応する処理を実行する。例えば、管理装置制御部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 print result data based on the result of printing by the printing unit 18. The 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. Next, the print control unit 17 transmits the print result data to the print data processing unit 29 through the first inter-function unit communication path KT1 based on the first WebSocket connection CT1. The print data processing unit 29 transmits the received print result data to the management apparatus 14 that has transmitted the print instruction data. For example, the print data processing unit 29 manages the connection used for receiving the print instruction data, and transmits the print result data to the management apparatus 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 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は、印刷装置12と、制御サーバー10(印刷制御装置)と、を備える。
印刷装置12は、印刷を行う印刷部18、ファームウェア(制御プログラム)の機能により印刷部18を制御する印刷制御部17(印刷部を制御する制御プログラムを動作させる印刷制御部)、及び第2WebSocketコネクションCT2(通信経路)を確立し、当該コネクションが確立したときに、問い合わせに応じてファームウェアのバージョンを通知し、当該通知に応じて受信した制御データに基づいてファームウェアの変更を実行する制御プログラム管理部21を有する。
また、制御サーバー10は、第2WebSocketコネクションCT2が確立したときに、当該コネクションでファームウェアのバージョンを問い合わせ、当該問い合わせに応じて通知を受けたファームウェアのバージョンに応じて、ファームウェアのバージョンの変更が必要か否かを判断し、必要な場合、ファームウェアのバージョンの変更を実行させる制御データを送信するサーバー制御部10S(制御部)を有する。
この構成によれば、印刷装置12と、制御サーバー10との間でネットワークGNを介した第2WebSocketコネクションCT2の確立後、制御サーバー10は、印刷装置12のファームウェアのバージョンを取得し、管理することができる。
As described above, the print control system 1 according to the present embodiment includes the printing apparatus 12 and the control server 10 (print control apparatus).
The printing apparatus 12 includes a printing unit 18 that performs printing, a printing control unit 17 that controls the printing unit 18 using a function of firmware (control program) (a printing control unit that operates a control program that controls the printing unit), and a second WebSocket connection. A control program management unit that establishes CT2 (communication path), notifies the version of the firmware in response to the inquiry, and executes the firmware change based on the control data received in response to the notification 21.
In addition, when the second WebSocket connection CT2 is established, the control server 10 inquires about the firmware version using the connection, and whether the firmware version needs to be changed according to the firmware version notified in response to the inquiry. The server control unit 10S (control unit) transmits the control data for determining whether or not to change the firmware version if necessary.
According to this configuration, after the second WebSocket connection CT2 is established between the printing apparatus 12 and the control server 10 via the network GN, the control server 10 acquires and manages the firmware version of the printing apparatus 12. Can do.

また、本実施形態では、印刷装置12の制御プログラム管理部21は、印刷装置12の電源が投入されたときに、第2WebSocketコネクションCT2を確立する。
この構成によれば、電源投入時に、印刷装置12により第2WebSocketコネクションCT2が確立されるため、ユーザーによるWebSocketコネクションCTの確立のための作業が必要なく、また、電源投入に応じたWebSocketコネクションCTの確立後、制御サーバー10により、必要に応じて、印刷装置12のファームウェアのバージョンを変更できる。
In the present embodiment, the control program management unit 21 of the printing apparatus 12 establishes the second WebSocket connection CT2 when the printing apparatus 12 is powered on.
According to this configuration, since the second WebSocket connection CT2 is established by the printing apparatus 12 when the power is turned on, there is no need for the user to establish the WebSocket connection CT, and the WebSocket connection CT corresponding to the power-on is set. After the establishment, the control server 10 can change the firmware version of the printing apparatus 12 as necessary.

また、本実施形態では、印刷装置12の制御プログラム管理部21は、ファームウェアのバージョンの問い合わせがあったときに、ファームウェアのバージョンの変更中である場合は、変更中のファームウェアのバージョンを通知する。制御サーバー10のサーバー制御部10Sは、通知を受けた変更中のファームウェアのバージョンに応じて、ファームウェアのバージョンの変更を継続して実行させるか否かを判断し、継続して実行させる場合はその旨通知し、他のバージョンに変更させる場合は、バージョンの変更を中止させ、当該他のバージョンへの変更を実行させる制御データを送信する。
この構成によれば、制御サーバー10は、印刷装置12が、ファームウェアのバージョンの変更中である場合に、変更中のバージョンに応じて、変更を中止させて、対応する他のバージョンへの変更を実行させることができる。
In the present embodiment, when the firmware version is being inquired, the control program management unit 21 of the printing apparatus 12 notifies the version of the firmware being changed when the firmware version is being changed. The server control unit 10S of the control server 10 determines whether or not to continue to change the firmware version according to the notified firmware version being changed. In the case of changing to another version, control data for stopping the version change and transmitting the change to the other version is transmitted.
According to this configuration, when the printing apparatus 12 is changing the firmware version, the control server 10 cancels the change according to the version being changed, and changes the corresponding version to another version. Can be executed.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
上述した実施形態では、印刷装置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…印刷制御システム、10…制御サーバー(印刷制御装置)、10S…サーバー制御部(制御部)、12…印刷装置、17…印刷制御部、18…印刷部、20…第2通信部(通信部)、21…制御プログラム管理部、27…第2接続部(接続部)、GN…ネットワーク、CT2…第2WebSocketコネクション(通信経路)。   DESCRIPTION OF SYMBOLS 1 ... Print control system, 10 ... Control server (print control apparatus), 10S ... Server control part (control part), 12 ... Printing apparatus, 17 ... Print control part, 18 ... Printing part, 20 ... 2nd communication part (communication) Part), 21 ... control program management part, 27 ... second connection part (connection part), GN ... network, CT2 ... second WebSocket connection (communication path).

Claims (8)

印刷を制御する制御プログラムを有する印刷装置と印刷制御装置との間でネットワークを介した通信経路を確立し、
前記通信経路の確立後、前記印刷制御装置から前記印刷装置に、前記制御プログラムのバージョンを問い合わせ、
前記問い合わせに応じて、前記印刷装置から前記印刷装置へ前記制御プログラムのバージョン情報を通知し、
通知された前記制御プログラムのバージョン情報に応じて、異なるバージョンの制御プログラムへの変更が必要か否かを前記印刷制御装置で判断し、
前記異なるバージョンの制御プログラムへの変更が必要であると判断された場合、前記異なるバージョンの制御プログラムへの変更を前記印刷装置に実行させる制御データを前記印刷装置に送信し、
前記制御データに基づいて前記印刷装置で前記異なるバージョンの制御プログラムへの変更を実行することを特徴とする印刷制御システムの制御方法。
Establishing a communication path via a network between a printing apparatus having a control program for controlling printing and the printing control apparatus;
After establishing the communication path, the printing control device inquires of the printing device about the version of the control program,
In response to the inquiry, the printing apparatus notifies the printing apparatus of version information of the control program,
According to the notified version information of the control program, the print control device determines whether or not a change to a different version of the control program is necessary,
If it is determined that a change to the different version of the control program is necessary, control data for causing the printing apparatus to execute the change to the different version of the control program is transmitted to the printing apparatus;
A control method for a print control system, wherein a change to the different version of the control program is executed by the printing apparatus based on the control data.
前記印刷装置の電源が投入されたときに、前記印刷装置は前記印刷制御装置との間で前記通信経路を確立する請求項1に記載の印刷制御システムの制御方法。   The method according to claim 1, wherein the printing apparatus establishes the communication path with the printing control apparatus when the printing apparatus is powered on. 前記問い合わせがあったときに、前記印刷装置で前記異なるバージョンの制御プログラムへの変更中である場合は、前記異なるバージョンの制御プログラムのバージョン情報を通知し、
前記印刷制御装置は、通知された前記異なるバージョンの制御プログラムのバージョン情報に応じて、前記異なるバージョンの制御プログラムへの変更を継続して実行させるか否かを判断し、
前記異なるバージョンの制御プログラムへの変更を継続して実行させる場合はそのことを通知する請求項1又は2に記載の印刷制御システムの制御方法。
When there is a change to the control program of the different version at the printing device when the inquiry is made, the version information of the control program of the different version is notified,
The printing control apparatus determines whether to continuously execute the change to the control program of the different version according to the notified version information of the control program of the different version,
The control method of the print control system according to claim 1 or 2, wherein when the change to the control program of the different version is continuously executed, the change is notified.
前記印刷装置と前記印刷制御装置との間で確立された前記通信経路は、非同期の双方向通信を行う請求項1乃至3のいずれか1項に記載の印刷制御システムの制御方法。   4. The control method of a print control system according to claim 1, wherein the communication path established between the printing apparatus and the print control apparatus performs asynchronous bidirectional communication. 5. 印刷を行う印刷部、前記印刷部を制御する制御プログラムを動作させる印刷制御部、前記制御プログラムのバージョン情報を取得して前記制御プログラムを管理する制御プログラム管理部、及び通信を行う通信部を有する印刷装置と、
前記印刷装置の前記通信部と通信経路を確立して通信を行う接続部、前記印刷装置の前記制御プログラムのバージョン情報を問い合わせる第1のデータ及び前記第1のデータを送信したときに受信した情報に基づいて異なるバージョンの制御プログラムへの変更を要求する第2のデータを前記接続部に送信させる制御部を有する印刷制御装置と、
を備えることを特徴とする印刷制御システム。
A printing unit that performs printing; a printing control unit that operates a control program that controls the printing unit; a control program management unit that acquires version information of the control program and manages the control program; and a communication unit that performs communication A printing device;
A connection unit that establishes a communication path with the communication unit of the printing apparatus and performs communication, first data that inquires about version information of the control program of the printing apparatus, and information that is received when the first data is transmitted A print control apparatus having a control unit that causes the connection unit to transmit second data requesting a change to a control program of a different version based on
A printing control system comprising:
前記印刷装置の前記通信部と前記印刷制御装置の前記接続部とは、前記印刷装置の電源が投入されたときに、前記通信経路を確立する請求項5に記載の印刷制御システム。   The print control system according to claim 5, wherein the communication unit of the printing apparatus and the connection unit of the print control apparatus establish the communication path when the printing apparatus is powered on. 前記印刷装置の前記制御プログラム管理部は、前記印刷制御部で動作する前記制御プログラムを異なるバージョンの制御プログラムに変更する請求項5または6に記載の印刷制御システム。   The print control system according to claim 5 or 6, wherein the control program management unit of the printing apparatus changes the control program operating in the print control unit to a different version of the control program. 前記印刷装置の前記制御プログラム管理部は、前記印刷制御装置の前記接続部で送信される前記第1のデータ及び前記第2のデータを取得し、前記第2のデータを取得したときに前記印刷制御部で動作する前記制御プログラムを異なるバージョンの制御プログラムに変更する請求項7に記載の印刷制御システム。   The control program management unit of the printing apparatus acquires the first data and the second data transmitted from the connection unit of the print control apparatus, and the printing is performed when the second data is acquired. The print control system according to claim 7, wherein the control program operating in the control unit is changed to a different version of the control program.
JP2014020185A 2014-02-05 2014-02-05 Print control system control method and print control system Pending JP2015148874A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2014020185A JP2015148874A (en) 2014-02-05 2014-02-05 Print control system control method and print control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2014020185A JP2015148874A (en) 2014-02-05 2014-02-05 Print control system control method and print control system

Publications (1)

Publication Number Publication Date
JP2015148874A true JP2015148874A (en) 2015-08-20

Family

ID=53892203

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2014020185A Pending JP2015148874A (en) 2014-02-05 2014-02-05 Print control system control method and print control system

Country Status (1)

Country Link
JP (1) JP2015148874A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019192064A (en) * 2018-04-27 2019-10-31 京セラドキュメントソリューションズ株式会社 Image forming system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019192064A (en) * 2018-04-27 2019-10-31 京セラドキュメントソリューションズ株式会社 Image forming system

Similar Documents

Publication Publication Date Title
JP6291846B2 (en) Print control system, print control method, and printing apparatus
CN104765579A (en) POS Control System, Control Method of POS Control System, and Printing Device
EP2953033B1 (en) Control system and control method for the control system
TW201405415A (en) Printing system and printer
JP2015141569A (en) Print control system and control method of print control system
JP2015148874A (en) Print control system control method and print control system
JP6287215B2 (en) POS control system, printing apparatus, and control method of POS control system
KR101917547B1 (en) Network system and communication method
JP6268931B2 (en) Print control apparatus and print control system
JP6260231B2 (en) Print control system and print control method
JP2015130087A (en) POS control system and control method of POS control system
JP2015146153A (en) Print control system, and control method of print control system
JP6221681B2 (en) Print control system and print control method
JP6252114B2 (en) Print control system
JP6343931B2 (en) Print control system and print control method
JP6331337B2 (en) Print control system and printing apparatus
JP6281248B2 (en) Printing apparatus, printing apparatus control method, and printing control system
JP6252115B2 (en) Print control system
JP6269055B2 (en) Print control system control method, print control system, and printing apparatus
JP2015148873A (en) Control system and control system control method
JP2015127877A (en) Print control system and print control method
JP2015090646A (en) Printing control device and printing control system
JP2015090644A (en) Printing control device and printing control system
JP2015088105A (en) Printer and print control system
JP2015090643A (en) Print control apparatus and print control system