[go: up one dir, main page]

JP2015088105A - Printer and print control system - Google Patents

Printer and print control system Download PDF

Info

Publication number
JP2015088105A
JP2015088105A JP2013228252A JP2013228252A JP2015088105A JP 2015088105 A JP2015088105 A JP 2015088105A JP 2013228252 A JP2013228252 A JP 2013228252A JP 2013228252 A JP2013228252 A JP 2013228252A JP 2015088105 A JP2015088105 A JP 2015088105A
Authority
JP
Japan
Prior art keywords
unit
communication
printing
connection
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2013228252A
Other languages
Japanese (ja)
Inventor
薫雄 田島
Shigeo Tajima
薫雄 田島
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 JP2013228252A priority Critical patent/JP2015088105A/en
Publication of JP2015088105A publication Critical patent/JP2015088105A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Facsimiles In General (AREA)

Abstract

【課題】印刷装置と印刷制御装置とがネットワークを介して通信する印刷制御システムに関し、印刷装置、及び、印刷制御システムを、装置間がネットワークを介して通信する構成に対応させる。
【解決手段】印刷装置12は、印刷部18と、印刷部18の動作を制御する印刷制御部17と、印刷制御部17で送信したデータを非同期の双方向通信で通信する第1通信部16と、ステータス管理部21で送信したデータを非同期の双方向通信で通信する第2通信部20と、を有する。
【選択図】図3
The present invention relates to a print control system in which a printing apparatus and a print control apparatus communicate with each other via a network.
A printing apparatus includes a printing unit, a printing control unit that controls operations of the printing unit, and a first communication unit that communicates data transmitted by the printing control unit by asynchronous two-way communication. And a second communication unit 20 that communicates data transmitted by the status management unit 21 by asynchronous two-way communication.
[Selection] Figure 3

Description

本発明は、印刷装置、及び、印刷制御システムに関する。   The present invention relates to a printing apparatus and a printing 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 print control system, a printing apparatus and a print control apparatus are connected via a network and communicate via the network.

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

上述した印刷制御システムのように、印刷装置と印刷制御装置とがネットワークを介して通信するシステムを構築する場合、印刷装置、及び、システムを、印刷機能を有する印刷装置と印刷制御装置とがネットワークを介して通信する構成に対応させる必要がある。
本発明は、上述した事情に鑑みてなされたものであり、印刷装置と印刷制御装置とがネットワークを介して通信する印刷制御システムについて、印刷装置、及び、印刷制御システムを、装置間がネットワークを介して通信する構成に対応させることを目的とする。
In the case of constructing a system in which a printing apparatus and a printing control apparatus communicate via a network, such as the above-described printing control system, the printing apparatus and the system are connected to a printing apparatus having a printing function and the printing control apparatus. It is necessary to correspond to the configuration that communicates through the network.
The present invention has been made in view of the above-described circumstances, and relates to a printing control system in which a printing apparatus and a printing control apparatus communicate via a network, the printing apparatus and the printing control system, and a network between the apparatuses. It aims at making it respond | correspond to the structure which communicates via.

上記目的を達成するために、本発明の印刷装置は、印刷を行う印刷部と、前記印刷部の動作を制御する印刷制御部と、前記印刷制御部で送信したデータを非同期の双方向通信で通信する第1通信部と、前記印刷制御部と異なる機能を有する機能部と、前記機能部で送信したデータを非同期の双方向通信で通信する第2通信部と、を有することを特徴とする。
本発明の構成によれば、印刷装置は、印刷制御部、及び、印刷制御部以外の機能を有する機能部について、各機能部が送信したデータを非同期の双方向通信で、印刷制御装置等の外部装置に送信することができる。従って、各機能部が送信したデータを、必要に応じて任意のタイミングで、非同期の双方向通信で外部装置に送信して、外部装置にデータに基づく処理を実行させることができる。つまり、上記構成によれば、印刷制御システムに含まれる印刷装置を、印刷制御部、及び、印刷制御部と異なる機能の機能部の複数の機能部を有することに対応させ、また、印刷装置と、印刷制御装置等の外部装置とがネットワークを介して通信する構成に対応させることができる。
In order to achieve the above object, a printing apparatus of the present invention includes a printing unit that performs printing, a printing control unit that controls the operation of the printing unit, and data transmitted from the printing control unit by asynchronous two-way communication. A first communication unit that communicates, a functional unit having a function different from that of the print control unit, and a second communication unit that communicates data transmitted by the functional unit by asynchronous two-way communication. .
According to the configuration of the present invention, the printing apparatus is configured such that the data transmitted by each functional unit is transferred to the print control unit and the functional unit having functions other than the print control unit by asynchronous two-way communication. Can be sent to an external device. Therefore, the data transmitted by each functional unit can be transmitted to the external device by asynchronous two-way communication at any timing as required, and the external device can execute processing based on the data. That is, according to the above configuration, the printing apparatus included in the printing control system corresponds to having a printing control unit and a plurality of functional units having functions different from the printing control unit, and the printing apparatus It is possible to correspond to a configuration in which an external apparatus such as a print control apparatus communicates via a network.

また、前記第1通信部、及び、前記第2通信部の前記非同期の双方向通信は、WebSocket通信である。
本発明の構成によれば、第1通信部、及び、第2通信部は、WebSocket通信により、非同期の双方向通信を実行できる。
Further, the asynchronous bidirectional communication of the first communication unit and the second communication unit is WebSocket communication.
According to the configuration of the present invention, the first communication unit and the second communication unit can execute asynchronous two-way communication by WebSocket communication.

また、前記機能部は、前記印刷部のステータスを管理するステータス管理部である。
本発明の構成によれば、ステータス管理部は、例えば、印刷装置の状態に変化があった場合等、ステータスに関する情報を含むデータを送信する事象が発生した場合に、非同期の双方向通信により、当該データを送信できる。
The functional unit is a status management unit that manages the status of the printing unit.
According to the configuration of the present invention, the status management unit performs asynchronous bi-directional communication when an event occurs in which data including information about the status occurs, for example, when there is a change in the state of the printing apparatus. The data can be transmitted.

また、本発明の印刷制御システムは、印刷を行う印刷部、前記印刷部の動作を制御する印刷制御部、前記印刷制御部で送信したデータを非同期の双方向通信で通信する第1通信部、前記印刷制御部と異なる機能を有する機能部、前記機能部で送信したデータを非同期の双方向通信で通信する第2通信部を有する印刷装置と、前記第1通信部と非同期の双方向通信で通信する第1接続部、及び前記第2通信部と非同期の双方向通信で通信する第2接続部を有する印刷制御装置と、を備えることを特徴とする。
本発明の構成によれば、印刷装置は、印刷制御部、及び、印刷制御部以外の機能を有する機能部について、各機能部が送信したデータを非同期の双方向通信で、印刷制御装置に送信することができる。従って、各機能部が送信したデータを、必要に応じて任意のタイミングで、非同期の双方向通信で印刷制御装置に送信して、印刷制御装置にデータに基づく処理を実行させることができる。つまり、上記構成によれば、印刷制御システムを、印刷装置が印刷制御部、及び、印刷制御部と異なる機能の機能部の複数の機能部を有することに対応させ、また、印刷装置と、印刷制御装置等の外部装置とがネットワークを介して通信する構成に対応させることができる。
The printing control system of the present invention includes a printing unit that performs printing, a printing control unit that controls the operation of the printing unit, a first communication unit that communicates data transmitted by the printing control unit by asynchronous two-way communication, A functional unit having a function different from that of the print control unit, a printing apparatus having a second communication unit that communicates data transmitted by the functional unit by asynchronous bidirectional communication, and asynchronous communication with the first communication unit. And a print control device having a first connection unit that communicates and a second connection unit that communicates with the second communication unit by asynchronous two-way communication.
According to the configuration of the present invention, the printing apparatus transmits the data transmitted by each function unit to the print control apparatus by asynchronous two-way communication with respect to the print control unit and the function units having functions other than the print control unit. can do. Therefore, the data transmitted by each functional unit can be transmitted to the print control apparatus by asynchronous two-way communication at any timing as necessary, and the print control apparatus can execute processing based on the data. In other words, according to the above configuration, the printing control system is made to correspond to the printing apparatus having a plurality of functional units that are different from the printing control unit and the printing control unit. It is possible to correspond to a configuration in which an external device such as a control device communicates via a network.

また、前記印刷制御装置は、前記第1接続部が前記第1通信部との非同期の双方向通信の第1の通信経路を確立するときに、前記第1の通信経路の識別情報を生成する通信管理部を有する。
本発明の構成によれば、印刷制御装置は、確立した第1の通信経路について、識別情報を利用して管理できる。
The print control apparatus generates identification information of the first communication path when the first connection unit establishes a first communication path for asynchronous bidirectional communication with the first communication unit. It has a communication manager.
According to the configuration of the present invention, the print control apparatus can manage the established first communication path using the identification information.

また、前記印刷制御装置の前記通信管理部は、前記第2接続部が前記第2通信部との非同期の双方向通信の第2の通信経路を確立するときに、前記第2の通信経路の識別情報を生成する。
本発明の構成によれば、印刷制御装置は、確立した第2の通信経路について、識別情報を利用して管理できる。
In addition, the communication management unit of the print control apparatus may include a second communication path when the second connection unit establishes a second communication path for asynchronous bidirectional communication with the second communication unit. Generate identification information.
According to the configuration of the present invention, the print control apparatus can manage the established second communication path using the identification information.

