JP2009297905A - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP2009297905A
JP2009297905A JP2008151296A JP2008151296A JP2009297905A JP 2009297905 A JP2009297905 A JP 2009297905A JP 2008151296 A JP2008151296 A JP 2008151296A JP 2008151296 A JP2008151296 A JP 2008151296A JP 2009297905 A JP2009297905 A JP 2009297905A
Authority
JP
Japan
Prior art keywords
printer
print data
error
reception
image forming
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
JP2008151296A
Other languages
Japanese (ja)
Inventor
Tetsuya Kuwabara
哲也 桑原
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.)
Murata Machinery Ltd
Original Assignee
Murata Machinery Ltd
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 Murata Machinery Ltd filed Critical Murata Machinery Ltd
Priority to JP2008151296A priority Critical patent/JP2009297905A/en
Publication of JP2009297905A publication Critical patent/JP2009297905A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an image forming apparatus which removes a terminal device from the need of resending printing data after resetting from an error. <P>SOLUTION: The printer 1 stops transmission of an ACK packet 42 to a received TCP packet 41 when the error occurs during receiving of printing data 30. A PC 2 transmits a keep alive packet 45 in place of the TCP packet 41 because the ACK packet 42 cannot be detected. The printer 1 transmits the ACK packet 42 to the PC 2 if the error is not solved even after a predetermined time passes from a time when the first keep alive packet 45 is received. The PC 2 receives the ACK packet 42, thereby transmitting a next TCP packet 41. The printer 1 repeats the above processing until the error is corrected, thereby limiting reception of the TCP packet 41. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、端末装置からネットワークを介して送信された印刷データに基づいて印刷処理を実行する画像形成装置に関する。   The present invention relates to an image forming apparatus that executes print processing based on print data transmitted from a terminal device via a network.

従来から、PC(Personal Computer)とプリンタとをLAN(Local Area Network)を介して接続し、PCから印刷データをプリンタに送信することでプリンタに印刷処理を実行させることが行われている。   Conventionally, a PC (Personal Computer) and a printer are connected via a LAN (Local Area Network), and print data is transmitted from the PC to the printer, thereby causing the printer to execute print processing.

印刷データの送信には、Port9100、lpr(Line PRinter)プロトコルなどが用いられる。これらのプロトコルは、TCP/IP(Transmission Control Protocol/Internet Protocol)を利用している。つまり、印刷データは、PCとプリンタとの間に確立されたTCPコネクションを介してプリンタに送信される。   For transmission of print data, Port 9100, lpr (Line Printer) protocol, or the like is used. These protocols use TCP / IP (Transmission Control Protocol / Internet Protocol). That is, the print data is transmitted to the printer via a TCP connection established between the PC and the printer.

また、プリンタは、印刷データの受信中に用紙切れ、紙詰まりなどのエラーが発生することで、印刷処理を継続できないことがある。この場合、プリンタは、エラー処理としてTCPコネクションを切断する。印刷データの送信元であるPCは、TCPコネクションの切断を検知することでプリンタにエラーが発生したと判断し、エラーの発生をユーザに通知する。   In addition, the printer may not be able to continue the printing process due to an error such as out of paper or paper jam while receiving print data. In this case, the printer disconnects the TCP connection as error processing. The PC that is the transmission source of the print data determines that an error has occurred in the printer by detecting the disconnection of the TCP connection, and notifies the user of the occurrence of the error.

PCは、TCPコネクションが切断された後でも、印刷データの再送を定期的に行っている。プリンタは、エラーから復帰した後に、再送された印刷データを用いて印刷処理を再開することができる。これにより、ユーザは、再プリントの操作を行わなくてもプリンタからの出力を得ることができる。   The PC periodically retransmits the print data even after the TCP connection is disconnected. After returning from the error, the printer can restart the printing process using the retransmitted print data. Accordingly, the user can obtain output from the printer without performing a reprint operation.

特開2001−92604号公報JP 2001-92604 A

しかしながら、PCは、印刷データを再送する際に、全ページ分の印刷データを送信する。プリンタは、エラーの発生前に印刷したページがあるにもかかわらず、印刷処理を最初からやり直すことになる。この結果、エラーの発生によって、複数のページが重複されて印刷されるという問題が生じていた。   However, when retransmitting print data, the PC transmits print data for all pages. The printer restarts the printing process from the beginning even though there are pages printed before the occurrence of the error. As a result, there has been a problem that multiple pages are printed in duplicate due to the occurrence of an error.

上記特許文献1では、エラーから復帰した後に重複して印刷されるページの発生を防ぐ技術が開示されている。上記特許文献1において、プリンタは、印刷データの受信中に発生したエラーから復帰した場合、メモリに残っている印刷データをクリアし、印刷済みのページ数をPCに通知する。PCは、印刷が終了するまで印刷データをページ単位でスプールしており、プリンタからの通知に基づいて印刷済みのページの次のページ以降の印刷データを再送する。   Japanese Patent Application Laid-Open No. 2005-228561 discloses a technique for preventing the occurrence of redundantly printed pages after returning from an error. In Patent Document 1, when the printer recovers from an error that occurred during reception of print data, the printer clears the print data remaining in the memory and notifies the PC of the number of printed pages. The PC spools the print data in units of pages until the printing is completed, and retransmits the print data on and after the next page of the printed page based on the notification from the printer.

そこで、本発明は前記問題点に鑑み、エラーから復帰した後に端末装置が印刷データを再送する必要のない画像形成装置を提供することを目的とする。   In view of the above problems, an object of the present invention is to provide an image forming apparatus in which a terminal device does not need to retransmit print data after returning from an error.

上記課題を解決するため、請求項1記載の発明は、ネットワークを介して端末装置に接続された画像形成装置であって、第1のプロトコルに基づく通信コネクションを利用して前記端末装置から送信される印刷データを受信する通信部と、受信した前記印刷データを用いた印刷処理を実行する印刷部と、を備え、前記通信部は、前記印刷データの受信中に前記印刷部でエラーが発生した場合に前記通信コネクションを維持したまま前記印刷データの受信を停止し、前記エラーが解消した場合に前記通信コネクションを利用して前記印刷データの受信を再開する受信制限部、を含むことを特徴とする。   In order to solve the above-described problem, an invention according to claim 1 is an image forming apparatus connected to a terminal device via a network, and is transmitted from the terminal device using a communication connection based on a first protocol. A communication unit that receives the print data, and a print unit that executes a printing process using the received print data, and the communication unit has an error in the print unit during reception of the print data. A reception limiting unit that stops reception of the print data while maintaining the communication connection, and resumes reception of the print data using the communication connection when the error is resolved. To do.

請求項2記載の発明は、請求項1に記載の画像形成装置において、前記受信制限部は、前記エラーの継続中に前記印刷データの受信の停止時間が所定の時間を経過した場合、前記印刷データを一時的に受信することを特徴とする。   According to a second aspect of the present invention, in the image forming apparatus according to the first aspect, the reception restriction unit is configured to print the print data when the print data reception stop time has elapsed during a continuation of the error. Data is temporarily received.

請求項3記載の発明は、請求項1または請求項2に記載の画像形成装置において、さらに、前記印刷部の動作状態の通知を要求するメッセージが前記端末装置から第2のプロトコルに基づいて送信された場合、前記印刷部の動作状態を前記第2のプロトコルに基づいて前記端末装置に通知する通知部、を備え、前記受信制限部は、前記印刷データの受信中に前記メッセージを受信し、かつ、前記メッセージの受信後に前記エラーが発生した場合、前記印刷データの受信を停止することを特徴とする。   According to a third aspect of the present invention, in the image forming apparatus according to the first or second aspect, a message requesting notification of an operating state of the printing unit is further transmitted from the terminal device based on a second protocol. A notification unit that notifies the terminal device of the operation state of the printing unit based on the second protocol, the reception restriction unit receives the message during reception of the print data, In addition, when the error occurs after receiving the message, the reception of the print data is stopped.

請求項4記載の発明は、請求項1ないし請求項3のいずれかに記載の画像形成装置において、前記印刷部は、受信済みの前記印刷データを解析し、前記印刷部の動作状態が変化した場合に変化後の前記動作状態の通知を要求するコマンドが前記受信済みの前記印刷データに含まれているかどうかを確認する解析部、を含み、前記受信制限部は、前記受信済みの前記印刷データから前記コマンドが検出され、かつ、前記コマンドの検出後に前記印刷部でエラーが発生した場合、前記印刷データの受信を停止することを特徴とする。   According to a fourth aspect of the present invention, in the image forming apparatus according to any one of the first to third aspects, the printing unit analyzes the received print data, and the operation state of the printing unit has changed. An analysis unit that confirms whether the received print data includes a command that requests notification of the operation state after the change, and the reception restriction unit includes the received print data When the command is detected and an error occurs in the printing unit after the command is detected, reception of the print data is stopped.

本発明に係る画像形成装置は、印刷データの受信中に印刷部でエラーが発生した場合に通信コネクションを維持したまま印刷データの受信を停止し、エラーが解消した場合に維持していた通信コネクションを用いて印刷データの受信を再開する。これにより、本発明に係る画像形成装置は、エラーが解消された後に、新たな通信コネクションを確立することなく印刷データの受信を継続でき、再送された印刷データを用いることなく印刷処理を継続することができる。   The image forming apparatus according to the present invention stops the reception of the print data while maintaining the communication connection when an error occurs in the printing unit during the reception of the print data, and maintains the communication connection when the error is resolved Is used to resume receiving print data. As a result, the image forming apparatus according to the present invention can continue to receive the print data without establishing a new communication connection after the error is resolved, and can continue the printing process without using the retransmitted print data. be able to.

また、エラーが発生する前に、印刷部の動作状態の通知を要求するメッセージを受信していた場合、または受信済みの印刷データから動作状態の変化の通知を要求するコマンドを検出していた場合に、本発明に係る画像形成装置は、印刷データの受信を停止する。これにより、本発明に係る画像形成装置は、印刷データの受信を停止しても、端末装置に印刷部の動作状態を通知することができる。   Also, if a message requesting notification of the operating status of the printing unit has been received before the error occurred, or a command requesting notification of a change in operating status has been detected from the received print data In addition, the image forming apparatus according to the present invention stops receiving print data. As a result, the image forming apparatus according to the present invention can notify the terminal device of the operation state of the printing unit even when the reception of the print data is stopped.

{第1の実施の形態}
以下、図面を参照しつつ本発明の実施の形態について説明する。図1は、本実施の形態に係るネットワークシステムの構成図である。図1に示すネットワークシステムは、プリンタ1とPC2とが、LAN3に接続された構成である。
{First embodiment}
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a configuration diagram of a network system according to the present embodiment. The network system shown in FIG. 1 has a configuration in which a printer 1 and a PC 2 are connected to a LAN 3.

プリンタ1は、PC2から送信された印刷データ30を印刷するネットワークプリンタである。PC2は、ユーザが使用する端末装置である。LAN3には、インターネットあるいは他のLANに接続するためのルータ(図示省略)などが設置されている。   The printer 1 is a network printer that prints the print data 30 transmitted from the PC 2. The PC 2 is a terminal device used by the user. The LAN 3 is provided with a router (not shown) for connecting to the Internet or another LAN.

まず、プリンタ1の構成について説明する。プリンタ1は、制御部11と、プリンタコントローラ12と、プリンタ本体部13と、通信部14とを備えている。   First, the configuration of the printer 1 will be described. The printer 1 includes a control unit 11, a printer controller 12, a printer main body unit 13, and a communication unit 14.

制御部11は、受信制限部111と、送信元情報記憶部112と、プリンタ情報管理部113と、ACK送信タイマ114を備えている。制御部11は、プリンタ1の全体制御を行うとともに、SNMP(Simple Network Management Protocol)エージェントの機能を有している。   The control unit 11 includes a reception restriction unit 111, a transmission source information storage unit 112, a printer information management unit 113, and an ACK transmission timer 114. The control unit 11 performs overall control of the printer 1 and has a function of an SNMP (Simple Network Management Protocol) agent.

受信制限部111は、印刷データ30の受信中にプリンタ1でエラーが発生した際に、印刷データ30の受信を一時的に停止させる受信制限処理を行う。送信元情報記憶部112は、印刷データ30の送信元のIPアドレスと、SNMPリクエスト43の送信元のIPアドレスと記憶している。プリンタ情報管理部113は、プリンタコントローラ12、プリンタ本体部13の動作状況を監視し、プリンタ1のステータス情報を格納する。ACK送信タイマ114は、受信制限処理時にACKパケット42の送信タイミングを指定するタイマである。   The reception restriction unit 111 performs reception restriction processing for temporarily stopping reception of the print data 30 when an error occurs in the printer 1 during reception of the print data 30. The transmission source information storage unit 112 stores the transmission source IP address of the print data 30 and the transmission source IP address of the SNMP request 43. The printer information management unit 113 monitors the operation status of the printer controller 12 and the printer main body unit 13 and stores the status information of the printer 1. The ACK transmission timer 114 is a timer that designates the transmission timing of the ACK packet 42 during the reception restriction process.

プリンタコントローラ12は、コマンド解析部121と、メモリ122とを備えている。コマンド解析部121は、印刷データ30に記述された印刷コマンドを解析する。メモリ122は、PC2から送信された印刷データ30を格納する記憶部である。コマンド解析部121によって解析された印刷コマンドに基づいて、印刷データ30からラスタデータが生成される。   The printer controller 12 includes a command analysis unit 121 and a memory 122. The command analysis unit 121 analyzes a print command described in the print data 30. The memory 122 is a storage unit that stores the print data 30 transmitted from the PC 2. Raster data is generated from the print data 30 based on the print command analyzed by the command analysis unit 121.

プリンタ本体部13は、現像装置、転写装置などを備えており、プリンタコントローラ12が生成したラスタデータを印刷用紙に印刷する。   The printer main body 13 includes a developing device, a transfer device, and the like, and prints raster data generated by the printer controller 12 on printing paper.

通信部14は、LAN3を介して接続する各コンピュータとの間で、TCP/IPなどを用いたデータの送受信を行う。   The communication unit 14 transmits / receives data to / from each computer connected via the LAN 3 using TCP / IP or the like.

次に、PC2の構成について説明する。PC2は、プリンタドライバ21と、ポートモニタ22とを備えている。   Next, the configuration of the PC 2 will be described. The PC 2 includes a printer driver 21 and a port monitor 22.

プリンタドライバ21は、ユーザが印刷を指示した文書データなどから、ページ記述言語で記述された印刷データ30を生成する。ポートモニタ22は、印刷データ30をプリンタ1に送信するとともに、SNMPマネージャとして機能する。なお、印刷データ30の送信には、Port9100、lprプロトコルなどが用いられる。   The printer driver 21 generates print data 30 described in a page description language from document data or the like that the user has instructed to print. The port monitor 22 transmits the print data 30 to the printer 1 and functions as an SNMP manager. Note that the print data 30 is transmitted using Port 9100, lpr protocol, or the like.

以上のように構成されたネットワークシステムにおいて、プリンタ1は、印刷データ30の受信中に用紙切れ、紙詰まりなどのエラーが発生した場合、印刷データ30の受信を一時的に停止する。このため、エラー中に印刷データ30の受信を継続するために発生するメモリ122などのオーバーフローを防止できる。これにより、プリンタ1は、受信した印刷データ30の消失を防ぐことができるため、PC2が印刷データ30を再送することなく、全てのページを印刷することができる。   In the network system configured as described above, the printer 1 temporarily stops receiving the print data 30 when an error such as out of paper or paper jam occurs during reception of the print data 30. For this reason, it is possible to prevent an overflow of the memory 122 or the like that occurs in order to continue receiving the print data 30 during an error. Accordingly, the printer 1 can prevent the received print data 30 from being lost, so that the PC 2 can print all pages without retransmitting the print data 30.

以下、プリンタ1が印刷データ30を受信する際のプリンタ1とPC2との間のデータの流れについて説明する。図2は、プリンタ1とPC2との間のデータの流れを示す図である。   Hereinafter, a data flow between the printer 1 and the PC 2 when the printer 1 receives the print data 30 will be described. FIG. 2 is a diagram illustrating a data flow between the printer 1 and the PC 2.

まず、ユーザが、PC2にインストールされたアプリケーションプログラムを用いて作成した文書データなどの印刷を指示する。プリンタドライバ21は、文書データからページ記述言語で記述された印刷データを生成し、スプーラ(図示省略)にスプールする。   First, the user instructs printing of document data created using an application program installed in the PC 2. The printer driver 21 generates print data described in a page description language from document data, and spools the print data in a spooler (not shown).

ポートモニタ22は、プリンタ1との間にTCPコネクションを確立し(ステップS11)、TCPコネクションを利用してTCPパケット41を送信する(ステップS12)。具体的には、ポートモニタ22は、分割された印刷データ30が格納されているTCPパケット41をプリンタ1に送信する。プリンタ1は、TCPパケット41の受信応答として、ACKパケット42をPC2に送信する。ステップS12に示す処理が繰り返されることで、印刷データ30がPC2からプリンタ1へ送信される。印刷データ30の送信が終了することにより、TCPコネクションが切断される(ステップS14)。   The port monitor 22 establishes a TCP connection with the printer 1 (step S11), and transmits a TCP packet 41 using the TCP connection (step S12). Specifically, the port monitor 22 transmits a TCP packet 41 in which the divided print data 30 is stored to the printer 1. The printer 1 transmits an ACK packet 42 to the PC 2 as a reception response of the TCP packet 41. By repeating the process shown in step S12, the print data 30 is transmitted from the PC 2 to the printer 1. When the transmission of the print data 30 is completed, the TCP connection is disconnected (step S14).

プリンタ1において、TCPパケット41から印刷データ30が取り出され、メモリ122に蓄積される。メモリ122に蓄積された印刷データ30から、ページ単位のラスタデータが生成される。プリンタ本体部13は、ラスタデータを印刷用紙に印刷する。   In the printer 1, the print data 30 is extracted from the TCP packet 41 and stored in the memory 122. Raster data for each page is generated from the print data 30 stored in the memory 122. The printer main body 13 prints raster data on printing paper.

また、ポートモニタ22は、TCPパケット41の送信(ステップS12)と並行して、SNMPを用いてプリンタ1のステータス情報を取得する(ステップS13)。具体的には、ポートモニタ22は、SNMPリクエスト43をプリンタ1に定期的に送信する。プリンタ1は、SNMPリクエスト43の応答として、プリンタ1のステータス情報を含むSNMPレスポンス44をPC2に送信する。これにより、ポートモニタ22は、プリンタ1のステータス(待機中、印刷中、エラー発生など)をPC2のモニタなどに表示することができる。   Further, the port monitor 22 acquires status information of the printer 1 using SNMP in parallel with the transmission of the TCP packet 41 (step S12) (step S13). Specifically, the port monitor 22 periodically transmits an SNMP request 43 to the printer 1. As a response to the SNMP request 43, the printer 1 transmits an SNMP response 44 including the status information of the printer 1 to the PC 2. Accordingly, the port monitor 22 can display the status of the printer 1 (standby, printing, error occurrence, etc.) on the monitor of the PC 2 or the like.

通常、印刷データ30は、上述のようにしてプリンタ1に送信される。しかし、印刷データ30の受信中にプリンタ1でエラーが発生した場合、プリンタ1とPC2との間で、図3に示すデータのやり取りが行われる。   Normally, the print data 30 is transmitted to the printer 1 as described above. However, when an error occurs in the printer 1 while the print data 30 is being received, the data shown in FIG. 3 is exchanged between the printer 1 and the PC 2.

図3は、プリンタ1のエラー発生時におけるプリンタ1とPC2との間のデータの流れを示す図である。図3において、TCPコネクションの確立(ステップS11)、切断(ステップS14)の表示を省略している。   FIG. 3 is a diagram showing a data flow between the printer 1 and the PC 2 when an error occurs in the printer 1. In FIG. 3, the display of establishment (step S11) and disconnection (step S14) of the TCP connection is omitted.

プリンタ1において、TCPパケット41の受信(ステップS12)中にエラーが発生したとする。しかし、ポートモニタ22は、プリンタ1のエラーに関係なく、TCPパケット41をプリンタ1に送信する(ステップS21)。プリンタ1は、エラーが発生した場合、ACKパケット42の送信を停止する。   It is assumed that an error has occurred in the printer 1 during reception of the TCP packet 41 (step S12). However, the port monitor 22 transmits the TCP packet 41 to the printer 1 regardless of the error of the printer 1 (step S21). The printer 1 stops transmitting the ACK packet 42 when an error occurs.

ポートモニタ22は、送信したTCPパケット41に対応するACKパケット42を検出できない。このため、ポートモニタ22は、TCPコネクションを維持するために、いわゆるキープアライブを実行する。つまり、ポートモニタ22は、予め設定された間隔でキープアライブパケット45をプリンタ1に送信する(ステップS22)。プリンタ1は、キープアライブパケット45に対しても応答しない。このように、プリンタ1は、エラーが発生した場合、TCPコネクションを介して受信したパケットに対して応答しないことで、印刷データ30の受信を一時的に中止する。   The port monitor 22 cannot detect the ACK packet 42 corresponding to the transmitted TCP packet 41. For this reason, the port monitor 22 performs so-called keep alive in order to maintain the TCP connection. That is, the port monitor 22 transmits keep-alive packets 45 to the printer 1 at preset intervals (step S22). The printer 1 does not respond to the keep alive packet 45. As described above, when an error occurs, the printer 1 temporarily stops receiving the print data 30 by not responding to the packet received via the TCP connection.

しかし、PC2は、SNMPを用いてプリンタ1のステータス情報を取得することができる(ステップS13)。これは、SNMPがUDP(User Datagram Protocol)の利用を前提としているためである。なお、エラー発生後に最初に実行されるステップS13の処理によって、プリンタ1でのエラー発生がPC2に通知される。これにより、ポートモニタ22は、PC2のモニタにプリンタ1でエラーが発生したメッセージを表示する。   However, the PC 2 can acquire the status information of the printer 1 using SNMP (step S13). This is because SNMP presupposes the use of UDP (User Datagram Protocol). Note that the occurrence of an error in the printer 1 is notified to the PC 2 by the process of step S13 executed first after the error has occurred. As a result, the port monitor 22 displays a message indicating that an error has occurred in the printer 1 on the monitor of the PC 2.

プリンタ1は、キープアライブパケット45を最初に受信してから所定の時間を経過した場合、ACKパケット42をPC2に送信する(ステップS23)。ACKパケット42を受信したPC2は、新たなTCPパケット41を送信する(ステップS21)。プリンタ1は、エラー状態が続いているため、受信したTCPパケット41に対するACKパケット42を送信しない。この結果、ポートモニタ22は、キープアライブパケット45の送信を再開する(ステップS22)。このように、プリンタ1のエラーが解除されるまで、ステップS21〜S23の処理が繰り返される。つまり、プリンタ1は、エラーが継続している間、TCPパケット41の受信を一時的に停止する。しかし、TCPコネクション維持のために、プリンタ1とPC2との間で所定の時間間隔でTCPパケット41およびACKパケット42の送受信が行われる。   The printer 1 transmits an ACK packet 42 to the PC 2 when a predetermined time has elapsed since the first receipt of the keep-alive packet 45 (step S23). The PC 2 that has received the ACK packet 42 transmits a new TCP packet 41 (step S21). The printer 1 does not transmit the ACK packet 42 for the received TCP packet 41 because the error state continues. As a result, the port monitor 22 resumes transmission of the keep alive packet 45 (step S22). In this way, the processes of steps S21 to S23 are repeated until the error of the printer 1 is canceled. That is, the printer 1 temporarily stops receiving the TCP packet 41 while the error continues. However, in order to maintain the TCP connection, the TCP packet 41 and the ACK packet 42 are transmitted and received between the printer 1 and the PC 2 at a predetermined time interval.

プリンタ1のエラーが解消した場合、プリンタ1は、ACKパケット42をPC2に送信する。これにより、TCPパケット41の受信処理(ステップS12)が再開される。   When the error of the printer 1 is resolved, the printer 1 transmits an ACK packet 42 to the PC 2. Thereby, the reception process (step S12) of the TCP packet 41 is resumed.

以下、印刷データ30の受信処理時におけるプリンタ1の動作について説明する。図4は、印刷データ30を受信する際のプリンタ1の動作の流れを示すフローチャートである。図4に示すフローチャートにおいて、プリンタ1とPC2との間にTCPコネクションが既に確立されているとする。   Hereinafter, the operation of the printer 1 during the reception process of the print data 30 will be described. FIG. 4 is a flowchart showing an operation flow of the printer 1 when receiving the print data 30. In the flowchart shown in FIG. 4, it is assumed that a TCP connection has already been established between the printer 1 and the PC 2.

なお、図4に示すステップS101およびステップS102の処理、ステップS109およびS110の処理は、それぞれ図2、図3に示すステップS12に対応する。ステップS103〜S105の処理は、図2、図3に示すステップS13に対応する。ステップS108の処理は、図3に示すステップS21〜S23に対応する。   Note that the processes in steps S101 and S102 and the processes in steps S109 and S110 shown in FIG. 4 correspond to step S12 shown in FIGS. The processing in steps S103 to S105 corresponds to step S13 shown in FIGS. The process of step S108 corresponds to steps S21 to S23 shown in FIG.

プリンタ1は、最初のTCPパケット41を受信した場合(ステップS101においてYes)、ACKパケット42をPC2に送信し、TCPパケット41の送信元のIPアドレスを取得する(ステップS102)。取得したIPアドレスは、送信元情報記憶部112に格納される。   When the printer 1 receives the first TCP packet 41 (Yes in step S101), the printer 1 transmits an ACK packet 42 to the PC 2 and acquires the IP address of the transmission source of the TCP packet 41 (step S102). The acquired IP address is stored in the transmission source information storage unit 112.

次に、プリンタ1は、SNMPリクエスト43を受信することにより(ステップS103においてYes)、SNMPリクエスト43の送信元のIPアドレスを取得し(ステップS104)、SNMPレスポンス44を送信する(ステップS105)。SNMPリクエスト43の送信元のIPアドレスは、送信元情報記憶部112に格納される。   Next, the printer 1 receives the SNMP request 43 (Yes in step S103), acquires the IP address of the transmission source of the SNMP request 43 (step S104), and transmits the SNMP response 44 (step S105). The source IP address of the SNMP request 43 is stored in the source information storage unit 112.

プリンタ1においてエラーが発生していない場合(ステップS106においてNo)、プリンタ1は、TCPパケット41を受信することにより(ステップS109においてYes)、ACKパケット42をPC2に送信する(ステップS110)。TCPパケット41の受信が完了した場合(ステップS111においてYes)、プリンタ1は、図4に示す処理を終了する。一方、TCPパケット41の受信が完了していない場合(ステップS111においてNo)、プリンタ1は、TCPパケット41およびSNMPリクエスト43を受信するために、ステップS103に示す処理に戻る。   If no error has occurred in the printer 1 (No in step S106), the printer 1 receives the TCP packet 41 (Yes in step S109), and transmits the ACK packet 42 to the PC 2 (step S110). When the reception of the TCP packet 41 is completed (Yes in step S111), the printer 1 ends the process shown in FIG. On the other hand, if the reception of the TCP packet 41 is not completed (No in step S111), the printer 1 returns to the process shown in step S103 in order to receive the TCP packet 41 and the SNMP request 43.

プリンタ1でエラーが発生した場合(ステップS106においてYes)、制御部11は、送信元情報記憶部112に格納されたTCPパケット41の送信元とSNMPリクエスト43の送信元とが一致しているかどうかを確認する。(ステップS107)。送信元IPアドレスが一致する場合(ステップS107においてYes)、受信制限部111が受信制限処理を実行する(ステップS108)。そして、プリンタ1は、ステップS109〜S111に示す処理を実行する。   If an error occurs in the printer 1 (Yes in step S106), the control unit 11 determines whether the transmission source of the TCP packet 41 stored in the transmission source information storage unit 112 matches the transmission source of the SNMP request 43. Confirm. (Step S107). If the source IP addresses match (Yes in step S107), the reception restriction unit 111 executes a reception restriction process (step S108). Then, the printer 1 executes the processes shown in steps S109 to S111.

一方、送信元IPアドレスが一致しない場合(ステップS107においてNo)、プリンタ1は、TCPパケット41を受信することにより(ステップS109においてYes)、ACKパケット42をPC2に送信する(ステップS110)。つまり、プリンタ1は、SNMPリクエスト43を受信していない場合、エラーに関係なく印刷データ30の受信を継続する。   On the other hand, if the source IP addresses do not match (No in step S107), the printer 1 receives the TCP packet 41 (Yes in step S109), and transmits the ACK packet 42 to the PC 2 (step S110). That is, if the printer 1 has not received the SNMP request 43, the printer 1 continues to receive the print data 30 regardless of the error.

