JP2013109450A - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP2013109450A
JP2013109450A JP2011252337A JP2011252337A JP2013109450A JP 2013109450 A JP2013109450 A JP 2013109450A JP 2011252337 A JP2011252337 A JP 2011252337A JP 2011252337 A JP2011252337 A JP 2011252337A JP 2013109450 A JP2013109450 A JP 2013109450A
Authority
JP
Japan
Prior art keywords
software
update
restoration
unit
return
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.)
Granted
Application number
JP2011252337A
Other languages
Japanese (ja)
Other versions
JP5803598B2 (en
Inventor
Yoshiaki Sato
嘉晃 佐藤
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.)
Ricoh Co Ltd
Original Assignee
Ricoh Co Ltd
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 Ricoh Co Ltd filed Critical Ricoh Co Ltd
Priority to JP2011252337A priority Critical patent/JP5803598B2/en
Publication of JP2013109450A publication Critical patent/JP2013109450A/en
Application granted granted Critical
Publication of JP5803598B2 publication Critical patent/JP5803598B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To reduce a memory capacity required when updating a program.SOLUTION: When an update processing section 20 receives from a host IF section 8 or an external storage section IF section 10 update software including software for updating that performs firmware (software) updating and software for restoration that performs restoration processing to restore a printer 1 to an updatable state when updating is failed, an update data discrimination processing section 21 discriminates the software for updating and the software for restoration, and using the result of discrimination, the update processing section 20 stores the software for updating in an updating software storage region part of a ROM 3 or an internal storage section 9, and the software for restoration in a restoration software storage region part and a restoration software backup storage region part, respectively.

Description

この発明は、ファクシミリ装置、プリンタ、複写装置、並びにそれらの機能を備えた複合機を含む画像形成装置に関する。   The present invention relates to a facsimile machine, a printer, a copying machine, and an image forming apparatus including a multifunction machine having these functions.

ファクシミリ装置、プリンタ、複写装置、並びにそれらの機能を備えた複合機を含む画像形成装置では、装置を動かすためのファームウェアと呼ばれるプログラムを実行して各種の処理や制御の動作をする。
上記ファームウェアは、装置の不具合や機能拡張のためにアップデートすることが可能となっている場合が多い。ファームウェアのアップデートには、プログラム内容の更新、プログラム内容の改善、プログラム内容の修正、プログラム内容の機能追加等がある。
In an image forming apparatus including a facsimile machine, a printer, a copying machine, and a multifunction machine having these functions, a program called firmware for operating the machine is executed to perform various processes and control operations.
In many cases, the firmware can be updated due to a malfunction of the apparatus or function expansion. Firmware update includes program content update, program content improvement, program content modification, program content function addition, and the like.

従来、ファームウェアのアップデートの際、不揮発性メモリに保存されたファームウエアを更新するための第2のファームウエアに対応する更新データをブロック毎に順次転送し、その転送されたブロックから得られるデータと、その得られたデータを書き込むべき不揮発性メモリ上の領域のデータとが異なる場合、上記不揮発性メモリ上の領域を上記得られたデータによって書き換える装置(例えば、特許文献1参照)があった。   Conventionally, when updating firmware, update data corresponding to the second firmware for updating the firmware stored in the nonvolatile memory is sequentially transferred for each block, and the data obtained from the transferred block When the obtained data is different from the data in the area on the nonvolatile memory to be written, there is a device for rewriting the area on the nonvolatile memory with the obtained data (see, for example, Patent Document 1).

しかしながら、従来の装置では、ファームウェアのアップデートを行う際に電源断などの要因によりアップデートが完了できなかった場合、ファームウェアに不整合が生じ、装置が起動しないという問題があった。
この問題に対して、ホストコンピュータからファームウェアを受信する際に、2箇所の記憶領域に同じファームウェアを交互に書き込むことにより、いずれか一方は正常なファームウェアであるようにする方法や、ファームウェアの更新のみ実施可能な復帰用ファームウェアを独立させ、アップデートに失敗した場合でも復帰用ファームウェアを起動させ、再度ファームウェアのアップデートを可能な状態にする方法がある。
However, the conventional apparatus has a problem that, when updating the firmware, if the update cannot be completed due to a power failure or the like, the firmware is inconsistent and the apparatus does not start.
To solve this problem, when receiving firmware from the host computer, the same firmware is written alternately to the two storage areas so that either one is normal firmware, or only firmware update There is a method in which the executable return firmware is made independent, and even when the update fails, the return firmware is activated so that the firmware can be updated again.

しかし、ファームウェアを二重に記録する方法はファームウェアを保存する領域がファームウェア単体と比べて二倍必要になるという問題があり、復帰用ファームウェアを用意する場合は通常動作用のファームウェアを別途作成する必要があるという新たな問題があった。
この発明は上記の点に鑑みてなされたものであり、プログラムのアップデートの際に要するメモリ容量を削減できるようにすることを目的とする。
However, there is a problem that the method of recording firmware twice requires the area to save the firmware twice as compared with the firmware alone, and when preparing the recovery firmware, it is necessary to create the firmware for normal operation separately There was a new problem that there was.
The present invention has been made in view of the above points, and an object thereof is to reduce the memory capacity required for updating a program.

この発明は上記の目的を達成するため、記録媒体に画像を形成する画像形成手段を備えた画像形成装置であって、当該画像形成装置を制御する制御手段が実行するソフトウェアを保存するソフトウェア保存手段と、上記制御手段に上記ソフトウェアのアップデートを実行させるアップデート用ソフトウェアと上記制御手段に上記ソフトウェアのアップデートに失敗した場合に当該画像形成装置を上記アップデートが可能な状態に復帰させる復帰処理を実行させる復帰用ソフトウェアとを含むアップデートソフトウェアを受信する受信手段と、上記アップデート用ソフトウェアを保存するアップデート用ソフトウェア保存手段と、上記復帰用ソフトウェアを保存する復帰用ソフトウェア保存手段と、上記復帰用ソフトウェアのバックアップ用の復帰用ソフトウェアバックアップ保存手段と、上記受信手段によって受信した上記アップデートソフトウェアの上記アップデート用ソフトウェアと上記復帰用ソフトウェアとを判別する判別手段と、上記判別手段によって判別された上記アップデート用ソフトウェアを上記アップデート用ソフトウェア保存手段に保存し、上記判別手段によって判別された上記復帰用ソフトウェアを上記復帰用ソフトウェア保存手段と上記復帰用ソフトウェアバックアップ保存手段にそれぞれ保存する保存制御手段を有する画像形成装置を提供する。   In order to achieve the above object, the present invention is an image forming apparatus including an image forming unit that forms an image on a recording medium, and a software storage unit that stores software executed by a control unit that controls the image forming apparatus And update software that causes the control means to update the software, and a return that causes the control means to perform a return process that returns the image forming apparatus to a state where the update is possible when the software update fails. Receiving means for receiving update software including software for update, update software storage means for storing the update software, return software storage means for storing the return software, and backup software for the return software Return software backup storage means; discrimination means for discriminating between the update software and the return software of the update software received by the reception means; and the update software discriminated by the discrimination means for the update There is provided an image forming apparatus having storage control means for storing in a software storage means and saving the restoration software discriminated by the discrimination means in the restoration software saving means and the restoration software backup saving means.

この発明による画像形成装置は、プログラムのアップデートの際に要するメモリ容量を削減することができる。   The image forming apparatus according to the present invention can reduce the memory capacity required for updating the program.

この発明の一実施形態であるプリンタの機能構成を示すブロック図である。1 is a block diagram illustrating a functional configuration of a printer according to an embodiment of the present invention. FIG. 図1に示したROM及び内部記憶部のフォーマット例を示す説明図である。It is explanatory drawing which shows the example of a format of ROM shown in FIG. 1, and an internal memory part. 図1に示したプリンタにおけるアップデートソフトウェア受信時のアップデート処理を示すフローチャート図である。FIG. 3 is a flowchart showing an update process when update software is received in the printer shown in FIG. 1. アップデートソフトウェアのフォーマット例を示す説明図である。It is explanatory drawing which shows the format example of update software. 図4に示したアップデートソフトウェアのアップデート用ソフトウェア及び復帰用ソフトウェアのそれぞれのオフセット位置とデータサイズの一例を示す図である。FIG. 5 is a diagram illustrating an example of offset positions and data sizes of update software and return software of the update software illustrated in FIG. 4. 図1に示したプリンタにおけるアップデートに失敗した場合の処理を示すフローチャート図である。FIG. 2 is a flowchart showing processing when update in the printer shown in FIG. 1 fails. 図4に示したアップデートソフトウェアのアップデート用ソフトウェア及び復帰用ソフトウェアのそれぞれのアドレスとデータサイズの一例を示す図である。FIG. 5 is a diagram illustrating an example of addresses and data sizes of update software and return software of the update software illustrated in FIG. 4. 図1に示したプリンタにおけるアップデートに失敗した場合の他の処理例を示すフローチャート図である。FIG. 10 is a flowchart illustrating another example of processing when update in the printer illustrated in FIG. 1 fails.

以下、この発明を実施するための形態を図面に基づいて具体的に説明する。
図1は、この発明の一実施形態であるプリンタの機能構成を示すブロック図である。
このプリンタ1は、インクジェット方式のプリンタ、電子写真方式のプリンタ等の画像形成装置であり、コントローラ部2、ROM3、RAM4、プロッタエンジン部5、操作パネル6、ユーザ通知部7、ホストインタフェース(IF)部8、内部記憶部9、及び外部記憶部インタフェース(IF)部10を備えている。
Hereinafter, embodiments for carrying out the present invention will be specifically described with reference to the drawings.
FIG. 1 is a block diagram showing a functional configuration of a printer according to an embodiment of the present invention.
The printer 1 is an image forming apparatus such as an ink jet printer or an electrophotographic printer, and includes a controller unit 2, a ROM 3, a RAM 4, a plotter engine unit 5, an operation panel 6, a user notification unit 7, a host interface (IF). Unit 8, internal storage unit 9, and external storage unit interface (IF) unit 10.

コントローラ部2は、CPUによって実現され、RAM4を作業領域としてROM3又は内部記憶部9に記憶されたファームウェアを実行することにより、このプリンタ1の3〜10の各部を含む全体の制御を司り、アップデート処理部20とブート(boot)処理部22の各機能も実現する。すなわち、このコントローラ部2は、このプリンタ1(当該画像形成装置)を制御する制御手段の機能を果たす。
また、上記アップデート処理部20はアップデートデータ判別処理部21の機能を有し、上記ブート処理部22は起動切り替え処理部23とリカバリ処理部24の各機能も有する。
上記20〜24の各部の詳細については後述する。
The controller unit 2 is realized by the CPU, and executes the firmware stored in the ROM 3 or the internal storage unit 9 by using the RAM 4 as a work area, thereby controlling the entire unit including the units 3 to 10 of the printer 1 and updating the firmware. The functions of the processing unit 20 and the boot processing unit 22 are also realized. In other words, the controller unit 2 functions as a control unit that controls the printer 1 (the image forming apparatus).
The update processing unit 20 has a function of an update data discrimination processing unit 21, and the boot processing unit 22 has functions of a start switching processing unit 23 and a recovery processing unit 24.
Details of each of the above 20 to 24 will be described later.

プロッタエンジン部5は、コントローラ部2から受け取った画像データに基いて用紙等の記録媒体に印刷する。すなわち、記録媒体に画像を形成する画像生成手段の機能を果たす。
操作パネル6は、ユーザがプリンタ1に対して各種の操作情報を入力する入力装置であり、ユーザから入力された操作情報をコントローラ部2へ送る。
ユーザ通知部7は、コントローラ部2から受け取った表示データに基いてユーザにプリンタ1における各種の作業情報を表示する表示装置である。
The plotter engine unit 5 prints on a recording medium such as paper based on the image data received from the controller unit 2. That is, it functions as an image generating means for forming an image on a recording medium.
The operation panel 6 is an input device for the user to input various operation information to the printer 1, and sends operation information input from the user to the controller unit 2.
The user notification unit 7 is a display device that displays various work information in the printer 1 to the user based on the display data received from the controller unit 2.

ホストIF部8は、このプリンタ1とケーブルで直接に通信可能に接続、又はローカルエリアネットワークやインターネット等のネットワークを介して通信可能に接続された情報処理装置であるホストコンピュータ11との通信制御を司る。
このホストコンピュータ11は、CPU、ROM及びRAMからなるマイクロコンピュータによって実現され、プリンタ1に対して画像データの印刷を要求し、ファームウェアのアップデートのためのアップデートソフトウェアを送信する。
The host IF unit 8 controls communication with the host computer 11 which is an information processing apparatus that is connected to the printer 1 via a cable so as to be directly communicable or is communicably connected via a network such as a local area network or the Internet. Control.
The host computer 11 is realized by a microcomputer including a CPU, a ROM, and a RAM, requests the printer 1 to print image data, and transmits update software for firmware update.

内部記憶部9は、ハードディスクドライブ(HDD)、EEPROM、NVRAM等のプリンタ1の本体に対して脱着不可で、コントローラ部2が読み書き可能な不揮発性の記憶手段であり、コントローラ部2が実行するファームウェア、そのファームウェアをアップデートするアップデートソフトウェアを含む各種のプログラムを記憶する。
上記アップデートソフトウェアは、コントローラ部2に上記ファームウェアのアップデートを実行させるアップデート用ソフトウェアと、コントローラ部2に上記ファームウェアのアップデートに失敗した場合にプリンタ1を上記アップデートが可能な状態に復帰させる復帰処理を実行させる復帰用ソフトウェアとを含んでいる。
The internal storage unit 9 is a non-volatile storage unit that cannot be attached to or detached from the main body of the printer 1 such as a hard disk drive (HDD), EEPROM, NVRAM, etc., and is readable and writable by the controller unit 2, and firmware executed by the controller unit 2 Various programs including update software for updating the firmware are stored.
The update software executes update software that causes the controller unit 2 to update the firmware, and a return process that causes the controller unit 2 to return the printer 1 to a state where the update is possible if the firmware update fails. Including return software.

また、上記ROM3と上記内部記憶部9は、プリンタ1を制御する制御手段であるコントローラ部2が実行するソフトウェアであるファームウェアを保存するソフトウェア保存手段の機能を果たす。
さらに、上記ROM3と上記内部記憶部9は、上記アップデート用ソフトウェアを保存するアップデート用ソフトウェア保存手段と、上記復帰用ソフトウェアを保存する復帰用ソフトウェア保存手段と、上記復帰用ソフトウェアのバックアップ用の復帰用ソフトウェアバックアップ保存手段の各手段の機能も果たす。
The ROM 3 and the internal storage unit 9 serve as a software storage unit that stores firmware that is software executed by the controller unit 2 that is a control unit that controls the printer 1.
Further, the ROM 3 and the internal storage unit 9 include update software storage means for storing the update software, recovery software storage means for storing the recovery software, and recovery for backup of the recovery software. It also functions as each means of the software backup storage means.

外部記憶部IF部10は、コントローラ部2と外部記憶部12とのデータのやり取りの通信制御を司る。
外部記憶部12は、IC−カード(Card)装置、USBメモリとSDカード装置等のフラッシュメモリ等のプリンタ1の本体に対して脱着可能で、コントローラ部2が外部記憶部IF部10を介して読み書き可能な不揮発性の記憶手段であり、ファームウェアのアップデートソフトウェアを含む各種のプログラムやデータを記憶する。
上記ホストIF部8と上記外部記憶部IF部10は、アップデートソフトウェアを受信する受信手段の機能を果たす。
The external storage unit IF unit 10 controls communication of data exchange between the controller unit 2 and the external storage unit 12.
The external storage unit 12 is detachable from the main body of the printer 1 such as an IC-card (Card) device, a flash memory such as a USB memory and an SD card device, and the controller unit 2 is connected via the external storage unit IF unit 10. It is a readable / writable nonvolatile storage means, and stores various programs and data including firmware update software.
The host IF unit 8 and the external storage unit IF unit 10 function as receiving means for receiving update software.

