JP4366207B2 - PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM - Google Patents

PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM Download PDF

Info

Publication number
JP4366207B2
JP4366207B2 JP2004041651A JP2004041651A JP4366207B2 JP 4366207 B2 JP4366207 B2 JP 4366207B2 JP 2004041651 A JP2004041651 A JP 2004041651A JP 2004041651 A JP2004041651 A JP 2004041651A JP 4366207 B2 JP4366207 B2 JP 4366207B2
Authority
JP
Japan
Prior art keywords
memory
program
firmware program
option
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2004041651A
Other languages
Japanese (ja)
Other versions
JP2005231135A (en
Inventor
陽二 古谷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 JP2004041651A priority Critical patent/JP4366207B2/en
Publication of JP2005231135A publication Critical patent/JP2005231135A/en
Application granted granted Critical
Publication of JP4366207B2 publication Critical patent/JP4366207B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Description

本発明は、エンジン部に印刷を実行させるコントローラ部のフラッシュROM内、或いはオプションROMスロットに挿入されているオプションROM内のデータ圧縮されたコントローラファームプログラムをデータ伸張してRAM上に展開し起動するプリンタ等に適用可能な印刷制御装置、印刷装置、プログラム起動方法、及びプログラムに関する。   According to the present invention, a controller firmware program in which data is compressed in a flash ROM of a controller unit that causes an engine unit to execute printing or in an option ROM inserted in an option ROM slot is decompressed, expanded on a RAM, and started. The present invention relates to a print control apparatus, a printing apparatus, a program starting method, and a program applicable to a printer or the like.

従来、上記のコントローラ部とエンジン部を備えたプリンタにおいては、コントローラ部の制御を司るコントローラファームプログラム本体がコントローラ部のマスクROMに内蔵され、プリンタの電源オンと同時に、マスクROM上でコントローラファームプログラムが起動されて動作していた。しかし、マスクROMではプログラムの書き換えができないので、障害が発生した場合のユーザへの障害対応プログラムの配布が難しかった。   2. Description of the Related Art Conventionally, in a printer having the above-described controller unit and engine unit, a controller firmware program main body that controls the controller unit is built in the mask ROM of the controller unit. Was up and running. However, since the program cannot be rewritten in the mask ROM, it is difficult to distribute the failure handling program to the user when a failure occurs.

即ち、障害対応プログラムを配布する方法としては、新規に、障害対応プログラムを内蔵したマスクROMを作成し、該マスクROMをコントローラボードに取り付けて準備しておき、障害発生を通知してきたユーザ(クレームユーザ)をその都度訪問して、各ユーザの1台1台のコントローラボードを交換することも考えられる。しかし、このような方法は時間と費用が莫大なものにならざるを得なかった。   That is, as a method of distributing the failure handling program, a user who has newly created a mask ROM containing the failure handling program, prepared the mask ROM by attaching it to the controller board, and notified the occurrence of the failure (claim) It is also conceivable to visit each user and exchange one controller board for each user. However, such a method has been enormous in time and cost.

このとき、バージョンアップしたマスクROMは、コントローラボードに直付けする場合と、或いは、オプションROM−DIMM(Dual Inline Memory Module)の形にしておいて、コントローラボードに設けてあるバグスロット(バージョンアップ専用のスロット)に挿入する場合とがあった。そして、ディップスイッチによって、直付けのマスクROMを起動するか、或いは、バグスロットのマスクROMを起動するか、を切り替えていた。当然ながら、コントローラボードは上記バグスロット以外にオプションROMスロットも備えている。   At this time, the upgraded mask ROM can be directly attached to the controller board, or in the form of an option ROM-DIMM (Dual Inline Memory Module), and a bug slot (only for version upgrade) provided on the controller board. In some slots). Then, the dip switch switches between starting the mask ROM directly attached or starting the mask ROM of the bug slot. Of course, the controller board also has an option ROM slot in addition to the bug slot.

上記何れの方法にしろ、バージョンアップしたコントローラファームプログラムをマスクROM化して障害発生に対処することは、時間及び費用の面でかなりの負担となっていたことに違いはない。   Regardless of which method is used, there is no doubt that it has been a considerable burden in terms of time and cost to deal with the occurrence of a failure by making the upgraded controller firmware program into a mask ROM.

そこで、上記マスクROMを、書き換え可能なフラッシュROMに変えて、障害対応プログラムをダウンロード可能な形にすることが考えられる。ダウンロード作業自体は、ユーザが容易に行うことができる。例えば、フラッシュROMとしてNAND型フラッシュROMを使用する場合、長所として安価であることや比較的大容量であること等が挙げられる。しかし、反対に欠点として、NAND型フラッシュROM上でプログラムを動作させると、フラッシュROMはアクセス速度が遅い関係から、プログラムの動作が非常に遅くなって実用に耐えないという問題がある。   Therefore, it is conceivable to change the mask ROM into a rewritable flash ROM so that the failure handling program can be downloaded. The download operation itself can be easily performed by the user. For example, when a NAND flash ROM is used as the flash ROM, there are advantages such as being inexpensive and a relatively large capacity. However, as a disadvantage, when a program is operated on a NAND flash ROM, there is a problem that the operation of the program is very slow because the access speed of the flash ROM is slow, so that it cannot be put into practical use.

一方、コントローラファームプログラム本体の大きさも、その機能追加によってマスクROMの容量を超える大きさになり、コントローラファームプログラムをデータ圧縮してようやくマスクROMに格納することができるようになった。しかし、コントローラファームプログラムをデータ圧縮したままでは、マスクROM上でのコントローラファームプログラムの実行は不可能であるという問題がある。   On the other hand, the size of the controller firmware program main body also exceeds the capacity of the mask ROM due to the addition of the function, and the controller firmware program can be finally stored in the mask ROM after data compression. However, there is a problem that it is impossible to execute the controller firmware program on the mask ROM if the controller firmware program is compressed.

上記2つの問題から、フラッシュROMに格納されたデータ圧縮されたコントローラファームプログラム本体を、プリンタの電源オン時に、データ伸張しながらRAM上に展開して、RAM上でコントローラファームプログラムを実行することが考えられる。   Due to the above two problems, the controller firmware program body compressed in data stored in the flash ROM is expanded on the RAM while the data is decompressed when the printer is turned on, and the controller firmware program is executed on the RAM. Conceivable.

他方、上述したオプションROMスロットにオプションROMが挿入され、システムが電源オンされた場合、フラッシュROMのプログラムをバージョンアップする技術(「処理システム、プログラムの更新方法およびシステムの起動方法」)が提案されている(例えば、特許文献1参照)。
特開平11−249883号公報
On the other hand, when the option ROM is inserted into the above-described option ROM slot and the system is powered on, a technique for upgrading the flash ROM program ("processing system, program update method and system startup method") has been proposed. (For example, refer to Patent Document 1).
Japanese Patent Application Laid-Open No. 11-249883

上記プリンタで使用するコントローラファームプログラムを格納する手段としてフラッシュROMを用いた技術では、コントローラファームプログラムのバージョンアップを行おうとする場合、ユーザ自身が、データ圧縮されたコントローラファームプログラムを、プリンタのコントローラ部内蔵のフラッシュROMにダウンロードする方法が基本である。   In a technique using a flash ROM as a means for storing a controller firmware program used in the printer, when the version of the controller firmware program is to be upgraded, the user himself / herself downloads the data-compressed controller firmware program to the printer controller unit. The basic method is to download to the built-in flash ROM.

しかし、ユーザが大口顧客で、バージョンアップ対象のプリンタが大量にある場合は、プリンタの1台1台に対するコントローラファームプログラムのダウンロードは作業時間がかかりすぎ現実的でない。そこで、バージョンアップしたコントローラファームプログラムをセットしたオプションROMを、プリンタの1台1台に装備されているオプションROMスロットにセットする方法の方が、より利便性が高い。   However, if the user is a large customer and there are a large number of printers to be upgraded, it is not practical to download the controller firmware program for each printer because it takes too much work time. Therefore, the method of setting the option ROM in which the upgraded controller firmware program is set in the option ROM slot provided in each printer is more convenient.

但し、このとき問題になるのは、プリンタに装備されているオプションROMスロットが1つだけの場合、1枚のオプションROMに、バージョンアップしたコントローラファームプログラムか或いはオプションエミュレーションプログラムの何れかしかセットできないとすると、バージョンアップしたコントローラファームプログラムとオプションエミュレーションプログラムを同時には使えないという点である。   However, the problem here is that if the printer has only one option ROM slot, only one of the upgraded controller firmware program or option emulation program can be set in one option ROM. Then, the upgraded controller firmware program and option emulation program cannot be used at the same time.

以上、従来技術の課題をまとめると次のようになる。   The problems of the conventional technology are summarized as follows.

第1の課題は、コントローラファームプログラムのバージョンアップ方法として、バージョンアップしたコントローラファームプログラムをコントローラ部内蔵のフラッシュROMにダウンロードして起動する方法以外に、オプションROMスロットに、バージョンアップしたコントローラファームプログラムがセットされたオプションROMを挿入して、コントローラファームプログラムを起動する方法を可能にすることである。   The first problem is that, as a method for upgrading the controller firmware program, there is a method for upgrading the controller firmware program in the option ROM slot in addition to the method of downloading and starting the upgraded controller firmware program into the flash ROM built in the controller unit. Inserting a set option ROM to enable a method to start the controller firmware program.

第2の課題は、コントローラ部内蔵のフラッシュROM内のコントローラファームプログラムと、オプションROM内のコントローラファームプログラムとのうち何れを起動するかを自動的に判別して、コントローラファームプログラムを実行することである。   The second problem is to automatically determine which of the controller firmware program in the flash ROM built in the controller unit and the controller firmware program in the option ROM is to be activated, and execute the controller firmware program. is there.

第3の課題は、プリンタに装備されているオプションROMスロットが1つの場合でも、オプションROMを用いて、バージョンアップしたコントローラファームプログラムとオプションエミュレーションプログラムを同時に動作可能とすることである。   A third problem is to enable the upgraded controller firmware program and the option emulation program to operate simultaneously using the option ROM even when the printer has one option ROM slot.

本発明の目的は、バージョンアップしたファームプログラムを第1のメモリにダウンロードして起動する方法以外に、メモリスロットにオプションメモリを挿入してファームプログラムを起動することなどを可能とした印刷制御装置、印刷装置、プログラム起動方法、及びプログラムを提供することにある。   An object of the present invention is to provide a print control apparatus capable of starting an firmware program by inserting an optional memory into a memory slot, in addition to a method of downloading and starting an upgraded firmware program to a first memory, To provide a printing apparatus, a program starting method, and a program.

