JP2004334443A - Firmware download method, firmware download system, and firmware download program - Google Patents

Firmware download method, firmware download system, and firmware download program Download PDF

Info

Publication number
JP2004334443A
JP2004334443A JP2003128334A JP2003128334A JP2004334443A JP 2004334443 A JP2004334443 A JP 2004334443A JP 2003128334 A JP2003128334 A JP 2003128334A JP 2003128334 A JP2003128334 A JP 2003128334A JP 2004334443 A JP2004334443 A JP 2004334443A
Authority
JP
Japan
Prior art keywords
printer
download
firmware
firmware data
host device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2003128334A
Other languages
Japanese (ja)
Inventor
仁煥 ▲鄭▼
Jinkan Tei
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2003128334A priority Critical patent/JP2004334443A/en
Publication of JP2004334443A publication Critical patent/JP2004334443A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Accessory Devices And Overall Control Thereof (AREA)
  • Record Information Processing For Printing (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a firmware download method, a firmware download system, and a firmware download program that can easily download firmware data and have no influence on printing processing. <P>SOLUTION: A host PC 10, when detecting connection for two-way communication to a printer 20 and being in a download mode for downloading firmware data, downloads firmware data to the printer 20 to write them into a flash ROM 28 of the printer 20. The download mode is set, for example, according to an operation of installing a printer driver. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、ファームウェアダウンロードシステム、ファームウェアダウンロード方法及びファームウェアダウンロードプログラムに関するものである。
【0002】
【従来の技術】
従来、プリンタにファームウェアをダウンロードするためには、そのプリンタに搭載されているROM自体を取り替えなければならず、プリンタを工場やサービスセンターに持ち込まなければならないなどの手間がかかっていた。また、プリンタの提供側は、仕向け毎に異なるファームウェアを作成して提供する必要があるため、ROMの差し替えをプリンタ毎に行った後、出荷していた。
【0003】
しかし、近年 電気的に書き替え可能な不揮発性メモリ(例えば、フラッシュROM)の普及に伴い、データの書き替えによりフラッシュROMに格納されているファームウェアデータを変更することが可能なプリンタが開発されている。このため、プログラムの不具合等の修正や新機能の追加等も上記ROM自体の差し替えをする必要がなくなり、比較的簡単な操作で行うことができるようになっている。
【0004】
フラッシュROMを用いたファームウェアの更新方式として、以下に示す方式が提案されている。この方式では、ファームウェアデータの一部又は全部をホストPCがプリンタドライバ内に持ち、印刷処理を行う度にプリンタドライバがプリンタのファームウェアデータの状態とアプリケーションが要求するファームウェアデータとを比較する。そして、その比較に基づいてホストPCは、必要なモジュールだけをプリンタ側にダウンロードする(例えば、特許文献1参照。)。
【0005】
ところで、プリンタを制御するためにホストPCにインストールされるプリンタドライバも仕向けごとに提供され、仕向け先のユーザ等は例えばCD−ROMに記憶されているプリンタドライバをホストPCにインストールしている。
【0006】
【特許文献1】
特開2001−67228号公報(明細書の段落[0026]〜[0050]、第2図)
【0007】
【発明が解決しようとする課題】
ところが、特許文献1に記載の方式では、印刷処理を行う度にファームウェアデータの更新の必要性を判断して、必要であれば更新を行う。このため、ある程度の印刷速度の確保は可能であるが、やはり印刷処理の度にファームウェアデータの更新を行うため印刷速度が遅くなってしまうという問題がある。
【0008】
この問題を解決するために、印刷処理を始めるにあたり、ファームウェアデータを一括でダウンロードしてフラッシュROMに書き込むことが考えられる。これにより、印刷処理の際に更新を行うことがなくなり印刷速度が遅くなることは解消される。しかし、最初の印刷処理に入るまでに時間が掛かるため、結果として印刷完了までの時間が遅くなってしまう。
【0009】
また、印刷処理とは関係のないときに、ファームウェアデータをダウンロードすることも考えれる。しかし、この場合、ホストPC及びプリンタをファームウェアデータの書き替えを行うモードに手動で設定し、手動でホストPC等を操作してプリンタのフラッシュROMに格納されたファームウェアデータの書き替えを行うことになる。このため、ユーザがファームウェアデータを間違えてダウンロードする虞があり、さらに、前記のようにプリンタドライバのインストールをする作業とファームウェアデータをダウンロードする作業との2つの作業を行わなければならず、煩雑である。
【0010】
本発明は、上記実情に鑑みなされたものであって、その目的は、ファームウェアデータのダウンロードが容易に可能で、印刷処理に影響を与えることのないファームウェアダウンロード方法、ファームウェアダウンロードシステム及びファームウェアダウンロードプログラムを提供することにある。
【0011】
【課題を解決するための手段】
上記問題点を解決するために、本発明は、ホスト装置とプリンタとが双方向通信可能に接続されたことを検知するとともに、前記ホスト装置側の制御手段がダウンロードモードであることを検出すると、前記ホスト装置側の記憶手段からファームウェアデータを読み出して該ホスト装置から前記プリンタへダウンロードすることで当該プリンタの不揮発性メモリに該ファームウェアデータを書き込むことを要旨とする。
【0012】
この発明によれば、ホスト装置とプリンタとが双方向通信可能に接続され、且つ、ホスト装置側の制御手段がダウンロードモードであることに基づいて、プリンタにファームウェアデータがダウンロードされる。このため、従来技術と異なり印刷処理に関連してファームウェアデータをダウンロードすることがなく、印刷処理に影響を与えることがない。また、ホスト装置とプリンタとが通信可能に接続され、かつ制御手段がダウンロードモードであることに基づいてファームウェアデータがダウンロードされるため、手動でファームウェアデータのダウンロード作業を行う必要がなく自動でファームウェアデータがダウンロードされる。このため、容易にファームウェアデータをダウンロードすることができる。
【0013】
本発明は、ホスト装置とプリンタとが双方向通信可能に接続されたことを検知する検知手段と、ファームウェアデータをダウンロードするために前記ホスト装置の制御手段をダウンロードモードに設定する設定手段と、前記ダウンロードモードを検出するモード検出手段と、前記検知手段により前記ホスト装置と前記プリンタとが双方向通信可能に接続されたことが検知されるとともに、前記モード検出手段によりダウンロードモードが検出されると、該ホスト装置に記憶されているファームウェアデータを当該ホスト装置から前記プリンタへダウンロードして該プリンタの不揮発性メモリに書き込むダウンロード手段とを備えたことを要旨とする。
【0014】
この発明によれば、検知手段による検知及び設定手段により設定されたダウンロードモードの検出を行う検出手段により当該ダウンロードモードが検出されていることに基づいて、ダウンロード手段によりホスト装置からプリンタにファームウェアデータがダウンロードされる。このため、従来技術と異なり印刷処理に関連してファームウェアデータをダウンロードすることがないため、印刷処理に影響を与えることがない。また、通信可能に接続されるとともに、ホスト装置側の制御手段がダウンロードモードである場合にファームウェアデータがダウンロードされる。つまり、手動でファームウェアデータをダウンロードする作業が介在せず、自動で判断されてファームウェアデータがダウンロードされる。このため、容易にファームウェアデータをダウンロードすることができる。
【0015】
また、本発明は、前記ダウンロード手段は、前記検知手段による検知の後、前記プリンタの識別情報を当該プリンタから前記ホスト装置へ送らせ、前記プリンタから送られた識別情報を基に識別したプリンタに対応したファームウェアデータを当該プリンタにダウンロードすることを要旨とする。
【0016】
この発明によれば、検知手段により双方向通信可能に接続されたことが検知された後、プリンタの識別情報に基づいてファームウェアデータがプリンタに対応するか否か判断され、対応する場合にそのファームウェアデータがプリンタにダウンロードされる。このため、対応しないファームウェアデータがプリンタにダウンロードされることがなくなる。さらに、ファームウェアデータがプリンタに対応しているか否かを識別情報に基づき判断するため、例えば、プリンタとホスト装置とが接続された際に必然的にプリンタからホスト装置に送信され、やりとりされる識別情報に基づくことで、判断のための処理を特別に設ける必要がない。
【0017】
さらに、本発明は、前記ホスト装置にプリンタドライバをインストールするインストール手段を備え、前記設定手段は、前記インストール手段の動作に基づいて前記ホスト装置の制御手段をダウンロードモードに設定することを要旨とする。この発明によれば、プリンタドライバをインストールする動作に基づいて、設定手段によりダウンロードモードに設定される。このため、プリンタドライバのインストールとファームウェアデータのダウンロードがまとめて行われる。また、ユーザ等が必ず行うインストールの作業でファームウェアデータをダウンロードするダウンロードモードが自動で設定され、該ファームウェアデータがダウンロードされるため、より容易にファームウェアデータをダウンロードすることができる。
【0018】
本発明は、前記設定手段は、前記プリンタの電源スイッチをプリンタに備えられた所定のスイッチと共に操作されたことに基づいて前記ホスト装置の制御手段をダウンロードモードに設定することを要旨とする。この発明によれば、電源スイッチと所定のスイッチとが共に操作された状態のプリンタとホスト装置とが双方向通信可能に接続された際、又は、プリンタとホスト装置とが双方向通信可能に接続されている状態で電源スイッチと所定のスイッチとが共に操作された際に、検出手段によりダウンロードモードと判断される。そして、そのダウンロードモードに基づきファームウェアデータがダウンロードされる。従って、必ず行うプリンタの電源投入時にファームウェアデータをダウンロードするか否かを設定することが可能となる。
【0019】
本発明は、前記ダウンロード手段により前記ファームウェアデータがダウンロードされる前に前記ホスト装置と前記プリンタとの通信形式を判断して該通信形式を特定する特定手段を備え、当該特定手段により特定された通信形式に基づき前記ダウンロード手段は、当該通信形式に対応したファームウェアデータを記憶手段から選択して読み出し、前記プリンタにダウンロードすることを要旨とする。
【0020】
この発明によれば、プリンタが複数の通信形式により通信可能に構成されていても、特定手段によりその通信形式が特定され、ダウンロード手段がその通信形式に対応したファームウェアデータを記憶手段から選択して読み出し、ダウンロードを行う。このため、プリンタの通信形式によって、ファームウェアのダウンロードが制限されることがなく、種々のプリンタに対応することが可能である。
【0021】
本発明は、ホスト装置に接続されるプリンタに対してファームウェアデータをダウンロードする際に、前記ホスト装置が備えるコンピュータにより実行されるプログラムであって、前記ホスト装置と前記プリンタとが双方向通信可能に接続されたことが検知された状態でダウンロードモードであるか否かを判断して当該ダウンロードモードを検出するステップと、前記ダウンロードモードの検出に基づいて、前記ホスト装置側の記憶手段からファームウェアデータを読み出して前記プリンタにダウンロードするステップとを備えたことを要旨とする。
【0022】
この発明に係るプログラムを用いることで、ホスト装置とプリンタとが双方向通信可能に接続され、且つ、ダウンロードモードであることに基づいて、プリンタにファームウェアデータがダウンロードされる。このため、従来技術と異なり印刷処理を行う際にファームウェアデータがダウンロードされるのではなく、通信可能に接続され、且つダウンロードモードである際にのみ、ダウンロードされる。このため、印刷処理に影響を与えることがない。また、手動でファームウェアデータのダウンロード作業を行う必要がなく自動でファームウェアデータのダウンロードが行われる。このため、容易にファームウェアデータをダウンロードすることができる。
【0023】
本発明は、前記ダウンロードモードを検出するステップにおいてダウンロードモードが検出された後、前記プリンタから送信された識別情報を基に識別したプリンタが前記ファームウェアデータに対応するか否かを判断するステップを備え、前記ファームウェアデータに対応するか否かを判断するステップにおいて、前記プリンタが前記ファームウェアデータに対応するものであると判断すると、前記記憶手段から前記ファームウェアデータを読み出して前記プリンタにダウンロードすることを要旨とする。
【0024】
この発明に係るプログラムを用いることで、プリンタから送信される識別情報に基づいてファームウェアデータがプリンタに対応するか否かが判断されて、対応する場合にそのファームウェアデータがプリンタにダウンロードされる。このため、対応しないファームウェアデータがダウンロードされることがなくなる。さらに、ファームウェアデータがプリンタに対応しているか否かを識別情報に基づき判断するため、例えば、プリンタとホスト装置とが接続された際に必然的にプリンタからホスト装置に送信され、やりとりされる識別情報に基づくことで、判断のための処理を特別に設ける必要がない。
【0025】
本発明は、前記ダウンロードモードを検出するステップは、プリンタドライバが前記ホスト装置にインストールされる処理に基づきダウンロードモードであると判断し、当該ダウンロードモードを検出するステップであることを要旨とする。この発明のプログラムを用いることで、プリンタドライバがインストールされる処理に基づいて、ダウンロードモードが設定され、ファームウェアデータのダウンロードが行われる。このため、プリンタドライバのインストールとファームウェアデータのダウンロードがまとめて行うことが可能となる。このため、必ず行うインストールの作業でファームウェアデータまでもがダウンロード可能となるため、ファームウェアデータのダウンロードを容易に行うことができる。
【0026】
【発明の実施の形態】
以下、本発明を具体化した一実施形態を図1〜図3を参照して説明する。
図1はホストコンピュータ及びプリンタのブロック図を示す。ホスト装置としてのホストコンピュータ(以下、ホストPCという)10にはプリンタ20が接続されている。ホストPC10は、アプリケーションプログラム(以下、アプリケーションという)11とオペレーティングシステム(以下、OSという)12とを備えている。
【0027】
ホストPC10は、周辺機器と通信を行うためのホストI/F13、通信ポート14を備える。ホストPC10は、通信ポート14に接続されたパラレルインターフェイス(以下、パラレルI/Fという)15を介してプリンタ20の通信ポート21に接続されている。なお、本実施形態では、双方向通信性のパラレルI/F15によりホストPC10とプリンタ20とが接続されているが、双方向通信性のインターフェイスであれば特に限定されるものではない。
【0028】
プリンタ20は、ヘッド駆動機構や用紙供給・搬送機構等の印刷に必要な機構からなるプリントエンジン22と、ホストPC10からの印刷データを処理してプリントエンジン22を制御する制御装置23とを備える。制御装置23は、一般のプリンタと同様に、ホストPC10と通信するための通信インターフェイス(通信I/F)24、ホストPC10から受信したデータを処理するためのCPU25とを備える。通信I/F24にはパラレルI/F15が接続されている。また、CPU25の動作プログラムを搭載したROM26と、主記憶、ワークエリア、受信バッファ、ページメモリ、印刷バッファとして利用されるRAM27を備える。
【0029】
さらに、制御装置23はファームウェアデータを保持するための不揮発性メモリとしてのフラッシュROM(例えば、EEPROM)28を備える。フラッシュROM28には、予め出荷時からファームウェアデータが組み込まれている。後に詳述するように、本実施形態では、フラッシュROM28に保持されている既存のファームウェアデータを消去するとともに、ホストPC10から送り込まれてくる新たなファームウェアデータを書き込むことができる。また、ファームウェアデータがフラッシュROM28に組み込まれるため、ファームウェアデータの下位で働くハードウェアに依存したプログラム等のプログラムがROM26には保持されている。
【0030】
また、プリンタ20は、プリンタの電源をON/OFFするための電源スイッチ29及び給紙及び排紙を行うための紙送りスイッチ30を備えており、それらはCPU25と電気的に接続されている。
【0031】
記憶手段を構成するCD−ROM40には、プリンタドライバと、当該プリンタドライバに添付された状態でファームウェアデータとが記憶されている。ファームウェアデータは、プログラムデータ及びCGデータにより構成されている。ホストPC10は、CD−ROM40を読み込み可能な読込装置50と接続されており、該読込装置50によりプリンタドライバを読み込み、OS12に従ってプリンタドライバをインストールする。これにより、プリンタドライバに添付されているファームウェアデータもインストールされる。なお、図1には、プリンタドライバ及びファームウェアデータがホストPC10にインストールされた状態が示されている。
【0032】
本実施形態におけるファームウェアダウンロードシステムは、ホストPC10、パラレルI/F15、プリンタ20のCPU25及びフラッシュROM28、CD−ROM40により構成される。なお、ホストPC10のコンピュータが、制御手段、設定手段、検知手段、モード検出手段、ダウンロード手段、インストール手段、特定手段を構成する。
【0033】
次に、ファームウェアデータのダウンロード態様について図2及び図3に示すシーケンスチャートに基づき説明する。
まず、ユーザがホストPC10とプリンタ20とをパラレルI/F15により通信可能にするために接続する。そして、プリンタ20の電源をオンする。すると、図3に示すステップS100において、ホストPC10はプラグアンドプレイ機能の働きにより、プリンタ20を認識する。なお、プラグアンドプレイ機能とは、予めOSに設定されているアーキテクチャの一種で、パソコンに周辺機器等を接続した際に、自動的に認識して所定の処理を行う仕組みのことである。そして、ステップS101においてホストPC10は、OS12の働きに基づいてプリンタ20に対してデバイスID要求信号を送信して、プリンタ20に識別情報としてのデバイスIDを要求する。
【0034】
ステップP100においてプリンタ20のCPU25は、デバイスID要求信号を受信すると、デバイスIDを準備する。そして、ステップP101においてCPU25は、デバイスIDをホストPC10に送信する。
【0035】
ステップS102においてホストPC10は、デバイスIDを取得する。そして、ステップS103においてホストPC10は、OS12の働きに基づきデバイスIDをレジストリ(図示せず)に保存する。
【0036】
次に、読込装置50にCD−ROM40が挿入されると、図2に示すように、ステップS200においてホストPC10は、プリンタドライバのセットアップを実行する。そして、ステップS201においてホストPC10は、ファームウェアデータが添付されているプリンタドライバを読込装置50によりCD−ROM40から読み出してインストールする(インストールした状態は図1参照)。なお、インストールされたプリンタドライバ及びファームウェアデータはOS12の下層に位置する。
【0037】
なお、これ以後ホストPC10は、OS12ではなくプリンタドライバに基づいて以下の処理を行う。ステップS202においてホストPC10は、プリンタ20が接続されているパラレルI/F15の通信ポート14をプリンタドライバの出力先に設定する。
【0038】
また、ホストPC10は、プリンタドライバのプログラムに基づき、ステップS201のインストール処理が行われるとダウンロードモードとして設定するとともに、当該ダウンロードモードを検出してステップS203に移行する。これ以後、ホストPC10は、ファームウェアデータのダウンロードを行う。
【0039】
次に、ステップS203においてホストPC10は、プラグアンドプレイ時に取得したデバイスIDに基づいて、ファームウェアデータに対応するプリンタであるか否かを判断する。ここで、対応しない場合、ステップS204に移行する。そして、ステップS204においてホストPC10は、ファームウェアデータがプリンタ20に対応していない旨を自身が備える画面(図示略)に表示し、ファームウェアデータの更新を行うことなく処理を終了する。一方、ステップS203において、ファームウェアデータに対応するプリンタ20である場合、ステップS205に移行する。そして、ステップS205においてホストPC10は、IPL(イニシャライズプログラムローダ)モード移行コマンドをパラレルI/F15を介してプリンタ20に送信する。
【0040】
そして、ステップP200においてCPU25は、IPLモード移行コマンドを受信すると、IPLモード判別ビットを立てて、制御装置23にリセットをかける。これにより、制御装置23がIPLモードで立ち上がる。なお、IPLモードとは、プリンタ20に備えられる電源スイッチ29及び紙送りスイッチ30や外部スイッチからの入力を受け付けない状態であり、ファームウェアデータ書き込み専用のモードのことである。そして、ステップP201においてCPU25は、ファームウェアデータの受信準備が完了した旨を示す受信準備完了信号をホストPC10に送信する。
【0041】
ステップS206においてホストPC10は、受信準備完了信号を受信し、ファームウェアデータの受信準備が完了したことを知ると、IPL書込プログラム及びファームウェアデータをプリンタ20に送信する。
【0042】
ステップP202においてCPU25は、IPL書込プログラムとファームウェアデータとを受信すると、一旦、RAM27にIPL書込プログラム及びファームウェアデータを記憶する。そして、それら全てを記憶すると、そのIPL書込プログラムに基づきフラッシュROM28に記憶されている既存のファームウェアデータを消去するとともに、ホストPC10から送信されたIPL書込プログラム及び新たなファームウェアデータをフラッシュROM28に書き込む。
【0043】
次に、ステップP203においてCPU25は、ファームウェアデータの更新が終了した旨を示す書込完了信号をホストPC10に送信する。そして、ステップP204においてCPU25は、IPLモードに移行する際に立ち上げた判別ビットをクリアしてリブート(システムの再起動)を行う。これにより、新しくダウンロードされたファームウェアデータに基づき、通常の状態(印刷処理を行える状態)で制御装置23が立ち上がる。一方、ステップS207においてホストPC10は、書込完了信号によりファームウェアデータの書き込みが終了したことを知ると、ファームウェアデータの更新が完了したことを例えば自身が備える画面(図示略)に表示して処理を終了する。
【0044】
上記シーケンスチャートは、ホストPC10にプリンタドライバをインストールするとともに、ファームウェアデータをプリンタ20にダウンロードする場合について示したが、ファームウェアデータのみを更新する場合について以下に示す。なお、ホストPC10にはプリンタドライバが既にインストールされている状態であり、プリンタ20とホストPC10とはパラレルI/F15により接続されている。
【0045】
まず、プリンタ20に備えられる例えば紙送りスイッチ30を操作しながら電源スイッチ29を操作してプリンタ20の電源を投入する。すると、CPU25がそれを判断して、制御装置23がファームウェアデータをダウンロードするためのダウンロードモードで起動する。なお、この場合、電源スイッチ29及び紙送りスイッチ30が設定手段を構成する。ホストPC10は、そのダウンロードモード状態であるプリンタ20を認識することで、自身もダウンロードモードに設定する。そして、デバイスIDを要求し、それに対してプリンタ20からデバイスIDを取得する(図3に示すステップS100〜S103に相当)。ホストPC10は、既にプリンタドライバが自身にインストールされているため、ファームウェアデータのダウンロード処理に移行する。そして、デバイスIDを用いてファームウェアデータが対応しているプリンタであるか否かを判断する(ステップS203に相当)。これ以後、上記の処理態様と同様にしてファームウェアデータのダウンロードが行われる(ステップS205〜S207及びステップP200〜ステップP204に相当)。
【0046】
上記実施形態によれば、以下のような効果を得ることができる。
(1)プリンタドライバがインストールされる処理に連続して、そのインストール後にファームウェアデータがプリンタ20のフラッシュROM28にダウンロードされてフラッシュROM28に書き込まれる。すなわち、プリンタを使用するために必ず行うプリンタドライバのインストール作業を行うことで、ファームウェアデータまでもが更新される。このため、手動でダウンロードのための設定等を行う必要がなく、自動的にファームウェアデータがダウンロードされる。従って、容易にファームウェアデータをダウンロードすることができる。さらに、ユーザにとってはファームウェアデータの更新をしているという意識なく更新される。また、従来技術と異なり、印刷処理とともにファームウェアデータのダウンロードを行うことがないため、印刷処理に影響を与えることがない。
【0047】
(2)プラグアンドプレイの際のデバイスIDを用いて、ファームウェアデータがプリンタに対応するか否かを判断する。このため、適合しないプリンタの判別を容易かつ確実に行うことができ、対応しない場合はファームウェアデータのダウンロードを行わないので、対応していないプリンタに間違えてファームウェアをダウンロードするような間違いを防止できる。また、プリンタの初期設定の際等に必然的に用いられるデバイスIDを用いて、ファームウェアデータがプリンタに対応しているか否かの判別を行う。このため、ホストPC10により実行されるプリンタドライバのプログラムに特別に判別の処理を設ける必要がない。
【0048】
(3)電源スイッチ29と紙送りスイッチ30とが共に操作されることで、プリンタ20はダウンロードモードで立ち上がり、ホストPC10はその状態のプリンタを認識して自身もダウンロードモードに移行する。そして、ファームウェアデータのダウンロードを行う。このため、プリンタの電源投入時にファームウェアデータをダウンロードするか否かを設定することが可能となり、更新したい場合にのみ上記の操作によりダウンロードモードとすることができる。
【0049】
(4)CD−ROM40に記憶されたプリンタドライバをインストールするだけで、そのプリンタドライバに添付されているファームウェアデータがプリンタ20にダウンロードされて更新される。このため、例えば、ユーザがプリンタの仕様を変更したい場合、その変更に対応したプリンタドライバ及びファームウェアデータが記憶された記憶媒体を入手するだけで可能であり、プリンタのカスタマイズが容易である。逆に、プリンタの提供側にとっては上記のようなユーザの要望、つまり、市場に対応させ易い。
【0050】
なお、前記実施形態は以下のように変更してもよい。
(変形例1)前記実施形態では、パラレルI/F15を備えるプリンタ20であったが、パラレルI/F15以外に通信形式の異なる複数のI/Fを備えるプリンタに本発明を適用してもよい。この場合、各I/Fに対応したIPL書込プログラム及びファームウェアデータをプリンタドライバに備える構成とする。そして、図4に示すシーケンスチャートの処理を行う。ステップP300においてCPU25が受信準備完了信号を送信する処理までは前記実施形態と同様である。そして、ステップS300においてホストPC10は、プリンタドライバの働きに基づいてIPLモード移行コマンドを送信する際に使用したインターフェイス(前記実施形態ではパラレルI/F)に対応したIPL書込プログラム及びファームウェアデータをプリンタドライバの中から選択する。そして、ステップS301においてホストPC10は、その選択したIPL書込プログラムとファームウェアデータをプリンタ20に送信する。そして、ステップP301においてCPU25は、そのIPL書込プログラム及びファームウェアデータに基づいてフラッシュROM28に書き込んで更新する。なお、これ以後の処理は前記実施形態と同様であるためその説明は省略する。また、ホストPC10が上記のように種々のインターフェイスの中からインターフェイスを選択するのではなく、IPL書込みプログラムにインターフェイスの判別を行う処理を持たせてもよい。
【0051】
(変形例2)前記実施形態では、プリンタドライバをインストールした後、必ずファームウェアデータが更新されていたが、プリンタドライバにファームウェアデータの更新を行うか否かを選択する機能が備えられていてもよい。この場合、例えば、プリンタドライバの機能によりホストPC10の画面(図示略)にファームウェアデータの更新を行うか否かを選択するための画面を表示し、ユーザが選択する。これにより、ファームウェアデータの更新が必要ない場合には、その更新を省略できるため、ダウンロードにかかる時間を省略することができる。
【0052】
(変形例3)記憶手段はCD−ROM40に限らず、サーバ等のHDDであってもよい。例えば、プリンタ20の供給側はサーバを使用してWEB上にファームウェアデータが添付されたプリンタドライバを公開し、ユーザがそのサーバ上からプリンタドライバを取得してもよい。
【0053】
(変形例4)デュアルモード対応のフラッシュROMを使用してもよい。なお、デュアルモード対応のフラッシュROMとは、読み書きを同時に行えることができるフラッシュROMのことをいう。これを用いることで、前記実施形態のIPL書込プログラムに相当する書込プログラムが記憶されているエリアのみ読み込み専用となり、それ以外は書き込みが可能となる。このため、デュアルモード対応のフラッシュROMを使用することで、フラッシュROM自体が書込プログラムを保持することが可能であるため、CPU25はIPL書込プログラムをホストPC10から取得する必要がなくなる。このため、前記実施形態におけるステップS206においてホストPC10が、IPL書込プログラムを送信する処理が省略されるとともに、それに伴うプリンタ20側の処理も省略される。
【0054】
(変形例5)ファームウェアデータのダウンロードの際に、フラッシュROM28に記憶されている既存のファームウェアデータ(例えば、プリンタ20の出荷時に記憶されるファームウェアデータ)とプリンタドライバに添付されたファームウェアデータとの新旧の判断をホストPC10が行う構成にしてもよい。そして、プリンタドライバに添付されたファームウェアデータの方が新しい場合にのみダウンロードを行うようにしてもよい。これにより、古いバージョンのファームウェアデータをダウンロードすることがなくなる。
【0055】
(変形例6)OS12のプラグアンドプレイ機能によりプリンタ20を認識するが、その認識の方法やタイミングはOSにより様々であるため、その方法やタイミングは特に限定されない。本実施形態において、OS12がプラグアンドプレイ機能により取得したデバイスIDのように、プリンタ20を識別可能な識別情報を取得可能であれば特にOSについては限定されない。
【0056】
(変形例7)前記実施形態では、ファームウェアデータを構成するプログラムデータ及びCGデータともにプリンタ20にダウンロードしていたが、いずれか1つだけダウンロードする構成であってもよい。この場合、プログラムデータ及びCGデータのいずれをダウンロードするかについて、プリンタドライバで設定を行う機能が必要となるが、これにより、ファームウェアデータ全て更新するのではなく、例えばCGデータのみ更新することが可能となる。
【0057】
(変形例8)前記実施形態では、パラレルI/F15によりホストPC10とプリンタ20とが双方向通信可能に接続されていたが、USBインターフェイスのような動的接続が可能なインターフェイスを採用して双方向通信可能に接続されてもよい。この場合、プラグアンドプレイ機能は、ホストPC10とプリンタ20とが、例えばUSBインターフェイスで接続された状態でプリンタ20の電源を投入する際だけでなく、プリンタ20の電源がONの状態でUSBインターフェイスにより接続してもプラグアンドプレイ機能が働く。そのため、前記実施形態とその認識のタイミングが異なるが、前記実施形態と同様の効果を得ることができる。
【0058】
(変形例9)前記実施形態では、ホストPC10は、CD−ROM40からプリンタドライバ及びファームウェアデータをともにインストールしたが、プリンタドライバのみOS12内にインストールしてもよい。そして、ファームウェアデータについては読込装置50によりCD−ROM40から随時読み込んで、プリンタ20にダウンロードするようにしてもよい。
【0059】
(変形例10)ダウンロードモードに設定する際に、電源スイッチ29と共に紙送りスイッチ30を押していたが、紙送りスイッチ30以外のスイッチと共に押すことでダウンロードモードに設定されてもよい。特に、電源スイッチ29以外のスイッチについては限定されない。
【0060】
(変形例11)前記実施形態において、ホストPC10は、プリンタドライバに基づいてステップS201におけるインストール処理が終了した時点を基に、ダウンロードモードを設定して検出し、ファームウェアデータのダウンロードを行っていた。これに限らず、ホストPC10がインストール処理の終了をプリンタドライバに基づき判断可能であるならば、ダウンロードモードの設定及び検出のタイミングは特に限定されない。例えば、ステップS202の処理の際にダウンロードモードを設定及び検出して、ファームウェアデータのダウンロードを行うようにしてもよい。
【0061】
(変形例12)ファームウェアデータのみ記憶されたCD−ROM等の記憶手段を用いて、ファームウェアデータのみを更新するようにしてもよい。この場合、前記実施形態のようにプリンタ20の電源スイッチ29を所定のスイッチ(例えば、紙送りスイッチ30)と共に操作して、ダウンロードモードに設定することで可能となる。
【0062】
次に、前記実施形態及び変形例から把握できる技術的思想について以下に追記する。
(1)請求項2〜請求項6のいずれか一項に記載のファームウェアダウンロードシステムにおいて、
前記ホスト装置に記憶されているファームウェアデータが前記プリンタに予め記憶されているファームウェアデータより新しいか否かを判断する判断手段を備え、該判断手段により前記ホスト装置に記憶されているファームウェアデータの方が新しいと判断された場合、前記ダウンロード手段は前記プリンタに当該ファームウェアデータをダウンロードすることを特徴とするファームウェアダウンロードシステム。
【0063】
(2)前記ファームウェアデータは、前記ホスト装置において前記プリンタドライバに添付された状態で記憶されていることを特徴とする請求項4〜請求項6及び前記技術的思想(1)のいずれか一項に記載のファームウェアダウンロードシステム。
【0064】
(3)前記ホスト装置側の制御手段は、当該ホスト装置がプリンタドライバをインストールする動作に基づいてダウンロードモードに設定されることを特徴とする請求項1に記載のファームウェアダウンロード方法。
【0065】
(4)前記ホスト装置は、前記プリンタから送信される該プリンタの識別情報に基づいて、前記ファームウェアデータが前記プリンタに対応するものであるか否かを判断し、当該ファームウェアデータが前記プリンタに対応するものであると判断した場合、当該ファームウェアデータを前記プリンタにダウンロードすることを特徴とする請求項1又は前記技術的思想(3)に記載のファームウェアダウンロード方法。
【0066】
(5) 前記プリンタは、通信形式の異なる複数の通信形式により通信可能に構成されており、前記ホスト装置は、前記複数の通信形式のいずれにより前記プリンタと接続されているかを前記ファームウェアデータをダウンロードする前に判断して特定し、当該通信形式に対応した前記ファームウェアデータを前記記憶手段から選択してダウンロードすることを特徴とする請求項1及び前記技術的思想(3),(4)のいずれか一項に記載のファームウェアダウンロード方法。
【図面の簡単な説明】
【図1】ホストPC及びプリンタの構成を示すブロック図。
【図2】ファームウェアのダウンロードに関するシーケンスチャート。
【図3】OSのプラグアンドプレイに関するシーケンスチャート。
【図4】ファームウェアのダウンロードに関するシーケンスチャート。
【符号の説明】
10…ホスト装置を構成するホストコンピュータ(制御手段、設定手段、検知手段、モード検出手段、ダウンロード手段、インストール手段、特定手段)、15…パラレルインターフェイス(パラレルI/F)、20…プリンタ、25…CPU、28…不揮発性メモリとしてのフラッシュROM、29…電源スイッチ、30…紙送りスイッチ。
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to a firmware download system, a firmware download method, and a firmware download program.
[0002]
[Prior art]
Conventionally, in order to download firmware to a printer, it is necessary to replace the ROM mounted on the printer, and it is necessary to bring the printer to a factory or service center. In addition, since the printer provider needs to create and provide different firmware for each destination, the printer is shipped after replacing the ROM for each printer.
[0003]
However, with the spread of electrically rewritable nonvolatile memory (for example, flash ROM) in recent years, printers capable of changing firmware data stored in the flash ROM by rewriting data have been developed. I have. For this reason, it is not necessary to replace the ROM itself for correcting a program defect or adding a new function, and the operation can be performed with a relatively simple operation.
[0004]
As a firmware update method using a flash ROM, the following method has been proposed. In this method, the host PC has a part or all of the firmware data in the printer driver, and the printer driver compares the state of the firmware data of the printer with the firmware data requested by the application every time the printing process is performed. Then, based on the comparison, the host PC downloads only necessary modules to the printer side (for example, see Patent Document 1).
[0005]
By the way, a printer driver installed in the host PC for controlling the printer is also provided for each destination, and a destination user or the like installs a printer driver stored in, for example, a CD-ROM in the host PC.
[0006]
[Patent Document 1]
JP 2001-67228 A (paragraphs [0026] to [0050] of the specification, FIG. 2)
[0007]
[Problems to be solved by the invention]
However, in the method described in Patent Literature 1, the necessity of updating the firmware data is determined each time the printing process is performed, and the firmware data is updated if necessary. For this reason, it is possible to secure a certain printing speed, but there is also a problem that the printing speed is reduced because the firmware data is updated each time printing processing is performed.
[0008]
In order to solve this problem, when starting the printing process, it is conceivable to download the firmware data all at once and write it to the flash ROM. As a result, the update is not performed during the printing process, and the printing speed is prevented from being reduced. However, it takes time until the first printing process is started, and as a result, the time until printing is completed is delayed.
[0009]
It is also conceivable to download firmware data when there is nothing to do with print processing. However, in this case, it is necessary to manually set the host PC and the printer to a mode for rewriting the firmware data, and manually operate the host PC or the like to rewrite the firmware data stored in the flash ROM of the printer. Become. For this reason, there is a possibility that the user may download the firmware data by mistake, and furthermore, as described above, two operations of the operation of installing the printer driver and the operation of downloading the firmware data must be performed. is there.
[0010]
The present invention has been made in view of the above circumstances, and has as its object to provide a firmware download method, a firmware download system, and a firmware download program that can easily download firmware data and do not affect print processing. To provide.
[0011]
[Means for Solving the Problems]
In order to solve the above problems, the present invention detects that the host device and the printer are connected so as to be capable of bidirectional communication, and detects that the control means on the host device side is in the download mode. The gist is that firmware data is read from the storage device of the host device and downloaded from the host device to the printer to write the firmware data to a nonvolatile memory of the printer.
[0012]
According to the present invention, the firmware data is downloaded to the printer based on the fact that the host device and the printer are connected so as to be capable of two-way communication and the control means of the host device is in the download mode. Therefore, unlike the related art, the firmware data is not downloaded in connection with the print processing, and the print processing is not affected. Also, since the host device and the printer are communicably connected and the firmware is downloaded based on the control unit being in the download mode, it is not necessary to manually download the firmware data, and the firmware data is automatically downloaded. Is downloaded. Therefore, the firmware data can be easily downloaded.
[0013]
The present invention provides a detecting unit for detecting that a host device and a printer are connected so as to be capable of bidirectional communication, a setting unit for setting a control unit of the host device to a download mode for downloading firmware data, A mode detection unit for detecting a download mode, and when the detection unit detects that the host device and the printer are connected to be capable of bidirectional communication, and the download mode is detected by the mode detection unit, A summary of the invention is that a download unit that downloads firmware data stored in the host device from the host device to the printer and writes the firmware data in a nonvolatile memory of the printer is provided.
[0014]
According to the present invention, the firmware data is transmitted from the host device to the printer by the download unit based on the detection of the download mode set by the detection unit and the detection of the download mode set by the setting unit. Downloaded. For this reason, unlike the related art, the firmware data is not downloaded in connection with the print processing, so that the print processing is not affected. In addition, the firmware data is downloaded when the communication unit is communicably connected and the control unit on the host device side is in the download mode. In other words, the firmware data is downloaded by being automatically determined without the intervention of manually downloading the firmware data. Therefore, the firmware data can be easily downloaded.
[0015]
Further, according to the present invention, the download unit causes the printer to send identification information of the printer to the host device after the detection by the detection unit, and causes the printer identified based on the identification information sent from the printer to the printer. The gist is to download the corresponding firmware data to the printer.
[0016]
According to the present invention, after the detection unit detects that the connection is enabled for bidirectional communication, it is determined whether or not the firmware data corresponds to the printer based on the identification information of the printer. The data is downloaded to the printer. Therefore, unsupported firmware data is not downloaded to the printer. Furthermore, in order to determine whether the firmware data corresponds to the printer based on the identification information, for example, when the printer and the host device are connected, the identification data transmitted and exchanged from the printer to the host device is inevitable. Based on the information, it is not necessary to provide a special process for determination.
[0017]
Further, the invention has an installation unit for installing a printer driver in the host device, and the setting unit sets the control unit of the host device to a download mode based on an operation of the installation unit. . According to the present invention, the download mode is set by the setting means based on the operation of installing the printer driver. Therefore, the installation of the printer driver and the download of the firmware data are performed collectively. In addition, a download mode for downloading firmware data is automatically set in the installation work always performed by a user or the like, and the firmware data is downloaded, so that the firmware data can be downloaded more easily.
[0018]
The gist of the present invention is that the setting means sets the control means of the host device to a download mode based on a power switch of the printer being operated together with a predetermined switch provided in the printer. According to the present invention, when the power switch and the predetermined switch are both operated, the printer and the host device are connected to enable bidirectional communication, or the printer and the host device are connected to enable bidirectional communication. When the power switch and the predetermined switch are both operated in the state in which the operation is performed, the detection unit determines that the download mode is set. Then, the firmware data is downloaded based on the download mode. Therefore, it is possible to set whether to download the firmware data when the power of the printer is turned on.
[0019]
The present invention further includes a specifying unit that determines a communication format between the host device and the printer before the firmware data is downloaded by the download unit, and specifies the communication format. The gist is that the download unit selects and reads out firmware data corresponding to the communication format from the storage unit based on the format, and downloads the firmware data to the printer.
[0020]
According to the present invention, even if the printer is configured to be communicable in a plurality of communication formats, the communication format is specified by the specifying device, and the download device selects the firmware data corresponding to the communication format from the storage device. Read and download. Therefore, the download of the firmware is not restricted by the communication format of the printer, and it is possible to support various printers.
[0021]
The present invention is a program executed by a computer provided in the host device when downloading firmware data to a printer connected to the host device, wherein the host device and the printer can perform bidirectional communication. Determining whether or not the connection is in the download mode in a state where the connection has been detected, and detecting the download mode; and, based on the detection of the download mode, updating the firmware data from the storage unit on the host device side. Reading and downloading to the printer.
[0022]
By using the program according to the present invention, firmware data is downloaded to the printer based on the fact that the host device and the printer are connected so as to be capable of bidirectional communication and that the printer is in the download mode. Therefore, unlike the related art, the firmware data is not downloaded at the time of performing the printing process, but is downloaded only when the communication is connected and the download mode is set. For this reason, the printing process is not affected. Also, the firmware data is automatically downloaded without the need to manually download the firmware data. Therefore, the firmware data can be easily downloaded.
[0023]
The present invention includes a step of, after the download mode is detected in the step of detecting the download mode, determining whether or not the printer identified based on the identification information transmitted from the printer corresponds to the firmware data. In the step of determining whether or not the printer supports the firmware data, if the printer determines that the printer supports the firmware data, reading the firmware data from the storage unit and downloading the firmware data to the printer is summarized. And
[0024]
By using the program according to the present invention, it is determined whether or not the firmware data corresponds to the printer based on the identification information transmitted from the printer. If so, the firmware data is downloaded to the printer. Therefore, unsupported firmware data is not downloaded. Furthermore, in order to determine whether the firmware data corresponds to the printer based on the identification information, for example, when the printer and the host device are connected, the identification data transmitted and exchanged from the printer to the host device is inevitable. Based on the information, it is not necessary to provide a special process for determination.
[0025]
The gist of the present invention is that the step of detecting the download mode is a step of determining that the printer driver is in the download mode based on a process installed in the host device, and detecting the download mode. By using the program of the present invention, the download mode is set based on the process of installing the printer driver, and the firmware data is downloaded. Therefore, the installation of the printer driver and the download of the firmware data can be performed collectively. For this reason, even the firmware data can be downloaded by the installation work that is always performed, so that the firmware data can be easily downloaded.
[0026]
BEST MODE FOR CARRYING OUT THE INVENTION
An embodiment of the present invention will be described below with reference to FIGS.
FIG. 1 shows a block diagram of a host computer and a printer. A printer 20 is connected to a host computer (hereinafter, referred to as a host PC) 10 as a host device. The host PC 10 includes an application program (hereinafter, referred to as an application) 11 and an operating system (hereinafter, referred to as an OS) 12.
[0027]
The host PC 10 includes a host I / F 13 and a communication port 14 for communicating with peripheral devices. The host PC 10 is connected to a communication port 21 of a printer 20 via a parallel interface (hereinafter, referred to as a parallel I / F) 15 connected to the communication port 14. In the present embodiment, the host PC 10 and the printer 20 are connected by the parallel I / F 15 having bidirectional communication, but the interface is not particularly limited as long as the interface is bidirectional communication.
[0028]
The printer 20 includes a print engine 22 including a mechanism required for printing such as a head drive mechanism and a paper supply / transport mechanism, and a control device 23 that processes print data from the host PC 10 and controls the print engine 22. The control device 23 includes a communication interface (communication I / F) 24 for communicating with the host PC 10 and a CPU 25 for processing data received from the host PC 10 like a general printer. The parallel I / F 15 is connected to the communication I / F 24. Further, a ROM 26 loaded with an operation program of the CPU 25 and a RAM 27 used as a main memory, a work area, a reception buffer, a page memory, and a print buffer are provided.
[0029]
Further, the control device 23 includes a flash ROM (for example, an EEPROM) 28 as a non-volatile memory for holding firmware data. The firmware data is stored in the flash ROM 28 in advance from the time of shipment. As described later in detail, in the present embodiment, existing firmware data stored in the flash ROM 28 can be erased, and new firmware data sent from the host PC 10 can be written. In addition, since the firmware data is incorporated in the flash ROM 28, a program such as a program depending on hardware working below the firmware data is stored in the ROM 26.
[0030]
Further, the printer 20 includes a power switch 29 for turning on / off the power of the printer and a paper feed switch 30 for feeding and discharging paper, and these are electrically connected to the CPU 25.
[0031]
The CD-ROM 40 constituting the storage means stores a printer driver and firmware data attached to the printer driver. The firmware data is composed of program data and CG data. The host PC 10 is connected to a reading device 50 that can read the CD-ROM 40, reads a printer driver using the reading device 50, and installs the printer driver according to the OS 12. As a result, the firmware data attached to the printer driver is also installed. FIG. 1 shows a state where the printer driver and the firmware data are installed in the host PC 10.
[0032]
The firmware download system according to the present embodiment includes a host PC 10, a parallel I / F 15, a CPU 25 of the printer 20, a flash ROM 28, and a CD-ROM 40. Note that the computer of the host PC 10 constitutes control means, setting means, detection means, mode detection means, download means, installation means, and identification means.
[0033]
Next, the download mode of the firmware data will be described with reference to the sequence charts shown in FIGS.
First, a user connects the host PC 10 and the printer 20 to enable communication with the parallel I / F 15. Then, the power of the printer 20 is turned on. Then, in step S100 shown in FIG. 3, the host PC 10 recognizes the printer 20 by the function of the plug and play function. The plug-and-play function is a type of architecture set in the OS in advance, and is a mechanism for automatically recognizing and performing predetermined processing when a peripheral device or the like is connected to a personal computer. In step S101, the host PC 10 transmits a device ID request signal to the printer 20 based on the operation of the OS 12, and requests the printer 20 for a device ID as identification information.
[0034]
Upon receiving the device ID request signal in Step P100, the CPU 25 of the printer 20 prepares a device ID. Then, in Step P101, the CPU 25 transmits the device ID to the host PC 10.
[0035]
In step S102, the host PC 10 acquires a device ID. Then, in step S103, the host PC 10 stores the device ID in a registry (not shown) based on the operation of the OS 12.
[0036]
Next, when the CD-ROM 40 is inserted into the reading device 50, as shown in FIG. 2, in step S200, the host PC 10 executes setup of a printer driver. Then, in step S201, the host PC 10 reads out the printer driver attached with the firmware data from the CD-ROM 40 by the reading device 50 and installs it (see FIG. 1 for the installed state). Note that the installed printer driver and firmware data are located below the OS 12.
[0037]
After that, the host PC 10 performs the following processing based on the printer driver instead of the OS 12. In step S202, the host PC 10 sets the communication port 14 of the parallel I / F 15 to which the printer 20 is connected as an output destination of the printer driver.
[0038]
Further, based on the program of the printer driver, the host PC 10 sets the download mode when the installation process of step S201 is performed, detects the download mode, and proceeds to step S203. Thereafter, the host PC 10 downloads the firmware data.
[0039]
Next, in step S203, the host PC 10 determines whether or not the printer is a printer corresponding to firmware data based on the device ID acquired at the time of plug and play. If not, the process proceeds to step S204. Then, in step S204, the host PC 10 displays on its own screen (not shown) that the firmware data does not correspond to the printer 20, and ends the processing without updating the firmware data. On the other hand, if the printer 20 corresponds to the firmware data in step S203, the process proceeds to step S205. Then, in step S205, the host PC 10 transmits an IPL (initialization program loader) mode transition command to the printer 20 via the parallel I / F 15.
[0040]
Then, when receiving the IPL mode shift command in Step P200, the CPU 25 sets the IPL mode determination bit and resets the control device 23. As a result, the control device 23 starts up in the IPL mode. Note that the IPL mode is a mode in which input from the power switch 29, the paper feed switch 30, and the external switch provided in the printer 20 is not accepted, and is a mode exclusively for writing firmware data. Then, in Step P201, the CPU 25 transmits to the host PC 10 a reception preparation completion signal indicating that the preparation for receiving the firmware data has been completed.
[0041]
In step S <b> 206, when the host PC 10 receives the reception preparation completion signal and knows that the preparation for receiving the firmware data has been completed, the host PC 10 transmits the IPL writing program and the firmware data to the printer 20.
[0042]
Upon receiving the IPL writing program and the firmware data in Step P202, the CPU 25 temporarily stores the IPL writing program and the firmware data in the RAM 27. When all of them are stored, the existing firmware data stored in the flash ROM 28 is erased based on the IPL writing program, and the IPL writing program and new firmware data transmitted from the host PC 10 are stored in the flash ROM 28. Write.
[0043]
Next, in Step P203, the CPU 25 transmits to the host PC 10 a write completion signal indicating that the update of the firmware data has been completed. Then, in step P204, the CPU 25 clears the discrimination bit that was activated when shifting to the IPL mode and performs a reboot (restart of the system). As a result, the control device 23 starts up in a normal state (a state in which print processing can be performed) based on the newly downloaded firmware data. On the other hand, in step S207, when the host PC 10 knows that the writing of the firmware data has been completed by the write completion signal, the host PC 10 displays the completion of the updating of the firmware data on, for example, a screen (not shown) of the host PC 10 and performs the processing. finish.
[0044]
The above sequence chart shows the case where the printer driver is installed in the host PC 10 and the firmware data is downloaded to the printer 20, but the case where only the firmware data is updated will be described below. The printer driver is already installed in the host PC 10, and the printer 20 and the host PC 10 are connected by the parallel I / F 15.
[0045]
First, the power of the printer 20 is turned on by operating the power switch 29 while operating, for example, the paper feed switch 30 provided in the printer 20. Then, the CPU 25 determines this, and the control device 23 starts up in a download mode for downloading firmware data. In this case, the power switch 29 and the paper feed switch 30 constitute a setting unit. The host PC 10 sets itself to the download mode by recognizing the printer 20 in the download mode. Then, a device ID is requested, and a device ID is acquired from the printer 20 in response to the request (corresponding to steps S100 to S103 shown in FIG. 3). Since the printer driver is already installed in the host PC 10, the host PC 10 shifts to the firmware data download process. Then, it is determined whether or not the printer is compatible with the firmware data using the device ID (corresponding to step S203). Thereafter, the firmware data is downloaded in the same manner as the above-described processing mode (corresponding to steps S205 to S207 and steps P200 to P204).
[0046]
According to the above embodiment, the following effects can be obtained.
(1) Continuing with the process of installing the printer driver, the firmware data is downloaded to the flash ROM 28 of the printer 20 and written into the flash ROM 28 after the installation. That is, firmware data is updated by performing a printer driver installation operation that is always performed to use the printer. Therefore, it is not necessary to manually perform settings for download and the like, and the firmware data is automatically downloaded. Therefore, the firmware data can be easily downloaded. Further, the update is performed without the user being aware that the firmware data is being updated. Further, unlike the related art, since the firmware data is not downloaded together with the print processing, the print processing is not affected.
[0047]
(2) Using the device ID at the time of plug and play, it is determined whether or not the firmware data corresponds to the printer. For this reason, an unsuitable printer can be easily and reliably identified. If the printer does not correspond, the firmware data is not downloaded. Therefore, it is possible to prevent an error such as mistakenly downloading the firmware to an unsupported printer. Further, it is determined whether or not the firmware data corresponds to the printer by using a device ID that is inevitably used at the time of initial setting of the printer. Therefore, it is not necessary to provide a special determination process in the printer driver program executed by the host PC 10.
[0048]
(3) By operating both the power switch 29 and the paper feed switch 30, the printer 20 starts up in the download mode, and the host PC 10 recognizes the printer in that state and shifts itself to the download mode. Then, the firmware data is downloaded. For this reason, it is possible to set whether or not to download firmware data when the power of the printer is turned on, and it is possible to set the download mode by the above operation only when updating is desired.
[0049]
(4) Just by installing the printer driver stored in the CD-ROM 40, the firmware data attached to the printer driver is downloaded to the printer 20 and updated. For this reason, for example, when the user wants to change the specifications of the printer, it is possible only by obtaining the storage medium storing the printer driver and the firmware data corresponding to the change, and the printer can be easily customized. Conversely, it is easy for the printer provider to respond to the user's demands as described above, that is, the market.
[0050]
The above embodiment may be modified as follows.
(Modification 1) In the above embodiment, the printer 20 includes the parallel I / F 15, but the present invention may be applied to a printer including a plurality of I / Fs having different communication formats in addition to the parallel I / F 15. . In this case, an IPL writing program and firmware data corresponding to each I / F are provided in the printer driver. Then, the processing of the sequence chart shown in FIG. 4 is performed. The process up to the process of transmitting the reception preparation completion signal by the CPU 25 in Step P300 is the same as that of the above embodiment. Then, in step S300, the host PC 10 sends the IPL writing program and firmware data corresponding to the interface (parallel I / F in the above embodiment) used when transmitting the IPL mode shift command based on the function of the printer driver to the printer. Choose from drivers. Then, in step S301, the host PC 10 transmits the selected IPL writing program and firmware data to the printer 20. Then, in Step P301, the CPU 25 writes and updates the flash ROM 28 based on the IPL writing program and the firmware data. Note that the subsequent processing is the same as in the above embodiment, and a description thereof will be omitted. Further, instead of the host PC 10 selecting an interface from various interfaces as described above, the IPL writing program may be provided with a process of determining the interface.
[0051]
(Modification 2) In the above-described embodiment, the firmware data is always updated after the printer driver is installed. However, the printer driver may be provided with a function of selecting whether or not to update the firmware data. . In this case, for example, a screen for selecting whether or not to update the firmware data is displayed on a screen (not shown) of the host PC 10 by a function of the printer driver, and the user makes a selection. Thus, when it is not necessary to update the firmware data, the update can be omitted, so that the time required for downloading can be omitted.
[0052]
(Modification 3) The storage means is not limited to the CD-ROM 40, but may be an HDD such as a server. For example, the supply side of the printer 20 may publish a printer driver attached with firmware data on the WEB using a server, and the user may acquire the printer driver from the server.
[0053]
(Modification 4) A dual mode flash ROM may be used. Note that a dual mode flash ROM refers to a flash ROM that can perform reading and writing simultaneously. By using this, only the area in which the write program corresponding to the IPL write program of the above embodiment is stored is read-only, and other areas can be written. Therefore, by using a dual-mode flash ROM, the flash ROM itself can hold the write program, so that the CPU 25 does not need to acquire the IPL write program from the host PC 10. Therefore, in step S206 in the embodiment, the process of transmitting the IPL writing program by the host PC 10 is omitted, and the associated process on the printer 20 side is also omitted.
[0054]
(Modification 5) When downloading firmware data, new and old firmware data (for example, firmware data stored when the printer 20 is shipped) stored in the flash ROM 28 and firmware data attached to the printer driver are updated. May be determined by the host PC 10. Then, the download may be performed only when the firmware data attached to the printer driver is newer. This eliminates the need to download the old version of the firmware data.
[0055]
(Modification 6) Although the printer 20 is recognized by the plug-and-play function of the OS 12, the recognition method and timing vary depending on the OS, so the method and timing are not particularly limited. In the present embodiment, the OS is not particularly limited as long as the OS 12 can acquire identification information capable of identifying the printer 20, such as a device ID acquired by the plug and play function.
[0056]
(Variation 7) In the above embodiment, both the program data and the CG data making up the firmware data are downloaded to the printer 20, but only one of them may be downloaded. In this case, a function of setting with the printer driver which of the program data and the CG data is to be downloaded is required. With this, for example, only the CG data can be updated instead of updating all the firmware data. It becomes.
[0057]
(Modification 8) In the above embodiment, the host PC 10 and the printer 20 are connected to each other by the parallel I / F 15 so as to be capable of bidirectional communication. Connection may be possible. In this case, the plug and play function is performed not only when the host PC 10 and the printer 20 are turned on when the printer 20 is powered on, for example, in a state where the printer 20 is connected via the USB interface, but also when the printer 20 is powered on. Plug and play function works even when connected. Therefore, although the recognition timing is different from that of the above-described embodiment, the same effect as that of the above-described embodiment can be obtained.
[0058]
(Modification 9) In the above embodiment, the host PC 10 installed both the printer driver and the firmware data from the CD-ROM 40. However, only the printer driver may be installed in the OS 12. The firmware data may be read from the CD-ROM 40 at any time by the reading device 50 and downloaded to the printer 20.
[0059]
(Modification 10) When the download mode is set, the paper feed switch 30 is pressed together with the power switch 29. However, the download mode may be set by pressing together with a switch other than the paper feed switch 30. In particular, switches other than the power switch 29 are not limited.
[0060]
(Variation 11) In the above embodiment, the host PC 10 sets and detects the download mode based on the time when the installation process in step S201 is completed based on the printer driver, and downloads the firmware data. The timing for setting and detecting the download mode is not particularly limited as long as the host PC 10 can determine the end of the installation process based on the printer driver. For example, the download mode may be set and detected in the process of step S202 to download the firmware data.
[0061]
(Modification 12) Only firmware data may be updated using a storage unit such as a CD-ROM in which only firmware data is stored. In this case, it is possible to set the download mode by operating the power switch 29 of the printer 20 together with a predetermined switch (for example, the paper feed switch 30) as in the above embodiment.
[0062]
Next, technical ideas that can be grasped from the above-described embodiments and modified examples will be additionally described below.
(1) In the firmware download system according to any one of claims 2 to 6,
Determining whether firmware data stored in the host device is newer than firmware data stored in the printer in advance; and determining whether the firmware data stored in the host device is higher than the firmware data stored in the printer. The firmware download system downloads the firmware data to the printer when it is determined that the firmware is new.
[0063]
(2) The firmware data is stored in the host device in a state where the firmware data is attached to the printer driver, and the technical idea (1) is provided. The firmware download system described in 1.
[0064]
(3) The firmware download method according to claim 1, wherein the control unit on the host device side is set to a download mode based on an operation of installing the printer driver by the host device.
[0065]
(4) The host device determines whether the firmware data corresponds to the printer based on the printer identification information transmitted from the printer, and determines whether the firmware data corresponds to the printer. The firmware download method according to claim 1, wherein the firmware data is downloaded to the printer when it is determined that the firmware is to be downloaded.
[0066]
(5) The printer is configured to be communicable with a plurality of communication formats having different communication formats, and the host device downloads the firmware data as to which of the plurality of communication formats is connected to the printer. And determining the firmware data corresponding to the communication format from the storage unit and downloading the firmware data. The firmware download method according to any one of the preceding claims.
[Brief description of the drawings]
FIG. 1 is a block diagram illustrating a configuration of a host PC and a printer.
FIG. 2 is a sequence chart regarding firmware download.
FIG. 3 is a sequence chart relating to plug and play of an OS.
FIG. 4 is a sequence chart regarding firmware download.
[Explanation of symbols]
10 host computer (control means, setting means, detection means, mode detection means, download means, installation means, identification means) constituting the host device, 15 parallel interface (parallel I / F), 20 printer and 25 CPU, 28: Flash ROM as nonvolatile memory, 29: Power switch, 30: Paper feed switch.

Claims (9)

ホスト装置とプリンタとが双方向通信可能に接続されたことを検知するとともに、前記ホスト装置側の制御手段がダウンロードモードであることを検出すると、前記ホスト装置側の記憶手段からファームウェアデータを読み出して該ホスト装置から前記プリンタへダウンロードすることで当該プリンタの不揮発性メモリに該ファームウェアデータを書き込むことを特徴とするファームウェアダウンロード方法。When detecting that the host device and the printer are connected so that bidirectional communication is possible, and when the control device of the host device detects that the download mode is set, the firmware data is read from the storage device of the host device. A firmware download method, wherein the firmware data is written to a nonvolatile memory of the printer by downloading the firmware data from the host device to the printer. ホスト装置とプリンタとが双方向通信可能に接続されたことを検知する検知手段と、
ファームウェアデータをダウンロードするために前記ホスト装置の制御手段をダウンロードモードに設定する設定手段と、
前記ダウンロードモードを検出するモード検出手段と、
前記検知手段により前記ホスト装置と前記プリンタとが双方向通信可能に接続されたことが検知されるとともに、前記モード検出手段によりダウンロードモードが検出されると、該ホスト装置に記憶されているファームウェアデータを当該ホスト装置から前記プリンタへダウンロードして該プリンタの不揮発性メモリに書き込むダウンロード手段と
を備えたことを特徴とするファームウェアダウンロードシステム。
Detecting means for detecting that the host device and the printer are connected to enable bidirectional communication;
Setting means for setting the control means of the host device to a download mode for downloading firmware data;
Mode detection means for detecting the download mode,
When the detecting means detects that the host device and the printer are connected to enable bidirectional communication, and when the mode detecting means detects a download mode, firmware data stored in the host device is detected. Download means for downloading from the host device to the printer and writing the downloaded data to the nonvolatile memory of the printer.
前記ダウンロード手段は、前記検知手段による検知の後、前記プリンタの識別情報を当該プリンタから前記ホスト装置へ送らせ、前記プリンタから送られた識別情報を基に識別したプリンタに対応したファームウェアデータを当該プリンタにダウンロードすることを特徴とする請求項2に記載のファームウェアダウンロードシステム。The download unit, after detection by the detection unit, causes the printer to send identification information of the printer to the host device, and downloads firmware data corresponding to the identified printer based on the identification information sent from the printer. The firmware download system according to claim 2, wherein the firmware is downloaded to a printer. 請求項2又は請求項3に記載のファームウェアダウンロードシステムにおいて、前記ホスト装置にプリンタドライバをインストールするインストール手段を備え、前記設定手段は、前記インストール手段の動作に基づいて前記ホスト装置の制御手段をダウンロードモードに設定することを特徴とするファームウェアダウンロードシステム。4. The firmware download system according to claim 2, further comprising an installation unit for installing a printer driver in the host device, wherein the setting unit downloads the control unit of the host device based on an operation of the installation unit. A firmware download system, wherein the firmware download mode is set. 前記設定手段は、前記プリンタの電源スイッチをプリンタに備えられた所定のスイッチと共に操作されたことに基づいて前記ホスト装置の制御手段をダウンロードモードに設定することを特徴とする請求項2又は請求項3に記載のファームウェアダウンロードシステム。3. The apparatus according to claim 2, wherein the setting unit sets the control unit of the host device to a download mode based on an operation of a power switch of the printer together with a predetermined switch provided in the printer. 3. The firmware download system according to 3. 請求項2〜請求項5のいずれか一項に記載のファームウェアダウンロードシステムにおいて、前記ダウンロード手段により前記ファームウェアデータがダウンロードされる前に前記ホスト装置と前記プリンタとの通信形式を判断して該通信形式を特定する特定手段を備え、当該特定手段により特定された通信形式に基づき前記ダウンロード手段は、当該通信形式に対応したファームウェアデータを記憶手段から選択して読み出し、前記プリンタにダウンロードすることを特徴とするファームウェアダウンロードシステム。6. The firmware download system according to claim 2, wherein a communication format between the host device and the printer is determined before the firmware data is downloaded by the download unit. The download unit selects and reads firmware data corresponding to the communication format from the storage unit based on the communication format specified by the specification unit, and downloads the firmware data to the printer. Firmware download system. ホスト装置に接続されるプリンタに対してファームウェアデータをダウンロードする際に、前記ホスト装置が備えるコンピュータにより実行されるプログラムであって、
前記ホスト装置と前記プリンタとが双方向通信可能に接続されたことが検知された状態でダウンロードモードであるか否かを判断して当該ダウンロードモードを検出するステップと、
前記ダウンロードモードの検出に基づいて、前記ホスト装置側の記憶手段からファームウェアデータを読み出して前記プリンタにダウンロードするステップとを備えたことを特徴とするファームウェアダウンロードプログラム。
When downloading firmware data to a printer connected to the host device, a program executed by a computer provided in the host device,
Detecting the download mode by determining whether or not the download mode in a state where it is detected that the host device and the printer are connected for bidirectional communication,
A step of reading out firmware data from storage means on the host device side based on the detection of the download mode and downloading the firmware data to the printer.
請求項7に記載のファームウェアダウンロードプログラムにおいて、前記ダウンロードモードを検出するステップにおいてダウンロードモードが検出された後、前記プリンタから送信された識別情報を基に識別したプリンタが前記ファームウェアデータに対応するか否かを判断するステップを備え、
前記ファームウェアデータに対応するか否かを判断するステップにおいて、前記プリンタが前記ファームウェアデータに対応するものであると判断すると、前記記憶手段から前記ファームウェアデータを読み出して前記プリンタにダウンロードすることを特徴とするファームウェアダウンロードプログラム。
8. The firmware download program according to claim 7, wherein after the download mode is detected in the step of detecting the download mode, a printer identified based on identification information transmitted from the printer corresponds to the firmware data. Determining whether or not
In the step of determining whether to support the firmware data, if it is determined that the printer is compatible with the firmware data, the firmware data is read from the storage unit and downloaded to the printer. Firmware download program.
請求項7又は請求項8に記載のファームウェアデータダウンロードプログラムにおいて、前記ダウンロードモードを検出するステップは、プリンタドライバが前記ホスト装置にインストールされる処理に基づきダウンロードモードであると判断し、当該ダウンロードモードを検出するステップであることを特徴とするファームウェアダウンロードプログラム。9. The firmware data download program according to claim 7, wherein the step of detecting the download mode determines that the printer driver is in the download mode based on a process of installing the printer driver in the host device. A firmware download program, which is a detecting step.
JP2003128334A 2003-05-06 2003-05-06 Firmware download method, firmware download system, and firmware download program Pending JP2004334443A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2003128334A JP2004334443A (en) 2003-05-06 2003-05-06 Firmware download method, firmware download system, and firmware download program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003128334A JP2004334443A (en) 2003-05-06 2003-05-06 Firmware download method, firmware download system, and firmware download program

Publications (1)

Publication Number Publication Date
JP2004334443A true JP2004334443A (en) 2004-11-25

Family

ID=33504532

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003128334A Pending JP2004334443A (en) 2003-05-06 2003-05-06 Firmware download method, firmware download system, and firmware download program

Country Status (1)

Country Link
JP (1) JP2004334443A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006202033A (en) * 2005-01-20 2006-08-03 Fuji Xerox Co Ltd Printer system, recording medium and installation method
WO2006106689A1 (en) * 2005-03-31 2006-10-12 Pioneer Corporation Upgrade module, application program, server, and upgrade module distribution system
JP2010287099A (en) * 2009-06-12 2010-12-24 Ricoh Co Ltd Information processing apparatus, installer program and storage medium
JP2016128227A (en) * 2015-01-09 2016-07-14 セイコーエプソン株式会社 Printer, control method of the same, and printing system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006202033A (en) * 2005-01-20 2006-08-03 Fuji Xerox Co Ltd Printer system, recording medium and installation method
WO2006106689A1 (en) * 2005-03-31 2006-10-12 Pioneer Corporation Upgrade module, application program, server, and upgrade module distribution system
JPWO2006106689A1 (en) * 2005-03-31 2008-09-11 パイオニア株式会社 Application program
JP4713579B2 (en) * 2005-03-31 2011-06-29 パイオニア株式会社 Application program
JP2010287099A (en) * 2009-06-12 2010-12-24 Ricoh Co Ltd Information processing apparatus, installer program and storage medium
JP2016128227A (en) * 2015-01-09 2016-07-14 セイコーエプソン株式会社 Printer, control method of the same, and printing system

Similar Documents

Publication Publication Date Title
JP2010044579A (en) Peripheral device, program, and driver installation system
JP6543122B2 (en) INFORMATION PROCESSING APPARATUS, METHOD OF INITIALIZING NONVOLATILE STORAGE DEVICE BY THE INFORMATION PROCESSING APPARATUS, AND PROGRAM
US8612969B2 (en) Electronic device
JP6141240B2 (en) Printing apparatus, storage control apparatus connected to printing apparatus, printing apparatus control method and program
US20060158680A1 (en) Printer system, recording medium and install method
JP2006243997A (en) Download system
US20070150072A1 (en) Method for controlling electronic apparatus, program for controlling electronic apparatus, electronic apparatus, and recording apparatus
US20080231868A1 (en) Information processing apparatus and driver control method
JP2004334443A (en) Firmware download method, firmware download system, and firmware download program
JP4645654B2 (en) Printing system, printing apparatus, and printing apparatus maintenance method
KR100503484B1 (en) Image forming device
US10120677B2 (en) Method of rewriting printer firmware, and printer
JP5146000B2 (en) Control apparatus, image processing apparatus, memory information storage control method, memory information storage control program, and storage medium
JP5803598B2 (en) Image forming apparatus
JP2021094749A (en) Image forming device
JP2008059360A (en) Printer
JP2001344156A (en) Device with flash memory and data rewriting method
JP4366207B2 (en) PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM
JP3572861B2 (en) Printing equipment
JP7516126B2 (en) Control device, activation method thereof, and electrical device
JP2009245098A (en) Program-updating method and computer system
JP7031211B2 (en) Electronics
JPH06219021A (en) Image forming device
JP2000020262A (en) Printer device
JP6415633B2 (en) Information processing apparatus and control method thereof