JP2003330746A - Processor - Google Patents

Processor

Info

Publication number
JP2003330746A
JP2003330746A JP2002140277A JP2002140277A JP2003330746A JP 2003330746 A JP2003330746 A JP 2003330746A JP 2002140277 A JP2002140277 A JP 2002140277A JP 2002140277 A JP2002140277 A JP 2002140277A JP 2003330746 A JP2003330746 A JP 2003330746A
Authority
JP
Japan
Prior art keywords
firmware
update
instruction
printer
host computer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2002140277A
Other languages
Japanese (ja)
Inventor
Haruo Yo
治雄 余
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.)
Nidec Precision Corp
Original Assignee
Nidec Copal 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 Nidec Copal Corp filed Critical Nidec Copal Corp
Priority to JP2002140277A priority Critical patent/JP2003330746A/en
Publication of JP2003330746A publication Critical patent/JP2003330746A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a processor in which existing firmware will not be erased by a wrong operation. <P>SOLUTION: When an instruction for updating the firmware is given from an operator (S102), a download instruction for a new firmware from a host computer is waited (S103, S105), and when the download instruction is given, the firmware is updated (S104). <P>COPYRIGHT: (C)2004,JPO

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、ファームウエアを
搭載したプリンタ等の処理装置に関し、特に、ファーム
ウエアの更新技術に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a processing device such as a printer equipped with firmware, and more particularly to a firmware updating technique.

【0002】[0002]

【従来の技術】プリンタ等のコンピュータ周辺機器に代
表される処理装置では、通常、ファームウエアがフラッ
シュROM等のメモリに格納されており、このファーム
ウエアに従って各処理が実行される。ここで、ファーム
ウエアをバージョンアップする場合には、その更新が必
要となる。ファームウエアを更新する場合には、例え
ば、処理装置に設けられた特定のスイッチを操作するこ
とで、既存のファームウエアを消去し、その後、ホスト
コンピュータから新たなファームウエアを処理装置にダ
ウンロードする手法が提案されている。
2. Description of the Related Art In a processing device typified by a computer peripheral device such as a printer, firmware is usually stored in a memory such as a flash ROM, and each process is executed in accordance with this firmware. Here, when upgrading the firmware, the update is required. When updating the firmware, for example, by operating a specific switch provided in the processing device, the existing firmware is erased, and then new firmware is downloaded from the host computer to the processing device. Is proposed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、従来の
ファームウエアの更新方法では、処理装置に設けられた
特定のスイッチを誤って操作してしまった場合、ファー
ムウエアを更新するつもりがないのに、既存のファーム
ウエアが消去されてしまうという問題がある。
However, in the conventional firmware updating method, even if the specific switch provided in the processing device is operated by mistake, the firmware is not intended to be updated. There is a problem that the existing firmware will be erased.

【0004】従って、本発明の目的は、誤操作により既
存のファームウエアが消去されない処理装置を提供する
ことにある。
Therefore, it is an object of the present invention to provide a processing device in which existing firmware is not erased by an erroneous operation.

【0005】[0005]

【課題を解決するための手段】本発明によれば、ファー
ムウエアが格納された記憶手段と、前記記憶手段に格納
されたファームウエアの更新を指示する指示手段と、所
定の処理を実行する処理手段と、を備え、前記処理手段
は、前記指示手段によりファームウエアの更新が指示さ
れているか否かを判定する判定工程と、前記判定工程に
おいて更新が指示されていると判定した場合に、ホスト
コンピュータからのファームウエアのダウンロード命令
を待機する待機工程と、前記待機工程において、ホスト
コンピュータから前記ダウンロード命令があった場合
に、前記記憶手段に記憶されたファームウエアを更新す
る工程と、を実行することを特徴とする処理装置が提供
される。
According to the present invention, storage means in which firmware is stored, instruction means for instructing updating of the firmware stored in the storage means, and processing for executing predetermined processing Means for determining whether the update of the firmware is instructed by the instructing means, and the host if the update is instructed in the determining step. A standby step of waiting for a firmware download instruction from a computer, and a step of updating the firmware stored in the storage means when there is the download instruction from the host computer in the standby step are executed. There is provided a processing device characterized by the above.

【0006】[0006]

【発明の実施の形態】以下、本発明の好適な実施の形態
について図面を参照して説明する。図1は、本発明の一
実施形態に係るプリンタ2とホストコンピュータ1とを
接続した態様を示す図、図2は、プリンタ2のブロック
図である。本実施形態では、本発明の処理装置としてプ
リンタ2を例に挙げて説明するが、本発明はこれに限ら
れず、種々の処理装置に適用可能である。
BEST MODE FOR CARRYING OUT THE INVENTION Preferred embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a diagram showing a mode in which a printer 2 and a host computer 1 according to an embodiment of the present invention are connected, and FIG. 2 is a block diagram of the printer 2. In the present embodiment, the printer 2 will be described as an example of the processing device of the present invention, but the present invention is not limited to this, and can be applied to various processing devices.

【0007】図1において、ホストコンピュータ1は、
プリンタ2で実行されるファームウエアをダウンロード
するためのコンピュータであり、USB形式でプリンタ
2と通信可能に接続されている。本実施形態では、ホス
トコンピュータ1とプリンタ2とをUSB形式で接続し
ているが、他の接続方式を利用することができることは
いうまでもない。
In FIG. 1, the host computer 1 is
It is a computer for downloading firmware executed by the printer 2, and is communicably connected to the printer 2 in the USB format. In the present embodiment, the host computer 1 and the printer 2 are connected in the USB format, but it goes without saying that other connection methods can be used.

【0008】図2において、CPU21は、フラッシュ
ROM23に格納されたソフトウエアプログラムに従っ
て、所定の処理を実行する。RAM22は、CPU21
の処理のためのワークエリアとして機能するメモリであ
る。フラッシュROM23には、少なくともファームウ
エアと初期設定プログラムとが格納されるメモリであ
る。初期設定プログラムは、プリンタ2の電源投入時に
実行される。ファームウエアは、プリンタ2の印刷動作
等を実行するためのプログラムである。ファームウエア
を格納するメモリとしては、フラッシュROMに限られ
ず、種々のメモリを採用可能である。また、ファームウ
エアを格納するメモリと初期設定プログラムを格納する
メモリとを別々にしてもよい。
In FIG. 2, the CPU 21 executes a predetermined process according to a software program stored in the flash ROM 23. RAM22 is CPU21
It is a memory that functions as a work area for processing. The flash ROM 23 is a memory that stores at least firmware and an initial setting program. The initial setting program is executed when the printer 2 is powered on. The firmware is a program for executing the printing operation of the printer 2 and the like. The memory for storing the firmware is not limited to the flash ROM, and various memories can be adopted. Further, the memory storing the firmware and the memory storing the initial setting program may be separate.

【0009】電源部24は、プリンタ2の各構成に必要
な電力を発生する回路等からなり、コンセントを介して
供給される交流電圧を直流電圧に変換等する。電源部2
4は、図1に示す電源スイッチ24aを含み、このスイ
ッチによりプリンタ2のON、OFFが行われる。
The power supply unit 24 is composed of a circuit for generating electric power necessary for each component of the printer 2, and converts an AC voltage supplied via an outlet into a DC voltage. Power supply 2
Reference numeral 4 includes the power switch 24a shown in FIG. 1, and the printer 2 is turned on and off by this switch.

【0010】USBインターフェース25は、USBケ
ーブルを介して、ホストコンピュータ1との間の通信イ
ンターフェースとして機能する。I/Oインターフェー
ス26は、指示部27、駆動部28及び表示部29と、
CPU21との間のデータの入出力をインターフェース
する。
The USB interface 25 functions as a communication interface with the host computer 1 via a USB cable. The I / O interface 26 includes an instruction unit 27, a drive unit 28, and a display unit 29.
Interfaces data input / output with the CPU 21.

【0011】指示部27は、プリンタ2の操作者がプリ
ンタ2に対する設定等の各種指示を行うためのものであ
り、図1に示す指示スイッチ27aを含む。操作者は、
指示スイッチ27aを操作することにより各種の指示が
可能となる。なお、本実施形態の場合、操作者は、この
指示スイッチ27aによりフラッシュROM23に格納
されたファームウエアの更新を指示することができる。
The instruction unit 27 is used by the operator of the printer 2 to give various instructions such as settings to the printer 2, and includes the instruction switch 27a shown in FIG. The operator
Various instructions can be issued by operating the instruction switch 27a. In the case of the present embodiment, the operator can instruct to update the firmware stored in the flash ROM 23 by using the instruction switch 27a.

【0012】駆動部28は、印画紙の搬送機構の駆動
(例えば、モータ等)、サーマルヘッドやインクジェッ
ト等に代表される印刷デバイスの駆動といった、印刷処
理に必要な各構成を駆動する回路等を含む。表示部29
は、エラー等の各種情報を表示するための構成であっ
て、図1に示すLCD29やこれを駆動する回路等を含
む。LCDの他に、LED等も採用可能である。
The drive unit 28 includes a circuit for driving each component necessary for the printing process, such as driving of a printing paper transporting mechanism (for example, a motor), driving of a printing device typified by a thermal head, an ink jet, or the like. Including. Display unit 29
Is a configuration for displaying various information such as an error, and includes the LCD 29 shown in FIG. 1 and a circuit for driving the LCD 29. Besides the LCD, an LED or the like can be adopted.

【0013】次に、プリンタ2におけるファームウエア
の更新手順について説明する。図3は、プリンタ2にお
ける電源投入時のCPU21の処理を示すフローチャー
トである。電源スイッチ24aをONにすると、フラッ
シュROM23に格納された初期設定プログラムが起動
し、以下の処理が行われる。
Next, a firmware update procedure in the printer 2 will be described. FIG. 3 is a flowchart showing the processing of the CPU 21 when the printer 2 is powered on. When the power switch 24a is turned on, the initial setting program stored in the flash ROM 23 is activated and the following processing is performed.

【0014】S101では、プリンタ2の各構成の初期
化が行われる。S102では、ファームウエアの更新が
操作者によって指示されているか否かを判定する。ファ
ームウエアの更新の指示の有無は、予め定められた指示
スイッチ27aがONにされているか否かにより判定す
る。例えば、操作者がその指示スイッチ27aをONに
した状態で、電源スイッチ24aをONにして電源の投
入をした場合、更新が指示されていると判定される。
In S101, each component of the printer 2 is initialized. In S102, it is determined whether or not the operator has instructed to update the firmware. Whether or not there is an instruction to update the firmware is determined by whether or not a predetermined instruction switch 27a is turned on. For example, when the operator turns on the instruction switch 27a and turns on the power switch 24a to turn on the power, it is determined that the update is instructed.

【0015】S102において、ファームウエアの更新
が指示されていると判定した場合はS103へ進み、指
示されていないと判定した場合は、S106へ進み、フ
ラッシュROM23に格納されたファームウエアを実行
することとなる。
If it is determined in S102 that the firmware update is instructed, the process proceeds to S103. If it is determined that the firmware update is not instructed, the process proceeds to S106, and the firmware stored in the flash ROM 23 is executed. Becomes

【0016】S103では、ホストコンピュータ1から
ファームウエアのダウンロード命令があるか否かを判定
する。通常、プリンタ2の操作者がホストコンピュータ
1を操作してダウンロード命令を送信することとなる。
ダウンロード命令があると判定した場合、S104へ進
みファームウエアの更新処理を行う。ここではフラッシ
ュROM23に格納されている既存のファームウエアを
消去して、ホストコンピュータ1からダウンロードされ
た新たなファームウエアをフラッシュROM23に格納
する。これによりファームウエアの更新が完了し、処理
が終了する。尤も、この後、新たなファームウエアを実
行するようにしてもよい。
In S103, it is determined whether or not there is a firmware download instruction from the host computer 1. Normally, the operator of the printer 2 operates the host computer 1 to send a download command.
If it is determined that there is a download instruction, the process proceeds to S104 and firmware update processing is performed. Here, the existing firmware stored in the flash ROM 23 is erased, and the new firmware downloaded from the host computer 1 is stored in the flash ROM 23. This completes the firmware update and ends the process. However, new firmware may be executed after this.

【0017】S103において、ダウンロード命令がな
いと判定した場合、S105へ進み、ファームウエアの
更新指示が操作者により解除されていないか否かを判定
する。更新指示の解除は、例えば、操作者が予め定めら
れた指示スイッチ27aをONにすることにより行うこ
とができる。この処理は、操作者が誤ってファームウエ
アの更新を指示してしまった場合、これを解除するため
に行われる処理である。更新指示が解除された場合、処
理が終了する。尤も、この後、S106へ進みファーム
ウエアを実行するようにしてもよい。
If it is determined in S103 that there is no download command, the process proceeds to S105, in which it is determined whether the firmware update instruction has been canceled by the operator. The update instruction can be canceled, for example, by the operator turning on a predetermined instruction switch 27a. This process is a process performed to cancel the firmware if the operator mistakenly gives an instruction to update the firmware. If the update instruction is canceled, the process ends. However, after that, the process may proceed to S106 to execute the firmware.

【0018】S105において、ファームウエアの更新
指示が解除されていないと判定した場合、S103へ戻
り、ホストコンピュータ1からのダウンロード命令があ
るか否かを再び判定し、上述した手順を繰り返す。
If it is determined in S105 that the firmware update instruction has not been released, the process returns to S103, it is determined again whether or not there is a download instruction from the host computer 1, and the above procedure is repeated.

【0019】ここで、本実施形態のプリンタ2では、操
作者からファームウエアの更新指示があった場合、ホス
トコンピュータ1からのダウンロード命令があるまでS
103からS105の処理をループするので、ダウンロ
ード命令を待機することとなる。すなわち、ホストコン
ピュータ1からのダウンロード命令があるまでは、フラ
ッシュROM23に格納されたファームウエアを消去す
ることはない。
Here, in the printer 2 of the present embodiment, when the operator gives an instruction to update the firmware, S is executed until a download instruction is given from the host computer 1.
Since the process from 103 to S105 is looped, the download command is awaited. That is, the firmware stored in the flash ROM 23 is not erased until there is a download command from the host computer 1.

【0020】従って、例えば、操作者が誤ってダウンロ
ードの更新を指示したとしても、フラッシュROM23
に格納された既存のファームウエアが消去されることは
ない。併せて、ファームウエアを更新するためには、ホ
ストコンピュータ1からダウンロード命令を送信する必
要があり、プリンタ2の操作者又はその代わりの者がホ
ストコンピュータ1も操作する必要があるので、一層誤
操作が回避される。
Therefore, for example, even if the operator mistakenly gives an instruction to update the download, the flash ROM 23
The existing firmware stored in will not be erased. At the same time, in order to update the firmware, it is necessary to send a download command from the host computer 1, and the operator of the printer 2 or a substitute thereof needs to operate the host computer 1 as well. Avoided.

【0021】以上述べたとおり、本実施形態では、操作
者の誤操作により既存のファームウエアが消去されるこ
とはない。従って、誤操作を防止するために、例えば、
ファームウエアの更新を指示するスイッチ等を、通常操
作されないような特別な位置に設ける必要はなく、上記
実施形態のように通常操作され得るスイッチ(指示スイ
ッチ27a)等によってファームウエアの更新を指示す
ることも可能となる。
As described above, in this embodiment, the existing firmware is not erased by the operator's erroneous operation. Therefore, in order to prevent erroneous operation, for example,
It is not necessary to provide a switch or the like for instructing the update of the firmware at a special position that is not normally operated, and the switch (instruction switch 27a) or the like that can be normally operated as in the above embodiment is used to instruct the update of the firmware. It is also possible.

【0022】なお、本実施形態では、ファームウエアの
実行前にファームウエアの更新に関する処理を行うよう
にしたが、例えば、ファームウエアの実行中に、指示ス
イッチ27aに対して所定の操作がされた場合に、ファ
ームウエアの更新に関する処理を割り込んで行うように
してもよい。
In the present embodiment, the processing related to the firmware update is performed before the firmware is executed. However, for example, a predetermined operation is performed on the instruction switch 27a during the firmware execution. In this case, the processing regarding the firmware update may be interrupted.

【0023】但し、既存のファームウエアにバグがあ
り、暴走するような状況下においてファームウエアを更
新する場合には、ファームウエアの更新に関する処理が
実行されない場合も考えられるので、上記実施形態のよ
うにファームウエアを実行する前に、ファームウエアの
更新に関する処理を行う方が望ましい。
However, when updating the firmware in a situation where the existing firmware has a bug and runs out of control, it may be possible that the processing for updating the firmware is not executed. Before executing the firmware, it is preferable to perform the processing related to updating the firmware.

【0024】また、上記実施形態では、S105におい
て更新指示が解除されるまで、ホストコンピュータ1か
らのダウンロード命令の待機状態になるようにしたが、
これに代えて、例えば、所定の時間が経過するまでの
間、待機状態とするようにしてもよい。
Further, in the above-described embodiment, the standby state for the download command from the host computer 1 is set until the update instruction is canceled in S105.
Instead of this, for example, the standby state may be kept until a predetermined time elapses.

【0025】[0025]

【発明の効果】以上説明したように、本発明によれば、
誤操作により既存のファームウエアが消去されることを
回避できる。
As described above, according to the present invention,
It is possible to prevent the existing firmware from being erased by mistake.

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

【図1】本発明の一実施形態に係るプリンタ2とホスト
コンピュータ1とを接続した態様を示す図である。
FIG. 1 is a diagram showing a mode in which a printer 2 and a host computer 1 according to an embodiment of the present invention are connected.

【図2】プリンタ2のブロック図である。FIG. 2 is a block diagram of a printer 2.

【図3】プリンタ2における電源投入時のCPU21の
処理を示すフローチャートである。
FIG. 3 is a flowchart showing processing of a CPU 21 when the printer 2 is powered on.

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

1 ホストコンピュータ 2 プリンタ 21 CPU 23 フラッシュROM 24 電源部24 27 指示部 1 Host computer 2 printer 21 CPU 23 Flash ROM 24 power supply 24 27 Indicator

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】 ファームウエアが格納された記憶手段
と、 前記記憶手段に格納されたファームウエアの更新を指示
する指示手段と、 所定の処理を実行する処理手段と、を備え、 前記処理手段は、 前記指示手段によりファームウエアの更新が指示されて
いるか否かを判定する判定工程と、 前記判定工程において更新が指示されていると判定した
場合に、ホストコンピュータからのファームウエアのダ
ウンロード命令を待機する待機工程と、 前記待機工程において、ホストコンピュータから前記ダ
ウンロード命令があった場合に、前記記憶手段に記憶さ
れたファームウエアを更新する工程と、を実行すること
を特徴とする処理装置。
1. A storage means storing firmware, an instruction means for instructing an update of the firmware stored in the storage means, and a processing means for executing a predetermined process, the processing means. A determining step of determining whether or not the update of the firmware is instructed by the instructing means, and waiting for a firmware download instruction from the host computer when determining that the update is instructed in the determining step And a step of updating the firmware stored in the storage when the host computer issues the download instruction in the standby step.
【請求項2】 前記判定工程が、 前記処理装置の電源投入時に前記指示手段によりファー
ムウエアプログラムの更新が指示されているか否かを判
定する工程であり、 更新が指示されていない場合、前記処理手段は、前記記
憶手段に格納されたファームウエアを実行することを特
徴とする請求項1に記載の処理装置。
2. The determination step is a step of determining whether or not updating of the firmware program is instructed by the instructing unit when the processing device is powered on, and when the update is not instructed, the processing is performed. The processing unit according to claim 1, wherein the unit executes the firmware stored in the storage unit.
JP2002140277A 2002-05-15 2002-05-15 Processor Pending JP2003330746A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002140277A JP2003330746A (en) 2002-05-15 2002-05-15 Processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002140277A JP2003330746A (en) 2002-05-15 2002-05-15 Processor

Publications (1)

Publication Number Publication Date
JP2003330746A true JP2003330746A (en) 2003-11-21

Family

ID=29701194

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002140277A Pending JP2003330746A (en) 2002-05-15 2002-05-15 Processor

Country Status (1)

Country Link
JP (1) JP2003330746A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017151966A (en) * 2016-02-24 2017-08-31 オプティシス株式会社 Display port optical connector

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2017151966A (en) * 2016-02-24 2017-08-31 オプティシス株式会社 Display port optical connector

Similar Documents

Publication Publication Date Title
JP6103909B2 (en) Image processing apparatus, image processing apparatus control method, and program
JP2008006717A (en) Image forming device
JP2006202117A (en) Processor and its firmware download method
JP2006243997A (en) Download system
JP2013092940A (en) Electronic apparatus and power control method for the same
JP6431279B2 (en) Printing apparatus and printing apparatus control method
JP2003330746A (en) Processor
JP2008162054A (en) Printer
JPH06314202A (en) Image-forming device
JP2007293735A (en) Protection circuit, operation monitoring device, and electronic apparatus
JP5803598B2 (en) Image forming apparatus
JPH05274157A (en) Image generating device
JP2008059360A (en) Printer
JP2006039939A (en) Electronic equipment
KR20070044269A (en) Apparatus and method of processing download in main board
JPH08212079A (en) Image forming device
JP2004126876A (en) Method for downloading program and electronic apparatus
JP2001051844A (en) Computer peripheral equipment and firmware updating method
JP2008018666A (en) Printer
JP2005103789A (en) Electronic apparatus
JP2004090243A (en) Image forming system and its power saving method
JP2005149211A (en) Data recording device and method for rewriting data
JPH11259306A (en) Electronic controller
JP2000020289A (en) Equipment controller
JP2000076073A (en) Electronic equipment

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050511

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20071031

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20071130

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080124

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080714

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080910

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20090420