また、前記第1通信部と前記第1接続部との非同期の双方向通信、及び前記第2通信部と前記第2接続部との非同期の双方向通信は、WebSocket通信である。
本発明の構成によれば、印刷装置の第1通信部、及び、第2通信部は、WebSocket通信により、印刷制御装置の第1接続部、及び、第2接続部との間で非同期の双方向通信を実行できる。
The asynchronous bidirectional communication between the first communication unit and the first connection unit and the asynchronous bidirectional communication between the second communication unit and the second connection unit are WebSocket communication.
According to the configuration of the present invention, the first communication unit and the second communication unit of the printing apparatus are both asynchronous with the first connection unit and the second connection unit of the print control apparatus by WebSocket communication. Can perform two-way communication.

また、前記印刷制御装置は、前記第1接続部で送受信するデータを処理する印刷データ処理部、及び前記第2接続部で送受信するデータを処理する処理部を有する。
本発明の構成によれば、印刷制御装置は、第1接続部、又は、第2接続部により受信したデータについて、対応する処理部により対応する処理を実行できる。つまり、印刷制御装置は、印刷制御部が送信したデータについては、対応する印刷データ処理部により対応する処理を実行でき、また、機能部が送信したデータについては、対応する処理部により対応する処理を実行できる。
The print control apparatus includes a print data processing unit that processes data transmitted / received by the first connection unit and a processing unit that processes data transmitted / received by the second connection unit.
According to the configuration of the present invention, the print control apparatus can execute a corresponding process by the corresponding processing unit on the data received by the first connection unit or the second connection unit. In other words, the print control apparatus can execute a corresponding process by the corresponding print data processing unit for the data transmitted by the print control unit, and can also execute a corresponding process by the corresponding processing unit for the data transmitted by the functional unit. Can be executed.

本実施形態に係る制御システムの構成を示す図。The figure which shows the structure of the control system which concerns on this embodiment. 制御サーバーと、印刷装置との間で確立される通信経路を示す図。The figure which shows the communication path established between a control server and a printing apparatus. 制御サーバーと、印刷装置の機能的構成を示すブロック図。FIG. 2 is a block diagram illustrating a functional configuration of a control server and a printing apparatus. 制御サーバー、印刷装置の動作を示すフローチャート。6 is a flowchart illustrating operations of a control server and a printing apparatus. 制御サーバー、印刷装置の動作を示すフローチャート。6 is a flowchart illustrating operations of a control server and a printing apparatus. 制御サーバー、印刷装置の動作を示すフローチャート。6 is a flowchart illustrating operations of a control server and a printing apparatus.

以下、図面を参照して本発明の実施形態について説明する。
図1は、本実施形態に係る制御システム1(印刷制御システム)の構成を示す図である。
図1に示すように、制御システム1は、制御サーバー10(印刷制御装置)を備え、制御サーバー10にインターネット等のネットワークGNを介して複数の店舗システム11が接続される。
店舗システム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の制御の下、印刷に係る処理を実行する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a diagram illustrating a configuration of a control system 1 (printing control system) according to the present embodiment.
As shown in FIG. 1, the control system 1 includes a control server 10 (printing control apparatus), and a plurality of store systems 11 are connected to the control server 10 via a network GN such as the Internet.
The store system 11 is a system applied to stores such as supermarkets, convenience stores, department stores, restaurants, and the like. The store system 11 has at least a function of issuing a receipt to a customer who has visited the store.
The store system 11 includes a printing function for printing on a print medium, and includes one or a plurality of printing devices 12 that can issue receipts. The printing apparatus 12 is connected to a local area network LN built in the store. Connected to the local area network LN is 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. For example, the store system 11A is a system applied to the supermarket SM. The supermarket SM is provided with a plurality of cashier counters RC, and each cashier counter RC is provided with a printing device 12. The printing device 12 according to 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 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, the printing apparatus 12 executes processing related to printing under the control of the control server 10.

図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のプロトコル、手続きに従った非同期な双方向通信のことである。
本実施形態では、後述するように、印刷装置12が有する機能部に応じて、制御サーバー10との間でWebSocketコネクションCTが確立される。従って、1台の印刷装置12と、制御サーバー10との間で、複数のWebSocketコネクションCTが確立される場合がある。
制御サーバー10、及び、印刷装置12は、WebSocketコネクションCTにより非同期で双方向通信する。すなわち、制御サーバー10は、クライアントとしての印刷装置12からリクエストを受けることなく、任意のタイミングで、WebSocketコネクションCTで印刷装置12に対してデータをプッシュ送信できる。従って、制御サーバー10は、任意のタイミングで、印刷装置12を制御して、印刷媒体に印刷させることができる。同様に、印刷装置12は、任意のタイミングで、WebSocketコネクションCTで制御サーバー10に対してデータをプッシュ送信できる。
FIG. 2 is a diagram illustrating a communication path established between the control server 10 and the printing apparatus 12 in the control system 1.
As shown in FIG. 2, in the control system 1, a WebSocket connection CT (communication path) for performing WebSocket communication is established between the control server 10 and the printing device 12 of each 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 according to the WebSocket protocol and procedure between the printing apparatus 12 connected via 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. That is, the control server 10 can transmit data to the printing apparatus 12 at an arbitrary timing through the WebSocket connection CT, and the printing apparatus 12 can transmit data to the control server 10 at an arbitrary timing through the WebSocket connection CT.
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 by the WebSocket connection CT.
In the present embodiment, as will be described later, a WebSocket connection CT is established with the control server 10 in accordance with a functional unit included in the printing apparatus 12. Therefore, a plurality of WebSocket connections CT may be established between one printing apparatus 12 and the control server 10.
The control server 10 and the printing apparatus 12 perform two-way communication asynchronously through the WebSocket connection CT. That is, the control server 10 can push-transmit data to the printing apparatus 12 through the WebSocket connection CT at an arbitrary timing without receiving a request from the printing apparatus 12 as a client. Therefore, the control server 10 can control the printing device 12 to print on the printing medium at an arbitrary timing. Similarly, the printing apparatus 12 can push-transmit data to the control server 10 through the WebSocket connection CT at an arbitrary timing.

本実施形態において、制御サーバー10は、いわゆるクラウドシステムにおけるクラウドサーバーである。すなわち、制御サーバー10は、演算処理機能を有し、印刷装置12の要求等をトリガーとして所定の演算処理を実行し、演算処理の結果に基づくデータを、WebSocketコネクションCTで印刷装置12に送信する。
なお、図2では、制御サーバー10を、1つのブロックによって表現しているが、これは、制御サーバー10が単一のサーバー装置により構成されることを意味するものではない。例えば、制御サーバー10は、複数のサーバー装置を含んで構成されたものであってもよく、所定のシステムの一部の機能により実現されるサーバーであってもよい。すなわち、後述する各種処理を実現可能な構成であれば、その形態を問わない。
また、本実施形態では、制御サーバー10と、印刷装置12との間で、WebSocket通信を行う。しかしながら、これら装置が、WebSocket通信に代えて、WebSocket通信と同様な非同期な双方向通信を行う構成であってもよい。
In the present embodiment, the control server 10 is a cloud server in a so-called cloud system. In other words, the control server 10 has an arithmetic processing function, executes predetermined arithmetic processing triggered by a request from the printing apparatus 12, and transmits data based on the result of the arithmetic processing to the printing apparatus 12 through 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 configuration is not limited as long as various processes described later can be realized.
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.

このように、制御システム1は、印刷機能が実装された印刷装置12が、複数台(例えば、1000台)、WebSocketコネクションCTで、制御サーバー10との間で通信可能に接続された構成となっている。
このような構成のため、以下の効果を得ることができる。
すなわち、制御サーバー10は、複数の店舗システム11に接続された複数の印刷装置12から受信したデータに基づく情報を収集し、管理、分析できる。このため、制御サーバー10は、有益な情報を蓄積することができる。蓄積した情報は、いわゆるビッグデータとして活用可能である。
また、店舗システム11の構築の簡易化、及び、低コスト化を図ることが可能となる。すなわち、制御システム1では、印刷装置12がWebSocketコネクションCTにより制御サーバー10に接続される。このため、制御サーバー10が提供するサービスを利用して、制御サーバー10の制御の下、印刷装置12に各種処理を実行させることが可能である。従って、店舗システム11を構築する管理者は、店舗システム11の構築に際し、印刷装置12を所望の場所に設置した上で、印刷装置12をネットワークGNに接続する、という簡易な作業を行えばよい。これにより、制御サーバー10が提供するサービスを利用して、印刷装置12に所望の処理、例えば、レシートの発行に係る処理を実行させることが可能となる。
また、制御サーバー10に、異なる店舗システム11の印刷装置12がWebSocketコネクションCTで接続されるため、制御サーバー10は、複数の店舗システム11の印刷装置12を管理できる。また、制御サーバー10は、複数の店舗システム11の印刷装置12を動作させることができる。
As described above, the control system 1 has a configuration in which a plurality of printing apparatuses 12 (for example, 1000) on which a printing function is implemented are connected to be able to communicate with the control server 10 using the WebSocket connection CT. ing.
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 control system 1, the printing device 12 is connected to the control server 10 by the WebSocket connection CT. For this reason, it is possible to cause the printing apparatus 12 to execute various processes under the control of the control server 10 using the service provided by the control server 10. Therefore, an administrator who constructs the store system 11 may perform a simple operation of connecting the printing apparatus 12 to the network GN after installing the printing apparatus 12 in a desired place 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.
Further, since the printing device 12 of the different store system 11 is connected to the control server 10 by the WebSocket connection CT, the control server 10 can manage the printing device 12 of the plurality of store systems 11. In addition, the control server 10 can operate the printing devices 12 of the plurality of store systems 11.