次に、受信制限処理(ステップS108)におけるプリンタ1の動作について説明する。図5は、受信制限処理における受信制限部111の動作の流れを示すフローチャートである。   Next, the operation of the printer 1 in the reception restriction process (step S108) will be described. FIG. 5 is a flowchart showing an operation flow of the reception restriction unit 111 in the reception restriction process.

まず、受信制限部111は、通信部14に対してACKパケット42の送信の停止を指示する(ステップS121)。最初のキープアライブパケット45を受信した場合(ステップS122においてYes)、受信制限部111は、ACK送信タイマ114をONにする(ステップS123)。ACK送信タイマ114は、上述した所定の時間間隔でタイマイベントを発生させる。所定の時間は、PC2がキープアライブパケット45の送信を開始してからTCPコネクションが切断されるまでの時間を超えない時間であり、ACK送信タイマ114に予め設定されている。   First, the reception restriction unit 111 instructs the communication unit 14 to stop transmission of the ACK packet 42 (step S121). When the first keep-alive packet 45 is received (Yes in step S122), the reception restriction unit 111 turns on the ACK transmission timer 114 (step S123). The ACK transmission timer 114 generates a timer event at the predetermined time interval described above. The predetermined time is a time that does not exceed the time from when the PC 2 starts transmitting the keep-alive packet 45 to when the TCP connection is disconnected, and is set in the ACK transmission timer 114 in advance.

プリンタ1のエラーが解消した場合(ステップS124においてYes)、受信制限部111は、ACKパケット42の送信を通信部14に指示する(ステップS126)。そして、受信制限部111は、ACK送信タイマ114をOFFにして(ステップS127)、図5に示す受信制限処理を終了する。   When the error of the printer 1 is resolved (Yes in step S124), the reception restriction unit 111 instructs the communication unit 14 to transmit the ACK packet 42 (step S126). Then, the reception restriction unit 111 turns off the ACK transmission timer 114 (step S127), and ends the reception restriction process shown in FIG.

一方、プリンタ1のエラーが解消していない場合(ステップS124においてNo)、受信制限部111は、ACK送信タイマ114でタイマイベントが発生したかどうかを確認する(ステップS125)。タイマイベントが発生した場合(ステップS125においてYes)、受信制限部111は、ACKパケット42の送信を指示する(ステップS126)。つまり、プリンタ1は、キープアライブのタイムアウトによってTCPコネクションが切断される前に、ACKパケット42を送信することでTCPコネクションを維持する。受信制限部111は、ACK送信タイマ114をOFFにして(ステップS127)、図5に示す受信制限処理を終了する。   On the other hand, if the error of the printer 1 has not been resolved (No in step S124), the reception restriction unit 111 checks whether a timer event has occurred in the ACK transmission timer 114 (step S125). If a timer event has occurred (Yes in step S125), reception restriction unit 111 instructs transmission of ACK packet 42 (step S126). That is, the printer 1 maintains the TCP connection by transmitting the ACK packet 42 before the TCP connection is disconnected due to a keep-alive timeout. The reception restriction unit 111 turns off the ACK transmission timer 114 (step S127), and ends the reception restriction process shown in FIG.

以上説明したように、本実施の形態に係るプリンタ1は、エラーが継続している間、ACKパケット42の送信タイミングを制御することによって、TCPコネクションを維持した状態で印刷データ30の受信を一時的に停止する。プリンタ1は、エラーが解消された後に、維持していたTCPコネクションを利用して印刷データ30の受信を継続するため、PC1は、プリンタ1のエラーに伴う印刷データ30の再送処理を省略することができる。   As described above, the printer 1 according to the present embodiment temporarily receives the print data 30 while maintaining the TCP connection by controlling the transmission timing of the ACK packet 42 while the error continues. Stop. Since the printer 1 continues to receive the print data 30 using the maintained TCP connection after the error is resolved, the PC 1 omits the retransmission processing of the print data 30 due to the error of the printer 1. Can do.

また、プリンタ1は、エラーの発生中に印刷データ30の受信を一時的に停止することで、メモリ122に蓄積された印刷データ30の消失を防止する。したがって、プリンタ1は、PC2から再送された印刷データ30を用いることなく、印刷データ30の印刷処理を完了させることができる。   In addition, the printer 1 temporarily stops receiving the print data 30 during the occurrence of an error, thereby preventing the print data 30 accumulated in the memory 122 from being lost. Therefore, the printer 1 can complete the print processing of the print data 30 without using the print data 30 retransmitted from the PC 2.

また、プリンタ1は、PC2からSNMPリクエスト43が送信されており、かつ、エラーが発生した場合に、印刷データ30の受信を一定期間停止する。これにより、プリンタ1は、印刷データ30の受信が完了していなくても、確実にエラーの発生をPC2に通知することができる。   The printer 1 stops receiving the print data 30 for a certain period when the SNMP request 43 is transmitted from the PC 2 and an error occurs. As a result, the printer 1 can reliably notify the PC 2 of the occurrence of an error even if the reception of the print data 30 has not been completed.

{第2の実施の形態}
以下、本発明の第2の実施の形態について説明する。上記第1の実施の形態に係るプリンタ1は、SNMPリクエスト43に応じてステータス情報を提供する。一方、本実施の形態に係るプリンタは、印刷データ30に記述されたPJL(Printer Job Language)コマンドに基づいて、ステータス情報を提供する。
{Second Embodiment}
Hereinafter, a second embodiment of the present invention will be described. The printer 1 according to the first embodiment provides status information in response to the SNMP request 43. On the other hand, the printer according to the present embodiment provides status information based on a PJL (Printer Job Language) command described in the print data 30.

なお、本実施の形態に係るプリンタの構成は、図1に示すプリンタ1の構成と同じであるため、各構成要素の説明を省略する。以下では、上記第1の実施の形態と異なる点を中心に説明する。   Note that the configuration of the printer according to the present embodiment is the same as the configuration of the printer 1 shown in FIG. Below, it demonstrates centering on a different point from the said 1st Embodiment.

まず、本実施の形態に係るプリンタ1が印刷データ30を受信する際のデータの流れについて説明する。図6は、本実施の形態に係るプリンタ1と、PC2との間のデータの流れを示す図である。   First, a data flow when the printer 1 according to the present embodiment receives the print data 30 will be described. FIG. 6 is a diagram showing a data flow between the printer 1 and the PC 2 according to the present embodiment.

プリンタ1は、TCPコネクションが確立された(ステップS31)後で、TCPパケット41の受信処理を行う(ステップS32)。コマンド解析部121は、最初に受信したTCPパケットに格納された印刷データ30を解析し(ステップS33)、プリンタ1のステータスの通知を要求するPJLコマンド46の有無を確認する。   After the TCP connection is established (step S31), the printer 1 performs a reception process for the TCP packet 41 (step S32). The command analysis unit 121 analyzes the print data 30 stored in the first received TCP packet (step S33), and checks whether there is a PJL command 46 that requests notification of the status of the printer 1.

図7は、PJLコマンド46の一例を示す図である。なお、図7に示す“.%−12345”の文字列は、印刷データ30に記述されている印刷コマンドの間に、PJLコマンドを挿入するためのエスケープシーケンスである。最初に受信したTCPパケット41からPJLコマンド46が検出された場合、プリンタコントローラ12は、プリンタ1のステータスを通知するPJLコマンド47を、TCPコネクションを利用してPC2に送信する(ステップS34)。たとえば、プリンタ1が待機中である場合は、図8に示すPJLコマンド47が送信され、プリンタ1が印刷中である場合は、図9に示すPJLコマンド47が送信される。   FIG. 7 is a diagram illustrating an example of the PJL command 46. The character string “.%-12345” shown in FIG. 7 is an escape sequence for inserting a PJL command between print commands described in the print data 30. When the PJL command 46 is detected from the first received TCP packet 41, the printer controller 12 transmits a PJL command 47 for notifying the status of the printer 1 to the PC 2 using the TCP connection (step S34). For example, when the printer 1 is on standby, the PJL command 47 shown in FIG. 8 is transmitted, and when the printer 1 is printing, the PJL command 47 shown in FIG. 9 is transmitted.

これらの処理の後で、ステップS32に示す処理が繰り返されることで印刷データ30がプリンタ1に送信される。プリンタ1のステータスが変化するたびに、PJLコマンド47がPC2に送信される(ステップS34)。印刷データ30の受信が完了した場合、TCPコネクションが切断される(ステップS35)。   After these processes, the print data 30 is transmitted to the printer 1 by repeating the process shown in step S32. Each time the status of the printer 1 changes, a PJL command 47 is transmitted to the PC 2 (step S34). When reception of the print data 30 is completed, the TCP connection is disconnected (step S35).

また、本実施の形態において、プリンタ1でエラーが発生した場合、プリンタ1とPC2との間で図3に示すデータのやり取りが行われる。ただし、図3に示すステップS13の処理は行われず、プリンタコントローラ12が、プリンタ1のステータスが変化するたびにPJLコマンド47をPC2に送信する。   Further, in the present embodiment, when an error occurs in the printer 1, data exchange shown in FIG. 3 is performed between the printer 1 and the PC 2. However, the process of step S13 shown in FIG. 3 is not performed, and the printer controller 12 transmits a PJL command 47 to the PC 2 every time the status of the printer 1 changes.

次に、本実施の形態に係るプリンタ1における印刷データ30の受信処理について説明する。図10は、印刷データ30を受信する際の本実施の形態に係るプリンタ1の動作の流れを示すフローチャートである。図10に示すフローチャートにおいて、プリンタ1とPC2との間にTCPコネクションが既に確立されているとする。   Next, the reception process of the print data 30 in the printer 1 according to this embodiment will be described. FIG. 10 is a flowchart showing an operation flow of the printer 1 according to the present embodiment when the print data 30 is received. In the flowchart shown in FIG. 10, it is assumed that a TCP connection has already been established between the printer 1 and the PC 2.

なお、図10に示すステップS201〜S202の処理は、図6に示すステップS32〜S33の処理に対応する。図10に示すステップS206〜S207の処理は、図6に示すステップS34の処理に対応する。図10に示すステップS210〜S211の処理は、図6に示すステップS32の処理に対応する。   Note that the processing in steps S201 to S202 shown in FIG. 10 corresponds to the processing in steps S32 to S33 shown in FIG. The processing in steps S206 to S207 shown in FIG. 10 corresponds to the processing in step S34 shown in FIG. The processing in steps S210 to S211 illustrated in FIG. 10 corresponds to the processing in step S32 illustrated in FIG.

プリンタ1は、最初のTCPパケット41を受信した場合(ステップS201においてYes)、ACKパケット42を送信し、最初のTCPパケット41に含まれる印刷データ30を解析する(ステップS202)。解析した印刷データ30にPJLコマンド46が記述されている場合(ステップS203においてYes)、プリンタ1は、通知フラグをONにし、PJLコマンド47をPC2に送信する(ステップS204)。通知フラグは、プリンタ1のステータスが変化した際にPJLコマンド47を送信するかしないかを示す情報であり、初期状態ではOFFに設定されている。   When the printer 1 receives the first TCP packet 41 (Yes in step S201), the printer 1 transmits an ACK packet 42 and analyzes the print data 30 included in the first TCP packet 41 (step S202). If the PJL command 46 is described in the analyzed print data 30 (Yes in step S203), the printer 1 turns on the notification flag and transmits the PJL command 47 to the PC 2 (step S204). The notification flag is information indicating whether or not to send the PJL command 47 when the status of the printer 1 changes, and is set to OFF in the initial state.

通知フラグがOFFの場合(ステップS205においてNo)、プリンタ1は、TCPパケット41を受信することにより(ステップS210においてYes)、ACKパケット42をPC2に送信する(ステップS211)。つまり、最初に受信したTCPパケット41にPJLコマンド46が記述されていない場合、プリンタ1は、エラーに関係なく、ACKパケット42をPC2に送信する。そして、TCPパケット41の受信が完了した場合(ステップS212においてYes)、プリンタ1は、図10に示す処理を終了する。一方、TCPパケット41の受信が完了していない場合(ステップS212においてNo)、プリンタ1は、次のTCPパケット41を受信するために、ステップS206に示す処理に戻る。   When the notification flag is OFF (No in Step S205), the printer 1 receives the TCP packet 41 (Yes in Step S210), and transmits the ACK packet 42 to the PC 2 (Step S211). That is, when the PJL command 46 is not described in the TCP packet 41 received first, the printer 1 transmits the ACK packet 42 to the PC 2 regardless of the error. When the reception of the TCP packet 41 is completed (Yes in step S212), the printer 1 ends the process shown in FIG. On the other hand, if the reception of the TCP packet 41 is not completed (No in step S212), the printer 1 returns to the process shown in step S206 in order to receive the next TCP packet 41.

一方、通知フラグがONの場合(ステップS205においてYes)、プリンタ1は、ステータスが変化したかどうかを確認する(ステップS206)。プリンタ1のステータスが変化した場合(ステップS206においてYes)、プリンタコントローラ12は、PJLコマンド47をPC2に送信する(ステップS207)。   On the other hand, if the notification flag is ON (Yes in step S205), the printer 1 checks whether the status has changed (step S206). If the status of the printer 1 has changed (Yes in step S206), the printer controller 12 transmits a PJL command 47 to the PC 2 (step S207).

次に、プリンタ1は、エラーが発生しているかどうかを確認する(ステップS208)。エラーが発生していない場合(ステップS208においてNo)、プリンタ1は、ステップS210、S211に示す処理を実行する。   Next, the printer 1 checks whether an error has occurred (step S208). If no error has occurred (No in step S208), the printer 1 executes the processes shown in steps S210 and S211.

一方、エラーが発生した場合(ステップS208においてYes)、受信制限部111が、受信制限処理を実行する(ステップS209)。ステップS209の受信制限処理は、図5に示す処理と同様である。つまり、本実施の形態に係るプリンタ1は、キープアライブのタイムアウトによってTCPコネクションが切断される前にACKパケット42を送信することで、TCPコネクションを維持する。プリンタ1は、ステップS210、S211に示す処理を実行して、TCPパケット41の受信処理を継続する。   On the other hand, if an error has occurred (Yes in step S208), the reception restriction unit 111 executes a reception restriction process (step S209). The reception restriction process in step S209 is the same as the process shown in FIG. That is, the printer 1 according to the present embodiment maintains the TCP connection by transmitting the ACK packet 42 before the TCP connection is disconnected due to a keep-alive timeout. The printer 1 executes the processes shown in steps S210 and S211 and continues the process of receiving the TCP packet 41.

