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

Printer and printer job data transfer method Download PDF

Info

Publication number
JP2005346739A
JP2005346739A JP2005241189A JP2005241189A JP2005346739A JP 2005346739 A JP2005346739 A JP 2005346739A JP 2005241189 A JP2005241189 A JP 2005241189A JP 2005241189 A JP2005241189 A JP 2005241189A JP 2005346739 A JP2005346739 A JP 2005346739A
Authority
JP
Japan
Prior art keywords
print
job data
print job
printer
protocol
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
JP2005241189A
Other languages
Japanese (ja)
Inventor
Toshihiro Shima
敏博 島
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 JP2005241189A priority Critical patent/JP2005346739A/en
Publication of JP2005346739A publication Critical patent/JP2005346739A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To reduce development costs by saving trouble of developing interfaces depending on individual print servers respectively. <P>SOLUTION: A printer provided with a print server transmits print job data spooled in the print server, to a print processing means by designating a loop-back address determined by TCP/IP. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、ネットワークに接続されるプリンタに関する。特に、本発明は、汎用的なネットワークプロトコルであるTCP/IPを用いたプリンタに関する。   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.

従来より、イーサネット(登録商標)(Ethernet(登録商標))などにより構築されたLAN等に接続され、複数のホストコンピュータによって共用可能なネットワーク対応型のプリンタが知られている。ホストコンピュータは、所定のネットワークプロトコルに従ってプリンタとの間でネットワーク通信を行い、プリンタドライバから出力されるプリントジョブデータをプリンタに送り込む。ホストコンピュータがプリンタにプリントジョブデータを送り込むためのネットワークプロトコルには、例えば、TCP/IP上で実装されるLPRプロトコルなどがある。   2. Description of the Related Art Conventionally, a network compatible printer that is connected to a LAN or the like constructed by Ethernet (registered trademark) or the like and can be shared by a plurality of host computers is 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.

このようなネットワークプリンタが提供される環境では、効率的にネットワークを利用するために、プリンタサーバを設けることが一般的である。プリンタサーバは、ホストコンピュータとの間でネットワーク通信を行って、からプリントジョブデータを受け取り、一旦、ハードディスクなどの記憶装置にスプールした後、順次プリントジョブデータを送り出すものである。このプリンタサーバには、例えば図3に示されるように、プリンタ外部に独立に構成されるもの(以下「プリンタ外プリンタサーバ」という。)と、プリンタ自身がその内部に構成するもの(以下「プリンタ内プリンタサーバ」という。)とがある。   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").

プリンタ外プリンタサーバによる方式(同図(a))では、ホストコンピュータからLPRプロトコルによって送信されるプリントジョブデータは、プリンタサーバ本体にスプールされた後、さらにLPRプロトコルによって指定されたプリンタに送信され、印刷処理されることになる。   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.

一方、プリンタ内プリンタサーバによる方式(同図(b))では、プリントジョブデータは、プリンタ内のプリンタサーバ本体にスプールされた後、そこから内部インターフェースを介して直接的に印刷処理回路に送信され、印刷処理されることになる。   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.

ネットワークプリンタ環境に導入されるべき新たなプリンタ外プリントサーバを開発するごとに、プリントサーバ本体とLPRクライアントとの間のインターフェースを開発する必要があった。   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.

一方、プリンタ内プリントサーバの場合は、プリンタサーバ本体と印刷処理回路との間のインターフェースを開発する必要があり、このため、新たに高機能なエンジンが開発されると、それに伴ってそのインターフェース自体も開発しなければならなかった。   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.

また、プリントサーバは、TCP/IP上のLPRプロトコル以外のさまざまプロトコルで実現されることが望ましいが、NetWareやAppleTalkなどあらゆるプロトコルに対応するように構築されることは現実的ではない。   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.

そこで、本発明は、個々のプリントサーバに依存したインターフェースをそれぞれ開発するという手間をなくすことを課題としている。   Therefore, an object of the present invention is to eliminate the trouble of developing interfaces depending on individual print servers.