図3は、本実施形態に係る印刷装置12、及び、制御サーバー10の機能的構成を示すブロック図である。
図3に示すように、印刷装置12は、第1通信部16と、印刷制御部17と、印刷部18と、第2通信部20と、ステータス管理部21(機能部)と、ステータス監視機構22と、印刷装置記憶部19と、を備える。
第1通信部16、印刷制御部17、第2通信部20、及び、ステータス管理部21の機能については後述する。
印刷部18は、印刷媒体に印刷する印刷機構、印刷媒体を搬送する搬送機構、印刷媒体を切断する切断機構等の印刷に係る機構、及び、各機構の制御に係る制御基板等を備える。
ステータス監視機構22は、印刷装置12のカバーの開閉状態を検出するセンサーや、エラーの発生の有無等、印刷装置12、印刷部18の状態を検出するセンサー、機構等を備え、検出結果を、ステータス管理部21に送信する。
印刷装置記憶部19は、不揮発性メモリーを備え、各種データを記憶する。印刷装置記憶部19には、第1通信先情報データ19aと、第2通信先情報データ19bと、印刷装置識別情報データ19cとが記憶されるが、これらデータについては後述する。
なお、印刷装置12は、印刷制御部17と、ステータス管理部21との2つの機能部を有しているが、これら機能部は別の機能を有する機能部である。すなわち、ステータス管理部21は、印刷制御部17と異なる機能を有する機能部である。
FIG. 3 is a block diagram illustrating functional configurations of the printing apparatus 12 and the control server 10 according to the present embodiment.
As illustrated in FIG. 3, the printing apparatus 12 includes a first communication unit 16, a print control unit 17, a printing unit 18, a second communication unit 20, a status management unit 21 (functional unit), and a status monitoring mechanism. 22 and a printing device storage unit 19.
The functions of the first communication unit 16, the print control unit 17, the second communication unit 20, and the status management unit 21 will be described 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 status monitoring mechanism 22 includes a sensor that detects the open / closed state of the cover of the printing apparatus 12, a sensor that detects the state of the printing apparatus 12 and the printing unit 18, such as whether an error has occurred, a mechanism, and the like. It is transmitted to the status management unit 21.
The printing device storage unit 19 includes a nonvolatile memory and stores various data. The printing device storage unit 19 stores first communication destination information data 19a, second communication destination information data 19b, and printing device identification information data 19c, which will be described later.
Note that the printing apparatus 12 has two functional units, the print control unit 17 and the status management unit 21, but these functional units are functional units having different functions. That is, the status management unit 21 is a functional unit having a function different from that of the print control unit 17.

図3に示すように、制御サーバー10は、通信管理部25と、第1接続部26と、印刷データ処理部27と、第2接続部30と、ステータス処理部29と、制御サーバー記憶部28と、を備える。
通信管理部25、第1接続部26、印刷データ処理部27、第2接続部30、及び、ステータス処理部29の機能については、後述する。
制御サーバー記憶部28は、不揮発性メモリーを備え、各種データを記憶する。制御サーバー記憶部28には、コネクション管理データベース28aが記憶されるが、これについては後述する。
As shown in FIG. 3, the control server 10 includes a communication management unit 25, a first connection unit 26, a print data processing unit 27, a second connection unit 30, a status processing unit 29, and a control server storage unit 28. And comprising.
The functions of the communication management unit 25, the first connection unit 26, the print data processing unit 27, the second connection unit 30, and the status processing unit 29 will be described later.
The control server storage unit 28 includes a nonvolatile memory and stores various data. The control server storage unit 28 stores a connection management database 28a, which will be described later.

なお、図3では、制御サーバー10と、制御サーバー10に接続された1つの印刷装置12との関係を示す。制御サーバー10に、複数の印刷装置12が接続される場合は、制御サーバー10は、複数の印刷装置12に対応して(本例では、印刷装置12が備える1又は複数の機能部に対応して)、複数のWebSocketインターフェースを備え、各印刷装置12との間でWebSocketコネクションCTを確立し、各印刷装置12と当該コネクションで通信する。   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 (in this example, corresponds to one or a plurality of functional units included in the printing device 12). And a plurality of WebSocket interfaces, establish a WebSocket connection CT with each printing apparatus 12, and communicate with each printing apparatus 12 through the connection.

次に、印刷装置12の電源投入時における、印刷装置12、及び、制御サーバー10の動作について説明する。
図4は、印刷装置12に電源が投入された後の印刷装置12、及び、制御サーバー10の動作を示すフローチャートであり、(A)は印刷装置12の動作を、(B)は制御サーバー10の動作を示す。
なお、図4のフローチャートの処理のトリガーは、電源投入時に限らない。例えば、印刷装置12がネットワークGNに通信可能に接続された場合や、ユーザーから指示があった場合等であってもよい。
以下の説明では、印刷装置12は、対応する店舗システム11のローカルエリアネットワークLNに接続され、ネットワークGNにアクセス可能であるものとする。
また、以下の説明では、印刷装置12の印刷制御部17、及び、ステータス管理部21を特に区別しない場合、これら機能ブロックを総称して「機能部」と表現する。一方、制御サーバー10の印刷データ処理部27、及び、ステータス処理部29を特に区別しない場合、これら機能ブロックを総称して「処理部」と表現する。
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.
In the following description, it is assumed that the printing apparatus 12 is connected to the local area network LN of the corresponding store system 11 and can access the network GN.
In the following description, when the print control unit 17 and the status management unit 21 of the printing apparatus 12 are not particularly distinguished, these functional blocks are collectively referred to as “functional unit”. On the other hand, when the print data processing unit 27 and the status processing unit 29 of the control server 10 are not particularly distinguished, these functional blocks are collectively referred to as “processing unit”.

また、以下の説明において、印刷装置12が備える印刷制御部17、ステータス管理部21、及び、制御サーバー10が備える通信管理部25、印刷データ処理部27、ステータス処理部29の各機能ブロックの機能は、例えば、以下のようにして実現される。
すなわち、例えば、これら機能ブロックは、オブジェクトである。オブジェクトとは、オブジェクト指向プログラミングで生成されるインスタンス、すなわち、データ、及び、メソッドの集合として定義されたソフトウェアの機能ブロックである。そして、これら機能ブロックの機能は、各機能ブロックに実装されたメソッドが呼び出されることによって実現される。
また例えば、これら機能ブロックの機能は、アプリケーションがCPU等のハードウェア資源によって読み出され実行されることによって、実現される。1つのアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。また、1つのアプリケーションにより複数の機能ブロックの機能が実現される構成であってもよい。また、複数のアプリケーションにより1つの機能ブロックの機能が実現される構成であってもよい。
すなわち、各機能ブロックは、各機能をブロックとして表現したものであり、特定のアプリケーションや、ハードウェア等を意味するものではない。
In the following description, the functions of the functional blocks of the print control unit 17, the status management unit 21, and the communication management unit 25, the print data processing unit 27, and the status processing unit 29 that are included in the control server 10 are provided. Is realized as follows, for example.
That is, for example, these functional blocks are objects. An object is a functional block of software defined as a collection of instances, that is, data and methods generated by object-oriented programming. And the function of these functional blocks is implement | achieved by calling the method mounted in each functional block.
Further, for example, the functions of these functional blocks are realized by an application being read and executed by a hardware resource 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.
That is, each function block represents each function as a block, and does not mean a specific application, hardware, or the like.

