JP3755541B2 - Printer device - Google Patents

Printer device Download PDF

Info

Publication number
JP3755541B2
JP3755541B2 JP06524195A JP6524195A JP3755541B2 JP 3755541 B2 JP3755541 B2 JP 3755541B2 JP 06524195 A JP06524195 A JP 06524195A JP 6524195 A JP6524195 A JP 6524195A JP 3755541 B2 JP3755541 B2 JP 3755541B2
Authority
JP
Japan
Prior art keywords
file
printer
drawing data
transfer
output processing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP06524195A
Other languages
Japanese (ja)
Other versions
JPH08234934A (en
Inventor
成美 金子
敏 荒木
淳二 地川
和敏 鈴木
康雄 米井
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Business Innovation Corp
Original Assignee
Fuji Xerox Co Ltd
Fujifilm Business Innovation 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 Fuji Xerox Co Ltd, Fujifilm Business Innovation Corp filed Critical Fuji Xerox Co Ltd
Priority to JP06524195A priority Critical patent/JP3755541B2/en
Publication of JPH08234934A publication Critical patent/JPH08234934A/en
Application granted granted Critical
Publication of JP3755541B2 publication Critical patent/JP3755541B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

【0001】
【産業上の利用分野】
本発明はプリンタ装置に関し、特に、複数のホストコンピュータ等の上位装置から供給された作画データおよび制御情報に従って印字を行う際に、汎用のアプリケーションプロトコルを使用することができるプリンタ装置に関する。
【0002】
【従来の技術】
LAN等のネットワーク接続においては、業界標準となっているプロトコル群TCP/IPが使用され、例えば、遠隔の出力装置つまりプリンタ装置にクライアントマシン(以下「クライアント」という)から作画データを送信する場合には、アプリケーションプロトコルとしてlprが使用されることがある。
【0003】
一方、各クライアント間でのデータ転送には、アプリケーションプロトコルとしてFTPが一般に使用されている。前記lprは主としてワークステーションに搭載されており、大型コンピュータやパーソナルコンピュータには、このlprが搭載されているものが少ない。これに対して、FTPを搭載しているクライアントは多く、いわゆるサポート率が極めて高い。そこで、この汎用性のあるFTPを使用して作画データをプリンタ装置に転送することが考えられている。
【0004】
【発明が解決しようとする課題】
ところが、前記FTPを使用して作画データをプリンタ装置に転送し、印字を行う場合、次の問題点がある。まず、FTPは、ハードディスク間のファイル転送を本来の目的とするプロトコルであるため、送信側から受信側のハードディスクに転送されたデータを、出力装置に出力するためには、専用の出力処理アプリケーションを別途必要とする。
【0005】
また、前記出力処理アプリケーションを準備した場合にも、サーバ側つまり処理の要求を受けた側のデーモンであるftpdは、前記出力処理アプリケーションとは別に単独で動作するため、該出力処理アプリケーションでは、ファイル転送終了等を検知する手段がない。そのために、例えば、ハードディスクのファイルサイズの増減を監視し、この増減がない場合にファイル転送終了であるとみなすという処理が考えられていたが、処理が複雑化して確実性に欠けるという問題点があった。
【0006】
また、FTPは、ファイル転送のみを目的としていて、プリンタ装置に出力するという概念がない。したがって、例えば、印字の際の線の太さの決定や日付の表示の有無等、作画データの出力方式を予め設定されているものから変更することは困難であり、実データに予め記述しておく以外に手段がなかった。
【0007】
さらに、プリンタ装置でFTPおよびlprの双方を採用している場合、作画データを一本化して管理することができないという問題点があった。
【0008】
本発明は、上記問題点を解消し、ネットワーク接続の中で業界標準となっているプロトコル群TCP/IPにおけるサポート率の高いFTPを用いて作画データを受信し、印字出力することができるプリンタ装置を提供することを目的とする。
【0009】
【課題を解決するための手段】
上記の課題を解決し、目的を達成するための本発明は次の特徴を有する。
第1に、ユーザ名によって出力処理用モードおよびファイル転送モードのいずれかの動作モードを識別可能なパスワードファイルと、クライアントからの接続要求に応答して該クライアントにユーザ名を要求するユーザ名要求手段と、クライアントから供給された前記ユーザ名に対応する動作モードを前記パスワードファイルから入手し、該動作モードによって該接続要求を処理するための指示をするモード選択手段とを具備した点に特徴がある。
【0010】
第2に、ファイル転送用アプリケーションプロトコル機能で使用されるコマンドを前記出力処理用モードで使用するための予定の機能として読み替えるサブコマンド解釈手段を具備し、前記出力処理用モードでは該読み替えられた機能に従ってクライアントからの指示を処理するように構成した点に特徴がある。
【0011】
第3に、ファイル転送用アプリケーションプロトコル機能に設けられている転送拡張コマンドに、前記出力処理用モードで使用するための予定の機能を割り付ける手段を具備し、前記サブコマンド解釈手段は前記転送拡張コマンドの解釈機能をさらに有している点に特徴がある。
【0012】
第4に、前記記憶装置の空き容量予定周期で判別する記憶容量判別手段と、前記記憶容量判別手段により、空き容量が予定値以下になったと判断された際に、作画データの転送を拒否する手段と、前記転送の拒否をクライアントに通知する手段とを具備するとともに、前記記憶容量判別手段による判別動作は、クライアントからの作画データ送信要求受付時および予定量の作画データを受信する毎に実行するように構成した点に特徴がある。
【0013】
第5に、前記通知手段を、前記作画データの転送拒否後、予定時間内に前記空き容量が前記予定値に回復しないときに、クライアントへの前記通知をするように構成した点に特徴がある。
【0014】
第6に、クライアントから得た情報をラインプリンタプロトコルで使用される制御ファイルと同一フォーマットの制御ファイルに生成する制御ファイル生成手段と、前記制御ファイルに基づいて前記作画データを出力する印字手段とを具備した点に特徴がある。
【0015】
【作用】
第1の特徴を有する本発明によれば、クライアントから入力されるユーザ名に基づいて、ファイル転送モードで動作するのか出力処理用モードで動作するのかを判断することができる。すなわち、プリンタでは、一般的なファイル転送なのかプリント処理をする作画データの転送なのかをユーザ名によって判断することができ、この判断結果によってプリンタ内部での処理が実行される。
【0016】
第2の特徴を有する本発明によれば、既存のファイル転送用コマンドを使用して、そのコマンド本来の機能以外の出力処理用機能を実現できる。
【0017】
第3の特徴を有する本発明によれば、ファイル転送用の転送拡張コマンドを解釈して、出力処理用機能を実現できる。
【0018】
第4の特徴を有する本発明によれば、作画データの記憶装置の空き容量を確認し、空き容量が予定値より少なくなったときに予定時間だけ作画データの受信を停止し、その旨がクライアントに通知される。
【0019】
第5の特徴を有する本発明によれば、例えば5分間の間に空き容量が回復しない場合に、転送を拒否した旨がクライアントに通知される。この間に前記空き容量が回復すれば、データの受信が再開されるし、クライアントにも前記通知はされない。
【0020】
第6の特徴を有する本発明によれば、クライアントから転送ないし入手した情報、例えば出力枚数や出力処理方式をもとにラインプリンタプロトコルに合致した制御ファイルが生成される。したがって、ファイル転送プロトコルを用いて作画データを受信した場合にも、該制御ファイルを使用してプリントのための処理を実行できる。
【0021】
以上のように、第1〜第5の特徴によれば、クライアント側では、既存のファイル転送系のプロトコルおよびコマンド体系をそのまま使用し、当該プリンタをネットワークプリンタとして利用できる。
【0022】
【実施例】
以下、図面を参照して本発明を詳細に説明する。図3は、本発明の一実施例に係るプリンタ装置のハード構成を示すブロック図である。同図において、プリンタ装置(以下、単に「プリンタ」という)1はLAN等のネットワーク2に接続されている。該ネットワーク2には、複数のクライアント3が接続されており、該クライアント3はプリンタ1の上位装置として該プリンタ1にデータを送信する。プリンタ1では、この送信データを受信し、適宜のデータ処理を施して印字出力を行う。プリンタ1は前記データ処理のための、次の構成部分からなる。
【0023】
プリンタ1はデータバス等のバス4を通じて各構成部分と接続されるCPU5を有する。プログラム用メモリ6は前記CPU5による該プリンタ1の動作に必要なプログラムや定数を格納したメモリであり、作業用メモリ7は該プリンタ1の制御に一時的に必要とするデータを格納するメモリである。不揮発性メモリ8は、制御に必要とするデータのうち、電源が遮断されたときにも消失させてはならないものを格納するメモリである。記憶装置9はクライアント3から転送されたプリント用データつまり作画データと制御情報を格納する手段であって、例えば、ハードディスク装置である。
【0024】
画像用メモリ10は、印字されるビットマップデータを格納するためのメモリである。通信インタフェース11はネットワーク2を介してクライアント3との間でデータの送受信を行うための回路である。出力制御装置12は、画像用メモリ10に格納されたビットマップデータを印字部13に転送するためのタイミングなどを制御する回路である。この出力制御装置12には、印字部13の状態を示す情報を受信するための回路も含まれる。時計回路14は時刻を管理している回路である。このほか、オペレータの指示を入力したり、印字部13の動作状態やエラー表示をしたり、紙やトナー等の消耗品の補給を促す表示をしたりするためのコンソールパネル等を設けることもできる。
【0025】
なお、プリンタ1は、アプリケーションプロトコルとしてFTPおよびlprをサポートしており、複数のクライアント3は、FTPおよびlprの少なくとも一方をサポートしているものとして以下の説明をする。
【0026】
上記構成によるプリンタ1では、クライアント3からネットワーク2を介して転送されたプリント用のデータを通信インタフェース11で受信する。受信したデータは前記記憶装置9に格納され、CPU5は、プログラム用メモリ6に格納されたプログラムに従い、該受信データをビットマップデータに変換する。この変換作業は、受信データを作業用メモリ7に読み出して実行される。変換されたビットマップデータは画像用メモリ10に格納される。出力制御装置12を介してCPU5から印字部13に印字開始指令が送信されると、印字部13は、画像用メモリ10からビットマップデータを読み込み、プリントが行われる。正常にプリントが実行されたときは、出力制御装置12へ正常終了情報が送信される。この正常終了情報は、予め記憶装置9に設定してある管理テーブルの「ジョブの状態」を記録する領域に管理情報の1つとして登録される。
【0027】
次に、本実施例で使用する制御ファイルおよび管理テーブルの具体例を説明する。図4に制御ファイルの一例を示す。クライアント3がlprをサポートしているときには、作画データとともに転送されてくる制御情報がそのままこの制御ファイルに変換される。一方、クライアント3がlprをサポートしていなくてFTPによってデータを転送してくるときには、プロトコルを通じてプリンタ1側から行われる要求によって得られる情報に基づいてこの制御ファイルが作成される。すなわち、lprでは、当初から制御情報の転送が予定されていて、その転送された制御情報をそのまま制御ファイルとすることができる。これに対してFTPでは、プリントを前提としないので、制御情報はプリンタ1の側からの要求に対する応答から得られることになる。
【0028】
図4において、各制御情報のうち、重複しているものが存在するのは、lprで転送される制御ファイルの所定のフォーマットに合わせたためである。また、符号#が先頭に付加されているものは本実施例特有の表現方式である。同図において、符号HおよびCは、TCP/IPで用いられるIPアドレスであり、ワークステーションを特定するための番地である。原則的には、世界中で同一のIPアドレスは存在しない。符号PおよびLは、FTPのプリンタ1の側のプロトコルftpdに対してログインしたログインユーザ名、符号JおよびNは、クライアント3でユーザが作成したファイル名である。
【0029】
また、符号#LPは、出力処理方式つまりプリント時に線の太さ等を示すファイル(出力処理方式ファイル)であり、後述の「CWD」サブコマンドによって指定されたものである。符号#CCは、出力枚数であり、後述の「CC」サブコマンドによって指定された枚数である。
【0030】
さらに、符号fおよびUはクライアント3から転送してきたファイル名をプリンタ1で内部的に処理しやすいように付与した連番であり、“dfA”で始まる。なお、当該制御ファイルの番号も、このファイル名と同一であり、頭文字だけは“cfA”とする。
【0031】
上記制御ファイルの記述例を解釈すると、次のようになる。すなわち、(IPアドレスが「129.249.150.85」のクライアント3から、「kaneko」名でログインしたユーザが、出力処理方式ファイル「PLT15」の出力処理方式で、「3」枚の出力を行うように指示をして、「test−file」というファイル名のファイルを転送してきた。このファイルは、「dfA12345」というファイル名で記憶装置9に保存されている)という内容の制御ファイルである。
【0032】
図5は、前記制御ファイルの情報に基づいて実行されるジョブの管理テーブルの内容を示す図である。この管理テーブルはジョブ毎に作成される。ここで、「1ジョブ」は、ファイルをクライアント3からプリンタ1へ転送するのに必要な、一連の仕事である。なお、ftp(クライアント側のプロトコル)は、1ジョブで1つのファイルしか転送できないが、lprは、1ジョブで複数枚のファイルを転送することができる。
【0033】
同図において、左欄は管理項目、右欄はその内容である。ジョブ名とは、前記制御ファイルJ,Nのファイル名であり、複数ファイルが転送された場合は、最初のファイル名に「…」を添付して複数ファイルを代表する。ユーザ名とは、制御ファイルP,Lのログインユーザ名である。データサイズは、当該ジョブにおけるファイルのデータ量であり、記憶装置9に蓄積した際に認識される。
【0034】
論理プリンタ番号は、「CWD」サブコマンドで指定された論理プリンタ番号であり、データフォーマット別に論理プリンタ番号「PLT00〜PLT99」までが指定できる。出力処理方式ファイル名は、「CWD」サブコマンドで指定された論理プリンタ番号から識別した出力処理方式であり、ファイル名「PLT00prm〜PLT99prm」までが存在する。本実施例では、「CWD」サブコマンドによって外部から指定されるものは、論理プリンタ番号であるが、内部的にこの論理プリンタ番号を出力処理方式と読替えて処理をするようにしている。
【0035】
データのフォーマットは、HP−GL、VCGL、VRF等複数の記述形式の中で、前記「CWD」サブコマンドに付随して特定される。例えば、記述形式HP−GLは、「PLT00H」として指定され、内部的な番号におき換えて特定する。インタフェース(I/F)の優先度は、予定の基準で設定された入力インタフェースの優先度を示す情報である。
【0036】
ジョブIDは、管理プログラムが内部的に処理しやすいように振った連番であり、ftpdおよびlpd(lprのプリンタ側のプロトコル)共に、このジョブIDが決定された後、ファイルの受信を行う。このジョブIDは、記憶装置9に記述するファイル名や制御ファイル名に使用される。デイレクトリ名は、記憶装置9に記述されているディレクトリ名であり、ファイルが存在する場所を示す。ジョブの状態としては、プリント済み、プリント中、待ち行列処理中等の処理状況が記述される。ファイル名および制御ファイル名は、プリンタ1の記憶装置9に記述された実データのファイルおよび前記制御ファイルの名称である。
【0037】
続いて、本実施例によるプリンタ1の動作を説明する。プリンタ1では、ファイル転送モードおよび出力処理モードのいずれか1つを選択し、内部処理を該選択されたモードに切替えられるようにする。このために、プリンタ1内ではログインユーザを識別するためにパスワードファイルを記憶装置9内にあらかじめ作成する。このパスワードファイルにはログインするユーザ名、該ユーザ名に対応するパスワード、および該ユーザ名に対応する動作モード番号等をあらかじめ記述する。ここで、動作モード番号は前記ファイル転送モードまたは出力処理モードに対応する。本実施例では、前記パスワードファイルを使用し、前記ログインユーザ名によって前記2つのモードのうち1つを選択する。
【0038】
前記切替え動作を図6のフローチャートを参照して説明する。同図において、ステップS1では通信インタフェース11を通じて入力されるクライアント3からの接続要求を受付ける。接続要求があったならばステップS2ではログイン要求を返してユーザ名の入力を要求する。ステップS3ではこの要求に応答してクライアント3から通知されるログインユーザ名(以下、単に「ログイン名」という)を受付ける。ステップS4ではパスワードファイルを読み、受付けられた前記ログイン名のユーザがパスワードファイルに存在するか否かを判断する。
【0039】
ログイン名に対応するユーザが存在した場合は、ステップS5に進んでパスワードの入力を要求する。ステップS6ではこの要求に応答してクライアント3から通知されるパスワードを受付ける。ステップS7ではパスワードファイルを読み、受付けられた前記パスワードが前記ログイン名に対応するものであるかを判断する。
【0040】
前記ステップS4の判断が否定の場合およびステップS7の判断が否定の場合、つまりログイン名に対応するユーザが存在しない場合、および該ユーザは存在するがパスワードが一致しない場合は、ステップS8に進んでログイン拒否応答をクライアントに通知する。
【0041】
一方、正しいパスワードが通知されたならばステップS7の判断は肯定となり、ステップS9に進んでログイン名に対応する動作モード番号を入手する。ステップS10では入手した動作モード番号に基づき、前記ログイン名のユーザが出力処理用ユーザか否かを判断する。
【0042】
出力処理用ユーザであればステップS11に進んで出力処理モードを選択する。一方、出力処理モードでなければステップS12に進んで通常のファイル転送モードが選択される。モードが選択されたならば、ステップS13に進み、選択されたモードに従ってクライアント3からデータを受信する。
【0043】
すなわち、出力処理モードならば、制御ファイルを作成し、記憶装置9で受信したデータを該制御ファイルに基づいて印字部13に出力する動作を行う。これに対して通常のファイル転送モードが選択された場合は、FTPを用いて単に記憶装置9にデータを転送するだけの動作を行う。このように、ログイン名に基づき、予め出力処理用の動作モードを設定できるので、FTPを用いたデータ転送であってもプリンタ1は印字部13への出力動作の要求を認識して必要な処理を実行することができる。
【0044】
次に、前記出力処理モードにおける具体的な動作の例を説明する。まず、転送されたデータの出力処理方式の設定について説明する。出力処理方式とは、ペンの幅、縮小/拡大倍率、出力ビン番号、丁合指定、優先順位等をいい、例えばコンソールパネルから予め入力して個人名や部門別で複数設定できる。そして、これらの出力処理方式をユーザとプリンタ1とで認識できる論理プリンタ番号にひとつひとつ対応付ける。例えば、論理プリンタ番号と出力処理方式を記述したファイル名とを同一のものとしたり論理プリンタ番号に拡張子を付けたりする。そうして、論理プリンタ番号がクライアント3から供給されると、その論理プリンタ番号つまり出力処理方式を記述したファイル名から出力処理方式を設定する。
【0045】
上記出力処理方式の設定について図7を参照して説明する。同図において、ステップS21では、クライアントからのFTPのサブコマンドの受信を待つ。ステップS22では受信したサブコマンドが「CWD」コマンドか否かを判断する。この「CWD」コマンドは本来ディレクトリ名の変更指示であるが、本実施例ではこれを「出力処理方式ファイルの指定」と解釈する。例えば、論理プリンタ番号および出力処理方式のファイル名をともに「PLT00H」としてある場合、「CWD PLT00H」をクライアントから受信した場合は、「出力処理方式として『PLT00Hprm』ファイルを使用する」と解釈する。
【0046】
すなわち、「CWD」コマンドを受信したならば、ステップS23に進み、記憶装置9の『PLT00Hprm』ファイルを検索し、出力処理方式を設定する。設定された出力処理方式は前記管理テーブルの出力処理方式ファイル名に記述される。出力処理方式が設定されると、クライアントから受信した作画データをこの出力処理方式に従って解釈し、画像用メモリ10に展開した後、印字部13に出力する。
【0047】
なお、論理プリンタ番号と出力処理方式を記述したファイル名とを同一とする以外に、論理プリンタ番号と出力処理方式を記述したファイル名とを対応付けたファイルを生成して記憶させ、このファイルを読んで識別するようにしてもよい。
【0048】
このように、FTPのコマンドの1つである「CWD」コマンドを利用して指定されたディレクトリ名から内部的には出力処理方式を選択できるので、1つのインタフェースを、論理的に複数のインタフェースが存在する論理プリンタとして使用できる。
【0049】
上述のようにして選択された出力処理方式をクライアント3に通知するため、同様にFTPのサブコマンドを使用することができる。例えば、「PWD」コマンドは現在指定されているディレクトリ名をプリンタ1に要求するためのコマンドである。本実施例では、この「PWD」コマンドを受信したプリンタ1では、これを「出力処理方式の通知要求」と解釈して、現在選択されている出力処理方式をクライアント3に通知する。
【0050】
図8は、出力処理方式をクライアント3に通知する動作を示すフローチャートである。ステップS31では、クライアント3からのFTPのサブコマンドの受信を待つ。ステップS32では受信したサブコマンドが「PWD」コマンドか否かを判断する。この「PWD」コマンドは本来ディレクトリの通知要求であるが、本実施例ではこれを「出力処理方式の通知要求」と解釈する。したがって、「PWD」コマンドを受信したならば、ステップS33に進み、現在指定されているディレクトリ名によって出力方式を識別し、クライアント3に通知する。
【0051】
上記コマンド「CWD」や「PWD」は、それぞれに固有の意味付けがなされているものであり、本実施例では、本来の意味付けの解釈を変更して所望の動作をさせるようにしている。さらに、FTPでは、転送拡張機能を有していて、該転送拡張機能によってコマンドを設定し、該コマンドに所望の機能を持たせることができる。
【0052】
図9のフローチャートを参照して、転送拡張機能により設定したコマンドによる動作例を説明する。同図において、ステップS41ではクライアント3からのFTPのサブコマンドの受信を待つ。ステップS42では受信したサブコマンドが「CC」コマンドか否かを判断する。「CC」コマンドには「次に転送する作画データの出力枚数指定」という解釈を対応させてある。したがって、「CC」コマンドを受信したならばステップS43に進み、該コマンドの後に付加された数字に対応する枚数を出力枚数として印字部13に設定する。例えば、「CC3」ならば出力枚数として3枚が設定される。
【0053】
受信したコマンドが「CC」でない場合はステップS44に進み、受信したサブコマンドが「LJ」コマンドか否かを判断する。「LJ」コマンドには「作画データのジョブリストの表示」という解釈を対応させてある。したがって、「LJ」コマンドを受信したならばステップS45に進み、ジョブリストの作成依頼をする。前記作成依頼に従って予定の作画データ管理プログラムが起動され、ジョブリストが作成される。ステップS46では作成されたジョブリストをクライアント3に対して送信する。
【0054】
受信したコマンドが「LJ」でない場合はステップS47に進み、受信したサブコマンドが「RM」コマンドか否かを判断する。「RM」コマンドには「出力処理の取消し」という解釈を対応させてある。したがって、「RM」コマンドを受信したならばステップS48に進み、「RM」コマンドの後に付加されるジョブ名の出力について取消しを依頼をする。該依頼に従って予定の作画データ管理プログラムが起動され、指定されたジョブが削除される。ステップS49ではジョブの削除が終了したことをクライアント3に対して送信する。ここで、削除動作の開始前に出力処理に入ってしまった場合には取消し不能であることをクライアント3に通知する。
【0055】
受信したコマンドが「RM」でない場合はステップS50に進み、受信したサブコマンドが「JL」コマンドか否かを判断する。「JL」コマンドには「すでに出力されたジョブのログ表示」という解釈を対応させてある。したがって、「JL」コマンドを受信したならばステップS51に進み、作画データ解釈プログラムや印字プログラムが作成したログからジョブログを作成する。このジョブログの作成はユーザが見やすいように予め定められたフォーマットに従って行う。ステップS52では作成されたジョブログをクライアント3に送信する。
【0056】
受信したコマンドが「JL」でない場合はステップS53に進み、受信したサブコマンドが「SS」コマンドか否かを判断する。「SS」コマンドには「出力装置の状態表示」という解釈を対応させてある。この「SS」には知りたい状態の内容を指定することもできる。例えば「parameter」という指定をして「指定された出力処理方式の内容表示」をすることができるし、「job−count」という指定をして「スプールされているジョブ数の表示」をすることもできる。したがって、「SS」コマンドを受信したならばステップS54に進み、前記制御テーブルからプリンタ1の状態を検索して情報を収集する。ステップS55では、その結果をクライアント3に送信する。前記情報はユーザが見やすいように予め定められたフォーマットに従って作成する。ステップS53の判断が否定の場合はステップS41に戻る。
【0057】
続いて、転送される作画データの蓄積動作の実施例を説明する。記憶装置9にはクライアント3から転送される作画データだけでなく、パスワードファイル等、他の処理に必要な情報が記憶される。また、作画データについても複数クライアントから同時に転送がなされることがあり、短時間でディスクフルとなる恐れがある。ところがFTPはディスクフルとなった場合でも、送信をし続け、クライアント3では送信が終了しない理由を知ることもできない。そこで、本実施例では、ディスクフルになったことを確認するようにしてクライアント3にディスクフル状態を通知できるようにした。
【0058】
図10において、ステップS61では、クライアント3からのFTPのサブコマンドの受信を待つ。ステップS62では受信したサブコマンドが「STOR」コマンドか否かを判断する。「STOR」コマンドは「作画データ送信要求」を示すコマンドである。「STOR」コマンドを受信したならばステップS63に進み、記憶装置9の空きの有無を判断する。本実施例では、予め一定の容量vmを設定しておき、記憶装置9の容量が該容量vm以下になったときに「空きなし」と判断するようにしている。例えば、容量vmは20メガバイトとする。
【0059】
空きがなければステップS64に進んで受信拒否をクライアント3に通知する。空きがあればステップS65に進んで受信を受付ける。受信が受付けられると作画データ管理プログラムによる受信動作が起動され、作画データの書込みが行われる。ステップS66では書込みが終了したか否かが判断される。書込みが終了していなければステップS67で一定量vsの作画データ、例えば1メガバイト分を記憶装置9に記述する。ここで、作画データの記述を一定量vsにして短時間に区切ってメモリ残量を確認するように設定したのは、上述のように複数クライアント3から同時に受信していると短時間で記憶装置9がディスクフルとなって、前記記憶容量vmを確保するのが困難となるからである。したがって、容量vsは、各プリンタ装置に送信する平均的な作画データの量を考慮し、ディスク容量もよりも十分に小さい値とするのがよい。
【0060】
ステップS68では記憶装置9の空きの有無を判断する。空きがあればステップS66に進み、空きがなければ一定時間t毎に記憶装置9の空きの有無を判断し、最大で一定時間Tまで待つ(ステップS69,S70,S70a)。空きがあると判断されればステップS66に進み、空きがなければ受信を中断して、ステップS71で記憶装置9に空きがないことをクライアント3に報告する。ステップS72では途中まで記述された分のファイルを削除する。
【0061】
一方、ステップS66で書込み終了と判断されれば、ステップS73に進んで書込みが終了した作画データに関する制御ファイルを生成する。ステップS74では、作画データプログラムによる受信動作を終了する。
【0062】
次に、前記記憶装置9に記述された作画データを印字部13で出力するための前記制御ファイルの作成動作について説明する。図11において、ステップS81では、クライアント3からのFTPのサブコマンドの受信を待つ。ステップS82では受信したサブコマンドが「STOR」」コマンドか否かを判断する。「STOR」コマンドを受信したならばステップS83に進み、作画データ管理プログラムに対して受信要求が発生したことを知らせる。ステップS84では、受信要求を知った作画データ管理プログラムからジョブIDを入手し、クライアント3からの受信を受け付ける。このジョブIDはプリンタ1の内部で発生する連続番号であり、例えば、図4に示す数字「12345」である。ステップS85では入手した前記ジョブIDに従い、ファイル名を生成する。例えば、図4に示すファイル名「dfA12345」である。
【0063】
ステップS86では作画データの書込みが終了したか否かが判断される。書込みが終了した場合は、ステップS87に進み、記憶装置9に書込みを終了した作画データに関する制御ファイル名を生成する。例えば図4に示す制御ファイル名「cfA12345」である。ステップS88では生成した制御ファイルに内容を記述する。ステップS89では、作画データプログラムに対して、受信動作終了を知らせ、ftpdによる受信動作を終了する。なお、図11では詳細な作画データの書込み動作は省略したが、図10に関して説明した手順で書込みを行う。このように、本実施例では、FTPによって転送された作画データに関してもlprと同様に制御ファイルが作成されるので、この制御ファイルを使用し、記憶装置9に記述された作画データを解析してビットマップデータへの展開および印字部13への出力を容易に行うことができる。
【0064】
次に、上述の動作を実行するためのプリンタ1の要部機能を図1の機能ブロック図を参照して説明する。同図において、接続要求検出部15はクライアント3のftpから接続要求があるとユーザ名要求部16に検出信号を出力する。ユーザ名要求部16は前記検出信号に応答してftpにユーザ名の入力要求を送信する。同様に、パスワードの入力要求もする。ユーザ名の入力要求に応答してftpから送信されたユーザ名はユーザ名受付け部17で受付けられ、パスワードファイル18に入力される。パスワードファイル18にはユーザ名およびパスワードならびに動作モード等が予め設定されている。パスワードファイルにユーザ名が存在すれば、パスワード要求部181はクライアント3にパスワードの入力を要求する。この要求に応じてクライアント3から送信されたパスワードはパスワード受付部182に入力され、パスワードファイル18に転送される。クライアント3から受信したパスワードがパスワードファイル18のパスワードと比較照合される。そして、パスワードの一致を条件にして、ユーザ名に対応する動作モードがモード選択部19に読み出され、モード選択部19は出力処理モードまたは通常のファイル転送モードによる動作指示を出力する。
【0065】
続いて前記出力処理モードの指示がなされた場合のプリンタ1の要部機能を説明する。図2において、サブコマンド受付部20ではftpから供給されるサブコマンドを受付ける。受付けられたサブコマンドはサブコマンド解釈部21で解釈される。上述したように、一定の既存のサブコマンドは独自の意味に読み替えられ、またFTPの転送拡張機能により、いくつかのサブコマンドを追加し、特定の解釈が対応付けられている。サブコマンド解釈部21で解釈された出力処理方式や印字枚数等の指示は当該ジョブの制御情報として制御ファイル22に記述される。制御ファイル22には前記ユーザ名受付部17で受信したユーザ名や接続要求時に識別できるクライアント3を特定するためのIPアドレス等も記述される。この制御ファイル22はlprと同一のフォーマットで作成することは上述したとおりである。
【0066】
サブコマンド解釈部21で作画送信を要求するサブコマンドが認識されたならば容量判別部23を起動して記憶装置9のディスク残量が予定量vm以上あるかどうかを判別する。メモリ残量が予定量vm以上であれば作画データ受付部24に許可信号を出力し、予定量vm以下であればこの許可信号を停止するとともに通知部25に指示をしてクライアント3のftpにディスクフルを通知させる。
【0067】
サブコマンド解釈部21でジョブの状態を要求するサブコマンドが認識された場合は、状態判別部26を起動して管理テーブル27を読み、ジョブの状態をftpに通知させるための指示を通知部25に対して行う。なお、管理テーブル27は一例が図5に示したものであり、また詳細の機能は省略するが、該「状態」にはジョブリストの要求等、図9に関して説明した要求内容が含まれる。
【0068】
作画データ受付部24で受信した作画データは記憶装置9に記述され、該作画データはビットマップ展開された後、制御ファイル22に従って印字部13に供給され、印字出力される。
【0069】
【発明の効果】
以上の説明から明らかなように、請求項1の発明によれば、一般的なファイル転送なのかプリント処理をする作画データの転送なのかをユーザ名によって判断できる。また、請求項2の発明によれば、既存のファイル転送用コマンドを使用して、そのコマンド本来の機能以外の出力処理用機能を実現できる。同様に請求項3の発明によれば、ファイル転送用の転送拡張コマンドを追加して、出力処理を実行できる。
【0070】
また、請求項4および5の発明によれば、空き容量が少なくなったときに作画データの受信を予定時間だけ中断し、その旨をクライアントに通知できる。したがって、クライアントは作画データ送信不能の理由を認識できる。なお、空き容量の検出は予定の周期で行われるので、複数のクライアントから作画データの転送があった場合にも、ディスクフルになる前に空き容量が少なくなったことを認識できる。さらに、請求項6の発明によれば、ラインプリンタプロトコルに合致した制御ファイルによってプリントを実行することができる
このように、請求項1〜6の発明によれば、クライアント側では、例えば、既存のファイル転送用プロトコルであるFTPは単に通常のファイル転送をイメージして作画データを送信すればよく、プリンタ側ではこうして送信された作画データを印字出力処理対象の作画データとして受信し、処理をすることができる。
【0071】
その結果、出力処理用プロトコルとファイル転送用プロトコルとが併存している場合、ファイル転送用プロトコルを利用して転送された作画データを、出力処理用プロトコルを利用して転送された作画データと同様に取扱って出力できるので、専用の出力処理アプリケーションを必要としない。すなわち、作画データを一本化して管理することができる。
【0072】
さらに、コマンドの解釈を任意に設定できるので、例えば、出力処理方式を複数設けることにより、論理的に複数のインタフェースを提供でき、ユーザ個人や部門に合った印刷環境で作画データを処理させることができる。
【図面の簡単な説明】
【図1】 本発明の一実施例に係るプリンタ装置の要部機能ブロック図である。
【図2】 本発明の一実施例に係るプリンタ装置の要部機能ブロック図である。
【図3】 本発明の一実施例に係るプリンタ装置のハード構成を示すブロック図である。
【図4】 制御ファイルの一例を示す図である。
【図5】 管理テーブルの一例を示す図である。
【図6】 動作モード選択の動作を示すフローチャートである。
【図7】 サブコマンドの解釈動作を示すフローチャートである。
【図8】 サブコマンドの解釈動作を示すフローチャートである。
【図9】 転送拡張機能によるコマンド解釈の動作を示すフローチャートである。
【図10】 作画データ書込み動作のフローチャートである。
【図11】 制御ファイル作成動作のフローチャートである。
【符号の説明】
3…クライアント、 9…記憶装置、 13…印字部、 15…接続要求検出部、 16…ユーザ名要求部、 17…ユーザ名受付部、 18…ユーザファイル、 19…モード選択部、 21…サブコマンド解釈部、 22…制御ファイル、23…容量判別部
[0001]
[Industrial application fields]
The present invention relates to a printer apparatus, and more particularly to a printer apparatus that can use a general-purpose application protocol when printing is performed in accordance with drawing data and control information supplied from a host apparatus such as a plurality of host computers.
[0002]
[Prior art]
In network connection such as LAN, an industry standard protocol group TCP / IP is used. For example, when drawing data is transmitted from a client machine (hereinafter referred to as “client”) to a remote output device, that is, a printer device. May use lpr as an application protocol.
[0003]
On the other hand, FTP is generally used as an application protocol for data transfer between clients. The lpr is mainly mounted on a workstation, and few large computers and personal computers have this lpr. On the other hand, many clients are equipped with FTP, and the so-called support rate is extremely high. Therefore, it is considered to transfer the drawing data to the printer device using this versatile FTP.
[0004]
[Problems to be solved by the invention]
However, when printing data is transferred to a printer apparatus using the FTP and printing is performed, there are the following problems. First, since FTP is a protocol originally intended for file transfer between hard disks, a dedicated output processing application is required to output the data transferred from the transmission side to the reception side hard disk to the output device. Separately required.
[0005]
Even when the output processing application is prepared, the ftpd, which is the daemon on the server side, that is, the side that has received the processing request, operates independently of the output processing application. There is no means for detecting the end of transfer. For this reason, for example, a process of monitoring an increase / decrease in the file size of the hard disk and considering that the file transfer is completed when there is no increase / decrease is considered, but the process is complicated and lacks certainty. there were.
[0006]
FTP is intended only for file transfer and has no concept of outputting to a printer. Therefore, for example, it is difficult to change the output method of drawing data from a preset one, such as determining the thickness of a line at the time of printing and whether or not to display a date. There was no means other than leaving.
[0007]
Furthermore, when both FTP and lpr are adopted in the printer device, there is a problem that the drawing data cannot be unified and managed.
[0008]
The present invention solves the above-mentioned problems and can receive print data using FTP having a high support rate in the protocol group TCP / IP, which is an industry standard in network connection, and can output the print data The purpose is to provide.
[0009]
[Means for Solving the Problems]
In order to solve the above problems and achieve the object, the present invention has the following features.
First, a password file that can identify one of the output processing mode and the file transfer mode according to the user name, and user name requesting means for requesting the user name to the client in response to a connection request from the client And mode selection means for obtaining an operation mode corresponding to the user name supplied from the client from the password file and instructing to process the connection request according to the operation mode. .
[0010]
Second, it comprises subcommand interpreting means for rereading a command used in the file transfer application protocol function as a function scheduled to be used in the output processing mode, and the reread function in the output processing mode. The method is characterized in that an instruction from a client is processed according to the above.
[0011]
Thirdly, it comprises means for allocating a function scheduled to be used in the output processing mode to a transfer extension command provided in the file transfer application protocol function, and the subcommand interpreting means includes the transfer extension command. It is characterized in that it has a further interpretation function.
[0012]
Fourthly, when the storage capacity determining means for determining the free capacity scheduled cycle of the storage device and the storage capacity determining means determine that the free capacity is equal to or less than the predetermined value, transfer of drawing data is rejected. And a means for notifying the client of the rejection of the transfer, and the determination operation by the storage capacity determination means is executed when the drawing data transmission request is received from the client and every time when a predetermined amount of drawing data is received. It is characterized in that it is configured to do so.
[0013]
Fifth, the notification means is configured to notify the client when the free space does not recover to the scheduled value within a scheduled time after transfer of the drawing data is refused. .
[0014]
Sixth, control file generation means for generating information obtained from the client in a control file having the same format as the control file used in the line printer protocol, and printing means for outputting the drawing data based on the control file It is characterized in that it is equipped.
[0015]
[Action]
According to the present invention having the first feature, it is possible to determine whether to operate in the file transfer mode or in the output processing mode based on the user name input from the client. That is, in the printer, it is possible to determine whether it is general file transfer or transfer of drawing data to be printed, based on the user name, and processing inside the printer is executed based on the determination result.
[0016]
According to the present invention having the second feature, an output processing function other than the original function of the command can be realized by using an existing file transfer command.
[0017]
According to the present invention having the third feature, an output processing function can be realized by interpreting a transfer extension command for file transfer.
[0018]
According to the present invention having the fourth feature, the free space of the storage device for drawing data is confirmed, and when the free space becomes smaller than the scheduled value, the reception of the drawing data is stopped only for the scheduled time, which means that the client Will be notified.
[0019]
According to the present invention having the fifth feature, for example, when the free space is not recovered within 5 minutes, the client is notified that transfer is refused. If the free space is recovered during this time, data reception is resumed and the client is not notified.
[0020]
According to the present invention having the sixth feature, a control file matching the line printer protocol is generated based on information transferred or obtained from the client, for example, the number of output sheets and the output processing method. Therefore, even when the drawing data is received using the file transfer protocol, it is possible to execute processing for printing using the control file.
[0021]
As described above, according to the first to fifth features, the existing file transfer protocol and command system can be used as they are on the client side, and the printer can be used as a network printer.
[0022]
【Example】
Hereinafter, the present invention will be described in detail with reference to the drawings. FIG. 3 is a block diagram showing a hardware configuration of the printer apparatus according to the embodiment of the present invention. In FIG. 1, a printer apparatus (hereinafter simply referred to as “printer”) 1 is connected to a network 2 such as a LAN. A plurality of clients 3 are connected to the network 2, and the clients 3 transmit data to the printer 1 as a host device of the printer 1. The printer 1 receives this transmission data, performs appropriate data processing, and prints out. The printer 1 includes the following components for data processing.
[0023]
The printer 1 has a CPU 5 connected to each component through a bus 4 such as a data bus. The program memory 6 is a memory storing programs and constants necessary for the operation of the printer 1 by the CPU 5, and the work memory 7 is a memory storing data temporarily required for controlling the printer 1. . The non-volatile memory 8 is a memory for storing data necessary for control that should not be lost even when the power is turned off. The storage device 9 is means for storing print data transferred from the client 3, that is, drawing data and control information, and is, for example, a hard disk device.
[0024]
The image memory 10 is a memory for storing bitmap data to be printed. The communication interface 11 is a circuit for transmitting and receiving data to and from the client 3 via the network 2. The output control device 12 is a circuit that controls timing for transferring the bitmap data stored in the image memory 10 to the printing unit 13. The output control device 12 also includes a circuit for receiving information indicating the state of the printing unit 13. The clock circuit 14 is a circuit that manages time. In addition, a console panel or the like can be provided for inputting an operator instruction, displaying an operation state of the printing unit 13 or an error, or displaying a prompt for replenishment of consumables such as paper and toner. .
[0025]
The printer 1 supports FTP and lpr as application protocols, and the plurality of clients 3 will be described below assuming that they support at least one of FTP and lpr.
[0026]
In the printer 1 having the above-described configuration, the print data transferred from the client 3 via the network 2 is received by the communication interface 11. The received data is stored in the storage device 9, and the CPU 5 converts the received data into bitmap data in accordance with a program stored in the program memory 6. This conversion work is executed by reading the received data into the work memory 7. The converted bitmap data is stored in the image memory 10. When a print start command is transmitted from the CPU 5 to the printing unit 13 via the output control device 12, the printing unit 13 reads bitmap data from the image memory 10 and performs printing. When the printing is normally executed, the normal end information is transmitted to the output control device 12. The normal end information is registered as one piece of management information in an area for recording “job status” in the management table set in the storage device 9 in advance.
[0027]
Next, a specific example of the control file and management table used in this embodiment will be described. FIG. 4 shows an example of the control file. When the client 3 supports lpr, the control information transferred together with the drawing data is converted into this control file as it is. On the other hand, when the client 3 does not support lpr and transfers data by FTP, this control file is created based on information obtained by a request made from the printer 1 side through the protocol. That is, in lpr, transfer of control information is scheduled from the beginning, and the transferred control information can be used as it is as a control file. On the other hand, since FTP does not assume printing, control information is obtained from a response to a request from the printer 1 side.
[0028]
In FIG. 4, there is an overlap among the pieces of control information because it conforms to a predetermined format of the control file transferred by lpr. Also, what is prefixed with a code # is an expression system unique to this embodiment. In the figure, symbols H and C are IP addresses used in TCP / IP, and are addresses for specifying workstations. In principle, the same IP address does not exist all over the world. Symbols P and L are login user names logged in to the protocol ftpd on the FTP printer 1 side, and symbols J and N are file names created by the user in the client 3.
[0029]
A code #LP is an output processing method, that is, a file (output processing method file) indicating the thickness of a line at the time of printing, and is designated by a “CWD” subcommand described later. The code #CC is the number of output sheets, and is the number specified by the “CC” subcommand described later.
[0030]
Further, symbols f and U are serial numbers assigned so that the file name transferred from the client 3 can be easily processed internally by the printer 1, and starts with “dfA”. The number of the control file is also the same as this file name, and only the initial letter is “cfA”.
[0031]
The description example of the control file is as follows. That is, (a user who logs in with the name “kaneko” from the client 3 whose IP address is “129.249.150.85” outputs “3” in the output processing method of the output processing method file “PLT15”. The file with the file name “test-file” has been transferred, and this file is a control file with the content “saved in the storage device 9 with the file name“ dfA12345 ”) .
[0032]
FIG. 5 is a view showing the contents of a management table of jobs executed based on the information of the control file. This management table is created for each job. Here, “1 job” is a series of work necessary for transferring a file from the client 3 to the printer 1. Note that ftp (client side protocol) can transfer only one file in one job, but lpr can transfer multiple files in one job.
[0033]
In the figure, the left column is the management item, and the right column is the content. The job name is the file name of the control files J and N. When a plurality of files are transferred, the job name represents the plurality of files by attaching "..." to the first file name. The user name is a login user name of the control files P and L. The data size is the data amount of the file in the job, and is recognized when it is stored in the storage device 9.
[0034]
The logical printer number is a logical printer number designated by the “CWD” subcommand, and logical printer numbers “PLT00 to PLT99” can be designated for each data format. The output processing method file name is an output processing method identified from the logical printer number specified by the “CWD” subcommand, and there are file names “PLT00prm to PLT99prm”. In this embodiment, what is designated from the outside by the “CWD” subcommand is a logical printer number, but this logical printer number is internally read as an output processing method for processing.
[0035]
The data format is specified in association with the “CWD” subcommand in a plurality of description formats such as HP-GL, VCGL, and VRF. For example, the description format HP-GL is specified as “PLT00H” and is specified by replacing an internal number. The priority of the interface (I / F) is information indicating the priority of the input interface set according to a predetermined standard.
[0036]
The job ID is a serial number assigned so that the management program can be easily processed internally, and both ftpd and lpd (protocol on the printer side of lpr) receive the file after the job ID is determined. This job ID is used for a file name or a control file name described in the storage device 9. The directory name is a directory name described in the storage device 9 and indicates the location where the file exists. As the job status, a processing status such as “printed”, “printing”, “queue processing”, etc. is described. The file name and the control file name are the actual data file described in the storage device 9 of the printer 1 and the name of the control file.
[0037]
Next, the operation of the printer 1 according to this embodiment will be described. In the printer 1, either one of the file transfer mode and the output processing mode is selected so that the internal processing can be switched to the selected mode. For this purpose, a password file is created in advance in the storage device 9 in order to identify the login user in the printer 1. In this password file, a login user name, a password corresponding to the user name, an operation mode number corresponding to the user name, and the like are described in advance. Here, the operation mode number corresponds to the file transfer mode or the output processing mode. In this embodiment, the password file is used, and one of the two modes is selected according to the login user name.
[0038]
The switching operation will be described with reference to the flowchart of FIG. In the figure, in step S1, a connection request from the client 3 input through the communication interface 11 is accepted. If there is a connection request, in step S2, a login request is returned to request input of a user name. In step S3, a login user name (hereinafter simply referred to as “login name”) notified from the client 3 in response to this request is accepted. In step S4, the password file is read, and it is determined whether or not the accepted user with the login name exists in the password file.
[0039]
If there is a user corresponding to the login name, the process proceeds to step S5 to request input of a password. In step S6, the password notified from the client 3 is accepted in response to this request. In step S7, the password file is read, and it is determined whether or not the accepted password corresponds to the login name.
[0040]
If the determination in step S4 is negative and the determination in step S7 is negative, that is, if there is no user corresponding to the login name, and if the user exists but the password does not match, the process proceeds to step S8. Notify the client of a login rejection response.
[0041]
On the other hand, if the correct password is notified, the determination in step S7 is affirmative, and the process proceeds to step S9 to obtain the operation mode number corresponding to the login name. In step S10, based on the obtained operation mode number, it is determined whether or not the user with the login name is an output processing user.
[0042]
If the user is an output processing user, the process proceeds to step S11 to select an output processing mode. On the other hand, if it is not the output processing mode, the process proceeds to step S12 and the normal file transfer mode is selected. If the mode is selected, the process proceeds to step S13, and data is received from the client 3 according to the selected mode.
[0043]
That is, in the output processing mode, a control file is created, and the operation of outputting the data received by the storage device 9 to the printing unit 13 based on the control file is performed. On the other hand, when the normal file transfer mode is selected, an operation of simply transferring data to the storage device 9 using FTP is performed. As described above, since the operation mode for output processing can be set in advance based on the login name, the printer 1 recognizes the request for the output operation to the printing unit 13 and performs necessary processing even in the case of data transfer using FTP. Can be executed.
[0044]
Next, an example of a specific operation in the output processing mode will be described. First, setting of an output processing method for transferred data will be described. The output processing method refers to pen width, reduction / enlargement magnification, output bin number, collation designation, priority order, and the like. For example, a plurality of settings can be set for each individual name or department by inputting in advance from the console panel. These output processing methods are associated one by one with logical printer numbers that can be recognized by the user and the printer 1. For example, the logical printer number and the file name describing the output processing method are made the same or an extension is added to the logical printer number. Then, when the logical printer number is supplied from the client 3, the output processing method is set from the logical printer number, that is, the file name describing the output processing method.
[0045]
The setting of the output processing method will be described with reference to FIG. In the figure, in step S21, reception of an FTP subcommand from the client is awaited. In step S22, it is determined whether or not the received subcommand is a “CWD” command. This “CWD” command is originally a directory name change instruction, but in the present embodiment, this is interpreted as “designation of an output processing method file”. For example, if both the logical printer number and the output processing method file name are “PLT00H”, and “CWD PLT00H” is received from the client, it is interpreted as “use the“ PLT00Hprm ”file as the output processing method”.
[0046]
That is, if the “CWD” command is received, the process proceeds to step S23, the “PLT00Hprm” file in the storage device 9 is searched, and the output processing method is set. The set output processing method is described in the output processing method file name of the management table. When the output processing method is set, the drawing data received from the client is interpreted according to the output processing method, developed in the image memory 10, and then output to the printing unit 13.
[0047]
In addition to making the logical printer number and the file name describing the output processing method the same, a file in which the logical printer number and the file name describing the output processing method are associated with each other is generated and stored. You may make it read and identify.
[0048]
As described above, since the output processing method can be selected internally from the directory name specified by using the “CWD” command which is one of FTP commands, one interface is logically divided into a plurality of interfaces. It can be used as an existing logical printer.
[0049]
In order to notify the client 3 of the output processing method selected as described above, an FTP subcommand can be similarly used. For example, the “PWD” command is a command for requesting the printer 1 for the directory name currently specified. In this embodiment, the printer 1 that has received the “PWD” command interprets this as an “output processing method notification request” and notifies the client 3 of the currently selected output processing method.
[0050]
FIG. 8 is a flowchart showing an operation of notifying the client 3 of the output processing method. In step S31, reception of an FTP subcommand from the client 3 is awaited. In step S32, it is determined whether or not the received subcommand is a “PWD” command. This “PWD” command is originally a directory notification request, but in the present embodiment, it is interpreted as an “output processing method notification request”. Therefore, if the “PWD” command is received, the process proceeds to step S 33, where the output method is identified by the currently designated directory name and notified to the client 3.
[0051]
The commands “CWD” and “PWD” have specific meanings, and in this embodiment, the interpretation of the original meaning is changed to perform a desired operation. Further, FTP has a transfer extension function, and a command can be set by the transfer extension function, and the command can have a desired function.
[0052]
With reference to the flowchart of FIG. 9, an example of an operation by a command set by the transfer extension function will be described. In the figure, in step S41, reception of an FTP subcommand from the client 3 is awaited. In step S42, it is determined whether or not the received subcommand is a “CC” command. The “CC” command is associated with an interpretation “designation of the number of print data to be transferred next”. Therefore, if the “CC” command is received, the process proceeds to step S43, and the number corresponding to the number added after the command is set in the printing unit 13 as the output number. For example, if “CC3”, three sheets are set as the number of output sheets.
[0053]
If the received command is not “CC”, the process proceeds to step S44, and it is determined whether or not the received subcommand is an “LJ” command. The “LJ” command is associated with the interpretation “display job list of drawing data”. Therefore, if the “LJ” command is received, the process proceeds to step S45, and a job list creation request is made. In accordance with the creation request, the scheduled drawing data management program is started and a job list is created. In step S46, the created job list is transmitted to the client 3.
[0054]
If the received command is not “LJ”, the process proceeds to step S47, and it is determined whether or not the received subcommand is an “RM” command. The “RM” command is associated with the interpretation “cancel output process”. Accordingly, if the “RM” command is received, the process proceeds to step S48, and a request is made to cancel the output of the job name added after the “RM” command. In accordance with the request, the scheduled drawing data management program is activated, and the designated job is deleted. In step S49, the client 3 is notified that the job has been deleted. Here, if the output process is started before the start of the deletion operation, the client 3 is notified that it cannot be canceled.
[0055]
If the received command is not “RM”, the process proceeds to step S50, and it is determined whether or not the received subcommand is a “JL” command. The “JL” command is associated with the interpretation “display log of already output job”. Therefore, if the “JL” command is received, the process proceeds to step S51, and a job log is created from the log created by the drawing data interpretation program or the printing program. The job log is created according to a predetermined format so that the user can easily see the job log. In step S52, the created job log is transmitted to the client 3.
[0056]
If the received command is not “JL”, the process proceeds to step S53, and it is determined whether or not the received subcommand is an “SS” command. The “SS” command is associated with the interpretation “display status of output device”. In this “SS”, the contents of the state to be known can be designated. For example, “parameter” can be designated to “display the contents of the designated output processing method”, and “job-count” can be designated to “display the number of spooled jobs”. Can also. Therefore, if the “SS” command is received, the process proceeds to step S54, where the status of the printer 1 is retrieved from the control table and information is collected. In step S55, the result is transmitted to the client 3. The information is created according to a predetermined format so that the user can easily see it. If the determination in step S53 is negative, the process returns to step S41.
[0057]
Next, an example of an operation for accumulating transferred drawing data will be described. The storage device 9 stores not only the drawing data transferred from the client 3 but also information necessary for other processing such as a password file. Also, the drawing data may be transferred from a plurality of clients at the same time, and there is a possibility that the disk becomes full in a short time. However, even when the FTP becomes full, FTP continues to be transmitted, and the client 3 cannot know the reason why the transmission does not end. Therefore, in this embodiment, the client 3 can be notified of the disk full state by confirming that the disk is full.
[0058]
In FIG. 10, in step S61, the reception of an FTP subcommand from the client 3 is awaited. In step S62, it is determined whether or not the received subcommand is a “STOR” command. The “STOR” command is a command indicating “drawing data transmission request”. If the “STOR” command is received, the process proceeds to step S63 to determine whether or not the storage device 9 is free. In this embodiment, a predetermined capacity vm is set in advance, and it is determined that “no space is available” when the capacity of the storage device 9 becomes equal to or less than the capacity vm. For example, the capacity vm is 20 megabytes.
[0059]
If there is no vacancy, the process proceeds to step S64 to notify the client 3 of reception refusal. If there is a vacancy, the process proceeds to step S65 to accept the reception. When the reception is accepted, the reception operation by the drawing data management program is started, and the drawing data is written. In step S66, it is determined whether or not the writing is completed. If the writing has not been completed, a predetermined amount of drawing data, for example, 1 megabyte, is described in the storage device 9 in step S67. Here, the description of the drawing data is set to a fixed amount vs and divided into a short time to set the memory remaining amount to be confirmed. This is because the disk 9 becomes full and it is difficult to secure the storage capacity vm. Therefore, the capacity vs is preferably set to a value sufficiently smaller than the disk capacity in consideration of the average amount of drawing data transmitted to each printer apparatus.
[0060]
In step S68, it is determined whether the storage device 9 is free. If there is a vacancy, the process proceeds to step S66, and if there is no vacancy, the presence or absence of the vacancy in the storage device 9 is determined every predetermined time t, and the process waits until the maximum time T (steps S69, S70, S70a). If it is determined that there is a vacancy, the process proceeds to step S66. If there is no vacancy, reception is interrupted, and in step S71, the client 3 is notified that there is no vacancy in the storage device 9. In step S72, the files described in the middle are deleted.
[0061]
On the other hand, if it is determined in step S66 that the writing has been completed, the process proceeds to step S73 to generate a control file relating to the drawing data for which writing has been completed. In step S74, the receiving operation by the drawing data program is terminated.
[0062]
Next, the control file creation operation for outputting the drawing data described in the storage device 9 by the printing unit 13 will be described. In FIG. 11, in step S81, reception of an FTP subcommand from the client 3 is awaited. In step S82, it is determined whether or not the received subcommand is a “STOR” command. If the “STOR” command is received, the process proceeds to step S83 to notify the drawing data management program that a reception request has occurred. In step S84, the job ID is obtained from the drawing data management program that has known the reception request, and reception from the client 3 is accepted. This job ID is a serial number generated inside the printer 1, and is, for example, the number “12345” shown in FIG. In step S85, a file name is generated according to the acquired job ID. For example, the file name “dfA12345” shown in FIG.
[0063]
In step S86, it is determined whether or not the drawing data has been written. When the writing is completed, the process proceeds to step S87, and the control file name relating to the drawing data for which writing has been completed is generated in the storage device 9. For example, the control file name “cfA12345” shown in FIG. In step S88, the contents are described in the generated control file. In step S89, the drawing data program is notified of the end of the receiving operation, and the receiving operation by ftpd is ended. In FIG. 11, detailed drawing data writing operation is omitted, but writing is performed according to the procedure described with reference to FIG. As described above, in this embodiment, a control file is also created for drawing data transferred by FTP in the same manner as for lpr. Therefore, using this control file, the drawing data described in the storage device 9 is analyzed. Expansion into bitmap data and output to the printing unit 13 can be easily performed.
[0064]
Next, main functions of the printer 1 for executing the above-described operation will be described with reference to the functional block diagram of FIG. In the figure, the connection request detection unit 15 outputs a detection signal to the user name request unit 16 when there is a connection request from the ftp of the client 3. The user name request unit 16 transmits a user name input request to ftp in response to the detection signal. Similarly, a password input request is also made. The user name transmitted from ftp in response to the user name input request is received by the user name receiving unit 17 and input to the password file 18. In the password file 18, a user name, a password, an operation mode, and the like are set in advance. If the user name exists in the password file, the password request unit 181 requests the client 3 to input a password. In response to this request, the password transmitted from the client 3 is input to the password receiving unit 182 and transferred to the password file 18. The password received from the client 3 is compared with the password in the password file 18. The operation mode corresponding to the user name is read by the mode selection unit 19 on condition that the password matches, and the mode selection unit 19 outputs an operation instruction in the output processing mode or the normal file transfer mode.
[0065]
Next, the main function of the printer 1 when the output processing mode is instructed will be described. In FIG. 2, the subcommand receiving unit 20 receives a subcommand supplied from ftp. The accepted subcommand is interpreted by the subcommand interpretation unit 21. As described above, certain existing subcommands are replaced with their own meanings, and some subcommands are added and associated with specific interpretations by the FTP transfer extension function. Instructions such as the output processing method and the number of printed sheets interpreted by the subcommand interpreter 21 are described in the control file 22 as control information of the job. In the control file 22, the user name received by the user name receiving unit 17, the IP address for specifying the client 3 that can be identified at the time of connection request, and the like are also described. As described above, the control file 22 is created in the same format as lpr.
[0066]
If the subcommand interpreting unit 21 recognizes a subcommand requesting drawing transmission, the capacity determining unit 23 is activated to determine whether or not the remaining disk capacity of the storage device 9 is equal to or more than the predetermined amount vm. If the remaining memory capacity is greater than or equal to the planned amount vm, a permission signal is output to the drawing data receiving unit 24. Notify disk full.
[0067]
When the subcommand interpreting unit 21 recognizes a subcommand requesting the job status, the status determination unit 26 is activated to read the management table 27 and to give an instruction for notifying the job status to ftp the notification unit 25. To do. An example of the management table 27 is shown in FIG. 5, and detailed functions are omitted, but the “status” includes the request contents described with reference to FIG. 9, such as a request for a job list.
[0068]
The drawing data received by the drawing data receiving unit 24 is described in the storage device 9, and the drawing data is expanded into a bitmap and then supplied to the printing unit 13 according to the control file 22 and printed out.
[0069]
【The invention's effect】
As is apparent from the above description, according to the invention of claim 1, it is possible to determine whether it is a general file transfer or a transfer of drawing data to be printed by the user name. According to the second aspect of the invention, an existing file transfer command can be used to realize an output processing function other than the original function of the command. Similarly, according to the third aspect of the invention, it is possible to add the transfer extension command for file transfer and execute the output process.
[0070]
According to the fourth and fifth aspects of the present invention, it is possible to interrupt the reception of the drawing data for the scheduled time when the free space becomes small and notify the client to that effect. Therefore, the client can recognize the reason why the drawing data cannot be transmitted. Since the free space is detected at a predetermined cycle, even when drawing data is transferred from a plurality of clients, it can be recognized that the free space is reduced before the disk is full. Furthermore, according to the invention of claim 6, printing can be executed by a control file that matches the line printer protocol.
As described above, according to the first to sixth aspects of the present invention, on the client side, for example, FTP, which is an existing file transfer protocol, simply transmits image data by imagining normal file transfer. Then, the image data thus transmitted can be received and processed as image data to be printed.
[0071]
As a result, if the output processing protocol and the file transfer protocol coexist, the drawing data transferred using the file transfer protocol is the same as the drawing data transferred using the output processing protocol. Because it can be handled and output, there is no need for a dedicated output processing application. That is, the drawing data can be integrated and managed.
[0072]
Furthermore, command interpretation can be set arbitrarily. For example, by providing a plurality of output processing methods, a plurality of logical interfaces can be provided, and drawing data can be processed in a printing environment suitable for the individual user or department. it can.
[Brief description of the drawings]
FIG. 1 is a functional block diagram of a main part of a printer apparatus according to an embodiment of the present invention.
FIG. 2 is a functional block diagram of main parts of a printer apparatus according to an embodiment of the present invention.
FIG. 3 is a block diagram illustrating a hardware configuration of a printer apparatus according to an embodiment of the present invention.
FIG. 4 is a diagram illustrating an example of a control file.
FIG. 5 is a diagram illustrating an example of a management table.
FIG. 6 is a flowchart showing an operation mode selection operation.
FIG. 7 is a flowchart showing a subcommand interpretation operation.
FIG. 8 is a flowchart showing a subcommand interpretation operation.
FIG. 9 is a flowchart showing an operation of command interpretation by a transfer extension function.
FIG. 10 is a flowchart of a drawing data writing operation.
FIG. 11 is a flowchart of a control file creation operation.
[Explanation of symbols]
DESCRIPTION OF SYMBOLS 3 ... Client, 9 ... Memory | storage device, 13 ... Printing part, 15 ... Connection request detection part, 16 ... User name request part, 17 ... User name reception part, 18 ... User file, 19 ... Mode selection part, 21 ... Subcommand Interpreting unit, 22 ... control file, 23 ... capacity discriminating unit

Claims (6)

作画データの記憶装置を有し、クライアントマシンから転送されて前記記憶装置に記述された作画データを解釈して印字データを作成し、該印字データを印字するように構成されたプリンタ装置において、
ユーザ名によって、ファイル転送用アプリケーションプロトコル機能で転送された作画データを出力する出力処理用モードおよびファイル転送用アプリケーションプロトコル機能でデータ転送するファイル転送モードのいずれかの動作モードを識別可能なパスワードユーザファイルと、
クライアントマシンからの接続要求に応答して該クライアントマシンにユーザ名を要求するユーザ名要求手段と、
クライアントマシンから供給された前記ユーザ名に対応する動作モードを前記パスワードファイルから入手し、該動作モードによって該接続要求を処理するための指示をするモード選択手段とを具備したことを特徴とするプリンタ装置。
In a printer device having a drawing data storage device, configured to generate printing data by interpreting drawing data transferred from a client machine and described in the storage device, and to print the printing data,
A password user file that can identify the operation mode of the output processing mode that outputs drawing data transferred by the file transfer application protocol function and the file transfer mode that transfers data by the file transfer application protocol function, depending on the user name. When,
User name request means for requesting a user name to the client machine in response to a connection request from the client machine;
A printer comprising: mode selection means for obtaining an operation mode corresponding to the user name supplied from a client machine from the password file and instructing to process the connection request according to the operation mode. apparatus.
ファイル転送用アプリケーションプロトコル機能で使用されるコマンドを前記出力処理用モードで使用するための予定の機能として読み替えるサブコマンド解釈手段を具備し、
前記出力処理用モードでは該読み替えられた機能に従ってクライアントマシンからの指示を処理するように構成したことを特徴とする請求項1記載のプリンタ装置。
Subcommand interpretation means for rereading a command used in the file transfer application protocol function as a function scheduled to be used in the output processing mode,
2. The printer apparatus according to claim 1, wherein in the output processing mode, an instruction from a client machine is processed in accordance with the replaced function.
ファイル転送用アプリケーションプロトコル機能に設けられている転送拡張コマンドに、前記出力処理用モードで使用するための予定の機能を割り付ける手段を具備し、
前記サブコマンド解釈手段は前記転送拡張コマンドの解釈機能をさらに有していることを特徴とした請求項2記載のプリンタ装置。
Means for assigning a function scheduled to be used in the output processing mode to a transfer extension command provided in an application protocol function for file transfer;
3. The printer apparatus according to claim 2, wherein the subcommand interpreting unit further has a function of interpreting the transfer extended command.
前記記憶装置の空き容量を予定周期で判別する記憶容量判別手段と、
前記記憶容量判別手段により、空き容量が予定値以下になったと判断された際に、作画データの転送を拒否する手段と、
前記転送の拒否をクライアントマシンに通知する手段とを具備するとともに、
前記記憶容量判別手段による判別動作は、クライアントマシンからの作画データ送信要求受付時および予定量の作画データを受信する毎に実行するように構成したことを特徴とする請求項1〜3記載のプリンタ装置。
Storage capacity determining means for determining the free capacity of the storage device in a predetermined cycle;
Means for rejecting the transfer of the drawing data when the storage capacity determining means determines that the free capacity is equal to or less than a predetermined value;
Means for notifying the client machine of the rejection of the transfer,
4. The printer according to claim 1, wherein the determination operation by the storage capacity determination means is executed at the time of receiving a drawing data transmission request from a client machine and whenever receiving a predetermined amount of drawing data. apparatus.
前記通知手段を、前記作画データの転送拒否後、予定時間内に前記空き容量が前記予定値に回復しないときに、クライアントマシンへの前記通知をするように構成したことを特徴とする請求項4記載のプリンタ装置。  5. The notification unit is configured to notify the client machine when the free space does not recover to the scheduled value within a scheduled time after transfer of the drawing data is refused. The printer device described. クライアントマシンから得た情報をラインプリンタプロトコルで使用される制御ファイルと同一フォーマットの制御ファイルに生成する制御ファイル生成手段と、
前記制御ファイルに基づいて前記作画データを出力する印字手段とを具備したことを特徴とする請求項1〜5記載のプリンタ装置。
Control file generating means for generating information obtained from the client machine into a control file having the same format as the control file used in the line printer protocol;
6. The printer apparatus according to claim 1, further comprising a printing unit that outputs the drawing data based on the control file.
JP06524195A 1995-03-01 1995-03-01 Printer device Expired - Fee Related JP3755541B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP06524195A JP3755541B2 (en) 1995-03-01 1995-03-01 Printer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP06524195A JP3755541B2 (en) 1995-03-01 1995-03-01 Printer device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2005212594A Division JP2005322272A (en) 2005-07-22 2005-07-22 Printer device and system including it

Publications (2)

Publication Number Publication Date
JPH08234934A JPH08234934A (en) 1996-09-13
JP3755541B2 true JP3755541B2 (en) 2006-03-15

Family

ID=13281234

Family Applications (1)

Application Number Title Priority Date Filing Date
JP06524195A Expired - Fee Related JP3755541B2 (en) 1995-03-01 1995-03-01 Printer device

Country Status (1)

Country Link
JP (1) JP3755541B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000357131A (en) 1999-06-16 2000-12-26 Matsushita Electric Ind Co Ltd Electronic equipment control system using communication protocol
US7099026B1 (en) 2000-10-17 2006-08-29 International Business Machines Corporation Unique printer pass code system and method
JP3744482B2 (en) 2002-09-25 2006-02-08 ブラザー工業株式会社 Image data transfer system, image reading apparatus, and program
JP5035583B2 (en) 2004-12-06 2012-09-26 ソニー株式会社 Recording apparatus and recording method, reproducing apparatus and reproducing method, recording / reproducing apparatus, recording / reproducing method, and program

Also Published As

Publication number Publication date
JPH08234934A (en) 1996-09-13

Similar Documents

Publication Publication Date Title
JP4240690B2 (en) Information processing apparatus, information processing method, information processing system, and recording medium
US7167260B2 (en) Control of distributed printers using virtual printer driver execute module
JP3484816B2 (en) Printing instruction device
JPH05241746A (en) Image processing system
JP2002200828A (en) Information processor, control method and storage medium
US8503022B2 (en) Restarting interrupted printing from external memory
EP1152317B1 (en) Information processing system, information processing device, control method thereof, memory media having stored programs thereof and program thereof
JP3755541B2 (en) Printer device
JP3649027B2 (en) Scanner control device, scanner control system, and control method
JP4072286B2 (en) Output control device, control method, storage medium
JP2005322272A (en) Printer device and system including it
JP3904008B2 (en) Scanner control device, scanner control system, and control method
JP3880435B2 (en) Printing system, information processing apparatus, information processing method, and control program
JP4591943B2 (en) Job processing device
JPH07187491A (en) Printing device
JP2009003621A (en) Print unit, and distributed print control unit
JPH11205497A (en) Image processor and image processing method
JP3697067B2 (en) Print control apparatus and print control method
JP3129679B2 (en) Printer
JP2003050687A (en) Print controller, print system, print control method, computer readable recording medium and computer program
JP2001260493A (en) Network printer system
US20030093489A1 (en) Network terminal device
JP3381637B2 (en) Printer, computer system, file management method, file access method, and recording medium
JP3511801B2 (en) Facsimile control system
JPH086746A (en) Printer device

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20041005

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041129

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20050608

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20050705

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20050721

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20051130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20051213

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20100106

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110106

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20120106

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120106

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130106

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130106

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20140106

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees