JP2013061836A - Server, data processor, data processing method - Google Patents

Server, data processor, data processing method Download PDF

Info

Publication number
JP2013061836A
JP2013061836A JP2011200267A JP2011200267A JP2013061836A JP 2013061836 A JP2013061836 A JP 2013061836A JP 2011200267 A JP2011200267 A JP 2011200267A JP 2011200267 A JP2011200267 A JP 2011200267A JP 2013061836 A JP2013061836 A JP 2013061836A
Authority
JP
Japan
Prior art keywords
processing
data
error
server
connection
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.)
Withdrawn
Application number
JP2011200267A
Other languages
Japanese (ja)
Inventor
Yasuhiro Oshima
康裕 大島
Yasuhiro Furuta
泰大 古田
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 JP2011200267A priority Critical patent/JP2013061836A/en
Publication of JP2013061836A publication Critical patent/JP2013061836A/en
Withdrawn legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

PROBLEM TO BE SOLVED: To notify a user of a reason of processing interruption in a data processor.SOLUTION: A server comprises: a request processing unit for transmitting processing data to a data processor in response to a transmission request of the processing data by HTTP connection from the data processor; a disconnection processing unit for disconnecting the HTTP connection when an error occurs before the data processor completes processing using the processing data, and in response to reception of notification of error information including information indicating processing interruption due to the error and information indicating contents of the error from the data processor by connection other than the HTTP connection; a storage unit for storing the error information in association with the data processor and the processing; and a notification unit for notifying a user of the fact that the processing in the data processor is interrupted due to the error and the error contents on the basis of the saved error information.

Description

本発明は、サーバー、データ処理装置、データ処理方法に関し、クラウドコンピューティングシステムにおいてユーザーからサーバー経由で取得した要求に応じて処理を実行する技術に関する。   The present invention relates to a server, a data processing device, and a data processing method, and to a technique for executing processing in response to a request acquired from a user via a server in a cloud computing system.

従来、電子メールの送信によって特定のプリンターに印刷を実行させることができるサービスを提供するクラウドコンピューティングシステムが知られている(例えば特許文献1)。このクラウドコンピューティングシステム(以下,単に印刷システムという)は、特定の電子メールを受信すると電子メールに基づいて特定のプリンターに対応した印刷データを生成するサーバーを備え、サーバーに登録されている特定のプリンターはサーバーから印刷データを取得して印刷を実行する。したがって印刷システムの利用者は、PC(Personal Computer)、スマートフォン等のクライアント端末にプリンタードライバーがインストールされていない場合であっても、印刷システムに登録されているプリンターを利用することが可能になる。   2. Description of the Related Art Conventionally, a cloud computing system that provides a service that allows a specific printer to execute printing by sending an e-mail is known (for example, Patent Document 1). This cloud computing system (hereinafter simply referred to as a printing system) includes a server that generates print data corresponding to a specific printer based on an e-mail when a specific e-mail is received, and a specific registered in the server The printer acquires print data from the server and executes printing. Therefore, the user of the printing system can use the printer registered in the printing system even when the printer driver is not installed in a client terminal such as a PC (Personal Computer) or a smartphone.

特開2008−71257号公報JP 2008-71257 A

このような印刷システムにおいては、ユーザーが送信した電子メールに基づいてサーバーが印刷データを生成し、プリンターに対して印刷ジョブの存在を通知し、通知を受けたプリンターはサーバーに対して印刷データの送信要求を行って印刷データを取得しながら印刷を実行している。プリンターが搭載しているメモリサイズにはコストの観点から制限があるので、印刷が終了した部分の印刷データについてはメモリから破棄し次に処理すべき部分の印刷データのためにメモリ領域を確保する。このようにプリンターは、印刷データを取得しながら印刷を行うため、印刷データの取得途中でプリンターにおいてエラーが発生した場合、印刷を続行することができないため印刷データをメモリから破棄することができず、メモリが未処理の印刷データでやがて満杯になり後続して送信された印刷データを受信できない状態となる。   In such a printing system, the server generates print data based on the email sent by the user, notifies the printer of the existence of the print job, and the printer that received the notification sends the print data to the server. Printing is performed while acquiring print data by making a transmission request. Since the memory size installed in the printer is limited from the viewpoint of cost, the print data of the part that has been printed is discarded from the memory and a memory area is secured for the part of the print data to be processed next. . Since the printer performs printing while acquiring print data in this way, if an error occurs in the printer during print data acquisition, printing cannot be continued and printing data cannot be discarded from memory. The memory eventually fills up with unprocessed print data, and the print data transmitted subsequently cannot be received.

プリンターにおいてエラーが発生した場合、従来はエラーが発生したため印刷を終了するという動作となっており、エラー発生後の動作については特に考慮されていない。この印刷システムのユーザーはプリンターから離れた遠隔地から電子メールを送信することによってプリンターを利用することも想定されるため、従来の場合は遠隔地にいるユーザーは印刷が途中で終了した理由について知ることができなかった。
本発明は、上記課題にかんがみてなされたもので、データ処理装置における処理中断の理由をユーザーに報知することを目的とする。
When an error occurs in the printer, conventionally, the operation is to end printing because an error has occurred, and the operation after the occurrence of the error is not particularly considered. Since users of this printing system are expected to use the printer by sending e-mail from a remote location away from the printer, the user at the remote location knows why the printing ended halfway in the past. I couldn't.
The present invention has been made in view of the above problems, and an object of the present invention is to notify a user of the reason for interruption of processing in a data processing apparatus.

上記目的を達成するためのサーバーは、要求処理部と、切断処理部と、保存部と、報知部と、を備える。要求処理部は、データ処理装置からの処理データのHTTP接続での送信要求に応じて処理データをデータ処理装置に送信する。切断処理部は、処理データを用いた処理をデータ処理装置が完了する前にエラーが発生し、当該エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報が前記HTTP接続とは別の接続でデータ処理装置から通知されたことに応じて、前記HTTP接続を切断する。保存部は、エラー情報を、データ処理装置と前記処理とに対応付けて保存する。報知部は、保存されたエラー情報に基づいて、データ処理装置の処理がエラーによって中断したことと当該エラーの内容とをユーザーに報知する。報知部に関しては、サーバーを介してユーザーに報知することができればよく、報知の態様は特に限定されない。   A server for achieving the above object includes a request processing unit, a disconnection processing unit, a storage unit, and a notification unit. The request processing unit transmits the processing data to the data processing device in response to the transmission request of the processing data from the data processing device via the HTTP connection. The disconnection processing unit generates an error before the data processing apparatus completes the processing using the processing data, and error information including information indicating processing interruption due to the error and information indicating the content of the error is the HTTP connection. The HTTP connection is disconnected in response to the notification from the data processing apparatus through a connection different from the above. The storage unit stores the error information in association with the data processing device and the process. Based on the stored error information, the notification unit notifies the user that the processing of the data processing device has been interrupted due to an error and the content of the error. The notification unit is not particularly limited as long as it can be notified to the user via the server.

ユーザーはサーバーの報知部を利用することにより、データ処理装置から離れた遠隔地からであってもデータ処理装置における処理中断の原因となったエラーについて認識することができる。また、処理データの送信に使用されるHTTP接続をエラー情報の通知に応じて切断することにより、HTTP接続を維持するためにサーバーにかかる負荷を早期に解消することができる。なお、「前記HTTP接続とは別の接続」とは、処理データの送信要求や当該送信要求に応じた処理データの送信を行うHTTP接続とは別に確立されるHTTP接続であってもよい。あるいは、データ処理装置から任意のタイミングでサーバーへ任意の情報を送信することができれば、別のプロトコルを用いた接続でもよい。   By using the notification unit of the server, the user can recognize the error that caused the processing interruption in the data processing device even from a remote place away from the data processing device. In addition, by disconnecting the HTTP connection used for transmitting the processing data in response to the notification of the error information, it is possible to quickly eliminate the load on the server in order to maintain the HTTP connection. The “connection different from the HTTP connection” may be an HTTP connection established separately from an HTTP connection for transmitting a processing data transmission request and processing data corresponding to the transmission request. Alternatively, a connection using another protocol may be used as long as arbitrary information can be transmitted from the data processing apparatus to the server at an arbitrary timing.

上記目的を達成するためのサーバーにおいては、さらに、電子メール受信部と、印刷データ生成部と、印刷ジョブ通知部と、を備えても良い。電子メール受信部は、データ処理装置としての印刷装置であって特定の印刷装置に割り当てられた電子メールアドレス宛の電子メールを受信する。印刷データ生成部は、受信した電子メールに基づいて処理データとしての印刷データを生成する。印刷ジョブ通知部は、生成された印刷データを含む印刷ジョブの存在を前記HTTP接続とは別の接続としてのXMPP接続で印刷装置に通知する。サーバーが電子メール受信部と印刷データ生成部と印刷ジョブ通知部とをさらに備える場合に、保存部は、印刷装置と印刷ジョブとに対応付けてエラー情報を保存し、報知部は、保存されたエラー情報に基づいて、印刷装置における印刷ジョブがエラーによって中断したことと当該エラーの内容とをユーザーに報知するようにしてもよい。   The server for achieving the above object may further include an e-mail receiving unit, a print data generating unit, and a print job notifying unit. The e-mail receiving unit is a printing apparatus as a data processing apparatus and receives an e-mail addressed to an e-mail address assigned to a specific printing apparatus. The print data generation unit generates print data as processing data based on the received electronic mail. The print job notification unit notifies the printing apparatus of the existence of a print job including the generated print data through an XMPP connection as a connection different from the HTTP connection. When the server further includes an e-mail receiving unit, a print data generation unit, and a print job notification unit, the storage unit stores error information in association with the printing device and the print job, and the notification unit stores the error information. Based on the error information, the user may be notified of the fact that the print job in the printing apparatus has been interrupted due to an error and the content of the error.

印刷装置に割り当てられた電子メールアドレス宛に送信された電子メールに基づいて生成した印刷データに対応する印刷ジョブの存在を通知するために印刷装置との間で確立されているXMPP接続を利用して、エラー情報の通知を受け付けることにより、このXMPP接続とも前述のHTTP接続とも違う別の接続を印刷装置との間に新たに確立してエラー情報の通知を受け付ける場合と比較して、サーバーおよび印刷装置の両方における新たな接続確立のための処理負担を軽減できる。   An XMPP connection established with the printing apparatus is used to notify the existence of a print job corresponding to the print data generated based on the e-mail transmitted to the e-mail address assigned to the printing apparatus. By receiving the error information notification, the server and the server are compared with the case where another connection different from the XMPP connection and the above-described HTTP connection is newly established with the printing apparatus and the error information notification is received. The processing burden for establishing a new connection in both printing apparatuses can be reduced.

上記目的を達成するためのデータ処理装置は、要求部と、受信部と、処理部と、通知部と、を備える。要求部は、HTTP接続でサーバーに対して処理データの送信要求を行う。受信部は、送信要求に応じてサーバーから前記HTTP接続で送信された処理データを受信する。処理部は、受信した処理データを順次取得し、当該処理データを用いて処理を行う。通知部は、処理データを用いた処理を完了する前にエラーが発生した場合に、エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報を前記HTTP接続とは別の接続でサーバーに通知する。   A data processing apparatus for achieving the above object includes a requesting unit, a receiving unit, a processing unit, and a notification unit. The request unit makes a transmission request for processing data to the server through an HTTP connection. The receiving unit receives the processing data transmitted from the server through the HTTP connection in response to the transmission request. The processing unit sequentially acquires the received processing data and performs processing using the processing data. When an error occurs before the processing using the processing data is completed, the notification unit sends error information including information indicating processing interruption due to the error and information indicating the content of the error separately from the HTTP connection. Notify the server with a connection.

データ処理装置がこのような構成を採用していることにより、エラーが発生した場合にサーバーにエラー情報を通知することができる。その結果、処理データの送信に用いられているHTTP接続であってエラー発生により処理データの受信を続行できないHTTP接続の切断をサーバーに促すことができる。サーバーはエラー情報の通知に応じてHTTP接続を切断することにより、HTTP接続を維持するためにサーバーにかかる負荷を早期に解消することができる。また、ユーザーに対してエラーについて報知するための情報(エラー情報)をサーバーに受け渡すことができる。   Since the data processing apparatus employs such a configuration, error information can be notified to the server when an error occurs. As a result, it is possible to prompt the server to disconnect the HTTP connection that is used to transmit the processing data and cannot continue receiving the processing data due to an error. By disconnecting the HTTP connection in response to the notification of the error information, the server can quickly eliminate the load on the server in order to maintain the HTTP connection. In addition, information (error information) for notifying the user of the error can be passed to the server.

なお、請求項に記載された各手段の機能は、構成自体で機能が特定されるハードウェア資源、プログラムにより機能が特定されるハードウェア資源、又はそれらの組み合わせにより実現される。また、これら各手段の機能は、各々が物理的に互いに独立したハードウェア資源で実現されるものに限定されない。また、サーバーは1台のコンピューター装置からなる構成に限らず、複数のコンピューター装置が協働して上述のサーバーとして動作する構成も含む。さらに、本発明は方法としても、コンピュータープログラムとしても、そのプログラムの記録媒体としても成立する。むろん、そのコンピュータープログラムの記録媒体は、磁気記録媒体であってもよいし光磁気記録媒体であってもよいし、今後開発されるいかなる記録媒体であってもよい。   Note that the function of each means described in the claims is realized by hardware resources whose function is specified by the configuration itself, hardware resources whose function is specified by a program, or a combination thereof. The functions of these means are not limited to those realized by hardware resources that are physically independent of each other. In addition, the server is not limited to a configuration including a single computer device, but includes a configuration in which a plurality of computer devices cooperate to operate as the server. Furthermore, the present invention can be realized as a method, a computer program, and a recording medium for the program. Of course, the recording medium for the computer program may be a magnetic recording medium, a magneto-optical recording medium, or any recording medium developed in the future.

本発明の実施形態にかかる印刷システムを示すブロック図。1 is a block diagram showing a printing system according to an embodiment of the present invention. 本発明の実施形態にかかる印刷シーケンスのシーケンスチャート。5 is a sequence chart of a printing sequence according to the embodiment of the present invention. 第一実施形態にかかる接続を示す模式図。The schematic diagram which shows the connection concerning 1st embodiment. 第一実施形態にかかるエラー情報の報知例を示す模式図。The schematic diagram which shows the alerting | reporting example of the error information concerning 1st embodiment. 他の実施形態にかかる接続を示す模式図。The schematic diagram which shows the connection concerning other embodiment.

以下、本発明の実施の形態を添付図面を参照しながら説明する。尚、各図において対応する構成要素には同一の符号が付され、重複する説明は省略される。   Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In addition, the same code | symbol is attached | subjected to the corresponding component in each figure, and the overlapping description is abbreviate | omitted.

1.第一実施形態
1−1.構成
図1は、本実施形態におけるプリンター(データ処理装置、印刷装置に相当する)3とサーバー2とを含む印刷システム全体の構成を示すブロック図である。図1に示す印刷システムは、サーバー2に登録された複数のプリンターのそれぞれに対応付けられた電子メールアドレスを宛先とする電子メールを任意の通信端末1から送信すると、宛先の電子メールアドレスに対応付けられたプリンター3において電子メールの添付ファイルや本文が印刷される機能を実現する。サーバー2、プリンター3、通信端末1はインターネット4に接続される。
1. 1. First embodiment 1-1. Configuration FIG. 1 is a block diagram showing the overall configuration of a printing system including a printer (corresponding to a data processing apparatus and a printing apparatus) 3 and a server 2 in this embodiment. The printing system shown in FIG. 1 corresponds to a destination e-mail address when an e-mail addressed to an e-mail address associated with each of a plurality of printers registered in the server 2 is transmitted from an arbitrary communication terminal 1. The attached printer 3 realizes a function of printing an attached file or text of an e-mail. The server 2, printer 3, and communication terminal 1 are connected to the Internet 4.

サーバー2は1以上のコンピューターによって構成され、アプリケーションサーバー21,SMTPサーバー22,HTTPサーバー23,XMPPサーバー24,HTTPサーバー25を含む。アプリケーションサーバー21,SMTPサーバー22,HTTPサーバー23,XMPPサーバー24,HTTPサーバー25のそれぞれは、図示しないCPUとRAMとROMとハードディスク装置と通信部とそれらを接続する内部インターフェースとを備えている。通信部はインターネットからLANを経由して受信する信号をプロトコルに従って変換して内部バスに送出し、内部バスから取り込んだ信号をプロトコルに従って変換してLANを経由してインターネットに送出する。サーバー2に含まれる各サーバーはLANに接続され互いに通信が可能である。   The server 2 includes one or more computers, and includes an application server 21, an SMTP server 22, an HTTP server 23, an XMPP server 24, and an HTTP server 25. Each of the application server 21, SMTP server 22, HTTP server 23, XMPP server 24, and HTTP server 25 includes a CPU, a RAM, a ROM, a hard disk device, a communication unit, and an internal interface for connecting them. The communication unit converts a signal received from the Internet via the LAN according to the protocol and transmits the converted signal to the internal bus, converts a signal received from the internal bus according to the protocol and transmits the converted signal to the Internet via the LAN. Each server included in the server 2 is connected to a LAN and can communicate with each other.

SMTPサーバー22は、アプリケーションサーバー21に登録されたプリンター3に割り当てられた電子メールアドレス宛の電子メールをSMTP(Simple Mail Transfer Protocol)に基づいて送受信する機能を有し、「電子メール受信部」として機能する。HTTPサーバー23はプリンター3とHTTP(Hyper Text Transfer Protocol)に基づいて通信する機能を有し、印刷データ(処理データ)をプリンター3に送信する「要求処理部」として機能する。またHTTPサーバー23は、プリンター3から送信された後述するエラー情報に基づいてプリンター3とのHTTP接続を切断する機能を有し、「切断処理部」としても機能する。XMPPサーバー24はプリンター3とXMPP(Extensible Messaging and Presence Protocol)に基づいて通信する機能を有し、プリンター3に印刷ジョブ有り通知を送信する「印刷ジョブ通知部」として機能する。   The SMTP server 22 has a function of transmitting and receiving an e-mail addressed to an e-mail address assigned to the printer 3 registered in the application server 21 based on SMTP (Simple Mail Transfer Protocol). Function. The HTTP server 23 has a function of communicating with the printer 3 based on HTTP (Hyper Text Transfer Protocol), and functions as a “request processing unit” that transmits print data (processing data) to the printer 3. Further, the HTTP server 23 has a function of disconnecting an HTTP connection with the printer 3 based on error information (described later) transmitted from the printer 3, and also functions as a “disconnection processing unit”. The XMPP server 24 has a function of communicating with the printer 3 based on XMPP (Extensible Messaging and Presence Protocol), and functions as a “print job notification unit” that transmits a print job notification to the printer 3.

アプリケーションサーバー21は、SMTPに基づいて電子メールを受信すると、当該電子メールに基づいて対応するプリンター3に応じた印刷データを生成し(「印刷データ生成部」に相当)、XMPPに基づいて対応するプリンター3に印刷ジョブ有り通知を送信し、生成した印刷データをプリンター3からのHTTPに基づいた送信要求に応じてプリンター3に送信する機能を有する。また、アプリケーションサーバー21は、プリンター3に対応する内部IDと対応付けて、プリンター3に対応する電子メールアドレスやXMPPログインパスワードや管理ページのURLや管理ページのパスワードを保存し管理する機能を有する。さらにアプリケーションサーバー21は、プリンター3に要求した印刷ジョブごとに、印刷ジョブのステータスや、印刷ジョブに対応する各種の属性情報を保存する機能を有しており、「保存部」としても機能する。印刷ジョブのステータスは印刷ジョブの実行状況を示す情報であり、プリンター3における各種のエラー発生時にプリンター3から通知されたエラー情報や、印刷終了時にプリンター3から通知された情報等に基づいて更新される。より具体的には例えば、印刷ジョブのステータスは、アプリケーションサーバー21の履歴記録データベースに履歴情報として追加される。なお、各種のエラーとは例えば、印刷用紙やOHPシート等の印刷媒体がなくなったことを示すエラーや、インク等の着色剤がなくなったことを示すエラーや、紙詰まりエラーなどである。このようなエラーの内容を示す情報も履歴情報に追加され記憶される。管理ページとは、プリンターごとに記憶されているこれらの情報をユーザーが閲覧したり編集したりするためのWEBページである。本実施形態では特に、プリンター3に対して要求した印刷ジョブごとに、そのステータスをユーザー(閲覧者)に報知する(エラーが発生した印刷ジョブに関してはそのエラーの内容も報知する)ためのWEBページについて説明する。HTTPサーバー25は、この管理ページを表示するための表示データを生成し公開する機能を有し、「報知部」として機能する。   When the application server 21 receives an e-mail based on SMTP, the application server 21 generates print data corresponding to the corresponding printer 3 based on the e-mail (corresponding to a “print data generation unit”), and responds based on XMPP. It has a function of transmitting a print job notification to the printer 3 and transmitting the generated print data to the printer 3 in response to a transmission request from the printer 3 based on HTTP. The application server 21 has a function of storing and managing an e-mail address, an XMPP login password, a management page URL, and a management page password corresponding to the printer 3 in association with the internal ID corresponding to the printer 3. Further, the application server 21 has a function of storing the status of the print job and various attribute information corresponding to the print job for each print job requested from the printer 3, and also functions as a “storage unit”. The print job status is information indicating the execution status of the print job, and is updated based on error information notified from the printer 3 when various errors occur in the printer 3, information notified from the printer 3 at the end of printing, or the like. The More specifically, for example, the status of the print job is added to the history record database of the application server 21 as history information. The various errors include, for example, an error indicating that a print medium such as a printing paper or an OHP sheet has run out, an error indicating that a colorant such as ink has run out, a paper jam error, and the like. Information indicating the content of such an error is also added to the history information and stored. The management page is a WEB page for the user to browse and edit the information stored for each printer. In the present embodiment, in particular, for each print job requested to the printer 3, a WEB page for notifying the user (viewer) of the status (for the print job in which an error has occurred, also notifies the contents of the error). Will be described. The HTTP server 25 has a function of generating and publishing display data for displaying the management page, and functions as a “notification unit”.

プリンター3は、サーバー2とのXMPPを用いた常時接続によってサーバー2から印刷ジョブ有り通知を通知されると、HTTPを用いて印刷データをサーバー2から受信し、印刷を実行する機能を有する。したがってプリンター3は、CPU、ROM、RAM等を備えたコントローラー31、印刷部35等の通常のプリンターの構成要素に加えて、インターネット4を介して各種のデータを送受信するための通信部34を備えている。通信部34はインターネット4からLANを経由して受信する信号をプロトコルに従って変換して内部バスに送出し、内部バスから取り込んだ信号をプロトコルに従って変換してLANを経由してインターネットに送出する。コントローラー31のROMにはRAMに読み込まれCPUによって実行される通信プログラムや印刷プログラムなどの種々のコンピュータープログラムが記憶されている。これらのコンピュータープログラムをCPUが実行することによって、プリンター3の各種の機能が実現される。   The printer 3 has a function of receiving print data from the server 2 using HTTP and executing printing when the server 2 is notified of the presence of a print job through a constant connection with the server 2 using XMPP. Accordingly, the printer 3 includes a communication unit 34 for transmitting and receiving various data via the Internet 4 in addition to the components of a normal printer such as a controller 31 having a CPU, ROM, RAM, and the like, and a printing unit 35. ing. The communication unit 34 converts the signal received from the Internet 4 via the LAN according to the protocol and sends it to the internal bus, and converts the signal received from the internal bus according to the protocol and sends it to the Internet via the LAN. The ROM of the controller 31 stores various computer programs such as a communication program and a printing program that are read into the RAM and executed by the CPU. Various functions of the printer 3 are realized by the CPU executing these computer programs.

通信プログラムは、サーバー2とTCP/IP、HTTP、XMPP等の通信プロトコルに従った通信を行うためのプログラムである。なお、HTTPやXMPPを用いてサーバー2と接続するために必要な情報は後述する印刷シーケンスに先立って予めコントローラー31は取得済みである。受信バッファー32は、通信プログラムを実行するコントローラー31が通信部34を介して外部から受信したデータを記憶するメモリであり、印刷データやなど様々なデータが一旦格納されるメモリである。通信プログラムを実行するコントローラー31および通信部34は、印刷データの送信要求をサーバー2に対して行う「要求部」に相当する。また、通信プログラムを実行するコントローラー31と通信部34と受信バッファー32とは、サーバー2から送信された印刷データを受信する「受信部」に相当する。   The communication program is a program for performing communication with the server 2 according to a communication protocol such as TCP / IP, HTTP, XMPP or the like. It should be noted that the controller 31 has acquired in advance information necessary for connecting to the server 2 using HTTP or XMPP prior to a print sequence described later. The reception buffer 32 is a memory that stores data received from the outside by the controller 31 that executes the communication program via the communication unit 34, and is a memory that temporarily stores various data such as print data. The controller 31 and the communication unit 34 that execute the communication program correspond to a “request unit” that makes a print data transmission request to the server 2. The controller 31, the communication unit 34, and the reception buffer 32 that execute the communication program correspond to a “reception unit” that receives print data transmitted from the server 2.