図4のフローチャートでは、まず、ステップSA1〜SA4、及び、ステップSB1〜SB4の処理により、第1通信部16と、第1接続部26との間で第1WebSocketコネクションCT1(第1の通信経路)が確立される。これにより、第1WebSocketコネクションCT1を用いて、印刷データ処理部27と、印刷制御部17との間で、非同期な双方向通信が可能な状態が構築される。
より詳細には、第1WebSocketコネクションCT1の確立に伴って、印刷制御部17と、印刷データ処理部27との間で、第1機能部間通信経路KT1(図3参照)が確立される。第1機能部間通信経路KT1は、第1WebSocketコネクションCT1を含んで構成された論理的な通信経路である。印刷制御部17と、印刷データ処理部27とは、第1機能部間通信経路KT1により、非同期の双方向通信を行うことが可能である。第1機能部間通信経路KT1により機能部と処理部との間で行われる非同期の双方向通信については後に詳述する。以下の説明では、印刷装置12の機能部と、制御サーバー10の処理部との間でデータが送受信される論理的な通信経路を総称して「機能部間通信経路」という。
また、図4のフローチャートでは、ステップSA5〜SA8、及び、ステップSB5〜SB8の処理により、第2通信部20と、第2接続部30との間で、第2WebSocketコネクションCT2(第2の通信経路)が確立される。また、第2WebSocketコネクションCT2の確立に伴って、印刷装置12のステータス管理部21と、制御サーバー10のステータス処理部29との間で第2機能部間通信経路KT2(図3参照)が確立される。
このように、本実施形態に係る印刷装置12は、電源投入等の所定の事象の発生をトリガーとして、印刷装置12が備える機能ブロックに応じて、WebSocketコネクションCTが確立され、さらに、確立されたWebSocketコネクションCTを用いた機能部間通信経路が確立される。
In the flowchart of FIG. 4, first, the first WebSocket connection CT1 (first communication path) is established between the first communication unit 16 and the first connection unit 26 by the processes of steps SA1 to SA4 and steps SB1 to SB4. Is established. As a result, a state is established in which asynchronous two-way communication is possible between the print data processing unit 27 and the print control unit 17 using the first WebSocket connection CT1.
More specifically, the first inter-function unit communication path KT1 (see FIG. 3) is established between the print control unit 17 and the print data processing unit 27 with the establishment of the first WebSocket connection CT1. The first inter-function unit communication path KT1 is a logical communication path that includes the first WebSocket connection CT1. The print control unit 17 and the print data processing unit 27 can perform asynchronous two-way communication through the first functional unit communication path KT1. Asynchronous bidirectional communication performed between the functional unit and the processing unit via the first inter-functional unit communication path KT1 will be described in detail later. In the following description, logical communication paths through which data is transmitted and received between the functional unit of the printing apparatus 12 and the processing unit of the control server 10 are collectively referred to as “inter-functional unit communication path”.
In the flowchart of FIG. 4, the second WebSocket connection CT2 (second communication path) is established between the second communication unit 20 and the second connection unit 30 by the processes of Steps SA5 to SA8 and Steps SB5 to SB8. ) Is established. Further, along with the establishment of the second WebSocket connection CT2, the second functional unit communication path KT2 (see FIG. 3) is established between the status management unit 21 of the printing apparatus 12 and the status processing unit 29 of the control server 10. The
As described above, in the printing apparatus 12 according to the present embodiment, the WebSocket connection CT is established according to the functional blocks provided in the printing apparatus 12 using the occurrence of a predetermined event such as power-on as a trigger. A communication path between functional units using the WebSocket connection CT is established.

図4(A)に示すように、印刷装置12の電源が投入されると(ステップSX1)、印刷制御部17は、印刷装置記憶部19にアクセスし、印刷装置記憶部19が記憶する第1通信先情報データ19aを取得する(ステップSA1)。
第1通信先情報データ19aとは、第1WebSocketコネクションCT1を確立する場合にアクセスするアドレス(ドメイン名や、IPアドレス、パス名等)を示すデータである。ここで、WebSocketでは、WebSocketコネクションCTの確立にあたり、クライアント(本例では、印刷装置12)は、サーバー(本例では、制御サーバー10)に対して、HTTP(Hypertext Transfer Protocol)に基づくハンドシェイクを行う。第1通信先情報データ19aには、当該ハンドシェイクに際して、メッセージを送信する送信先のアドレスが記述される。
なお、本実施形態では、印刷装置12の機能部の機能の種類に応じて、WebSocketコネクションCTを確立するときのアクセス先のアドレスが異なる。本例では、印刷制御部17と、ステータス管理部21は、その機能の種類が異なっており、印刷制御部17が第1WebSocketコネクションCT1を確立するときのアクセス先のアドレスと、ステータス管理部21が第2WebSocketコネクションCT2を確立するときのアクセス先のアドレスとは異なる。
次いで、印刷制御部17は、第1通信先情報データ19aが示すアドレスに基づいて、制御サーバー10の通信管理部25と共に、第1通信部16と第1接続部26との間に、第1WebSocketコネクションCT1を確立する(ステップSA2、ステップSB1)。つまり、印刷装置12の機能部(本例では、印刷制御部17)は、ユーザーによる指示や、制御サーバー10からの要求を受けることなく、電源の投入をトリガーとしてWebSocketコネクションCTを確立する。
なお、第1通信部16、及び、第1接続部26は、WebSocketの規格、手続きに従ってデータの送受信を行うWebSocketインターフェースである。これら機能ブロックは、例えば、WebSocketのSocketライブラリーを用いて生成される。第2通信部20、及び、第2接続部30についても同様である。
印刷装置12の印刷制御部17は、対応する第1通信部16にデータを送信すれば、WebSocketコネクションCTにより、WebSocket通信でデータを送信できる。
第1通信部16は、印刷制御部17から受信したデータについて、WebSocketに従った処理を行って、WebSocketに従った手続きで第1WebSocketコネクションCT1によりデータを送信する機能を有する。また、第1通信部16は、第1WebSocketコネクションCT1により受信したデータについて、WebSocketに従った処理を行って、印刷制御部17に送信する機能を有する。第2通信部20、第1接続部26、及び、第2接続部30についても同様である。
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. The communication destination information data 19a is acquired (step SA1).
The first communication destination information data 19a is data indicating an address (a domain name, an IP address, a path name, etc.) accessed when establishing the first WebSocket connection CT1. Here, in the WebSocket, in establishing the WebSocket connection CT, the client (printing device 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 first communication destination information data 19a, an address of a transmission destination for transmitting a message at the time of the handshake is described.
In the present embodiment, the address of the access destination when establishing the WebSocket connection CT differs depending on the type of function of the functional unit of the printing apparatus 12. In this example, the print control unit 17 and the status management unit 21 have different types of functions. The access control address when the print control unit 17 establishes the first WebSocket connection CT1 and the status management unit 21 This is different from the address of the access destination when establishing the second WebSocket connection CT2.
Next, based on the address indicated by the first communication destination information data 19a, the print control unit 17 and the communication management unit 25 of the control server 10 and the first WebSocket between the first communication unit 16 and the first connection unit 26. Connection CT1 is established (step SA2, step SB1). That is, the functional unit of the printing apparatus 12 (in this example, the print control unit 17) establishes the WebSocket connection CT using the power-on as a trigger without receiving a user instruction or 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 in accordance with WebSocket standards and procedures. These functional blocks are generated using, for example, a socket library of WebSocket. The same applies to the second communication unit 20 and the second connection unit 30.
If the print control unit 17 of the printing apparatus 12 transmits data to the corresponding first communication unit 16, the data can be transmitted by WebSocket communication using the WebSocket connection CT.
The first communication unit 16 has a function of processing the data received from the print control unit 17 according to the WebSocket, and transmitting the data through the first WebSocket connection CT1 according to the procedure according to the WebSocket. 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 print control unit 17. The same applies to the second communication unit 20, the first connection unit 26, and the second connection unit 30.

次いで、印刷装置12の印刷制御部17は、印刷装置記憶部19にアクセスし、印刷装置記憶部19に記憶される印刷装置識別情報データ19cを取得する(ステップSA3)。印刷装置識別情報とは、印刷装置12を示す識別情報である。印刷装置識別情報は、例えば、印刷装置12の製造段階で、印刷装置12に割り当てられるシリアル番号である。印刷装置記憶部19に記憶される印刷装置識別情報データ19cは、印刷装置識別情報を示すデータである。
次いで、印刷制御部17は、第1通信部16を制御して、印刷装置識別情報データ19cを、第1WebSocketコネクションCT1で送信する(ステップSA4)。
Next, the printing control unit 17 of the printing device 12 accesses the printing device storage unit 19 and acquires the printing device identification information data 19c stored in the printing device storage unit 19 (step SA3). The printing device identification information is identification information indicating the printing device 12. 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. The printing device identification information data 19c stored in the printing device storage unit 19 is data indicating printing device identification information.
Next, the print control unit 17 controls the first communication unit 16 to transmit the printing apparatus identification information data 19c through the first WebSocket connection CT1 (step SA4).

図4(B)に示すように、通信管理部25は、第1接続部26を介して、印刷装置識別情報データ19cを受信する(ステップSB2)。
次いで、通信管理部25は、コネクション管理データベース28aにアクセスする(ステップSB3)。
次いで、通信管理部25は、コネクション管理データベース28aに1件のレコードを生成する。そして、通信管理部25は、生成したレコードにおいて、ステップSB1で確立した第1WebSocketコネクションCT1のコネクション識別情報と、印刷装置識別情報とを対応付けて記憶する(ステップSB4)。コネクション識別情報とは、制御サーバー10との間で確立したWebSocketコネクションCTを識別する識別情報である。なお、通信管理部25は、第1WebSocketコネクションCT1を確立したときに、既に確立しているWebSocketコネクションCTのコネクション識別情報と異なる値のコネクション識別情報を生成する。
このステップSB4の処理により、第1WebSocketコネクションCT1と、当該コネクションにより接続された印刷装置12との関係が管理される。
As shown in FIG. 4B, the communication management unit 25 receives the printing apparatus identification information data 19c via the first connection unit 26 (step SB2).
Next, the communication management unit 25 accesses the connection management database 28a (step SB3).
Next, the communication management unit 25 generates one record in the connection management database 28a. Then, the communication management unit 25 stores the connection identification information of the first WebSocket connection CT1 established in step SB1 and the printing apparatus identification information in association with each other in the generated record (step SB4). The connection identification information is identification information for identifying the WebSocket connection CT established with the control server 10. Note that when the first WebSocket connection CT1 is established, the communication management unit 25 generates connection identification information having a value different from that of the already established WebSocket connection CT.
By the processing in step SB4, the relationship between the first WebSocket connection CT1 and the printing apparatus 12 connected by the connection is managed.

以上のようにして、第1通信部16と、第1接続部26との間で、第1WebSocketコネクションCT1が確立する。これに伴って、印刷装置12の印刷制御部17と、制御サーバー10の印刷データ処理部27との間で、第1WebSocketコネクションCT1を利用した第1機能部間通信経路KT1が確立する。印刷制御部17と、印刷データ処理部27とは、第1機能部間通信経路KT1により、非同期な双方向通信を行える。第1機能部間通信経路KT1により行われる機能部と処理部との間の非同期な双方向通信については後述する。   As described above, the first WebSocket connection CT1 is established between the first communication unit 16 and the first connection unit 26. Accordingly, a first inter-functional-unit communication path KT1 using the first WebSocket connection CT1 is established between the print control unit 17 of the printing apparatus 12 and the print data processing unit 27 of the control server 10. The print control unit 17 and the print data processing unit 27 can perform asynchronous bidirectional communication via the first functional unit communication path KT1. Asynchronous bidirectional communication between the functional unit and the processing unit performed by the first inter-functional unit communication path KT1 will be described later.

次いで、印刷装置12、及び、制御サーバー10は、ステップSA5〜SA8、及び、ステップSB5〜SB8の処理により、第2通信部20と、第2接続部30との間に第2WebSocketコネクションCT2を確立する。第2WebSocketコネクションCT2の確立に伴って、印刷装置12のステータス管理部21と、制御サーバー10のステータス処理部29との間で、第2WebSocketコネクションCT2を用いた第2機能部間通信経路KT2が確立する。第2機能部間通信経路KT2により行われる機能部と処理部との間の非同期な双方向通信については後述する。
なお、ステップSA5〜SA8、及び、ステップSB5〜8の処理は、ステップSA1〜SA4、及び、ステップSB1〜4の処理と同様であるため、以下で簡単に説明する。
すなわち、ステータス管理部21は、印刷装置記憶部19が記憶する第2通信先情報データ19bに基づいて、第2WebSocketコネクションCT2を確立する。第2通信先情報データ19bには、第2WebSocketコネクションCT2を確立する際にアクセスするアクセス先のアドレスが記述される。
第2WebSocketコネクションCT2の確立後、制御サーバー10の通信管理部25は、当該コネクションのコネクション識別情報を生成する。印刷装置12のステータス管理部21は、第2WebSocketコネクションCT2により、印刷装置識別情報データ19cを制御サーバー10に送信する。制御サーバー10の通信管理部25は、コネクション管理データベース28aにおいて、印刷装置識別情報と、コネクション識別情報とを対応付けて記憶する。
Next, the printing device 12 and the control server 10 establish the second WebSocket connection CT2 between the second communication unit 20 and the second connection unit 30 by the processes of steps SA5 to SA8 and steps SB5 to SB8. To do. Along with the establishment of the second WebSocket connection CT2, a communication path KT2 between the second functional units using the second WebSocket connection CT2 is established between the status management unit 21 of the printing apparatus 12 and the status processing unit 29 of the control server 10. To do. Asynchronous bidirectional communication between the functional unit and the processing unit performed by the second inter-functional unit communication path KT2 will be described later.
In addition, since the process of step SA5-SA8 and step SB5-8 is the same as the process of step SA1-SA4 and step SB1-4, it demonstrates easily below.
That is, the status management unit 21 establishes the second WebSocket connection CT2 based on the second communication destination information data 19b stored in the printing device storage unit 19. In the second communication destination information data 19b, an address of an access destination that is accessed when the second WebSocket connection CT2 is established is described.
After establishing the second WebSocket connection CT2, the communication management unit 25 of the control server 10 generates connection identification information for the connection. The status management unit 21 of the printing apparatus 12 transmits the printing apparatus identification information data 19c to the control server 10 through the second WebSocket connection CT2. The communication management unit 25 of the control server 10 stores the printing device identification information and the connection identification information in association with each other in the connection management database 28a.

このように、本実施形態では、電源投入をトリガーとして、印刷装置12の各機能部が、制御サーバー10との間で、WebSocketコネクションCTを確立する。そして、対応関係にある制御サーバー10の処理部と、印刷装置12の機能部との間で、WebSocketコネクションCTに基づく機能部間通信経路により、非同期で双方向通信可能な状態となる。
このため、制御サーバー10の1の処理部(例えば、印刷データ処理部27)は、印刷装置12の対応する1の機能部(例えば、印刷制御部17)からリクエストを受けることなく、任意のタイミングで、当該1の機能部にデータを送信できる。そして、当該1の処理部は、データの送信を、他の処理部(例えば、ステータス処理部29)とは独立して、当該他の処理部の通信に影響を受けることなく、また、影響を与えることなく実行可能である。同様に、印刷装置12の当該1の機能部は、任意のタイミングで、対応する当該1の処理部に対して、データを送信できる。そして、当該1の機能部は、データの送信を、他の機能部(例えば、ステータス管理部21)とは独立して、当該他の機能部の通信に影響を受けることなく、また、影響を与えることなく実行可能である。
As described above, in this embodiment, each function unit of the printing apparatus 12 establishes the WebSocket connection CT with the control server 10 using power-on as a trigger. Then, the communication unit between the processing unit of the control server 10 and the functional unit of the printing apparatus 12 that are in a correspondence relationship can be asynchronously and bidirectionally communicated via the inter-functional unit communication path based on the WebSocket connection CT.
For this reason, one processing unit (for example, the print data processing unit 27) of the control server 10 receives any request from one corresponding functional unit (for example, the print control unit 17) of the printing apparatus 12 at an arbitrary timing. Thus, data can be transmitted to the one functional unit. Then, the one processing unit does not affect the transmission of data independently from the other processing units (for example, the status processing unit 29) without being influenced by the communication of the other processing unit. It can be done without giving. Similarly, the one functional unit of the printing apparatus 12 can transmit data to the corresponding one processing unit at an arbitrary timing. Then, the one function unit affects the transmission of data independently from other function units (for example, the status management unit 21) without being affected by the communication of the other function units. It can be done without giving.

次いで、第1WebSocketコネクションCT1の確立後に、制御サーバー10の印刷データ処理部27と、印刷装置12の印刷制御部17との間で行われる通信について、印刷データ処理部27がデータを送信する場合を例にして具体的に説明する。
図5は、印刷装置12が印刷媒体に印刷するときの制御サーバー10、及び、印刷装置12の動作を示すフローチャートであり、(A)は制御サーバー10の動作を、(B)は印刷装置12の動作を示す。印刷時は、印刷データ処理部27から、印刷制御部17に対して制御データが送信される。
図5(A)に示すように、印刷データ処理部27は、印刷装置12の制御データを生成し、通信管理部25に送信する(ステップSC1)。制御データは、印刷装置12に印刷させる情報が記述されたXML(Extensible Markup Language)ファイルである。制御データには、XMLに従ったフォーマットで、印刷装置12に印刷させる情報、例えば、画像データや、画像の位置を示す情報等が記述される。
また、制御データには、印刷を実行させる印刷装置12の印刷装置識別情報が付加される。印刷装置識別情報は、ヘッダー等の制御情報部分に記述されてもよく、また、制御データの所定のタグに記述されてもよい。印刷データ処理部27は、制御対象の印刷装置12の印刷装置識別情報を管理する。
通信管理部25は、制御サーバー記憶部28に記憶されたコネクション管理データベース28aを参照する(ステップSC2)。
次いで、通信管理部25は、受信した制御データに付加された印刷装置識別情報をキーとして、コネクション管理データベース28aにおいて、当該識別情報と対応付けられたコネクション識別情報を取得する(ステップSC3)。
本実施形態では、印刷装置12との間で、機能部に応じて複数のWebSocketコネクションCTが確立される。従って、印刷装置12が複数の機能部を有する場合は、ステップSC3において、通信管理部25は、複数のコネクション識別情報を複数取得する。本例では、ステップSC3において、通信管理部25は、第1WebSocketコネクションCT1、及び、第2WebSocketコネクションCT2の2つのコネクションのコネクション識別情報を取得する。
Next, a case where the print data processing unit 27 transmits data for communication performed between the print data processing unit 27 of the control server 10 and the print control unit 17 of the printing apparatus 12 after the first WebSocket connection CT1 is established. A specific example will be described.
FIG. 5 is a flowchart showing the operation of the control server 10 and the printing device 12 when the printing device 12 prints on the print medium. FIG. 5A shows the operation of the control server 10, and FIG. The operation of is shown. At the time of printing, control data is transmitted from the print data processing unit 27 to the print control unit 17.
As shown in FIG. 5A, the print data processing unit 27 generates control data for the printing apparatus 12 and transmits it to the communication management unit 25 (step SC1). The control data is an XML (Extensible Markup Language) file in which information to be printed by the printing apparatus 12 is described. In the control data, information to be printed by the printing apparatus 12 in a format according to XML, for example, image data, information indicating the position of the image, and the like are described.
Further, printing apparatus identification information of the printing apparatus 12 that executes printing is added to the control data. The printing apparatus identification information may be described in a control information part such as a header, or may be described in a predetermined tag of control data. The print data processing unit 27 manages printing device identification information of the printing device 12 to be controlled.
The communication management unit 25 refers to the connection management database 28a stored in the control server storage unit 28 (step SC2).
Next, the communication management unit 25 acquires connection identification information associated with the identification information in the connection management database 28a using the printing apparatus identification information added to the received control data as a key (step SC3).
In the present embodiment, a plurality of WebSocket connections CT are established with the printing apparatus 12 according to the function unit. Therefore, when the printing apparatus 12 has a plurality of functional units, the communication management unit 25 acquires a plurality of pieces of connection identification information in step SC3. In this example, in step SC3, the communication management unit 25 acquires connection identification information of two connections of the first WebSocket connection CT1 and the second WebSocket connection CT2.

次いで、通信管理部25は、取得したコネクション識別情報のうち、制御データの送信に用いるWebSocketコネクションCTのコネクション識別情報を特定する(ステップSC4)。
ここで、通信管理部25は、確立したWebSocketコネクションCTに対応する制御サーバー10のWebSocketインターフェースに応じて、対応する機能部の種類を管理する。本例では、通信管理部25は、第1接続部26に対応する機能部が印刷制御部17であり、第2接続部30に対応する機能部がステータス管理部21であることを管理する。上述したように、機能部の種類に応じて、制御サーバー10におけるアクセス先が異なるため、通信管理部25は、WebSocketコネクションCTの確立時に、アクセスされたアドレスに基づいて対応する機能部の種類を特定し、管理する。
また、通信管理部25は、印刷データ処理部27と、印刷制御部17とが対応しており、印刷データ処理部27から受信したデータは、印刷制御部17に対応するWebSocketインターフェースである第1接続部26に送信することを管理する。
ここで、印刷装置12の機能部と、制御サーバー10の処理部とが対応するとは、処理部が送信したデータを機能部が処理でき、逆に、機能部が送信したデータを処理部が処理できる関係にあることをいう。従って、処理部は、対応関係にある機能部に対してデータを送信して、当該機能部の機能を実行させることができる。また、機能部は、対応関係にある処理部に対してデータを送信して、当該処理部の機能を実行させることができる。本例では、印刷装置12の印刷制御部17と、制御サーバー10の印刷データ処理部27とが対応する。また、印刷装置12のステータス管理部21と、制御サーバー10のステータス処理部29とが対応する。
ステップSC4では、通信管理部25は、印刷制御部17に係るWebSocketコネクションCTのコネクション識別情報を、制御データの送信に用いるWebSocketコネクションCTのコネクション識別情報として特定する。
Next, the communication management unit 25 specifies connection identification information of the WebSocket connection CT used for transmission of control data from the acquired connection identification information (step SC4).
Here, the communication management unit 25 manages the type of the corresponding functional unit according to the WebSocket interface of the control server 10 corresponding to the established WebSocket connection CT. In this example, the communication management unit 25 manages that the function unit corresponding to the first connection unit 26 is the print control unit 17 and the function unit corresponding to the second connection unit 30 is the status management unit 21. As described above, since the access destination in the control server 10 differs depending on the type of the function unit, the communication management unit 25 determines the type of the corresponding function unit based on the accessed address when the WebSocket connection CT is established. Identify and manage.
The communication management unit 25 corresponds to the print data processing unit 27 and the print control unit 17, and the data received from the print data processing unit 27 is a first WebSocket interface corresponding to the print control unit 17. The transmission to the connection unit 26 is managed.
Here, the function unit of the printing device 12 and the processing unit of the control server 10 correspond to each other so that the function unit can process the data transmitted by the processing unit, and conversely, the processing unit processes the data transmitted by the function unit. A relationship that can be done. Therefore, the processing unit can transmit data to the functional units having a correspondence relationship to execute the function of the functional unit. In addition, the functional unit can transmit data to the processing units having a correspondence relationship to execute the function of the processing unit. In this example, the print control unit 17 of the printing apparatus 12 corresponds to the print data processing unit 27 of the control server 10. Further, the status management unit 21 of the printing apparatus 12 corresponds to the status processing unit 29 of the control server 10.
In step SC4, the communication management unit 25 specifies the connection identification information of the WebSocket connection CT related to the print control unit 17 as the connection identification information of the WebSocket connection CT used for transmission of control data.

次いで、通信管理部25は、ステップSC4で特定したコネクション識別情報に係るWebSocketコネクションCT(本例では、第1WebSocketコネクションCT1)に対応する第1接続部26に制御データを送信する(ステップSC5)。
次いで、第1接続部26は、受信した制御データを、第1WebSocketコネクションCT1でWebSocket通信によりプッシュ送信する(ステップSC5)。
Next, the communication management unit 25 transmits control data to the first connection unit 26 corresponding to the WebSocket connection CT (in this example, the first WebSocket connection CT1) related to the connection identification information specified in Step SC4 (Step SC5).
Next, the first connection unit 26 push-transmits the received control data through WebSocket communication using the first WebSocket connection CT1 (step SC5).

図5(B)に示すように、第1通信部16は、WebSocket通信で、制御データを受信する(ステップSD1)。
次いで、第1通信部16は、受信した制御データを印刷制御部17に送信する(ステップSD2)。
次いで、印刷制御部17は、受信した制御データを、印刷部18のコマンド体系の制御コマンドに変換する(ステップSD3)。つまり、印刷制御部17は、XMLファイルである制御データを、印刷部18の制御基板が解釈可能なコマンドに変換する。
次いで、印刷制御部17は、制御コマンドを、印刷部18に送信する(ステップSD4)。次いで、印刷部18は、制御コマンドに基づいて、印刷媒体への印刷を実行する(ステップSD5)。
As shown in FIG. 5B, the first communication unit 16 receives control data by WebSocket communication (step SD1).
Next, the first communication unit 16 transmits the received control data to the print control unit 17 (step SD2).
Next, the print control unit 17 converts the received control data into a control command of the command system of the printing unit 18 (step SD3). That is, the print control unit 17 converts the control data that is an XML file into a command that can be interpreted by the control board of the printing unit 18.
Next, the print control unit 17 transmits a control command to the printing unit 18 (step SD4). Next, the printing unit 18 executes printing on the print medium based on the control command (step SD5).

このように、印刷データ処理部27は、第1WebSocketコネクションCT1を用いた第1機能部間通信経路KT1により、印刷制御部17に制御データをプッシュ送信する。
このように、本実施形態では、印刷装置12からのリクエストを受けることなく、制御サーバー10の印刷データ処理部27は、印刷装置12に印刷を実行させる事象が発生した場合に、印刷装置12に印刷させることができる。印刷装置12に印刷を実行させる事象が発生した場合とは、例えば、ユーザーからの指示があった場合や、通信可能に接続された外部機器からの要求があった場合、事前に定義した条件が成立した場合等、である。
このため、印刷装置12から制御サーバー10に対して間欠的にリクエストを送り、印刷装置12に印刷をさせたい場合に、当該リクエストに応じて制御データを送信する構成とした場合と比較して、より迅速に印刷を開始させることができる。また、制御サーバー10がリクエストに対する保留状態を作る構成とした場合と比較して、通信コストの増大、リソースの消費を抑制できる。
特に、本実施形態では、印刷装置12における機能部に応じてWebSocketコネクションCTが確立する。このため、印刷データ処理部27は、制御データの送信を、ステータス処理部29が行う通信に影響を与えることなく、また、影響を受けることなく実行可能である。
以上、印刷データ処理部27から印刷制御部17に対してデータを送信する場合の処理について説明したが、ステータス処理部29からステータス管理部21に対してデータを送信する場合も同様の処理が行われる。
As described above, the print data processing unit 27 pushes the control data to the print control unit 17 through the first inter-function unit communication path KT1 using the first WebSocket connection CT1.
As described above, in this embodiment, the print data processing unit 27 of the control server 10 does not receive a request from the printing apparatus 12, and when the event that causes the printing apparatus 12 to execute printing occurs in the printing apparatus 12. Can be printed. An event that causes the printing apparatus 12 to execute printing is, for example, when there is an instruction from a user or when there is a request from an external device that is connected to be communicable, This is the case.
For this reason, when a request is intermittently sent from the printing device 12 to the control server 10 and the printing device 12 wants to print, compared to a configuration in which control data is sent in response to the request, Printing can be started more quickly. Moreover, compared with the case where the control server 10 is configured to create a pending state for the request, it is possible to suppress an increase in communication cost and resource consumption.
In particular, in the present embodiment, the WebSocket connection CT is established according to the function unit in the printing apparatus 12. Therefore, the print data processing unit 27 can execute the transmission of control data without affecting the communication performed by the status processing unit 29 and without being affected.
The processing when data is transmitted from the print data processing unit 27 to the print control unit 17 has been described above, but the same processing is performed when data is transmitted from the status processing unit 29 to the status management unit 21. Is called.

次いで、第2WebSocketコネクションCT2の確立後に、制御サーバー10のステータス処理部29と、印刷装置12のステータス管理部21との間で行われる通信について、ステータス管理部21がデータを送信する場合を例にして説明する。
図6(A)に示すように、印刷装置12のステータス管理部21は、ステータス監視機構22の検出値を監視し、印刷装置12の状態に変化があったか否かを監視する(ステップSE1)。ステップSE1において、例えば、ステータス管理部21は、印刷装置12のカバーが開状態から閉状態に変移したこと、または、閉状態から開状態に変移したことを監視する。
印刷装置12の状態に変化があったことを検出した場合(ステップSE1:YES)、ステータス管理部21は、変化後の状態を示す情報を示すステータスデータを、予め定められたフォーマットで生成する(ステップSE2)。
次いで、ステータス管理部21は、ステータスデータを、第2通信部20に送信する(ステップSE3)。
次いで、第2通信部20は、第2WebSocketコネクションCT2でステータスデータを制御サーバー10に送信する(ステップSE4)。
Next, as an example, the status management unit 21 transmits data regarding communication performed between the status processing unit 29 of the control server 10 and the status management unit 21 of the printing apparatus 12 after the second WebSocket connection CT2 is established. I will explain.
As shown in FIG. 6A, the status management unit 21 of the printing apparatus 12 monitors the detection value of the status monitoring mechanism 22 to monitor whether or not the state of the printing apparatus 12 has changed (step SE1). In step SE1, for example, the status management unit 21 monitors whether the cover of the printing apparatus 12 has changed from the open state to the closed state, or has changed from the closed state to the open state.
When it is detected that the state of the printing apparatus 12 has changed (step SE1: YES), the status management unit 21 generates status data indicating information indicating the state after the change in a predetermined format ( Step SE2).
Next, the status management unit 21 transmits status data to the second communication unit 20 (step SE3).
Next, the second communication unit 20 transmits status data to the control server 10 through the second WebSocket connection CT2 (step SE4).

図6(B)に示すように、第2接続部30は、WebSocket通信で、ステータスデータを受信する(ステップSF1)。
次いで、第2接続部30は、受信したステータスデータを、通信管理部25に送信する(ステップSF2)。
次いで、通信管理部25は、ステータスデータを、ステータス管理部21に対応する処理部であるステータス処理部29に送信する(ステップSF3)。
上述したように、通信管理部25は、WebSocketコネクションCTに係る制御サーバー10のWebSocketインターフェースに応じて、対応する機能部と処理部との関係を管理する。
次いで、ステータス処理部29は、受信したステータスデータに基づいて、対応する処理を実行する(ステップSF4)。
このように、ステータス管理部21は、第2WebSocketコネクションCT2を用いた第2機能部間通信経路KT2により、ステータス処理部29に、ステータスデータをプッシュ送信する。
また、本実施形態では、印刷装置12のステータス管理部21は、印刷装置12の状態の変化があったことをトリガーとして、第2WebSocketコネクションCT2で、ステータス処理部29にステータスデータを送信可能である。
特に、本実施形態では、印刷装置12の機能部に応じてWebSocketコネクションCTが確立する。このため、ステータス管理部21は、印刷制御部17の通信に影響を与えることなく、また、影響を受けることなくステータスデータの送信を実行可能である。
以上、ステータス管理部21からステータス処理部29に対してデータを送信する場合の処理について説明したが、印刷制御部17から印刷データ処理部27に対してデータを送信する場合も同様の処理が行われる。すなわち、印刷制御部17が送信したデータについても、第1WebSocketコネクションCT1を用いた第1機能部間通信経路KT1により、印刷制御部17から印刷データ処理部27へと送信される。印刷制御部17が送信したデータとは、印刷結果を示すデータや、何らかのエラーが発生したことを示すデータ等である。
As shown in FIG. 6B, the second connection unit 30 receives the status data by WebSocket communication (step SF1).
Next, the second connection unit 30 transmits the received status data to the communication management unit 25 (step SF2).
Next, the communication management unit 25 transmits the status data to the status processing unit 29 that is a processing unit corresponding to the status management unit 21 (step SF3).
As described above, the communication management unit 25 manages the relationship between the corresponding functional units and processing units in accordance with the WebSocket interface of the control server 10 related to the WebSocket connection CT.
Next, the status processing unit 29 executes a corresponding process based on the received status data (step SF4).
As described above, the status management unit 21 pushes the status data to the status processing unit 29 through the second inter-function unit communication path KT2 using the second WebSocket connection CT2.
In the present embodiment, the status management unit 21 of the printing apparatus 12 can transmit the status data to the status processing unit 29 through the second WebSocket connection CT2 triggered by a change in the state of the printing apparatus 12. .
In particular, in the present embodiment, the WebSocket connection CT is established according to the functional unit of the printing apparatus 12. For this reason, the status management unit 21 can execute transmission of status data without affecting the communication of the print control unit 17 and without being affected.
The processing when data is transmitted from the status management unit 21 to the status processing unit 29 has been described above, but the same processing is performed when data is transmitted from the print control unit 17 to the print data processing unit 27. Is called. That is, the data transmitted by the print control unit 17 is also transmitted from the print control unit 17 to the print data processing unit 27 via the first inter-function unit communication path KT1 using the first WebSocket connection CT1. The data transmitted by the print control unit 17 is data indicating a printing result, data indicating that an error has occurred, or the like.

以上説明したように、本実施形態の制御システム1(印刷制御システム)は、印刷装置12と、制御サーバー10(印刷制御装置)と、を備える。
印刷装置12は、印刷部18と、印刷部18の動作を制御する印刷制御部17と、印刷制御部17で送信したデータを非同期の双方向通信で通信する第1通信部16と、ステータス管理部21で送信したデータを非同期の双方向通信で通信する第2通信部20と、を有する。また、制御サーバー10は、第1通信部16と非同期の双方向通信で通信する第1接続部26と、第2通信部20と非同期の双方向通信で通信する第2接続部30と、を有する。
この構成によれば、印刷装置12は、印刷制御部17、及び、印刷制御部17以外の機能を有する機能部(ステータス管理部21)について、各機能部が送信したデータを非同期の双方向通信で、制御サーバー10に送信することができる。従って、各機能部が送信したデータを、必要に応じて任意のタイミングで、非同期の双方向通信で制御サーバー10に送信して、制御サーバー10にデータに基づく処理を実行させることができる。つまり、上記構成によれば、制御システム1、及び、印刷装置12を、印刷制御部17、及び、印刷制御部17と異なる機能の機能部の複数の機能部を有することに対応させ、また、印刷装置12と、制御サーバー10とがネットワークを介して通信する構成に対応させることができる。
As described above, the control system 1 (printing control system) of the present embodiment includes the printing device 12 and the control server 10 (printing control device).
The printing apparatus 12 includes a printing unit 18, a printing control unit 17 that controls the operation of the printing unit 18, a first communication unit 16 that communicates data transmitted by the printing control unit 17 by asynchronous two-way communication, and status management. And a second communication unit 20 that communicates data transmitted by the unit 21 by asynchronous two-way communication. In addition, the control server 10 includes a first connection unit 26 that communicates with the first communication unit 16 by asynchronous bidirectional communication, and a second connection unit 30 that communicates with the second communication unit 20 by asynchronous bidirectional communication. Have.
According to this configuration, the printing apparatus 12 performs asynchronous two-way communication of data transmitted by each function unit with respect to the print control unit 17 and the function unit (status management unit 21) having functions other than the print control unit 17. Thus, it can be transmitted to the control server 10. Therefore, the data transmitted by each functional unit can be transmitted to the control server 10 by asynchronous two-way communication at any timing as required, and the control server 10 can execute processing based on the data. That is, according to the above configuration, the control system 1 and the printing apparatus 12 correspond to having a plurality of functional units having functional units different from the print control unit 17 and the print control unit 17, and A configuration in which the printing apparatus 12 and the control server 10 communicate via a network can be made.

また、本実施形態によれば、印刷装置12は、印刷制御部17と異なる機能の機能部として、印刷部18のステータスを管理するステータス管理部21を有する。
この構成によれば、ステータス管理部21は、例えば、印刷装置12の状態に変化があった場合等、ステータスに関する情報を含むデータを送信する事象が発生した場合に、非同期の双方向通信により、当該データを送信できる。
Further, according to the present embodiment, the printing apparatus 12 includes the status management unit 21 that manages the status of the printing unit 18 as a functional unit having a function different from that of the printing control unit 17.
According to this configuration, the status management unit 21 performs asynchronous bi-directional communication when an event occurs in which data including information regarding the status occurs, for example, when the state of the printing apparatus 12 has changed. The data can be transmitted.

また、本実施形態によれば、制御サーバー10の通信管理部25は、第1接続部26が第1通信部16との非同期の双方向通信の第1WebSocketコネクションCT1(第1の通信経路)を確立するときに、当該コネクションのコネクション識別情報を生成する。また、制御サーバー10の通信管理部25は、第2接続部30が第2通信部20との非同期の双方向通信の第2WebSocketコネクションCT2(第2の通信経路)を確立するときに、当該コネクションのコネクション識別情報を生成する。
この構成によれば、制御サーバー10は、確立したWebSocketコネクションCTについて、コネクション識別情報を利用して管理できる。
Further, according to the present embodiment, the communication management unit 25 of the control server 10 uses the first WebSocket connection CT1 (first communication path) of the asynchronous bidirectional communication between the first connection unit 26 and the first communication unit 16. When establishing, connection identification information of the connection is generated. The communication management unit 25 of the control server 10 establishes the connection when the second connection unit 30 establishes the second WebSocket connection CT2 (second communication path) for asynchronous two-way communication with the second communication unit 20. Generate connection identification information.
According to this configuration, the control server 10 can manage the established WebSocket connection CT using the connection identification information.

また、本実施形態によれば、制御サーバー10は、第1接続部26で送受信するデータを処理する印刷データ処理部27、及び、第2接続部30で送受信するデータを処理する処理部(ステータス処理部29)を有する。
この構成によれば、制御サーバー10は、第1接続部26、又は、第2接続部30により受信したデータについて、対応する処理部により対応する処理を実行できる。つまり、制御サーバー10は、印刷制御部17が送信したデータについては、対応する印刷データ処理部27により対応する処理を実行でき、また、ステータス管理部21が送信したデータについては、対応する処理部により対応する処理を実行できる。
Further, according to the present embodiment, the control server 10 includes a print data processing unit 27 that processes data transmitted / received by the first connection unit 26 and a processing unit (status) that processes data transmitted / received by the second connection unit 30. A processing unit 29).
According to this configuration, the control server 10 can execute a corresponding process on the data received by the first connection unit 26 or the second connection unit 30 by the corresponding processing unit. That is, the control server 10 can execute a corresponding process on the data transmitted by the print control unit 17 by the corresponding print data processing unit 27, and can also execute a corresponding processing unit on the data transmitted by the status management unit 21. The corresponding process can be executed.

なお、上述した実施の形態は、あくまでも本発明の一態様を示すものであり、本発明の範囲内で任意に変形および応用が可能である。
上述した実施形態では、印刷装置12は店舗に構築された店舗システム11に設けられていた。しかしながら、印刷装置12は、必ずしも、店舗システム11に設けられたものでなくてもよい。例えば、他のシステムに設けられたものであってもよい。
また、上述した実施形態では、制御サーバー10から、印刷装置12に対して、XMLファイルの制御データを送信していたが、制御データのデータ形式はXMLでなくともよい。例えば、他のマークアップ言語で生成されたデータであってもよく、また、印刷部18のコマンド体系の制御コマンドであってもよい。
また、図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 built in 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.
In the above-described embodiment, the control data of the XML file is transmitted from the control server 10 to the printing apparatus 12. However, the data format of the control data may not be XML. For example, it may be data generated in another markup language, or may be a control command of the command system of the printing unit 18.
Each functional block shown in FIG. 3 can be arbitrarily realized by hardware and software, and does not suggest a specific hardware configuration. Further, each 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…制御サーバー(印刷制御装置)、12…印刷装置、16…第1通信部、17…印刷制御部、18…印刷部、20…第2通信部、21…ステータス管理部(機能部)、25…通信管理部、26…第1接続部、27…印刷データ処理部、29…ステータス処理部(処理部)、30…第2接続部、CT…WebSocketコネクション、CT1…第1WebSocketコネクション(第1の通信経路)、CT2…第2WebSocketコネクション(第2の通信経路)。   DESCRIPTION OF SYMBOLS 1 ... Control system (print control system), 10 ... Control server (print control apparatus), 12 ... Printing apparatus, 16 ... 1st communication part, 17 ... Print control part, 18 ... Printing part, 20 ... 2nd communication part, DESCRIPTION OF SYMBOLS 21 ... Status management part (functional part), 25 ... Communication management part, 26 ... 1st connection part, 27 ... Print data processing part, 29 ... Status processing part (processing part), 30 ... 2nd connection part, CT ... WebSocket Connection, CT1... First WebSocket connection (first communication path), CT2... Second WebSocket connection (second communication path).

Claims (8)

印刷を行う印刷部と、
前記印刷部の動作を制御する印刷制御部と、
前記印刷制御部で送信したデータを非同期の双方向通信で通信する第1通信部と、
前記印刷制御部と異なる機能を有する機能部と、
前記機能部で送信したデータを非同期の双方向通信で通信する第2通信部と、
を有することを特徴とする印刷装置。
A printing section for printing;
A print control unit for controlling the operation of the printing unit;
A first communication unit for communicating data transmitted by the print control unit by asynchronous two-way communication;
A functional unit having a function different from that of the print control unit;
A second communication unit that communicates data transmitted by the functional unit by asynchronous two-way communication;
A printing apparatus comprising:
前記第1通信部、及び、前記第2通信部の前記非同期の双方向通信は、WebSocket通信である請求項1に記載の印刷装置。   The printing apparatus according to claim 1, wherein the asynchronous two-way communication of the first communication unit and the second communication unit is WebSocket communication. 前記機能部は、前記印刷部のステータスを管理するステータス管理部である請求項1または2に記載の印刷装置。   The printing apparatus according to claim 1, wherein the functional unit is a status management unit that manages a status of the printing unit. 印刷を行う印刷部、前記印刷部の動作を制御する印刷制御部、前記印刷制御部で送信したデータを非同期の双方向通信で通信する第1通信部、前記印刷制御部と異なる機能を有する機能部、前記機能部で送信したデータを非同期の双方向通信で通信する第2通信部を有する印刷装置と、
前記第1通信部と非同期の双方向通信で通信する第1接続部、及び前記第2通信部と非同期の双方向通信で通信する第2接続部を有する印刷制御装置と、
を備えることを特徴とする印刷制御システム。
A function having functions different from those of the printing control unit that performs printing, a printing control unit that controls the operation of the printing unit, a first communication unit that communicates data transmitted by the printing control unit by asynchronous two-way communication, and the printing control unit A printing apparatus having a second communication unit for communicating data transmitted by the functional unit by asynchronous two-way communication;
A first control unit that communicates with the first communication unit by asynchronous two-way communication; and a print control apparatus having a second connection unit that communicates with the second communication unit by asynchronous two-way communication;
A printing control system comprising:
前記印刷制御装置は、前記第1接続部が前記第1通信部との非同期の双方向通信の第1の通信経路を確立するときに、前記第1の通信経路の識別情報を生成する通信管理部を有する請求項4に記載の印刷制御システム。   The print control apparatus generates communication identification information for the first communication path when the first connection section establishes a first communication path for asynchronous two-way communication with the first communication section. The printing control system according to claim 4, further comprising a printing unit. 前記印刷制御装置の前記通信管理部は、前記第2接続部が前記第2通信部との非同期の双方向通信の第2の通信経路を確立するときに、前記第2の通信経路の識別情報を生成する請求項5に記載の印刷制御システム。   The communication management unit of the print control apparatus identifies the second communication path when the second connection unit establishes a second communication path for asynchronous bidirectional communication with the second communication unit. The print control system according to claim 5, wherein the print control system is generated. 前記第1通信部と前記第1接続部との非同期の双方向通信、及び前記第2通信部と前記第2接続部との非同期の双方向通信は、WebSocket通信である請求項4乃至6のいずれか1項に記載の印刷制御システム。   The asynchronous bidirectional communication between the first communication unit and the first connection unit and the asynchronous bidirectional communication between the second communication unit and the second connection unit are WebSocket communication. The print control system according to any one of the above. 前記印刷制御装置は、前記第1接続部で送受信するデータを処理する印刷データ処理部、及び前記第2接続部で送受信するデータを処理する処理部を有する請求項4乃至7のいずれか1項に記載の印刷制御システム。   8. The print control apparatus according to claim 4, further comprising: a print data processing unit that processes data transmitted and received by the first connection unit; and a processing unit that processes data transmitted and received by the second connection unit. The printing control system described in 1.
JP2013228252A 2013-11-01 2013-11-01 Printer and print control system Pending JP2015088105A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013228252A JP2015088105A (en) 2013-11-01 2013-11-01 Printer and print control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013228252A JP2015088105A (en) 2013-11-01 2013-11-01 Printer and print control system

Publications (1)

Publication Number Publication Date
JP2015088105A true JP2015088105A (en) 2015-05-07

Family

ID=53050776

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013228252A Pending JP2015088105A (en) 2013-11-01 2013-11-01 Printer and print control system

Country Status (1)

Country Link
JP (1) JP2015088105A (en)

Similar Documents

Publication Publication Date Title
US10091388B2 (en) Print control system and print control method
US9195419B2 (en) Print control system
JP6291846B2 (en) Print control system, print control method, and printing apparatus
EP2953033B1 (en) Control system and control method for the control system
CN104765579A (en) POS Control System, Control Method of POS Control System, and Printing Device
JP6354153B2 (en) Information processing system, image forming apparatus, information processing method, and information processing program
JP6287215B2 (en) POS control system, printing apparatus, and control method of POS control system
JP2015088105A (en) Printer and print control system
JP2015130087A (en) POS control system and control method of POS control system
JP6331337B2 (en) Print control system and printing apparatus
JP6281248B2 (en) Printing apparatus, printing apparatus control method, and printing control system
JP6268931B2 (en) Print control apparatus and print control system
JP6260231B2 (en) Print control system and print control method
JP2015148874A (en) Print control system control method and print control system
JP2015090646A (en) Printing control device and printing control system
JP2015090643A (en) Print control apparatus and print control system
JP6252115B2 (en) Print control system
JP2015146153A (en) Print control system, and control method of print control system
JP6343931B2 (en) Print control system and print control method
JP2015090644A (en) Printing control device and printing control system
JP6269055B2 (en) Print control system control method, print control system, and printing apparatus
JP2015106245A (en) Print control system and print control method
JP6221681B2 (en) Print control system and print control method
JP2015135635A (en) POS system and POS system control method
JP2015148873A (en) Control system and control system control method