JP2004230849A - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP2004230849A
JP2004230849A JP2003024970A JP2003024970A JP2004230849A JP 2004230849 A JP2004230849 A JP 2004230849A JP 2003024970 A JP2003024970 A JP 2003024970A JP 2003024970 A JP2003024970 A JP 2003024970A JP 2004230849 A JP2004230849 A JP 2004230849A
Authority
JP
Japan
Prior art keywords
data
interface
printing
print
interfaces
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
JP2003024970A
Other languages
Japanese (ja)
Inventor
Yoshiyuki Shimamura
由之 嶋村
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2003024970A priority Critical patent/JP2004230849A/en
Publication of JP2004230849A publication Critical patent/JP2004230849A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To finish printing normally without providing a time-out after data supply from a host unit is interrupted. <P>SOLUTION: The image forming apparatus comprises a plurality of interfaces 231 and 232 for receiving data from the host unit including at least one interface 231 for which the start and end of communication are determined on an interface protocol, a print section 244 for printing data inputted through any one of the plurality of interfaces, and a control section 230 performing printing of data described by character codes inputted from any one of the plurality of interfaces only when it is inputted through the interface for which the start and end of communication are determined on the interface protocol. <P>COPYRIGHT: (C)2004,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、複数のインターフェースでホスト装置に接続することのできる画像形成装置に関するものである。
【0002】
【従来の技術】
一般に昨今の記録装置は専用のドライバをホスト装置内に組み込んであり、その専用ドライバが作成するプリントデータを印刷するように制御されている。このような記録装置は記録装置専用の制御コマンドに従って動作すれば正常に印刷を終了することが出来る。
【0003】
しかしながら、PDA、携帯電話等の携帯端末では各種の記録装置のための専用ドライバを持つことは難しく、テキストファイルのように文字コードでかかれたデータしか扱えないのが普通である。
【0004】
【特許文献1】
特開平9−30081号公報
【特許文献2】
特公平7−53461号公報
【発明が解決しようとする課題】
そこで、テキストファイルのようなデータを印刷する記録装置では、テキストファイルのようなデータには記録装置専用の制御コマンドが含まれていないので、テキストデータのサイズがわからず、印刷を終了するタイミングを、特開平9−30081号公報(特許文献1)や特公平7−53461号公報(特許文献2)に示されるようにホスト装置からのデータが途切れてからタイムアウトを設けたり、タイムアウト時間を可変にしたりする工夫をして設定する必要があった。
【0005】
それでも、タイムアウトを設けるとそのタイムアウト分だけ記録装置が停止状態になりスムースな記録動作が出来なくなったり、タイムアウトの時間を可変にしようとすればユーザの手を煩わすことになり、操作が煩雑になったりしていた。
【0006】
しかしながら、インターフェースによっては、特にワイヤレスインターフェースでは、印刷を行おうとする毎にホスト装置と記録装置の間でリンクを張り、印刷データの送信が終了すればリンクを切るので印刷データ送信の開始と終了が簡単にわかる仕組みになっている。
【0007】
また、ワイヤレスインターフェース以外のインターフェースでは、前述したようにテキストファイルのような印刷データでは印刷データの送信の終了が判断できないが、最近ではそのようなインターフェースを介して出力される印刷データは専用のドライバを介して専用の制御コマンドと共に出力されるのがほとんどであるため、制御コマンドに従って印刷を行えば良いようになっている。
【0008】
従って、本発明は上述した課題に鑑みてなされたものであり、その目的は、ホスト装置からのデータが途切れてからタイムアウトを設けなくても、正常に印刷を終了することができるようにすることである。
【0009】
【課題を解決するための手段】
上述した課題を解決し、目的を達成するために、本発明に係わる画像形成装置は、ホスト装置からデータを受け取るための複数のインターフェースであって、インターフェースプロトコル上で通信の始まりと終わりが決定される少なくとも1つのインターフェースを含む複数のインターフェースと、前記複数のインターフェースのいずれかを介して入力されたデータを印刷するための印刷手段と、前記複数のインターフェースのいずれかから、文字コードで記述されたデータが入力される場合に、前記文字コードで記述されたデータが前記インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースを介して入力された場合のみ印刷を実行させる制御手段と、を有することを特徴とする。
【0010】
【発明の実施の形態】
以下、本発明の好適な一実施形態について説明する。
【0011】
まず、本実施形態の概要について説明する。
【0012】
本実施形態の画像形成装置は、ホスト装置からデータを受け取るための複数のインターフェースであって、インターフェースプロトコル上で通信の始まりと終わりが決定される少なくとも1つのインターフェースを含む複数のインターフェースと、前記複数のインターフェースのいずれかを介して入力されたデータを印刷するための印刷手段と、前記複数のインターフェースのいずれかから、文字コードで記述されたデータが入力される場合に、前記文字コードで記述されたデータが前記インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースを介して入力された場合のみ印刷を実行させる制御手段と、を有することを特徴とする。
【0013】
また、本実施形態の画像形成装置において、前記インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースがワイヤレスインターフェースであることを特徴とする。
【0014】
また、本実施形態の画像形成装置において、前記制御手段は、前記文字コードで記述されたデータが前記複数のインターフェースのうちインターフェースプロトコル上で通信の始まりと終わりが決定されないインターフェースを介して入力された場合には、印刷を実行させずに印刷動作を終了させることを特徴とする。
【0015】
また、本実施形態の画像形成装置の制御方法は、ホスト装置からデータを受け取るための複数のインターフェースであって、インターフェースプロトコル上で通信の始まりと終わりが決定される少なくとも1つのインターフェースを含む複数のインターフェースと、前記複数のインターフェースのいずれかを介して入力されたデータを印刷するための印刷手段とを有する画像形成装置を制御する方法であって、前記複数のインターフェースのいずれかから、文字コードで記述されたデータが入力される場合に、前記文字コードで記述されたデータが前記インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースを介して入力された場合のみ印刷を実行させることを特徴とする。
【0016】
また、本実施形態の画像形成装置の制御方法において、前記インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースがワイヤレスインターフェースであることを特徴とする。
【0017】
また、本実施形態の画像形成装置の制御方法において、前記文字コードで記述されたデータが前記複数のインターフェースのうちインターフェースプロトコル上で通信の始まりと終わりが決定されないインターフェースを介して入力された場合には、印刷を実行させずに印刷動作を終了させることを特徴とする。
【0018】
また、本実施形態のプログラムは、上記の制御方法をコンピュータに実行させることを特徴とする。
【0019】
また、本実施形態の記憶媒体は、上記のプログラムをコンピュータ読み取り可能に記憶したことを特徴とする。
【0020】
以下、本発明の一実施形態について具体的に説明する。
【0021】
図1は本発明の実施の形態による画像形成装置の全体構成を示す斜視図であり、画像形成装置であるところのインクジェットプリンタ、バッテリーを内蔵しプリンタ本体に着脱可能な充電装置であるところのバッテリーチャージャー、両者を取り付けた状態で縦置きに収容するための置き台であるところのクレイドルを示す。なお、このインクジェットプリンタで記録する記録媒体として紙を例にとって説明するが、本発明はこれに限らず、記録可能なシート状の媒体ならばどれでも構わない。
【0022】
図1において、インクジェットプリンタ800の外観は、上ケース801、下ケース802、給紙カバー803、排紙口カバー804によって構成された一体シェル構造であり、プリンタとして非使用時(据え置き時、携帯時など)は、この形態をとるものである。またインクジェットプリンタ800の側面には、電源であるところのACアダプターケーブルを差し込むDCinジャック(直流電源入力用ジャック)817とUSBケーブルを接続するためのI/Fコネクタ(インターフェースコネクタ)815が設けられている。給紙カバー803は記録時にプリンタ本体に対して開いて紙などの記録シートを載せるための記録シート供給トレイである。
【0023】
次に、バッテリーチャージャー900の外観は、メインケース901、カバーケース902、バッテリー蓋903によって構成され、バッテリー蓋903を外してメインケース901を開口することにより充電池であるところのバッテリーパックを取り外すことが可能である。
【0024】
また、バッテリーチャージャー900の、インクジェットプリンタ800との装着面(接続面)には、電気的に接続するための本体用コネクタ904と、機械的に取り付け及び固定するための固定ビス905,906を有し、図1の矢印A方向にプリンタ本体に接続することによってバッテリー駆動を行うことができる。さらにバッテリーチャージャー900の天面には、バッテリーの充電状態を示す充電表示部909を有し、バッテリーチャージャー900の側面には、電源であるところのACアダプターケーブルを差し込むCHG−DCinジャック907と、バッテリーチャージャー900を取り付けたときにインクジェットプリンタ800のDCinジャック817を覆うための目隠し板908が設けられている。
【0025】
クレイドル950は、インクジェットプリンタ800にバッテリーチャージャー900を取り付けた状態で、図1の矢印B方向に挿入することにより置き台として機能する。
【0026】
図2はインクジェットプリンタ800にバッテリーチャージャー900を装着した状態を、プリンタ背面側で且つプリンタ天面側を斜め上から見た斜視図である。
【0027】
図2に示すように、インクジェットプリンタ800の背面にバッテリーチャージャー900を取り付け、固定ビス905,906で固定することにより、バッテリー駆動可能なプリンタとなる。
【0028】
また、前述したように、バッテリーチャージャー900に設けられた目隠し板908により、インクジェットプリンタ800のDCinジャック817を覆うように構成されている。このため使用者は、バッテリーチャージャー900の取り付け時には、ACアダプターケーブルを間違いなくバッテリーチャージャー900のCHG−DCinジャック907側に差すことになるので、誤挿入を防止することができる。
【0029】
バッテリーチャージャー900の背面には、メインケース901に設けられた4ヶ所の足部901a,901b,901c,901dが設けられている。また、同背面には、クレイドル950に取り付けたときに電気的にコンタクトするための接点部910a,910b,910cが設けられている。
【0030】
さらに図2に示すように、バッテリーチャージャー900の充電表示部909は、インクジェットプリンタ800の装着および使用時に視認しやすい天面で、且つ給紙カバー803を開いていた時にも視認を遮られない位置に配されている。
【0031】
図3はインクジェット記録装置の斜視図である。
【0032】
図3において、105は記録ヘッドであり、キャリッジ104上に搭載されて走査ガイド103に沿って長手方向に往復運動可能となっている。記録ヘッドより吐出されたインクは、記録ヘッドと微小な間隔をおいて、プラテンローラ101に記録面を規制された被記録材(被記録媒体)102に到達し、その上に画像を形成する。
【0033】
記録ヘッドには、フレキシブルケーブル119を介して画像データに応じて吐出信号が供給される。なお、114はキャリッジ104を走査ガイド103に沿って走査させるためのキャリッジモータである。113はモータ114の駆動力をキャリッジ104に伝達するベルトである。また、118はプラテンローラ101に結合して被記録材102を搬送させるための搬送モータである。
【0034】
図4は一実施形態の画像形成装置(記録装置)のブロック構成を示す図である。
【0035】
230はマイクロプロセッサユニット、233は記録装置の制御データや文字コードをイメージデータに変換するフォントや後述する本実施形態のプログラムを格納したROM、234はプログラム実行時にワークエリアとして用いられたり、印刷データ等を記憶しておくためのRAMである。マイクロプロセッサ230は、ペーパエンドセンサ240、キャリッジホームセンサ243、回復系センサ237等のセンサにより記録用紙の有無、キャリッジの位置、回復系ユニットの状態を確認しながら、搬送モータドライバ238、キャリッジモータドライバ241、回復系モータドライバ235に駆動パルスを与え、搬送モータ239(図3の118に対応)、キャリッジモータ242(図3の114に対応)、回復系モータ236を制御する。231、232はインターフェースAおよびインターフェースBであり、不図示のホストコンピュータや携帯電子機器からは印刷するファイルや印刷のための命令や印刷データがこのインタフェースを介してマイクロプロセッサ230に送られる。本実施形態ではインターフェースAを赤外線インターフェースとしインターフェースBをセントロインターフェースとする。そして、インターフェースAは、インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースである。それぞれのインターフェースのプロトコルの管理はマイクロプロセッサ230で行われる。244は記録ヘッドで、マイクロプロセッサ230により制御されながら、印刷データを記録する。
【0036】
次に図5、図6のフローチャートを参照して、本実施形態の記録装置(印刷装置)の処理を説明する。
【0037】
図5は、インターフェース部の処理を示したフローチャートである。
【0038】
まず、ステップS0で印刷モードを未確定に初期化する。印刷モードとは図6に示す印字データを処理するプログラムで参照されるフラグで、ホスト装置より送られてきたデータが本実施形態の記録装置専用の制御コマンドとイメージデータで構成されたプリントデータであるか、テキストファイル等の文字コードで記述されたデータであるかを示すもので、その印字モードが確定していない場合には未確定に設定されるものである。なお、本実施形態の記録装置専用の制御コマンドには本実施形態の記録装置専用の印刷スタートコマンドや印刷エンドコマンド等がある。
【0039】
次に、ステップS1でインターフェースAもしくはインターフェースBにホスト装置からデータが送られてくるまで待ち、送られてくればステップS2に進み、インターフェースAもしくはインターフェースBのどちらのインターフェースからデータが送られてきたかを判断し、インターフェースAからであればステップS3に進み、IFモードをAに設定する。
【0040】
インターフェースAは赤外線インターフェースなのでホスト装置からのデータはパケット形式で送られてくる。そして、ステップS5に進みパケット形式のデータを受信し、ステップS6で、受信したパケットデータのヘッダからパケットデータが通信をコントロールする制御パケットか印字データパケットかを判断する。印字データパケットであればデータイベントフラグをセットする。データイベントフラグは、図6に示す印字データを処理するプログラムを動作させるためのものである。
【0041】
その後、ステップS11で次のパケットをホスト装置に要求して、ステップS5に戻りホスト装置からのパケットデータを待つ。
【0042】
また、ステップS6で制御パケットであればステップS7でその制御パケットが通信を終了する切断パケットかどうかを判断し、切断パケットでなければステップS11と同様に次のパケットをホスト装置に要求して、ステップS5に戻る。また切断パケットであれば、印刷データがすべて送られたということなので、ステップS9に進み、データ終了フラグをセットし、ステップS14に進む。
【0043】
また、ステップS2でインターフェースBであればステップS4に進みIFモードをBに設定して、ステップS12でデータイベントフラグをセットする。そして、ステップS13で印刷終了フラグがONになるまで待ちONになればステップS14に進む。上記の印刷終了フラグは、図6に示す印字データを処理するプログラムでセットされる。最後にステップS14では印刷データが終了したので印刷モードを未確定にしたり、用紙があれば排紙するなどの印刷終了処理を行う。
【0044】
図6は印字データを処理するフローチャートである。
【0045】
図5に示したインターフェース部の処理でホスト装置より印刷データが送られてきたことを示すデータイベントフラグがセットされると図6に示す印字データを処理するプログラムが動作する。
【0046】
まずステップS100ではデータイベントフラグを待っている状態でデータイベントが発生するとステップS101に進み、印字モードが確定されているかどうかを判断し、未確定であればステップS102に進み、本実施形態の記録装置専用のドライバから送られてきたのであれば最初は印刷スタートコマンドなので、送られてきたデータがその印刷スタートコマンドであるかどうかを判断し、そうであればステップS103で印字モードを専用ドライバモードにセットし、そうでなければステップS104でテキストモードにセットする。
【0047】
そしてステップS105に進み印字モード確定フラグをセットしてステップS106に進む。そしてステップS106で図5で説明したIFモードを調べてA(赤外線インターフェース)がセットされていれば、ステップS107で印字モードを調べて、テキストモードであればステップS108に、専用ドライバモードであればステップS109に進む。
【0048】
またステップS106でIFモードがB(セントロインターフェース)であればステップS110で印字モードを調べてテキストモードであればステップS110に、専用ドライバモードであればステップS113に進む。
【0049】
ステップS108は、IFモードがA(赤外線インターフェース)で、印字モードがテキストモードであるときの印刷処理で、前述したパケットデータがなくなるまでテキストモードで印刷処理を行う。パケットデータがなくなればステップS108を抜け、ステップS114でデータイベントフラグをクリアして、ステップS100に戻り次のパケットによる印刷データを待つ。
【0050】
ステップS109は、IFモードがA(赤外線インターフェース)で、印字モードが専用ドライバモードであるときの印刷処理で、前述したパケットデータがなくなるまで専用ドライバモード印刷処理を行う。パケットデータがなくなればステップS109を抜け、前述したステップS114に進む。。
【0051】
ステップS111は、IFモードがB(セントロインターフェース)で、印字モードが専用ドライバモードであるときの印刷処理で、本実施形態の記録装置の専用ドライバからの印刷エンドコマンドが来るまで印刷処理を続行し、印刷エンドコマンドが来たら印刷終了フラグをセットして図5のステップS13のループを抜けさせる。そして前述したステップS114に進む。
【0052】
ステップS113は、IFモードがB(セントロインターフェース)で、印字モードがテキストモードであるときの処理で、ホスト装置より送られてくるデータを捨てて、前述したステップS114に進む。
【0053】
以上説明したように、本実施形態によれば、テキストファイル等の文字コードで記述されたデータがインターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースから入力された場合のみ印刷を実行し、インターフェースプロトコル上で通信の始まりと終わりが決定されないインターフェースから入力された場合には、印刷を実行せずに終了するようにすることにより、ホスト装置からのデータが途切れてからタイムアウトを設けるような処理を行なわなくても正常に印刷を終了することが可能となる。
【0054】
また、前記タイムアウト時間を設けることで、タイムアウト分だけ記録装置が停止状態になりスムースな記録動作が出来なくなったり、タイムアウトの時間を可変にすることによるユーザの手を煩わすことがなくなり操作が簡単になる。
【0055】
【他の実施形態】
また、各実施形態の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているオペレーティングシステム(OS)などが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0056】
さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。
【0057】
本発明を上記記憶媒体に適用する場合、その記憶媒体には、先に説明したフローチャートに対応するプログラムコードが格納されることになる。
【0058】
【発明の効果】
以上説明したように、本発明によれば、ホスト装置からのデータが途切れてからタイムアウトを設けなくても、正常に印刷を終了することができる。
【図面の簡単な説明】
【図1】本発明の画像形成装置の一つの実施形態であるインクジェットプリンタの全体構成を示す斜視図である。
【図2】図1に示したインクジェットプリンタにバッテリーチャージャーを装着した状態を示す斜視図である。
【図3】インクジェット記録装置の斜視図である。
【図4】本発明の画像形成装置の一実施形態のブロック図である。
【図5】インターフェース部の処理を示したフローチャートである。
【図6】印字データを処理するフローチャートである。
【符号の説明】
101 搬送ローラ
102 記録媒体
103 ガイドレール
104 キャリッジ
105 カートリッジ
113 キャリッジ駆動ベルト
114 キャリッジ駆動モータ
118 搬送モータ
119 フレキシブルケーブル
800 インクジェットプリンタ
801 上ケース
802 下ケース
803 給紙カバー
804 排紙口カバー
815 I/Fコネクタ
817 DCinジャック
900 バッテリーチャージャー
901 メインケース
901a、901b、901c、901d 足部
902 カバーケース
903 バッテリー蓋
904 本体用コネクタ
905、906 固定ビス
907 CHG−DCinジャック
908 目隠し板
909 充電表示部
910、910a、910b、910c 接点部
950 クレイドル
951 アッパーケース
951a 窓部
952 床面部材
944、955 CDL化粧板
956 CDL−DCinジャック
957 CDLゴム足
958、958a、958b、958c コンタクト端子部
959 シャッター部材
959a、959b、959c スリット部
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image forming apparatus that can be connected to a host device through a plurality of interfaces.
[0002]
[Prior art]
In general, recent recording apparatuses incorporate a dedicated driver in a host apparatus, and are controlled to print print data created by the dedicated driver. If such a printing apparatus operates according to a control command dedicated to the printing apparatus, printing can be completed normally.
[0003]
However, it is difficult for a portable terminal such as a PDA or a mobile phone to have dedicated drivers for various recording devices, and it is generally possible to handle only data written in character codes such as text files.
[0004]
[Patent Document 1]
Japanese Patent Application Laid-Open No. 9-30081 [Patent Document 2]
Japanese Patent Publication No. 7-53461 [Problems to be Solved by the Invention]
Therefore, in a recording device that prints data such as a text file, since the data such as a text file does not include a control command dedicated to the recording device, the size of the text data is not known, and the timing for ending printing is determined. As disclosed in Japanese Patent Application Laid-Open No. 9-30081 (Patent Document 1) and Japanese Patent Publication No. Hei 7-53461 (Patent Document 2), a timeout is provided after data from the host device is interrupted, or the timeout time is made variable. It was necessary to set it by devising it.
[0005]
Nevertheless, if a timeout is provided, the recording apparatus is stopped for the timeout, making it impossible to perform a smooth recording operation. Or was.
[0006]
However, depending on the interface, especially in the wireless interface, a link is established between the host device and the recording device every time printing is performed, and the link is cut off when the transmission of the print data is completed. It is easy to understand.
[0007]
Also, with an interface other than the wireless interface, it is impossible to determine the end of print data transmission with print data such as a text file as described above, but recently print data output via such an interface is provided by a dedicated driver. In most cases, the data is output together with a dedicated control command via the printer, so that printing can be performed in accordance with the control command.
[0008]
Therefore, the present invention has been made in view of the above-described problems, and an object of the present invention is to enable printing to be normally completed without providing a timeout after data from the host device is interrupted. It is.
[0009]
[Means for Solving the Problems]
In order to solve the above-described problems and achieve the object, an image forming apparatus according to the present invention includes a plurality of interfaces for receiving data from a host device, and the start and end of communication are determined on an interface protocol. A plurality of interfaces including at least one interface, printing means for printing data input via any of the plurality of interfaces, and a character code described from any of the plurality of interfaces. And control means for executing printing only when the data described in the character code is input through an interface for determining the start and end of communication on the interface protocol when data is input. It is characterized by the following.
[0010]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, a preferred embodiment of the present invention will be described.
[0011]
First, an outline of the present embodiment will be described.
[0012]
The image forming apparatus according to the present embodiment includes a plurality of interfaces for receiving data from a host device, including a plurality of interfaces including at least one interface for determining start and end of communication on an interface protocol. A printing unit for printing data input through any of the interfaces, and when data described in a character code is input from any of the plurality of interfaces, the data is described in the character code. Control means for executing printing only when the input data is input via an interface for determining the start and end of communication on the interface protocol.
[0013]
Further, in the image forming apparatus according to the present embodiment, the interface for determining the start and end of communication on the interface protocol is a wireless interface.
[0014]
In the image forming apparatus according to the present embodiment, the control unit may be configured such that the data described in the character code is input via an interface of the plurality of interfaces, from which the start and end of communication are not determined on an interface protocol. In this case, the printing operation is terminated without executing the printing.
[0015]
Also, the control method of the image forming apparatus according to the present embodiment includes a plurality of interfaces for receiving data from the host device, the plurality of interfaces including at least one interface for determining the start and end of communication on an interface protocol. An interface, and a method for controlling an image forming apparatus having a printing unit for printing data input via any of the plurality of interfaces, wherein a character code is used from any of the plurality of interfaces. When the described data is input, printing is executed only when the data described in the character code is input via an interface that determines the start and end of communication on the interface protocol. And
[0016]
Further, in the control method of the image forming apparatus according to the present embodiment, an interface for determining a start and an end of communication on the interface protocol is a wireless interface.
[0017]
Further, in the control method of the image forming apparatus according to the present embodiment, when the data described in the character code is input through an interface in which the start and end of communication are not determined on the interface protocol among the plurality of interfaces. Is characterized by terminating the printing operation without executing the printing.
[0018]
The program according to the present embodiment causes a computer to execute the above control method.
[0019]
Further, the storage medium of the present embodiment is characterized in that the above-mentioned program is stored in a computer-readable manner.
[0020]
Hereinafter, one embodiment of the present invention will be specifically described.
[0021]
FIG. 1 is a perspective view showing the overall configuration of an image forming apparatus according to an embodiment of the present invention. The image forming apparatus is an ink jet printer, and the battery is a charging device that has a built-in battery and is detachable from the printer body. Shows the cradle, which is a stand for vertically storing the charger and both with the two attached. In addition, although a paper is described as an example of a recording medium to be recorded by the inkjet printer, the present invention is not limited to this, and any recordable sheet-shaped medium may be used.
[0022]
In FIG. 1, the appearance of the ink jet printer 800 has an integral shell structure including an upper case 801, a lower case 802, a paper feed cover 803, and a paper outlet cover 804. ) Take this form. On the side of the ink jet printer 800, a DCin jack (DC power input jack) 817 for inserting an AC adapter cable, which is a power supply, and an I / F connector (interface connector) 815 for connecting a USB cable are provided. I have. A paper supply cover 803 is a recording sheet supply tray for opening a recording sheet such as paper by opening to the printer body during recording.
[0023]
Next, the external appearance of the battery charger 900 is composed of a main case 901, a cover case 902, and a battery cover 903. The battery pack, which is a rechargeable battery, is removed by removing the battery cover 903 and opening the main case 901. Is possible.
[0024]
The mounting surface (connection surface) of the battery charger 900 with the ink jet printer 800 has a main body connector 904 for electrical connection and fixing screws 905 and 906 for mechanically attaching and fixing. The battery can be driven by connecting to the printer main body in the direction of arrow A in FIG. Further, on the top surface of the battery charger 900, there is provided a charge display portion 909 for indicating the state of charge of the battery. On the side surface of the battery charger 900, a CHG-DCin jack 907 for inserting an AC adapter cable as a power supply, A blind plate 908 for covering the DCin jack 817 of the inkjet printer 800 when the charger 900 is attached is provided.
[0025]
The cradle 950 functions as a table when inserted in the direction of arrow B in FIG. 1 with the battery charger 900 attached to the inkjet printer 800.
[0026]
FIG. 2 is a perspective view of a state in which the battery charger 900 is mounted on the ink jet printer 800, as viewed obliquely from the rear side of the printer and the top side of the printer.
[0027]
As shown in FIG. 2, a battery charger 900 is attached to the back of the ink jet printer 800 and fixed with fixing screws 905 and 906, so that the printer can be driven by a battery.
[0028]
As described above, the blind plate 908 provided on the battery charger 900 covers the DCin jack 817 of the inkjet printer 800. Therefore, when the user attaches the battery charger 900, he or she must insert the AC adapter cable into the CHG-DCin jack 907 of the battery charger 900, thereby preventing erroneous insertion.
[0029]
On the back surface of the battery charger 900, four feet 901a, 901b, 901c, and 901d provided on the main case 901 are provided. Further, on the rear surface, contact portions 910a, 910b, and 910c for electrically contacting when attached to the cradle 950 are provided.
[0030]
Further, as shown in FIG. 2, the charging display section 909 of the battery charger 900 is located on a top surface that is easily visible when the inkjet printer 800 is mounted and used, and is not obstructed even when the paper feed cover 803 is opened. It is arranged in.
[0031]
FIG. 3 is a perspective view of the ink jet recording apparatus.
[0032]
In FIG. 3, a recording head 105 is mounted on a carriage 104 and is capable of reciprocating in a longitudinal direction along a scanning guide 103. The ink discharged from the recording head reaches the recording material (recording medium) 102 whose recording surface is regulated by the platen roller 101 at a minute interval from the recording head, and forms an image thereon.
[0033]
An ejection signal is supplied to the print head via the flexible cable 119 in accordance with image data. Reference numeral 114 denotes a carriage motor for scanning the carriage 104 along the scanning guide 103. A belt 113 transmits the driving force of the motor 114 to the carriage 104. Reference numeral 118 denotes a transport motor coupled to the platen roller 101 to transport the recording material 102.
[0034]
FIG. 4 is a diagram illustrating a block configuration of an image forming apparatus (recording apparatus) according to an embodiment.
[0035]
230 is a microprocessor unit, 233 is a ROM storing control data of the printing apparatus and a font for converting character codes into image data, and a program of the present embodiment described later. 234 is used as a work area when executing the program, Etc. are stored in the RAM. The microprocessor 230 checks the presence / absence of recording paper, the position of the carriage, and the state of the recovery system unit using sensors such as the paper end sensor 240, the carriage home sensor 243, and the recovery system sensor 237, while checking the conveyance motor driver 238 and the carriage motor driver. 241, a drive pulse is given to the recovery motor driver 235 to control the transport motor 239 (corresponding to 118 in FIG. 3), the carriage motor 242 (corresponding to 114 in FIG. 3), and the recovery motor 236. Reference numerals 231 and 232 denote an interface A and an interface B. A host computer or a portable electronic device (not shown) sends a file to be printed, a command for printing, and print data to the microprocessor 230 via this interface. In this embodiment, the interface A is an infrared interface, and the interface B is a centro interface. The interface A is an interface for determining the start and end of communication on the interface protocol. The management of the protocol of each interface is performed by the microprocessor 230. A recording head 244 records print data while being controlled by the microprocessor 230.
[0036]
Next, processing of the recording apparatus (printing apparatus) of the present embodiment will be described with reference to the flowcharts of FIGS.
[0037]
FIG. 5 is a flowchart showing the processing of the interface unit.
[0038]
First, in step S0, the print mode is initialized to undetermined. The print mode is a flag referred to by the program for processing print data shown in FIG. 6, and the data sent from the host device is print data composed of control commands and image data dedicated to the recording apparatus of the present embodiment. Indicates whether the print mode is present or data described by a character code such as a text file. If the print mode is not determined, it is set to undetermined. Note that the control commands dedicated to the printing apparatus of the present embodiment include a print start command and a printing end command dedicated to the printing apparatus of the present embodiment.
[0039]
Next, in step S1, wait until data is sent from the host device to the interface A or interface B, and if so, proceed to step S2 to determine whether data is sent from the interface A or the interface B. Is determined, and if it is from the interface A, the process proceeds to step S3, and the IF mode is set to A.
[0040]
Since the interface A is an infrared interface, data from the host device is sent in a packet format. Then, the process proceeds to step S5 to receive the data in the packet format. In step S6, it is determined from the header of the received packet data whether the packet data is a control packet for controlling communication or a print data packet. If it is a print data packet, the data event flag is set. The data event flag is for operating a program for processing print data shown in FIG.
[0041]
Then, in step S11, the next packet is requested from the host device, and the process returns to step S5 to wait for packet data from the host device.
[0042]
If it is a control packet in step S6, it is determined in step S7 whether the control packet is a disconnection packet for terminating communication. If not, a request for the next packet to the host device is made in the same manner as in step S11. It returns to step S5. If it is a disconnection packet, it means that all the print data has been sent, so the process proceeds to step S9, where a data end flag is set, and the process proceeds to step S14.
[0043]
If the interface is B in step S2, the flow advances to step S4 to set the IF mode to B, and the data event flag is set in step S12. Then, in step S13, the process waits until the print end flag is turned on. The print end flag is set by a program for processing print data shown in FIG. Finally, in step S14, since the print data has been completed, a print end process such as setting the print mode to undetermined or ejecting the paper if any exists.
[0044]
FIG. 6 is a flowchart for processing print data.
[0045]
When the data event flag indicating that the print data has been sent from the host device in the processing of the interface unit shown in FIG. 5 is set, the program for processing the print data shown in FIG. 6 operates.
[0046]
First, in step S100, if a data event occurs while waiting for the data event flag, the flow advances to step S101 to determine whether or not the print mode has been determined. If it is sent from the device-dedicated driver, it is the print start command at first, so it is determined whether or not the sent data is the print start command. If so, the print mode is changed to the dedicated driver mode in step S103. Otherwise, the text mode is set in step S104.
[0047]
Then, the process proceeds to step S105, where the print mode determination flag is set, and the process proceeds to step S106. In step S106, the IF mode described with reference to FIG. 5 is checked, and if A (infrared interface) is set, the print mode is checked in step S107. Proceed to step S109.
[0048]
If the IF mode is B (centro interface) in step S106, the print mode is checked in step S110. If the print mode is the text mode, the process proceeds to step S110. If the IF mode is the dedicated driver mode, the process proceeds to step S113.
[0049]
Step S108 is a printing process when the IF mode is A (infrared interface) and the printing mode is the text mode. The printing process is performed in the text mode until the above-mentioned packet data is exhausted. If there is no more packet data, the process exits step S108, clears the data event flag in step S114, and returns to step S100 to wait for print data of the next packet.
[0050]
Step S109 is a printing process when the IF mode is A (infrared interface) and the printing mode is the dedicated driver mode. The dedicated driver mode printing process is performed until there is no packet data described above. If there is no more packet data, the process exits from step S109 and proceeds to step S114 described above. .
[0051]
Step S111 is print processing when the IF mode is B (Centro interface) and the print mode is the dedicated driver mode. The print processing is continued until a print end command from the dedicated driver of the recording apparatus of the present embodiment is received. When a print end command is received, a print end flag is set and the loop of step S13 in FIG. 5 is exited. Then, the process proceeds to step S114 described above.
[0052]
Step S113 is a process when the IF mode is B (Centro interface) and the print mode is the text mode. In step S113, the data sent from the host device is discarded, and the process proceeds to step S114.
[0053]
As described above, according to the present embodiment, printing is executed only when data described in a character code such as a text file is input from an interface where the start and end of communication are determined on an interface protocol. When input is made from an interface for which the start and end of communication are not determined on the interface protocol, the processing is ended without printing, so that a timeout is set after the data from the host device is interrupted. , It is possible to end printing normally.
[0054]
In addition, by providing the timeout period, the recording device is stopped by the timeout period, so that a smooth recording operation cannot be performed. Become.
[0055]
[Other embodiments]
Further, an object of each embodiment is to supply a storage medium (or a recording medium) in which a program code of software for realizing the functions of the above-described embodiments is recorded to a system or an apparatus, and a computer (or CPU) of the system or the apparatus. And MPU) reads and executes the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the function of the above-described embodiment, and the storage medium storing the program code constitutes the present invention. When the computer executes the readout program code, not only the functions of the above-described embodiments are realized, but also an operating system (OS) running on the computer based on the instruction of the program code. It goes without saying that a part or all of the actual processing is performed and the functions of the above-described embodiments are realized by the processing.
[0056]
Further, after the program code read from the storage medium is written into a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function of the program is performed based on the instruction of the program code. It goes without saying that the CPU included in the expansion card or the function expansion unit performs part or all of the actual processing, and the processing realizes the functions of the above-described embodiments.
[0057]
When the present invention is applied to the storage medium, the storage medium stores program codes corresponding to the flowcharts described above.
[0058]
【The invention's effect】
As described above, according to the present invention, printing can be normally completed without providing a timeout after data from the host device is interrupted.
[Brief description of the drawings]
FIG. 1 is a perspective view showing an overall configuration of an ink jet printer which is one embodiment of an image forming apparatus of the present invention.
FIG. 2 is a perspective view showing a state in which a battery charger is mounted on the ink jet printer shown in FIG.
FIG. 3 is a perspective view of the ink jet recording apparatus.
FIG. 4 is a block diagram of an embodiment of the image forming apparatus of the present invention.
FIG. 5 is a flowchart illustrating processing of an interface unit.
FIG. 6 is a flowchart for processing print data.
[Explanation of symbols]
101 transport roller 102 recording medium 103 guide rail 104 carriage 105 cartridge 113 carriage drive belt 114 carriage drive motor 118 transport motor 119 flexible cable 800 inkjet printer 801 upper case 802 lower case 803 paper feed cover 804 paper outlet cover 815 I / F connector 817 DCin jack 900 Battery charger 901 Main case 901a, 901b, 901c, 901d Foot 902 Cover case 903 Battery lid 904 Body connector 905, 906 Fixing screw 907 CHG-DCin jack 908 Blind plate 909 Charging indicator 910, 910a, 910b , 910c Contact point 950 Cradle 951 Upper case 951a Window 952 Floor member 944, 955 CDL decorative board 956 CDL-DCin jack 957 CDL rubber feet 958, 958a, 958b, 958c Contact terminal 959 Shutter members 959a, 959b, 959c Slit