より具体的には、本発明の課題は、プリントサーバ本体と印刷処理回路との間の通信に標準的なネットワークプロトコルであるLPRプロトコルを採用したプリンタ内プリントサーバを提供することである。   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.

上記課題を解決するための本発明は、以下のように特定される。   The present invention for solving the above-mentioned problems is specified as follows.

本発明の要旨は、プリントサーバを備えたプリンタであって、前記プリントサーバにスプールされたプリントジョブデータを、IPで規定されるループバックアドレスを指定して印刷処理手段に送信することを特徴とするプリンタである。   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.

より具体的には、ホストコンピュータから送信されるプリントジョブデータを第1のプロトコルに従って受信する第1の受信手段と、前記第1の受信手段で受信したプリントジョブデータをスプールするプリントサーバと、前記プリントサーバにスプールされたプリントジョブデータを第2のプロトコルに従って送信する第1の送信手段と、前記第1の送信手段で送信されたプリントジョブデータを前記第2のプロトコルに従って受信する第2の受信手段と、前記第2の受信手段で受信されたプリントジョブデータに基づいてイメージデータを生成する印刷処理手段と、前記印刷処理手段で生成されたイメージデータに基づいて、印刷記録媒体に対する印刷を実行する印刷実行手段と、を備えたことを特徴とするプリンタである。   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.

ここで、前記第1の送信手段は、ネットワークプロトコルとして知られるIP(Internet Protocol)で規定されるループバックアドレスを用いて前記プリントジョブデータを送信することを特徴とする。   Here, the first transmission means transmits the print job data using a loopback address defined by IP (Internet Protocol) known as a network protocol.

また、前記第1の送信手段は、所定のポートを指定して前記プリントジョブデータを送信し、前記第2の受信手段は、前記指定された所定のポートで受信することを特徴とする。   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.

さらに、前記所定のポートは、前記第1のプロトコルと前記第2のプロトコルとが同一である場合に、前記第1の受信手段が受信するポートと異なることを特徴とする。   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.

さらにまた、前記第1のプロトコルおよび/または前記第2のプロトコルは、TCP/IP上に実装されるLPRプロトコルであることが好ましい。   Furthermore, it is preferable that the first protocol and / or the second protocol is an LPR protocol implemented on TCP / IP.

また、前記プリンタは、前記第1のプロトコルに従ったプリントジョブデータを前記第2のプロトコルに従ったプリントジョブデータに変換する変換手段をさらに備えたことを特徴とする。   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.

上記装置の発明は、方法の発明としても成立する。すなわち、本発明は、プリントサーバを備えたプリンタにおけるプリントジョブデータの転送方法であって、前記プリントサーバにスプールされたプリントジョブデータを、前記プリントサーバ側に設けられた送信手段がIPで規定されるループバックアドレスを指定して印刷処理手段側に設けられた受信手段に送信することを特徴とするプリントジョブデータの転送方法である。   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.

さらに、本発明は、プリンタに所定の機能を実現させるプログラムを記録した記録媒体としても成立する。より具体的には、本発明は、プリンタに所定の機能を実現させるプログラムを記録した記録媒体であって、前記プログラムは、ホストコンピュータから送信されるプリントジョブデータを受信する第1の受信機能と、前記第1の受信機能によって受信したプリントジョブデータを所定の記憶装置にスプールさせるスプール機能と、前記記憶装置にスプールされたプリントジョブデータを所定のプロトコルに従って送信する第1の送信機能と、前記第1の送信機能によって送信されたプリントジョブデータを前記所定のプロトコルに従って受信する第2の受信機能と、前記第2の受信機能によって受信されたプリントジョブデータに基づいて、イメージデータを生成する生成機能と、前記生成機能によって生成されたイメージデータに基づき印刷記録媒体に対する印刷をプリントエンジンに行わせるように制御する制御機能と、を備えたことを特徴とするプログラムを記録した記録媒体である。   Furthermore, the present invention can also be realized as a recording medium on which a program for causing a printer to realize a predetermined function is recorded. 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.

ここで、前記記録媒体とは、例えば、ハードディスク(HD)、DVD−RAM、フレキシブルディスク(FD)やCD−ROM等のほかに、RAMやROM等のメモリを含む。また、前記プリンタとは、例えば、CPUやMPUといったいわゆる中央処理装置がプログラムを解釈することで所定の処理を行う、いわゆるマイクロコンピュータ等をも含む。   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.

また、前記プログラムは、オペレーティングシステムなどの基本プログラムによって実現される機能を呼び出す機能を含んで実現しても良い。   The program may be realized including a function for calling a function realized by a basic program such as an operating system.

さらに、本発明は、上記プリンタとコンピュータとを備えたプリントシステムとして構成しても良い。   Furthermore, the present invention may be configured as a print system including the printer and a computer.

なお、本明細書において、手段とは、単に物理的手段を意味するものではなく、その手段が有する機能をソフトウェアによって実現する場合も含む。また、1つの手段が有する機能が2つ以上の物理的手段により実現されても、2つ以上の手段の機能が1つの物理的手段により実現されても良い。   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.

本発明によれば、プリンタの機種ごとにインターフェースを開発する必要がなくなり、開発コストを極めて低く抑えることができるようになる。   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.

次に、本発明の実施の形態について、図面を参照しつつ説明する。   Next, embodiments of the present invention will be described with reference to the drawings.

図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ポート(以下「ポート」という。)を有し、パケットデータにおいて指定されるポートを介して通信サービスを提供する。   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.

アプリケーションプログラム12は、例えば、文書を作成・編集するためのワードプロセッサ、図形を作成・編集するグラフィックエディタなどである。今、ユーザからユーザインタフェースを介して印刷コマンドが与えられると、アプリケーションプログラム12は、プリンタドライバ(図示せず)を呼び出す。このプリンタドライバは、アプリケーションプログラム12から印刷対象であるそのアプリケーションデータを受け取って、このアプリケーションデータをプリンタ2で解釈するためのプリントジョブデータに変換し、LPRクライアント13Aに出力する。LPRクライアント13Aは、プリンタドライバから送られたプリントジョブデータを、所定のネットワーク通信プロトコルに従って、印刷出力先として指定されたプリンタ2に送信する。つまり、ホストコンピュータ1が、特定のプリンタ2に印刷を行わせようとする場合には、そのプリンタ2に割り当てられているIPアドレスを指定して送信することになる。この場合、LPRクライアント13Aは、相手先の特定のポートも指定する。LPRサーバ14Aとの間で通信を行う場合には、相手先のポートとして515番を指定する。LPRサーバ14Aは、LPRクライアント13Aからプリントジョブデータを受信し、これをプリントサーバ本体15に出力する。   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.

プリントサーバ本体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番である。   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.

印刷処理回路16は、LPRサーバ13Bから受け取ったプリントジョブデータを解釈してイメージデータを生成し、これをプリントエンジン17に供給するためのものである。印刷処理回路16は、典型的には、プリントジョブデータを解釈するための解釈プログラムやフォントデータを記録したROM、解釈プログラムを実行してプリントジョブデータをイメージデータに展開するプロセッサ、およびプロセッサのワークエリアとして使用され、また展開されたイメージデータを記憶するRAMなどから構成される。印刷処理回路16は、所定のバンド幅のイメージデータを展開すると、プリントエンジン17に印刷要求信号を出力し、プリントエンジン17から送られる同期信号に従ってイメージデータをプリントエンジン17に出力する。   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.

プリントエンジン17は、例えば、紙送り機構やプリントヘッドなどによって構成され、紙などの印刷記録媒体に印刷を行うものである。プリントエンジン38は、レーザプリンタやシリアルプリンタといったプリンタの種類に応じたものを用いることができる。   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.

上述したLPRクライアント13A,BおよびLPRサーバ14A,Bは、ネットワーク階層モデルでいうところの上位層プロトコルに位置付けられる通信サービスを実現するためのプログラムである。LPRクライアント13A,BおよびLPRサーバ14A,Bは、いわゆるデーモンプログラムとして実行され、所定のイベントを受け付けると、所定のネットワーク通信プロトコルに従った通信処理を行う。   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.

LPRクライアント13は、送信相手先のIPアドレスおよびポートを指定して、送信すべきデータを物理的・論理的に変換しながら、下位の通信サービス手段(本実施形態では通信インターフェース11)を介してネットワークNに送り出す。通信インターフェース11は、ネットワークN上を流れる自身宛のパケットデータを受信すると、その受信したデータで指定されているポートに対して、そのデータを物理的・論理的に変換して、上位の通信サービス手段に受け渡す。LPRサーバ14は、指定されたポートを介して通信を行うように設定されている。本実施形態におけるLPRサーバ14Aは、例えば515番のポートが指定されている。従って、通信インターフェース11は、515番が指定されたデータである場合には、LPRサーバ14Aに受け渡すことになる。   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.

上述のように、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に受け渡すことになる。   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.

次に、以上のように構成されるプリントシステムの動作例を説明する。ここでは、ホストコンピュータ1には、IPアドレス“161.141.22.5”が割り当てられ、プリンタ2には、“163.141.22.5”が割り当てられているものとする。また、LPRサーバ14Aには、ポート番号515が割り当てられ、LPRサーバ14Bには、ポート番号8515が割り当てられているものとする。   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.

今、ホストコンピュータ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に受け渡されることになる。   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.

以上のように本実施形態によれば、標準的なネットワーク技術であるTCP/IPをベースにLPRクライアント/サーバに従って、データの送受信を行うようにしているので、プリントサーバ本体から印刷処理回路に至るまでのインターフェース部分をあえて開発する必要がなくなり、開発コストを低く抑えることができるようになる。例えば、TCP/IP以外のネットワークプロトコルでLANを構築した場合であっても、プリントサーバ本体から印刷処理回路に至るまでのインターフェース部分は、標準的なLPRサービスプログラムを採用すれば足りることになる。この場合、各種ネットワークプロトコルからLPRプロトコルへの変換をプリントサーバ内のモジュールで実行すればよい。換言すれば、各種ネットワークプロトコルに応じたインターフェースを新たに開発する必要はなく、n個のプロトコルに対しては、n対LPRの変換プログラムを提供すれば良いことになる。   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.

上記実施形態では、プリントジョブデータをホストコンピュータ1からプリントサーバ本体15に送信するためのプロトコル(第1のプロトコル)と、プリントサーバ本体15から印刷処理回路16に送信するためのプロトコル(第2のプロトコル)とが、ともにLPRプロトコルであるものとして説明したが、特にこれにこだわる必要はない。   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.

例えば、図3に示すように、ホストコンピュータ1の第2クライアント13A(図1のLPRクライアントに相当する。)は、印刷処理回路16側に設けられた第2サーバ14B(図1のLPRサーバに相当する。)に、直接的にプリントジョブデータを送信するようにしてもよい。   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.

上記実施形態は、本発明を説明するための例示であり、本発明をこの実施形態にのみ限定する趣旨ではない。本発明は、その要旨を逸脱しない限り、さまざまな形態で実施することができる。例えば、上記機能実現手段の動作をシーケンシャルに説明したが、特にこれにこだわるものではない。従って、動作に矛盾が生じない限り、処理の順序を入れ替えまたは並行動作するように構成しても良い。また、本実施形態では、IPv4をベースに説明したが、IPv6であっても構わない。   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.

本発明に係るプリントシステムの構成を説明するための図である。1 is a diagram for explaining a configuration of a print system according to the present invention. FIG. 送信データの構造を示す図。The figure which shows the structure of transmission data. 本発明に係る他のプリントシステムの構成を説明するための図である。FIG. 10 is a diagram for explaining a configuration of another print system according to the invention. 従来のプリントシステムの構成を示す図である。It is a figure which shows the structure of the conventional print system.

符号の説明Explanation of symbols

11…通信インターフェース
12…アプリケーションプログラム
13…LPRクライアント
14…LPRサーバ
15…プリントサーバ本体
16…印刷処理回路
17…プリントエンジン
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 (9)

ホストコンピュータから送信されるプリントジョブデータを第1のプロトコルに従って受信する第1の受信手段と、前記第1の受信手段で受信したプリントジョブデータをスプールするプリントサーバと、前記プリントサーバにスプールされたプリントジョブデータを第2のプロトコルに従って送信する第1の送信手段と、前記第1の送信手段で送信されたプリントジョブデータを前記第2のプロトコルに従って受信する第2の受信手段と、前記第2の受信手段で受信されたプリントジョブデータに基づいてイメージデータを生成する印刷処理手段と、前記印刷処理手段で生成されたイメージデータに基づいて、印刷記録媒体に対する印刷を実行する印刷実行手段と、を備えたことを特徴とするプリンタ。 First receiving means for receiving print job data transmitted from a host computer in accordance with a first protocol, a print server for spooling print job data received by the first receiving means, and spooled in the print server First transmission means for transmitting print job data in accordance with a second protocol; second reception means for receiving print job data transmitted in the first transmission means in accordance with the second protocol; Print processing means for generating image data based on the print job data received by the receiving means, print execution means for executing printing on the print recording medium based on the image data generated by the print processing means, A printer comprising: 前記第1の送信手段は、IPで規定されるループバックアドレスを用いて前記プリントジョブデータを送信することを特徴とする請求項1記載のプリンタ。 The printer according to claim 1, wherein the first transmission unit transmits the print job data using a loopback address defined by IP. 前記第1の送信手段は、所定のポートを指定して前記プリントジョブデータを送信し、前記第2の受信手段は、前記指定された所定のポートで受信することを特徴とする請求項1または2記載のプリンタ。 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. 2. The printer according to 2. 前記所定のポートは、前記第1のプロトコルと前記第2のプロトコルとが同一である場合に、前記第1の受信手段が受信するポートと異なることを特徴とする請求項3記載のプリンタ。 4. The printer according to claim 3, wherein the predetermined port is different from a port received by the first receiving unit when the first protocol and the second protocol are the same. 前記第1のプロトコルおよび/または前記第2のプロトコルは、TCP/IP上に実装されるLPRプロトコルであることを特徴とする請求項1乃至4記載のプリンタ。 5. The printer according to claim 1, wherein the first protocol and / or the second protocol is an LPR protocol implemented on TCP / IP. 前記プリンタは、前記第1のプロトコルに従ったプリントジョブデータを前記第2のプロトコルに従ったプリントジョブデータに変換する変換手段をさらに備えたことを特徴とする請求項1乃至5記載のプリンタ。 6. The printer according to claim 1, further comprising conversion means for converting print job data according to the first protocol into print job data according to the second protocol. プリントサーバを備えたプリンタであって、前記プリントサーバにスプールされたプリントジョブデータを、IPで規定されるループバックアドレスを指定して印刷処理手段に送信することを特徴とするプリンタ。 A printer comprising 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. プリントサーバを備えたプリンタにおけるプリントジョブデータの転送方法であって、前記プリントサーバにスプールされたプリントジョブデータを、前記プリントサーバ側に設けられた送信手段がIPで規定されるループバックアドレスを指定して印刷処理手段側に設けられた受信手段に送信することを特徴とするプリントジョブデータの転送方法。 A method of transferring print job data in a printer having a print server, wherein print job data spooled in the print server is designated by a transmission means provided on the print server side as a loopback address defined by IP And transmitting the print job data to a receiving means provided on the print processing means side. プリンタに所定の機能を実現させるプログラムを記録した記録媒体であって、前記プログラムは、ホストコンピュータから送信されるプリントジョブデータを受信する第1の受信機能と、前記第1の受信機能によって受信したプリントジョブデータを所定の記憶装置にスプールさせるスプール機能と、前記記憶装置にスプールされたプリントジョブデータを所定のプロトコルに従って送信する第1の送信機能と、前記第1の送信機能によって送信されたプリントジョブデータを前記所定のプロトコルに従って受信する第2の受信機能と、前記第2の受信機能によって受信されたプリントジョブデータに基づいて、イメージデータを生成する生成機能と、前記生成機能によって生成されたイメージデータに基づき印刷記録媒体に対する印刷をプリントエンジンに行わせるように制御する制御機能と、を備えたことを特徴とするプログラムを記録した記録媒体。 A recording medium recording a program for causing a printer to realize a predetermined function, wherein the program is received by a first reception function for receiving print job data transmitted from a host computer and the first reception function. A spool function for spooling print job data in a predetermined storage device, a first transmission function for transmitting print job data spooled in the storage device according to a predetermined protocol, and a print transmitted by the first transmission function A second reception function for receiving job data in accordance with the predetermined protocol; a generation function for generating image data based on the print job data received by the second reception function; and the generation function generated by the generation function Print on the print recording medium based on the image data. Recording medium for recording a program characterized by comprising a control function, the controls to be performed by the cement engine.
JP2005241189A 2005-08-23 2005-08-23 Printer and printer job data transfer method Withdrawn JP2005346739A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005241189A JP2005346739A (en) 2005-08-23 2005-08-23 Printer and printer job data transfer method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005241189A JP2005346739A (en) 2005-08-23 2005-08-23 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 (1)

Publication Number Publication Date
JP2005346739A true JP2005346739A (en) 2005-12-15

Family

ID=35498994

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005241189A Withdrawn JP2005346739A (en) 2005-08-23 2005-08-23 Printer and printer job data transfer method

Country Status (1)

Country Link
JP (1) JP2005346739A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012070180A (en) * 2010-09-22 2012-04-05 Sharp Corp Multifunction peripheral
CN102572184A (en) * 2010-12-10 2012-07-11 佳能株式会社 Data communication apparatus and method of controlling the same
US8902439B2 (en) 2010-10-08 2014-12-02 Sharp Kabushiki Kaisha Multifunction peripheral
US9554008B2 (en) 2011-05-13 2017-01-24 Sharp Kabushiki Kaisha Multifunction peripheral, multifunction peripheral controlling system, and method for controlling multifunction peripheral

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012070180A (en) * 2010-09-22 2012-04-05 Sharp Corp Multifunction peripheral
US8934107B2 (en) 2010-09-22 2015-01-13 Sharp Kabushiki Kaisha Multifunction apparatus
US8902439B2 (en) 2010-10-08 2014-12-02 Sharp Kabushiki Kaisha Multifunction peripheral
CN102572184A (en) * 2010-12-10 2012-07-11 佳能株式会社 Data communication apparatus and method of controlling the same
US9554008B2 (en) 2011-05-13 2017-01-24 Sharp Kabushiki Kaisha Multifunction peripheral, multifunction peripheral controlling system, and method for controlling multifunction peripheral

Similar Documents

Publication Publication Date Title
CN1107252C (en) Figure interface and system for copying set-up to multiple network equipment
US6559965B1 (en) Method and apparatus for establishing two-way communication with a remote printer
US6431772B1 (en) Broadcast printing system and method
JP2004220565A (en) Distributed printing system, distributed printing method, distributed printing program, printer and printer management server
JP2006270193A (en) Image forming system and method, and image forming apparatus
JPH096564A (en) Apparatus for automatic transmission of event-related information
JP4453593B2 (en) Monitoring the progress of printing in distributed printing
WO2006064650A1 (en) Profile acquisition method, apparatus, program, and recording medium
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
JP2005327053A (en) Log information management device, log information generation device, log information management program and recording medium
JP4045800B2 (en) Printing system and method
JP4243831B2 (en) Printer and printer job data transfer method
JP2006277501A (en) Distributed printing controller and its method
JP2009015716A (en) Image forming apparatus by multiple ip addresses
JP2004127310A (en) Network system, printer, and information recording medium
JP2006163568A (en) Port monitor
JP4262007B2 (en) Network device and data processing system control method
JP3579884B2 (en) Data communication method and apparatus, printer and control method therefor
JP2007280045A (en) Server device, print controller, their control methods, computer program and storage medium
JP2003330642A (en) Network printing system
JP4164243B2 (en) Print monitoring system, print monitoring method, and computer program
JP2005004236A (en) Print control unit
JP4033823B2 (en) Status notification system in printing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061211

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090422

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090424

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20090619