印刷プログラムは、受信バッファー32に記憶されている印刷データを読み出して処理バッファー33に転送し、印刷前処理を施してプリンター3における印刷に適した形式のデータに印刷データを変換し、変換後のデータに基づいて印刷部35を制御して印刷を行う機能を有するプログラムである。印刷プログラムを実行するコントローラー31と、印刷部35と処理バッファー33とは「処理部」に相当する。本実施形態においては、サーバー2が印刷対象をレンダリングして印刷データを生成しプリンター3に送信する。また本実施形態において、印刷前処理は、サーバー2から受信した印刷データに対して施す、解像度変換処理や、色変換処理や、ハーフトーン処理や、並べ替え処理等を指す。処理バッファー33は、受信バッファー32に記憶された様々なデータの中から抽出され読み出された印刷データに対して前述の印刷前処理を施す際に処理前や処理過程や処理後のデータを記憶するためのメモリである。印刷前処理に含まれる前述の各処理のデータ受け渡しのためにそれぞれ設けられたバッファーメモリをまとめて処理バッファー33と呼ぶ。また、印刷プログラムは、一つの印刷ジョブに含まれる印刷データに対する印刷前処理を全て完了する前にプリンター3においてエラーが発生した場合に、印刷前処理や印刷部35による印刷動作を中断させる機能を有する。また、通信プログラムは、プリンター3においてエラーが発生するとXMPP接続を利用してXMPPサーバー24にエラー情報を通知する機能を有する。そのため通信プログラムと印刷プログラムとを実行するコントローラー31および通信部34は「通知部」に相当する。   The print program reads the print data stored in the reception buffer 32, transfers it to the processing buffer 33, performs pre-print processing, converts the print data into data in a format suitable for printing in the printer 3, and converts the converted data. This is a program having a function of controlling the printing unit 35 based on data and performing printing. The controller 31 that executes the printing program, the printing unit 35, and the processing buffer 33 correspond to a “processing unit”. In the present embodiment, the server 2 renders a print target, generates print data, and transmits the print data to the printer 3. In the present embodiment, the pre-printing process refers to a resolution conversion process, a color conversion process, a halftone process, a rearrangement process, and the like performed on the print data received from the server 2. The processing buffer 33 stores pre-processing, processing steps, and post-processing data when the above-described pre-print processing is performed on the print data extracted and read out from various data stored in the reception buffer 32. It is a memory to do. The buffer memories respectively provided for data transfer of the above-described processes included in the pre-printing process are collectively referred to as a processing buffer 33. In addition, the printing program has a function of interrupting the printing pre-processing and the printing operation by the printing unit 35 when an error occurs in the printer 3 before completing all the printing pre-processing for the print data included in one print job. Have. Further, the communication program has a function of notifying the XMPP server 24 of error information using an XMPP connection when an error occurs in the printer 3. Therefore, the controller 31 and the communication unit 34 that execute the communication program and the printing program correspond to a “notification unit”.

1−2.印刷シーケンス
図1に示す印刷システムにおいては、通信端末1からプリンター3に対応付けられた電子メールアドレス宛の電子メールが添付ファイルとともに送信されたとき、プリンター3において添付ファイルの印刷が即座に実行されることが望まれる。また、プリンター3が印刷要求を即時に取得するためにサーバー2をHTTPに基づいたメッセージを使ってポーリングすることはサーバー2の負荷とネットワークトラフィックの観点から望ましくない。そこで、プリンター3はXMPPに基づいた印刷ジョブ有り通知をサーバー2から受信する。XMPPは、双方向にメッセージを送信できる所謂プッシュ型のプロトコルであるため、プリンター3によるサーバー2のポーリングは不要となる。プリンター3の電源がオン状態のとき、通信エラーやその他のエラーが特に発生していなければ、サーバー2とプリンター3とは、XMPP接続が常時確立された状態である。
1-2. Printing Sequence In the printing system shown in FIG. 1, when an e-mail addressed to an e-mail address associated with the printer 3 is transmitted from the communication terminal 1 together with the attached file, the attached file is immediately printed in the printer 3. It is hoped that In addition, it is not desirable from the viewpoint of the load on the server 2 and the network traffic that the printer 3 polls the server 2 using a message based on HTTP in order to immediately obtain a print request. Therefore, the printer 3 receives from the server 2 a print job presence notification based on XMPP. XMPP is a so-called push-type protocol that can send a message in both directions, so that polling of the server 2 by the printer 3 is not necessary. If no communication error or other error has occurred when the printer 3 is turned on, the server 2 and the printer 3 are in a state where the XMPP connection is always established.

図2は、本実施形態における印刷シーケンスのシーケンスチャートであって、さらに詳細には、一つの印刷ジョブに含まれる印刷データに対するプリンター3における印刷前処理が完了する前にプリンター3にエラーが発生する場合のシーケンスチャートである。なお、図2のシーケンスチャートでは、発明の要部を明確にするため、HTTP接続の確立や切断のシーケンスの詳細や、各通信に応答するACKやFIN等の記載を省略している。   FIG. 2 is a sequence chart of a print sequence according to the present embodiment. More specifically, an error occurs in the printer 3 before the pre-printing process in the printer 3 for print data included in one print job is completed. It is a sequence chart in the case. In the sequence chart of FIG. 2, in order to clarify the main part of the invention, details of the HTTP connection establishment / disconnection sequence, and ACK and FIN responding to each communication are omitted.

はじめに、プリンター3に対応付けられた電子メールアドレス宛に通信端末1から送信された電子メールをSMTPサーバー22が受信する(S100)と、アプリケーションサーバー21は電子メールに基づいて添付ファイルなどの印刷対象をレンダリングして印刷データを生成する。また、アプリケーションサーバー21は、印刷データに対応する印刷ジョブのジョブIDや管理ページのURLを含んだ返信用の電子メールを生成し、SMTPサーバー22が当該返信用の電子メールを通信端末1に送信する(S105)。そしてXMPPを用いてXMPPサーバー24は印刷ジョブ有り通知をプリンター3に送信する(S110)。XMPPサーバー24からXMPP接続で送信された印刷ジョブ有り通知を受信すると、プリンター3のコントローラー31はHTTPサーバー23とHTTP接続を確立し(S115)、HTTPのgetリクエストでコンテンツ情報の送信要求をHTTPサーバー23に送信する(S120)。プリンター3から送信されたコンテンツ情報の送信要求を受信したHTTPサーバー23は、印刷ジョブのコンテンツ情報をプリンター3に送信する(S125)。ここでコンテンツ情報には、印刷ジョブのジョブIDや、印刷データのダウンロード先URIや、印刷データのドキュメントフォーマット等の印刷ジョブに関する情報が含まれている。コンテンツ情報は通信部34を経て受信バッファー32に記憶される。コントローラー31は受信バッファー32に記憶されているデータを解析しコンテンツ情報を取得する。コンテンツ情報取得後コントローラー31はコンテンツ情報を受信バッファー32から破棄する。   First, when the SMTP server 22 receives an email transmitted from the communication terminal 1 to the email address associated with the printer 3 (S100), the application server 21 prints an attached file or the like based on the email. To generate print data. The application server 21 generates a reply e-mail including the job ID of the print job corresponding to the print data and the URL of the management page, and the SMTP server 22 transmits the reply e-mail to the communication terminal 1. (S105). Using the XMPP, the XMPP server 24 transmits a print job presence notification to the printer 3 (S110). Upon receiving the print job presence notification transmitted from the XMPP server 24 through the XMPP connection, the controller 31 of the printer 3 establishes an HTTP connection with the HTTP server 23 (S115), and sends a request for sending content information with the HTTP get request to the HTTP server. (S120). Upon receiving the content information transmission request transmitted from the printer 3, the HTTP server 23 transmits the content information of the print job to the printer 3 (S125). Here, the content information includes information related to the print job such as the job ID of the print job, the download destination URI of the print data, and the document format of the print data. The content information is stored in the reception buffer 32 via the communication unit 34. The controller 31 analyzes the data stored in the reception buffer 32 and acquires content information. After acquiring the content information, the controller 31 discards the content information from the reception buffer 32.

続いてコントローラー31は、HTTPのgetリクエストで印刷データの送信要求をHTTPサーバー23に送信する(S130)。印刷データのダウンロード先URIはS125でプリンター3が受信したコンテンツ情報に含まれている。なおS130においては、S110で通知された印刷ジョブに含まれる印刷データ全体を対象とした送信要求を行う。HTTPサーバー23はプリンター3からの印刷データ送信要求を受けて、HTTP接続で印刷データを先頭から所定サイズずつプリンター3に送信する(S135)。   Subsequently, the controller 31 transmits a print data transmission request to the HTTP server 23 using an HTTP get request (S130). The download destination URI of the print data is included in the content information received by the printer 3 in S125. In S130, a transmission request is made for the entire print data included in the print job notified in S110. The HTTP server 23 receives the print data transmission request from the printer 3, and transmits the print data to the printer 3 by a predetermined size from the top by HTTP connection (S135).

サーバー2から送信された印刷データは通信部34や通信プログラムを実行するコントローラー31により、受信バッファー32に格納される。続いてコントローラー31は、受信バッファー32に格納されている印刷データを処理バッファー33に空きがあれば処理バッファー33に転送する。処理バッファー33に転送済みの印刷データは受信バッファー32から破棄される。コントローラー31は、処理バッファー33に転送した印刷データを対象に印刷前処理を施す。そして、印刷前処理を施されたデータに基づいてコントローラー31は印刷部35を制御して印刷を実行する。印刷が完了した部分に相当する処理バッファー33内のデータは破棄される。   The print data transmitted from the server 2 is stored in the reception buffer 32 by the communication unit 34 and the controller 31 that executes the communication program. Subsequently, the controller 31 transfers the print data stored in the reception buffer 32 to the processing buffer 33 if there is a vacancy in the processing buffer 33. The print data that has been transferred to the processing buffer 33 is discarded from the reception buffer 32. The controller 31 performs pre-printing processing on the print data transferred to the processing buffer 33. Then, the controller 31 controls the printing unit 35 based on the data subjected to the pre-printing process to execute printing. Data in the processing buffer 33 corresponding to the portion where printing has been completed is discarded.

コントローラー31が、印刷データの受信、印刷データの受信バッファー32から処理バッファー33への転送、印刷前処理、印刷実行の工程を繰り返している途中で、プリンター3においてエラーが発生した場合のシーケンスについて以降で説明する。プリンター3においてエラーが発生すると、プリンター3では印刷を続行できないため、コントローラー31は印刷部35に印刷動作を中断させるとともに印刷前処理も中断する。コントローラー31は処理バッファー33内のデータを印刷再開に備えて破棄せずに一旦残す。そして、コントローラー31は、エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報を、XMPPサーバー24との間で常時確立されているXMPP接続でXMPPサーバー24に送信する(S140)。   The sequence in the case where an error occurs in the printer 3 while the controller 31 is repeating the process of receiving print data, transferring the print data from the reception buffer 32 to the processing buffer 33, pre-printing processing, and printing execution will be hereinafter described. I will explain it. When an error occurs in the printer 3, the printer 3 cannot continue printing, so the controller 31 causes the printing unit 35 to interrupt the printing operation and interrupt the pre-printing process. The controller 31 temporarily leaves the data in the processing buffer 33 without discarding it in preparation for resuming printing. Then, the controller 31 transmits error information including information indicating processing interruption due to an error and information indicating the content of the error to the XMPP server 24 through an XMPP connection that is always established with the XMPP server 24 ( S140).

図3は、図2に示すエラー発生時にプリンター3とサーバー2との間に確立されている接続を示している。このときサーバー2とプリンター3との間ではXMPP接続とHTTP接続が確立されている。XMPP接続は、上述したようにジョブ有り通知などの情報をXMPPサーバー24からプリンター3に送信するためにプリンター3との間で常時確立されている接続である。図中のHTTP接続は、プリンター3から要求されたコンテンツ情報や印刷データをサーバー2からプリンター3へ受け渡すためにプリンター3とHTTPサーバー23との間で一時的に確立される接続である。印刷データの送信が完了すればこのHTTP接続は解消されるが、エラーが発生すると、印刷動作および印刷前処理が停止し、処理バッファー33内に空きが生じないため、コントローラー31は受信バッファー32内の印刷データを処理バッファー33に転送しない。そのため受信バッファー32は、サーバー2から続々と受信した印刷データを含むデータで満たされ、後続の印刷データを受信できない状態(ゼロウィンドウ状態)でHTTP接続が保たれた状態となる。   FIG. 3 shows a connection established between the printer 3 and the server 2 when the error shown in FIG. 2 occurs. At this time, an XMPP connection and an HTTP connection are established between the server 2 and the printer 3. The XMPP connection is a connection that is always established with the printer 3 in order to transmit information such as a job presence notification from the XMPP server 24 to the printer 3 as described above. The HTTP connection in the figure is a connection that is temporarily established between the printer 3 and the HTTP server 23 in order to transfer content information and print data requested from the printer 3 from the server 2 to the printer 3. When the transmission of the print data is completed, the HTTP connection is canceled. However, if an error occurs, the printing operation and the pre-printing process are stopped, and no space is generated in the processing buffer 33. Is not transferred to the processing buffer 33. Therefore, the reception buffer 32 is filled with data including print data successively received from the server 2, and the HTTP connection is maintained in a state where the subsequent print data cannot be received (zero window state).

エラーが解消され印刷の再開が可能となる時期は未定であり、当該時期までこのHTTP接続を維持し続けることは、サーバー2に負荷を与える。具体的には、HTTP接続ごとに確保しておくメモリ領域を長期間解放できない状態となり、その結果、他の通信端末から送信された電子メールを受信してから印刷を実行するまでの時間が遅延しうる。プリンター3側のゼロウィンドウ状態が所定期間(例えば5分間)続いたことによって、HTTPサーバー23(あるいはHTTPサーバー23とプリンター3との間に存在するプロキシーサーバー等のネットワーク機器)がHTTP接続を切断することも考えられるが、いずれにしても前述の所定期間の長さによってはHTTPサーバー23に負荷をかけることになり遅延が生じやすくなる。この遅延を防止するために、XMPPサーバー24がプリンター3からXMPP接続でエラー情報を受信しアプリケーションサーバー21がエラーによって印刷が中断したことを示す情報を取得すると、HTTPサーバー23にプリンター3とのHTTP接続を切断する指示を行い、HTTPサーバー23は、プリンター3とのHTTP接続を切断するためのデータを送信する(S145)。具体的には例えば、HTTPサーバー23はRST(Reset)をプリンター3に送信する。この結果、プリンター3とHTTPサーバー23との間のHTTP接続は切断される。HTTP接続が切断されると、プリンター3のコントローラー31は、受信バッファー32に格納されていた印刷データを破棄する。また、S140でXMPPサーバー24がプリンター3からエラー情報を受信すると、アプリケーションサーバー21は、受信したエラー情報に基づいて決定される最新のステータス(すなわちこの場合「中断」)をプリンター3に現在要求している印刷ジョブのジョブIDに対応する履歴情報に追加してアプリケーションサーバー21の履歴記録データベースに保存する。   The time when the error is resolved and the printing can be resumed is undecided, and maintaining the HTTP connection until this time places a load on the server 2. Specifically, the memory area reserved for each HTTP connection cannot be released for a long time, and as a result, the time from receipt of an e-mail sent from another communication terminal to execution of printing is delayed. Yes. When the zero window state on the printer 3 side continues for a predetermined period (for example, 5 minutes), the HTTP server 23 (or a network device such as a proxy server existing between the HTTP server 23 and the printer 3) disconnects the HTTP connection. In any case, depending on the length of the predetermined period, a load is applied to the HTTP server 23 and a delay is likely to occur. In order to prevent this delay, when the XMPP server 24 receives error information from the printer 3 through the XMPP connection and the application server 21 acquires information indicating that printing has been interrupted due to an error, the HTTP server 23 receives the HTTP with the printer 3. An instruction to disconnect the connection is issued, and the HTTP server 23 transmits data for disconnecting the HTTP connection with the printer 3 (S145). Specifically, for example, the HTTP server 23 transmits RST (Reset) to the printer 3. As a result, the HTTP connection between the printer 3 and the HTTP server 23 is disconnected. When the HTTP connection is disconnected, the controller 31 of the printer 3 discards the print data stored in the reception buffer 32. When the XMPP server 24 receives error information from the printer 3 in S140, the application server 21 currently requests the printer 3 for the latest status determined based on the received error information (that is, “suspend” in this case). In addition to the history information corresponding to the job ID of the print job being stored, it is stored in the history recording database of the application server 21.

HTTPサーバー25は、通信端末1のユーザーが通信端末1からプリンター3に割り当てられた電子メールアドレス宛に送信した電子メールに基づく印刷の状況をユーザーに報知するための管理ページを提供する。ユーザーはプリンター3に対応する管理ページを、WEBブラウザーを用いて閲覧することができる。管理ページのURLは、S105でSMTPサーバー22が通信端末1に対して返信した電子メールに記載されている。通信端末1のユーザーがWEBブラウザーを用いて管理ページを閲覧するための操作を行うと、通信端末1は、エラー情報を閲覧するための管理ページの表示データの送信要求をHTTPサーバー25に送信する(S150)と、HTTPサーバー25はアプリケーションサーバー21の履歴記録データベースに保存してあるプリンター3に要求した印刷ジョブごとの履歴情報を参照し、印刷ジョブごとの最新のステータス(中断の印刷ジョブについてはエラーの内容も含む)を示した表示データを生成し、当該表示データを通信端末1に送信する(S155)。このとき表示する印刷ジョブには、印刷が完了したことによって既にサーバー2から削除されている印刷ジョブも含まれていることが望ましい。通信端末1は、HTTPサーバー25から受信した表示データに基づいて管理ページをWEBブラウザーに表示する。ユーザーは通信端末1のWEBブラウザーを用いて印刷ジョブの状況を認知することができる。   The HTTP server 25 provides a management page for notifying the user of the printing status based on the email transmitted from the communication terminal 1 to the email address assigned to the printer 3 by the user of the communication terminal 1. The user can browse the management page corresponding to the printer 3 using a WEB browser. The URL of the management page is described in the e-mail returned from the SMTP server 22 to the communication terminal 1 in S105. When the user of the communication terminal 1 performs an operation for browsing a management page using a WEB browser, the communication terminal 1 transmits a transmission request for display data of the management page for browsing error information to the HTTP server 25. (S150), the HTTP server 25 refers to the history information for each print job requested to the printer 3 stored in the history record database of the application server 21, and the latest status for each print job (for suspended print jobs). Display data indicating that the error is included) is generated, and the display data is transmitted to the communication terminal 1 (S155). The print job displayed at this time preferably includes a print job that has already been deleted from the server 2 due to the completion of printing. The communication terminal 1 displays a management page on the WEB browser based on the display data received from the HTTP server 25. The user can recognize the status of the print job using the WEB browser of the communication terminal 1.

図4はプリンター3に依頼された印刷ジョブとそのステータスの一覧を表示する管理ページの例を示している。このページでは、エラー発生時にプリンター3から通知されたエラー情報や印刷終了時にプリンター3から通知された情報などに基づいて印刷ジョブごとにステータスが表示される。エラーにより印刷が中断している印刷ジョブに関しては、エラー情報に基づいて中断している旨と、エラー情報に基づいて中断理由(エラーの内容)が表示される。図4の例では、備考欄に中断理由が表示されている。なお、ステータスの種類としては「中断」の他に例えば、S110からS130までの状態であることを示す「印刷開始前」、S135からS145又は後述するS170からS175までの状態であることを示す「印刷中」、印刷が終了したことを示す「印刷終了」、などがあってもよい。このようにエラー情報をプリンター3から取得しユーザーに報知する構成を設けることにより、ユーザーは外出先からでも通信端末1を用いてプリンター3に実行させた印刷ジョブの状態を確認することができる。なお、このようなジョブごとのステータスの一覧を表示するようなページにおいては、他に様々な印刷ジョブの属性情報を表示してユーザーがステータスを確認したい印刷ジョブを区別しやすいようにしてもよい。例えば電子メールの受付日時や、電子メールの送信者の識別情報や印刷対象の識別情報(例えば電子メールの添付ファイルのファイル名)などが表示されてもよい。   FIG. 4 shows an example of a management page that displays a list of print jobs requested by the printer 3 and their statuses. In this page, the status is displayed for each print job based on error information notified from the printer 3 when an error occurs, information notified from the printer 3 when printing is completed, and the like. For a print job whose printing has been interrupted due to an error, the fact that it has been interrupted based on the error information and the reason for interruption (contents of the error) are displayed based on the error information. In the example of FIG. 4, the reason for interruption is displayed in the remarks column. As the status type, in addition to “interrupt”, for example, “before printing” indicating that the state is from S110 to S130, S135 to S145, or S170 to S175 described later is indicated. There may be “printing”, “printing completed” indicating that printing is completed, and the like. By providing a configuration for acquiring error information from the printer 3 and notifying the user as described above, the user can check the status of the print job executed by the printer 3 using the communication terminal 1 even when the user is away from home. In addition, on such a page that displays a list of statuses for each job, various print job attribute information may be displayed so that the user can easily distinguish print jobs for which the status is to be checked. . For example, the reception date and time of the email, the identification information of the sender of the email, the identification information to be printed (for example, the file name of the attached file of the email), and the like may be displayed.

なお、その後プリンター3においてエラーが解消されると、プリンター3のコントローラー31は、改めてHTTPサーバー23とHTTP接続を確立して(S160)、再び印刷データの送信要求を送信し(S165)、HTTPサーバー23は送信要求に応じて印刷データをプリンター3に送信し、アプリケーションサーバー21も送信要求に応じてプリンター3の印刷が再開されて印刷中であるというステータスを、現在要求している印刷ジョブのジョブIDと対応付する履歴情報に追加してアプリケーションサーバー21内の履歴記録データベースに保存する(S170)。このとき、コントローラー31は中断時の続きから印刷を再開する場合は、印刷前処理の対象となった印刷データを除く残りの部分を範囲指定して送信要求するようにしてもよい。印刷前処理の対象となった印刷データのデータ量は、受信バッファー32から処理バッファー33への転送時に転送するデータの累積データ量をカウントしておくことで取得することができる。また範囲指定した送信要求はHTTPのrangeヘッダーを用いることで実現できる。範囲指定された送信要求をプリンター3から受けた場合、HTTPサーバー23は指定された範囲の印刷データをプリンター3に送信する。なお、もちろん、印刷を最初のページからやり直す場合は、S130と同様に印刷ジョブに含まれる印刷データ全体に対する送信要求を行ってもよい。   After that, when the error is resolved in the printer 3, the controller 31 of the printer 3 establishes an HTTP connection with the HTTP server 23 again (S160), transmits a print data transmission request again (S165), and the HTTP server. 23 transmits print data to the printer 3 in response to the transmission request, and the application server 21 also displays a status indicating that the printing of the printer 3 has been resumed in response to the transmission request and the job of the currently requested print job. In addition to the history information associated with the ID, it is stored in the history record database in the application server 21 (S170). At this time, when the printing is resumed from the continuation at the time of interruption, the controller 31 may make a transmission request by designating a range of the remaining part excluding the print data subjected to the pre-printing process. The amount of print data to be subjected to pre-printing processing can be obtained by counting the cumulative amount of data transferred during transfer from the reception buffer 32 to the processing buffer 33. A range-specified transmission request can be realized by using an HTTP range header. When a transmission request with a specified range is received from the printer 3, the HTTP server 23 transmits print data in the specified range to the printer 3. Of course, when printing is restarted from the first page, a transmission request for the entire print data included in the print job may be made as in S130.

プリンター3のコントローラー31および印刷部35は、受信した印刷データに基づいて印刷を実行する。一つの印刷ジョブに対応する印刷が完了すると、プリンター3は印刷ジョブステータス(印刷終了)をHTTPサーバー23にHTTP接続で通知し(S175)、他にプリンター3に対する印刷ジョブが存在しなければHTTPサーバー23はプリンター3とのHTTP接続を切断し(S180)、印刷シーケンスを終了する。   The controller 31 and the printing unit 35 of the printer 3 execute printing based on the received print data. When printing corresponding to one print job is completed, the printer 3 notifies the print job status (printing end) to the HTTP server 23 via the HTTP connection (S175), and if there is no other print job for the printer 3, the HTTP server 23 disconnects the HTTP connection with the printer 3 (S180), and ends the printing sequence.

2.他の実施形態
尚、本発明の技術的範囲は、上述した実施例に限定されるものではなく、本発明の要旨を逸脱しない範囲内において種々変更を加え得ることは勿論である。例えば、上記実施形態においてエラー情報をサーバー2とプリンター3の間で常時接続しているXMPP接続を用いて送信していたが、印刷データの送信に使用されるHTTP接続とは別のHTTP接続を用いてエラー情報をサーバー2に送信してもよい。図5は、この場合のエラー情報を送信するための接続を説明する図である。図5に示すXMPP接続は、上記実施形態と同様の、印刷ジョブ有り通知を送信するために常時接続されている接続である。第一のHTTP接続は、印刷データ送信用の接続であり、プリンター3におけるエラー発生で残りの印刷データを送信できない状態で継続している接続である。第二のHTTP接続は、プリンター3においてエラーが発生した後、プリンター3からエラー情報をサーバー2に送信するためにプリンター3とHTTPサーバー23との間で新たに確立するHTTP接続である。印刷データの送信途中でプリンター3においてエラーが発生した場合にプリンター3は新たに確立された第二のHTTP接続でエラー情報をHTTPサーバー23に送信する。第二のHTTP接続はエラー情報を送信しサーバー2がエラー情報を受信した後に切断される。サーバー2は第二のHTTP接続でエラー情報を受信すると、上記実施形態のS145と同様に第一のHTTP接続を切断する。
2. Other Embodiments The technical scope of the present invention is not limited to the above-described embodiments, and it goes without saying that various modifications can be made without departing from the scope of the present invention. For example, in the above embodiment, error information is transmitted using the XMPP connection that is always connected between the server 2 and the printer 3, but an HTTP connection that is different from the HTTP connection used to transmit print data is used. The error information may be transmitted to the server 2 by using it. FIG. 5 is a diagram for explaining a connection for transmitting error information in this case. The XMPP connection shown in FIG. 5 is a connection that is always connected in order to transmit a print job presence notification similar to the above embodiment. The first HTTP connection is a connection for transmitting print data, and is a connection that continues in a state where the remaining print data cannot be transmitted due to an error in the printer 3. The second HTTP connection is an HTTP connection newly established between the printer 3 and the HTTP server 23 in order to transmit error information from the printer 3 to the server 2 after an error occurs in the printer 3. When an error occurs in the printer 3 during the transmission of print data, the printer 3 transmits error information to the HTTP server 23 through the newly established second HTTP connection. The second HTTP connection is disconnected after the error information is transmitted and the server 2 receives the error information. When the server 2 receives the error information through the second HTTP connection, the server 2 disconnects the first HTTP connection as in S145 of the above embodiment.

また、アプリケーションサーバー21が履歴情報として記憶するステータスやエラーは、XMPP接続や印刷データの送信に使用されるHTTP接続とは別のHTTP接続を用いてプリンター3から通知されるものに限定されない。例えば、印刷データの送信に使用されるHTTP接続の確立に失敗したというエラーや、その状態を示すステータスを履歴情報として記憶してもよい。また例えば、印刷データの送信に使用されるHTTP接続でプリンター3から通知された印刷キャンセルなどのエラーや、その状態を示すステータスを履歴情報として記憶してもよい。また例えば、通信端末1のユーザーからプリンター3を経由せずに通知された印刷キャンセルなどのエラーや、その状態を示すステータス、などについても履歴情報として記憶しても良い。
また、プリンター3の所有者が、自らの通信端末からWEBブラウザーを用いて管理ページを閲覧できるようにしても良い。この場合、管理ページのURLは、印刷シーケンスに先立ち予めプリンター3の所有者の通信端末において取得されている。
The status and error stored as history information by the application server 21 are not limited to those notified from the printer 3 using an HTTP connection different from the HTTP connection used for the XMPP connection or the transmission of print data. For example, an error indicating that the establishment of an HTTP connection used for transmission of print data has failed and a status indicating the status may be stored as history information. Further, for example, an error such as a print cancellation notified from the printer 3 through an HTTP connection used for transmission of print data, and a status indicating the status may be stored as history information. Further, for example, an error such as print cancellation notified from the user of the communication terminal 1 without going through the printer 3, a status indicating the state, and the like may be stored as history information.
Further, the owner of the printer 3 may be able to browse the management page from his / her communication terminal using a WEB browser. In this case, the URL of the management page is acquired in advance at the communication terminal of the owner of the printer 3 prior to the printing sequence.

また、上記実施形態ではデータ処理装置がプリンターに適用される例を説明したが、サーバーに対して処理データを要求し、サーバーから取得した処理データを用いてなんらかの処理を行う様々な装置に本発明を適用可能である。
また、上記実施形態では、「報知部」によるエラー情報に基づく情報の報知を、WEBページとして準備し当該ページを通信端末1から閲覧することで実現していたが、例えばサーバー2から通信端末1に対してエラー情報に基づいてエラーの発生とエラーの内容を通知する電子メールを送信することでユーザーに報知してもよい。
In the above-described embodiment, an example in which the data processing apparatus is applied to a printer has been described. However, the present invention is applicable to various apparatuses that request processing data from a server and perform some processing using the processing data acquired from the server. Is applicable.
Further, in the above embodiment, the information notification based on the error information by the “notification unit” is realized as a WEB page and viewed from the communication terminal 1, but for example, the server 2 to the communication terminal 1. The user may be notified by sending an e-mail notifying the occurrence of the error and the content of the error based on the error information.

なお、上記実施形態においては、コンテンツ情報の送信要求〜受信、および、印刷データの送信要求〜受信は、一続きのHTTPセッションで行われているが、コンテンツ情報の送信要求〜受信(図2のS120〜S125)の後にHTTPセッションを切断し、印刷データの送信要求(図2のS130)の前に新たにHTTPセッションを確立して印刷データの送信要求〜受信を行ってもよい。   In the above embodiment, the content information transmission request to reception and the print data transmission request to reception are performed in a series of HTTP sessions, but the content information transmission request to reception (see FIG. 2). The HTTP session may be disconnected after S120 to S125), and a new HTTP session may be established before the print data transmission request (S130 in FIG. 2) to perform the print data transmission request to reception.

1:通信端末、2:サーバー、3:プリンター、4:インターネット、21:アプリケーションサーバー、22:SMTPサーバー、23:HTTPサーバー、24:XMPPサーバー、25:HTTPサーバー、31:コントローラー、32:受信バッファー、33:処理バッファー、34:通信部、35:印刷部   1: Communication terminal, 2: Server, 3: Printer, 4: Internet, 21: Application server, 22: SMTP server, 23: HTTP server, 24: XMPP server, 25: HTTP server, 31: Controller, 32: Receive buffer 33: processing buffer, 34: communication unit, 35: printing unit

Claims (5)

データ処理装置からの処理データのHTTP接続での送信要求に応じて前記処理データを前記データ処理装置に送信する要求処理部と、
前記処理データを用いた処理を前記データ処理装置が完了する前にエラーが発生し、当該エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報が前記HTTP接続とは別の接続で前記データ処理装置から通知されたことに応じて、前記HTTP接続を切断する切断処理部と、
前記エラー情報を、前記データ処理装置と前記処理とに対応付けて保存する保存部と、
保存された前記エラー情報に基づいて、前記データ処理装置における前記処理が前記エラーによって中断したことと当該エラーの内容とをユーザーに報知する報知部と、
を備えるサーバー。
A request processing unit that transmits the processing data to the data processing device in response to a transmission request of the processing data from the data processing device via an HTTP connection;
An error occurs before the data processing apparatus completes processing using the processing data, and error information including information indicating processing interruption due to the error and information indicating the content of the error is different from the HTTP connection. A disconnection processing unit for disconnecting the HTTP connection in response to being notified from the data processing device in connection of
A storage unit for storing the error information in association with the data processing device and the process;
Based on the stored error information, a notification unit for notifying a user that the processing in the data processing device is interrupted by the error and the content of the error;
Server with
前記データ処理装置としての印刷装置であって特定の前記印刷装置に割り当てられた電子メールアドレス宛の電子メールを受信する電子メール受信部と、
受信した前記電子メールに基づいて前記処理データとしての印刷データを生成する印刷データ生成部と、
前記印刷データに関する印刷ジョブの存在を前記HTTP接続とは別の接続としてのXMPP接続で前記印刷装置に通知する印刷ジョブ通知部と、
を備え、
前記保存部は、前記印刷装置と前記印刷ジョブとに対応付けて前記エラー情報を保存し、
前記報知部は、保存された前記エラー情報に基づいて、前記印刷装置における前記印刷ジョブが前記エラーによって中断したことと当該エラーの内容とをユーザーに報知する、
請求項1に記載のサーバー。
An e-mail receiving unit for receiving an e-mail addressed to an e-mail address assigned to the specific printing apparatus as the data processing apparatus;
A print data generation unit that generates print data as the processing data based on the received e-mail;
A print job notification unit for notifying the printing apparatus of the presence of a print job related to the print data through an XMPP connection as a connection different from the HTTP connection;
With
The storage unit stores the error information in association with the printing apparatus and the print job;
The notification unit notifies the user that the print job in the printing apparatus has been interrupted due to the error and the content of the error based on the stored error information.
The server according to claim 1.
HTTP接続でサーバーに対して処理データの送信要求を行う要求部と、
前記送信要求に応じて前記サーバーから前記HTTP接続で送信された前記処理データを受信する受信部と、
受信した前記処理データを順次取得し、当該処理データを用いて処理を行う処理部と、
前記処理データを用いた前記処理を完了する前にエラーが発生した場合に、当該エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報を前記HTTP接続とは別の接続で前記サーバーに通知する通知部と、
を備えるデータ処理装置。
A request unit for requesting transmission of processing data to the server through an HTTP connection;
A receiving unit for receiving the processing data transmitted from the server via the HTTP connection in response to the transmission request;
A processing unit that sequentially acquires the received processing data and performs processing using the processing data;
If an error occurs before completing the processing using the processing data, error information including information indicating processing interruption due to the error and information indicating the content of the error is connected to the connection different from the HTTP connection. A notification unit for notifying the server at
A data processing apparatus comprising:
データ処理装置からの処理データのHTTP接続での送信要求に応じて前記処理データを前記データ処理装置に送信する要求処理工程と、
前記処理データを用いた処理を前記データ処理装置が完了する前にエラーが発生し、当該エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報が前記HTTP接続とは別の接続で前記データ処理装置から通知されたことに応じて、前記HTTP接続を切断する切断処理工程と、
前記エラー情報を、前記データ処理装置と前記処理とに対応付けて保存する保存工程と、
保存された前記エラー情報に基づいて、前記データ処理装置における前記処理が前記エラーによって中断したことと当該エラーの内容とをユーザーに報知する報知工程と、
を含むサーバーのデータ処理方法。
A request processing step of transmitting the processing data to the data processing device in response to a transmission request of the processing data from the data processing device over an HTTP connection;
An error occurs before the data processing apparatus completes processing using the processing data, and error information including information indicating processing interruption due to the error and information indicating the content of the error is different from the HTTP connection. A disconnection process step of disconnecting the HTTP connection in response to being notified from the data processing device in connection of
A storage step of storing the error information in association with the data processing device and the processing;
Based on the stored error information, a notification step of notifying the user that the process in the data processing device has been interrupted by the error and the content of the error;
Server data processing method including.
HTTP接続でサーバーに対して処理データの送信要求を行う要求工程と、
前記送信要求に応じて前記サーバーから前記HTTP接続で送信された前記処理データを受信する受信工程と、
受信した前記処理データを順次取得し、当該処理データを用いて処理を行う処理工程と、
前記処理データを用いた前記処理を完了する前にエラーが発生した場合に、当該エラーによる処理中断を示す情報と当該エラーの内容を示す情報とを含むエラー情報を前記HTTP接続とは別の接続で前記サーバーに通知する通知工程と、
を含むデータ処理装置のデータ処理方法。
A request process for requesting transmission of processing data to the server via HTTP connection;
A receiving step of receiving the processing data transmitted from the server via the HTTP connection in response to the transmission request;
A processing step of sequentially obtaining the received processing data and performing processing using the processing data;
If an error occurs before completing the processing using the processing data, error information including information indicating processing interruption due to the error and information indicating the content of the error is connected to the connection different from the HTTP connection. A notification step of notifying the server at
A data processing method for a data processing apparatus including:
JP2011200267A 2011-09-14 2011-09-14 Server, data processor, data processing method Withdrawn JP2013061836A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011200267A JP2013061836A (en) 2011-09-14 2011-09-14 Server, data processor, data processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011200267A JP2013061836A (en) 2011-09-14 2011-09-14 Server, data processor, data processing method

Publications (1)

Publication Number Publication Date
JP2013061836A true JP2013061836A (en) 2013-04-04

Family

ID=48186449

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011200267A Withdrawn JP2013061836A (en) 2011-09-14 2011-09-14 Server, data processor, data processing method

Country Status (1)

Country Link
JP (1) JP2013061836A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016117186A (en) * 2014-12-19 2016-06-30 株式会社沖データ Image formation apparatus and image formation system
JP2017134780A (en) * 2016-01-29 2017-08-03 キヤノン株式会社 Processing system, control method of processing system, processor, and server
JP2018034375A (en) * 2016-08-30 2018-03-08 キヤノンマーケティングジャパン株式会社 Output system, output device, control method, and program
US11467787B2 (en) 2020-06-05 2022-10-11 Brother Kogyo Kabushiki Kaisha Communication system, first server, second server, non-transitory computer-readable recording medium storing computer-readable instructions for first server and non-transitory computer-readable recording medium storing computer-readable instructions for second server
JP7251264B2 (en) 2019-03-28 2023-04-04 Tdk株式会社 Manufacturing method of RTB system permanent magnet

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016117186A (en) * 2014-12-19 2016-06-30 株式会社沖データ Image formation apparatus and image formation system
JP2017134780A (en) * 2016-01-29 2017-08-03 キヤノン株式会社 Processing system, control method of processing system, processor, and server
JP2018034375A (en) * 2016-08-30 2018-03-08 キヤノンマーケティングジャパン株式会社 Output system, output device, control method, and program
JP7251264B2 (en) 2019-03-28 2023-04-04 Tdk株式会社 Manufacturing method of RTB system permanent magnet
US11467787B2 (en) 2020-06-05 2022-10-11 Brother Kogyo Kabushiki Kaisha Communication system, first server, second server, non-transitory computer-readable recording medium storing computer-readable instructions for first server and non-transitory computer-readable recording medium storing computer-readable instructions for second server

Similar Documents

Publication Publication Date Title
JP5810761B2 (en) Process control server and process control method
JP5703791B2 (en) Printing system and printer
US8947701B2 (en) Server apparatus, terminal apparatus, and printing system and data conversion method thereof
US9563389B2 (en) Image processing system, gateway apparatus, server apparatus, method of controlling gateway apparatus, method of controlling server apparatus, program for controlling gateway apparatus, and program for controlling server apparatus wherein the job includes an operation related to the job
JP2011232893A (en) Print data creation server, printing apparatus, and printing system
JP5681146B2 (en) Method and system for network diagnosis displaying possible causes on display of image forming apparatus
US8705074B2 (en) Processing device and processing method
JP2013061836A (en) Server, data processor, data processing method
WO2001082051A2 (en) Broadcast printing system and method
JP5899713B2 (en) Printing apparatus and printing method
JP5839102B2 (en) Printing system and printer
JP5683218B2 (en) Image processing apparatus, information processing system, information processing method, and program
US9280307B2 (en) Information processing system, apparatus, and method
US20110238784A1 (en) Management apparatus and method therefor
JP5899712B2 (en) Printing apparatus and printing method
JP6127586B2 (en) Information processing system and information processing method
JP5928156B2 (en) E-mail processing system and e-mail processing method
JP2013059931A (en) Data processing device, server, and data processing method
JP6079845B2 (en) System and processing terminal
US11467787B2 (en) Communication system, first server, second server, non-transitory computer-readable recording medium storing computer-readable instructions for first server and non-transitory computer-readable recording medium storing computer-readable instructions for second server
US11762610B2 (en) Communication apparatus that performs a process in response to a job notification received from a server and non-transitory computer-readable medium for communication apparatus
JP2009053841A (en) Image forming system and image forming apparatus
JP3812170B2 (en) Information processing device
JP6036966B2 (en) Printing system and printer
US20180191923A1 (en) Management device, communication system, and recording medium

Legal Events

Date Code Title Description
A300 Application deemed to be withdrawn because no request for examination was validly filed

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141202