上記コントローラ部2のアップデート処理部20は、上記ROM3又は上記内部記憶部9のファームウェアをアップデートソフトウェアによってアップデートする処理を実行する。
上記アップデートデータ判別処理部21は、アップデートソフトウェア内のアップデート用ソフトウェアと復帰用ソフトウェアとを判別する処理を実行する。すなわち、上記ホストIF部8又は上記外部記憶部IF部10によって受信したアップデートソフトウェアのアップデート用ソフトウェアと復帰用ソフトウェアとを判別する判別手段の機能を果たす。
The update processing unit 20 of the controller unit 2 executes a process of updating the firmware of the ROM 3 or the internal storage unit 9 with update software.
The update data discrimination processing unit 21 executes a process for discriminating update software and return software in the update software. That is, it functions as a discriminating means for discriminating update software and return software of the update software received by the host IF unit 8 or the external storage unit IF unit 10.

そして、コントローラ部2は、アップデートソフトウェアを受信した場合、上記アップデートデータ判別処理部21の判別結果に基いて、アップデートソフトウェアのアップデート用ソフトウェアと復帰用ソフトウェアをそれぞれ分けて上記ROM3又は上記内部記憶部9に記憶する処理を実行する。すなわち、上記アップデートデータ判別処理部21によって判別されたアップデート用ソフトウェアを上記アップデート用ソフトウェア保存手段に保存し、上記復帰用ソフトウェアを上記復帰用ソフトウェア保存手段と上記復帰用ソフトウェアバックアップ保存手段にそれぞれ保存する保存制御手段の機能を果たす。   When receiving the update software, the controller unit 2 separates the update software and the return software of the update software based on the determination result of the update data determination processing unit 21, and stores the ROM 3 or the internal storage unit 9. The process memorize | stored in is performed. That is, the update software determined by the update data determination processing unit 21 is stored in the update software storage unit, and the return software is stored in the return software storage unit and the return software backup storage unit. It fulfills the function of storage control means.

上記ブート処理部22は、アップデート時以外の起動時には上記ROM3又は上記内部記憶部9に保存されているファームウェアに不整合が有るか否かをチェックし、不整合がない場合はRAM4に展開して実行し、不整合が有った場合は、復帰用ソフトウェアを起動する処理を実行する。その際、上記復帰用ソフトウェア保存手段に保存されている復帰用ソフトウェアを実行する場合、その復帰用ソフトウェアの不整合の有無を検知する。   The boot processing unit 22 checks whether there is inconsistency in the firmware stored in the ROM 3 or the internal storage unit 9 at the time of start-up other than at the time of update. If there is inconsistency, a process for starting the return software is executed. At that time, when the restoration software stored in the restoration software storage means is executed, it is detected whether or not the restoration software is inconsistent.

また、上記ブート処理部22は、上記復帰用ソフトウェア保存手段に保存されている復帰用ソフトウェアに不整合が有ることを検知した場合、上記復帰用ソフトウェアバックアップ保存手段に保存されている復帰用ソフトウェアの不整合の有無を検知する。
さらに、上記ブート処理部22は、上記アップデート用ソフトウェア保存手段に保存されているアップデート用ソフトウェアを実行する場合、そのアップデート用ソフトウェアの不整合の有無を検知する。
When the boot processing unit 22 detects that the restoration software stored in the restoration software storage unit is inconsistent, the boot processing unit 22 stores the restoration software stored in the restoration software backup storage unit. Detects inconsistencies.
Further, when executing the update software stored in the update software storage unit, the boot processing unit 22 detects the presence or absence of inconsistency of the update software.

上記起動切り替え処理部23は、上記ブート処理部22が上記復帰用ソフトウェア保存手段の復帰用ソフトウェアに不整合が有ることを検知した場合、上記復帰用ソフトウェアバックアップ保存手段に保存されている復帰用ソフトウェアの実行に切り替える。また、上記復帰用ソフトウェアバックアップ保存手段の復帰用ソフトウェアに不整合が有ることを検知した場合、上記復帰用ソフトウェア保存手段に保存されている復帰用ソフトウェアの実行に切り替える。すなわち、切替手段の機能を果たす。   When the boot processing unit 22 detects that the restoration software in the restoration software storage unit is inconsistent, the activation switching processing unit 23 restores the restoration software stored in the restoration software backup storage unit. Switch to running. When it is detected that the restoration software in the restoration software backup storage means is inconsistent, switching to execution of the restoration software stored in the restoration software storage means is performed. That is, it functions as a switching means.

上記リカバリ処理部24は、上記ブート処理部22が上記復帰用ソフトウェアバックアップ保存手段の復帰用ソフトウェアに不整合がないことを検知した場合、上記復帰用ソフトウェア保存手段に保存されている復帰用ソフトウェアを上記復帰用ソフトウェアバックアップ保存手段に保存されている復帰用ソフトウェアに書き替える。また、上記復帰用ソフトウェア保存手段の復帰用ソフトウェアに不整合がないことを検知した場合、上記復帰用ソフトウェアバックアップ保存手段に保存されている復帰用ソフトウェアを上記復帰用ソフトウェア保存手段に保存されている復帰用ソフトウェアに書き替える。すなわち、書替手段の機能を果たす。   When the boot processing unit 22 detects that the restoration software in the restoration software backup storage unit is inconsistent, the recovery processing unit 24 stores the restoration software stored in the restoration software storage unit. The return software stored in the return software backup storage means is rewritten. Further, when it is detected that there is no inconsistency in the return software of the return software storage means, the return software stored in the return software backup storage means is stored in the return software storage means. Rewrite to return software. That is, it functions as a rewriting means.

また、上記リカバリ処理部24は、上記ブート処理部22が上記アップデート用ソフトウェア保存手段のアップデート用ソフトウェアに不整合が有ることを検知した場合、上記復帰用ソフトウェア保存手段又は上記復帰用ソフトウェアバックアップ保存手段に保存されている復帰用ソフトウェアを実行し、プリンタ1の外部であるホストコンピュータ11又は外部記憶部12から再度アップデート用ソフトウェアを取得する。   In addition, when the boot processing unit 22 detects that the update software of the update software storage unit is inconsistent, the recovery processing unit 24 returns the return software storage unit or the return software backup storage unit. Is executed, and the update software is acquired again from the host computer 11 or the external storage unit 12 outside the printer 1.

次に、上記プリンタ1の上記ROM3及び上記内部記憶部9における上記ファームウェア、上記アップデート用ソフトウェア及び上記復帰用ソフトウェアの記憶領域について図2によって説明する。
図2は、図1に示したROM3及び内部記憶部9のフォーマット例を示す説明図である。
上記ROM3及び上記内部記憶部9は、ファームウェアを保存するファームウェア保存領域部30と、アップデート用ソフトウェアを保存するアップデート用ソフトウェア保存領域部31と、復帰用ソフトウェアを保存する復帰用ソフトウェア保存領域部32と、バックアップ用として復帰用ソフトウェアを別に保存する復帰用ソフトウェアバックアップ保存領域部33とを備えている。
Next, storage areas of the firmware, the update software, and the return software in the ROM 3 and the internal storage unit 9 of the printer 1 will be described with reference to FIG.
FIG. 2 is an explanatory diagram showing a format example of the ROM 3 and the internal storage unit 9 shown in FIG.
The ROM 3 and the internal storage unit 9 include a firmware storage area unit 30 for storing firmware, an update software storage area unit 31 for storing update software, and a return software storage area unit 32 for storing return software. And a return software backup storage area 33 for storing return software separately for backup.

このように、外部から受信したアップデートソフトウェアのアップデート用ソフトウェアと復帰用ソフトウェアをそれぞれ分けて異なる領域に保存し、復帰用ソフトウェアについてはバックアップ用にさらに異なる領域に保存する。すなわち、復帰用ソフトウェアについてはアップデートに失敗した場合でもプリンタ1を確実に起動できるように復帰用ソフトウェアを二重に記憶する。
また、二重に保存するのは、復帰用ソフトウェアのみなので、プログラムのアップデートの際に要するメモリ容量を削減することができる。
In this way, the update software and the return software of the update software received from the outside are separately stored in different areas, and the return software is stored in different areas for backup. In other words, the return software is stored twice so that the printer 1 can be reliably started even if the update fails.
In addition, since only the restoration software is stored twice, the memory capacity required for updating the program can be reduced.

次に、プリンタ1におけるアップデートソフトウェア受信時のアップデート処理について図3乃至図5によって説明する。
図3は、図1に示したプリンタ1におけるアップデートソフトウェア受信時のアップデート処理を示すフローチャート図である。
図4は、アップデートソフトウェアのフォーマット例を示す説明図である。
図5は、図4に示したアップデートソフトウェアのアップデート用ソフトウェア及び復帰用ソフトウェアのそれぞれのオフセット位置とデータサイズの一例を示す図である。
Next, update processing at the time of receiving update software in the printer 1 will be described with reference to FIGS.
FIG. 3 is a flowchart showing an update process when the update software is received in the printer 1 shown in FIG.
FIG. 4 is an explanatory diagram showing a format example of the update software.
FIG. 5 is a diagram illustrating an example of offset positions and data sizes of the update software and the return software of the update software illustrated in FIG.

この処理では、アップデートソフトウェアを図1の内部記憶部9に保存する場合を説明する。
図1のコントローラ部2は、ホストIF部8によってホストコンピュータ11からアップデートソフトウェアを受信した場合、又はプリンタ1に外部記憶部12が装着され、外部記憶部IF部10を介して外部記憶部12内にアップデートソフトウェアが保存されていることを検知し、外部記憶部IF部10を介してアップデートソフトウェアを読み出した場合、例えば、RAM4に一端保存してアップデート処理部20にアップデート処理を実行させる。
In this process, a case where update software is stored in the internal storage unit 9 of FIG. 1 will be described.
1 receives update software from the host computer 11 by the host IF unit 8 or when the external storage unit 12 is attached to the printer 1 and the external storage unit 12 is connected to the internal storage unit 12 via the external storage unit IF unit 10. When the update software is detected and the update software is read out via the external storage unit IF unit 10, for example, it is temporarily stored in the RAM 4 and the update processing unit 20 executes the update process.

ステップ(図3中「S」で示す)1で、アップデートデータ判別処理部21が、アップデートソフトウェアのヘッダデータを読み込み、ステップ2で、ヘッダデータからアップデート用ソフトウェアと復帰用ソフトウェアのオフセット位置とデータサイズを取得して、ステップ3で、アップデート用ソフトウェアと復帰用ソフトウェアを判別する。
例えば、アップデートソフトウェアの構成が、図4に示すフォーマットの場合に、上記取得したオフセット位置とデータサイズとからアップデートソフトウェア中のアップデート用ソフトウェアと復帰用ソフトウェアを判別する処理例を説明する。
In step (indicated by “S” in FIG. 3) 1, the update data discrimination processing unit 21 reads the header data of the update software, and in step 2, the offset position and data size of the update software and the return software from the header data. In step 3, the update software and the return software are discriminated.
For example, when the configuration of the update software is in the format shown in FIG. 4, an example of processing for discriminating update software and return software in the update software from the acquired offset position and data size will be described.

図4に示すように、アップデートソフトウェア全体の容量におけるオフセット位置「0x0000」〜「0x0FFF」がヘッダデータ、オフセット位置「0x1000」〜「0x2FFF」が復帰用ソフトウェア、オフセット位置「0x3000」〜「0x6000」がアップデート用ソフトウェアからなる場合で説明する。   As shown in FIG. 4, offset positions “0x0000” to “0x0FFF” in the capacity of the entire update software are header data, offset positions “0x1000” to “0x2FFF” are restoration software, and offset positions “0x3000” to “0x6000” are An explanation will be given for the case of update software.

ヘッダデータには、図5に示す復帰用ソフトウェアとアップデート用ソフトウェアのそれぞれのオフセット位置とデータサイズが格納されているので、アップデータデータ判別処理部21は、ヘッダデータを参照することにより、復帰用ソフトウェアのオフセット位置「0x1000」とデータサイズ「0x2000」と、アップデート用ソフトウェアのオフセット位置「0x3000」とデータサイズ「0x3000」を取得し、アップデート用ソフトウェアと復帰用ソフトウェアを容易に判別することができる。   Since the offset data and the data size of the return software and update software shown in FIG. 5 are stored in the header data, the updater data determination processing unit 21 refers to the header data to return the return software. The offset position “0x1000”, the data size “0x2000”, the update software offset position “0x3000”, and the data size “0x3000” can be acquired, and the update software and the return software can be easily discriminated.

次に、ステップ4で、アップデート処理部20が、アップデートデータ判別処理部21の判別結果に基いて復帰用ソフトウェアを読み込み、復帰用ソフトウェアの読み込み完了か否かを判断し、復帰用ソフトウェアの読み込み完了でなければ(「N」の場合)、ステップ5で、アップデート処理部20は、復帰用ソフトウェアを読み込み、ステップ6で、内部記憶部9の図2に示した復帰用ソフトウェア保存領域部32に復帰用ソフトウェアを書き込み、ステップ4へ戻る。
そして、ステップ4の判断で復帰用ソフトウェアの読み込み完了なら(「Y」の場合)ステップ7へ進む。
Next, in step 4, the update processing unit 20 reads the return software based on the determination result of the update data determination processing unit 21, determines whether or not the return software has been read, and completes the reading of the return software. Otherwise (in the case of “N”), in step 5, the update processing unit 20 reads the restoration software, and in step 6, returns to the restoration software storage area unit 32 shown in FIG. Software is written, and the process returns to step 4.
If it is determined in step 4 that the restoration software has been read (in the case of “Y”), the process proceeds to step 7.

次に、ステップ7で、アップデート処理部20が、アップデートデータ判別処理部21の判別結果に基いてアップデート用ソフトウェアを読み込み、アップデート用ソフトウェアの読み込み完了か否かを判断し、アップデート用ソフトウェアの読み込み完了でなければ(「N」の場合)、ステップ8で、アップデート処理部20は、アップデート用ソフトウェアを読み込み、ステップ9で、内部記憶部9の図2に示したアップデート用ソフトウェア保存領域部31にアップデート用ソフトウェアを書き込み、ステップ7へ戻る。
そして、ステップ7の判断でアップデート用ソフトウェアの読み込み完了なら(「Y」の場合)ステップ10へ進む。
Next, in step 7, the update processing unit 20 reads the update software based on the determination result of the update data determination processing unit 21, determines whether or not the update software has been read, and the update software has been read. Otherwise (in the case of “N”), in step 8, the update processing unit 20 reads the update software, and in step 9, updates to the update software storage area unit 31 shown in FIG. Software is written, and the process returns to Step 7.
If it is determined in step 7 that the update software has been read (in the case of “Y”), the process proceeds to step 10.

ステップ10では、アップデート処理部20が、図2の復帰用ソフトウェア保存領域部32の復帰用ソフトウェアを復帰用ソフトウェアバックアップ保存領域部33にも書き込み、この処理を終了する。
この処理後、アップデート処理部20は、内部記憶部9のアップデート用ソフトウェア保存領域部31に保存されたアップデート用ソフトウェアを実行し、図2のファームウェア保存領域部30に保存されているファームウェアをアップデートする。
In step 10, the update processing unit 20 writes the restoration software in the restoration software storage area unit 32 of FIG. 2 also in the restoration software backup storage area unit 33, and ends this process.
After this processing, the update processing unit 20 executes the update software stored in the update software storage area unit 31 of the internal storage unit 9 and updates the firmware stored in the firmware storage area unit 30 of FIG. .

このように、ファームウェアをアップデートする場合、アップデート用ソフトウェアと復帰用ソフトウェアをそれぞれ分けて異なる領域に保存し、復帰用ソフトウェアについてはバックアップ用にさらに異なる領域に保存することにより、アップデートに失敗した場合でも復帰用ソフトウェアを実行してプリンタ1を起動させることができる。
また、復帰用ソフトウェアについては二重に記憶するので、一方が起動できない場合でももう一方を起動させてプリンタ1を確実に起動させることができる。
In this way, when updating the firmware, the update software and the recovery software are separately stored in different areas, and the recovery software is stored in a different area for backup, so even if the update fails. The printer 1 can be activated by executing the return software.
Further, since the restoration software is stored twice, even if one of them cannot be activated, the other can be activated and the printer 1 can be reliably activated.

なお、上述の処理では、内部記憶部9に、復帰用ソフトウェア、アップデート用ソフトウェア、及び復帰用ソフトウェアのバックアップの順で書き込む場合を説明したが、この順に限らず、アップデート用ソフトウェア、復帰用ソフトウェア、及び復帰用ソフトウェアのバックアップの順で書き込むようにしても良いし、復帰用ソフトウェア、復帰用ソフトウェアのバックアップ、及びアップデート用ソフトウェアの順で書き込むようにしても良い。   In the above-described processing, the case has been described in which the restoration software, the update software, and the restoration software backup are written in the internal storage unit 9 in this order. However, the present invention is not limited to this order, and the update software, restoration software, The backup software may be written in the order of the backup of the return software, or may be written in the order of the return software, the backup of the return software, and the update software.

次に、プリンタ1におけるアップデートに失敗した場合の処理について図6及び図7によって説明する。
図6は、図1に示したプリンタ1におけるアップデートに失敗した場合の処理を示すフローチャート図である。
図7は、図4に示したアップデートソフトウェアのアップデート用ソフトウェア及び復帰用ソフトウェアのそれぞれのアドレスとデータサイズの一例を示す図である。
Next, processing when the update in the printer 1 fails will be described with reference to FIGS.
FIG. 6 is a flowchart showing processing when update in the printer 1 shown in FIG. 1 fails.
FIG. 7 is a diagram illustrating an example of addresses and data sizes of the update software and the return software of the update software illustrated in FIG.

図6に示した処理は、図1のブート処理部22、起動切り替え処理部23、及びリカバリ処理部24がそれぞれ担当する各ステップ(図6中「S」で示す)の処理を実行する。
なお、後述する各ステップの処理について、図6の各ステップ中では一部を省略して記載している。
ステップ21では、図1のブート処理部22が、起動時のブート処理時に、チェックサムなどの方法で内部記憶部9に保存されているファームウェア(上記アップデート後のファームウェア)の不整合をチェックして、不整合有りを検知すると(この不整合有りの検知でアップデートの失敗と判断する)、ステップ22へ進む。
ステップ22では、ブート処理部22が、図2の復帰用ソフトウェア保存領域部32に保存されている復帰用ソフトウェアを実行する場合、復帰用ソフトウェア保存領域部32の復帰用ソフトウェアの不整合を検知したか否かを判断し、検知しなかった場合(「N」の場合)はステップ25へ進み、検知した場合(「Y」の場合)はステップ23へ進む。
The process shown in FIG. 6 executes the process of each step (indicated by “S” in FIG. 6) that the boot processing unit 22, the start switching processing unit 23, and the recovery processing unit 24 in FIG.
In addition, about the process of each step mentioned later, a part is abbreviate | omitted and described in each step of FIG.
In step 21, the boot processing unit 22 in FIG. 1 checks the inconsistency of the firmware (the updated firmware) stored in the internal storage unit 9 by a method such as checksum during the boot process at the time of startup. When the presence of inconsistency is detected (when it is determined that the update has failed due to the detection of inconsistency), the process proceeds to step 22.
In step 22, when the boot processing unit 22 executes the restoration software stored in the restoration software storage area unit 32 of FIG. 2, the inconsistency of the restoration software in the restoration software storage area unit 32 is detected. If not detected (in the case of “N”), the process proceeds to step 25, and if detected (in the case of “Y”), the process proceeds to step 23.

次に、ステップ23では、起動切り替え処理部23が、復帰用ソフトウェアの読み込み先を図2の復帰用ソフトウェアバックアップ保存領域部33に切り替え、さらに、リカバリ処理部24が、復帰用ソフトウェアバックアップ保存領域部33から復帰用ソフトウェアを読み出し、図1のRAM4に展開して復帰処理を実行し、ステップ24では、復帰処理でプリンタ1が起動すると、リカバリ処理部24が、図2のアップデート用ソフトウェア保存領域部31からアップデート用ソフトウェアを読み出し、図1のRAM4に展開してアップデート処理を実行し、この処理を終了する。
この処理でアップデートが成功すると、プリンタ1は通常の起動処理となり、プリンタ1の全ての機能が実行可能になる。
Next, in step 23, the activation switching processing unit 23 switches the restoration software reading destination to the restoration software backup storage area unit 33 in FIG. 2, and the recovery processing unit 24 further selects the restoration software backup storage area unit. The restoration software is read from 33, loaded into the RAM 4 in FIG. 1, and the restoration process is executed. In step 24, when the printer 1 is activated by the restoration process, the recovery processing unit 24 displays the update software storage area in FIG. The update software is read from 31 and expanded in the RAM 4 of FIG. 1 to execute the update process, and this process ends.
If the update is successful in this process, the printer 1 becomes a normal startup process, and all the functions of the printer 1 can be executed.

一方、ステップ25では、ブート処理部22が、図2のアップデート用ソフトウェア保存領域部31に保存されているアップデート用ソフトウェアを実行する場合、アップデート用ソフトウェア保存領域部31のアップデート用ソフトウェアの不整合を検知したか否かを判断し、検知しなかった場合(「N」の場合)はステップ27へ進み、検知した場合(「Y」の場合)はステップ26へ進む。   On the other hand, in step 25, when the boot processing unit 22 executes the update software stored in the update software storage area 31 in FIG. 2, the update software in the update software storage area 31 is inconsistent. It is determined whether or not it has been detected. If it has not been detected (in the case of “N”), the process proceeds to step 27. If it has been detected (in the case of “Y”), the process proceeds to step 26.

ステップ26では、起動切り替え処理部23が、復帰用ソフトウェアの読み込み先を図2の復帰用ソフトウェアバックアップ保存領域部33に切り替え、リカバリ処理部24が、復帰用ソフトウェアバックアップ保存領域部33から復帰用ソフトウェアを読み出し、図1のRAM4に展開して復帰処理を実行し、プリンタ1の外部(ホストコンピュータ11又は外部記憶部12)から再度アップデート用ソフトウェアを取得する処理を実行し、この処理を終了する。
上記再度アップデート用ソフトウェアを取得する処理では、復帰アップデートモードと呼ばれるファームウェアのアップデートデータの受信を待ち、アップデート処理のみを行うことができる。
In step 26, the activation switching processing unit 23 switches the restoration software reading destination to the restoration software backup storage area 33 in FIG. 2, and the recovery processing unit 24 restores the restoration software from the restoration software backup storage area 33. 1 is loaded into the RAM 4 of FIG. 1 and a return process is executed, a process of acquiring update software from the outside of the printer 1 (host computer 11 or external storage unit 12) is executed again, and this process ends.
In the process of acquiring the update software again, it is possible to wait for reception of firmware update data called a return update mode and perform only the update process.

また、ステップ27では、ブート処理部22が、図2の復帰用ソフトウェアバックアップ保存領域部33に保存されている復帰用ソフトウェアを実行する場合、復帰用ソフトウェアバックアップ保存領域部33の復帰用ソフトウェアの不整合を検知したか否かを判断し、検知しなかった場合(「N」の場合)はステップ30へ進み、検知した場合(「Y」の場合)はステップ28へ進む。   Further, in step 27, when the boot processing unit 22 executes the restoration software stored in the restoration software backup storage area 33 in FIG. It is determined whether or not matching has been detected. If not detected (in the case of “N”), the process proceeds to step 30, and if detected (in the case of “Y”), the process proceeds to step 28.

ステップ28では、起動切り替え処理部23が、復帰用ソフトウェアの読み込み先を図2の復帰用ソフトウェア保存領域部32に切り替え、リカバリ処理部24が、復帰用ソフトウェア保存領域部32から復帰用ソフトウェアを読み出し、図1のRAM4に展開して復帰処理を実行する。その後、ステップ29では、復帰処理でプリンタ1が起動すると、リカバリ処理部24が、図2のアップデート用ソフトウェア保存領域部31からアップデート用ソフトウェアを読み出し、図1のRAM4に展開してアップデート処理を実行し、この処理を終了する。
この処理でアップデートが成功すると、プリンタ1は通常の起動処理となり、プリンタ1の全ての機能が実行可能になる。
In step 28, the activation switching processor 23 switches the restoration software reading destination to the restoration software storage area 32 in FIG. 2, and the recovery processor 24 reads the restoration software from the restoration software storage area 32. The data is expanded in the RAM 4 of FIG. After that, in step 29, when the printer 1 is activated in the return process, the recovery processing unit 24 reads the update software from the update software storage area unit 31 in FIG. 2, develops it in the RAM 4 in FIG. Then, this process ends.
If the update is successful in this process, the printer 1 becomes a normal startup process, and all the functions of the printer 1 can be executed.

さらに、ステップ30では、ブート処理部22が、図2のアップデート用ソフトウェア保存領域部31からアップデート用ソフトウェアを読み出し、図1のRAM4に展開してアップデート処理を実行し、この処理を終了する。
上記復帰用ソフトウェア(バックアップ用も含む)と上記アップデート用ソフトウェアの不整合の有無のチェック方法は、図7に示した復帰用ソフトウェア保存領域部と復帰用ソフトウェアバックアップ保存領域部とアップデート用ソフトウェア保存領域部のそれぞれに保存された復帰用ソフトウェアとアップデート用ソフトウェアのアドレス及びデータサイズに基いて公知技術によって判断すると良い。その詳細な説明は省略する。
Further, in step 30, the boot processing unit 22 reads the update software from the update software storage area unit 31 in FIG. 2, develops it in the RAM 4 in FIG. 1, executes the update process, and ends this process.
The return software storage area part, the return software backup storage area part, and the update software storage area shown in FIG. 7 are checked as to whether there is a mismatch between the return software (including backup) and the update software. It may be determined by a known technique based on the address and data size of the restoration software and update software stored in each of the units. Detailed description thereof is omitted.

次に、プリンタ1におけるアップデートに失敗した場合の他の処理例について図8によって説明する。
図8は、図1に示したプリンタ1におけるアップデートに失敗した場合の処理を示すフローチャート図である。
図8に示した処理は、図1のブート処理部22、起動切り替え処理部23、及びリカバリ処理部24がそれぞれ担当する各ステップ(図8中「S」で示す)の処理を実行する。
なお、後述する各ステップの処理について、図8の各ステップ中では一部を省略して記載している。
ステップ41では、図1のブート処理部22が、起動時のブート処理時に、チェックサムなどの方法で内部記憶部9に保存されているファームウェア(上記アップデート後のファームウェア)の不整合をチェックして、不整合有りを検知すると、ステップ42へ進む。
Next, another processing example when the update in the printer 1 fails will be described with reference to FIG.
FIG. 8 is a flowchart showing processing when the update in the printer 1 shown in FIG. 1 fails.
The process shown in FIG. 8 executes the process of each step (indicated by “S” in FIG. 8) that the boot processing unit 22, the start switching processing unit 23, and the recovery processing unit 24 in FIG.
In addition, about the process of each step mentioned later, a part is abbreviate | omitted and described in each step of FIG.
In step 41, the boot processing unit 22 in FIG. 1 checks the inconsistency of the firmware (updated firmware) stored in the internal storage unit 9 by a method such as checksum during the boot process at the time of startup. If the presence of inconsistency is detected, the process proceeds to step 42.

ステップ42では、ブート処理部22が、図2の復帰用ソフトウェア保存領域部32に保存されている復帰用ソフトウェアを実行する場合、復帰用ソフトウェア保存領域部32の復帰用ソフトウェアの不整合を検知したか否かを判断し、検知しなかった場合(「N」の場合)はステップ46へ進み、検知した場合(「Y」の場合)はステップ43へ進む。   In step 42, when the boot processing unit 22 executes the restoration software stored in the restoration software storage area unit 32 of FIG. 2, the inconsistency of the restoration software in the restoration software storage area unit 32 is detected. If not detected (in the case of “N”), the process proceeds to step 46, and if detected (in the case of “Y”), the process proceeds to step 43.

ステップ43では、起動切り替え処理部23が、復帰用ソフトウェアの読み込み先を図2の復帰用ソフトウェアバックアップ保存領域部33に切り替え、リカバリ処理部24が、復帰用ソフトウェアバックアップ保存領域部33から復帰用ソフトウェアを読み出し、図1のRAM4に展開して復帰処理を実行する。その後、ステップ44では、復帰処理でプリンタ1が起動すると、リカバリ処理部24が、図2のアップデート用ソフトウェア保存領域部31からアップデート用ソフトウェアを読み出し、図1のRAM4に展開してアップデート処理を実行し、ステップ45へ進む。   In step 43, the activation switching processing unit 23 switches the reading destination of the restoration software to the restoration software backup storage area unit 33 in FIG. 2, and the recovery processing unit 24 starts the restoration software from the restoration software backup storage area unit 33. Is expanded in the RAM 4 of FIG. 1 and a return process is executed. Thereafter, in step 44, when the printer 1 is activated in the return process, the recovery processing unit 24 reads the update software from the update software storage area unit 31 in FIG. 2, and develops it in the RAM 4 in FIG. Then, the process proceeds to Step 45.

ステップ45では、リカバリ処理部24が、復帰用ソフトウェアバックアップ保存領域部33の復帰用ソフトウェアを復帰用ソフトウェア保存領域部32に上書きし、この処理を終了する。
このようにして、復帰用ソフトウェア保存領域部32の復帰用ソフトウェアに不具合があった場合、復帰用ソフトウェアバックアップ保存領域部33の復帰用ソフトウェアによって自動的に正しい内容の復帰用ソフトウェアにすることができる。
この処理でアップデートが成功すると、プリンタ1は通常の起動処理となり、プリンタ1の全ての機能が実行可能になる。
In step 45, the recovery processing unit 24 overwrites the restoration software in the restoration software backup storage area unit 33 on the restoration software storage area unit 32, and ends this process.
In this way, if there is a problem with the restoration software in the restoration software storage area 32, the restoration software in the restoration software backup storage area 33 can automatically make the restoration software with the correct contents automatically. .
If the update is successful in this process, the printer 1 becomes a normal startup process, and all the functions of the printer 1 can be executed.

一方、ステップ46では、ブート処理部22が、図2のアップデート用ソフトウェア保存領域部31に保存されているアップデート用ソフトウェアを実行する場合、アップデート用ソフトウェア保存領域部31のアップデート用ソフトウェアの不整合を検知したか否かを判断し、検知しなかった場合(「N」の場合)はステップ48へ進み、検知した場合(「Y」の場合)はステップ47へ進む。   On the other hand, in step 46, when the boot processing unit 22 executes the update software stored in the update software storage area 31 of FIG. It is determined whether or not it has been detected. If it has not been detected (in the case of “N”), the process proceeds to step 48. If it has been detected (in the case of “Y”), the process proceeds to step 47.

次に、ステップ47では、起動切り替え処理部23が、復帰用ソフトウェアの読み込み先を図2の復帰用ソフトウェアバックアップ保存領域部33に切り替え、リカバリ処理部24が、復帰用ソフトウェアバックアップ保存領域部33から復帰用ソフトウェアを読み出し、図1のRAM4に展開して復帰処理を実行し、プリンタ1の外部(ホストコンピュータ11又は外部記憶部12)から再度アップデート用ソフトウェアを取得する処理を実行し、この処理を終了する。   Next, in step 47, the activation switching processing unit 23 switches the restoration software reading destination to the restoration software backup storage area unit 33 in FIG. 2, and the recovery processing unit 24 starts from the restoration software backup storage area unit 33. The restoration software is read out, expanded in the RAM 4 of FIG. 1, and the restoration process is executed. Then, the update software is acquired again from the outside of the printer 1 (host computer 11 or external storage unit 12). finish.

また、ステップ48では、ブート処理部22が、図2の復帰用ソフトウェアバックアップ保存領域部33に保存されている復帰用ソフトウェアを実行する場合、復帰用ソフトウェアバックアップ保存領域部33の復帰用ソフトウェアの不整合を検知したか否かを判断し、検知しなかった場合(「N」の場合)はステップ52へ進み、検知した場合(「Y」の場合)はステップ49へ進む。   Further, in step 48, when the boot processing unit 22 executes the recovery software stored in the recovery software backup storage area 33 in FIG. It is determined whether or not alignment is detected. If not detected (in the case of “N”), the process proceeds to step 52, and if detected (in the case of “Y”), the process proceeds to step 49.

ステップ49では、起動切り替え処理部23が、復帰用ソフトウェアの読み込み先を図2の復帰用ソフトウェア保存領域部32に切り替え、リカバリ処理部24が、復帰用ソフトウェア保存領域部32から復帰用ソフトウェアを読み出し、図1のRAM4に展開して復帰処理を実行する。その後、ステップ50では、復帰処理でプリンタ1が起動すると、リカバリ処理部24が、図2のアップデート用ソフトウェア保存領域部31からアップデート用ソフトウェアを読み出し、図1のRAM4に展開してアップデート処理を実行し、ステップ51へ進む。   In step 49, the activation switching processor 23 switches the restoration software reading destination to the restoration software storage area 32 in FIG. 2, and the recovery processor 24 reads the restoration software from the restoration software storage area 32. The data is expanded in the RAM 4 of FIG. After that, in step 50, when the printer 1 is activated by the return process, the recovery processing unit 24 reads the update software from the update software storage area unit 31 in FIG. 2, develops it in the RAM 4 in FIG. 1, and executes the update process. Then, the process proceeds to step 51.

ステップ51では、リカバリ処理部24が、復帰用ソフトウェア保存領域部32の復帰用ソフトウェアを復帰用ソフトウェアバックアップ保存領域部33に上書きし、この処理を終了する。
このようにして、復帰用ソフトウェアバックアップ保存領域部33の復帰用ソフトウェアに不具合があった場合、復帰用ソフトウェア保存領域部32の復帰用ソフトウェアによって自動的に正しい内容の復帰用ソフトウェアにすることができる。
In step 51, the recovery processing unit 24 overwrites the restoration software in the restoration software storage area unit 32 on the restoration software backup storage area unit 33, and ends this process.
In this way, if there is a problem with the restoration software in the restoration software backup storage area 33, the restoration software in the restoration software storage area 32 can automatically make the restoration software correctly correct. .

この処理でアップデートが成功すると、プリンタ1は通常の起動処理となり、プリンタ1の全ての機能が実行可能になる。
さらに、ステップ52では、ブート処理部22が、図2のアップデート用ソフトウェア保存領域部31からアップデート用ソフトウェアを読み出し、図1のRAM4に展開してアップデート処理を実行し、この処理を終了する。
このようにして、図1のリカバリ処理部24は不整合が生じた方の復帰用ソフトウェアを正常な復帰用ソフトウェアによって上書きして自動的に訂正することができる。
If the update is successful in this process, the printer 1 becomes a normal startup process, and all the functions of the printer 1 can be executed.
Further, in step 52, the boot processing unit 22 reads the update software from the update software storage area unit 31 in FIG. 2, develops it in the RAM 4 in FIG. 1, executes the update process, and ends this process.
In this way, the recovery processing unit 24 in FIG. 1 can automatically correct the incompletely restored restoration software by overwriting it with normal restoration software.

なお、上述の処理では、アップデートソフトウェアを上記内部記憶部9に保存する場合を説明したが、上記ROM3に保存する場合も上述と同様の処理で実施することができる。
また、アップデートソフトウェアのアップデート用ソフトウェアと復帰用ソフトウェアをROM3と内部記憶部9の異なる記憶媒体上に分けて記憶するようにしてもよい。
例えば、復帰用ソフトウェアをROM3と内部記憶部9にそれぞれ記憶するようにすれば、記憶媒体の不具合で一方が読み出せなくなった場合でも、もう一方から読み出して復帰処理を実行することができる。
In the above-described processing, the case where the update software is stored in the internal storage unit 9 has been described. However, when the update software is stored in the ROM 3, the same processing as described above can be performed.
The update software and the return software of the update software may be stored separately on different storage media in the ROM 3 and the internal storage unit 9.
For example, if the return software is stored in the ROM 3 and the internal storage unit 9 respectively, even if one of the software cannot be read due to a malfunction of the storage medium, the return processing can be executed by reading it from the other.

この実施例のプリンタ1によれば、二重に保存するのは、復帰用ソフトウェアのみなので、プログラムのアップデートの際に要するメモリ容量を削減することができる。
また、アップデートに失敗した場合にプリンタ1の起動と再度アップデートするための専用のソフトウェアを作成してプリンタ1に取得させる必要がなく、バックアップ時の復旧が確実にできる。
さらに、アップデートに失敗した時のみに使用する復帰アップデート用プログラムを作成しなくて済み、ソフトウェアの開発の負担を低減することができる。
さらにまた、アップデートに失敗した時のみに使用する復帰アップデート用プログラムをファームウェアアップデート用データに組み込まなくてもよいので、アップデートソフトウェアの容量を削減することができる。
According to the printer 1 of this embodiment, since only the restoration software is stored twice, the memory capacity required for updating the program can be reduced.
In addition, when the update fails, there is no need to create dedicated software for starting up the printer 1 and updating it again and causing the printer 1 to acquire it, so that recovery at the time of backup can be ensured.
Furthermore, it is not necessary to create a return update program that is used only when the update fails, and the burden of software development can be reduced.
Furthermore, since it is not necessary to incorporate a renewal update program used only when the update fails into the firmware update data, the capacity of the update software can be reduced.

この実施形態の各ソフトウェアは、コンピュータに各種デバイスを制御させ、上述したプリンタ1の印刷機能を実現させるためのプログラムとして構成することができる。
このようなプログラムは、予めプリンタ1のメモリに記憶させておく他、記録媒体であるCD、あるいはフレキシブルディスク、SRAM、EEPROM、メモリカード等の不揮発性記録媒体に記録したり、ネットワークを介してダウンロードできるようにしたりして提供することもできる。そして、そのプログラムをインストールしてCPUに実行させるか、CPUにメモリあるいはダウンロードサーバからこのプログラムを取得させて実行させることにより、上述した実施形態のプリンタ1の各機能を実現させることができる。
また、以上説明してきた実施形態の構成は、相互に矛盾しない限り任意に組み合わせて実施可能であることは勿論である。
Each software of this embodiment can be configured as a program for causing a computer to control various devices and realizing the printing function of the printer 1 described above.
Such a program is stored in the memory of the printer 1 in advance, or is recorded on a recording medium such as a CD, or a non-volatile recording medium such as a flexible disk, SRAM, EEPROM, memory card, or downloaded via a network. It can also be provided. Each function of the printer 1 according to the above-described embodiment can be realized by installing the program and causing the CPU to execute the program, or causing the CPU to acquire and execute the program from a memory or a download server.
Further, it goes without saying that the configurations of the embodiments described above can be implemented in any combination as long as they do not contradict each other.

以上で実施形態の説明を終了するが、この発明において、各部の具体的な構成、処理の内容、データの形式等は、実施形態で説明したものに限るものではない。
また、上述の実施形態では、この発明をプリンタに適用した例について説明した。
しかし、この発明は、画像形成機能を備えたものならばファクシミリ装置、複写装置、並びに複合機等の任意の画像形成装置に適用可能である。
Although the description of the embodiment has been completed above, in the present invention, the specific configuration of each unit, the content of processing, the data format, and the like are not limited to those described in the embodiment.
In the above-described embodiment, an example in which the present invention is applied to a printer has been described.
However, the present invention can be applied to any image forming apparatus such as a facsimile machine, a copying machine, and a multi-function machine as long as it has an image forming function.

1:プリンタ 2:コントローラ部 3:ROM 4:RAM
5:プロッタエンジン部 6:操作パネル 7:ユーザ通知部 8:ホストIF部
9:内部記憶部 10:外部記憶部IF部 11:ホストコンピュータ
12:外部記憶部 20:アップデート処理部
21:アップデートデータ判別処理部 22:ブート処理部
23:起動切り替え処理部 24:リカバリ処理部
30:ファームウェア保存領域部 31:アップデート用ソフトウェア保存領域部
32:復帰用ソフトウェア保存領域部
33:復帰用ソフトウェアバックアップ保存領域部
1: Printer 2: Controller unit 3: ROM 4: RAM
5: Plotter engine unit 6: Operation panel 7: User notification unit 8: Host IF unit 9: Internal storage unit 10: External storage unit IF unit 11: Host computer 12: External storage unit 20: Update processing unit 21: Update data discrimination Processing unit 22: Boot processing unit 23: Startup switching processing unit 24: Recovery processing unit 30: Firmware storage area unit 31: Update software storage area unit 32: Recovery software storage area unit 33: Recovery software backup storage area unit

特開2007−257119号公報JP 2007-257119 A

Claims (4)

記録媒体に画像を形成する画像形成手段を備えた画像形成装置であって、
当該画像形成装置を制御する制御手段が実行するソフトウェアを保存するソフトウェア保存手段と、
前記制御手段に前記ソフトウェアのアップデートを実行させるアップデート用ソフトウェアと前記制御手段に前記ソフトウェアのアップデートに失敗した場合に当該画像形成装置を前記アップデートが可能な状態に復帰させる復帰処理を実行させる復帰用ソフトウェアとを含むアップデートソフトウェアを受信する受信手段と、
前記アップデート用ソフトウェアを保存するアップデート用ソフトウェア保存手段と、
前記復帰用ソフトウェアを保存する復帰用ソフトウェア保存手段と、
前記復帰用ソフトウェアのバックアップ用の復帰用ソフトウェアバックアップ保存手段と、
前記受信手段によって受信した前記アップデートソフトウェアの前記アップデート用ソフトウェアと前記復帰用ソフトウェアとを判別する判別手段と、
前記判別手段によって判別された前記アップデート用ソフトウェアを前記アップデート用ソフトウェア保存手段に保存し、前記判別手段によって判別された前記復帰用ソフトウェアを前記復帰用ソフトウェア保存手段と前記復帰用ソフトウェアバックアップ保存手段にそれぞれ保存する保存制御手段とを有することを特徴とする画像形成装置。
An image forming apparatus including an image forming unit that forms an image on a recording medium,
Software storage means for storing software executed by a control means for controlling the image forming apparatus;
Update software for causing the control means to update the software, and return software for causing the control means to execute a return process for returning the image forming apparatus to a state where the update is possible when the software update fails. Receiving means for receiving update software including:
Update software storage means for storing the update software;
Return software storage means for storing the return software;
Return software backup storage means for backup of the return software;
Discriminating means for discriminating between the update software and the return software of the update software received by the receiving means;
The update software determined by the determination means is stored in the update software storage means, and the return software determined by the determination means is stored in the return software storage means and the return software backup storage means, respectively. An image forming apparatus comprising: a storage control unit for storing.
前記制御手段は、前記復帰用ソフトウェア保存手段に保存されている前記復帰用ソフトウェアを実行する場合、該復帰用ソフトウェアの不整合の有無を検知する手段と、該手段によって前記復帰用ソフトウェア保存手段の前記復帰用ソフトウェアに不整合が有ることを検知した場合、前記復帰用ソフトウェアバックアップ保存手段に保存されている前記復帰用ソフトウェアの実行に切り替える切替手段とを有することを特徴とする請求項1記載の画像形成装置。   The control means, when executing the restoration software stored in the restoration software storage means, means for detecting presence / absence of inconsistency of the restoration software, and the means of the restoration software storage means by the means The switching unit according to claim 1, further comprising a switching unit that switches to execution of the restoration software stored in the restoration software backup storage unit when it is detected that the restoration software is inconsistent. Image forming apparatus. 前記制御手段は、前記復帰用ソフトウェア保存手段に保存されている前記復帰用ソフトウェアに不整合が有ることを検知した場合、前記復帰用ソフトウェアバックアップ保存手段に保存されている前記復帰用ソフトウェアの不整合の有無を検知する手段と、該手段によって前記復帰用ソフトウェアバックアップ保存手段の前記復帰用ソフトウェアに不整合がないことを検知した場合、前記復帰用ソフトウェア保存手段に保存されている前記復帰用ソフトウェアを前記復帰用ソフトウェアバックアップ保存手段に保存されている前記復帰用ソフトウェアに書き替える書替手段とを有することを特徴とする請求項2記載の画像形成装置。   When the control means detects that the restoration software stored in the restoration software storage means is inconsistent, the restoration software saved in the restoration software backup storage means is inconsistent. And means for detecting the presence or absence of the recovery software, the recovery software stored in the recovery software storage means when the return software backup storage means detects that there is no inconsistency. The image forming apparatus according to claim 2, further comprising a rewriting unit that rewrites the restoration software stored in the restoration software backup saving unit. 前記制御手段は、前記アップデート用ソフトウェア保存手段に保存されている前記アップデート用ソフトウェアを実行する場合、該アップデート用ソフトウェアの不整合の有無を検知する手段と、該手段によって前記アップデート用ソフトウェア保存手段の前記アップデート用ソフトウェアに不整合が有ることを検知した場合、前記復帰用ソフトウェア保存手段又は前記復帰用ソフトウェアバックアップ保存手段に保存されている前記復帰用ソフトウェアを実行し、当該画像形成装置の外部から再度アップデート用ソフトウェアを取得する手段を有することを特徴とする請求項1乃至3のいずれか一項に記載の画像形成装置。   The control means, when executing the update software stored in the update software storage means, means for detecting whether or not the update software is inconsistent; and the means for detecting the update software storage means When it is detected that the update software is inconsistent, the restoration software stored in the restoration software storage unit or the restoration software backup storage unit is executed, and again from the outside of the image forming apparatus. The image forming apparatus according to claim 1, further comprising means for acquiring update software.
JP2011252337A 2011-11-18 2011-11-18 Image forming apparatus Active JP5803598B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011252337A JP5803598B2 (en) 2011-11-18 2011-11-18 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011252337A JP5803598B2 (en) 2011-11-18 2011-11-18 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2013109450A true JP2013109450A (en) 2013-06-06
JP5803598B2 JP5803598B2 (en) 2015-11-04

Family

ID=48706162

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011252337A Active JP5803598B2 (en) 2011-11-18 2011-11-18 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP5803598B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016103159A (en) * 2014-11-28 2016-06-02 京セラドキュメントソリューションズ株式会社 Image processing device and method of backing up program
US10394549B2 (en) 2017-03-17 2019-08-27 Ricoh Company, Ltd. Information processing apparatus, updating method, and recording medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2016103159A (en) * 2014-11-28 2016-06-02 京セラドキュメントソリューションズ株式会社 Image processing device and method of backing up program
US10394549B2 (en) 2017-03-17 2019-08-27 Ricoh Company, Ltd. Information processing apparatus, updating method, and recording medium

Also Published As

Publication number Publication date
JP5803598B2 (en) 2015-11-04

Similar Documents

Publication Publication Date Title
JP6543122B2 (en) INFORMATION PROCESSING APPARATUS, METHOD OF INITIALIZING NONVOLATILE STORAGE DEVICE BY THE INFORMATION PROCESSING APPARATUS, AND PROGRAM
JP4148283B2 (en) Image forming apparatus
US7337312B2 (en) Processor and firmware download method for same
JP6041588B2 (en) Image forming device, program update method and program
US20210255849A1 (en) Information processing apparatus and method
JP5803598B2 (en) Image forming apparatus
JP2013218510A (en) Information processing apparatus, program update method for information processing apparatus, and program
US8799887B2 (en) Information processing apparatus, method for controlling the same, and storage medium
JP2006243997A (en) Download system
JP2023068538A (en) Information processing apparatus, method for controlling the same, and program
JP2013125405A (en) Firmware rewriting method, firmware, and electronic device
JP6696414B2 (en) Image processing device
JP6150048B2 (en) Image forming system and diagnostic method for image forming system
JP6781803B2 (en) Information processing device and its control method
JP7031211B2 (en) Electronics
JP5290880B2 (en) Electronic apparatus and image forming apparatus
JP2023159696A (en) Information processing device, information processing method, and computer program
JP2018124611A (en) External media processing apparatus and program
JP4622325B2 (en) Image forming apparatus and control program for image forming apparatus
JP2008172491A (en) Facsimile
JP6638323B2 (en) PRINTING APPARATUS AND PRINTING APPARATUS CONTROL METHOD
JP2008284711A (en) Image forming apparatus
JP2003330655A (en) Image forming device and method for controlling the same device and computer readable storage medium and its program
JP6213438B2 (en) Image forming apparatus
JPH11282689A (en) Image forming device and program storing medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20141020

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20150729

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150817

R151 Written notification of patent or utility model registration

Ref document number: 5803598

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151