JPH08272566A - Remote printing system - Google Patents

Remote printing system

Info

Publication number
JPH08272566A
JPH08272566A JP7078579A JP7857995A JPH08272566A JP H08272566 A JPH08272566 A JP H08272566A JP 7078579 A JP7078579 A JP 7078579A JP 7857995 A JP7857995 A JP 7857995A JP H08272566 A JPH08272566 A JP H08272566A
Authority
JP
Japan
Prior art keywords
communication
host computer
network printer
printer
network
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
JP7078579A
Other languages
Japanese (ja)
Inventor
Makoto Kitagawa
誠 北川
Saiji Kageyama
斎司 蔭山
Satoshi Matsumoto
智 松本
Takuya Shimakawa
卓也 島川
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP7078579A priority Critical patent/JPH08272566A/en
Publication of JPH08272566A publication Critical patent/JPH08272566A/en
Pending legal-status Critical Current

Links

Landscapes

  • Computer And Data Communications (AREA)
  • Accessory Devices And Overall Control Thereof (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE: To preferentially print a printing job which was being used immediately before the occurrence of a' fault even in the case of the occurrence of the fault by providing a host computer with a communication restart processing part for restarting communication with a network printer, and providing the network printer with a printer initialization processing part to restart the communication with the host computer. CONSTITUTION: At the time of starting the communication for printing, a connection state in course of the communication by a remote printing processing part is registered previously in a memory 115 by the host computer 110, and in the case where the interruption or the reset of the power supply of the network printer 120 is executed during the printing, the communication restart processing part 116 waits for a communication starting request from the network printer 120. On the other hand, in the network printer 120, at the time of starting the communication for the printing, a printing control part 121 registers previously the connection state in course of the communication in a non-volatile memory 124, and at the time of turning-on or resetting the power supply, the printer initialization processing part 125 requests the start of the communication with the host computer 110 registered in the non-volatile memory 124.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、ネットワークに接続さ
れたネットワークプリンタを、複数のホストで共有して
印刷を行うリモート印刷システムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a remote printing system for printing by sharing a network printer connected to a network with a plurality of hosts.

【0002】[0002]

【従来の技術】近年、ネットワークに接続された複数の
ホスト間でプリンタを共有して印刷を行うリモート印刷
システムが普及してきている。このようなリモート印刷
システムの例は、例えば、特開平4−18631号公報
に記載されている。
2. Description of the Related Art In recent years, a remote printing system has become widespread in which a plurality of hosts connected to a network share a printer for printing. An example of such a remote printing system is described in, for example, Japanese Patent Laid-Open No. 4-18631.

【0003】以下、ネットワークに接続された複数のホ
ストで、プリンタを共有するリモート印刷システムの、
一般的な従来例について、図7を用いて説明する。
Hereinafter, a remote printing system in which a plurality of hosts connected to a network share a printer,
A general conventional example will be described with reference to FIG.

【0004】図7の例では、ネットワーク100に接続
されたホストコンピュータ110が、ネットワークプリ
ンタ120を、ネットワーク内で他のホストコンピュー
タと共有して印刷を行う例を示している。図7では、ホ
ストコンピュータ110、およびネットワークプリンタ
120を、各1台のみ示しているが、複数のホストコン
ピュータおよび複数のプリンタで構成してもよい。
In the example of FIG. 7, the host computer 110 connected to the network 100 shares the network printer 120 with other host computers in the network to perform printing. In FIG. 7, only one host computer 110 and one network printer 120 are shown, but a plurality of host computers and a plurality of printers may be used.

【0005】ホストコンピュータ110は、ネットワー
ク100に接続された他のホストコンピュータとの間で
ネットワークプリンタ120を共有し、ユーザからの指
示に従いネットワークプリンタ120の動作を制御しな
がら印刷を行うコンピュータである。ホストコンピュー
タ110は、印刷ジョブを生成しネットワークプリンタ
での印刷を指示するための印刷プログラム111と、印
刷プログラム111からの指示をネットワークコンピュ
ータ120へ伝え、印刷ジョブを転送するためのリモー
ト印刷制御部112と、ホストコンピュータ110とネ
ットワークプリンタ120との間の通信手段を提供する
ためのネットワークプロトコル113とで構成される。
The host computer 110 is a computer that shares the network printer 120 with other host computers connected to the network 100 and performs printing while controlling the operation of the network printer 120 according to an instruction from the user. The host computer 110 transmits a print program 111 for generating a print job and instructing printing by a network printer, and a remote print control unit 112 for transmitting an instruction from the print program 111 to the network computer 120 and transferring the print job. And a network protocol 113 for providing a communication means between the host computer 110 and the network printer 120.

【0006】ネットワークプリンタ120は、ホストコ
ンピュータ110からの指示に従って印刷を行うプリン
タである。ネットワークプリンタ120は、ホストコン
ピュータ110からの指示に従って印刷を制御する印刷
制御部121と、プリンタメカニズムを制御して印刷を
行うためのプリンタエンジン122と、電源投入時やリ
セット時に初期化処理を行うためのプリンタ初期化処理
部125と、ネットワークプロトコル113とで構成さ
れる。
The network printer 120 is a printer that prints according to an instruction from the host computer 110. The network printer 120 has a print control unit 121 that controls printing according to instructions from the host computer 110, a printer engine 122 that controls the printer mechanism to perform printing, and an initialization process when power is turned on or reset. The printer initialization processing unit 125 and the network protocol 113.

【0007】ネットワークプリンタ120は、ネットワ
ーク100の構成要素の一つであり、単独でも動作可能
である。つまり、ネットワークプリンタ120は、ホス
トコンピュータ110の電源が遮断されていたり、ネッ
トワーク100に接続されていない場合にも、ネットワ
ーク上の構成要素としてネットワーク100に接続可能
であり、ホストコンピュータ110の動作状態に関係な
しに、電源を遮断されたり、リセットされたりして、ネ
ットワーク100への接続を切断されることもある。
The network printer 120 is one of the constituent elements of the network 100, and can operate independently. That is, the network printer 120 can be connected to the network 100 as a component on the network even when the power of the host computer 110 is cut off or is not connected to the network 100, and the operating state of the host computer 110 is changed. The connection to the network 100 may be disconnected irrespective of the power being cut off or the power being reset.

【0008】従来のネットワークプリンタ120では、
電源投入時やリセット時に、それ以前の接続状態に関す
る情報がプリンタ初期化処理125によって初期化さ
れ、すべて失われる。
In the conventional network printer 120,
At power-on or reset, the printer initialization process 125 initializes information about the previous connection state, and all the information is lost.

【0009】[0009]

【発明が解決しようとする課題】前述のように、初期化
処理125が終了して印刷可能な状態になったときに
は、ネットワークプリンタ120は、ネットワーク10
0内のどのホストコンピュータからの通信開始要求も受
け付けることができる。従って、印刷ジョブ転送中にネ
ットワークプリンタ120の電源を遮断されたり、リセ
ットされたりした場合、次に、印刷可能な状態になった
ときに、ホストコンピュータ110が、引き続いて印刷
を行うために再度ネットワークプリンタ120との通信
の開始を要求しても、ネットワーク100内の他のホス
トコンピュータが先にネットワークプリンタ120との
通信を開始し印刷する場合があった。
As described above, when the initialization process 125 is completed and the printer is ready for printing, the network printer 120 makes the network 10
A communication start request from any host computer within 0 can be accepted. Therefore, if the power of the network printer 120 is cut off or reset during the transfer of the print job, the host computer 110 will restart the network operation for the next printing when the printer becomes ready for printing. Even if a request to start communication with the printer 120 is made, another host computer in the network 100 may start communication with the network printer 120 and print.

【0010】従って、例えば10ページの印刷ジョブを
転送し、ネットワークプリンタ120で5ページ目の印
刷を行っている最中にネットワークプリンタ120の電
源の遮断やリセットが発生した場合、ユーザが表示装置
117に表示された障害報告の内容を確認し、ネットワ
ークプリンタ120が再び印刷可能な状態になったとき
に続いて5ページ目からの印刷を指示しても、ネットワ
ーク100内の他のホストコンピュータからの印刷ジョ
ブが先に実行され、10ページの文書の間に他の文書が
紛れ込んだり、他の印刷ジョブが終了するまで残りペー
ジの印刷を待たされるという問題があった。
Therefore, for example, if the power of the network printer 120 is cut off or reset while the print job of 10 pages is transferred and the network printer 120 is printing the fifth page, the display device 117 is operated by the user. Even if the user confirms the content of the failure report displayed on the screen, and then instructs the printing from the fifth page when the network printer 120 is ready to print again, another host computer from the network 100 There is a problem in that the print job is executed first, other documents are mixed in between 10-page documents, and printing of the remaining pages is kept waiting until the other print jobs are completed.

【0011】このように、従来のリモート印刷システム
では、印刷中にネットワークプリンタ120の電源の遮
断やリセットが行われた後、再び印刷可能な状態になっ
ても、印刷中であったユーザがすぐに所望の文書を得る
ことができなかったり、他の文書が紛れ込み仕分け作業
が必要になるなど信頼性が低いという問題があった。
As described above, in the conventional remote printing system, even after the power of the network printer 120 is cut off or reset during printing, even if the printer is ready to print again, the user who is printing immediately In addition, there is a problem that reliability is low such that a desired document cannot be obtained, and other documents are mixed in and sorting work is required.

【0012】本発明の目的は、上記問題を解決したリモ
ート印刷システムを提供することにある。
An object of the present invention is to provide a remote printing system that solves the above problems.

【0013】[0013]

【課題を解決するための手段】本発明は、ホストコンピ
ュータに、通信中の接続状態を登録するためのメモリ
と、ネットワークプリンタ120との通信を再開するた
めの通信再開処理部と、通信の再開を監視するためのタ
イマとを設けたことを特徴とする。また、ネットワーク
プリンタ120に通信中の接続状態を登録するための不
揮発性メモリと、通信の再開を監視するためのタイマを
設け、プリンタ初期化処理部がホストコンピュータとの
通信を再開するようにしたことを特徴とする。
According to the present invention, a memory for registering a connection state during communication in a host computer, a communication restart processing unit for restarting communication with a network printer 120, and communication restart. And a timer for monitoring the. Further, a non-volatile memory for registering the connection status during communication with the network printer 120 and a timer for monitoring the restart of communication are provided, and the printer initialization processing unit restarts communication with the host computer. It is characterized by

【0014】[0014]

【作用】ホストコンピュータで、印刷のための通信開始
時に、リモート印刷処理部が通信中の接続状態をメモリ
に登録し、印刷中にネットワークプリンタ120の電源
の遮断やリセットが行われた場合、通信再開処理部がネ
ットワークプリンタからの通信開始要求を待ち受ける。
また、通信再開処理部はタイマを起動し、タイマがタイ
ムアウトした場合、表示装置へ通信障害が発生した旨を
表示し、処理を終了する。
In the host computer, at the start of communication for printing, the remote print processing unit registers the connection state during communication in the memory, and when the power of the network printer 120 is cut off or reset during printing, communication is performed. The restart processing unit waits for a communication start request from the network printer.
Further, the communication resumption processing unit activates a timer, and when the timer times out, displays that communication failure has occurred on the display device, and ends the processing.

【0015】一方、ネットワークプリンタでは、印刷の
ための通信開始時に、印刷制御部が通信中の接続状態を
不揮発性メモリに登録しておき、電源投入時やリセット
時に、プリンタ初期化処理部が不揮発性メモリに登録さ
れているホストコンピュータとの通信の開始を要求す
る。また、プリンタ初期化処理部はタイマを起動し、タ
イマがタイムアウトした場合、通信の再開処理を終了
し、他の通信開始要求を受け付ける。
On the other hand, in a network printer, at the start of communication for printing, the print control unit registers the connection state during communication in a non-volatile memory, and when the power is turned on or reset, the printer initialization processing unit makes the non-volatile state. Request to start communication with the host computer registered in the local memory. Further, the printer initialization processing unit starts a timer, and when the timer times out, terminates the communication restart processing and accepts another communication start request.

【0016】通信再開処理部およびプリンタ初期化処理
部が以上のように作用するため、ネットワークプリンタ
の電源遮断時やリセット時の通信を優先して再開でき
る。
Since the communication restart processing section and the printer initialization processing section operate as described above, the communication at the time of power-off or reset of the network printer can be restarted with priority.

【0017】[0017]

【実施例】以下、本発明の実施例について図面を参照し
て説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0018】図1は、本発明の実施例のブロック図であ
る。
FIG. 1 is a block diagram of an embodiment of the present invention.

【0019】図1は、ネットワーク100に接続された
ホストコンピュータ110が、ネットワーク100に接
続されたネットワークプリンタ120で、印刷する例を
示している。図1では、印刷を行うホストコンピュータ
110、ネットワークプリンタ120を各1台示してい
るが、複数のホストコンピュータおよび複数のネットワ
ークプリンタとから構成してもよい。
FIG. 1 shows an example in which a host computer 110 connected to the network 100 prints with a network printer 120 connected to the network 100. In FIG. 1, one host computer 110 and one network printer 120 for printing are shown, but they may be composed of a plurality of host computers and a plurality of network printers.

【0020】ホストコンピュータ110は、ネットワー
ク100に接続された他のホストコンピュータとの間で
ネットワークプリンタ120を共有し、ユーザからの指
示に従いネットワークプリンタ120の動作を制御しな
がら印刷を行うコンピュータである。ホストコンピュー
タ110は、印刷ジョブを生成しネットワークプリンタ
120での印刷を指示するための印刷プログラム111
と、印刷プログラム111からの指示をネットワークプ
リンタ120へ伝え、印刷ジョブを転送するためのリモ
ート印刷制御部112と、ホストコンピュータ110と
ネットワークプリンタ120との間の通信手段を提供す
るためのネットワークプロトコル113と、通信障害回
復後にネットワークプリンタ120との通信を再開する
ための通信再開処理部116と、通信の再開を監視する
ためのタイマ114と、通信中の接続状態を登録するた
めのメモリ115と、入力装置118と、表示装置11
7とで構成される。入力装置118は、マウス等のポイ
ンティングデバイス、キーボード、ボタン、パネルスイ
ッチ、その他どんなものであっても良く、表示装置11
7は、CRT、液晶パネル、その他どんなものであって
も良い。
The host computer 110 is a computer that shares the network printer 120 with other host computers connected to the network 100 and performs printing while controlling the operation of the network printer 120 according to an instruction from the user. The host computer 110 generates a print job and a print program 111 for instructing printing by the network printer 120.
And a remote print control unit 112 for transmitting an instruction from the print program 111 to the network printer 120 to transfer a print job, and a network protocol 113 for providing a communication means between the host computer 110 and the network printer 120. A communication restart processing unit 116 for restarting communication with the network printer 120 after recovery from communication failure, a timer 114 for monitoring the restart of communication, and a memory 115 for registering a connection state during communication. Input device 118 and display device 11
7 and 7. The input device 118 may be a pointing device such as a mouse, a keyboard, a button, a panel switch, or any other device.
7 may be a CRT, a liquid crystal panel, or any other type.

【0021】ネットワークプリンタ120は、ホストコ
ンピュータ110からの指示に従って印刷を行うプリン
タである。ネットワークプリンタ120は、ホストコン
ピュータ110からの指示に従って印刷を制御する印刷
制御部121と、プリンタメカニズムを制御して印刷を
行うためのプリンタエンジン122と、電源投入時やリ
セット時に初期化処理を行うためのプリンタ初期化処理
部125と、通信の再開を監視するためのタイマ123
と、通信中の接続状態を登録するための不揮発性メモリ
124と、ネットワークプロトコル113とで構成され
る。
The network printer 120 is a printer that prints according to an instruction from the host computer 110. The network printer 120 has a print control unit 121 that controls printing according to instructions from the host computer 110, a printer engine 122 that controls the printer mechanism to perform printing, and an initialization process when power is turned on or reset. Printer initialization processing unit 125, and a timer 123 for monitoring the resumption of communication
And a non-volatile memory 124 for registering the connection state during communication, and a network protocol 113.

【0022】ユーザが入力装置118から文書の印刷を
指示すると、印刷プログラム111は、文書ファイル
と、印刷部数等の印刷形式に関するユーザが入力した設
定情報を元に、ページ記述言語(PDL:Page Descripti
on Language)により文書の内容を記述した印刷ジョブを
作成し、リモート印刷制御部112へ印刷ジョブを渡
す。印刷プログラム111とリモート印刷制御部112
との間にスプールまたはキューを設け、スプール中に複
数の印刷ジョブを蓄えることができるようにし、リモー
ト印刷制御部112が順次印刷ジョブを取り出して印刷
する構成としてもよい。
When the user gives an instruction to print a document from the input device 118, the print program 111 uses a page description language (PDL: Page Descripti) based on the document file and the setting information input by the user regarding the print format such as the number of copies.
On language), a print job in which the content of the document is described is created, and the print job is passed to the remote print control unit 112. Print program 111 and remote print control unit 112
A spool or a queue may be provided between the printer and the printer so that a plurality of print jobs can be stored in the spool, and the remote print control unit 112 sequentially takes out print jobs and prints them.

【0023】リモート印刷制御部112は、ネットワー
クプリンタ120と通信プロトコル113による通信を
行う。ネットワークプリンタ120では印刷制御部12
1がホストコンピュータとの通信を行い、ホストコンピ
ュータ110からの指示に従い、プリンタエンジン12
2を制御して印刷ジョブを印刷する。
The remote print control unit 112 communicates with the network printer 120 by the communication protocol 113. In the network printer 120, the print controller 12
1 communicates with the host computer, and according to the instruction from the host computer 110, the printer engine 12
2 to print the print job.

【0024】ホストコンピュータ110がネットワーク
プリンタ120へ印刷ジョブを転送している最中に、ネ
ットワークプリンタ120が電源を遮断されたり、リセ
ットされたりした場合、通信プロトコル113に従った
通信終了処理が行われないため、通信プロトコル113
は、リモート印刷制御部112へ通信障害を報告する。
If the power of the network printer 120 is cut off or reset while the host computer 110 is transferring a print job to the network printer 120, communication end processing according to the communication protocol 113 is performed. Communication protocol 113
Reports a communication failure to the remote print control unit 112.

【0025】図2にリモート印刷制御部112の動作フ
ローを示す。
FIG. 2 shows an operation flow of the remote print control unit 112.

【0026】以下、図2を用いてリモート印刷制御部1
12の動作について詳細に説明する。
Hereinafter, the remote print control unit 1 will be described with reference to FIG.
The operation of 12 will be described in detail.

【0027】リモート印刷制御部112は、印刷ジョブ
を受け取り、図2に示すように、ネットワークプリンタ
120へ、ネットワークプロトコル113を利用した通
信の開始を要求する(201)。通信開始要求は、例え
ばネットワークプロトコルにTCP/IPを用いた場合
には、コネクション要求関数(connect)を発行すること
により行う。
The remote print control unit 112 receives the print job and, as shown in FIG. 2, requests the network printer 120 to start communication using the network protocol 113 (201). The communication start request is issued by issuing a connection request function (connect) when TCP / IP is used as the network protocol, for example.

【0028】ネットワークプリンタ120との通信要求
が受け付けられると、リモート印刷制御部112は、通
信相手と自分自身のホストIDと通信に使用するポート
番号の組をメモリ115に登録し(202)、通信障害
が発生せず(203)、通信をまだ終了しない(20
4)場合に、印刷ジョブを転送する(205)。
When a request for communication with the network printer 120 is accepted, the remote print control unit 112 registers in the memory 115 a set of the host ID of the communication partner and the host ID of itself and the port number used for communication (202), and communicates. No failure has occurred (203), and communication has not yet been terminated (20
In the case of 4), the print job is transferred (205).

【0029】印刷ジョブの転送を終えて、ネットワーク
プリンタ120との通信を終了する場合には(20
4)、メモリ115に登録した通信相手と自分自身のホ
ストIDとポート番号の組を消去して(207)、処理
を終了する。
When the transfer of the print job is completed and the communication with the network printer 120 is ended (20
4) The pair of host ID and port number of the communication partner and the self registered in the memory 115 is erased (207), and the process ends.

【0030】図3にネットワークプリンタ120の動作
フローチャートを示す。
FIG. 3 shows an operation flowchart of the network printer 120.

【0031】以下、図3を用いてネットワークプリンタ
120の動作について詳細に説明する。
The operation of the network printer 120 will be described in detail below with reference to FIG.

【0032】ネットワークプリンタ120では、印刷制
御部121が、ネットワークプロトコル113を利用し
た通信を受け付ける(301)。通信開始要求の受付
は、例えばネットワークプロトコルにTCP/IPを用
いた場合には、コネクション要求の受付関数(listen)お
よびコネクションの確立関数(accept)を発行することに
より行う。
In the network printer 120, the print control unit 121 receives communication using the network protocol 113 (301). The reception of the communication start request is performed by issuing a connection request reception function (listen) and a connection establishment function (accept) when TCP / IP is used as the network protocol, for example.

【0033】ホストコンピュータ110からの通信を受
け付けると、印刷制御部121は、通信相手と自分自身
のホストIDとポート番号の組を不揮発性メモリ124
に登録し(302)、通信障害が発生せず(303)、
通信をまだ終了しない(304)場合に、印刷ジョブを
受信し、印刷ジョブ中に記述されているPDLに従って
文書内容を描画し、プリンタエンジン122へ渡し、プ
リンタエンジン122が、プリンタメカニズムを制御し
ながら印刷を行う(305)。
Upon receiving the communication from the host computer 110, the print control unit 121 stores a set of the host ID and port number of the communication partner and itself in the non-volatile memory 124.
(302), no communication failure occurred (303),
When the communication is not yet ended (304), the print job is received, the document content is drawn according to the PDL described in the print job, and the document content is passed to the printer engine 122. The printer engine 122 controls the printer mechanism. Printing is performed (305).

【0034】印刷ジョブの転送を終えて、ホストコンピ
ュータ110との通信を終了する場合には(304)、
不揮発性メモリ124に登録した通信相手と自分自身の
ホストIDとポート番号の組を消去して(307)、処
理を終了する。
When the transfer of the print job is completed and the communication with the host computer 110 is ended (304),
The set of the host ID and port number of the communication partner and the self registered in the non-volatile memory 124 is erased (307), and the process is ended.

【0035】ネットワークプリンタ120は、印刷ジョ
ブを転送中に通信障害が発生した場合(303)、電源
が投入された場合、または、リセットされた場合に、通
信再開処理を行う(306)。リセットは、リセットボ
タンが押されたり回復不能なハードウェア障害が発生し
た場合に起こる。
The network printer 120 performs communication restart processing when a communication failure occurs during transfer of a print job (303), power is turned on, or reset (306). A reset occurs when the reset button is pressed or an unrecoverable hardware failure occurs.

【0036】図5に、ネットワークプリンタ120にお
ける通信再開処理のフローを示す。
FIG. 5 shows a flow of communication restart processing in the network printer 120.

【0037】以下、図5を用いてネットワークプリンタ
120における通信再開処理手順について説明する。
The communication restart processing procedure in the network printer 120 will be described below with reference to FIG.

【0038】プリンタ初期化処理部125は、不揮発性
メモリ124にホストIDとポート番号の組が登録され
ているかを確認し(501)、登録されている場合にタ
イマ123を起動し(502)、不揮発性メモリ124
に登録されているホスト110へ、通信の開始を要求し
(503)、図6に示す通信再開要求メッセージ601
を送信する(504)。
The printer initialization processing unit 125 confirms whether the combination of the host ID and the port number is registered in the non-volatile memory 124 (501), and if registered, activates the timer 123 (502). Non-volatile memory 124
A request to start communication is made to the host 110 registered in (503), and a communication restart request message 601 shown in FIG.
Is transmitted (504).

【0039】次に、プリンタ初期化処理部125は、ホ
ストコンピュータ110からの応答メッセージを受信す
る(505)。応答メッセージは、図6に示す通信再開
要求メッセージ601と全く同じ形式を持ち、ホストコ
ンピュータ110がメモリ115の内容をコピーして送
信する。応答メッセージ中のホストIDとポート番号の
組が不揮発性メモリ124の内容と一致する場合(50
7)、ホストIDと新しいポート番号の組を不揮発性メ
モリ124に登録し(508)、印刷のための通信を再
開する(509)。
Next, the printer initialization processing section 125 receives a response message from the host computer 110 (505). The response message has exactly the same format as the communication restart request message 601 shown in FIG. 6, and the host computer 110 copies the content of the memory 115 and transmits it. When the combination of the host ID and the port number in the response message matches the content of the non-volatile memory 124 (50
7) Then, the set of the host ID and the new port number is registered in the non-volatile memory 124 (508), and the communication for printing is restarted (509).

【0040】応答メッセージ中のホストIDとポート番
号の組が不揮発性メモリ124の内容と一致しない場合
(507)、または、タイマ123がタイムアウトした
場合(506)、プリンタ初期化処理部125は、不揮
発性メモリ124の内容を消去し(510)、処理を終
了する。
If the combination of the host ID and the port number in the response message does not match the contents of the non-volatile memory 124 (507) or the timer 123 times out (506), the printer initialization processing unit 125 determines that the non-volatile The contents of the property memory 124 are erased (510), and the process ends.

【0041】ホストコンピュータ110は、印刷ジョブ
を転送中に通信障害が発生した場合(203)、通信再
開処理を行う(206)。
When a communication failure occurs during transfer of a print job (203), the host computer 110 performs communication restart processing (206).

【0042】図4に、ホストコンピュータ110におけ
る通信再開処理のフローを示す。
FIG. 4 shows a flow of communication restart processing in the host computer 110.

【0043】以下、図4を用いてホストコンピュータ1
10における通信再開処理手順について説明する。
Hereinafter, the host computer 1 will be described with reference to FIG.
The communication restart processing procedure in 10 will be described.

【0044】通信再開処理部116は、メモリ115に
ホストIDとポート番号の組が登録されているかを確認
し(401)、登録されている場合にタイマ114を起
動し(402)、通信要求を受け付ける(403)。
The communication resumption processing unit 116 confirms whether or not the combination of the host ID and the port number is registered in the memory 115 (401), and if registered, activates the timer 114 (402) and makes a communication request. Accept (403).

【0045】ネットワークプリンタ120から通信要求
が有り(404)、通信要求メッセージ中のホストID
とポート番号の組がメモリ115の内容と一致する場合
(405)、応答メッセージ(601)にメモリ115
の内容をコピーして送信し(406)、ホストIDと新
しいポート番号の組をメモリ115に登録し(40
7)、通信を再開する(408)。
There is a communication request from the network printer 120 (404), and the host ID in the communication request message
If the combination of the port number and the port number matches the contents of the memory 115 (405), the memory 115
Is copied and transmitted (406), and the set of host ID and new port number is registered in the memory 115 (40
7) Resume communication (408).

【0046】通信要求メッセージ中のホストIDとポー
ト番号の組がメモリ115の内容と一致しない場合(4
05)、応答メッセージ(601)にメモリ115の内
容をコピーして通信拒否応答として送信し(409)、
再び通信要求を受け付ける(403)。通信拒否応答の
送信(409)を行わずに再び通信要求を受け付けるよ
うにしても良い。この場合、ネットワークプリンタ12
0では、タイムアウトが発生し(506)処理を終了す
る。
When the combination of the host ID and the port number in the communication request message does not match the contents of the memory 115 (4
05), copy the contents of the memory 115 to the response message (601) and send it as a communication refusal response (409),
The communication request is accepted again (403). The communication request may be accepted again without transmitting the communication refusal response (409). In this case, the network printer 12
At 0, a time-out occurs (506) and the process ends.

【0047】ホストコンピュータ110においてタイマ
114がタイムアウトした場合(410)には、メモリ
115の内容を消去し(411)、表示装置117に通
信障害が発生した旨を表示し(412)、処理を終了す
る。
When the timer 114 in the host computer 110 has timed out (410), the contents of the memory 115 are erased (411), the fact that a communication failure has occurred is displayed on the display device 117 (412), and the processing is terminated. To do.

【0048】ホストコンピュータ110が印刷ジョブを
転送中に通信障害が発生した場合(203)、表示装置
117に通信障害が発生した旨を表示し、通信再開処理
を行うか否かをユーザに問合せ、入力装置118からユ
ーザが通信の再開を指示した場合に通信再開処理を行う
ようにしても良い。
When a communication failure occurs during transfer of a print job by the host computer 110 (203), a message indicating that the communication failure has occurred is displayed on the display device 117, and the user is inquired whether or not to perform communication restart processing. The communication restart processing may be performed when the user gives an instruction to restart the communication from the input device 118.

【0049】実施例で用いるネットワークプロトコル1
13は、OSI,TCP/IP,UDP/IP,Net
Ware,LANMANAGER,その他どのようなも
のであっても良く、また、ネットワーク100は、LA
N,パケット交換網,専用線,電話線,その他どのよう
なものであっても良い。
Network protocol 1 used in the embodiment
13 is OSI, TCP / IP, UDP / IP, Net
The network 100 may be LA, LANMANAGER, or any other type.
N, packet switching network, leased line, telephone line, or any other type may be used.

【0050】また、実施例では、メモリ115および不
揮発性メモリ124に、ホストIDとポート番号の組を
登録しているが、通信相手と自分自身についてのホスト
および通信中のプロセスの組が特定できるものであれ
ば、例えば、プロセス番号、ランダムな計算結果等どの
ような情報を用いても良い。
Further, in the embodiment, the set of the host ID and the port number is registered in the memory 115 and the non-volatile memory 124, but the set of the host and the communicating process with respect to the communication partner and itself can be specified. Any information such as a process number and a random calculation result may be used as long as the information is available.

【0051】実施例では、通信再開時に、ネットワーク
プリンタ120がホストコンピュータ110へ通信再開
要求を行う例を示したが、これとは逆に、ホストコンピ
ュータ110が、ネットワークプリンタ120へ通信再
開要求を行うようにしても良い。この場合、ネットワー
クプリンタ120が、図4で示した通信再開処理のフロ
ーに従って通信再開を受け付け、ホストコンピュータ1
10が、図5で示した通信再開処理のフローに従って通
信の再開を要求する。この場合、ホストコンピュータ1
10が、一定時間間隔で、メモリに登録されているホス
トへ通信の開始を要求し(503)、ネットワークプリ
ンタ120は表示装置への障害発生の表示(412)を
行わない替わりに、ホストコンピュータ110が、メモ
リ内容の消去(510)の後に表示装置への障害発生の
表示を行う。
In the embodiment, the example in which the network printer 120 makes a communication restart request to the host computer 110 at the time of restarting communication has been described. On the contrary, the host computer 110 makes a communication restart request to the network printer 120. You may do it. In this case, the network printer 120 accepts the communication restart according to the flow of the communication restart processing shown in FIG.
10 requests the restart of communication according to the flow of the communication restart process shown in FIG. In this case, the host computer 1
10 requests the host registered in the memory to start communication at a fixed time interval (503), and the network printer 120 does not display the failure occurrence on the display device (412). Instead, the host computer 110 However, after the memory contents are erased (510), the failure occurrence is displayed on the display device.

【0052】また、実施例では、リモート印刷制御部1
12および印刷制御部121が通信相手と自分自身のホ
ストIDとポート番号の組をメモリに登録しているが、
通信プロトコル113が、メモリ115および不揮発性
メモリ124を利用して接続状態を管理し、リモート印
刷制御部112および印刷制御部121での登録処理を
通信プロトコル113が行うようにしても良い。
Further, in the embodiment, the remote print control unit 1
12 and the print control unit 121 have registered in the memory the pair of host ID and port number of the communication partner and itself.
The communication protocol 113 may manage the connection state using the memory 115 and the non-volatile memory 124, and the communication protocol 113 may perform registration processing in the remote print control unit 112 and the print control unit 121.

【0053】[0053]

【発明の効果】本発明によれば、ホストコンピュータが
ネットワークプリンタを使用して印刷中に、ネットワー
クプリンタの電源が遮断されたり、ネットワークプリン
タでリセット処理が行われたり、通信障害が発生した場
合にも、その直前に使用中であったホストコンピュータ
の印刷ジョブを優先して印刷することができる。
According to the present invention, when the power of the network printer is cut off, the reset process is performed in the network printer, or the communication failure occurs while the host computer is using the network printer for printing. Also, the print job of the host computer that was being used immediately before that can be preferentially printed.

【0054】これにより、ネットワークプリンタを使用
して複数ページの文書を印刷中に障害が発生した場合に
も、他のホストコンピュータや他の印刷プログラムが提
出した印刷ジョブによる印刷文書が間に割り込むことな
く、所望の印刷文書を得ることができる。
As a result, even if an error occurs during printing of a document of a plurality of pages using the network printer, a print document by a print job submitted by another host computer or another print program can be interrupted. Without, it is possible to obtain the desired printed document.

【0055】すなわち、本発明によれば、ネットワーク
プリンタを複数のホストコンピュータがネットワーク内
で共有する構成で、信頼性の高いリモート印刷システム
を構築することができる。
That is, according to the present invention, it is possible to construct a highly reliable remote printing system with a configuration in which a plurality of host computers share a network printer in the network.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施例によるリモート印刷システムの
ブロック図。
FIG. 1 is a block diagram of a remote printing system according to an embodiment of the present invention.

【図2】リモート印刷制御部の動作のフローチャート。FIG. 2 is a flowchart of the operation of a remote print control unit.

【図3】ネットワークプリンタの動作のフローチャー
ト。
FIG. 3 is a flowchart of the operation of the network printer.

【図4】ホストコンピュータにおける通信再開処理の動
作のフローチャート。
FIG. 4 is a flowchart of an operation of communication restart processing in the host computer.

【図5】ネットワークプリンタにおける通信再開処理の
動作のフローチャート。
FIG. 5 is a flowchart of an operation of communication restart processing in the network printer.

【図6】通信再開要求メッセージの形式を示す説明図。FIG. 6 is an explanatory diagram showing the format of a communication restart request message.

【図7】従来のリモート印刷システムのブロック図。FIG. 7 is a block diagram of a conventional remote printing system.

【符号の説明】[Explanation of symbols]

100…ネットワーク、 110…ホストコンピュータ、 111…印刷プログラム、 112…リモート印刷制御部、 113…ネットワークプロトコル、 114…タイマ、 115…メモリ、 116…通信再開処理部、 120…ネットワークプリンタ、 121…印刷制御部、 122…プリンタエンジン、 123…タイマ、 124…不揮発性メモリ、 125…プリンタ初期化処理部。 100 ... Network, 110 ... Host computer, 111 ... Print program, 112 ... Remote print control section, 113 ... Network protocol, 114 ... Timer, 115 ... Memory, 116 ... Communication restart processing section, 120 ... Network printer, 121 ... Print control Reference numeral 122 ... Printer engine, 123 ... Timer, 124 ... Non-volatile memory, 125 ... Printer initialization processing unit.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.6 識別記号 庁内整理番号 FI 技術表示箇所 G06F 13/00 301 G06F 13/00 301K 351 7368−5E 351M (72)発明者 島川 卓也 神奈川県川崎市麻生区王禅寺1099番地株式 会社日立製作所システム開発研究所内─────────────────────────────────────────────────── ─── Continuation of the front page (51) Int.Cl. 6 Identification code Internal reference number FI Technical display location G06F 13/00 301 G06F 13/00 301K 351 7368-5E 351M (72) Inventor Takuya Shimakawa Kawasaki, Kanagawa Prefecture No. 1099, Ozenji, Aso-ku, Yokohama Stock Company Hitachi, Ltd. System Development Laboratory

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】ネットワークと、前記ネットワークに接続
された複数のホストコンピュータと、前記ネットワーク
に接続された少なくとも1台のネットワークプリンタと
からなり、前記複数のホストコンピュータが、前記ネッ
トワークプリンタを共有して印刷を行うリモート印刷シ
ステムにおいて、 前記ホストコンピュータが、通信相手および自分自身の
ホストおよびプロセスの組とからなる接続状態を登録す
るためのメモリと、通信障害回復後に前記ネットワーク
プリンタとの通信を再開するための通信再開処理部と、
通信の再開を監視するためのタイマとを有し、前記ネッ
トワークプリンタが、通信相手および自分自身のホスト
およびプロセスの組とからなる接続状態を登録するため
の不揮発性メモリと、通信の再開を監視するためのタイ
マと、通信障害回復後に前記ネットワークプリンタとの
通信を再開するプリンタ初期化処理部とを有し、 前記ホストコンピュータが、通信障害発生時に、メモリ
に登録されている接続状態に関する情報を元に、通信中
の前記ネットワークプリンタからの通信開始要求を待ち
受け、前記ネットワークプリンタが、プリンタ初期化処
理中に、不揮発性メモリに登録されている接続状態に関
する情報を元に、前記ホストコンピュータへ通信の開始
を要求し、前記通信障害発生時に行われていた通信を再
開し継続して印刷を行うことを特徴とするリモート印刷
システム。
1. A network, a plurality of host computers connected to the network, and at least one network printer connected to the network, wherein the plurality of host computers share the network printer. In a remote printing system for printing, the host computer restarts communication with a memory for registering a connection state consisting of a communication partner and a host and a set of processes of itself and communication with the network printer after recovery from a communication failure. Communication resumption processing unit for
A non-volatile memory for registering the connection status of the network printer, which includes a communication partner, a host of itself, and a process, and a timer for monitoring the restart of communication; And a printer initialization processing unit that resumes communication with the network printer after recovery of communication failure, and when the communication failure occurs, the host computer displays information about the connection status registered in the memory. Originally, it waits for a communication start request from the network printer during communication, and the network printer communicates to the host computer based on the information about the connection state registered in the non-volatile memory during the printer initialization process. Request to start, restart the communication that was performed when the communication failure occurred, and continue printing. A remote printing system characterized in that
【請求項2】請求項1において、 前記ホストコンピュータが、表示装置及び入力装置を有
し、前記通信障害発生時に、前記表示装置に通信障害が
発生した旨表示し、前記入力装置から印刷を継続する旨
指示があった場合に、通信再開処理を行うリモート印刷
システム。
2. The host computer according to claim 1, wherein the host computer has a display device and an input device, and when the communication failure occurs, displays that the communication failure has occurred on the display device and continues printing from the input device. A remote printing system that performs communication restart processing when instructed to do so.
【請求項3】請求項1において、 前記ホストコンピュータが、前記メモリに登録されてい
る前記接続状態に関する情報を元に、通信障害発生時に
通信中であった前記ネットワークプリンタに一定時間隔
で通信の開始を要求し、前記ネットワークプリンタが、
プリンタ初期化処理中に、前記不揮発性メモリに登録さ
れている前記接続状態に関する情報を元に、前記ホスト
コンピュータからの通信開始要求を待ち受け、前記通信
障害発生時に行われていた通信を再開し継続して印刷を
行うリモート印刷システム。
3. The host computer according to claim 1, wherein the host computer communicates with the network printer, which is in communication at the time of occurrence of a communication failure, at regular time intervals based on the information regarding the connection state registered in the memory. Request to start, the network printer
During the printer initialization process, based on the information related to the connection status registered in the non-volatile memory, waits for a communication start request from the host computer and restarts and continues the communication that was performed when the communication failure occurred. Remote printing system that prints by doing.
【請求項4】請求項1または3において、 前記ホストコンピュータで、前記ネットワークプリンタ
との通信を開始する時点で、前記メモリに前記接続状態
に関する情報を登録するリモート印刷システム。
4. The remote printing system according to claim 1, wherein the host computer registers information regarding the connection status in the memory at the time of starting communication with the network printer.
【請求項5】請求項1または3において、 前記ネットワークプリンタで、前記ホストコンピュータ
との通信を開始される時点で、前記不揮発性メモリに前
記接続状態に関する情報を登録するリモート印刷システ
ム。
5. The remote printing system according to claim 1, wherein the network printer registers information regarding the connection state in the non-volatile memory when communication with the host computer is started.
【請求項6】請求項1または3において、 前記ホストコンピュータおよび前記ネットワークプリン
タにおいて、前記印刷を要求するコンピュータと前記ネ
ットワークプリンタとの通信に用いられる通信プロトコ
ルが、前記通信が開始される時点で、前記メモリおよび
前記不揮発性メモリに前記接続状態に関する情報を登録
するリモート印刷システム。
6. The host computer and the network printer according to claim 1, wherein a communication protocol used for communication between the computer requesting the printing and the network printer is at a time point when the communication is started. A remote printing system for registering information on the connection state in the memory and the non-volatile memory.
JP7078579A 1995-04-04 1995-04-04 Remote printing system Pending JPH08272566A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7078579A JPH08272566A (en) 1995-04-04 1995-04-04 Remote printing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7078579A JPH08272566A (en) 1995-04-04 1995-04-04 Remote printing system

Publications (1)

Publication Number Publication Date
JPH08272566A true JPH08272566A (en) 1996-10-18

Family

ID=13665823

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7078579A Pending JPH08272566A (en) 1995-04-04 1995-04-04 Remote printing system

Country Status (1)

Country Link
JP (1) JPH08272566A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7154619B1 (en) 1997-09-30 2006-12-26 Minolta Co., Ltd. Image forming apparatus and terminal device connected to network
JP2007272833A (en) * 2006-03-31 2007-10-18 Ricoh Co Ltd Printing system, printer, host device, printing method, printing program, printing control program and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7154619B1 (en) 1997-09-30 2006-12-26 Minolta Co., Ltd. Image forming apparatus and terminal device connected to network
JP2007272833A (en) * 2006-03-31 2007-10-18 Ricoh Co Ltd Printing system, printer, host device, printing method, printing program, printing control program and recording medium

Similar Documents

Publication Publication Date Title
US6734985B1 (en) Printing apparatus, printing system and method of controlling same
AU748517B2 (en) Job token printer assignment system
JPH07281848A (en) Remote control printing system and its computer
JPH11105381A (en) Printing system and printer
JPH11134142A (en) Printing system
JP2002140184A (en) Printer, print system, recording medium and server
EP2811394B1 (en) Network-based event notification system
JPH1195941A (en) Printer system, printer unit and computer device for the same
JPH0887390A (en) Network system with printer, and printer, server device and terminal device for network system
JP3963057B2 (en) Printer system
JPH08272566A (en) Remote printing system
JP2000137585A (en) Printer, printing system and its controlling method
JP2004171044A (en) Image processing apparatus
JPH06348436A (en) Remote printing system
JP4172363B2 (en) Printing system
JP3503291B2 (en) Output device, network system and terminal name changing method
JP2007015225A (en) Re-printing controlling apparatus, printing apparatus, re-printing controlling method and program
JP2000322227A (en) Print indication device and printer state monitor module
JPH0816493A (en) Data communication control method of scanner printer server system
JP2002041252A (en) Data transmission device, data transmission method, printer, printing method, and printing system
JPH0890845A (en) Print controller
JP2003237194A (en) Printer
JP2002268852A (en) System, device and method for managing representative processing, device and method for processing job and storage medium
JPH07152514A (en) Remote printing system
JPH1139115A (en) Network printer system