プリンタ1は、エラー発生の有無に応じた処理を実行した後で、ステップS212に示す処理を実行する。つまり、TCPパケット41の受信が完了した場合(ステップS212においてYes)、プリンタ1は、図10に示す処理を終了する。一方、TCPパケット41の受信が完了していない場合(ステップS212においてNo)、プリンタ1は、次のTCPパケット41を受信するために、ステップS206に示す処理に戻る。   The printer 1 executes the process shown in step S212 after executing the process according to whether or not an error has occurred. That is, when the reception of the TCP packet 41 is completed (Yes in step S212), the printer 1 ends the process shown in FIG. On the other hand, if the reception of the TCP packet 41 is not completed (No in step S212), the printer 1 returns to the process shown in step S206 in order to receive the next TCP packet 41.

以上説明したように、本実施の形態に係るプリンタ1は、上記第1の実施の形態と同様に、エラーが解消されるまで、TCPコネクションを維持した状態で印刷データ30の受信を一時的に停止する。本実施の形態に係るプリンタ1は、エラーが解消された後に、維持していたTCPコネクションを利用して印刷データ30の受信を継続するため、PC1は、プリンタ1のエラーに伴う印刷データ30の再送処理を省略することができる。   As described above, similarly to the first embodiment, the printer 1 according to the present embodiment temporarily receives the print data 30 while maintaining the TCP connection until the error is resolved. Stop. Since the printer 1 according to the present embodiment continues to receive the print data 30 using the TCP connection that has been maintained after the error is resolved, the PC 1 does not receive the print data 30 associated with the printer 1 error. The retransmission process can be omitted.

また、本実施の形態に係るプリンタ1は、エラーの発生中に印刷データ30の受信を一時的に停止することで、メモリ122に蓄積された印刷データ30の消失を防止する。したがって、本実施の形態に係るプリンタ1は、PC2から再送された印刷データ30を用いることなく、印刷データ30の印刷処理を完了させることができる。   In addition, the printer 1 according to the present embodiment prevents the loss of the print data 30 accumulated in the memory 122 by temporarily stopping the reception of the print data 30 during the occurrence of an error. Therefore, the printer 1 according to the present embodiment can complete the printing process of the print data 30 without using the print data 30 retransmitted from the PC 2.

また、本実施の形態に係るプリンタ1は、最初に受信したTCPパケット41からPJLコマンド46を検出し、かつエラーが発生した場合、TCPパケット41の受信を一定期間停止する。これにより、本実施の形態に係るプリンタ1は、SNMPを用いることなくステータスをPC2に通知することができる。   Also, the printer 1 according to the present embodiment detects the PJL command 46 from the first received TCP packet 41, and stops receiving the TCP packet 41 for a certain period when an error occurs. As a result, the printer 1 according to the present embodiment can notify the PC 2 of the status without using SNMP.

なお、本実施の形態に係るプリンタ1は、最初に受信したTCPパケットを解析してPJLコマンド46の有無を確認する例について説明したが、これに限られない。たとえば、プリンタ1は、受信した全てのTCPパケットにおけるPJLコマンド46の有無を確認してもよい。この場合、エラーが発生するまでにPJLコマンド46が検出されていれば、プリンタ1は、受信制限処理を実行することができる。   The printer 1 according to the present embodiment has been described with respect to the example in which the first received TCP packet is analyzed to confirm the presence or absence of the PJL command 46, but is not limited thereto. For example, the printer 1 may confirm the presence / absence of the PJL command 46 in all received TCP packets. In this case, if the PJL command 46 is detected before an error occurs, the printer 1 can execute the reception restriction process.

本発明の実施の形態に係るネットワークシステムの構成図である。1 is a configuration diagram of a network system according to an embodiment of the present invention. PCと第1の実施の形態に係るプリンタとの間のデータの流れを示す図である。FIG. 3 is a diagram illustrating a data flow between a PC and the printer according to the first embodiment. TCPパケットの受信制限時におけるプリンタとPCとの間のデータの流れを示す図である。It is a figure which shows the flow of the data between a printer and PC at the time of reception restriction of a TCP packet. 第1の実施の形態に係るプリンタの動作の流れを示すフローチャートである。4 is a flowchart showing a flow of operations of the printer according to the first embodiment. 受信制限処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a reception restriction process. PCと第2の実施の形態に係るプリンタとの間のデータの流れを示す図である。It is a figure which shows the flow of the data between PC and the printer which concerns on 2nd Embodiment. プリンタのステータスの通知を要求するPJLコマンドを示す図である。It is a figure which shows the PJL command which requests | requires notification of the status of a printer. プリンタのステータスの変化を通知するPJLコマンドを示す図である。It is a figure which shows the PJL command which notifies the change of the status of a printer. プリンタのステータスの変化を通知するPJLコマンドを示す図である。It is a figure which shows the PJL command which notifies the change of the status of a printer. 第2の実施の形態に係るプリンタの動作の流れを示すフローチャートである。6 is a flowchart illustrating an operation flow of a printer according to a second embodiment.

符号の説明Explanation of symbols

1 プリンタ
2 PC(パーソナルコンピュータ)
11 制御部
12 プリンタコントローラ
13 プリンタ本体部
14 通信部
21 プリンタドライバ
22 ポートモニタ
111 受信制限部
112 送信元情報記憶部
113 プリンタ情報管理部
114 ACK送信タイマ
1 Printer 2 PC (Personal Computer)
DESCRIPTION OF SYMBOLS 11 Control part 12 Printer controller 13 Printer main body part 14 Communication part 21 Printer driver 22 Port monitor 111 Reception restriction part 112 Transmission source information storage part 113 Printer information management part 114 ACK transmission timer

Claims (4)

ネットワークを介して端末装置に接続された画像形成装置であって、
第1のプロトコルに基づく通信コネクションを利用して前記端末装置から送信される印刷データを受信する通信部と、
受信した前記印刷データを用いた印刷処理を実行する印刷部と、
を備え、
前記通信部は、
前記印刷データの受信中に前記印刷部でエラーが発生した場合に前記通信コネクションを維持したまま前記印刷データの受信を停止し、前記エラーが解消した場合に前記通信コネクションを利用して前記印刷データの受信を再開する受信制限部、
を含むことを特徴とする画像形成装置。
An image forming apparatus connected to a terminal device via a network,
A communication unit that receives print data transmitted from the terminal device using a communication connection based on a first protocol;
A printing unit that executes a printing process using the received print data;
With
The communication unit is
If an error occurs in the printing unit during reception of the print data, the print data reception is stopped while maintaining the communication connection, and the print connection is used by using the communication connection when the error is resolved. Receiving restriction unit that resumes receiving,
An image forming apparatus comprising:
請求項1に記載の画像形成装置において、
前記受信制限部は、前記エラーの継続中に前記印刷データの受信の停止時間が所定の時間を経過した場合、前記印刷データを一時的に受信することを特徴とする画像形成装置。
The image forming apparatus according to claim 1.
The image forming apparatus according to claim 1, wherein the reception restricting unit temporarily receives the print data when a stop time of reception of the print data elapses during a continuation of the error.
請求項1または請求項2に記載の画像形成装置において、さらに、
前記印刷部の動作状態の通知を要求するメッセージが前記端末装置から第2のプロトコルに基づいて送信された場合、前記印刷部の動作状態を前記第2のプロトコルに基づいて前記端末装置に通知する通知部、
を備え、
前記受信制限部は、前記印刷データの受信中に前記メッセージを受信し、かつ、前記メッセージの受信後に前記エラーが発生した場合、前記印刷データの受信を停止することを特徴とする画像形成装置。
The image forming apparatus according to claim 1, further comprising:
When a message requesting notification of the operating state of the printing unit is transmitted from the terminal device based on the second protocol, the operating state of the printing unit is notified to the terminal device based on the second protocol. Notification section,
With
The image forming apparatus, wherein the reception restriction unit receives the message while the print data is being received, and stops receiving the print data when the error occurs after the message is received.
請求項1ないし請求項3のいずれかに記載の画像形成装置において、
前記印刷部は、
受信済みの前記印刷データを解析し、前記印刷部の動作状態が変化した場合に変化後の前記動作状態の通知を要求するコマンドが前記受信済みの前記印刷データに含まれているかどうかを確認する解析部、
を含み、
前記受信制限部は、前記受信済みの前記印刷データから前記コマンドが検出され、かつ、前記コマンドの検出後に前記印刷部でエラーが発生した場合、前記印刷データの受信を停止することを特徴とする画像形成装置。
The image forming apparatus according to any one of claims 1 to 3,
The printing unit
Analyzing the received print data, and confirming whether or not the received print data includes a command for requesting notification of the changed operation state when the operation state of the printing unit changes Analysis department,
Including
The reception restriction unit stops receiving the print data when the command is detected from the received print data and an error occurs in the printing unit after the command is detected. Image forming apparatus.
JP2008151296A 2008-06-10 2008-06-10 Image forming apparatus Pending JP2009297905A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008151296A JP2009297905A (en) 2008-06-10 2008-06-10 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008151296A JP2009297905A (en) 2008-06-10 2008-06-10 Image forming apparatus

Publications (1)

Publication Number Publication Date
JP2009297905A true JP2009297905A (en) 2009-12-24

Family

ID=41545326

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008151296A Pending JP2009297905A (en) 2008-06-10 2008-06-10 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP2009297905A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012039546A (en) * 2010-08-11 2012-02-23 Murata Mach Ltd Network multifunction machine
US8922812B2 (en) 2010-07-13 2014-12-30 Murata Machinery, Ltd. Network printer
JP2018089895A (en) * 2016-12-06 2018-06-14 コニカミノルタ株式会社 Image formation apparatus and program
JP2018107612A (en) * 2016-12-26 2018-07-05 ブラザー工業株式会社 Communication device
JP2018113062A (en) * 2018-03-22 2018-07-19 京セラドキュメントソリューションズ株式会社 Pull-print system
JP2018156580A (en) * 2017-03-21 2018-10-04 株式会社リコー Information processing device, control method, and program
JP2019106152A (en) * 2017-12-14 2019-06-27 ブラザー工業株式会社 Computer program, and communication device
JP2021016994A (en) * 2019-07-19 2021-02-15 シャープ株式会社 Image formation apparatus, control method and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0577533A (en) * 1991-09-18 1993-03-30 Ricoh Co Ltd Printer device
JP2000326596A (en) * 1999-05-19 2000-11-28 Canon Inc Apparatus and method for processing printing data, and memory medium
JP2001260493A (en) * 2000-03-22 2001-09-25 Matsushita Electric Ind Co Ltd Network printer system
JP2002244834A (en) * 2001-02-15 2002-08-30 Fuji Xerox Co Ltd Printing device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0577533A (en) * 1991-09-18 1993-03-30 Ricoh Co Ltd Printer device
JP2000326596A (en) * 1999-05-19 2000-11-28 Canon Inc Apparatus and method for processing printing data, and memory medium
JP2001260493A (en) * 2000-03-22 2001-09-25 Matsushita Electric Ind Co Ltd Network printer system
JP2002244834A (en) * 2001-02-15 2002-08-30 Fuji Xerox Co Ltd Printing device

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8922812B2 (en) 2010-07-13 2014-12-30 Murata Machinery, Ltd. Network printer
JP2012039546A (en) * 2010-08-11 2012-02-23 Murata Mach Ltd Network multifunction machine
JP2018089895A (en) * 2016-12-06 2018-06-14 コニカミノルタ株式会社 Image formation apparatus and program
JP2018107612A (en) * 2016-12-26 2018-07-05 ブラザー工業株式会社 Communication device
JP2018156580A (en) * 2017-03-21 2018-10-04 株式会社リコー Information processing device, control method, and program
JP2019106152A (en) * 2017-12-14 2019-06-27 ブラザー工業株式会社 Computer program, and communication device
JP2018113062A (en) * 2018-03-22 2018-07-19 京セラドキュメントソリューションズ株式会社 Pull-print system
JP2021016994A (en) * 2019-07-19 2021-02-15 シャープ株式会社 Image formation apparatus, control method and program
JP7293021B2 (en) 2019-07-19 2023-06-19 シャープ株式会社 IMAGE FORMING APPARATUS, CONTROL METHOD AND PROGRAM

Similar Documents

Publication Publication Date Title
JP2009297905A (en) Image forming apparatus
JP6059037B2 (en) COMMUNICATION SYSTEM, CLIENT DEVICE, SERVER DEVICE, COMMUNICATION METHOD, AND PROGRAM
US8248645B2 (en) Printing system, printing device, host apparatus, and computer program product
US11403051B2 (en) Print control apparatus, printing system, method for controlling print control apparatus, and storage medium to send a shutdown instruction from an information processing apparatus to a printer from a print control apparatus, and the print control apparatus executing shutdown processing after receiving a power supply state notification from a printer, sending the power supply notification to the information processing apparatus and receiving a shutdown notification from the printer
JP5316001B2 (en) Proxy processing device, network system, proxy processing method and program
JP4136086B2 (en) Printer control apparatus and printing system
JP2009169687A (en) Printing controller, printing control method, and printing control program
JP2008147941A (en) Monitoring apparatus, image forming apparatus, monitoring system, method of changing network setting, and program
JP2007094721A (en) Printing system
JP2007257481A (en) Printing device
US20130250337A1 (en) Image forming apparatus, method for controlling the image forming apparatus, and program
US10871927B2 (en) Image forming apparatus
JP6289057B2 (en) COMMUNICATION DEVICE AND ITS CONTROL METHOD, PRINTING DEVICE, ITS CONTROL METHOD, AND PROGRAM
US9261948B2 (en) Image forming apparatus and control method for executing a proxy in response to a heartbeat
JP2001282488A (en) Printing control device, network printer and method for controlling printing
JP5919729B2 (en) Peripheral device status monitoring method, device driver and network system
JP2007030444A (en) Electronic apparatus
JP2007065797A (en) Image forming device
JP2018124630A (en) Printing system
US10203915B2 (en) Information processing apparatus and control method of information processing apparatus
JP2007213583A (en) Method and apparatus for adaptive configuration of imaging device, and medium
JP2005107741A (en) Printing job completion notification system for printing system
JP2008306349A (en) Network-compatible image forming apparatus and its control method
JP2007328574A (en) Printing system and print program
JP2006051635A (en) Device, method and program for controlling printing

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20110209

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110222

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110420

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20110607