上述の目的を達成するために、本発明の印刷制御装置は、ファームプログラムがダウンロード可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備え、印刷手段に印刷を実行させる印刷制御装置であって、前記メモリスロットに前記オプションメモリが挿入されているか否か、前記オプションメモリ内にファームプログラムが有るか否かを判別する第1の判別手段と、前記第1のメモリ内のファームプログラムが正しいか否かを判別する第2の判別手段と、前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有ると判別された場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第1の起動手段と、前記メモリスロットにオプションメモリが挿入されていないと判別された場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しいと判別された場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第2の起動手段と、前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しくないと判別された場合、外部からファームプログラムをダウンロードして前記第1のメモリに記憶するダウンロードモジュールと、を備えることを特徴とする。 In order to achieve the above object, a printing control apparatus according to the present invention includes a first memory in which a firmware program can be downloaded, a memory slot in which an optional memory can be inserted, and a second memory. A printing control apparatus for executing printing, wherein: a first determination unit configured to determine whether the option memory is inserted in the memory slot; and whether a firmware program is present in the option memory; Second discriminating means for discriminating whether or not the firmware program in one memory is correct; and when the option memory is inserted into the memory slot and it is determined that there is a firmware program in the option memory, the option A first starting means for copying and starting the firmware program in the memory to the second memory; When it is determined that no option memory is inserted in the memory slot, or when it is determined that there is no firmware program in the option memory even if the option memory is inserted in the memory slot, and the first When it is determined that the firmware program in the memory is correct , an option memory is inserted into the memory slot and second startup means for copying and starting the firmware program in the first memory to the second memory. If it is determined that there is no firmware program in the option memory, and if it is determined that the firmware program in the first memory is not correct, the firmware program is downloaded from the outside and the first program is downloaded. Patent in that it comprises a download module to be stored in the memory To.

また、本発明の印刷制御装置は、前記オプションメモリ及び前記第1のメモリ内のファームプログラムは、バージョンアップされると共にデータ圧縮されていることを特徴とする。   The print control apparatus according to the present invention is characterized in that the option memory and the firmware program in the first memory are upgraded and data compressed.

また、本発明の印刷制御装置は、前記オプションメモリ内のデータ圧縮されたファームプログラムと、前記第1のメモリ内のデータ圧縮されたファームプログラムとのうち、前記オプションメモリ内のデータ圧縮されたファームプログラムを優先して前記第2のメモリにコピーし、前記第2のメモリ上でデータ伸張し展開して起動する第3の起動手段を備えることを特徴とする。   The print control apparatus according to the present invention includes a firmware program in which data is compressed in the option memory among a firmware program in which data is compressed in the option memory and a firmware program in which data is compressed in the first memory. It is characterized by comprising third starting means for preferentially copying the program to the second memory, decompressing and expanding the data on the second memory, and starting the program.

また、本発明の印刷制御装置は、前記オプションメモリ内のデータ圧縮されたファームプログラムのバージョンと、前記第1のメモリ内のデータ圧縮されたファームプログラムのバージョンとの比較に基づき、新しいバージョンのデータ圧縮されたファームプログラムを優先して前記第2のメモリにコピーし、前記第2のメモリ上でデータ伸張し展開して起動する第4の起動手段とを備えることを特徴とする。   Further, the print control apparatus according to the present invention may be configured such that a new version of data is based on a comparison between a version of the firmware program compressed in the option memory and a version of the firmware program compressed in the first memory. And a fourth activation unit that preferentially copies the compressed firmware program to the second memory, decompresses and expands the data on the second memory, and activates the fourth firmware.

また、本発明の印刷制御装置は、前記オプションメモリ内にデータ圧縮されたファームプログラム及びデータ圧縮されたエミュレーションプログラムが有ると判別された場合、前記オプションメモリ内のデータ圧縮されたファームプログラムを優先して前記第2のメモリにコピーし、前記第2のメモリ上でデータ伸張し展開して起動する第5の起動手段を備えることを特徴とする。   In addition, when it is determined that there is a data compressed firmware program and a data compressed emulation program in the option memory, the print control apparatus of the present invention gives priority to the data compressed firmware program in the option memory. And fifth starting means for copying to the second memory, decompressing and expanding data on the second memory, and starting the data.

また、本発明の印刷制御装置は、前記第1のメモリには、データ圧縮されたファームプログラムを前記第1のメモリにダウンロードするダウンロードプログラムが前記第2のメモリ上で起動可能に格納されており、ダウンロード指示があった場合、或いは前記第1のメモリ内のデータ圧縮されたファームプログラムが不正な場合、前記ダウンロードプログラムを起動する直前で、前記第1のメモリ内の前記ダウンロードプログラムを前記第2のメモリにコピーする複写手段を備えることを特徴とする。   In the print control apparatus of the present invention, a download program for downloading a data-compressed firmware program to the first memory is stored in the first memory so as to be bootable on the second memory. If there is a download instruction, or if the data-compressed firmware program in the first memory is invalid, the download program in the first memory is stored in the second memory immediately before the download program is activated. A copying means for copying to the memory is provided.

また、本発明の印刷制御装置は、前記第2の判別手段は、外部から供給されたデータ圧縮されたファームプログラムに付加されたチェックサムと、前記ファームプログラムの前記第1のメモリに対するダウンロード後のチェックサム計算値との比較に基づき、前記第1のメモリ内のファームプログラムが正しいか否かを判別することを特徴とする。   In the printing control apparatus of the present invention, the second determination means includes a checksum added to the data-compressed firmware program supplied from the outside, and the firmware program after being downloaded to the first memory. Based on the comparison with the checksum calculation value, it is determined whether or not the firmware program in the first memory is correct.

上述の目的を達成するために、本発明の印刷装置は、前記何れかに記載の印刷制御装置を備えたことを特徴とする。   In order to achieve the above object, a printing apparatus according to the present invention includes any one of the print control apparatuses described above.

上述の目的を達成するために、本発明のプログラム起動方法は、ファームプログラムがダウンロード可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備えた印刷制御装置のプログラム起動方法であって、前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有ると判別した場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動し、前記メモリスロットにオプションメモリが挿入されていないと判別した場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別した場合で、且つ前記第1のメモリ内のファームプログラムが正しいと判別した場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動し、前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別した場合で、且つ前記第1のメモリ内のファームプログラムが正しくないと判別した場合、外部からファームプログラムをダウンロードして前記第1のメモリに記憶することを特徴とする。 In order to achieve the above object, a program starting method according to the present invention includes a first memory in which a firmware program can be downloaded, a memory slot in which an optional memory can be inserted, and a second memory. When the option memory is inserted into the memory slot and it is determined that there is a firmware program in the option memory, the firmware program in the option memory is copied to the second memory. And when it is determined that no optional memory is inserted in the memory slot, or when it is determined that there is no firmware program in the optional memory even if the optional memory is inserted in the memory slot, and If the firmware program in memory 1 is correct If you separate, and start copying the firmware program in the first memory to the second memory, the be inserted optional memory in the memory slot is determined that the farm program is not in said optional memory If the firmware program in the first memory is determined to be incorrect, the firmware program is downloaded from the outside and stored in the first memory .

上述の目的を達成するために、本発明のプログラムは、ファームプログラムがダウンロード可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備えた印刷制御装置のプログラム起動方法をコンピュータに実行させるプログラムであって、前記メモリスロットに前記オプションメモリが挿入されているか否か、前記オプションメモリ内にファームプログラムが有るか否かを判別する第1の判別モジュールと、前記第1のメモリ内のファームプログラムが正しいか否かを判別する第2の判別モジュールと、前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有ると判別された場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第1の起動モジュールと、前記メモリスロットにオプションメモリが挿入されていないと判別された場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しいと判別された場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第2の起動モジュールと、前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しくないと判別された場合、外部からファームプログラムをダウンロードして前記第1のメモリに記憶するダウンロードモジュールと、を備えることを特徴とする。 In order to achieve the above-described object, a program of the present invention is a program for a print control apparatus including a first memory in which a firmware program can be downloaded, a memory slot in which an optional memory can be inserted, and a second memory. A program for causing a computer to execute a startup method, the first determination module for determining whether or not the option memory is inserted in the memory slot and whether or not there is a firmware program in the option memory; and A second determination module for determining whether or not the firmware program in the first memory is correct; and when the option memory is inserted into the memory slot and it is determined that there is a firmware program in the option memory, The firmware program in the option memory is stored in the second memory. If it is determined that the option memory is not inserted into the first activation module to be copied and activated, or the option memory is inserted into the memory slot, the firmware program is stored in the option memory. When it is determined that there is no firmware, and it is determined that the firmware program in the first memory is correct, the firmware program in the first memory is copied to the second memory and activated. When it is determined that there is no firmware program in the option memory even if an option memory is inserted in the activation module and the memory slot, and the firmware program in the first memory is determined to be incorrect The firmware program is downloaded from the outside and the first memory is downloaded. A download module configured to store, characterized in that it comprises a.

更に、本発明は、ファームプログラムとローダプログラムが格納可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備えた印刷制御装置において、前記ローダプログラムは、前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有る場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動し、前記メモリスロットにオプションメモリが挿入されていない場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無い場合で、且つ前記第1のメモリ内のファームプログラムが正しい場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動する構成としてもよい。   Furthermore, the present invention provides a print control apparatus comprising a first memory capable of storing a firmware program and a loader program, a memory slot into which an optional memory can be inserted, and a second memory, wherein the loader program includes When the option memory is inserted in the memory slot and the firmware program is in the option memory, the firmware program in the option memory is copied to the second memory and started, and the option memory is inserted in the memory slot. If there is no firmware program in the option memory even if an optional memory is inserted in the memory slot, and if the firmware program in the first memory is correct, the memory in the first memory The farm program is the second memo It may be configured to start by copying the.

本発明によれば、メモリスロットにオプションメモリが挿入され、オプションメモリ内にファームプログラムが有る場合、オプションメモリ内のファームプログラムを第2のメモリにコピーして起動し、メモリスロットにオプションメモリが挿入されていない場合、或いはメモリスロットに挿入されたオプションメモリ内にファームプログラムが無い場合で、且つ第1のメモリ内のファームプログラムが正しい場合、第1のメモリ内のファームプログラムを第2のメモリにコピーして起動し、メモリスロットにオプションメモリが挿入されていてもオプションメモリ内にファームプログラムが無いと判別した場合で、且つ第1のメモリ内のファームプログラムが正しくないと判別した場合、外部からファームプログラムをダウンロードして第1のメモリに記憶するため、個人ユーザ向けに好適な前者の起動方法と、大口ユーザ向けに好適な後者の起動方法とを適宜実行することが可能となることで、広範なユーザに対応することができる。 According to the present invention, when an optional memory is inserted in the memory slot and the firmware program is in the optional memory, the firmware program in the optional memory is copied to the second memory and started, and the optional memory is inserted in the memory slot. If there is no firmware program in the optional memory inserted in the memory slot and the firmware program in the first memory is correct, the firmware program in the first memory is transferred to the second memory. If it is determined that there is no firmware program in the option memory even if the option memory is inserted in the memory slot and the firmware program in the first memory is determined to be incorrect, Download the farm program For storage in the memory, the start method of the preferred former personal users, that it becomes possible to perform a suitable latter activation methods for large user appropriately to correspond to a wide range of users it can.

また、本発明によれば、オプションメモリ内のファームプログラムと、第1のメモリ内のファームプログラムとのうち、オプションメモリ内のファームプログラムを優先して第2のメモリにコピーし、第2のメモリ上で展開して起動するため、大口ユーザ向けの場合に好適であると共に、従来のように手動で起動する側を切り替える手間を省くことができる。   According to the present invention, the firmware program in the option memory is preferentially copied to the second memory among the firmware program in the option memory and the firmware program in the first memory, and the second memory is copied. Since it is deployed and activated above, it is suitable for large users, and it is possible to save the trouble of manually switching the activation side as in the prior art.

また、本発明によれば、オプションメモリ内のデータ圧縮されたファームプログラムのバージョンと、第1のメモリ内のデータ圧縮されたファームプログラムのバージョンとのうち、新しいバージョンの方を優先して第2のメモリにコピーし起動するため、常に最新バージョンのファームプログラムを起動することができる。   Further, according to the present invention, the second version is given priority to the new version of the version of the firmware program compressed in the option memory and the version of the firmware program compressed in the first memory. The latest version of the firmware program can always be started because the program is copied to the memory and started.

また、本発明によれば、オプションメモリ内にデータ圧縮されたファームプログラム及びデータ圧縮されたエミュレーションプログラムが有ると判別された場合、オプションメモリ内のデータ圧縮されたファームプログラムを優先して第2のメモリにコピーし、第2のメモリ上でデータ伸張し展開して起動するため、メモリスロットが1つの場合でも、オプションメモリを用いて、バージョンアップしたファームプログラムとエミュレーションプログラムを同時に動作させることが可能となる。   Further, according to the present invention, when it is determined that there is a data-compressed firmware program and a data-compressed emulation program in the option memory, the second data is given priority to the data-compressed firmware program in the option memory. Since it is copied to the memory, the data is expanded and expanded on the second memory, and activated, even if there is only one memory slot, the upgraded firmware program and emulation program can be operated simultaneously using the optional memory. It becomes.

また、本発明によれば、ダウンロード指示があった場合、或いは第1のメモリ内のデータ圧縮されたファームプログラムが不正な場合、ダウンロードプログラムを起動する直前で、第1のメモリ内のダウンロードプログラムを第2のメモリにコピーするため、印刷制御装置が搭載される印刷装置の電源オン時におけるダウンロードプログラムの第2のメモリに対するコピー工程を省くことができ、印刷装置の立ち上がり時間を節約することができる。   Further, according to the present invention, when there is a download instruction, or when the data-compressed firmware program in the first memory is invalid, the download program in the first memory is downloaded immediately before starting the download program. Since copying to the second memory is performed, the copy process for the second memory of the download program when the printing apparatus on which the printing control apparatus is mounted is turned on can be omitted, and the rise time of the printing apparatus can be saved. .

また、本発明によれば、外部から供給されたデータ圧縮されたファームプログラムのチェックサムと、ファームプログラムの第1のメモリへのダウンロード後のチェックサム計算値とを比較し、第1のメモリ内のファームプログラムが正しいか否かを判別するため、ファームプログラムが正しくダウンロードされたかどうかを確認することができる。   In addition, according to the present invention, the checksum of the firmware program compressed from the outside and compressed with the checksum calculation value after downloading the firmware program to the first memory is compared, In order to determine whether the firmware program is correct, it is possible to check whether the firmware program has been downloaded correctly.

以下、本発明の実施の形態を図面に基づき説明する。   Hereinafter, embodiments of the present invention will be described with reference to the drawings.

[第1の実施の形態]
図1は、本発明の第1の実施の形態に係る印刷装置としてのプリンタのコントローラ部及びエンジン部の構成を示すブロック図である。
[First Embodiment]
FIG. 1 is a block diagram illustrating a configuration of a controller unit and an engine unit of a printer as a printing apparatus according to a first embodiment of the present invention.

図1において、プリンタ1は、コントローラ部2とエンジン部3とを備えている。コントローラ部2は、パーソナルコンピュータ等のホストマシンから送信される印刷データを受信して、印刷データからページイメージを作成し、そのページイメージをビデオ信号に変換してエンジン部3に送信することで、ページイメージの印刷を実行させる。エンジン部3は、コントローラ部2からのページイメージのビデオ信号を受信し、コントローラ部2の指示に従って、用紙に対するページイメージの画像形成(現像、転写、定着)及び画像形成が完了した用紙の排紙を実行する。   In FIG. 1, the printer 1 includes a controller unit 2 and an engine unit 3. The controller unit 2 receives print data transmitted from a host machine such as a personal computer, creates a page image from the print data, converts the page image into a video signal, and transmits the video signal to the engine unit 3. Print the page image. The engine unit 3 receives the video signal of the page image from the controller unit 2, and in accordance with an instruction from the controller unit 2, image formation (development, transfer, fixing) of the page image on the sheet and discharge of the sheet on which image formation has been completed Execute.

まず、コントローラ部2を構成する要素の詳細を説明する。CPU4は、コントローラ部2全体を制御するものであり、図3乃至図6のフローチャートに示す処理を実行する。フラッシュROM5には、データ圧縮されたコントローラファームプログラムが格納されている。RAM6には、フラッシュROM5に格納されているデータ圧縮されたコントローラファームプログラムがデータ伸張された後、セットされる。その後、コントローラファームプログラムが起動されることで、プリンタとしての動作が開始される。   First, details of the elements constituting the controller unit 2 will be described. The CPU 4 controls the entire controller unit 2 and executes the processes shown in the flowcharts of FIGS. The flash ROM 5 stores a controller firmware program whose data has been compressed. The RAM 6 is set after the controller firmware program compressed in data stored in the flash ROM 5 is decompressed. Thereafter, the controller firmware program is started, and the operation as a printer is started.

また、RAM6は、各種プログラムが動作する際のワーク領域として使用される。プリンタ1が外部インターフェース部12を介してホストマシンから受信した印刷データは、RAM6内に設けられた受信バッファに一時保存される。受信バッファ内の印刷データを基に描画・生成されるページイメージも、RAM6上に作成される。   The RAM 6 is used as a work area when various programs operate. Print data received by the printer 1 from the host machine via the external interface unit 12 is temporarily stored in a reception buffer provided in the RAM 6. A page image drawn and generated based on the print data in the reception buffer is also created on the RAM 6.

オプションROMスロット7は、コントローラ部2に例えば1つ装備されている。オプションROMスロット7には、オプションROM8が挿入可能である。オプションROM8も、実際はフラッシュROMで構成されている。オプションROM8には、ROMライタを用いて各種プログラムがダウンロードされて作成される。   For example, one option ROM slot 7 is provided in the controller unit 2. An option ROM 8 can be inserted into the option ROM slot 7. The option ROM 8 is also actually a flash ROM. Various programs are downloaded and created in the option ROM 8 using a ROM writer.

オプションROM8は、内蔵するプログラムによって3種類に分類される。即ち、「データ圧縮したコントローラファームプログラム」のみが格納されたオプションROM、「データ圧縮したオプションエミュレーションプログラム」のみが格納されたオプションROM、「データ圧縮されたコントローラファームプログラム及びデータ圧縮したオプションエミュレーションプログラム」が格納されたオプションROM、の3種類である。   The option ROM 8 is classified into three types according to the built-in program. That is, an option ROM storing only “data compressed controller firmware program”, an option ROM storing only “data compressed option emulation program”, “data compressed controller firmware program and data compressed option emulation program” There are three types of option ROMs in which are stored.

パネルインターフェース9は、例えば液晶から構成された表示部及びキー入力部を備えたパネル(不図示)との間のインターフェースを司る。ユーザがパネルの表示内容を見ながらキーを用いてプリンタ1の設定(例えば印刷枚数や用紙サイズ等の設定)を行うことができる。コントローラ側通信部10は、エンジン部3のエンジン側通信部16と通信を行う。コントローラ部2からは、コントローラ側通信部10を通じてエンジン部3の制御やエンジン部3の状態の取得を行うことができる。   The panel interface 9 serves as an interface with a panel (not shown) having a display unit and a key input unit made of, for example, liquid crystal. The user can make settings of the printer 1 (for example, settings such as the number of prints and the paper size) using the keys while viewing the display content on the panel. The controller side communication unit 10 communicates with the engine side communication unit 16 of the engine unit 3. From the controller unit 2, it is possible to control the engine unit 3 and acquire the state of the engine unit 3 through the controller-side communication unit 10.

ビデオ信号変換部11は、RAM6上に作成されたページイメージをビデオ信号に変換してエンジン部3に送信する。外部インターフェース部12は、ホストマシンから送信される印刷データを受信し、RAM6上の受信バッファにセットする機能を有する。外部インターフェース部12の具体的な例としては、ネットワークインターフェース、USB(Universal Serial Bus)インターフェース、セントロニクスインターフェース等を挙げることができる。   The video signal conversion unit 11 converts the page image created on the RAM 6 into a video signal and transmits it to the engine unit 3. The external interface unit 12 has a function of receiving print data transmitted from the host machine and setting it in a reception buffer on the RAM 6. Specific examples of the external interface unit 12 include a network interface, a USB (Universal Serial Bus) interface, and a Centronics interface.

次に、エンジン部3を構成する要素の詳細を説明する。CPU13は、エンジン部3全体を制御する。ROM14には、エンジン部3の制御プログラムが格納されている。RAM15は、制御プログラムが動作する際のワーク領域として使用される。エンジン部3においては、ROM14に格納されている制御プログラムはROM14上で動作するものであり、コントローラ部2のように、フラッシュROM5からプログラムをRAM6上にコピーして動作させることはしない。   Next, details of elements constituting the engine unit 3 will be described. The CPU 13 controls the entire engine unit 3. The ROM 14 stores a control program for the engine unit 3. The RAM 15 is used as a work area when the control program operates. In the engine unit 3, the control program stored in the ROM 14 operates on the ROM 14, and unlike the controller unit 2, the program is not copied from the flash ROM 5 onto the RAM 6 and operated.

エンジン側通信部16は、コントローラ部2のコントローラ側通信部10と通信を行う。エンジン側通信部16は、コントローラ部2からの給紙指示等の制御コマンドを受信する機能と、エンジン部3の状態をコントローラ部2に知らせる通知コマンドを送信する機能を有する。ビデオ信号受信部17は、コントローラ部2から送られてくるページイメージのビデオ信号を受信する。ビデオ信号は現像・定着部19に送られる。   The engine side communication unit 16 communicates with the controller side communication unit 10 of the controller unit 2. The engine side communication unit 16 has a function of receiving a control command such as a paper feed instruction from the controller unit 2 and a function of transmitting a notification command for notifying the controller unit 2 of the state of the engine unit 3. The video signal receiving unit 17 receives the video signal of the page image sent from the controller unit 2. The video signal is sent to the developing / fixing unit 19.

給紙部18は、白紙の用紙を現像・定着部19の画像形成位置に給紙する。現像・定着部19は、レーザの照射により感光体上に形成した潜像を現像剤で現像し用紙上に転写して定着させる電子写真方式によって、現像・転写・定着からなる一連の画像形成工程を実行する。排紙部20は、現像・転写・定着後の用紙の排紙を行う。   The paper feeding unit 18 feeds blank paper to the image forming position of the developing / fixing unit 19. The developing / fixing unit 19 is a series of image forming steps consisting of developing, transferring, and fixing by an electrophotographic system in which a latent image formed on a photosensitive member by laser irradiation is developed with a developer, transferred onto a sheet, and fixed. Execute. The paper discharge unit 20 discharges paper after development, transfer, and fixing.

次に、本実施の形態のプリンタ1のコントローラ部2を中心とした動作を図2乃至図6を参照しながら詳細に説明する。以下では、コントローラファームプログラムのバージョンアップ方法として、バージョンアップしたコントローラファームプログラムをフラッシュROM5にダウンロードして起動する方法、バージョンアップしたコントローラファームプログラムがセットされたオプションROM8をオプションROMスロット7に挿入して起動する方法、等について説明する。   Next, the operation centering on the controller unit 2 of the printer 1 of the present embodiment will be described in detail with reference to FIGS. In the following, as a method for upgrading the controller firmware program, a method of downloading and starting the upgraded controller firmware program into the flash ROM 5 and inserting an option ROM 8 in which the upgraded controller firmware program is set into the option ROM slot 7 The starting method will be described.

図2は、プリンタ1のコントローラ部2の各種メモリ及び各種プログラムのコピーと起動の関係を示す図である。   FIG. 2 is a diagram showing a relationship between copying and starting various memories and various programs of the controller unit 2 of the printer 1.

図2において、コントローラ部2に内蔵及び装着される各種メモリとしては、ローダコピープログラム(複写手段に対応)、ローダプログラム(第1〜第2の判別手段、第1〜第5の起動手段に対応)、ダウンロードプログラム、データ圧縮されたコントローラファームプログラム(ファームプログラムに対応)を格納したフラッシュROM5と、ワーク領域、受信バッファを備えたRAM6と、オプションROMスロット7に挿入可能なオプションROM8とがある。尚、図示のようにフラッシュROM5は、固定部とダウンロード部とに分割されている。また、図示のオプションROM8の種類1、種類2、種類3は、上述した3つの種類に対応する。   In FIG. 2, various memories built in and attached to the controller unit 2 include a loader copy program (corresponding to copying means), and a loader program (corresponding to first to second discriminating means, first to fifth starting means). ), A flash ROM 5 that stores a download program, a data-compressed controller firmware program (corresponding to the firmware program), a RAM 6 that includes a work area and a reception buffer, and an option ROM 8 that can be inserted into the option ROM slot 7. As shown in the figure, the flash ROM 5 is divided into a fixed part and a download part. Also, the type 1, type 2, and type 3 of the option ROM 8 shown in the figure correspond to the above-described three types.

まず、プリンタ1が電源オンされると、フラッシュROM5上の固定部に格納されているローダコピープログラムが起動する。このローダコピープログラムだけはフラッシュROM5上で起動するが、フラッシュROM5はアクセス速度が遅いので該フラッシュROM5上のプログラムの動作も非常に遅いため、フラッシュROM5上で動作するのはこのローダコピープログラムだけである。   First, when the printer 1 is powered on, a loader copy program stored in a fixed part on the flash ROM 5 is activated. Only this loader copy program is started on the flash ROM 5, but since the access speed of the flash ROM 5 is slow, the operation of the program on the flash ROM 5 is also very slow. Therefore, only this loader copy program operates on the flash ROM 5. is there.

ローダコピープログラムは、同じくフラッシュROM5の固定部に格納されているローダプログラムをRAM6上のワーク領域にコピーし(図2の(1))、起動する。ローダコピープログラムが実行する処理はこれだけである。尚、フラッシュROM5からRAM6上へのローダプログラムのコピーを行う際は、CPU4のバースト転送機能を用いて、極力高速でローダプログラムのコピーを行う。プログラムのコピー動作において、CPU4のバースト転送機能を使用する点は、これ以降の記述でも同様である。   The loader copy program copies the loader program stored in the fixed part of the flash ROM 5 to the work area on the RAM 6 ((1) in FIG. 2) and starts up. This is the only process executed by the loader copy program. When the loader program is copied from the flash ROM 5 to the RAM 6, the loader program is copied as fast as possible by using the burst transfer function of the CPU 4. The point that the burst transfer function of the CPU 4 is used in the program copy operation is the same in the following description.

RAM6上で起動したローダプログラムは、フラッシュROM5上の固定部に格納されているダウンロードプログラムをRAM6上のワーク領域にコピーする(図2の(2))。この場合も、CPU4のバースト転送機能を使用し、高速にプログラムのコピーを行う。   The loader program started on the RAM 6 copies the download program stored in the fixed part on the flash ROM 5 to the work area on the RAM 6 ((2) in FIG. 2). In this case as well, the program is copied at high speed using the burst transfer function of the CPU 4.

そして、オプションROMスロット7にオプションROM8が挿入されていないか、或いは、オプションROMスロット7にオプションROM8が挿入されていても、オプションROM8内にデータ圧縮されたコントローラファームプログラムがなければ、フラッシュROM5上のダウンロード部に格納されているデータ圧縮されたコントローラファームプログラム本体が正しくダウンロードされたモジュールであるか否かをチェックする。   If the option ROM 8 is not inserted into the option ROM slot 7 or the option firmware 8 is inserted into the option ROM slot 7 and there is no controller firmware program whose data is compressed in the option ROM 8, it is stored on the flash ROM 5. It is checked whether or not the data-compressed controller firmware program main body stored in the download unit is a correctly downloaded module.

フラッシュROM5上のデータ圧縮されたコントローラファームプログラム本体が正しくダウンロードされたモジュールであると判断できれば、フラッシュROM5上のデータ圧縮されたコントローラファームプログラム本体を、そのままRAM6上のワーク領域にコピーする(図2の(3))。この場合も、CPU4のバースト転送機能を使用し、高速にプログラムのコピーを行う。   If it is determined that the data-compressed controller firmware program body on the flash ROM 5 is a correctly downloaded module, the data-compressed controller firmware program body on the flash ROM 5 is copied as it is to the work area on the RAM 6 (FIG. 2). (3)). In this case as well, the program is copied at high speed using the burst transfer function of the CPU 4.

一方、オプションROMスロット7にオプションROM8が挿入されていて、オプションROM8内にデータ圧縮されたコントローラファームプログラムがある場合には、オプションROM8内のデータ圧縮されたコントローラファームプログラムをRAM6上のワーク領域にコピーする(図2の(3))。この場合も、CPU4のバースト転送機能を使用し、高速にプログラムのコピーを行う。   On the other hand, if the option ROM 8 is inserted in the option ROM slot 7 and the controller firmware program with data compressed is stored in the option ROM 8, the controller firmware program with data compressed in the option ROM 8 is stored in the work area on the RAM 6. Copy ((3) in FIG. 2). In this case as well, the program is copied at high speed using the burst transfer function of the CPU 4.

その後、RAM6上のワーク領域にあるデータ圧縮されたコントローラファームプログラム本体をデータ伸張しながら、RAM6上の所定の位置に展開し(図2の(4))、RAM6上のワーク領域にあるデータ圧縮されたコントローラファームプログラムの部分は、メモリ解放(消去)する。   Thereafter, the controller firmware program main body compressed in the work area on the RAM 6 is expanded to a predetermined position on the RAM 6 while expanding the data ((4) in FIG. 2), and the data compression in the work area on the RAM 6 is performed. The portion of the controller firmware program that has been released is released (erased).

また、オプションROMスロット7にオプションROM8が挿入されていて、オプションROM8内にデータ圧縮されたオプションエミュレーションプログラムがある場合には、オプションROM8内のデータ圧縮されたオプションエミュレーションプログラムをRAM6上のワーク領域にコピーする(図2の(5))。この場合も、CPU4のバースト転送機能を使用し、高速にプログラムのコピーを行う。   If the option ROM 8 is inserted into the option ROM slot 7 and there is an option emulation program compressed in the option ROM 8, the compressed option emulation program in the option ROM 8 is stored in the work area on the RAM 6. Copy ((5) in FIG. 2). In this case as well, the program is copied at high speed using the burst transfer function of the CPU 4.

その後、RAM6上のワーク領域にあるデータ圧縮されたオプションオプションエミュレーションプログラムをデータ伸張しながら、RAM6上の所定の位置に展開し(図2の(6))、RAM6上のワーク領域にあるデータ圧縮されたオプションエミュレーションプログラムの部分は、メモリ解放(消去)する。   After that, the compressed option / option emulation program in the work area on the RAM 6 is expanded to a predetermined position on the RAM 6 while expanding the data ((6) in FIG. 2), and the data compression in the work area on the RAM 6 is performed. The part of the option emulation program that has been released is released (erased).

そして、RAM6上の所定の位置に展開されたコントローラファームプログラムを起動する。コントローラファームプログラムを起動すると同時に、RAM6上のワーク領域にコピーしたローダプログラム及びダウンロードプログラムは、メモリ解放(消去)する。   Then, the controller firmware program developed at a predetermined position on the RAM 6 is activated. At the same time as starting the controller firmware program, the loader program and download program copied to the work area on the RAM 6 are released (erased).

一方、フラッシュROM5上のデータ圧縮されたコントローラファームプログラム本体が不正なモジュールであった場合、つまり、以前にダウンロードしたとき途中でダウンロードが中断してしまった場合、或いは、ユーザがプリンタ1の電源オンと同時にパネル(不図示)から、データ圧縮されたコントローラファームのダウンロードの指示を行った場合は、RAM6上のワーク領域にあるローダプログラムは、RAM6上のワーク領域にあるダウンロードプログラムを起動する。つまり、フラッシュROM5内の「データ圧縮されたコントローラファームプログラム本体」の、RAM6上のワーク領域へのコピーは行わない。   On the other hand, if the controller firmware program data compressed in the flash ROM 5 is an invalid module, that is, if the download is interrupted during the previous download, or if the user turns on the printer 1 At the same time, when an instruction to download the data-compressed controller firmware is given from a panel (not shown), the loader program in the work area on the RAM 6 starts the download program in the work area on the RAM 6. That is, the “data compressed controller firmware program body” in the flash ROM 5 is not copied to the work area on the RAM 6.

起動されたダウンロードプログラムは、プリンタ1のパネル(不図示)に、「データ圧縮されたコントローラファームプログラム」のダウンロードを促す表示を行う。ダウンロードプログラムは、ホストマシンから外部インターフェース部12を経由して「データ圧縮されたコントローラファームプログラム」が入力されたならば、フラッシュROM5に「データ圧縮されたコントローラファームプログラム」をダウンロードしセットして、動作を終了する。   The activated download program displays on the panel (not shown) of the printer 1 a prompt to download the “data compressed controller firmware program”. When the “data compressed controller firmware program” is input from the host machine via the external interface unit 12, the download program downloads and sets the “data compressed controller firmware program” to the flash ROM 5, End the operation.

「データ圧縮されたコントローラファームプログラム」が正しくダウンロードされたかどうかの確認は、次の手順で行うので確実である。まず、ダウンロードする前に、フラッシュROM5内のダウンロード部にある、チェックサムを記録するチェックサム記録領域を消去する。ホストマシンから外部インターフェース12を経由して入力されたダウンロードモジュールの先頭には、チェックサム情報が付加されているので、該チェックサム情報をRAM6のワーク領域に保存しておく。   The confirmation of whether or not the “data-compressed controller firmware program” has been downloaded correctly is assured by the following procedure. First, before downloading, the checksum recording area for recording the checksum in the download section in the flash ROM 5 is erased. Since checksum information is added to the head of the download module input from the host machine via the external interface 12, the checksum information is stored in the work area of the RAM 6.

次に、ダウンロードモジュールである「データ圧縮されたコントローラファームプログラム本体」をフラッシュROM5のダウンロード部にダウンロードしセットする。セット後、フラッシュROM5内のダウンロード部にある「データ圧縮されたコントローラファームプログラム本体」のチェックサムを計算し、最初にRAM6のワーク領域に保存しておいたチェックサム情報と計算したチェックサム値が同一であるか否かを判定する。   Next, a “data compressed controller firmware program body” which is a download module is downloaded and set in the download section of the flash ROM 5. After the setting, the checksum of the “data compressed controller firmware program main body” in the download section in the flash ROM 5 is calculated, and the checksum information and the calculated checksum value stored in the work area of the RAM 6 are the first. It is determined whether or not they are the same.

RAM6のワーク領域内のチェックサム情報と計算したチェックサム値が同一ならば、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域にチェックサム値を記録する。RAM6のワーク領域内のチェックサム情報と計算したチェックサム値が一致しないならば、ダウンロードが失敗したとして、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域には何も記録しない。   If the checksum information in the work area of the RAM 6 is the same as the calculated checksum value, the checksum value is recorded in the checksum recording area in the download section in the flash ROM 5. If the checksum information in the work area of the RAM 6 does not match the calculated checksum value, the download is failed and nothing is recorded in the checksum recording area in the download section in the flash ROM 5.

図3乃至図6は、プリンタ1のコントローラ部2における各種プログラムの処理を示すフローチャートである。   3 to 6 are flowcharts showing processing of various programs in the controller unit 2 of the printer 1.

図3乃至図6において、まず、プリンタ1を電源オンすると、フラッシュROM5上のローダコピープログラムが起動する(ステップS1)。ローダコピープログラムはフラッシュROM5上で動作するが、上述したように、フラッシュROM5のアクセス速度は遅いので、ローダコピープログラムの動作も遅い。起動したローダコピープログラムは、フラッシュROM5の固定部に格納されているローダプログラムをRAM6上のワーク領域にコピーし(ステップS2)、コピーしたローダプログラムを起動する(ステップS3)。ローダプログラムを起動した時点で、ローダコピープログラムの動作は終了する。   3 to 6, first, when the printer 1 is powered on, the loader copy program on the flash ROM 5 is activated (step S1). Although the loader copy program operates on the flash ROM 5, as described above, since the access speed of the flash ROM 5 is slow, the operation of the loader copy program is also slow. The activated loader copy program copies the loader program stored in the fixed part of the flash ROM 5 to the work area on the RAM 6 (step S2), and activates the copied loader program (step S3). When the loader program is started, the operation of the loader copy program ends.

ステップS3の終了後はステップS4に移るが、この部分はローダプログラムによる動作である。即ち、ローダプログラムは、フラッシュROM5上のダウンロードプログラムをRAM6上のワーク領域にコピーする(ステップS4)。この場合、CPU4のバースト転送機能を使用して高速のコピーを行うことは上述した通りである。   After step S3 ends, the process proceeds to step S4. This part is an operation by the loader program. That is, the loader program copies the download program on the flash ROM 5 to the work area on the RAM 6 (step S4). In this case, as described above, high-speed copying is performed using the burst transfer function of the CPU 4.

次に、ローダプログラムは、ユーザからパネル(不図示)経由でのダウンロード指示があったか否かをチェックする(ステップS5)。ダウンロード指示があった場合は、ローダプログラムは、RAM6上のワーク領域にあるダウンロードプログラムを起動し(ステップS16)、ホストマシンから外部インターフェース部12経由で送信される、データ圧縮されたコントローラファームプログラムのフラッシュROM5へのダウンロードを実行し(ステップS17)、動作を終了する。ダウンロード指示がない場合は、ローダプログラムは、オプションROMスロット7にオプションROM8が挿入され、且つ、オプションROM8内にはデータ圧縮されたコントローラファームプログラムが有るか否かをチェックする(ステップS6)。   Next, the loader program checks whether there is a download instruction from the user via a panel (not shown) (step S5). If there is a download instruction, the loader program starts the download program in the work area on the RAM 6 (step S16), and transmits the controller firmware program with data compression transmitted from the host machine via the external interface unit 12. Download to the flash ROM 5 is executed (step S17), and the operation ends. If there is no download instruction, the loader program checks whether or not the option ROM 8 is inserted into the option ROM slot 7 and whether there is a data-compressed controller firmware program in the option ROM 8 (step S6).

オプションROM8内にデータ圧縮されたコントローラファームプログラムが有る場合は、ローダプログラムは、オプションROM8内のデータ圧縮されたコントローラファームプログラムをRAM6上のワーク領域にコピーし(ステップS7)、ステップS10に移る。   If there is a controller firmware program whose data is compressed in the option ROM 8, the loader program copies the controller firmware program whose data is compressed in the option ROM 8 to the work area on the RAM 6 (step S7), and proceeds to step S10.

オプションROMスロット7にオプションROM8が挿入されていない場合、或いはオプションROMスロット7にオプションROM8が挿入されていても、オプションROM8内にデータ圧縮されたコントローラファームプログラムが無い場合は、ローダプログラムは、フラッシュROM5内のダウンロード部にあるデータ圧縮されたコントローラファームプログラムは正しいか(完全版か)否かをチェックする(ステップS8)。   If the option ROM 8 is not inserted into the option ROM slot 7 or if the option ROM 8 is inserted into the option ROM slot 7 and there is no controller firmware program compressed in the option ROM 8, the loader program is flashed. It is checked whether or not the data-compressed controller firmware program in the download section in the ROM 5 is correct (complete version) (step S8).

フラッシュROM5内のデータ圧縮されたコントローラファームプログラムが正しい場合は、ローダプログラムは、フラッシュROM5内のデータ圧縮されたコントローラファームプログラム本体を、RAM6上のワーク領域にコピーする(ステップS9)。この場合も、CPU4のバースト転送機能を使用して高速のコピーを行うことは上述した通りである。   If the data-compressed controller firmware program in the flash ROM 5 is correct, the loader program copies the data-compressed controller firmware program body in the flash ROM 5 to the work area on the RAM 6 (step S9). Also in this case, as described above, high-speed copying is performed using the burst transfer function of the CPU 4.

その後、ローダプログラムは、RAM6上のワーク領域にあるデータ圧縮されたコントローラファームプログラムをデータ伸張して、RAM6上の所定の位置に展開し、展開後は、RAM6上のワーク領域にあるデータ圧縮されたコントローラファームプログラムの部分は、メモリ解放する(ステップS10)。次に、ローダプログラムは、オプションROMスロット7にオプションROM8が挿入され、且つ、オプションROM8内にデータ圧縮されたオプションエミュレーションプログラムが有るか否かをチェックする(ステップS11)。   Thereafter, the loader program decompresses the data-compressed controller firmware program in the work area on the RAM 6 and expands it to a predetermined position on the RAM 6. After the expansion, the data in the work area on the RAM 6 is compressed. The controller firmware program portion is freed from memory (step S10). Next, the loader program checks whether or not the option ROM 8 is inserted into the option ROM slot 7 and there is an option emulation program whose data is compressed in the option ROM 8 (step S11).

オプションROM8内にデータ圧縮されたオプションエミュレーションプログラムが有る場合は、ローダプログラムは、オプションROM8内のデータ圧縮されたオプションエミュレーションプログラムをRAM6上のワーク領域にコピーする(ステップS12)。そして、ローダプログラムは、RAM6上のデータ圧縮されたオプションエミュレーションプログラムをデータ伸張してRAM上の所定の位置に展開し、展開後は、RAM6上のデータ圧縮されたオプションエミュレーションプログラムがある部分をメモリ解放する(ステップS13)。   If there is an option emulation program compressed in the option ROM 8, the loader program copies the option emulation program compressed in the option ROM 8 to the work area on the RAM 6 (step S12). Then, the loader program decompresses the data-compressed option emulation program on the RAM 6 and expands it to a predetermined position on the RAM. After the expansion, the portion having the data-compressed option emulation program on the RAM 6 is stored in the memory. Release (step S13).

オプションROM8内にデータ圧縮されたオプションエミュレーションプログラムが無い場合、或いは、ステップS13の処理が終了した後は、ステップS14に移る。即ち、ローダプログラムは、RAM6上の所定の位置に展開されたコントローラファームプログラムを起動し、同時に、RAM6上のワーク領域にあるローダプログラム及びダウンロードプログラムをメモリ解放する(ステップS14)。この時点で、ローダプログラムの動作は終了する。以後、プリンタ1が電源オフされるまで、プリンタ1の動作の実行を続ける。   When there is no option emulation program whose data is compressed in the option ROM 8, or after the process of step S13 is completed, the process proceeds to step S14. That is, the loader program activates the controller firmware program developed at a predetermined position on the RAM 6 and simultaneously releases the loader program and download program in the work area on the RAM 6 (step S14). At this point, the operation of the loader program ends. Thereafter, the operation of the printer 1 is continued until the printer 1 is turned off.

フラッシュROM5内のデータ圧縮されたコントローラファームプログラムが不正である場合は、ローダプログラムは、RAM6上のワーク領域にあるダウンロードプログラムを起動した後(ステップS16)、ホストマシンから外部インターフェース部12経由で送信された、データ圧縮されたコントローラファームプログラムのフラッシュROM5へのダウンロードをダウンロードプログラムにより実行し(ステップS17)、動作を終了する。   If the controller firmware program compressed in the flash ROM 5 is invalid, the loader program starts the download program in the work area on the RAM 6 (step S16), and then transmits it from the host machine via the external interface unit 12. The download of the data compressed controller firmware program to the flash ROM 5 is executed by the download program (step S17), and the operation is terminated.

次に、上記ステップS17の動作の詳細を説明する。まず、ダウンロードプログラムによりダウンロードを実行する前に、ローダプログラムは、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域を消去する。ホストマシンから外部インターフェース12を経由して送信された「データ圧縮されたコントローラファームプログラムデータ」としてのダウンロードモジュールの先頭には、チェックサム情報が付加されているので、ローダプログラムは、該チェックサム情報をRAM6のワーク領域に保存しておく。   Next, details of the operation in step S17 will be described. First, before executing the download by the download program, the loader program erases the checksum recording area in the download unit in the flash ROM 5. Since the checksum information is added to the head of the download module as “data-compressed controller firmware program data” transmitted from the host machine via the external interface 12, the loader program uses the checksum information. Is stored in the work area of the RAM 6.

更に、ローダプログラムは、ダウンロードモジュールである「データ圧縮されたコントローラファームプログラム本体」を、ダウンロードプログラムによりフラッシュROM5のダウンロード部にダウンロードし、セットする。セット後、ローダプログラムは、フラッシュROM5内のダウンロード部にある「データ圧縮されたコントローラファームプログラム本体」のチェックサムを計算し、最初にRAM6のワーク領域に保存しておいたチェックサム情報と計算したチェックサム値が同一か否かを判定する。   Further, the loader program downloads and sets the “data compressed controller firmware program body”, which is a download module, to the download unit of the flash ROM 5 by the download program. After the setting, the loader program calculates the checksum of the “data compressed controller firmware program main body” in the download section in the flash ROM 5 and first calculates the checksum information stored in the work area of the RAM 6. It is determined whether the checksum values are the same.

保存しておいたチェックサム情報と計算したチェックサム値が同一の場合は、ローダプログラムは、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域にチェックサム値を記録する。保存しておいたチェックサム情報と計算したチェックサム値が一致しない場合は、ローダプログラムは、ダウンロードが失敗したと判断して、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域には何も記録しない。   When the stored checksum information is the same as the calculated checksum value, the loader program records the checksum value in the checksum recording area in the download unit in the flash ROM 5. If the stored checksum information does not match the calculated checksum value, the loader program determines that the download has failed, and there is nothing in the checksum recording area in the download section in the flash ROM 5. Do not record.

また、ダウンロードモジュールの転送作業の途中で、送信元のホストマシンの不調或いは送信経路の不調等の理由で転送作業が中断した場合も、ローダプログラムは、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域にはチェックサム値を記録しない。   In addition, even when the transfer operation is interrupted due to a malfunction of the transmission source host machine or a malfunction of the transmission path during the download module transfer operation, the loader program stores the checksum in the download section in the flash ROM 5. The checksum value is not recorded in the recording area.

以上の仕組みにより、図4のステップS8の段階では、フラッシュROM5内のダウンロード部にある上記チェックサム記録領域をチェックすることで、フラッシュROM内のデータ圧縮されたコントローラファームプログラムが正しいかどうかを判断することができる。   With the above mechanism, at the stage of step S8 in FIG. 4, the checksum recording area in the download section in the flash ROM 5 is checked to determine whether the data-compressed controller firmware program in the flash ROM is correct. can do.

以上説明したように、本実施の形態によれば、プリンタ1の電源オン直後に起動されるローダプログラムが、オプションROMスロット7に挿入されたオプションROM8に、「データ圧縮されたコントローラファームプログラム」が有るか否かをチェックし、有る場合は、オプションROM8から「データ圧縮されたコントローラファームプログラム」をRAM6上にロードして起動し、無い場合は、フラッシュROM5から「データ圧縮されたコントローラファームプログラム」をRAM6上にロードして起動する。   As described above, according to the present embodiment, the loader program that is started immediately after the printer 1 is turned on is stored in the option ROM 8 inserted in the option ROM slot 7 with the “data compressed controller firmware program”. If there is, the “data compressed controller firmware program” is loaded from the option ROM 8 onto the RAM 6 and activated. If not, the “data compressed controller firmware program” is read from the flash ROM 5. Is loaded onto the RAM 6 and activated.

即ち、上記第1の課題である、コントローラファームプログラムのバージョンアップ方法として、バージョンアップしたコントローラファームプログラムをコントローラ部内蔵のフラッシュROM5にダウンロードして起動する方法以外に、オプションROMスロット7に、バージョンアップしたコントローラファームプログラムがセットされたオプションROM8を挿入して、コントローラファームプログラムを起動する方法が可能となる。これにより、個人ユーザ向けに好適な前者の起動方法と、大口ユーザ向けに好適な後者の起動方法とを適宜実行することが可能となることで、広範なユーザに対応できるプリンタを提供することができる。   That is, as a method for upgrading the controller firmware program, which is the first problem, the option firmware slot 7 is upgraded in addition to the method of downloading and starting the upgraded controller firmware program to the flash ROM 5 built in the controller unit. A method for starting the controller firmware program by inserting the option ROM 8 in which the controller firmware program is set can be realized. Accordingly, it is possible to appropriately execute the former activation method suitable for an individual user and the latter activation method suitable for a large user, thereby providing a printer capable of handling a wide range of users. it can.

また、上記第2の課題である、コントローラ部内蔵のフラッシュROM5内のコントローラファームプログラムと、オプションROM8内のコントローラファームプログラムとのうち何れを起動するかを自動的に判別して、コントローラファームプログラムを実行することが可能となる。これにより、従来のように手動で起動する側を切り替える手間を省くことができ、使い勝手を向上させたプリンタを提供することができる。   Further, the controller firmware program is automatically determined which of the second problem, the controller firmware program in the flash ROM 5 built in the controller unit and the controller firmware program in the option ROM 8 is activated. It becomes possible to execute. As a result, it is possible to save the trouble of manually switching the side to be activated as in the prior art, and to provide a printer with improved usability.

また、上記第3の課題である、プリンタ1に装備されているオプションROMスロット7が1つの場合でも、オプションROM8を用いて、バージョンアップしたコントローラファームプログラムとオプションエミュレーションプログラムを同時に動作させることが可能となる。これにより、利便性を向上させたプリンタを提供することができる。   Further, even when the option ROM slot 7 provided in the printer 1, which is the third problem, is installed, the upgraded controller firmware program and the option emulation program can be operated simultaneously using the option ROM 8. It becomes. As a result, a printer with improved convenience can be provided.

[第2の実施の形態]
本発明の第2の実施の形態は、上述した第1の実施の形態に対して、下記の点において相違する。本実施の形態のその他の要素は、上述した第1の実施の形態(図1)の対応するものと同一なので、説明を省略する。
[Second Embodiment]
The second embodiment of the present invention is different from the first embodiment described above in the following points. Since the other elements of the present embodiment are the same as the corresponding ones of the first embodiment (FIG. 1) described above, description thereof is omitted.

上述した第1の実施の形態では、フラッシュROM5上のデータ圧縮されたコントローラファームプログラムと、オプションROM8上のデータ圧縮されたコントローラファームプログラムとのうち何れを優先して、RAM6上のワーク領域にコピーし、データ伸張してRAM6上の所定の位置に展開し起動するかと言うと、オプションROM8内のデータ圧縮されたコントローラファームプログラムを無条件で優先していた。これは、オプションROMスロット7にオプションROM8が装着された場合、ユーザが何らかの意図があってオプションROM8をオプションROMスロット7に装着したと考えられるからである。   In the first embodiment described above, the controller firmware program compressed in the flash ROM 5 and the controller firmware program compressed in the option ROM 8 are prioritized and copied to the work area on the RAM 6. When the data is decompressed and expanded to a predetermined position on the RAM 6 to be activated, the controller firmware program compressed in the option ROM 8 is given priority unconditionally. This is because when the option ROM 8 is installed in the option ROM slot 7, it is considered that the user has installed the option ROM 8 in the option ROM slot 7 for some purpose.

これに対し、本実施の形態では、上記コントローラファームプログラムは最新のバージョンが常に正しいと言う考えもあるということから、フラッシュROM5上のデータ圧縮されたコントローラファームプログラムのバージョンと、オプションROM8上のデータ圧縮されたコントローラファームプログラムのバージョンとを比較し、新しいバージョンのコントローラファームプログラムを優先してRAM6上のワーク領域にコピーした後、RAM6上でデータ伸張し展開して起動するものである。   On the other hand, in the present embodiment, since there is an idea that the latest version of the controller firmware program is always correct, the version of the controller firmware program compressed on the flash ROM 5 and the data on the option ROM 8 The compressed version of the controller firmware program is compared, and a new version of the controller firmware program is preferentially copied to the work area on the RAM 6, and then the data is expanded and expanded on the RAM 6 to start up.

本実施の形態によれば、常に最新バージョンのコントローラファームプログラムを起動することができる。   According to this embodiment, the latest version of the controller firmware program can always be activated.

[第3の実施の形態]
本発明の第3の実施の形態は、上述した第1及び第2の実施の形態に対して、下記の点において相違する。本実施の形態のその他の要素は、上述した第1の実施の形態(図1)の対応するものと同一なので、説明を省略する。
[Third Embodiment]
The third embodiment of the present invention is different from the first and second embodiments described above in the following points. Since the other elements of the present embodiment are the same as the corresponding ones of the first embodiment (FIG. 1) described above, description thereof is omitted.

上述した第2の実施の形態では、最新のバージョンのコントローラファームプログラムを優先してRAM6上に展開して起動していた。   In the second embodiment described above, the latest version of the controller firmware program is preferentially expanded on the RAM 6 and activated.

これに対し、本実施の形態では、オプションROMスロット7内のオプションROM8に「データ圧縮されたコントローラファームプログラム及びデータ圧縮されたエミュレーションプログラム」がある場合には、これら2つのプログラムを組み合わせたことに意味があると考え、フラッシュROM5内のデータ圧縮されたコントローラファームプログラムより、オプションROM8内のデータ圧縮されたコントローラファームプログラムを優先してRAM6上のワーク領域にコピーした後、RAM6上でデータ伸張し展開して起動するものである。   On the other hand, in the present embodiment, when the option ROM 8 in the option ROM slot 7 has “a data compressed controller firmware program and a data compressed emulation program”, these two programs are combined. The controller firmware program in the option ROM 8 is preferentially copied to the work area on the RAM 6 in preference to the data compressed controller firmware program in the flash ROM 5, and then the data is expanded on the RAM 6. It expands and starts up.

本実施の形態によれば、プリンタ1に装備されているオプションROMスロット7が1つの場合でも、オプションROM8を用いて、バージョンアップしたコントローラファームプログラムとオプションエミュレーションプログラムを同時に動作させることが可能となる。   According to the present embodiment, even when the option ROM slot 7 provided in the printer 1 is one, the upgraded controller firmware program and the option emulation program can be simultaneously operated using the option ROM 8. .

[第4の実施の形態]
本発明の第4の実施の形態は、上述した第1乃至第3の実施の形態に対して、下記の点において相違する。本実施の形態のその他の要素は、上述した第1の実施の形態(図1)の対応するものと同一なので、説明を省略する。
[Fourth Embodiment]
The fourth embodiment of the present invention is different from the first to third embodiments described above in the following points. Since the other elements of the present embodiment are the same as the corresponding ones of the first embodiment (FIG. 1) described above, description thereof is omitted.

上述した第1の実施の形態では、プリンタ1の電源オンの後、ダウンロードプログラムをRAM6上のワーク領域にコピーしておいてから、「ユーザからパネル経由でダウンロードの指示があったか」或いは「フラッシュROM5内のデータ圧縮されたコントローラファームプログラムが正しいか」をチェックし、「ダウンロード指示があった」或いは「コントローラファームプログラムが不正」と判断した場合は、フラッシュROM5の固定部からRAM6上のワーク領域にコピーしておいたダウンロードプログラムを起動していた。   In the first embodiment described above, after the printer 1 is powered on, the download program is copied to the work area on the RAM 6 and then “whether the user has issued a download instruction via the panel” or “flash ROM 5”. If the controller firmware program whose data is compressed is correct, and if it is determined that “there is a download instruction” or “the controller firmware program is invalid”, it is transferred from the fixed part of the flash ROM 5 to the work area on the RAM 6. The downloaded download program was running.

これに対し、本実施の形態では、ダウンロードプログラムのコピーの順序を逆にするものである。即ち、プリンタ1の電源オンの後、「ユーザからパネル経由でダウンロードの指示があったか」或いは「フラッシュROM5内のデータ圧縮されたコントローラファームプログラムが正しいか」をチェックし、「ダウンロード指示があった」或いは「コントローラファームプログラムが不正」と判断した場合に、その時点で(ダウンロードプログラムを起動する直前で)、フラッシュROM5の固定部にあるダウンロードプログラムをRAM6上のワーク領域にコピーして起動するようにする。   On the other hand, in this embodiment, the order of copying the download program is reversed. That is, after the printer 1 is turned on, it is checked whether “the user has issued a download instruction via the panel” or “the controller firmware program compressed in the flash ROM 5 is correct”, and “there is a download instruction”. Alternatively, when it is determined that the “controller firmware program is invalid”, the download program in the fixed part of the flash ROM 5 is copied to the work area on the RAM 6 and activated at that time (immediately before the download program is activated). To do.

本実施の形態によれば、プリンタ1の通常の電源オンの場合は、第1の実施の形態のようにローダコピープログラムが無条件にダウンロードプログラムをフラッシュROM5からRAM6にコピーする代わりに、ダウンロードプログラムを起動する直前でフラッシュROM5からRAM6にコピーするので、プリンタ1の電源オン時におけるダウンロードプログラムのRAM6に対するコピー工程を省くことができ、プリンタ1の立ち上がり時間を節約することができる。   According to the present embodiment, when the printer 1 is normally powered on, the loader copy program unconditionally copies the download program from the flash ROM 5 to the RAM 6 as in the first embodiment. Since copying is performed from the flash ROM 5 to the RAM 6 immediately before starting the printer 1, the copying process of the download program to the RAM 6 when the printer 1 is powered on can be omitted, and the startup time of the printer 1 can be saved.

[他の実施の形態]
上記第1乃至第4の実施の形態では、プリンタのコントローラ部にオプションROMスロットを1つ装備した例を挙げたが、オプションROMスロットは1つに限定されるものではなく、複数装備することもできる。
[Other embodiments]
In the first to fourth embodiments, an example in which one option ROM slot is provided in the controller unit of the printer has been described. However, the number of option ROM slots is not limited to one, and a plurality of option ROM slots may be provided. it can.

上記第1乃至第4の実施の形態では、電子写真方式で印刷を行うプリンタを例に挙げたが、印刷方式は電子写真方式に限定されるものではなく、インクジェット方式、静電方式、熱転写方式など他の印刷方式にも適用することができる。   In the first to fourth embodiments, the printer that performs printing by the electrophotographic method has been described as an example. However, the printing method is not limited to the electrophotographic method, and an inkjet method, an electrostatic method, and a thermal transfer method. It can also be applied to other printing methods.

上記第1乃至第4の実施の形態では、印刷装置としてプリンタを例に挙げたが、印刷装置はプリンタに限定されるものではなく、複合機や複写機など他の印刷装置にも適用することができる。   In the first to fourth embodiments, a printer has been described as an example of a printing apparatus. However, the printing apparatus is not limited to a printer, and may be applied to other printing apparatuses such as multifunction peripherals and copiers. Can do.

本発明は、上述した実施の形態の機能を実現するソフトウェアのプログラム(図3乃至図6のフローチャート)をコンピュータ又はCPUに供給し、そのコンピュータ又はCPUが該供給されたプログラムを読出して実行することによって、達成することができる。   The present invention supplies a software program (flowcharts in FIGS. 3 to 6) for realizing the functions of the above-described embodiments to a computer or CPU, and the computer or CPU reads and executes the supplied program. Can be achieved.

この場合、上記プログラムは、該プログラムを記録した記憶媒体から直接供給されるか、又はインターネット、商用ネットワーク、若しくはローカルエリアネットワーク等に接続される不図示の他のコンピュータやデータベース等からダウンロードすることにより供給される。   In this case, the program is directly supplied from a storage medium storing the program, or downloaded from another computer or database (not shown) connected to the Internet, a commercial network, a local area network, or the like. Supplied.

上記プログラムの形態は、オブジェクトコード、インタプリタにより実行されるプログラムコード、OS(オペレーティングシステム)に供給されるスクリプトデータ等の形態から成ってもよい。   The form of the program may be in the form of object code, program code executed by an interpreter, script data supplied to an OS (operating system), and the like.

また、本発明は、上述した実施の形態の機能を実現するソフトウェアのプログラムを記憶した記憶媒体をコンピュータ又はCPUに供給し、そのコンピュータ又はCPUが記憶媒体に記憶されたプログラムを読出して実行することによっても、達成することができる。   The present invention also supplies a computer or CPU with a storage medium storing a software program that implements the functions of the above-described embodiments, and the computer or CPU reads and executes the program stored in the storage medium. Can also be achieved.

この場合、格納媒体から読出されたプログラムコード自体が上述した各実施の形態の機能を実現すると共に、そのプログラムコードを記憶した記憶媒体は本発明を構成する。   In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention.

プログラムコードを記憶する記憶媒体としては、例えば、ROM、RAM、NV−RAM、フロッピー(登録商標)ディスク、ハードディスク、光ディスク(登録商標)、光磁気ディスク、CD−ROM、MO、CD−R、CD−RW、DVD−ROM、DVD−RAM、DVD−RW、DVD+RW、磁気テープ、不揮発性のメモリカード等がある。   As a storage medium for storing the program code, for example, ROM, RAM, NV-RAM, floppy (registered trademark) disk, hard disk, optical disk (registered trademark), magneto-optical disk, CD-ROM, MO, CD-R, CD -RW, DVD-ROM, DVD-RAM, DVD-RW, DVD + RW, magnetic tape, nonvolatile memory card, etc.

上述した実施の形態の機能は、コンピュータから読出されたプログラムコードを実行することによるばかりでなく、コンピュータ上で稼動するOS等がプログラムコードの指示に基づいて実際の処理の一部又は全部を行うことによっても実現することができる。   The function of the above-described embodiment is not only by executing the program code read from the computer, but the OS or the like running on the computer performs part or all of the actual processing based on the instruction of the program code. Can also be realized.

本発明の第1の実施の形態に係る印刷装置としてのプリンタのコントローラ部及びエンジン部の構成を示すブロック図である。FIG. 2 is a block diagram illustrating a configuration of a controller unit and an engine unit of the printer as the printing apparatus according to the first embodiment of the present invention. プリンタのコントローラ部の各種メモリ及び各種プログラムのコピーと起動の関係を示す図である。FIG. 3 is a diagram illustrating a relationship between copying and activation of various memories and various programs of a controller unit of a printer. コントローラ部における各種プログラムの処理を示すフローチャートである。It is a flowchart which shows the process of the various programs in a controller part. 図3のフローチャートの続きである。FIG. 4 is a continuation of the flowchart of FIG. 3. 図4のフローチャートの続きである。It is a continuation of the flowchart of FIG. 図5のフローチャートの続きである。It is a continuation of the flowchart of FIG.

符号の説明Explanation of symbols

1 プリンタ(印刷装置に対応)
2 コントローラ部(印刷制御装置に対応)
3 エンジン部(印刷手段に対応)
5 フラッシュROM(第1のメモリに対応)
6 RAM(第2のメモリに対応)
7 オプションROMスロット(メモリスロットに対応)
8 オプションROM(オプションメモリに対応)
1 Printer (supports printing devices)
2 Controller (corresponding to print control device)
3 Engine part (corresponding to printing means)
5 Flash ROM (corresponding to the first memory)
6 RAM (corresponding to the second memory)
7 Option ROM slot (corresponding to memory slot)
8 Option ROM (supports option memory)

Claims (10)

ファームプログラムがダウンロード可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備え、印刷手段に印刷を実行させる印刷制御装置であって、
前記メモリスロットに前記オプションメモリが挿入されているか否か、前記オプションメモリ内にファームプログラムが有るか否かを判別する第1の判別手段と、
前記第1のメモリ内のファームプログラムが正しいか否かを判別する第2の判別手段と、
前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有ると判別された場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第1の起動手段と、
前記メモリスロットにオプションメモリが挿入されていないと判別された場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しいと判別された場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第2の起動手段と
前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しくないと判別された場合、外部からファームプログラムをダウンロードして前記第1のメモリに記憶するダウンロード手段と、を備えることを特徴とする印刷制御装置。
A printing control apparatus comprising a first memory from which a firmware program can be downloaded, a memory slot into which an option memory can be inserted, and a second memory, and causes a printing unit to execute printing.
First discriminating means for discriminating whether or not the option memory is inserted in the memory slot and whether or not there is a firmware program in the option memory;
Second discriminating means for discriminating whether or not the firmware program in the first memory is correct;
When the option memory is inserted into the memory slot and it is determined that there is a firmware program in the option memory, first startup means for copying and starting the firmware program in the option memory to the second memory When,
When it is determined that no option memory is inserted in the memory slot, or when it is determined that there is no firmware program in the option memory even if an option memory is inserted in the memory slot, and the first A second activation unit that copies and activates the firmware program in the first memory to the second memory when it is determined that the firmware program in the first memory is correct ;
If it is determined that there is no firmware program in the option memory even if an optional memory is inserted in the memory slot, and if it is determined that the firmware program in the first memory is not correct, the firmware is externally updated. Downloading means for downloading a program and storing it in the first memory .
前記オプションメモリ及び前記第1のメモリ内のファームプログラムは、バージョンアップされると共にデータ圧縮されていることを特徴とする請求項1記載の印刷制御装置。   2. The print control apparatus according to claim 1, wherein the firmware program in the option memory and the first memory is upgraded and data compressed. 前記オプションメモリ内のデータ圧縮されたファームプログラムと、前記第1のメモリ内のデータ圧縮されたファームプログラムとのうち、前記オプションメモリ内のデータ圧縮されたファームプログラムを優先して前記第2のメモリにコピーし、前記第2のメモリ上でデータ伸張し展開して起動する第3の起動手段を備えることを特徴とする請求項1又は2記載の印刷制御装置。   Of the firmware program in which data is compressed in the option memory and the firmware program in which data is compressed in the first memory, the second memory is given priority to the firmware program in which data is compressed in the option memory. The print control apparatus according to claim 1, further comprising: a third activation unit that copies the data to the second memory, decompresses and expands the data on the second memory, and activates the data. 前記オプションメモリ内のデータ圧縮されたファームプログラムのバージョンと、前記第1のメモリ内のデータ圧縮されたファームプログラムのバージョンとの比較に基づき、新しいバージョンのデータ圧縮されたファームプログラムを優先して前記第2のメモリにコピーし、前記第2のメモリ上でデータ伸張し展開して起動する第4の起動手段とを備えることを特徴とする請求項1又は2記載の印刷制御装置。   Based on a comparison between the version of the data compressed firmware program in the option memory and the version of the data compressed firmware program in the first memory, the new version of the data compressed firmware program is given priority. The print control apparatus according to claim 1, further comprising: a fourth activation unit that copies to a second memory, decompresses and expands data on the second memory, and activates the fourth memory. 前記オプションメモリ内にデータ圧縮されたファームプログラム及びデータ圧縮されたエミュレーションプログラムが有ると判別された場合、前記オプションメモリ内のデータ圧縮されたファームプログラムを優先して前記第2のメモリにコピーし、前記第2のメモリ上でデータ伸張し展開して起動する第5の起動手段を備えることを特徴とする請求項1又は2記載の印刷制御装置。   If it is determined that there is a data compressed firmware program and a data compressed emulation program in the option memory, the data compressed firmware program in the option memory is preferentially copied to the second memory, The print control apparatus according to claim 1, further comprising a fifth activation unit that decompresses, expands, and activates data in the second memory. 前記第1のメモリには、データ圧縮されたファームプログラムを前記第1のメモリにダウンロードするダウンロードプログラムが前記第2のメモリ上で起動可能に格納されており、
ダウンロード指示があった場合、或いは前記第1のメモリ内のデータ圧縮されたファームプログラムが不正な場合、前記ダウンロードプログラムを起動する直前で、前記第1のメモリ内の前記ダウンロードプログラムを前記第2のメモリにコピーする複写手段を備えることを特徴とする請求項1又は2記載の印刷制御装置。
In the first memory, a download program for downloading the data-compressed firmware program to the first memory is stored so as to be bootable on the second memory,
When there is a download instruction, or when the data-compressed firmware program in the first memory is invalid, the download program in the first memory is transferred to the second memory immediately before starting the download program. The printing control apparatus according to claim 1, further comprising a copying unit that copies to a memory.
前記第2の判別手段は、外部から供給されたデータ圧縮されたファームプログラムに付加されたチェックサムと、前記ファームプログラムの前記第1のメモリに対するダウンロード後のチェックサム計算値との比較に基づき、前記第1のメモリ内のファームプログラムが正しいか否かを判別することを特徴とする請求項1記載の印刷制御装置。   The second determining means is based on a comparison between a checksum added to the data-compressed firmware program supplied from the outside and a checksum calculation value after downloading the firmware program to the first memory, The print control apparatus according to claim 1, wherein it is determined whether or not the firmware program in the first memory is correct. 前記請求項1乃至7の何れかに記載の印刷制御装置を備えたことを特徴とする印刷装置。   A printing apparatus comprising the printing control apparatus according to claim 1. ファームプログラムがダウンロード可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備えた印刷制御装置のプログラム起動方法であって、
前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有ると判別した場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動し、
前記メモリスロットにオプションメモリが挿入されていないと判別した場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別した場合で、且つ前記第1のメモリ内のファームプログラムが正しいと判別した場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動し、
前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別した場合で、且つ前記第1のメモリ内のファームプログラムが正しくないと判別した場合、外部からファームプログラムをダウンロードして前記第1のメモリに記憶することを特徴とするプログラム起動方法。
A program starting method for a print control apparatus comprising a first memory in which a firmware program can be downloaded, a memory slot in which an optional memory can be inserted, and a second memory,
When the option memory is inserted into the memory slot and it is determined that there is a firmware program in the option memory, the firmware program in the option memory is copied to the second memory and started.
When it is determined that no option memory is inserted in the memory slot, or when it is determined that there is no firmware program in the option memory even if an option memory is inserted in the memory slot, and the first memory If it is determined that the firmware program is correct, the firmware program in the first memory is copied to the second memory and started .
If it is determined that there is no firmware program in the option memory even if an optional memory is inserted in the memory slot, and if it is determined that the firmware program in the first memory is not correct, a firmware program is A program starting method comprising downloading and storing the program in the first memory .
ファームプログラムがダウンロード可能な第1のメモリと、オプションメモリが挿入可能なメモリスロットと、第2のメモリとを備えた印刷制御装置のプログラム起動方法をコンピュータに実行させるプログラムであって、
前記メモリスロットに前記オプションメモリが挿入されているか否か、前記オプションメモリ内にファームプログラムが有るか否かを判別する第1の判別モジュールと、
前記第1のメモリ内のファームプログラムが正しいか否かを判別する第2の判別モジュールと、
前記メモリスロットに前記オプションメモリが挿入され、前記オプションメモリ内にファームプログラムが有ると判別された場合、前記オプションメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第1の起動モジュールと、
前記メモリスロットにオプションメモリが挿入されていないと判別された場合、或いは前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しいと判別された場合、前記第1のメモリ内のファームプログラムを前記第2のメモリにコピーして起動する第2の起動モジュールと
前記メモリスロットにオプションメモリが挿入されていても前記オプションメモリ内にファームプログラムが無いと判別された場合で、且つ前記第1のメモリ内のファームプログラムが正しくないと判別された場合、外部からファームプログラムをダウンロードして前記第1のメモリに記憶するダウンロードモジュールと、を備えることを特徴とするプログラム。
A program for causing a computer to execute a program starting method of a printing control apparatus including a first memory in which a firmware program can be downloaded, a memory slot in which an optional memory can be inserted, and a second memory,
A first determination module for determining whether or not the option memory is inserted in the memory slot and whether or not there is a firmware program in the option memory;
A second determination module for determining whether or not the firmware program in the first memory is correct;
A first activation module that copies and activates the firmware program in the option memory to the second memory when the option memory is inserted into the memory slot and it is determined that the firmware program is in the option memory When,
When it is determined that no option memory is inserted in the memory slot, or when it is determined that there is no firmware program in the option memory even if an option memory is inserted in the memory slot, and the first A second activation module that copies and activates the firmware program in the first memory to the second memory when it is determined that the firmware program in the first memory is correct ;
If it is determined that there is no firmware program in the option memory even if an optional memory is inserted in the memory slot, and if it is determined that the firmware program in the first memory is not correct, the firmware is externally updated. A download module that downloads a program and stores the program in the first memory .
JP2004041651A 2004-02-18 2004-02-18 PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM Expired - Fee Related JP4366207B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004041651A JP4366207B2 (en) 2004-02-18 2004-02-18 PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004041651A JP4366207B2 (en) 2004-02-18 2004-02-18 PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM

Publications (2)

Publication Number Publication Date
JP2005231135A JP2005231135A (en) 2005-09-02
JP4366207B2 true JP4366207B2 (en) 2009-11-18

Family

ID=35014576

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004041651A Expired - Fee Related JP4366207B2 (en) 2004-02-18 2004-02-18 PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM

Country Status (1)

Country Link
JP (1) JP4366207B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5094316B2 (en) * 2007-10-05 2012-12-12 京セラドキュメントソリューションズ株式会社 Image forming apparatus, storage device, and data inspection method
JP5222034B2 (en) * 2008-06-16 2013-06-26 キヤノン株式会社 Printing apparatus and printing apparatus control method
JP5955618B2 (en) * 2012-04-18 2016-07-20 アルパイン株式会社 Electronics

Also Published As

Publication number Publication date
JP2005231135A (en) 2005-09-02

Similar Documents

Publication Publication Date Title
CN100412826C (en) Image forming apparatus, information processing system, rewriting method, rewriting program and recording medium of firmware
JP2002175194A (en) Program downloading system, program downloading device, image forming device, program downloading method, and computer-readable recording medium with program for executing the method recorded thereon
US20060232816A1 (en) Image processing apparatus, method for updating control program, and program
JP5911271B2 (en) Information processing apparatus, control method thereof, and control program
US20070150072A1 (en) Method for controlling electronic apparatus, program for controlling electronic apparatus, electronic apparatus, and recording apparatus
JP2010038998A (en) Image forming apparatus, start-up control method, program, and recording medium
JP4366207B2 (en) PRINT CONTROL DEVICE, PRINT DEVICE, PROGRAM START METHOD, AND PROGRAM
JP4802607B2 (en) Image processing device
US20040258428A1 (en) Printing apparatus comprising series-models supporting firmware and series-models supporting method
JP2007148629A (en) Print system and firmware update method
JP2008062582A (en) Printer, control method, and computer program
JP2008162054A (en) Printer
JP2013117910A (en) Information processor, control method thereof, and program
JP2001344156A (en) Device with flash memory and data rewriting method
JPH05274157A (en) Image generating device
JP2003114807A (en) Electronics device and method for rewriting main body control program
JP2005178169A (en) Printing device
JP4387635B2 (en) Data rewriting method for image forming apparatus
JP4560172B2 (en) Partition information update system, partition information update device, partition information update method, and storage medium
JP4622325B2 (en) Image forming apparatus and control program for image forming apparatus
JP6248910B2 (en) Image processing apparatus and program backup method
JP3610183B2 (en) Printing apparatus and storage method
JP2002358209A (en) Information processing method and device thereof
JP2009277253A (en) Information processing apparatus, information processing method, and method for controlling information processing apparatus
JP2002055838A (en) Image forming device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051206

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20051206

RD03 Notification of appointment of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7423

Effective date: 20060418

RD05 Notification of revocation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7425

Effective date: 20070626

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20081128

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090526

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090724

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090818

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090824

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

Free format text: PAYMENT UNTIL: 20120828

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 4366207

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20120828

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130828

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees