JP5439400B2 - Image forming apparatus - Google Patents

Image forming apparatus Download PDF

Info

Publication number
JP5439400B2
JP5439400B2 JP2011018519A JP2011018519A JP5439400B2 JP 5439400 B2 JP5439400 B2 JP 5439400B2 JP 2011018519 A JP2011018519 A JP 2011018519A JP 2011018519 A JP2011018519 A JP 2011018519A JP 5439400 B2 JP5439400 B2 JP 5439400B2
Authority
JP
Japan
Prior art keywords
control program
stored
unit
program
mode
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.)
Active
Application number
JP2011018519A
Other languages
Japanese (ja)
Other versions
JP2012159965A (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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions 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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2011018519A priority Critical patent/JP5439400B2/en
Publication of JP2012159965A publication Critical patent/JP2012159965A/en
Application granted granted Critical
Publication of JP5439400B2 publication Critical patent/JP5439400B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Facsimiles In General (AREA)

Description

本発明は、画像形成装置で実行可能な制御プログラムを書き換える技術に関する。   The present invention relates to a technique for rewriting a control program executable by an image forming apparatus.

従来から、画像形成装置で実行される制御プログラムは、電源がオフされていても記憶されているデータが消去されないフラッシュメモリー等の不揮発性メモリーに記憶され、バージョンアップや復旧のために不揮発性メモリーに記憶された当該制御プログラムの書き換えが可能に構成されている。   Conventionally, a control program executed by an image forming apparatus is stored in a nonvolatile memory such as a flash memory in which stored data is not erased even when the power is turned off. The control program stored in the memory can be rewritten.

しかしながら、不揮発性メモリーに記憶されている制御プログラムの書き換えは、記録されている制御プログラムを消去した後に、新たな書き換え対象の制御プログラムを記憶するという手順で実行されるため、当該制御プログラムの書き換えの実行中に例えば停電等によって電源の供給が遮断される等して、制御プログラムが最後まで記憶されることなく不十分に記憶される虞があった。そして、このような場合、不揮発性メモリーに不十分に記憶されている新たな制御プログラムを読み出して実行すると、画像形成装置の動作が不安定になる虞があった。   However, the rewriting of the control program stored in the non-volatile memory is executed by the procedure of erasing the recorded control program and storing a new control program to be rewritten. There is a risk that the control program may be stored inadequately without being stored until the end, for example, because the power supply is interrupted due to a power failure or the like during execution of. In such a case, if a new control program that is insufficiently stored in the nonvolatile memory is read and executed, the operation of the image forming apparatus may become unstable.

そこで、例えば、下記特許文献1には、展開プログラム格納部に展開されたメインプログラムを実行する前に、読出し専用メモリーとして機能するプログラム格納部に記憶されている当該メインプログラムと書き換え可能なメモリーとして機能するパッチデータ格納部に記憶されているパッチプログラムとを用いて、展開プログラム格納部に展開されたメインプログラムを書き換えることによって当該メインプログラムを更新し、当該メインプログラムの更新が失敗した場合には、プログラム格納部に記憶されている当該メインプログラムを再び展開プログラム格納部に展開する技術が開示されている。   Therefore, for example, in the following Patent Document 1, before executing the main program expanded in the expanded program storage unit, the main program stored in the program storage unit functioning as a read-only memory is rewritten as a rewritable memory. If the main program is updated by rewriting the main program expanded in the expanded program storage unit using the patch program stored in the functioning patch data storage unit, and the update of the main program fails A technique is disclosed in which the main program stored in the program storage unit is expanded again in the expansion program storage unit.

つまり、制御プログラムの書き換えが失敗した場合であっても、不揮発性メモリーの別の領域に設けられた制御プログラムを実行する技術が開示されている。   That is, a technique for executing a control program provided in another area of the nonvolatile memory even when rewriting of the control program fails is disclosed.

特開2005−242930号公報JP 2005-242930 A

しかしながら、不揮発性メモリーの容量によっては、上記の従来技術を適用するに当たって、制御プログラムの書き換えが失敗したときに当該制御プログラムを復旧するための制御プログラムを記憶するための記憶領域を不揮発性メモリーに確保できない場合があり、このような場合に制御プログラムの書き換えが失敗すると、不揮発性メモリーに不十分に記憶されている新たな制御プログラムを読み出して実行することによって、画像形成装置の動作が不安定になる虞があった。   However, depending on the capacity of the nonvolatile memory, when applying the above-described conventional technology, a storage area for storing a control program for restoring the control program when the rewriting of the control program fails is stored in the nonvolatile memory. If rewriting of the control program fails in such a case, the operation of the image forming apparatus may become unstable by reading and executing a new control program that is insufficiently stored in the nonvolatile memory. There was a risk of becoming.

そこで、本発明は、このような事情に鑑みてなされたものであり、不揮発性メモリーに制御プログラムを復旧させるための制御プログラムが記憶されていない場合であっても、当該不揮発性メモリーに記憶されている制御プログラムの書き換えに失敗したときに、当該不揮発性メモリーに不十分に記憶されたままの制御プログラムを読み出して実行することによって画像形成装置の動作が不安定になる虞を解消することができる画像形成装置を提供することを目的とする。   Therefore, the present invention has been made in view of such circumstances, and even when a control program for restoring the control program is not stored in the nonvolatile memory, it is stored in the nonvolatile memory. When the rewriting of the control program is failed, it is possible to eliminate the possibility that the operation of the image forming apparatus becomes unstable by reading and executing the control program that is not sufficiently stored in the nonvolatile memory. It is an object of the present invention to provide an image forming apparatus that can be used.

請求項1に記載の発明は、制御プログラムを実行可能な画像形成装置であって、
当該画像形成装置で実行可能な制御プログラムを記憶する不揮発性メモリーと、
前記不揮発性メモリーに記憶されている制御プログラムに対する初期処理を定めた起動モードとしての、前記不揮発性メモリーから制御プログラムを読み出して実行する通常モードと前記不揮発性メモリーに記憶されている制御プログラムを書き換える書き換えモードと前記不揮発性メモリーに記憶されている制御プログラムを実行可能に復旧する復旧モードのうち、何れか一つの起動モードを示すデータである起動フラグを前記不揮発性メモリーに記憶する起動フラグ設定部と、
前記起動フラグ設定部によって前記不揮発性メモリーに記憶された起動フラグを読み出して、当該起動フラグが示す起動モードで定められた前記不揮発性メモリーに記憶されている制御プログラムに対する初期処理を実行する実行制御部と、
当該画像形成装置に接続された外部記憶媒体に記憶されている制御プログラムを取得するプログラム取得部と、
前記プログラム取得部によって取得された制御プログラムを用いて前記不揮発性メモリーに記憶されている制御プログラムを書き換えるプログラム書換部と、
前記プログラム取得部によって取得された制御プログラムを用いて前記不揮発性メモリーに記憶されている制御プログラムを復旧するプログラム復旧部と、
を備え、
前記実行制御部は、
前記通常モードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記不揮発性メモリーから制御プログラムを読み出して実行し、
前記書き換えモードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記起動フラグ設定部に前記復旧モードを示す起動フラグを前記不揮発性メモリーに記憶させた後、前記プログラム書換部に制御プログラムの書き換えを実行させ、当該書き換えが成功したものと判断すると、前記起動フラグ設定部に前記通常モードを示す起動フラグを前記不揮発性メモリーに記憶させ、当該書き換えが失敗したものと判断すると、前記不揮発性メモリーに記憶されている前記復旧モードを示す起動フラグを維持し、
前記復旧モードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記プログラム復旧部に制御プログラムの復旧を実行させ、当該復旧が成功したものと判断すると、前記起動フラグ設定部に前記通常モードを示す起動フラグを前記不揮発性メモリーに記憶させ、当該復旧が失敗したものと判断すると、前記不揮発性メモリーに記憶されている前記復旧モードを示す起動フラグを維持し、
前記復旧モードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記プログラム復旧部に制御プログラムの復旧を実行させる前に、前記プログラム取得部に制御プログラムを取得させて、当該制御プログラムが不正であるか否かを判断し、不正と判断すると、前記プログラム復旧部に制御プログラムの復旧を実行させずに、前記不揮発性メモリーに記憶されている前記復旧モードを示す起動フラグを維持する画像形成装置である。
The invention according to claim 1 is an image forming apparatus capable of executing a control program,
A non-volatile memory for storing a control program executable by the image forming apparatus;
Rewrite the control mode stored in the non-volatile memory and the normal mode in which the control program is read and executed from the non-volatile memory as the start-up mode that defines the initial processing for the control program stored in the non-volatile memory. A start flag setting unit that stores a start flag, which is data indicating any one start mode, in a rewrite mode and a recovery mode that recovers the control program stored in the non-volatile memory so as to be executable. When,
Execution control for reading the activation flag stored in the non-volatile memory by the activation flag setting unit and executing initial processing on the control program stored in the nonvolatile memory determined in the activation mode indicated by the activation flag And
A program acquisition unit for acquiring a control program stored in an external storage medium connected to the image forming apparatus;
A program rewriting unit for rewriting the control program stored in the nonvolatile memory using the control program acquired by the program acquisition unit;
A program recovery unit that recovers the control program stored in the nonvolatile memory using the control program acquired by the program acquisition unit;
With
The execution control unit
When the startup flag indicating the normal mode is stored in the nonvolatile memory, the control program is read from the nonvolatile memory and executed,
When the start flag indicating the rewrite mode is stored in the nonvolatile memory, the start flag indicating the recovery mode is stored in the nonvolatile memory in the start flag setting unit, and then the control program is stored in the program rewriting unit. When the rewriting is performed and it is determined that the rewriting is successful, the start flag setting unit stores the start flag indicating the normal mode in the nonvolatile memory, and when it is determined that the rewrite has failed, the nonvolatile flag is stored. Maintaining a start flag indicating the recovery mode stored in the memory,
When a startup flag indicating the recovery mode is stored in the non-volatile memory, the control recovery is executed by the program recovery unit, and when it is determined that the recovery is successful, the normal flag is set in the startup flag setting unit. When the startup flag indicating the mode is stored in the nonvolatile memory and it is determined that the recovery has failed, the startup flag indicating the recovery mode stored in the nonvolatile memory is maintained ,
When the activation flag indicating the recovery mode is stored in the nonvolatile memory, the control program is acquired by the program acquisition unit before the program recovery unit executes recovery of the control program. An image that determines whether it is illegal, and if it is determined to be illegal, maintains an activation flag indicating the recovery mode stored in the nonvolatile memory without causing the program recovery unit to execute recovery of the control program Forming device.

この発明によれば、書き換えモードを示す起動フラグが不揮発性メモリーに記憶されている場合、プログラム書換部による制御プログラムの書き換えが成功しない限り、通常モードを示す起動フラグが不揮発性メモリーに記憶されず、復旧モードを示す起動フラグが不揮発性メモリーに記憶されている場合も、プログラム復旧部による制御プログラムの復旧が成功しない限り、通常モードを示す起動フラグが不揮発性メモリーに記憶されない。   According to the present invention, when the start flag indicating the rewrite mode is stored in the non-volatile memory, the start flag indicating the normal mode is not stored in the non-volatile memory unless the rewrite of the control program by the program rewriting unit is successful. Even when the activation flag indicating the recovery mode is stored in the nonvolatile memory, the activation flag indicating the normal mode is not stored in the nonvolatile memory unless the control program is successfully recovered by the program recovery unit.

つまり、制御プログラムの書き換え又は復旧に失敗したときに通常モードを示す起動フラグが不揮発性メモリーに記憶されることがないため、当該書き換え又は復旧の失敗によって不揮発性メモリーに不十分に記憶されたままの制御プログラムを読み出して実行することを回避することができ、当該不揮発性メモリーに不十分に記憶されたままの制御プログラムを読み出して実行することによって画像形成装置の動作が不安定になる虞を解消することができる。
また、記憶媒体に記憶されていた不正な制御プログラムを用いて不揮発性メモリーに記憶されている制御プログラムを復旧することを回避することができる。このため、制御プログラムが不正な制御プログラムで復旧されて画像形成装置の動作が不安定になる虞を解消することができる。
In other words, the start flag indicating the normal mode is not stored in the non-volatile memory when rewriting or restoration of the control program fails, so that it remains insufficiently stored in the non-volatile memory due to the failure of rewriting or restoration. And reading and executing the control program that is stored inadequately in the nonvolatile memory may cause the operation of the image forming apparatus to become unstable. Can be resolved.
Further, it is possible to avoid restoring the control program stored in the non-volatile memory by using an unauthorized control program stored in the storage medium. For this reason, the possibility that the control program is restored by an unauthorized control program and the operation of the image forming apparatus becomes unstable can be solved.

また、請求項2に記載の発明は、請求項1に記載の画像形成装置であって、前記実行制御部は、前記書き換えモードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記起動フラグ設定部に前記復旧モードを示す起動フラグを前記不揮発性メモリーに記憶させる前に、前記プログラム取得部に制御プログラムを取得させて、当該制御プログラムが不正であるか否かを判断し、不正と判断すると、前記プログラム書換部に制御プログラムの書き換えを実行させずに、前記起動フラグ設定部に前記通常モードを示す起動フラグを前記不揮発性メモリーに記憶させる。   The invention according to claim 2 is the image forming apparatus according to claim 1, wherein the execution control unit is configured to store the start flag indicating the rewrite mode in the nonvolatile memory. Before storing a startup flag indicating the recovery mode in the startup flag setting unit in the nonvolatile memory, the program acquisition unit acquires a control program to determine whether the control program is illegal. If the determination is made, the activation flag indicating the normal mode is stored in the nonvolatile memory in the activation flag setting unit without causing the program rewriting unit to rewrite the control program.

この発明によれば、記憶媒体に記憶されていた不正な制御プログラムを用いて不揮発性メモリーに記憶されている制御プログラムを書き換えることを回避することができ、また、通常モードを示す起動フラグを不揮発性メモリーに記憶して、書き換え前の制御プログラムを読み出して実行することができる。このため、制御プログラムが不正な制御プログラムに書き換えられて画像形成装置の動作が不安定になる虞を解消することができる。   According to the present invention, it is possible to avoid rewriting the control program stored in the non-volatile memory by using an unauthorized control program stored in the storage medium, and the start flag indicating the normal mode is set in a non-volatile manner. The control program before rewriting can be read out and executed by storing in the volatile memory. For this reason, the possibility that the control program is rewritten with an unauthorized control program and the operation of the image forming apparatus becomes unstable can be solved.

本発明によれば、不揮発性メモリーに制御プログラムを復旧させるための制御プログラムが記憶されていない場合であっても、当該不揮発性メモリーに記憶されている制御プログラムの書き換えに失敗したときに、当該不揮発性メモリーに不十分に記憶されたままの制御プログラムを読み出して実行することによって画像形成装置の動作が不安定になる虞を解消することができる画像形成装置を提供することが可能になる。   According to the present invention, even when the control program for restoring the control program is not stored in the nonvolatile memory, when the rewriting of the control program stored in the nonvolatile memory fails, the It is possible to provide an image forming apparatus that can eliminate the possibility that the operation of the image forming apparatus becomes unstable by reading and executing a control program that is stored inadequately in the nonvolatile memory.

本発明の一実施形態に係る画像形成装置の内部構造の概略を示す図である。1 is a diagram illustrating an outline of an internal structure of an image forming apparatus according to an embodiment of the present invention. 上記画像形成装置の電気的な構成を示すブロック図である。FIG. 2 is a block diagram illustrating an electrical configuration of the image forming apparatus. 起動モードが通常モード又は書き換えモードの場合に実行制御部によって制御プログラムが読み出されて実行される又は書き換えられる制御の一例を示すフローチャートである。It is a flowchart which shows an example of the control by which a control program is read and performed or rewritten by the execution control part, when starting mode is normal mode or rewriting mode. 起動モードが復旧モードの場合に実行制御部によって制御プログラムが復旧される制御の一例を示すフローチャートである。It is a flowchart which shows an example of the control by which an execution control part recovers | restores when starting mode is recovery mode.

以下、図面に基づいて本発明の実施形態を詳細に説明する。図1は本発明の一実施形態に係る画像形成装置1の内部構造の概略を示す図である。画像形成装置1は、例えば、コピー、プリンター、スキャナー及びファクシミリの機能を有する複合機に適用することができる。画像形成装置1は本体部100、本体部100の上に配置された原稿読取部200、原稿読取部200の上に配置された原稿給送部300、本体部100の上部前面に配置された操作部400、及び本体部100の用紙搬出側、例えば左側に配置された用紙後処理部500を備える。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a diagram showing an outline of the internal structure of an image forming apparatus 1 according to an embodiment of the present invention. The image forming apparatus 1 can be applied to, for example, a multifunction machine having functions of a copy, a printer, a scanner, and a facsimile. The image forming apparatus 1 includes a main body unit 100, a document reading unit 200 disposed on the main body unit 100, a document feeding unit 300 disposed on the document reading unit 200, and an operation disposed on the upper front surface of the main body unit 100. Section 400 and a sheet post-processing section 500 disposed on the sheet carry-out side, for example, the left side of the main body section 100.

原稿給送部300は原稿載置部301、給紙ローラー303、原稿搬送部305及び原稿排出部307を備える。給紙ローラー303は原稿載置部301にセットされた原稿を1枚ずつ繰り出す。原稿搬送部305は繰り出された原稿を原稿読取部200に搬送する。原稿は原稿読取部200で読み取られて原稿排出部307に排出される。   The document feeding unit 300 includes a document placement unit 301, a paper feed roller 303, a document transport unit 305, and a document discharge unit 307. The paper feed roller 303 feeds the originals set on the original placement unit 301 one by one. The document transport unit 305 transports the fed document to the document reading unit 200. The document is read by the document reading unit 200 and discharged to the document discharge unit 307.

原稿読取部200はCCD(Charge Coupled Device)センサー及び露光ランプ等を搭載したキャリッジ201、ガラス等の透明部材により構成された原稿台203、及び原稿読取スリット205を備える。原稿台203に載置された原稿を読み取る場合、キャリッジ201を原稿台203の長手方向に移動させながらCCDセンサーにより原稿を読み取る。これに対して、原稿給送部300から給送された原稿を読み取る場合、キャリッジ201を原稿読取スリット205と対向する位置に移動させて、原稿給送部300から送られてきた原稿を、原稿読取スリット205を通してCCDセンサーにより読み取る。CCDセンサーは読み取った原稿を画像データとして出力する。   The document reading unit 200 includes a carriage 201 on which a CCD (Charge Coupled Device) sensor and an exposure lamp are mounted, a document table 203 formed of a transparent member such as glass, and a document reading slit 205. When reading a document placed on the document table 203, the document is read by the CCD sensor while moving the carriage 201 in the longitudinal direction of the document table 203. On the other hand, when reading a document fed from the document feeding unit 300, the carriage 201 is moved to a position facing the document reading slit 205, and the document fed from the document feeding unit 300 is scanned. Reading is performed by the CCD sensor through the reading slit 205. The CCD sensor outputs the read original as image data.

本体部100は用紙貯留部101、画像形成部103及び定着部105を備える。用紙貯留部101は本体部100の最下部に配置されており、用紙の束を貯留することができる用紙トレイ107を備える。用紙トレイ107に貯留された用紙の束において、最上位の用紙がピックアップローラー109の駆動により、用紙搬送部111へ向けて繰り出される。用紙は用紙搬送部111を通って、画像形成部103へ搬送される。   The main body unit 100 includes a sheet storage unit 101, an image forming unit 103, and a fixing unit 105. The sheet storage unit 101 is disposed at the lowermost part of the main body unit 100 and includes a sheet tray 107 that can store a bundle of sheets. In the stack of sheets stored in the sheet tray 107, the uppermost sheet is fed out toward the sheet transport unit 111 by driving the pickup roller 109. The sheet is conveyed to the image forming unit 103 through the sheet conveying unit 111.

画像形成部103は搬送されてきた用紙に画像データを基にしてトナー画像を形成する。画像形成部103は感光体ドラム113、露光部115、現像部117及び転写部119を備える。露光部115は画像データ(原稿読取部200から出力された画像データ、パソコンから送信された画像データ、ファクシミリ受信の画像データ等)に対応する光を生成し、一様に帯電された感光体ドラム113の周面に照射する。これにより、感光体ドラム113の周面には画像データに対応する静電潜像が形成される。この状態で感光体ドラム113の周面に現像部117からトナーを供給することにより、周面には画像データに対応するトナー画像が形成される。このトナー画像は転写部119によって先ほど説明した用紙貯留部101から搬送されてきた用紙に転写される。   The image forming unit 103 forms a toner image on the conveyed paper based on the image data. The image forming unit 103 includes a photosensitive drum 113, an exposure unit 115, a developing unit 117, and a transfer unit 119. The exposure unit 115 generates light corresponding to image data (image data output from the document reading unit 200, image data transmitted from a personal computer, image data received by facsimile, etc.), and is uniformly charged photosensitive drum. The peripheral surface 113 is irradiated. As a result, an electrostatic latent image corresponding to the image data is formed on the peripheral surface of the photosensitive drum 113. In this state, a toner image corresponding to image data is formed on the peripheral surface by supplying toner from the developing unit 117 to the peripheral surface of the photosensitive drum 113. This toner image is transferred by the transfer unit 119 to the sheet conveyed from the sheet storage unit 101 described above.

トナー画像が転写された用紙は定着部105に送られる。定着部105において、トナー画像と用紙に熱と圧力が加えられて、トナー画像を用紙に定着させる。これにより、用紙への画像の印刷が完了する。この印刷済用紙に対して後処理がされる場合、印刷済用紙は本体部100の用紙排出口121から用紙後処理部500へ送られる。これに対して後処理がされない場合、印刷済用紙は排紙トレイ123に排紙される。   The sheet on which the toner image is transferred is sent to the fixing unit 105. In the fixing unit 105, heat and pressure are applied to the toner image and the paper to fix the toner image on the paper. Thereby, the printing of the image on the paper is completed. When post-processing is performed on the printed paper, the printed paper is sent from the paper discharge port 121 of the main body 100 to the paper post-processing unit 500. On the other hand, when no post-processing is performed, the printed paper is discharged to the paper discharge tray 123.

用紙後処理部500では印刷済用紙に対して、ソート、ステープル、パンチ、中綴じ等の後処理がされる。用紙後処理部500は用紙搬入口501、用紙搬送部503、用紙搬出口505及びスタックトレイ507等を備える。用紙搬送部503は用紙排出口121から用紙搬入口501に搬入された印刷済用紙を順次搬送し、後処理がされた印刷済用紙を用紙搬出口505からスタックトレイ507へ搬出する。スタックトレイ507は用紙搬出口505から搬出された上記用紙の集積枚数に応じて矢印方向に上下動可能な構成を有する。   The paper post-processing unit 500 performs post-processing such as sorting, stapling, punching, and saddle stitching on the printed paper. The paper post-processing unit 500 includes a paper carry-in port 501, a paper transport unit 503, a paper carry-out port 505, a stack tray 507, and the like. The paper transport unit 503 sequentially transports the printed paper carried into the paper carry-in port 501 from the paper discharge port 121, and carries out the post-processed printed paper from the paper carry-out port 505 to the stack tray 507. The stack tray 507 has a configuration capable of moving up and down in the direction of the arrow in accordance with the number of sheets stacked from the paper exit 505.

操作部400は、操作キー部401と表示部403を備える。表示部403はタッチパネル機能を有しており、ソフトキーを含む画面が表示される。ユーザーは画面を見ながらソフトキーを操作することによって、コピー等の機能の実行に必要な設定等をする。   The operation unit 400 includes an operation key unit 401 and a display unit 403. The display unit 403 has a touch panel function, and displays a screen including soft keys. The user operates the soft keys while viewing the screen to make settings necessary for executing functions such as copying.

操作キー部401はハードキーからなる操作キーを備えており、具体的にはヘルプキー405、スタートキー407、テンキー409及び機能切換キー411等を備える。ヘルプキー405はヘルプ画面を表示部403に表示させるキーである。ヘルプ画面とはスキャナー、ファクシミリ、プリンター、コピー等の機能に関する操作方法が表示された画面である。   The operation key unit 401 includes operation keys including hard keys. Specifically, the operation key unit 401 includes a help key 405, a start key 407, a numeric key 409, a function switching key 411, and the like. A help key 405 is a key for displaying a help screen on the display unit 403. The help screen is a screen on which operation methods related to functions such as a scanner, a facsimile, a printer, and a copy are displayed.

スタートキー407はコピー、ファクシミリ送信等の動作を開始させるキーである。テンキー409はコピー部数、ファクシミリ番号等の数字を入力するキーである。   A start key 407 is a key for starting operations such as copying and facsimile transmission. A numeric keypad 409 is a key for inputting numbers such as the number of copies and a facsimile number.

機能切換キー411はコピーキー及び送信キー等を備えており、コピー機能、送信機能等を相互に切り替えるキーである。コピーキーを操作すれば、コピーの初期画面が表示部403に表示される。送信キーを操作すれば、ファクシミリ送信及びメール送信の初期画面が表示部403に表示される。   The function switching key 411 includes a copy key, a transmission key, and the like, and is a key for switching between a copy function, a transmission function, and the like. When the copy key is operated, an initial copy screen is displayed on the display unit 403. When the transmission key is operated, an initial screen for facsimile transmission and mail transmission is displayed on the display unit 403.

図2は図1に示す画像形成装置1の電気的な構成を示すブロック図である。画像形成装置1は、上記の本体部100、上記の原稿読取部200、上記の原稿給送部300、上記の操作部400、上記の用紙後処理部500、USBメモリー等の記憶媒体5を画像形成装置1に接続するための外部インターフェイス700、制御部600、及び通信部800がバスによって相互に接続された構成を有する。   FIG. 2 is a block diagram showing an electrical configuration of the image forming apparatus 1 shown in FIG. The image forming apparatus 1 images the storage medium 5 such as the main body 100, the document reading unit 200, the document feeding unit 300, the operation unit 400, the sheet post-processing unit 500, and a USB memory. An external interface 700 for connecting to the forming apparatus 1, a control unit 600, and a communication unit 800 are connected to each other via a bus.

制御部600は、CPU(Central Processing Unit)、画像形成装置1の制御プログラムを記憶する本発明に係る不揮発性メモリーの一例としてのフラッシュメモリー、及び、制御プログラムの実行時に一時的にデータを保管するRAM(Random Access Memory)を備え、CPUによって制御プログラムをフラッシュメモリーから読み出して実行することによって、装置各部の動作に必要な制御を行う。   The control unit 600 temporarily stores data when a CPU (Central Processing Unit), a flash memory as an example of a nonvolatile memory according to the present invention that stores a control program of the image forming apparatus 1, and a control program are executed. A RAM (Random Access Memory) is provided, and a control program is read from the flash memory by the CPU and executed, thereby performing control necessary for the operation of each part of the apparatus.

具体的には、制御部600は、起動フラグ設定部601、プログラム取得部602、プログラム書換部603、プログラム復旧部604、及び実行制御部605として機能する。   Specifically, the control unit 600 functions as an activation flag setting unit 601, a program acquisition unit 602, a program rewrite unit 603, a program recovery unit 604, and an execution control unit 605.

起動フラグ設定部601は、フラッシュメモリーに記憶されている制御プログラムに対する初期処理を定めた起動モードとしての、フラッシュメモリーから制御プログラムを読み出してCPUによって実行する通常モードと、フラッシュメモリーに記憶されている制御プログラムを書き換える書き換えモードと、フラッシュメモリーに記憶されている制御プログラムを実行可能に復旧する復旧モードとの間で起動モードを切り替える。   The activation flag setting unit 601 stores a normal mode in which a control program is read from the flash memory and executed by the CPU as an activation mode that defines an initial process for the control program stored in the flash memory, and is stored in the flash memory. The start mode is switched between a rewrite mode in which the control program is rewritten and a recovery mode in which the control program stored in the flash memory is restored to be executable.

具体的には、起動フラグ設定部601は、通常モードを示すデータ(例えば、0)、書き換えモードを示すデータ(例えば、1)、及び復旧モードを示すデータ(例えば、2)の何れか一つを起動フラグとしてフラッシュメモリーの予め定められた記憶領域に記憶することによって、起動モードの切り替えを実現する。   Specifically, the activation flag setting unit 601 is one of data indicating the normal mode (for example, 0), data indicating the rewrite mode (for example, 1), and data indicating the recovery mode (for example, 2). Is stored in a predetermined storage area of the flash memory as a start flag, thereby switching the start mode.

尚、起動フラグがフラッシュメモリーの予め定められた記憶領域に記憶されていない場合や、各起動モードを示すデータ以外のデータが起動フラグとして記憶されている場合は、不正な状態にあるものとして、起動モードは、復旧モードを示しているものとして扱う。ただし、各起動モードを示すデータを、上記の例に限定する趣旨ではない。   If the activation flag is not stored in a predetermined storage area of the flash memory, or if data other than the data indicating each activation mode is stored as the activation flag, it is assumed that the state is invalid. The start mode is treated as indicating the recovery mode. However, the data indicating each activation mode is not limited to the above example.

プログラム取得部602は、書き換え用の制御プログラム又は復旧用の制御プログラム等を記憶しているUSBメモリー等の記憶媒体5が外部インターフェイス700を介して画像形成装置1に接続された状態で、当該記憶媒体5に記憶されている書き換え用の制御プログラム又は復旧用の制御プログラムを取得する。   The program acquisition unit 602 stores the storage medium 5 such as a USB memory storing a rewrite control program or a recovery control program in the state in which the storage medium 5 is connected to the image forming apparatus 1 via the external interface 700. The control program for rewriting or the control program for recovery stored in the medium 5 is acquired.

プログラム書換部603は、プログラム取得部602によって取得された書き換え用の制御プログラムを用いてフラッシュメモリーに記憶されている制御プログラムを書き換える。   The program rewrite unit 603 rewrites the control program stored in the flash memory using the rewrite control program acquired by the program acquisition unit 602.

尚、書き換え用の制御プログラムとは、フラッシュメモリーに記憶されている制御プログラムに実装されている機能を拡張する、又は、フラッシュメモリーに記憶されている制御プログラムに実装されている機能の問題点を修正する等、制御プログラムをバージョンアップするための制御プログラムを示す。   Note that the rewrite control program refers to the problem of the function implemented in the control program stored in the flash memory or the function implemented in the control program stored in the flash memory. A control program for upgrading the control program, such as correction, is shown.

プログラム復旧部604は、プログラム取得部602によって取得された復旧用の制御プログラムを用いてフラッシュメモリーに記憶されている制御プログラムを復旧する。   The program recovery unit 604 recovers the control program stored in the flash memory using the recovery control program acquired by the program acquisition unit 602.

尚、復旧用の制御プログラムとは、フラッシュメモリーに記憶されている制御プログラムと同一の制御プログラムであり、フラッシュメモリーに記憶されている制御プログラムを記憶媒体5にバックアップした制御プログラムを示す。また、制御プログラムを復旧するとは、記憶媒体5にバックアップした制御プログラムを読み出して、フラッシュメモリーに記憶されている制御プログラムを書き換えて制御プログラムを元の状態に戻すことを示す。   The recovery control program is the same control program as the control program stored in the flash memory, and indicates a control program in which the control program stored in the flash memory is backed up to the storage medium 5. The restoration of the control program means that the control program backed up in the storage medium 5 is read, the control program stored in the flash memory is rewritten, and the control program is returned to the original state.

実行制御部605は、起動フラグ設定部601によってフラッシュメモリーに記憶された起動フラグを読み出して、当該起動フラグが示す起動モードで定められたフラッシュメモリーに記憶されている制御プログラムに対する初期処理を実行する。尚、実行制御部605による制御プログラムに対する初期処理の実行制御については後述する。   The execution control unit 605 reads the activation flag stored in the flash memory by the activation flag setting unit 601, and executes an initial process for the control program stored in the flash memory determined by the activation mode indicated by the activation flag. . The execution control of the initial process for the control program by the execution control unit 605 will be described later.

また、起動フラグ設定部601、プログラム取得部602、プログラム書換部603、プログラム復旧部604、及び実行制御部605を実装した各制御プログラムは、フラッシュメモリーにおける書き換え不可能な領域に記憶されている。   In addition, each control program on which the activation flag setting unit 601, program acquisition unit 602, program rewriting unit 603, program restoration unit 604, and execution control unit 605 are mounted is stored in a non-rewritable area in the flash memory.

通信部800は、ファクシミリ通信部801及びネットワークI/F部803を備える。ファクシミリ通信部801は、相手先ファクシミリとの電話回線の接続を制御するNCU(Network Control Unit)及びファクシミリ通信用の信号を変復調する変復調回路を備える。ファクシミリ通信部801は、電話回線805に接続される。   The communication unit 800 includes a facsimile communication unit 801 and a network I / F unit 803. The facsimile communication unit 801 includes an NCU (Network Control Unit) that controls connection of a telephone line with a destination facsimile, and a modulation / demodulation circuit that modulates and demodulates a signal for facsimile communication. The facsimile communication unit 801 is connected to the telephone line 805.

ネットワークI/F部803は、LAN(Local Area Network)807に接続される。ネットワークI/F部803は、LAN807に接続されたパソコン等の端末装置との間で通信を実行するための通信インターフェイス回路である。   The network I / F unit 803 is connected to a LAN (Local Area Network) 807. A network I / F unit 803 is a communication interface circuit for executing communication with a terminal device such as a personal computer connected to the LAN 807.

次に、実行制御部605による制御プログラムに対する初期処理の実行制御のうち、起動モードが通常モード又は書き換えモードの場合に、実行制御部605によって制御プログラムが読み出されて実行される又は書き換えられる制御の一例について、図3に示すフローチャートを用いて説明する。   Next, among the execution control of the initial process for the control program by the execution control unit 605, when the start mode is the normal mode or the rewrite mode, the control program is read and executed or rewritten by the execution control unit 605 An example will be described with reference to the flowchart shown in FIG.

画像形成装置1の電源が投入されると、実行制御部605は、フラッシュメモリーの予め定められた記憶領域に記憶されている起動フラグを読み出して、起動モードの判定を行う(S1)。   When the image forming apparatus 1 is powered on, the execution control unit 605 reads the activation flag stored in a predetermined storage area of the flash memory and determines the activation mode (S1).

実行制御部605は、通常モードを示す起動フラグを読み出すと、起動モードが通常モードであると判定する(S1;通常モード)。そして、ユーザーによる操作キー部401の操作によって起動モードを書き換えモードに切り替える指示が入力されることなく(S2;NO)、ユーザーによる操作キー部401の操作によって制御プログラムの実行指示が入力されると、実行制御部605は、フラッシュメモリーに記憶されている当該実行指示に対応する制御プログラムを読み出してCPUに実行させる(S3)。   When the execution control unit 605 reads the activation flag indicating the normal mode, the execution control unit 605 determines that the activation mode is the normal mode (S1; normal mode). When an instruction to switch the activation mode to the rewrite mode is not input by the operation of the operation key unit 401 by the user (S2; NO), an instruction to execute the control program is input by the operation of the operation key unit 401 by the user. The execution control unit 605 reads out a control program corresponding to the execution instruction stored in the flash memory and causes the CPU to execute it (S3).

一方、実行制御部605は、通常モードを示す起動フラグを読み出すと、起動モードが通常モードであると判定する(S1;通常モード)。そして、ユーザーによる操作キー部401の操作によって起動モードを書き換えモードに切り替える指示が入力されると(S2;YES)、実行制御部605は、当該入力された指示を受け付け、起動フラグ設定部601に起動モードを書き換えモードに切り替える指示を送出し、起動フラグ設定部601は当該指示に応じて、書き換えモードを示す起動フラグをフラッシュメモリーに記憶して、起動モードを書き換えモードに切り替える(S4)。そして、実行制御部605は、画像形成装置1の再起動を行う(S5)。   On the other hand, when reading the activation flag indicating the normal mode, the execution control unit 605 determines that the activation mode is the normal mode (S1; normal mode). When an instruction to switch the activation mode to the rewrite mode is input by the operation of the operation key unit 401 by the user (S2; YES), the execution control unit 605 receives the input instruction and inputs the instruction to the activation flag setting unit 601. In response to the instruction, the start flag setting unit 601 stores a start flag indicating the rewrite mode in the flash memory, and switches the start mode to the rewrite mode (S4). Then, the execution control unit 605 restarts the image forming apparatus 1 (S5).

また、ステップS1において、実行制御部605は、書き換えモードを示す起動フラグを読み出すと、起動モードが書き換えモードであると判定し(S1;書き換えモード)、書き換え用の制御プログラムを取得する指示をプログラム取得部602に送出し、プログラム取得部602は、当該指示の下、外部インターフェイス700を介して画像形成装置1に接続された記憶媒体5から書き換え用の制御プログラムを取得する(S6)。   In step S1, the execution control unit 605 reads the activation flag indicating the rewrite mode, determines that the activation mode is the rewrite mode (S1; rewrite mode), and instructs the program to acquire a rewrite control program. The program acquisition unit 602 transmits the control program for rewriting from the storage medium 5 connected to the image forming apparatus 1 via the external interface 700 under the instruction (S6).

そして、実行制御部605は、ステップS6でプログラム取得部602に取得させた書き換え用の制御プログラムの正当性を判断する(S7)。例えば、実行制御部605は、当該取得した書き換え用の制御プログラムが画像形成装置1で実行可能な形式で実装され、また、当該書き換え対象の制御プログラムに対して予め定められた最大データサイズよりも小さいデータサイズであること等を以って、当該取得した書き換え用の制御プログラムに不正はないものと判断すると(S7;NO)、起動フラグ設定部601に起動モードを復旧モードに切り替える指示を送出し、起動フラグ設定部601は、当該指示に応じて、復旧モードを示す起動フラグをフラッシュメモリーに記憶して、起動モードを復旧モードに切り替える(S8)。   Then, the execution control unit 605 determines the validity of the rewrite control program acquired by the program acquisition unit 602 in step S6 (S7). For example, the execution control unit 605 is mounted in a format in which the acquired rewrite control program can be executed by the image forming apparatus 1, and more than a predetermined maximum data size for the rewrite target control program. If it is determined that the acquired rewrite control program is not illegal due to the small data size or the like (S7; NO), an instruction to switch the activation mode to the recovery mode is sent to the activation flag setting unit 601. In response to the instruction, the activation flag setting unit 601 stores an activation flag indicating the recovery mode in the flash memory, and switches the activation mode to the recovery mode (S8).

次に、実行制御部605は、プログラム書換部603に制御プログラムの書き換えを実行させる指示を送出し、プログラム書換部603は、当該指示に応じて、ステップS6でプログラム取得部602によって取得された書き換え用の制御プログラムを用いて、フラッシュメモリーに記憶されている制御プログラムを書き換える(S9)。   Next, the execution control unit 605 sends an instruction to cause the program rewriting unit 603 to rewrite the control program, and the program rewriting unit 603 responds to the rewriting acquired by the program acquisition unit 602 in step S6. The control program stored in the flash memory is rewritten using the control program (S9).

そして、実行制御部605は、例えば、ステップS6でプログラム取得部602によって取得された書き換え用の制御プログラムと、ステップS9でプログラム書換部603によって制御プログラムの書き換えが終了した後にフラッシュメモリーに記憶されている制御プログラムと、のデータサイズが一致すること等を以って、プログラム書換部603による制御プログラムの書き換えが成功したものと判断すると(S10;YES)、起動フラグ設定部601に起動モードを通常モードに切り替える指示を送出し、起動フラグ設定部601は、当該指示に応じて、通常モードを示す起動フラグをフラッシュメモリーに記憶して、起動モードを通常モードに切り替える(S11)。   The execution control unit 605 stores the control program for rewriting acquired by the program acquisition unit 602 in step S6 and the flash memory after rewriting of the control program by the program rewriting unit 603 in step S9. If it is determined that the rewriting of the control program by the program rewriting unit 603 is successful (S10; YES), the start flag setting unit 601 normally sets the start mode. In response to the instruction, the activation flag setting unit 601 stores an activation flag indicating the normal mode in the flash memory and switches the activation mode to the normal mode (S11).

そして、通常モードを示す起動フラグがフラッシュメモリーに記憶されている状態で、実行制御部605は、表示部403に制御プログラムの書き換えに成功して終了したことを示すメッセージを表示して(S12)、再びステップS1の処理に移行する。   Then, in a state where the activation flag indicating the normal mode is stored in the flash memory, the execution control unit 605 displays a message indicating that the control program has been successfully rewritten and terminated on the display unit 403 (S12). Then, the process proceeds to step S1 again.

尚、ステップS10において、実行制御部605は、例えば、ステップS9でプログラム書換部603による制御プログラムの書き換えが開始されてから、予め定められた想定処理時間を経過しても当該書き換えの処理が終了しない、又は、ステップS6でプログラム取得部602によって取得された書き換え用の制御プログラムと、ステップS9でプログラム書換部603によって制御プログラムの書き換えが終了した後にフラッシュメモリーに記憶されている制御プログラムとのデータサイズが一致しない等を以って、プログラム書換部603による制御プログラムの書き換えが失敗したものと判断すると(S10;NO)、起動フラグ設定部601に起動モードを切り替える指示を送出することなく、復旧モードを示す起動フラグがフラッシュメモリーに記憶されている状態を維持したまま、表示部403に制御プログラムの書き換えに失敗して終了したことを示すメッセージを表示し(S14)、再びステップS1の処理に移行する。   In step S10, for example, the execution control unit 605 ends the rewriting process even if a predetermined estimated processing time elapses after the program rewriting unit 603 starts rewriting in step S9. Or the data of the control program for rewriting acquired by the program acquisition unit 602 in step S6 and the control program stored in the flash memory after the rewriting of the control program by the program rewriting unit 603 is completed in step S9 If it is determined that the rewriting of the control program by the program rewriting unit 603 has failed due to a size mismatch or the like (S10; NO), the recovery is performed without sending an instruction to switch the activation mode to the activation flag setting unit 601. The start flag indicating the mode is While maintaining the state of Tsu stored in Shrewsbury memory, it failed to rewrite the control program on the display unit 403 displays a message indicating the completion (S14), the process proceeds again to the processing in step S1.

一方、実行制御部605は、ステップS6でプログラム取得部602に書き換え用の制御プログラムを取得する指示を送出したが、例えば、書き換え用の制御プログラムを記憶している記憶媒体5が画像形成装置1に接続されていない、若しくは、外部インターフェイス700を介して接続された記憶媒体5に書き換え用の制御プログラムが記憶されていない等を以ってプログラム取得部602によって書き換え用の制御プログラムが取得できない、プログラム取得部602によって書き換え用の制御プログラムは取得されたが、当該取得された書き換え用の制御プログラムが画像形成装置1で実行可能な形式で実装されていない、又は、当該書き換え対象の制御プログラムに対して予め定められた最大データサイズよりも大きいデータサイズである等を以って、当該取得された書き換え用の制御プログラムが不正であるものと判断すると(S7;YES)、プログラム書換部603に制御プログラムの書き換えを実行させることなく、起動フラグ設定部601に起動モードを通常モードに切り替える指示を送出し、起動フラグ設定部601は、当該指示に応じて通常モードを示す起動フラグをフラッシュメモリーに記憶して、起動モードを通常モードに切り換える(S13)。そして、通常モードを示す起動フラグがフラッシュメモリーに記憶されている状態で、実行制御部605は、表示部403に制御プログラムの書き換えに失敗して終了したことを示すメッセージを表示して(S14)、再びステップS1の処理に移行する。   On the other hand, the execution control unit 605 sends an instruction to acquire the rewrite control program to the program acquisition unit 602 in step S6. For example, the storage medium 5 storing the rewrite control program is the image forming apparatus 1. The reprogramming control program cannot be obtained by the program obtaining unit 602 because the rewriting control program is not stored in the storage medium 5 connected via the external interface 700. The rewrite control program is acquired by the program acquisition unit 602, but the acquired rewrite control program is not implemented in a format that can be executed by the image forming apparatus 1, or is included in the rewrite target control program. A data size larger than the predetermined maximum data size If it is determined that the acquired control program for rewriting is invalid (S7; YES), the activation flag setting unit is not executed without causing the program rewriting unit 603 to rewrite the control program. An instruction to switch the activation mode to the normal mode is sent to 601, and the activation flag setting unit 601 stores an activation flag indicating the normal mode in the flash memory in accordance with the instruction, and switches the activation mode to the normal mode (S 13). . Then, in a state where the activation flag indicating the normal mode is stored in the flash memory, the execution control unit 605 displays a message on the display unit 403 indicating that the rewriting of the control program has failed and ended (S14). Then, the process proceeds to step S1 again.

次に、実行制御部605による制御プログラムに対する初期処理の実行制御のうち、起動モードが復旧モードの場合に、実行制御部605によって、制御プログラムが復旧される制御の一例について、図3及び図4に示すフローチャートを用いて説明する。   Next, of the execution control of the initial process for the control program by the execution control unit 605, an example of control in which the control program is restored by the execution control unit 605 when the activation mode is the recovery mode will be described with reference to FIGS. It demonstrates using the flowchart shown in FIG.

実行制御部605は、上記のように、ステップS8で起動フラグ設定部601に起動モードを復旧モードに切り替える指示を送出した後、ステップS9でプログラム書換部603に制御プログラムの書き換えを実行させる指示を送出し、ステップS10で当該指示に応じてプログラム書換部603による制御プログラムの書き換えが失敗したものと判断した後、ステップS1の処理に移行すると、フラッシュメモリーから復旧モードを示す起動フラグを読み出して、起動モードが復旧モードであると判定する(S1;復旧モード)。   As described above, the execution control unit 605 sends an instruction to switch the activation mode to the recovery mode to the activation flag setting unit 601 in step S8, and then instructs the program rewriting unit 603 to rewrite the control program in step S9. In step S10, after determining that the rewriting of the control program by the program rewriting unit 603 has failed in response to the instruction, when the process proceeds to step S1, the activation flag indicating the recovery mode is read from the flash memory, It is determined that the activation mode is the recovery mode (S1; recovery mode).

そして、実行制御部605は、復旧用の制御プログラムを取得する指示をプログラム取得部602に送出し、プログラム取得部602は、当該指示の下、外部インターフェイス700を介して画像形成装置1に接続された記憶媒体5から復旧用の制御プログラムを取得する(S21)。   Then, the execution control unit 605 sends an instruction to acquire a recovery control program to the program acquisition unit 602, and the program acquisition unit 602 is connected to the image forming apparatus 1 via the external interface 700 under the instruction. The control program for restoration is acquired from the storage medium 5 (S21).

次に、実行制御部605は、ステップS21でプログラム取得部602に取得させた復旧用の制御プログラムの正当性を判断する(S22)。例えば、実行制御部605は、当該取得した復旧用の制御プログラムが画像形成装置1で実行可能な形式で実装され、また、当該復旧対象の制御プログラムに対して予め定められた最大データサイズよりも小さいデータサイズであること等を以って、当該取得した復旧用の制御プログラムに不正はないものと判断すると(S22;NO)、プログラム復旧部604に制御プログラムの復旧を実行させる指示を送出し、プログラム復旧部604は、当該指示に応じて、ステップS22でプログラム取得部602によって取得された復旧用の制御プログラムを用いて、フラッシュメモリーに記憶されている制御プログラムを書き換えることによって制御プログラムの復旧を行う(S23)。   Next, the execution control unit 605 determines the validity of the recovery control program acquired by the program acquisition unit 602 in step S21 (S22). For example, the execution control unit 605 is mounted in a format in which the acquired recovery control program can be executed by the image forming apparatus 1, and more than the maximum data size predetermined for the recovery target control program. If it is determined that there is no fraud in the acquired recovery control program due to the small data size or the like (S22; NO), the program recovery unit 604 sends an instruction to execute the recovery of the control program. In response to the instruction, the program recovery unit 604 uses the recovery control program acquired by the program acquisition unit 602 in step S22 to rewrite the control program stored in the flash memory. (S23).

実行制御部605は、例えば、ステップS21でプログラム取得部602によって取得された復旧用の制御プログラムと、ステップS23でプログラム復旧部604によって制御プログラムの復旧が終了した後にフラッシュメモリーに記憶されている制御プログラムと、のデータサイズが一致すること等を以って、プログラム復旧部604による制御プログラムの復旧が成功したものと判断すると(S24;YES)、表示部403に制御プログラムの復旧に成功して終了したことを示すメッセージを表示した後(S25)、起動フラグ設定部601に起動モードを通常モードに切り替える指示を送出し、起動フラグ設定部601は、当該指示に応じて通常モードを示す起動フラグをフラッシュメモリーに記憶して、起動モードを通常モードに切り替える(S26)。そして、通常モードを示す起動フラグがフラッシュメモリーに記憶されている状態で、実行制御部605は、再びステップS1の処理に移行する。   The execution control unit 605 includes, for example, the control program for recovery acquired by the program acquisition unit 602 in step S21 and the control stored in the flash memory after the recovery of the control program is completed by the program recovery unit 604 in step S23. If it is determined that the control program has been successfully restored by the program restoration unit 604 because the data size of the program and the like match (S24; YES), the display unit 403 has successfully restored the control program. After displaying the message indicating the end (S25), an instruction to switch the activation mode to the normal mode is sent to the activation flag setting unit 601, and the activation flag setting unit 601 indicates the activation flag indicating the normal mode according to the instruction. Is stored in flash memory and the startup mode is set to normal mode. Switching (S26). Then, in a state where the activation flag indicating the normal mode is stored in the flash memory, the execution control unit 605 proceeds to the process of step S1 again.

尚、ステップS24において、実行制御部605は、例えば、ステップS23でプログラム復旧部604による制御プログラムの復旧が開始されてから、予め定められた想定処理時間を経過しても当該復旧の処理が終了しない、又は、ステップS21でプログラム取得部602によって取得された復旧用の制御プログラムと、ステップS23でプログラム復旧部604によって制御プログラムの復旧が終了した後にフラッシュメモリーに記憶されている制御プログラムとのデータサイズが一致しない等を以って、プログラム復旧部604による制御プログラムの復旧が失敗したものと判断すると(S24;NO)、起動フラグ設定部601に起動モードを切り替える指示を送出することなく、復旧モードを示す起動フラグがフラッシュメモリーに記憶されている状態を維持したまま、表示部403に制御プログラムの復旧に失敗して終了したことを示すメッセージを表示し(S27)、再びステップS1の処理に移行する。   In step S24, the execution control unit 605 terminates the recovery process even if a predetermined estimated processing time elapses after the program recovery unit 604 starts recovery in step S23. Or the data of the recovery control program acquired by the program acquisition unit 602 in step S21 and the control program stored in the flash memory after the recovery of the control program by the program recovery unit 604 is completed in step S23 If it is determined that the restoration of the control program by the program restoration unit 604 has failed due to a size mismatch or the like (S24; NO), the restoration is performed without sending an instruction to switch the activation mode to the activation flag setting unit 601. The startup flag indicating the mode is flash memory While maintaining the state stored in, it fails to recover the control program on the display unit 403 displays a message indicating the completion (S27), the process proceeds again to the processing in step S1.

一方、実行制御部605は、ステップS21でプログラム取得部602に復旧用の制御プログラムを取得する指示を送出したが、例えば、復旧用の制御プログラムを記憶している記憶媒体5が画像形成装置1に接続されていない、若しくは、外部インターフェイス700を介して接続された記憶媒体5に復旧用の制御プログラムが記憶されていない等を以ってプログラム取得部602によって復旧用の制御プログラムが取得できない、プログラム取得部602によって復旧用の制御プログラムは取得されたが、当該取得された復旧用の制御プログラムが画像形成装置1で実行可能な形式で実装されていない、又は、当該復旧対象の制御プログラムに対して予め定められた最大データサイズよりも大きいデータサイズである等を以って、当該取得された復旧用の制御プログラムが不正であるものと判断すると(S22;YES)、プログラム復旧部604に制御プログラムの復旧を実行させることなく、復旧モードを示す起動フラグがフラッシュメモリーに記憶されている状態を維持したまま、表示部403に復旧用の制御プログラムが不正のため復旧不可能であることを示すメッセージを表示し(S28)、再びステップS1の処理に移行する。   On the other hand, the execution control unit 605 sends an instruction to acquire the recovery control program to the program acquisition unit 602 in step S21. For example, the storage medium 5 storing the recovery control program is the image forming apparatus 1. Or a recovery control program cannot be acquired by the program acquisition unit 602 because the recovery control program is not stored in the storage medium 5 connected via the external interface 700. The recovery control program is acquired by the program acquisition unit 602, but the acquired recovery control program is not implemented in a format that can be executed by the image forming apparatus 1, or is included in the control program to be recovered. For example, if the data size is larger than the predetermined maximum data size, If it is determined that the restored control program for recovery is illegal (S22; YES), the activation flag indicating the recovery mode is stored in the flash memory without causing the program recovery unit 604 to execute recovery of the control program. While maintaining the state, the display unit 403 displays a message indicating that the control program for recovery is illegal and cannot be recovered (S28), and the process proceeds to step S1 again.

このように、本構成によれば、実行制御部605によって起動モードが書き換えモードであると判定された場合、プログラム書換部603による制御プログラムの書き換えが成功しない限り、通常モードを示す起動フラグが不揮発性メモリーに記憶されず、起動モードが復旧モードであると判定された場合も、プログラム復旧部604による制御プログラムの復旧が成功しない限り、通常モードを示す起動フラグが不揮発性メモリーに記憶されない。   As described above, according to this configuration, when the execution control unit 605 determines that the start mode is the rewrite mode, the start flag indicating the normal mode is non-volatile unless the control rewrite by the program rewrite unit 603 is successful. Even if it is determined that the startup mode is the recovery mode without being stored in the volatile memory, the startup flag indicating the normal mode is not stored in the non-volatile memory unless the program recovery unit 604 successfully recovers the control program.

つまり、制御プログラムの書き換え又は復旧に失敗したときに通常モードを示す起動フラグが不揮発性メモリーに記憶されることがないため、当該書き換え又は復旧の失敗によって不揮発性メモリーに不十分に記憶されたままの制御プログラムを読み出して実行することを回避することができ、当該不揮発性メモリーに不十分に記憶されたままの制御プログラムを読み出して実行することによって画像形成装置1の動作が不安定になる虞を解消することができる。   In other words, the start flag indicating the normal mode is not stored in the non-volatile memory when rewriting or restoration of the control program fails, so that it remains insufficiently stored in the non-volatile memory due to the failure of rewriting or restoration. It is possible to avoid reading and executing the control program, and the operation of the image forming apparatus 1 may become unstable by reading and executing the control program that is not sufficiently stored in the nonvolatile memory. Can be eliminated.

また、ステップS7における判断が実行されることによって、記憶媒体5に記憶されていた不正な制御プログラムを用いてフラッシュメモリーに記憶されている制御プログラムを書き換えることを回避することができ、また、ステップS11で通常モードを示す起動フラグをフラッシュメモリーに記憶することによって、ステップS1において起動モードが通常モードであると判定され、書き換え前の制御プログラムをフラッシュメモリーから読み出して実行することができる。このため、制御プログラムが不正な制御プログラムに書き換えられて画像形成装置1の動作が不安定になる虞を解消することができる。   In addition, by executing the determination in step S7, it is possible to avoid rewriting the control program stored in the flash memory using an unauthorized control program stored in the storage medium 5, By storing the activation flag indicating the normal mode in the flash memory in S11, it is determined in step S1 that the activation mode is the normal mode, and the control program before rewriting can be read from the flash memory and executed. For this reason, it is possible to eliminate the possibility that the operation of the image forming apparatus 1 becomes unstable due to the control program being rewritten with an unauthorized control program.

また、ステップS22における判断が実行されることによって、記憶媒体5に記憶されていた不正な制御プログラムを用いてフラッシュメモリーに記憶されている制御プログラムを復旧することを回避することができる。このため、制御プログラムが不正な制御プログラムで復旧されて画像形成装置の動作が不安定になる虞を解消することができる。   In addition, by executing the determination in step S22, it is possible to avoid restoring the control program stored in the flash memory using the unauthorized control program stored in the storage medium 5. For this reason, the possibility that the control program is restored by an unauthorized control program and the operation of the image forming apparatus becomes unstable can be solved.

尚、例えば、書き換え用の制御プログラムを記憶媒体5に記憶する機構によって当該制御プログラムが不正でないことが一度確認されている場合等、実行制御部605をステップS7及びステップS13を実行しない簡易的な構成にしてもよい。   Note that, for example, when the control program for rewriting is stored in the storage medium 5 and it is once confirmed that the control program is not illegal, the execution control unit 605 does not execute steps S7 and S13. It may be configured.

また、例えば、復旧用の制御プログラムを記憶媒体5に記憶する機構によって当該制御プログラムが不正でないことが一度確認されている場合等、実行制御部605をステップS22及びステップS28を実行しない簡易的な構成にしてもよい。   Further, for example, when it is once confirmed that the control program is not illegal by the mechanism that stores the control program for recovery in the storage medium 5, the execution control unit 605 does not execute steps S22 and S28. It may be configured.

尚、上記図1乃至図4に示した実施形態に係る構成及び処理は、本発明に係る画像形成装置の構成及び処理の一例に過ぎず、本発明に係る画像形成装置の構成及び処理を上記に示した内容に限定するものではない。   The configuration and processing according to the embodiment shown in FIGS. 1 to 4 are merely examples of the configuration and processing of the image forming apparatus according to the present invention, and the configuration and processing of the image forming apparatus according to the present invention are described above. It is not limited to the contents shown in.

1 画像形成装置
600 制御部
601 起動フラグ設定部
602 プログラム取得部
603 プログラム書換部
604 プログラム復旧部
605 実行制御部
DESCRIPTION OF SYMBOLS 1 Image forming apparatus 600 Control part 601 Startup flag setting part 602 Program acquisition part 603 Program rewriting part 604 Program recovery part 605 Execution control part

Claims (2)

制御プログラムを実行可能な画像形成装置であって、
当該画像形成装置で実行可能な制御プログラムを記憶する不揮発性メモリーと、
前記不揮発性メモリーに記憶されている制御プログラムに対する初期処理を定めた起動モードとしての、前記不揮発性メモリーから制御プログラムを読み出して実行する通常モードと前記不揮発性メモリーに記憶されている制御プログラムを書き換える書き換えモードと前記不揮発性メモリーに記憶されている制御プログラムを実行可能に復旧する復旧モードのうち、何れか一つの起動モードを示すデータである起動フラグを前記不揮発性メモリーに記憶する起動フラグ設定部と、
前記起動フラグ設定部によって前記不揮発性メモリーに記憶された起動フラグを読み出して、当該起動フラグが示す起動モードで定められた前記不揮発性メモリーに記憶されている制御プログラムに対する初期処理を実行する実行制御部と、
当該画像形成装置に接続された外部記憶媒体に記憶されている制御プログラムを取得するプログラム取得部と、
前記プログラム取得部によって取得された制御プログラムを用いて前記不揮発性メモリーに記憶されている制御プログラムを書き換えるプログラム書換部と、
前記プログラム取得部によって取得された制御プログラムを用いて前記不揮発性メモリーに記憶されている制御プログラムを復旧するプログラム復旧部と、
を備え、
前記実行制御部は、
前記通常モードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記不揮発性メモリーから制御プログラムを読み出して実行し、
前記書き換えモードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記起動フラグ設定部に前記復旧モードを示す起動フラグを前記不揮発性メモリーに記憶させた後、前記プログラム書換部に制御プログラムの書き換えを実行させ、当該書き換えが成功したものと判断すると、前記起動フラグ設定部に前記通常モードを示す起動フラグを前記不揮発性メモリーに記憶させ、当該書き換えが失敗したものと判断すると、前記不揮発性メモリーに記憶されている前記復旧モードを示す起動フラグを維持し、
前記復旧モードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記プログラム復旧部に制御プログラムの復旧を実行させ、当該復旧が成功したものと判断すると、前記起動フラグ設定部に前記通常モードを示す起動フラグを前記不揮発性メモリーに記憶させ、当該復旧が失敗したものと判断すると、前記不揮発性メモリーに記憶されている前記復旧モードを示す起動フラグを維持し、
前記復旧モードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記プログラム復旧部に制御プログラムの復旧を実行させる前に、前記プログラム取得部に制御プログラムを取得させて、当該制御プログラムが不正であるか否かを判断し、不正と判断すると、前記プログラム復旧部に制御プログラムの復旧を実行させずに、前記不揮発性メモリーに記憶されている前記復旧モードを示す起動フラグを維持する画像形成装置。
An image forming apparatus capable of executing a control program,
A non-volatile memory for storing a control program executable by the image forming apparatus;
Rewrite the control mode stored in the non-volatile memory and the normal mode in which the control program is read and executed from the non-volatile memory as the start-up mode that defines the initial processing for the control program stored in the non-volatile memory. A start flag setting unit that stores a start flag, which is data indicating any one start mode, in a rewrite mode and a recovery mode that recovers the control program stored in the non-volatile memory so as to be executable. When,
Execution control for reading the activation flag stored in the non-volatile memory by the activation flag setting unit and executing initial processing on the control program stored in the nonvolatile memory determined in the activation mode indicated by the activation flag And
A program acquisition unit for acquiring a control program stored in an external storage medium connected to the image forming apparatus;
A program rewriting unit for rewriting the control program stored in the nonvolatile memory using the control program acquired by the program acquisition unit;
A program recovery unit that recovers the control program stored in the nonvolatile memory using the control program acquired by the program acquisition unit;
With
The execution control unit
When the startup flag indicating the normal mode is stored in the nonvolatile memory, the control program is read from the nonvolatile memory and executed,
When the start flag indicating the rewrite mode is stored in the nonvolatile memory, the start flag indicating the recovery mode is stored in the nonvolatile memory in the start flag setting unit, and then the control program is stored in the program rewriting unit. When the rewriting is performed and it is determined that the rewriting is successful, the start flag setting unit stores the start flag indicating the normal mode in the nonvolatile memory, and when it is determined that the rewrite has failed, the nonvolatile flag is stored. Maintaining a start flag indicating the recovery mode stored in the memory,
When a startup flag indicating the recovery mode is stored in the non-volatile memory, the control recovery is executed by the program recovery unit, and when it is determined that the recovery is successful, the normal flag is set in the startup flag setting unit. When the startup flag indicating the mode is stored in the nonvolatile memory and it is determined that the recovery has failed, the startup flag indicating the recovery mode stored in the nonvolatile memory is maintained ,
When the activation flag indicating the recovery mode is stored in the nonvolatile memory, the control program is acquired by the program acquisition unit before the program recovery unit executes recovery of the control program. An image that determines whether it is illegal, and if it is determined to be illegal, maintains an activation flag indicating the recovery mode stored in the nonvolatile memory without causing the program recovery unit to execute recovery of the control program Forming equipment.
前記実行制御部は、前記書き換えモードを示す起動フラグが前記不揮発性メモリーに記憶されている場合、前記起動フラグ設定部に前記復旧モードを示す起動フラグを前記不揮発性メモリーに記憶させる前に、前記プログラム取得部に制御プログラムを取得させて、当該制御プログラムが不正であるか否かを判断し、不正と判断すると、前記プログラム書換部に制御プログラムの書き換えを実行させずに、前記起動フラグ設定部に前記通常モードを示す起動フラグを前記不揮発性メモリーに記憶させる請求項1に記載の画像形成装置。
When the activation flag indicating the rewrite mode is stored in the nonvolatile memory, the execution control unit is configured to store the activation flag indicating the recovery mode in the nonvolatile memory before the activation flag setting unit stores the activation flag. Let the program acquisition unit acquire a control program, determine whether the control program is illegal, and if it is determined to be illegal, the program rewriting unit does not execute rewriting of the control program, and the activation flag setting unit The image forming apparatus according to claim 1, wherein a startup flag indicating the normal mode is stored in the nonvolatile memory.
JP2011018519A 2011-01-31 2011-01-31 Image forming apparatus Active JP5439400B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011018519A JP5439400B2 (en) 2011-01-31 2011-01-31 Image forming apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011018519A JP5439400B2 (en) 2011-01-31 2011-01-31 Image forming apparatus

Publications (2)

Publication Number Publication Date
JP2012159965A JP2012159965A (en) 2012-08-23
JP5439400B2 true JP5439400B2 (en) 2014-03-12

Family

ID=46840461

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011018519A Active JP5439400B2 (en) 2011-01-31 2011-01-31 Image forming apparatus

Country Status (1)

Country Link
JP (1) JP5439400B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6482211B2 (en) * 2014-09-03 2019-03-13 キヤノン株式会社 Information processing apparatus, control method thereof, and program

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002157139A (en) * 2000-11-22 2002-05-31 Canon Inc Electronic device, image reader, and rewriting method for nonvolatile memory
JP3854960B2 (en) * 2003-01-31 2006-12-06 キヤノン株式会社 Information processing apparatus and information processing method
JP2005215841A (en) * 2004-01-28 2005-08-11 Mitsubishi Electric Corp Cellular phone terminal device with software correcting function
JP4945788B2 (en) * 2007-11-30 2012-06-06 株式会社東芝 Communication adapter
JP5113700B2 (en) * 2008-09-24 2013-01-09 株式会社日立ソリューションズ Firmware update apparatus and method

Also Published As

Publication number Publication date
JP2012159965A (en) 2012-08-23

Similar Documents

Publication Publication Date Title
JP5439400B2 (en) Image forming apparatus
JP6536186B2 (en) Image forming apparatus, image forming remote control system and image forming remote control method
JP2010107882A (en) Image forming apparatus
JP2012234330A (en) Image forming device and program updating method
JP5622788B2 (en) Image forming apparatus
JP4168719B2 (en) Information processing apparatus, image forming apparatus, and program update method
JP2010151883A (en) Image forming apparatus and image forming method
JP5091968B2 (en) Image display apparatus and image forming apparatus
JP5383722B2 (en) Information processing device
JP2006231858A (en) Image forming apparatus
JP2006021868A (en) Image forming system
JP2005074644A (en) Image forming apparatus, information processing system and method
JP5613617B2 (en) Image forming apparatus and program updating method
JP2015090508A (en) Electronic device
JP2013131951A (en) Image forming apparatus
JP6248910B2 (en) Image processing apparatus and program backup method
JP2010103766A (en) Image forming apparatus
JP2010103722A (en) Image forming apparatus
JP2012234328A (en) Electronic apparatus and program update method
JP2012234327A (en) Electronic apparatus and program update method
JP5865816B2 (en) Image forming apparatus
JP4286112B2 (en) Processing condition setting apparatus and image forming apparatus
JP5538040B2 (en) Image forming apparatus and image forming apparatus main body
JP6213438B2 (en) Image forming apparatus
JP6281446B2 (en) Image forming apparatus

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20121221

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130821

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20130827

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20131001

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20131024

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20131216

R150 Certificate of patent or registration of utility model

Ref document number: 5439400

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150