JP4243831B2 - Printer and printer job data transfer method - Google Patents

Printer and printer job data transfer method Download PDF

Info

Publication number
JP4243831B2
JP4243831B2 JP2002341637A JP2002341637A JP4243831B2 JP 4243831 B2 JP4243831 B2 JP 4243831B2 JP 2002341637 A JP2002341637 A JP 2002341637A JP 2002341637 A JP2002341637 A JP 2002341637A JP 4243831 B2 JP4243831 B2 JP 4243831B2
Authority
JP
Japan
Prior art keywords
print
job data
printer
print job
function
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.)
Expired - Fee Related
Application number
JP2002341637A
Other languages
Japanese (ja)
Other versions
JP2003208272A (en
Inventor
敏博 島
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 JP2002341637A priority Critical patent/JP4243831B2/en
Publication of JP2003208272A publication Critical patent/JP2003208272A/en
Application granted granted Critical
Publication of JP4243831B2 publication Critical patent/JP4243831B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【発明の属する技術分野】
本発明は、ネットワークに接続されるプリンタに関する。特に、本発明は、汎用的なネットワークプロトコルであるTCP/IPを用いたプリンタに関する。
【0002】
【従来技術】
従来より、イーサネット(登録商標)(Ethernet)などにより構築されたLAN等に接続され、複数のホストコンピュータによって共用可能なネットワーク対応型のプリンタが知られている。ホストコンピュータは、所定のネットワークプロトコルに従ってプリンタとの間でネットワーク通信を行い、プリンタドライバから出力されるプリントジョブデータをプリンタに送り込む。ホストコンピュータがプリンタにプリントジョブデータを送り込むためのネットワークプロトコルには、例えば、TCP/IP上で実装されるLPRプロトコルなどがある。
【0003】
このようなネットワークプリンタが提供される環境では、効率的にネットワークを利用するために、プリンタサーバを設けることが一般的である。プリンタサーバは、ホストコンピュータとの間でネットワーク通信を行って、からプリントジョブデータを受け取り、一旦、ハードディスクなどの記憶装置にスプールした後、順次プリントジョブデータを送り出すものである。このプリンタサーバには、例えば図3に示されるように、プリンタ外部に独立に構成されるもの(以下「プリンタ外プリンタサーバ」という。)と、プリンタ自身がその内部に構成するもの(以下「プリンタ内プリンタサーバ」という。)とがある。
【0004】
プリンタ外プリンタサーバによる方式(同図(a))では、ホストコンピュータからLPRプロトコルによって送信されるプリントジョブデータは、プリンタサーバ本体にスプールされた後、さらにLPRプロトコルによって指定されたプリンタに送信され、印刷処理されることになる。
【0005】
一方、プリンタ内プリンタサーバによる方式(同図(b))では、プリントジョブデータは、プリンタ内のプリンタサーバ本体にスプールされた後、そこから内部インターフェースを介して直接的に印刷処理回路に送信され、印刷処理されることになる。
【0006】
【発明が解決しようとする課題】
ネットワークプリンタ環境に導入されるべき新たなプリンタ外プリントサーバを開発するごとに、プリントサーバ本体とLPRクライアントとの間のインターフェースを開発する必要があった。
【0007】
一方、プリンタ内プリントサーバの場合は、プリンタサーバ本体と印刷処理回路との間のインターフェースを開発する必要があり、このため、新たに高機能なエンジンが開発されると、それに伴ってそのインターフェース自体も開発しなければならなかった。
【0008】
また、プリントサーバは、TCP/IP上のLPRプロトコル以外のさまざまプロトコルで実現されることが望ましいが、NetWareやAppleTalkなどあらゆるプロトコルに対応するように構築されることは現実的ではない。
【0009】
そこで、本発明は、個々のプリントサーバに依存したインターフェースをそれぞれ開発するという手間をなくすことを課題としている。
【0010】
より具体的には、本発明の課題は、プリントサーバ本体と印刷処理回路との間の通信に標準的なネットワークプロトコルであるLPRプロトコルを採用したプリンタ内プリントサーバを提供することである。
【0011】
【課題を解決するための手段】
上記課題を解決するための本発明は、以下のように特定される。
【0012】
本発明の要旨は、プリントサーバを備えたプリンタであって、前記プリントサーバにスプールされたプリントジョブデータを、IPで規定されるループバックアドレスを指定して印刷処理手段に送信することを特徴とするプリンタである。
【0013】
より具体的には、ホストコンピュータから送信されるプリントジョブデータを第1のプロトコルに従って受信する第1の受信手段と、前記第1の受信手段で受信したプリントジョブデータをスプールするプリントサーバと、前記プリントサーバにスプールされたプリントジョブデータを第2のプロトコルに従って送信する第1の送信手段と、前記第1の送信手段で送信されたプリントジョブデータを前記第2のプロトコルに従って受信する第2の受信手段と、前記第2の受信手段で受信されたプリントジョブデータに基づいてイメージデータを生成する印刷処理手段と、前記印刷処理手段で生成されたイメージデータに基づいて、印刷記録媒体に対する印刷を実行する印刷実行手段と、を備えたことを特徴とするプリンタである。
【0014】
ここで、前記第1の送信手段は、ネットワークプロトコルとして知られるIP(Internet Protocol)で規定されるループバックアドレスを用いて前記プリントジョブデータを送信することを特徴とする。
【0015】
また、前記第1の送信手段は、所定のポートを指定して前記プリントジョブデータを送信し、前記第2の受信手段は、前記指定された所定のポートで受信することを特徴とする。
【0016】
さらに、前記所定のポートは、前記第1のプロトコルと前記第2のプロトコルとが同一である場合に、前記第1の受信手段が受信するポートと異なることを特徴とする。
【0017】
さらにまた、前記第1のプロトコルおよび/または前記第2のプロトコルは、TCP/IP上に実装されるLPRプロトコルであることが好ましい。
【0018】
また、前記プリンタは、前記第1のプロトコルに従ったプリントジョブデータを前記第2のプロトコルに従ったプリントジョブデータに変換する変換手段をさらに備えたことを特徴とする。
【0019】
上記装置の発明は、方法の発明としても成立する。すなわち、本発明は、プリントサーバを備えたプリンタにおけるプリントジョブデータの転送方法であって、前記プリントサーバにスプールされたプリントジョブデータを、前記プリントサーバ側に設けられた送信手段がIPで規定されるループバックアドレスを指定して印刷処理手段側に設けられた受信手段に送信することを特徴とするプリントジョブデータの転送方法である。
【0020】
さらに、本発明は、プリンタに所定の機能を実現させるプログラムを記録した記録媒体としても成立する。より具体的には、本発明は、プリンタに所定の機能を実現させるプログラムを記録した記録媒体であって、前記プログラムは、ホストコンピュータから送信されるプリントジョブデータを受信する第1の受信機能と、前記第1の受信機能によって受信したプリントジョブデータを所定の記憶装置にスプールさせるスプール機能と、前記記憶装置にスプールされたプリントジョブデータを所定のプロトコルに従って送信する第1の送信機能と、前記第1の送信機能によって送信されたプリントジョブデータを前記所定のプロトコルに従って受信する第2の受信機能と、前記第2の受信機能によって受信されたプリントジョブデータに基づいて、イメージデータを生成する生成機能と、前記生成機能によって生成されたイメージデータに基づき印刷記録媒体に対する印刷をプリントエンジンに行わせるように制御する制御機能と、を備えたことを特徴とするプログラムを記録した記録媒体である。
【0021】
ここで、前記記録媒体とは、例えば、ハードディスク(HD)、DVD−RAM、フレキシブルディスク(FD)やCD−ROM等のほかに、RAMやROM等のメモリを含む。また、前記プリンタとは、例えば、CPUやMPUといったいわゆる中央処理装置がプログラムを解釈することで所定の処理を行う、いわゆるマイクロコンピュータ等をも含む。
【0022】
また、前記プログラムは、オペレーティングシステムなどの基本プログラムによって実現される機能を呼び出す機能を含んで実現しても良い。
【0023】
さらに、本発明は、上記プリンタとコンピュータとを備えたプリントシステムとして構成しても良い。
【0024】
なお、本明細書において、手段とは、単に物理的手段を意味するものではなく、その手段が有する機能をソフトウェアによって実現する場合も含む。また、1つの手段が有する機能が2つ以上の物理的手段により実現されても、2つ以上の手段の機能が1つの物理的手段により実現されても良い。
【0025】
【発明の実施の形態】
次に、本発明の実施の形態について、図面を参照しつつ説明する。
【0026】
図1は、本実施形態に係るプリントシステムの概要を説明するための図である。同図に示すように、ホストコンピュータ1とプリンタ2とは、所定のネットワークNを介して接続され、プリントシステムを構成している。同図ではネットワークNに接続された複数のホストコンピュータ1およびプリンタ2のうち、代表する1台をそれぞれ示している。ネットワークNは、例えば、イーサネット規格に従って実現される。ホストコンピュータ1およびプリンタ2は、汎用的なネットワーク通信プロトコルであるTCP/IPに従うネットワークサービスを実現するための通信インターフェース11を実装する。つまり、本実施形態の通信インターフェース11は、ネットワークプロトコル階層モデルでいうところの下位層プロトコルに位置付けられる通信サービスを実現する。ネットワークN上のノードとして把握されるホストコンピュータ1およびプリンタ2には、固有のネットワークアドレスであるIPアドレスがそれぞれ割り当てられている。通信インターフェース11は、TCP/IPサービスを実現するための各種ハードウェアおよび各種ソフトウェアによって構成される。通信インターフェース11は、固有の番号(例えば0〜65535)が割り当てられたI/Oポート(以下「ポート」という。)を有し、パケットデータにおいて指定されるポートを介して通信サービスを提供する。
【0027】
アプリケーションプログラム12は、例えば、文書を作成・編集するためのワードプロセッサ、図形を作成・編集するグラフィックエディタなどである。今、ユーザからユーザインタフェースを介して印刷コマンドが与えられると、アプリケーションプログラム12は、プリンタドライバ(図示せず)を呼び出す。このプリンタドライバは、アプリケーションプログラム12から印刷対象であるそのアプリケーションデータを受け取って、このアプリケーションデータをプリンタ2で解釈するためのプリントジョブデータに変換し、LPRクライアント13Aに出力する。LPRクライアント13Aは、プリンタドライバから送られたプリントジョブデータを、所定のネットワーク通信プロトコルに従って、印刷出力先として指定されたプリンタ2に送信する。つまり、ホストコンピュータ1が、特定のプリンタ2に印刷を行わせようとする場合には、そのプリンタ2に割り当てられているIPアドレスを指定して送信することになる。この場合、LPRクライアント13Aは、相手先の特定のポートも指定する。LPRサーバ14Aとの間で通信を行う場合には、相手先のポートとして515番を指定する。LPRサーバ14Aは、LPRクライアント13Aからプリントジョブデータを受信し、これをプリントサーバ本体15に出力する。
【0028】
プリントサーバ本体15は、典型的には、入力されるプリントジョブデータをスプールするためのハードディスク装置などの記憶装置を備えて構成される。プリントサーバ本体15は、1つ以上のプリントジョブデータの入力に基づくジョブ要求を管理し、それを印刷処理回路16に対して1つずつ順番に送り出す機能を有する。このプリントサーバ本体15により、印刷処理の状況に関係なく、ホストコンピュータ1から複数のプリントジョブデータ(印刷要求)を受け付け、順次、その印刷要求を処理することが可能になる。プリントサーバ本体15から印刷処理回路16へのプリントジョブデータの送り出しは、LPRクライアント13BおよびLPRサーバ14Bを介して行われる。このLPRクライアント13BおよびLPRサーバ14Bもまた、TCP/IP上に実装されている。従って、LPRクライアント13Bは、特定のポートおよび特定のIPアドレスを指定して通信を行う。ここで、LPRクライアント13Bが送信先として指定するIPアドレスは、ループバックアドレスである。また、特定のポートは、例えば8515番である。
【0029】
印刷処理回路16は、LPRサーバ13Bから受け取ったプリントジョブデータを解釈してイメージデータを生成し、これをプリントエンジン17に供給するためのものである。印刷処理回路16は、典型的には、プリントジョブデータを解釈するための解釈プログラムやフォントデータを記録したROM、解釈プログラムを実行してプリントジョブデータをイメージデータに展開するプロセッサ、およびプロセッサのワークエリアとして使用され、また展開されたイメージデータを記憶するRAMなどから構成される。印刷処理回路16は、所定のバンド幅のイメージデータを展開すると、プリントエンジン17に印刷要求信号を出力し、プリントエンジン17から送られる同期信号に従ってイメージデータをプリントエンジン17に出力する。
【0030】
プリントエンジン17は、例えば、紙送り機構やプリントヘッドなどによって構成され、紙などの印刷記録媒体に印刷を行うものである。プリントエンジン38は、レーザプリンタやシリアルプリンタといったプリンタの種類に応じたものを用いることができる。
【0031】
上述したLPRクライアント13A,BおよびLPRサーバ14A,Bは、ネットワーク階層モデルでいうところの上位層プロトコルに位置付けられる通信サービスを実現するためのプログラムである。LPRクライアント13A,BおよびLPRサーバ14A,Bは、いわゆるデーモンプログラムとして実行され、所定のイベントを受け付けると、所定のネットワーク通信プロトコルに従った通信処理を行う。
【0032】
LPRクライアント13は、送信相手先のIPアドレスおよびポートを指定して、送信すべきデータを物理的・論理的に変換しながら、下位の通信サービス手段(本実施形態では通信インターフェース11)を介してネットワークNに送り出す。通信インターフェース11は、ネットワークN上を流れる自身宛のパケットデータを受信すると、その受信したデータで指定されているポートに対して、そのデータを物理的・論理的に変換して、上位の通信サービス手段に受け渡す。LPRサーバ14は、指定されたポートを介して通信を行うように設定されている。本実施形態におけるLPRサーバ14Aは、例えば515番のポートが指定されている。従って、通信インターフェース11は、515番が指定されたデータである場合には、LPRサーバ14Aに受け渡すことになる。
【0033】
上述のように、LPRクライアント13Bは、IPアドレスとしてループバックアドレスを指定してプリントジョブデータを送り出す。ループバックアドレスは、自分自身への送信に使用されるアドレスである。IPv4ではループバックアドレスは、“127.0.0.1”と表現され、IPv6のIPv4互換形式では“0:0:0:0:0:0:127.0.0.1”と表現される。また、LPRクライアント13Bは、相手先ポートとして、例えば8515番を指定するように設定されている。LPRサーバ14Bは、LPRクライアント13Bによって指定されるポート(つまり本例では8515番)を介して通信を行うように設定されている。従って、通信インターフェース11は、8515番が指定されたデータを受け取った場合には、LPRサーバ14Bに受け渡すことになる。
【0034】
次に、以上のように構成されるプリントシステムの動作例を説明する。ここでは、ホストコンピュータ1には、IPアドレス“161.141.22.5”が割り当てられ、プリンタ2には、“163.141.22.5”が割り当てられているものとする。また、LPRサーバ14Aには、ポート番号515が割り当てられ、LPRサーバ14Bには、ポート番号8515が割り当てられているものとする。
【0035】
今、ホストコンピュータ1がプリンタ2に印刷要求(プリントジョブデータ)を送信するものとする。ホストコンピュータ1は、送信すべきデータのTCPヘッダの宛先ポート番号515を指定するとともに、IPヘッダの宛先IPアドレス“163.141.22.5”を指定して送り出す。なお、送信元ポート番号は、典型的には、予約されているポート番号以外(1024以上)の任意の値が動的に割り当てられる。図2(a)は、ホストコンピュータ1からプリンタ2に送信されるデータの構造を示す図である。プリンタ2は、ホストコンピュータ1からネットワーク環境を介して印刷要求を受信すると、これを一旦プリントサーバ本体15にスプールした後、印刷処理状況に従って印刷処理回路16に順次送り出す。このとき、IPヘッダの宛先IPアドレスは、ループバックアドレス“127.0.0.1”が指定されるとともに、宛先ポート番号は、8515が指定される。図2(b)は、プリントサーバ本体15から印刷処理回路16に送信されるデータの構造を示す図である。これにより、プリントサーバ本体15から印刷処理回路16に送信されるデータは、IP層内でループバックし、ポート番号8515からLPRサーバ14Bを介して印刷処理回路16に受け渡されることになる。
【0036】
以上のように本実施形態によれば、標準的なネットワーク技術であるTCP/IPをベースにLPRクライアント/サーバに従って、データの送受信を行うようにしているので、プリントサーバ本体から印刷処理回路に至るまでのインターフェース部分をあえて開発する必要がなくなり、開発コストを低く抑えることができるようになる。例えば、TCP/IP以外のネットワークプロトコルでLANを構築した場合であっても、プリントサーバ本体から印刷処理回路に至るまでのインターフェース部分は、標準的なLPRサービスプログラムを採用すれば足りることになる。この場合、各種ネットワークプロトコルからLPRプロトコルへの変換をプリントサーバ内のモジュールで実行すればよい。換言すれば、各種ネットワークプロトコルに応じたインターフェースを新たに開発する必要はなく、n個のプロトコルに対しては、n対LPRの変換プログラムを提供すれば良いことになる。
【0037】
上記実施形態では、プリントジョブデータをホストコンピュータ1からプリントサーバ本体15に送信するためのプロトコル(第1のプロトコル)と、プリントサーバ本体15から印刷処理回路16に送信するためのプロトコル(第2のプロトコル)とが、ともにLPRプロトコルであるものとして説明したが、特にこれにこだわる必要はない。
【0038】
例えば、図3に示すように、ホストコンピュータ1の第2クライアント13A(図1のLPRクライアントに相当する。)は、印刷処理回路16側に設けられた第2サーバ14B(図1のLPRサーバに相当する。)に、直接的にプリントジョブデータを送信するようにしてもよい。
【0039】
上記実施形態は、本発明を説明するための例示であり、本発明をこの実施形態にのみ限定する趣旨ではない。本発明は、その要旨を逸脱しない限り、さまざまな形態で実施することができる。例えば、上記機能実現手段の動作をシーケンシャルに説明したが、特にこれにこだわるものではない。従って、動作に矛盾が生じない限り、処理の順序を入れ替えまたは並行動作するように構成しても良い。また、本実施形態では、IPv4をベースに説明したが、IPv6であっても構わない。
【0040】
【発明の効果】
本発明によれば、プリンタの機種ごとにインターフェースを開発する必要がなくなり、開発コストを極めて低く抑えることができるようになる。
【図面の簡単な説明】
【図1】本発明に係るプリントシステムの構成を説明するための図である。
【図2】送信データの構造を示す図。
【図3】本発明に係る他のプリントシステムの構成を説明するための図である。
【図4】従来のプリントシステムの構成を示す図である。
【符号の説明】
11…通信インターフェース
12…アプリケーションプログラム
13…LPRクライアント
14…LPRサーバ
15…プリントサーバ本体
16…印刷処理回路
17…プリントエンジン
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to a printer connected to a network. In particular, the present invention relates to a printer using TCP / IP which is a general-purpose network protocol.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, network-compatible printers that are connected to a LAN constructed by Ethernet (registered trademark) or the like and can be shared by a plurality of host computers are known. The host computer performs network communication with the printer according to a predetermined network protocol, and sends print job data output from the printer driver to the printer. Examples of the network protocol for the host computer to send print job data to the printer include an LPR protocol implemented on TCP / IP.
[0003]
In an environment where such a network printer is provided, a printer server is generally provided in order to efficiently use the network. The printer server performs network communication with the host computer, receives print job data from the printer server, spools the print job data once in a storage device such as a hard disk, and then sequentially sends out the print job data. As shown in FIG. 3, for example, the printer server is configured independently of the outside of the printer (hereinafter referred to as “printer server outside printer”) and the printer itself is configured (hereinafter “printer”). "Internal printer server").
[0004]
In the method using the printer server outside the printer ((a) in the figure), the print job data transmitted from the host computer by the LPR protocol is spooled to the printer server main body and then transmitted to the printer designated by the LPR protocol. Printing processing will be performed.
[0005]
On the other hand, in the method using the printer server in the printer ((b) in the figure), the print job data is spooled to the printer server body in the printer and then sent directly to the print processing circuit through the internal interface. The printing process is performed.
[0006]
[Problems to be solved by the invention]
Each time a new off-printer print server to be introduced into the network printer environment is developed, it is necessary to develop an interface between the print server main body and the LPR client.
[0007]
On the other hand, in the case of an in-printer print server, it is necessary to develop an interface between the printer server main body and the print processing circuit. For this reason, when a new high-performance engine is developed, the interface itself is accordingly developed. Also had to be developed.
[0008]
The print server is preferably realized by various protocols other than the LPR protocol on TCP / IP, but it is not realistic to be configured to support any protocol such as NetWare or AppleTalk.
[0009]
Therefore, an object of the present invention is to eliminate the trouble of developing interfaces depending on individual print servers.
[0010]
More specifically, an object of the present invention is to provide an in-printer print server that employs an LPR protocol, which is a standard network protocol, for communication between a print server main body and a print processing circuit.
[0011]
[Means for Solving the Problems]
The present invention for solving the above-mentioned problems is specified as follows.
[0012]
The gist of the present invention is a printer including a print server, wherein print job data spooled in the print server is transmitted to a print processing unit by designating a loopback address defined by IP. Printer.
[0013]
More specifically, a first receiving means for receiving print job data transmitted from a host computer according to a first protocol, a print server for spooling print job data received by the first receiving means, First transmission means for transmitting print job data spooled in the print server according to a second protocol, and second reception for receiving print job data transmitted by the first transmission means according to the second protocol Means, print processing means for generating image data based on the print job data received by the second receiving means, and printing on the print recording medium based on the image data generated by the print processing means And a printing execution means.
[0014]
Here, the first transmission means transmits the print job data using a loopback address defined by IP (Internet Protocol) known as a network protocol.
[0015]
Further, the first transmission means designates a predetermined port and transmits the print job data, and the second reception means receives at the designated predetermined port.
[0016]
Further, the predetermined port is different from a port received by the first receiving means when the first protocol and the second protocol are the same.
[0017]
Furthermore, it is preferable that the first protocol and / or the second protocol is an LPR protocol implemented on TCP / IP.
[0018]
The printer further includes conversion means for converting print job data according to the first protocol into print job data according to the second protocol.
[0019]
The invention of the apparatus is also established as a method invention. That is, the present invention relates to a method for transferring print job data in a printer having a print server, wherein the transmission means provided on the print server side for print job data spooled in the print server is defined by IP. The print job data transfer method is characterized in that a loopback address is designated and transmitted to a receiving means provided on the print processing means side.
[0020]
Furthermore, the present invention can also be realized as a recording medium that records a program that causes a printer to realize a predetermined function. More specifically, the present invention is a recording medium that records a program that causes a printer to realize a predetermined function, and the program includes a first reception function that receives print job data transmitted from a host computer. A spool function for spooling print job data received by the first reception function in a predetermined storage device; a first transmission function for transmitting print job data spooled in the storage device according to a predetermined protocol; A second reception function for receiving print job data transmitted by the first transmission function according to the predetermined protocol, and generation for generating image data based on the print job data received by the second reception function Function and the image data generated by the generation function A control function of controlling so as to perform printing on the recording medium to the print engine, which is a recording medium for recording a program characterized by comprising a.
[0021]
Here, the recording medium includes, for example, a memory such as a RAM and a ROM in addition to a hard disk (HD), a DVD-RAM, a flexible disk (FD), and a CD-ROM. The printer includes, for example, a so-called microcomputer in which a so-called central processing unit such as a CPU or MPU performs predetermined processing by interpreting a program.
[0022]
The program may be realized including a function for calling a function realized by a basic program such as an operating system.
[0023]
Furthermore, the present invention may be configured as a print system including the printer and a computer.
[0024]
In this specification, the term “means” does not simply mean a physical means, but also includes a case where the functions of the means are realized by software. Further, the function of one means may be realized by two or more physical means, or the functions of two or more means may be realized by one physical means.
[0025]
DETAILED DESCRIPTION OF THE INVENTION
Next, embodiments of the present invention will be described with reference to the drawings.
[0026]
FIG. 1 is a diagram for explaining an overview of a print system according to the present embodiment. As shown in the figure, the host computer 1 and the printer 2 are connected via a predetermined network N to constitute a printing system. In the figure, a representative one of a plurality of host computers 1 and printers 2 connected to the network N is shown. The network N is realized, for example, according to the Ethernet standard. The host computer 1 and the printer 2 are equipped with a communication interface 11 for realizing a network service according to TCP / IP which is a general-purpose network communication protocol. That is, the communication interface 11 of the present embodiment realizes a communication service positioned as a lower layer protocol in the network protocol layer model. An IP address, which is a unique network address, is assigned to each of the host computer 1 and the printer 2 that are grasped as nodes on the network N. The communication interface 11 includes various hardware and various software for realizing a TCP / IP service. The communication interface 11 has an I / O port (hereinafter referred to as “port”) to which a unique number (for example, 0 to 65535) is assigned, and provides a communication service via a port specified in packet data.
[0027]
The application program 12 is, for example, a word processor for creating / editing a document, a graphic editor for creating / editing a figure, and the like. Now, when a print command is given from the user via the user interface, the application program 12 calls a printer driver (not shown). The printer driver receives the application data to be printed from the application program 12, converts the application data into print job data to be interpreted by the printer 2, and outputs the print job data to the LPR client 13A. The LPR client 13A transmits the print job data sent from the printer driver to the printer 2 designated as the print output destination according to a predetermined network communication protocol. That is, when the host computer 1 tries to cause a specific printer 2 to perform printing, the IP address assigned to the printer 2 is designated and transmitted. In this case, the LPR client 13A also specifies a specific port of the other party. When communicating with the LPR server 14A, the number 515 is designated as the destination port. The LPR server 14A receives print job data from the LPR client 13A and outputs it to the print server main body 15.
[0028]
The print server body 15 typically includes a storage device such as a hard disk device for spooling input print job data. The print server main body 15 has a function of managing job requests based on input of one or more print job data and sequentially sending them to the print processing circuit 16 one by one. The print server body 15 can receive a plurality of print job data (print requests) from the host computer 1 and process the print requests sequentially regardless of the print processing status. The print job data is sent from the print server main body 15 to the print processing circuit 16 via the LPR client 13B and the LPR server 14B. The LPR client 13B and the LPR server 14B are also mounted on TCP / IP. Therefore, the LPR client 13B performs communication by designating a specific port and a specific IP address. Here, the IP address designated as the transmission destination by the LPR client 13B is a loopback address. The specific port is, for example, 8515.
[0029]
The print processing circuit 16 interprets the print job data received from the LPR server 13B, generates image data, and supplies it to the print engine 17. The print processing circuit 16 typically includes an interpretation program for interpreting print job data, a ROM that records font data, a processor that executes the interpretation program and expands the print job data into image data, and a processor work It is composed of a RAM that stores image data used as an area and developed. When the image processing with a predetermined bandwidth is developed, the print processing circuit 16 outputs a print request signal to the print engine 17, and outputs the image data to the print engine 17 in accordance with a synchronization signal sent from the print engine 17.
[0030]
The print engine 17 includes, for example, a paper feed mechanism, a print head, and the like, and performs printing on a print recording medium such as paper. As the print engine 38, a printer corresponding to the type of printer such as a laser printer or a serial printer can be used.
[0031]
The LPR clients 13A and 13B and the LPR servers 14A and 14B described above are programs for realizing a communication service positioned as an upper layer protocol in the network layer model. The LPR clients 13A and 13B and the LPR servers 14A and 14B are executed as so-called daemon programs, and upon receiving a predetermined event, perform communication processing according to a predetermined network communication protocol.
[0032]
The LPR client 13 designates the IP address and port of the transmission destination, converts the data to be transmitted physically and logically, and transmits the lower level communication service means (communication interface 11 in this embodiment). Send to network N. When the communication interface 11 receives the packet data addressed to itself flowing on the network N, the communication interface 11 physically and logically converts the data to the port specified by the received data, so that the upper communication service Give it to the means. The LPR server 14 is set to perform communication through a designated port. In the LPR server 14A in the present embodiment, for example, a port 515 is designated. Accordingly, the communication interface 11 delivers the data to the LPR server 14A when the data No. 515 is designated.
[0033]
As described above, the LPR client 13B designates a loopback address as an IP address and sends out print job data. The loopback address is an address used for transmission to itself. In IPv4, the loopback address is expressed as “127.0.0.1”, and in the IPv4 IPv4 compatible format, it is expressed as “0: 0: 0: 0: 0: 0: 127.0.0.1”. The Further, the LPR client 13B is set to designate, for example, 8515 as the counterpart port. The LPR server 14B is set to perform communication via a port designated by the LPR client 13B (that is, number 8515 in this example). Accordingly, when the communication interface 11 receives data in which the number 8515 is designated, the communication interface 11 passes the data to the LPR server 14B.
[0034]
Next, an operation example of the print system configured as described above will be described. Here, it is assumed that the host computer 1 is assigned an IP address “161.141.22.5” and the printer 2 is assigned “163.141.22.5”. Further, it is assumed that the port number 515 is assigned to the LPR server 14A and the port number 8515 is assigned to the LPR server 14B.
[0035]
Assume that the host computer 1 transmits a print request (print job data) to the printer 2. The host computer 1 designates the destination port number 515 of the TCP header of the data to be transmitted and designates the destination IP address “163.141.22.5” of the IP header and sends it out. Note that, as the transmission source port number, an arbitrary value other than the reserved port number (1024 or more) is typically dynamically assigned. FIG. 2A shows the structure of data transmitted from the host computer 1 to the printer 2. When the printer 2 receives a print request from the host computer 1 via the network environment, the printer 2 once spools the request to the print server main body 15 and sequentially sends it to the print processing circuit 16 according to the print processing status. At this time, a loopback address “127.0.0.1” is designated as the destination IP address of the IP header, and 8515 is designated as the destination port number. FIG. 2B is a diagram illustrating a structure of data transmitted from the print server main body 15 to the print processing circuit 16. As a result, data transmitted from the print server main body 15 to the print processing circuit 16 is looped back in the IP layer and transferred from the port number 8515 to the print processing circuit 16 via the LPR server 14B.
[0036]
As described above, according to the present embodiment, data is transmitted and received according to the LPR client / server based on the standard network technology TCP / IP, so that the print server main body reaches the print processing circuit. It is no longer necessary to develop the interface part until now, and the development cost can be kept low. For example, even when a LAN is constructed with a network protocol other than TCP / IP, it is sufficient to adopt a standard LPR service program for the interface from the print server main body to the print processing circuit. In this case, conversion from various network protocols to the LPR protocol may be executed by a module in the print server. In other words, it is not necessary to newly develop an interface corresponding to various network protocols, and an n-to-LPR conversion program may be provided for n protocols.
[0037]
In the above embodiment, a protocol (first protocol) for transmitting print job data from the host computer 1 to the print server body 15 and a protocol (second protocol) for transmitting print job data from the print server body 15 to the print processing circuit 16 are described. However, it is not necessary to be particularly concerned with this.
[0038]
For example, as shown in FIG. 3, the second client 13A (corresponding to the LPR client in FIG. 1) of the host computer 1 is connected to the second server 14B (on the LPR server in FIG. 1) provided on the print processing circuit 16 side. The print job data may be transmitted directly.
[0039]
The said embodiment is an illustration for demonstrating this invention, and is not the meaning which limits this invention only to this embodiment. The present invention can be implemented in various forms without departing from the gist thereof. For example, although the operation of the function realizing unit has been described sequentially, it is not particularly limited to this. Therefore, as long as no contradiction occurs in the operation, the processing order may be changed or the operations may be performed in parallel. In the present embodiment, the description is based on IPv4. However, IPv6 may be used.
[0040]
【The invention's effect】
According to the present invention, it is not necessary to develop an interface for each printer model, and the development cost can be kept extremely low.
[Brief description of the drawings]
FIG. 1 is a diagram for explaining a configuration of a print system according to the present invention.
FIG. 2 is a diagram showing a structure of transmission data.
FIG. 3 is a diagram for explaining the configuration of another print system according to the present invention.
FIG. 4 is a diagram illustrating a configuration of a conventional print system.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 11 ... Communication interface 12 ... Application program 13 ... LPR client 14 ... LPR server 15 ... Print server main body 16 ... Print processing circuit 17 ... Print engine

Claims (2)

ホストコンピュータから送信されるプリントジョブデータをTCP/IP上のLPRプロトコルに従って受信する第1の受信手段と、
前記第1の受信手段で受信したプリントジョブデータをスプールするプリントサーバと、前記プリントサーバにスプールされたプリントジョブデータをTCP/IP上のループバックアドレスを用いて、かつ、所定のポート番号を指定して送信する第1の送信手段と、
前記第1の送信手段で送信されたプリントジョブデータを受信する第2の受信手段と、
前記第2の受信手段で受信されたプリントジョブデータに基づいてイメージデータを生成する印刷処理手段と、
前記印刷処理手段で生成されたイメージデータに基づいて、印刷記録媒体に対する印刷を実行する印刷実行手段と、
を備えたことを特徴とするプリンタ。
First receiving means for receiving print job data transmitted from a host computer according to the LPR protocol on TCP / IP;
A print server for spooling print job data received by the first receiving means, and a print job data spooled in the print server using a loopback address on TCP / IP and specifying a predetermined port number And a first transmission means for transmitting
Second receiving means for receiving print job data transmitted by the first transmitting means;
Print processing means for generating image data based on print job data received by the second receiving means;
Print execution means for executing printing on a print recording medium based on the image data generated by the print processing means;
A printer comprising:
プリンタに所定の機能を実現させるプログラムを記録した記録媒体であって、
前記プログラムは、
ホストコンピュータから送信されるプリントジョブデータを受信する第1の受信機能と、
前記第1の受信機能によって受信したプリントジョブデータを所定の記憶装置にスプールさせるスプール機能と、
前記記憶装置にスプールされたプリントジョブデータを所定のプロトコルに従って送信する第1の送信機能と、
前記第1の送信機能によって送信されたプリントジョブデータを前記所定のプロトコルに従って受信する第2の受信機能と、
前記第2の受信機能によって受信されたプリントジョブデータに基づいて、イメージデータを生成する生成機能と、
前記生成機能によって生成されたイメージデータに基づき印刷記録媒体に対する印刷をプリントエンジンに行わせるように制御する制御機能と、
を備えたことを特徴とするプログラムを記録した記録媒体
A recording medium on which a program for causing a printer to realize a predetermined function is recorded ,
The program is
A first reception function for receiving print job data transmitted from a host computer;
A spool function for spooling print job data received by the first reception function in a predetermined storage device;
A first transmission function for transmitting print job data spooled in the storage device according to a predetermined protocol;
A second reception function for receiving the print job data transmitted by the first transmission function according to the predetermined protocol;
A generation function for generating image data based on the print job data received by the second reception function;
A control function for controlling the print engine to perform printing on the print recording medium based on the image data generated by the generation function;
The recording medium which recorded the program characterized by having provided.
JP2002341637A 2002-11-26 2002-11-26 Printer and printer job data transfer method Expired - Fee Related JP4243831B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002341637A JP4243831B2 (en) 2002-11-26 2002-11-26 Printer and printer job data transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002341637A JP4243831B2 (en) 2002-11-26 2002-11-26 Printer and printer job data transfer method

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2000015093A Division JP4139541B2 (en) 2000-01-24 2000-01-24 Printer and printer job data transfer method

Publications (2)

Publication Number Publication Date
JP2003208272A JP2003208272A (en) 2003-07-25
JP4243831B2 true JP4243831B2 (en) 2009-03-25

Family

ID=27655857

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002341637A Expired - Fee Related JP4243831B2 (en) 2002-11-26 2002-11-26 Printer and printer job data transfer method

Country Status (1)

Country Link
JP (1) JP4243831B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4464176B2 (en) * 2004-03-30 2010-05-19 キヤノン株式会社 Information processing apparatus and method, job management system, and program
JP6600957B2 (en) * 2015-03-26 2019-11-06 富士ゼロックス株式会社 Information processing apparatus and program

Also Published As

Publication number Publication date
JP2003208272A (en) 2003-07-25

Similar Documents

Publication Publication Date Title
JP3774508B2 (en) A device that automatically transmits event-related information
CN1107252C (en) Figure interface and system for copying set-up to multiple network equipment
US8006287B2 (en) Network apparatus and control method therefor
US6431772B1 (en) Broadcast printing system and method
JP2000347975A (en) Equipment management system, management server and computer readable recording medium
US7461069B2 (en) Log information management device, log information generation device, and computer-readable medium storing log information management program therein
JP2007062059A (en) Dispersing process for printing job
JP2000347976A (en) Equipment management system, management server and computer readable recording medium
JP4453593B2 (en) Monitoring the progress of printing in distributed printing
WO2006064650A1 (en) Profile acquisition method, apparatus, program, and recording medium
JP2000330742A (en) Network printer system
JP2005346739A (en) Printer and printer job data transfer method
US8270001B2 (en) Printing apparatus and canceling method
JP4139541B2 (en) Printer and printer job data transfer method
JP4045800B2 (en) Printing system and method
JP4243831B2 (en) Printer and printer job data transfer method
JP2006277501A (en) Distributed printing controller and its method
JP2000059561A (en) Scanner controller, scanner control system and control method
JP2004272918A (en) System and method for multicast print
JP2002055795A (en) Print managing apparatus and method for controlling the same and storage medium
JP3579884B2 (en) Data communication method and apparatus, printer and control method therefor
KR20010011078A (en) Method for printing in network printer
JP2006163568A (en) Port monitor
JP2007280045A (en) Server device, print controller, their control methods, computer program and storage medium
JP2003015846A (en) Image printing system, printing control terminal, connected media converter, printing control method, printing control program and connected media conversion program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070122

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080925

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20081119

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20081210

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20081223

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120116

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120116

Year of fee payment: 3

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130116

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130116

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140116

Year of fee payment: 5

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees