JPH10289070A - Network printer - Google Patents

Network printer

Info

Publication number
JPH10289070A
JPH10289070A JP9099483A JP9948397A JPH10289070A JP H10289070 A JPH10289070 A JP H10289070A JP 9099483 A JP9099483 A JP 9099483A JP 9948397 A JP9948397 A JP 9948397A JP H10289070 A JPH10289070 A JP H10289070A
Authority
JP
Japan
Prior art keywords
status
network
printer
computers
computer
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
JP9099483A
Other languages
Japanese (ja)
Inventor
Hiroshi Togawa
博 外川
Hikonosuke Uei
彦之介 上井
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 JP9099483A priority Critical patent/JPH10289070A/en
Publication of JPH10289070A publication Critical patent/JPH10289070A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)

Abstract

PROBLEM TO BE SOLVED: To efficiently notify printer status to many unspecified host computers in a printer that has a network interface which is directly connected to a network. SOLUTION: When each host computer 3 sends a command that requests for status reply to a printer 1, an interface controlling part 7 first reserves a memory area for flags and next makes the flags 15 on. The part 7 periodically checks the states of all the flags 15A to 15C that stand and sends a status reply character string that shows printer status 17 to host computers which correspond to the flags in an on state. The part 7 compares a status reply character string that is currently sent with the status reply character string that is sent the last time and omits the current transmission when both are the same.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、コンピュータネッ
トワーク上に直接的に接続可能なプリンタに関わり、特
に、プリンタのステータスを不特定多数のコンピュータ
へ通知するためのステータスリプライ機能の改良に関す
る。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a printer which can be directly connected to a computer network, and more particularly to an improved status reply function for notifying the status of a printer to an unspecified number of computers.

【0002】[0002]

【従来の技術】多くのプリンタは、そのプリンタのステ
ータス(例えば、待機・ビジー・エラーなどの状態、エ
ラーの詳細、インク残量、用紙有無、用紙パスの選択な
ど)をホストコンピュータに通知するステータスリプラ
イ機能を有する。プリンタステータスは、一般に、文字
列の形式でホストコンピュータに送られ、この文字列は
ステータスリプライ文字列などと呼ばれる。
2. Description of the Related Art Many printers have a status of notifying a host computer of the status of the printer (for example, status such as standby / busy / error, details of error, remaining ink amount, presence / absence of paper, selection of paper path, etc.). Has a reply function. The printer status is generally sent to the host computer in the form of a character string, and this character string is called a status reply character string or the like.

【0003】ところで、複数のホストコンピュータが接
続できるよう複数のホストインタフェースを有したプリ
ンタが知られている。この種のプリンタは、どのホスト
インタフェースにデータが到来したかを認識して、その
データの受信中、そのホストインタフェースのみを選択
状態にするホストインタフェース自動切替機能を有して
る。このインタフェース自動切替機能を有した従来のプ
リンタにおけるステータスリプライ機能は、選択状態に
ある一つのホストインタフェースのみに対し、ステータ
スリプライ文字列を送るのものである。
[0003] Printers having a plurality of host interfaces so that a plurality of host computers can be connected are known. This type of printer has a host interface automatic switching function of recognizing which host interface data has arrived and setting only the host interface to a selected state during reception of the data. The status reply function of the conventional printer having the interface automatic switching function is to send a status reply character string to only one selected host interface.

【0004】また、従来のプリンタは、一定の時間間隔
で定期的にステータスリプライ文字列をホストコンピュ
ータに通知している。
[0004] Further, a conventional printer periodically notifies a host computer of a status reply character string at a predetermined time interval.

【0005】なお、ホストインターフェースとは、プリ
ンタがホストに対して直接的に接続されるためのもので
あり、接続可能なホストの数は有するホストインターフ
ェースの数で自ずと制約を受ける。これに対して、ネッ
トワークインターフェースは、それ1つを有することで
不特定多数のホストコンピュータと接続可能であり、ネ
ットワークを介していわば間接的に不特定多数のホスト
コンピュータと接続可能なものである。
[0005] The host interface is for connecting the printer directly to the host, and the number of connectable hosts is naturally limited by the number of host interfaces. On the other hand, the network interface can be connected to an unspecified number of host computers by having one, and can be indirectly connected to an unspecified number of host computers via a network.

【0006】[0006]

【発明が解決しようとする課題】ホストインタフェース
自動切替機能を有した従来のプリンタでは、非選択状態
にあるホストインタフェースにはプリンタステータスが
通知されないため、そこに接続されているホストコンピ
ュータ側では、プリンタにデータを送ろうとしたとき、
単に「通信エラーである」という認識しか得ることがで
きない。従って、非選択状態のホストコンピュータ側で
は、送ったデータがプリンタに受入れられない理由、例
えば、別のホストコンピュータが使用中である、エラー
が発生した、或は、通信路に問題があるなどが判別でき
ず、少し待てば通信が出来るのか、或は不具合を解消す
る必要があるのかといった判断ができない。
In a conventional printer having a host interface automatic switching function, a host interface in a non-selected state is not notified of the printer status. When trying to send data to
It is only possible to obtain a recognition that a communication error has occurred. Therefore, on the host computer in the non-selected state, the transmitted data cannot be accepted by the printer, for example, because another host computer is in use, an error has occurred, or there is a problem with the communication path. It is not possible to judge, and it is not possible to judge whether communication is possible after a short wait, or whether it is necessary to solve the problem.

【0007】また、従来のプリンタでは、定期的にプリ
ンタステータスを通知している。しかし、プリンタステ
ータスに何の変化もない場合には、そのような定期的な
通知は無駄な通信であり、その無駄な通信が肝心の印刷
処理を遅らせる原因となる。
In a conventional printer, a printer status is periodically notified. However, if there is no change in the printer status, such a periodic notification is a useless communication, and the useless communication causes a delay in the essential printing process.

【0008】さらに、従来のプリンタは、プリンタが複
数のホストインタフェースを有することを前提とし、そ
のホストインタフェースに対してステータスをリプライ
をしていこうというものであり、ネットワークに直接接
続可能なプリンタに関しては、ステータスをコンピュー
タに対して返せないと言う問題があった。
Further, the conventional printer is based on the premise that the printer has a plurality of host interfaces, and intends to reply the status to the host interface. There was a problem that the status could not be returned to the computer.

【0009】従って、本発明の目的は、ネットワークイ
ンタフェースを有するネットワークプリンタにおいて、
不特定多数のどのホストコンピュータにもプリンタステ
ータスを通知できるようにすることにある。
Accordingly, an object of the present invention is to provide a network printer having a network interface.
An object of the present invention is to allow any unspecified number of host computers to be notified of a printer status.

【0010】本発明の別の目的は、ホストコンピュータ
とプリンタ間の、プリンタステータス文字列の無駄な送
信をなくすことにある。
Another object of the present invention is to eliminate unnecessary transmission of a printer status character string between a host computer and a printer.

【0011】[0011]

【課題を解決するための手段】本発明の第1の側面に従
うネットワークプリンタは、複数のネットワークコンピ
ュータと接続するためのネットワークインタフェース
と、ステータスリプライを要求しているコンピュータを
識別する要求コンピュータ識別手段と、この識別手段に
より識別されたコンピュータの各々に、プリンタステー
タスを示したステータ情報を送信するステータスリプラ
イ手段とを備える。
A network printer according to a first aspect of the present invention comprises a network interface for connecting to a plurality of network computers, and a requesting computer identification means for identifying a computer requesting a status reply. A status reply unit for transmitting status information indicating a printer status to each of the computers identified by the identification unit.

【0012】このネットワークプリンタによれば、ステ
ータスリプライを要求しているホストコンピュータに対
しては、ステータス情報が送られる。
According to this network printer, status information is sent to the host computer requesting a status reply.

【0013】好適な実施形態では、ネットワーク上の複
数のホストコンピュータから受信したステータスリプラ
イを要求するデータに応答して、そのホストコンピュー
タ対応するフラグを随時設け、該フラグの状態をオン状
態にする手段と、全てのフラグの状態を調べる手段と、
オン状態にあるフラグに対応したホストコンピュータの
各々にステータス情報を送信する手段とが備えられる。
In a preferred embodiment, in response to data requesting a status reply received from a plurality of host computers on a network, a flag corresponding to the host computer is provided as needed, and the state of the flag is turned on. Means for checking the status of all flags;
Means for transmitting status information to each of the host computers corresponding to the flags in the ON state.

【0014】この実施形態によれば、各ホストコンピュ
ータがステータスリプライを要求するデータをプリンタ
に一旦送れば、対応するフラグがオン状態となるため、
以後、プリンタステータスをプリンタから通知されるこ
とができる。
According to this embodiment, if each host computer once sends data requesting a status reply to the printer, the corresponding flag is turned on.
Thereafter, the printer can be notified of the printer status.

【0015】本発明の第2の側面に従うネットワークプ
リンタは、ネットワークと接続するためのネットワーク
インタフェースと、プリンタステータスが変化したこと
を検出する検出手段と、この検出手段の検出に応答し
て、プリンタステータスを示したステータス情報を前記
ネットワークインタフェースに送信する非定期ステータ
スリプライ手段とを備える。
A network printer according to a second aspect of the present invention comprises a network interface for connecting to a network, detecting means for detecting a change in printer status, and a printer status in response to the detection by the detecting means. And non-periodic status reply means for transmitting status information indicating the above to the network interface.

【0016】このネットワークプリンタは、プリンタス
テータスが変化したときにステータス情報をホストコン
ピュータに返す。
This network printer returns status information to the host computer when the printer status changes.

【0017】好適な実施形態は、定期的にネットワーク
インタフェースにステータス情報を送信する定期ステー
タスリプライ手段と、非定期ステータスリプライ手段と
定期ステータスリプライ手段の一方を選択するモード選
択手段とを更に備える。
The preferred embodiment further includes a periodic status reply unit for periodically transmitting status information to the network interface, and a mode selection unit for selecting one of the irregular status reply unit and the periodic status reply unit.

【0018】この実施形態によれば、ステータスリプラ
イを定期的に行うか、ステータスが変化したときのみ行
うかを選択できる。
According to this embodiment, it is possible to select whether the status reply is performed periodically or only when the status changes.

【0019】[0019]

【発明の実施の形態】図1は、本発明のネットワークプ
リンタの一実施形態の構成を、これに接続されたホスト
コンピュータと共に示す。
FIG. 1 shows a configuration of an embodiment of a network printer according to the present invention, together with a host computer connected thereto.

【0020】図示のプリンタ1は、ネットワークインタ
フェース5を介して、不特定多数(ここでは3台)のホ
ストコンピュータ3A、3B、3Cと接続されている。
プリンタ1は、インタフェース制御部7、メインコント
ローラ9、メモリ11、及び印刷エンジン13を有す
る。メモリ11には、3台のホストコンピュータにそれ
ぞれ対応したステータスリプライ(以下、SRと略す)
フラグ15A、15B、15C、及び同SRモード値1
6A、16B、16C、及び各種のプリンタステータス
17などが記憶されている。さらに、メモリ11には受
信バッファ19及びイメージバッファ21などが設けら
れている。
The illustrated printer 1 is connected to an unspecified number (here, three) of host computers 3A, 3B, and 3C via a network interface 5.
The printer 1 includes an interface control unit 7, a main controller 9, a memory 11, and a print engine 13. The memory 11 has a status reply (hereinafter abbreviated as SR) corresponding to each of the three host computers.
Flags 15A, 15B, 15C and SR mode value 1
6A, 16B, 16C and various printer statuses 17 are stored. Further, the memory 11 is provided with a reception buffer 19, an image buffer 21, and the like.

【0021】メインコントローラ9は、受信バッファ1
9からデータを取り込み処理するためのものである。メ
インコントローラ9は、印刷のためのデータを処理する
ことにより印刷イメージを生成して、イメージバッファ
21に展開する機能と共に、そのデータがどのコンピュ
ータから来たものかをデータに含まれる属性情報を解釈
することで認識する機能も有する。この後者の機能によ
り、メインコントローラ9は、SR機能に関するデータ
に応答して、インタフェース制御部7のSR機能を制御
する。また、属性情報は各ジョブにおいて、印刷イメー
ジデータに先立つヘッダー部において設定されるのが一
般的である。よって、このヘッダー中に該ジョブの送り
主であるホストコンピュータ名のアドレス等を入れてネ
ットワーク上にジョブをおくりだすことで、プリンタ側
から見てどのコンピュータから来たデータかを認識する
ことが可能となる。
The main controller 9 includes the reception buffer 1
9 for processing the data. The main controller 9 generates a print image by processing data for printing, develops the print image in the image buffer 21, and interprets attribute information included in the data as to which computer the data came from. It also has a function to recognize by doing. With this latter function, the main controller 9 controls the SR function of the interface control unit 7 in response to data relating to the SR function. In general, the attribute information is set in a header section prior to the print image data in each job. Therefore, by submitting a job on the network by putting the address of the name of the host computer which is the sender of the job in this header, it is possible to recognize which computer came from the printer side. Become.

【0022】インタフェース制御部7は、ホストインタ
フェース5を介して、不特定多数のコンピュータと通信
を行うためのものである。このインタフェース制御部7
は、例えばコンピュータ3A、3B、3Cから到来する
データを受信し、メモリ11内の受信バッファ19に書
き込む機能を有する。また、メインコントローラ9が解
釈した属性情報をもらい、そのデータがどのコンピュー
タのものかを認識し、対応したSRフラグ及び同SRモ
ード値をメモリ11内に記憶させる機能も有する。この
場合、不特定多数のコンピュータからデータを受信可能
であるが、その中でSRに関わる情報を送ってきたコン
ピュータが前記コンピュータ3A、3B、3Cといった
形でメモり内に登録されることになる。さらに、インタ
フェース制御部7はメモリ17に記憶されたプリンタス
テータス17に基づいてSR文字列を生成し、各ホスト
コンピュータ3A、3B、3Cへ送るSR機能も有す
る。
The interface control unit 7 communicates with an unspecified number of computers via the host interface 5. This interface control unit 7
Has a function of receiving data coming from, for example, the computers 3A, 3B, and 3C and writing the data into the reception buffer 19 in the memory 11. Further, it has a function of receiving attribute information interpreted by the main controller 9, recognizing which computer the data belongs to, and storing the corresponding SR flag and SR mode value in the memory 11. In this case, although data can be received from an unspecified number of computers, the computer which has transmitted the information relating to SR among them is registered in the memory in the form of the computers 3A, 3B, 3C. . Further, the interface control unit 7 has an SR function of generating an SR character string based on the printer status 17 stored in the memory 17 and sending the character string to each of the host computers 3A, 3B, and 3C.

【0023】印刷エンジン13は、イメージバッファ2
1から印刷イメージを読み込み、用紙上に実際のイメー
ジを印刷するための機構である。
The print engine 13 includes the image buffer 2
This is a mechanism for reading a print image from No. 1 and printing an actual image on paper.

【0024】メモリ11には、プリンタステータス17
として、待機・ビジー・エラーなどの状態、エラー発生
時のエラー内容、インク残量、用紙有無、用紙パスの選
択、SR情報を要求しているコンピュータなどが記憶さ
れている。各SRフラグ15A、15B、15Cは、そ
れが存在し、オン状態であれば、対応するホストコンピ
ュータにSR文字列を送信すべきことを意味し、それが
オフ状態あるいは存在しなければ、対応するホストコン
ピュータにSR文字列を送信する必要がないことを意味
する。各SRモード値16A、16B、16Cは、対応
するホストコンピュータにSR文字列を定期的に送るの
か非定期に送るのかを示すもので、その値が0であれ
ば、非定期に送る(つまり、プリンタステータスに変化
があったときのみ送る)ことを意味し、その値が0以外
であれば、その値が示す時間間隔で定期的に送ることを
意味する。プリンタステータス17は、インタフェース
制御部7によって参照される。SRフラグ15A、15
B、15C及びSRモード値16A、16B、16C
は、インタフェース制御部7によって更新及び参照され
る。
The memory 11 stores a printer status 17
Are stored, such as a state such as a standby / busy / error, an error content when an error occurs, an ink remaining amount, presence / absence of paper, selection of a paper path, and a computer requesting SR information. Each SR flag 15A, 15B, 15C, if present and on, means that the SR string should be transmitted to the corresponding host computer, and if it is off or not present, the corresponding SR string. This means that there is no need to send the SR character string to the host computer. Each SR mode value 16A, 16B, 16C indicates whether the SR character string is sent to the corresponding host computer periodically or irregularly. If the value is 0, it is irregularly transmitted (that is, (This is sent only when there is a change in the printer status.) If the value is other than 0, it means that it is sent periodically at the time interval indicated by the value. The printer status 17 is referred to by the interface control unit 7. SR flags 15A, 15
B, 15C and SR mode values 16A, 16B, 16C
Are updated and referenced by the interface control unit 7.

【0025】図1における印刷データの矢印は、ホスト
コンピュータ3からの印刷データがインタフェース制御
部7を通じて受信バッファ19に一旦入り、次いでメイ
ンコントローラ9に取り込まれて処理される。この処理
の結果として、印刷イメージがイメージバッファに展開
され、印刷エンジンが印刷イメージを取り込んで用紙上
に実際のイメージを印刷する。
The arrow of the print data in FIG. 1 indicates that the print data from the host computer 3 once enters the reception buffer 19 through the interface control unit 7, and is then taken into the main controller 9 for processing. As a result of this processing, the print image is expanded in the image buffer, and the print engine captures the print image and prints the actual image on paper.

【0026】印刷データの受信と並行して、インタフェ
ース制御部7は、SRフラグ15A、15B、15Cが
存在し、オン状態になっているホストコンピュータに対
し、SRモード値16A、16B、16Cによって指定
される方法で、SR文字列を送信する。従って、このと
き例えばSRフラグ15A、15B、15Cがオン状態
になっていたとすると、それら全てのホストコンピュー
タ5A、5B、5Cに対しSR文字列が送られる。SR
フラグ15A、15B、15CとSRモード値16A、
16B、16Cの設定は、インタフェース制御部7が、
メインコントローラ9からのSR制御指示に従って行
う。メインコントローラ9は、各ホストコンピュータ3
A、3B、3Cから受信したSR機能に関わるコマンド
に従って、各SRフラグ15A、15B、15C及び各
SRモード値16A、16B、16Cをどのように設定
するかを決め、それをインタフェース制御部7に指示す
る。なお、 SRモード値等のSR機能に関わる設定
は、例えば、プリンタドライバにおけるユーザインター
フェースの画面を通じて、あるいはユーティリティソフ
トウェアにより、ホストコンピュータ3で行うのが一般
的である。
In parallel with the reception of the print data, the interface control unit 7 designates the host computer, which has the SR flags 15A, 15B and 15C and is in the ON state, by using the SR mode values 16A, 16B and 16C. Send the SR string in the manner described. Therefore, at this time, if the SR flags 15A, 15B, and 15C are on, for example, the SR character string is sent to all of the host computers 5A, 5B, and 5C. SR
Flags 15A, 15B, 15C and SR mode value 16A,
The settings of 16B and 16C are performed by the interface control unit 7,
This is performed according to an SR control instruction from the main controller 9. The main controller 9 is connected to each host computer 3
A, 3B, and 3C, determine how to set each SR flag 15A, 15B, 15C and each SR mode value 16A, 16B, 16C according to a command related to the SR function received from the interface control unit 7, To instruct. Note that the setting related to the SR function such as the SR mode value is generally performed by the host computer 3 through, for example, a screen of a user interface in a printer driver or by using utility software.

【0027】図2は、メインコントローラ9の動作を示
す。
FIG. 2 shows the operation of the main controller 9.

【0028】メインコントローラ9は、受信バッファ1
9から受信データを読み込み(S1)、その読み込んだ
データがラスタイメージデータである場合は、そのデー
タからラスタイメージを生成する(S3)。また、読み
込んだデータがコマンドである場合は、そのコマンドを
解釈する(S4)。コマンド解釈の結果、そのコマンド
がSR機能のオンを要求するコマンドである場合は、そ
のコマンドが指定したコンピュータ用のSRフラグ領域
を確保し、SRモード値を設定してSRフラグをターン
オンせよというSR制御指示をインタフェース制御部7
へ送り(S5)、また、そのコマンドがSR機能のオフ
を要求している場合は、SRフラグをターンオフせよと
いうSR制御指示をインタフェース制御部7へ送る(S
6)。また、受信したコマンドがSR機能以外のコマン
ドである場合は、そのコマンドに応じた処理(例えば、
テキストイメージの生成、グラフィックイメージの生成
など)を行う(S7)。
The main controller 9 controls the reception buffer 1
9, the received data is read (S1). If the read data is raster image data, a raster image is generated from the data (S3). If the read data is a command, the command is interpreted (S4). As a result of the command interpretation, if the command is a command requesting the turning on of the SR function, the SR flag area for the computer designated by the command is set, the SR mode value is set, and the SR flag is turned on. Sends control instructions to interface control unit 7
(S5). If the command requests the SR function to be turned off, an SR control instruction to turn off the SR flag is sent to the interface control unit 7 (S5).
6). Further, when the received command is a command other than the SR function, processing according to the command (for example,
Generation of a text image, generation of a graphic image, etc.) are performed (S7).

【0029】尚、ホストコンピュータ3A、3B、3C
では、例えばプリンタドライバの起動時に、SR機能の
オンを要求するコマンドをプリンタ1へ送るようになっ
ている。また、SR機能のオフを要求するコマンドにつ
いては、ホストコンピュータ3A、3B、3Cは必ずし
もこのコマンドを送る必要はない。
The host computers 3A, 3B, 3C
For example, when the printer driver is activated, a command for requesting the SR function to be turned on is sent to the printer 1. Also, the host computer 3A, 3B, 3C does not always need to send this command for requesting the SR function to be turned off.

【0030】図3は、メインコントローラ9からSR制
御指示を受けたインタフェース制御部7の動作を示す。
FIG. 3 shows the operation of the interface control unit 7 which has received an SR control instruction from the main controller 9.

【0031】メインコントローラ9からSR制御指示を
受けたインタフェース制御部7は、不特定多数のホスト
コンピュータの中から今ステートリプライに関すること
を要求をしてきているもの(つまり、上記したSR機能
オン又はオフのコマンドを送出したホストコンピュー
タ)を識別し、必要に応じてそのコンピュータ用の記憶
領域を確保し(S11)、 その要求をしているコンピ
ュータに対応するSRフラグ15をターンオンし、か
つ、対応するSRモード値16をSR制御指示の指定し
た値に設定する(S12 )。なお、このとき、最初に
要求したコンピュータを例えば15Aとし、次に来たも
のは15B、さらに次は15Cといった具合に記憶領域
を確保していく。一方、SR制御指示がSRフラグのタ
ーンオフを指示している場合は、そのホストコンピュー
タに対応するSRフラグ15をターンオフし、必要に応
じてその記憶領域自体を解放する(S13)。
Upon receiving the SR control instruction from the main controller 9, the interface control section 7 requests the state-reply from among an unspecified number of host computers (that is, the above-mentioned SR function on or off). (S11), and if necessary, secures a storage area for the computer (S11), turns on the SR flag 15 corresponding to the requesting computer, and responds. The SR mode value 16 is set to the value specified by the SR control instruction (S12). At this time, the first requested computer is set to, for example, 15A, the next computer is set to 15B, and then the storage area is set to 15C. On the other hand, when the SR control instruction indicates that the SR flag is to be turned off, the SR flag 15 corresponding to the host computer is turned off, and the storage area itself is released as needed (S13).

【0032】上記の図2及び図3に示した動作によれ
ば、図1に示すホストコンピュータ3A、3B、3Cの
各々が1回プリンタドライバを立ち上げれば、以後、各
ホストコンピュータに対応するSRフラグ15A、15
B、15Cがオン状態になることになる。従って、3台
のホストコンピュータ3A、3B、3Cの全てが1回以
上プリンタドライバを立ち上げた以降は、全てのSRフ
ラグ15A、15B、15Cがオン状態にあるため、そ
れら全てのホストコンピュータ3A、3B、3Cに対し
てSR文字列が送信されることになる。
According to the operation shown in FIGS. 2 and 3, if each of the host computers 3A, 3B and 3C shown in FIG. Flags 15A, 15
B and 15C are turned on. Therefore, after all of the three host computers 3A, 3B, and 3C have started the printer driver at least once, all the SR flags 15A, 15B, and 15C are in the ON state. The SR character string will be transmitted to 3B and 3C.

【0033】図4は、SR文字列をホストコンピュータ
3A、3B、3Cへ送るためのインタフェース制御部7
の動作を示す。
FIG. 4 shows an interface control unit 7 for sending the SR character string to the host computers 3A, 3B and 3C.
The operation of FIG.

【0034】図4に示す処理ルーチンは、所定数秒間隔
で繰り返し起動される。インタフェース部7は、まず、
ホストコンピュータ3AにSR文字列を送るための処理
(S21)を行う。この処理では、まず、SRフラグ1
5Aを調べ(S31)、これがオフ状態であれば何も行
わず、オン状態であれば、SRモード値16Aを調べる
(S32)。SRモード値16Aが0の場合(つまり、
非定期の送信の場合)は、プリンタステータス17が前
回の当該処理ルーチン実行時から変化しているか否かを
調べる(S33)。変化しているか否かは、例えば、今
のプリンタステータス17からSR文字列を作成し、こ
れを前回に作成したSR文字列と比較する方法などによ
り分る。その結果、プリンタステータス17が変化して
いた場合に限り、今のプリンタステータス17から作成
したSR文字列をネットワークインタフェース5に、フ
ラグに対応するホストコンピュータ名を属性情報に付加
して送信する(S36)。
The processing routine shown in FIG. 4 is repeatedly started at predetermined intervals of several seconds. First, the interface unit 7
A process (S21) for sending the SR character string to the host computer 3A is performed. In this process, first, the SR flag 1
5A is checked (S31). If it is off, nothing is performed. If it is on, the SR mode value 16A is checked (S32). When the SR mode value 16A is 0 (that is,
In the case of irregular transmission, it is checked whether or not the printer status 17 has changed since the previous execution of the processing routine (S33). Whether it has changed or not can be determined by, for example, a method of creating an SR character string from the current printer status 17 and comparing the SR character string with the previously created SR character string. As a result, only when the printer status 17 has changed, the SR character string created from the current printer status 17 is transmitted to the network interface 5 with the host computer name corresponding to the flag added to the attribute information (S36). ).

【0035】また、ステップS32で、SRモード値1
6Aが0以外の値nであった場合(つまり、定期的な送
信の場合)は、送信周期をカウントするためのタイムカ
ウンタの値(その初期値はnに等しい)を1だけ減らし
(S34)、次に、このタイムカウンタの値が0か否か
チェックする(S35)。その結果、タイムカウンタの
値が0である場合にのみ、タイムカウンタの値を初期値
nにリセットし(S37)、そして、今のプリンタステ
ータス17から作成したSR文字列をネットワークイン
タフェース5に、SRフラグに対応するホストコンピュ
ータ名を属性情報に付加して送信する(S36)。
In step S32, the SR mode value 1
If 6A is a value n other than 0 (that is, in the case of periodic transmission), the value of the time counter for counting the transmission cycle (the initial value is equal to n) is reduced by 1 (S34). Next, it is checked whether the value of the time counter is 0 (S35). As a result, only when the value of the time counter is 0, the value of the time counter is reset to the initial value n (S37), and the SR character string created from the current printer status 17 is sent to the network interface 5, The host computer name corresponding to the flag is added to the attribute information and transmitted (S36).

【0036】ネットワークインタフェース5に接続され
ている各コンピュータは、送信される情報の属性情報を
逐次拾い上げて解釈し、自分の要求している情報である
と判断した場合はその内容自体を読み出す。この図4に
示した処理ルーチンを所定秒間隔で繰り返すことによ
り、SRフラグがオン状態になっているホストコンピュ
ータだけが、プリンタステータスに変化があった時又は
定期的に、プリンタステータスが通知されることにな
る。
Each computer connected to the network interface 5 sequentially picks up and interprets the attribute information of the information to be transmitted, and reads out the content itself when it determines that the information is requested by itself. By repeating the processing routine shown in FIG. 4 at predetermined time intervals, only the host computer in which the SR flag is on is notified of the printer status when the printer status changes or periodically. Will be.

【0037】尚、ネットワークインタフェース5に送信
するSR文字列には、現在プリンタが印刷しているかど
うか、さらにはどのホストコンピュータのデータか?の
情報を示す文字コードを含ませることができる。それに
より、ホストコンピュータ側では、例えば「他のホスト
からのデータを印刷中です」といったメッセージをユー
ザに示すことが可能となる。
It should be noted that the SR character string transmitted to the network interface 5 indicates whether the printer is currently printing, and which host computer data. Character code indicating the information of This allows the host computer to show the user a message such as "printing data from another host".

【0038】また、 SR文字列をネットワークインタ
フェース5に送信する際、SRフラグに対応するホスト
コンピュータ名を属性情報に付加する必要性は必ずしも
ない。付加しない場合は、各コンピュータがブロードキ
ャストされる情報を解釈し、その情報の中に自分が待っ
ているSR文字列が入っている、あるいはそのSR文字
列そのものと判断した場合に、取り込むようにすればよ
い。
When transmitting the SR character string to the network interface 5, it is not always necessary to add the host computer name corresponding to the SR flag to the attribute information. Otherwise, each computer interprets the broadcast information, and if it determines that the SR string it is waiting for is included in the information or determines that it is the SR string itself, it takes in the information. I just need.

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

【図1】本発明のネットワークプリンタの一実施形態の
構成を示すブロック図。
FIG. 1 is a block diagram showing a configuration of an embodiment of a network printer of the present invention.

【図2】メインコントローラ9の動作を示すフローチャ
ート。
FIG. 2 is a flowchart showing an operation of a main controller 9;

【図3】メインコントローラ9からSR制御指示を受け
たインタフェース制御部7の動作を示すフローチャー
ト。
FIG. 3 is a flowchart showing an operation of an interface control unit 7 receiving an SR control instruction from a main controller 9;

【図4】SR文字列をホストコンピュータへ送るための
インタフェース制御部7の動作を示すフローチャート。
FIG. 4 is a flowchart showing the operation of an interface control unit 7 for sending an SR character string to a host computer.

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

1 プリンタ 3 ホストコンピュータ 5 ネットワークインタフェース 7 インタフェース制御部 9 メインコントローラ 11 メモリ 15 ステータスリプライ(SR)フラグ 16 SRモード値 17 プリンタステータス DESCRIPTION OF SYMBOLS 1 Printer 3 Host computer 5 Network interface 7 Interface control part 9 Main controller 11 Memory 15 Status reply (SR) flag 16 SR mode value 17 Printer status

Claims (8)

【特許請求の範囲】[Claims] 【請求項1】 ネットワークを介して複数のコンピュー
タと接続するためのネットワークインタフェースと、 ステータスリプライを要求しているホストコンピュータ
を識別する要求コンピュータ識別手段と、 前記識別手段により識別されたホストコンピュータの各
々に、プリンタステータスを示したステータス情報を送
信するステータスリプライ手段とを備えたネットワーク
プリンタ。
1. A network interface for connecting to a plurality of computers via a network, requesting computer identification means for identifying a host computer requesting a status reply, and each of the host computers identified by the identification means A status reply means for transmitting status information indicating the printer status.
【請求項2】 前記要求コンピュータ識別手段が、前記
複数のコンピュータにそれぞれ対応してフラグを設け、
前記コンピュータの各々から受信したステータスリプラ
イを要求するデータに応答して、対応する前記フラグの
状態をオン状態にする手段とを有し、 前記ステータスリプライ手段が、全ての前記フラグの状
態を調べる手段と、オン状態にある前記フラグに対応し
た前記ホストコンピュータの各々に前記ステータス情報
を送信する手段とを有する、請求項1記載のネットワー
クプリンタ。
2. The requesting computer identification means provides a flag corresponding to each of the plurality of computers,
Means for turning on the status of the corresponding flag in response to data requesting a status reply received from each of the computers, wherein the status reply means checks the status of all the flags. 2. The network printer according to claim 1, further comprising: means for transmitting the status information to each of the host computers corresponding to the flag in an on state.
【請求項3】 前記要求コンピュータ識別手段が、前記
複数のコンピュータにそれぞれ対応してフラグを設け、
前記コンピュータの各々から受信したステータスリプラ
イを要求するデータに応答して、対応する前記フラグの
状態をオン状態にする手段とを有し、 前記ステータスリプライ手段が、前記フラグの有無と有
の場合はその状態を調べる手段と、有の場合は、ネット
ワーク上に前記ステータス情報をブロードキャストする
手段とを有する、請求項1記載のネットワークプリン
タ。
3. The requesting computer identification means provides a flag corresponding to each of the plurality of computers,
Means for turning on the state of the corresponding flag in response to data for requesting a status reply received from each of the computers, wherein the status reply means determines whether or not the flag is present. 2. The network printer according to claim 1, further comprising: means for checking the status, and if yes, means for broadcasting the status information over a network.
【請求項4】 前記ステータスリプライ手段が、プリン
タステータスが変化したことを検出する検出手段と、前
記検出手段の検出に応答して、前記識別されたホストコ
ンピュータの各々に前記ステータス情報を送信する手段
とを有する請求項1記載のネットワークプリンタ。
4. A means for detecting that the status reply means has changed the printer status, and means for transmitting the status information to each of the identified host computers in response to the detection by the detecting means. The network printer according to claim 1, comprising:
【請求項5】 ネットワークを介してコンピュータと接
続するためのネットワークインタフェースと、 プリンタステータスが変化したことを検出する検出手段
と、 前記検出手段の検出に応答して、プリンタステータスを
示したステータス情報を前記ネットワーク上のコンピュ
ータに送信する非定期ステータスリプライ手段とを備え
たネットワークプリンタ。
5. A network interface for connecting to a computer via a network, detection means for detecting a change in printer status, and status information indicating the printer status in response to the detection by the detection means. A network printer comprising: a non-periodic status reply means for transmitting to the computer on the network.
【請求項6】 定期的に前記ネットワーク上のコンピュ
ータに前記ステータス情報を送信する定期ステータスリ
プライ手段と、 前記非定期ステータスリプライ手段と前記定期ステータ
スリプライ手段の一方を選択するモード選択手段とを更
に備えた請求項5記載のネットワークプリンタ。
6. A periodic status reply unit for periodically transmitting the status information to a computer on the network, and a mode selection unit for selecting one of the non-periodic status reply unit and the periodic status reply unit. The network printer according to claim 5, wherein
【請求項7】 前記モード選択手段が、前記コンピュー
タに対応したモード値と、前記コンピュータから受信し
たデータに基づき前記モード値を設定する手段と、前記
モード値に基づいて前記非定期ステータスリプライ手段
と前記定期ステータスリプライ手段の一方を選択する手
段とを有する請求項6記載のネットワークプリンタ。
7. A mode setting means for setting the mode value based on a mode value corresponding to the computer and data received from the computer, and the irregular status reply means based on the mode value. 7. The network printer according to claim 6, further comprising: means for selecting one of the periodic status reply means.
【請求項8】 ネットワーク上で複数の前記コンピュー
タと接続され、 前記モード選択手段が、前記コンピュータの各々につい
て個別に、前記非定期ステータスリプライ手段と前記定
期ステータスリプライ手段の一方を選択する請求項6記
載のネットワークプリンタ。
8. A computer connected to a plurality of said computers on a network, wherein said mode selection means individually selects one of said non-periodic status reply means and said periodic status reply means for each of said computers. The described network printer.
JP9099483A 1997-04-16 1997-04-16 Network printer Withdrawn JPH10289070A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9099483A JPH10289070A (en) 1997-04-16 1997-04-16 Network printer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9099483A JPH10289070A (en) 1997-04-16 1997-04-16 Network printer

Publications (1)

Publication Number Publication Date
JPH10289070A true JPH10289070A (en) 1998-10-27

Family

ID=14248564

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9099483A Withdrawn JPH10289070A (en) 1997-04-16 1997-04-16 Network printer

Country Status (1)

Country Link
JP (1) JPH10289070A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007272832A (en) * 2006-03-31 2007-10-18 Ricoh Co Ltd Print system, host device, printer, print control method, print method, program for allowing computer to execute these methods, and recording medium
US7460260B2 (en) 2003-07-24 2008-12-02 Toshiba Corporation Method of providing continuous feedback

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7460260B2 (en) 2003-07-24 2008-12-02 Toshiba Corporation Method of providing continuous feedback
JP2007272832A (en) * 2006-03-31 2007-10-18 Ricoh Co Ltd Print system, host device, printer, print control method, print method, program for allowing computer to execute these methods, and recording medium

Similar Documents

Publication Publication Date Title
USRE42170E1 (en) Control of information processing using one or more peripheral apparatus
CA2203445A1 (en) Printer communication system and method
US6188487B1 (en) Print control system and print control method
US20060139686A1 (en) Information processing apparatus, image forming apparatus, recording medium having recorded operation control program, and image forming system
JPH06305204A (en) Printer
JPH10289070A (en) Network printer
US6216176B1 (en) Method of passing right to use input/output port between softwares
US5630030A (en) Output method and apparatus for a recording device
JPH1058788A (en) Printer and printing system
JP2880233B2 (en) Printing system
JPH10269038A (en) Print data receiving terminal, print system, and their control method
JP3503291B2 (en) Output device, network system and terminal name changing method
JP3693178B2 (en) Terminal printer
JP3755541B2 (en) Printer device
JPH06253066A (en) Multi-application arbitration device
JPH10151838A (en) Terminal printer
JP3453659B2 (en) Control device for image forming apparatus
JP3129679B2 (en) Printer
JP2003195984A (en) Device initializing method in control system, control system, program for executing device initializing method by computer and recording medium stored with this program
JPH0224183A (en) Printer
JP3509808B2 (en) Printer
JP3309942B2 (en) Print server and operation method thereof
JPH09259079A (en) Communication controller, communication control method, and memory
JPH0725106A (en) Printer
JP2003131856A (en) Information management device, image formation device, information providing method, recording medium storing program therein, and information providing program

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20040706