Claims (1)

ホスト装置からデータを受け取るための複数のインターフェースであって、インターフェースプロトコル上で通信の始まりと終わりが決定される少なくとも1つのインターフェースを含む複数のインターフェースと、
前記複数のインターフェースのいずれかを介して入力されたデータを印刷するための印刷手段と、
前記複数のインターフェースのいずれかから、文字コードで記述されたデータが入力される場合に、前記文字コードで記述されたデータが前記インターフェースプロトコル上で通信の始まりと終わりが決定されるインターフェースを介して入力された場合のみ印刷を実行させる制御手段と、
を有することを特徴とする画像形成装置。
A plurality of interfaces for receiving data from the host device, the plurality of interfaces including at least one interface on which start and end of communication are determined on an interface protocol;
Printing means for printing data input via any of the plurality of interfaces,
When data described in a character code is input from any of the plurality of interfaces, the data described in the character code is transmitted through an interface where the start and end of communication are determined on the interface protocol. Control means for executing printing only when input is performed;
An image forming apparatus comprising:
JP2003024970A 2003-01-31 2003-01-31 Image forming apparatus Withdrawn JP2004230849A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003024970A JP2004230849A (en) 2003-01-31 2003-01-31 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003024970A JP2004230849A (en) 2003-01-31 2003-01-31 Image forming apparatus

Publications (1)

Publication Number Publication Date
JP2004230849A true JP2004230849A (en) 2004-08-19

Family

ID=32953363

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003024970A Withdrawn JP2004230849A (en) 2003-01-31 2003-01-31 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP2004230849A (en)

Similar Documents

Publication Publication Date Title
JP3666770B2 (en) Portable printer / fax machine
EP2275918B1 (en) Printer and printer control method
US7852503B2 (en) Digital camera and printer
KR100826265B1 (en) Printing apparatus and printer control method
JPH1058758A (en) Scanning printer
US10091381B2 (en) Image printing apparatus and method for controlling the image printing apparatus executable interruption print
JP4366088B2 (en) Battery remaining amount detection method and recording apparatus using the method
EP0675632A2 (en) Image recording apparatus and method therefor
JP2024041820A (en) Electronic device, control method, and program
JP2004230849A (en) Image forming apparatus
JP4366200B2 (en) Recording apparatus and reception buffer management method
US7255415B2 (en) Printing apparatus and printing apparatus control method
JP2000141822A (en) Control method for recorder and recording system
JP2006212899A (en) Digital image recording system, recording apparatus and digital image processing apparatus
JP2009113207A (en) Battery residual quantity sensing method
JP2006018466A (en) Electronic apparatus and power supply control method therefor
JP2013103352A (en) Thermal printer and program
JP2005250739A (en) Electronic device
JP4018514B2 (en) Recording apparatus, power supply control method, storage medium storing computer-readable program, and program
JPH09187964A (en) Image-forming apparatus, information-processing apparatus, system and controlling method therefor
JP7443074B2 (en) Information processing device and control method
JP4506069B2 (en) Printer
JP5772872B2 (en) Image recording apparatus and program
JP2994804B2 (en) Method of loading recording sheet into recording device
JP4497818B2 (en) Battery remaining amount detection method and recording apparatus using the method

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: 20060404