Image forming apparatus

The image forming apparatus addresses failed firmware updates by using a recovery program to restore the main program, ensuring normal operation even after update failures.

JP2026185340APending Publication Date: 2026-11-27BROTHER KOGYO KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2025082388
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies do not address the issue of recovering from a failed printer firmware update.

Method used

An image forming apparatus with a non-volatile memory and a controller that determines the presence of a correct main program, allowing it to operate in normal mode and initiate updates, restarting the update process if necessary, and using a recovery program to restore the main program after a failure.

Benefits of technology

Enables the restoration of the correct main program even after a failed update, ensuring the apparatus can operate normally.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185340000001_ABST
    Figure 2026185340000001_ABST
Patent Text Reader

Abstract

This technology provides a way to restore the correct main program if the main program fails to update properly. [Solution] When the MFP11 is started up after the update process, if the CPU21 determines that the correct main program 35 is not stored in the flash ROM42, it will redo the update process. In the redo of the update process, the CPU21 receives a new update main program 35' via LANIF29 according to the recovery program 34 stored in the flash ROM42, and after completing the update of the main program 35 stored in the flash ROM42 to the new update main program 35', it is possible to restart the MFP11.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a technology related to updating firmware of an image forming apparatus.

Background Art

[0002] Patent Document 1 describes a technology for updating (or upgrading) printer firmware with update firmware downloaded from a server to a PC.

Prior Art Documents

Patent Documents

[0003]

Patent Document 1

Summary of the Invention

Problems to be Solved by the Invention

[0004] However, Patent Document 1 does not describe a case where printer firmware update fails.

[0005] An object of the present application is to provide a technology that enables recovery to a correct main program when the main program update fails.

Means for Solving the Problems

[0006] To achieve the above objective, the image forming apparatus described in the embodiment is an image forming apparatus comprising a non-volatile memory, a communication interface, and a controller, wherein the controller determines whether the correct main program is stored in the non-volatile memory when the image forming apparatus is started, and if it determines that the correct main program is stored in the non-volatile memory, it operates the image forming apparatus in normal mode by executing processing according to the main program stored in the non-volatile memory, and the image forming apparatus in normal mode is capable of performing image forming processing, and the processing according to the main program includes update processing, and the update processing is the process of receiving a new main program via the communication interface and updating the main program stored in the non-volatile memory with the new main program, and in the update processing the controller receives from the source of the new main program The system is characterized by the following: first, a recovery program is stored in non-volatile memory; then, the update of the main program stored in the non-volatile memory to a new main program is initiated; if it is determined that the correct main program is not stored in the non-volatile memory when the image forming apparatus is started after the update process is completed, the update process is restarted; in the restarted update process, the new main program is received via the communication interface according to the recovery program stored in the non-volatile memory; and after the update of the main program stored in the non-volatile memory to the new main program is completed, the image forming apparatus can be restarted; and when the image forming apparatus is restarted after the restarted update process, the system can be operated in normal mode by executing processing according to the new main program stored in the non-volatile memory as a result of the restarted update process. [Effects of the Invention]

[0007] According to the image forming apparatus described in the embodiment, if the main program is not updated properly, it is possible to restore it to the correct main program. [Brief explanation of the drawing]

[0008] [Figure 1] This is a block diagram of a printing system according to one embodiment. [Figure 2] This is a sequence diagram of the firmware update process. [Figure 3] This flowchart shows the steps for the MFP startup process. [Figure 4] This is a flowchart showing the steps of the main program. [Figure 5] This is a flowchart showing the steps of the recovery program. [Figure 6] This figure shows an example of the progression of firmware updates. [Figure 7] This figure shows an example of a screen displayed in the MFP's user interface. [Figure 8] This is a sequence diagram of the recovery process when the firmware update process fails at a certain point. [Figure 9] This is a sequence diagram of the recovery process, following Figure 8. [Figure 10] This is a sequence diagram of the recovery process in case the firmware update process fails at another time. [Figure 11] This is a sequence diagram of the recovery process following Figure 10. [Figure 12] This is a sequence diagram of the recovery process in case the firmware update process fails at any other time. [Figure 13] This is a sequence diagram of the recovery process following Figure 12. [Figure 14] This is a sequence diagram of the USB recovery process. [Modes for carrying out the invention]

[0009] The embodiments of this application will be described in detail below with reference to the drawings.

[0010] Figure 1 shows a printing system 10 according to one embodiment. As shown in Figure 1, the printing system 10 includes an MFP (Multifunction Peripheral) 11 and a terminal device 12. The MFP 11 is an example of an image forming apparatus. The MFP 11 includes a CPU 21, memory 40, a printing engine 23, a reading engine 25, a fax engine 26, a user IF 27, a USB IF 28, and a LAN IF 29. Each component 21, 23, 25-29, and 40 can communicate with each other via a bus 31. The CPU 21 performs processing according to the firmware 33 in the memory 40. The CPU 21 is an example of a controller. "IF" is an abbreviation for Interface. The USB IF 28 and LAN IF 29 are examples of communication interfaces. The USB IF 28 is also an example of a local interface. The LAN IF 29 is also an example of a network interface.

[0011] The printing engine 23 prints an image onto a sheet. The sheet can be, for example, recording paper or an OHP sheet. The printing engine 23 can be configured to print using an inkjet method or an electrophotographic method. The reading engine 25 is equipped with a reading sensor that reads an image from the original document and controls the reading sensor to read the image from the original document. The reading sensor can be, for example, a CIS or a CCD. CIS is an abbreviation for Contact Image Sensor. CCD is an abbreviation for Charge-Coupled Device. The fax engine 26 sends and receives fax data to and from other facsimile devices via a telephone line.

[0012] The user IF 27 includes, for example, a touch panel, push button switches, and the like, and receives operation inputs from the user and displays information to the user. The user IF 27 is an example of a display. The USB IF 28 is an interface capable of communication conforming to the USB standard. USB is an abbreviation for Universal Serial Bus. The USB IF 28 can be connected to USB devices such as USB memories and other devices equipped with a USB IF via a USB cable 14. The other device is, for example, the terminal device 12. The LAN IF 29 is connected to the terminal device 12 and the network 15 via the router 13, for example. The communication connecting the MFP 11 and the terminal device 12 may be wired communication or wireless communication.

[0013] The memory 40 is composed of, for example, a RAM 41, a flash ROM 42, and an E2PROM 43. The flash ROM 42 is an example of a non-volatile memory. The memory 40 may further include an HDD, an SSD, or the like.

[0014] The RAM 41 is used as a work area from which various control programs are read and a storage area for temporarily storing a recovery activation flag 41A. The CPU 21 expands the firmware 33 read from the flash ROM 42 into the RAM 41. The CPU 21 controls each unit of the MFP 11 while storing in the RAM 41 processing results according to the firmware 33 expanded in the RAM 41 and the operation input from the user IF 27. The role of the recovery activation flag 41A will be described later.

[0015] The flash ROM 42 stores firmware 33. The firmware 33 includes a main program 35, main data 36, and a boot loader 37.

[0016] The MFP11 operates in normal mode when the CPU21 executes the main program 35. The main program 35 is a control program that performs printing, scanning, fax sending and receiving, and MFP11 configuration. The main data 36 contains various setting values ​​that the CPU21 references when executing the main program 35. The main program 35 also includes an update program 35A and a recovery program 35B. The update program 35A is a program for updating the main program 35 and the main data 36. The update is performed starting with the main program 35, and once the update of the main program 35 is complete, the update of the main data 36 begins. Therefore, it is possible that the update of the main program 35 is successful, but the update of the main data 36 fails. The recovery program 35B is a program that restarts the update from the main data 36 when the update of the main data 36 fails.

[0017] The boot loader 37 is a program executed by the CPU 21 when the MFP11 starts up. The boot loader 37 includes the USB recovery program 37A. When the CPU 21 executes the USB recovery program 37A, the MFP11 operates in recovery mode. The USB recovery program 37A is a program that causes the MFP11 to perform recovery operations. During the recovery operation, the USB recovery program 37A restricts the functions of the MFP11, for example, by displaying the text "Recovery Mode in Progress" to the user IF 27. Furthermore, the USB recovery program 37A does not accept any input from the user IF 27 during the recovery operation. In addition, the recovery program 37A does not perform communication via LANIF 29, and only performs communication via USBIF 28.

[0018] The E2PROM 43 stores the FW update phase flag 43A and the self-recovery retry counter 43B. FW is an abbreviation for Firmware. The roles of the FW update phase flag 43A and the self-recovery retry counter 43B will be described later.

[0019] Note that the medium for storing firmware 33 is not limited to the ROMs 42 and 43, RAM 41, HDD, etc., built into the MFP11. The medium for storing firmware 33 may be any storage medium that is readable and writable by a computer. A storage medium that is readable by a computer is a non-transitory medium. In addition to the examples above, non-transitory media also include storage media such as CD-ROMs and DVD-ROMs. Furthermore, non-transitory media are also tangible media. On the other hand, electrical signals that carry programs downloaded from servers on the internet are computer-readable signal media. However, electrical signals that carry programs are not included in non-transitory computer-readable storage media.

[0020] Furthermore, the terminal device 12 is, for example, a personal computer. A personal computer will be abbreviated as "PC" below. Note that the terminal device 12 is not limited to a PC, but may also be other information processing terminals such as smartphones or tablet devices. The terminal device 12 is equipped with a CPU 51, memory 52, LCD 53, input IF 55, USB IF 58, and LAN IF 59. Each component 51-53, 55, 58, and 59 is capable of communicating with each other via the bus 61.

[0021] Memory 52 stores the OS 63 and the update application 64. OS 63 is a program that comprehensively controls the terminal device 12 and provides basic functions and services to application programs such as the update application 64. OS 63 is, for example, the Windows® operating system. However, OS 63 is not limited to Windows®. OS 63 may also be MacOS®, Linux®, Android®, iOS®, etc.

[0022] Furthermore, the update application 64 is a program provided by, for example, the MFP11 vendor. The update application 64 is a program that performs USB communication with the MFP11 during recovery operation and updates the main program 35 and main data 36 of the firmware 33. The memory 52 also includes a non-volatile storage area 65. The non-volatile storage area 65 is, for example, a storage area of ​​a hard disk or SSD.

[0023] LCD53 functions as a display device that displays various information from the terminal device 12. Note that the display device of the terminal device 12 is not limited to an LCD; it may be other display devices such as an organic EL display. Input IF55 is, for example, an input device such as a keyboard or mouse. Note that the input IF55 of the terminal device 12 is not limited to a keyboard or mouse; it may be, for example, a touch panel.

[0024] A server 17 is connected to network 15. Network 15 is, for example, the internet. Note that network 15 is not limited to a WAN such as the internet, but may also be a LAN. Server 17 is, for example, a server managed by the vendor of terminal device 12. Server 17 stores update firmware 33', a driver installer 71, and a product database 74. Server 17 stores update firmware 33' corresponding to MFP 11. Update firmware 33' is basically the latest firmware corresponding to MFP 11. Update firmware 33' may not be the latest firmware. Update firmware 33' includes an update main program 35', update main data 36', and a recovery program 34. The update main program 35' includes an update program 35A' and an update recovery program 35B'. The recovery program 34 is a program that restarts the update of the main program 35 when the update of the main program 35 by the main program 35' fails. The driver installer 71 is an installer for installing a printer driver 72 on the terminal device 12 to perform communication with the MFP 11 via LANIF29 or USBIF28. The printer driver 72 is, for example, a device driver provided by the MFP 11 vendor. The printer driver 72 is a program that sends print commands from the terminal device 12 to the MFP 11 and performs configuration processing for the MFP 11.

[0025] The printing system 10 is a system that can print from the terminal device 12 to the MFP 11 and perform printing and other operations by installing the printer driver 72 on the terminal device 12. Note that the scanner driver for instructing scanning may be installed at the same time as the printer driver 72. Application programs for instructing fax transmission may also be installed at the same time as the printer driver 72. Alternatively, the scanner driver and other components may be installed on the MFP 11 in a separate process from the printer driver 72 installation.

[0026] Next, based on Figures 2 to 14, the firmware update process performed by the MFP 11 in cooperation with the server 17 or terminal device 12 will be described. Figure 6(f) shows the state after the firmware update of 33 has been completed. In Figure 6(f), the updated area is marked with a diagonal line. The area that is not marked with a diagonal line, that is, the area where the boot loader 37 is stored, is not updated. Therefore, updating the firmware 33 means updating everything in the firmware 33 except the boot loader 37. Everything except the boot loader 37 is the main program 35 and the main data 36. In the example in Figure 6(f), the main program 35 is updated with the main program 35' for update, and the main data 36 is updated with the main data 36' for update.

[0027] Figure 2 is a sequence diagram showing the process when the firmware update is completed successfully. Figures 8 and 9, 10 and 11, and 12 and 13 are sequence diagrams showing the process when the firmware update is not completed successfully. The sequence diagrams in Figures 8 and 9, 10 and 11, and 12 and 13 show different timings in which the firmware update fails due to the MFP11 being powered off. In other words, "power off" in Figures 8 to 13 can be said to illustrate the timing in which the firmware update fails. The cause of failure in the firmware update of 33 is not limited to the MFP11 being powered off. For example, a cause of failure in the firmware update of 33 could be that the power supply to the MFP11 is interrupted by a method other than turning off the power. A cause of failure in the firmware update of 33 could also be that communication between the MFP11 and the server 17 is disrupted. Figure 14 is a sequence diagram of the USB recovery process. Note that the processing content and sequence shown in Figures 2 and 8-14 are examples only. Furthermore, MFP11 and terminal device 12 can communicate via LANIF29,59 and USBIF28,58. Each step in the sequence diagrams in Figures 2 and 8-14, and each step in the flowcharts in Figures 3-5, are simply denoted as "S".

[0028] Furthermore, each sequence diagram and each flowchart basically represents the processing of CPUs 21, 51, etc., in accordance with instructions written in firmware 33, update application 64, etc. That is, processes such as "reception," "request," "execution," "acquisition," "decision," and "instruction" in the following explanation represent the processing of CPUs 21, 51, etc. Processing by CPUs 21, 51, etc., also includes hardware control. In the following explanation, for example, the processing of CPUs 21, 51, etc., in accordance with instructions written in the program may be described using abbreviated language. For example, the statement "MFP11 acquires main program 35' via LANIF29" may mean "MFP11 acquires main program 35' by executing update program 35A for main program 35 with CPU 21 and controlling LANIF29." The same applies to terminal device 12 and server 17. In addition, the processing of CPUs 21, 51, etc., in accordance with instructions written in the program may be described with the program name as the main focus, such as "the program executes."

[0029] Furthermore, the term "acquisition" in this disclosure is used in a sense that does not require a request. That is, the process of MFP11 etc. receiving data without a request is also included in the concept of "MFP11 etc. acquiring data." Also, "data" in this application is represented by a bit sequence that can be read by a computer. Data that has the same substantial meaning but a different format will be treated as the same data. The same applies to "information" in this application. Also, "instructing" is a concept that indicates that instructions are being given to the recipient. Information indicating that instructions are being given will also be simply referred to as "instructions."

[0030] In Figure 2, at S1, when MFP11 is powered on, the CPU 21 executes the boot loader 37 and starts the MFP startup process (S10). Note that "powered on" is a concept that includes powering on by restarting MFP1. For example, the user powers on MFP11 while it is connected to network 15 via LANIF 29 and router 13.

[0031] Figure 3 shows the detailed procedure for the MFP startup process. Note that corresponding processes in Figures 2 and 3 are given the same step numbers. However, the process in Figure 2 may be more detailed than the process in Figure 3, and vice versa. In Figure 3, the CPU 21 first performs a tamper check on the main program 35 (S11). Since the main program 35 has, for example, an electronic signature attached, the CPU 21 performs a tamper check on the main program 35 based on the electronic signature. Note that the method of tamper check is not limited to the method based on the electronic signature; other methods may be used. This is because it is sufficient to know whether or not the main program 35 has been tampered with. Now, we are describing the case when the firmware update process has been completed successfully, so in S11, the CPU 21 determines that there has been "no tampering".

[0032] Next, the CPU 21 performs a tampering check on the main data 36 (S12). The method for the tampering check in S12 is the same as the method for the tampering check in S11. The CPU 21 determines in S12 that there is "no tampering" and resets the self-recovery retry counter 43B to, for example, "0" (S13). The self-recovery retry counter 43B is a counter that counts the number of times the recovery program has attempted recovery.

[0033] Next, CPU 21 clears the recovery boot flag 41A (S14). Clearing the recovery boot flag 41A specifically means setting the recovery boot flag 41A to "0". Clearing the recovery boot flag 41A specifically means setting the recovery boot flag 41A to "0". The recovery boot flag 41A is a flag that instructs CPU 21 to start the recovery program 34.

[0034] Next, the CPU 21 loads the main program 35 onto the RAM 41 (S15) and then starts the main program 35 (S16). Figure 4 shows part of the main processing procedure after the main program 35 has started. In Figure 4, the CPU 21 determines whether the recovery startup flag 41A is set, that is, whether the recovery startup flag 41A = 1 (S31). Currently, the recovery startup flag 41A = 0, so in S31 the CPU 21 determines "NO" and executes the normal mode initialization process (S32). The normal mode initialization process includes, for example, the process of initializing the print engine 23, the reading engine 25, the fax engine 26, and the LAN IF 29 to a usable state. The normal mode initialization process also includes the process of displaying an initial screen, for example, the home screen, to the user IF 27. Then, the CPU 21 starts the MFP 11 in normal mode (S33). When started in normal mode, the MFP11 performs normal operations, including printing using the print engine 23 and scanning documents using the scan engine 25.

[0035] Returning to Figure 2, let's assume that the firmware update execution confirmation screen 27A shown in Figure 7(a) is displayed on the user IF 27 during the execution of the main program 35 after processing in S16. The firmware update execution confirmation screen 27A may hereafter be referred to as the confirmation screen 27A. The confirmation screen 27A may be automatically displayed on the user IF 27 by the server 17 instructing the MFP 11 when it obtains new update firmware 33'. Alternatively, the MFP 11 may query the server 17 to see if new update firmware 33' has been released. If the server 17 receives a response that new update firmware 33' has been released, the MFP 11 may display the confirmation screen 27A on the user IF 27. Furthermore, the confirmation screen 27A may not be displayed on the user IF 27 suddenly, but rather in response to user operation.

[0036] The confirmation screen 27A displays the message "Do you want to perform the firmware update?" as shown in Figure 7(a). Furthermore, the confirmation screen 27A displays a Yes button 27A1 and a No button 27A2. When the Yes button 27A1 is pressed, the CPU 21 determines that the firmware update operation has been accepted (S2 in Figure 2). Then, in S15, the CPU 21 starts executing the update program 35A within the main program 35 that was deployed on RAM 41.

[0037] When update program 35A is started, CPU 21 checks with server 17 to determine if a firmware update is necessary (S3). Specifically, CPU 21 sends, for example, the model name of MFP11 and the current version of firmware 33 to server 17. Server 17 compares the version of the update firmware 33′ with the current version of firmware 33 of MFP11. If the version of the update firmware 33′ is newer than the version of firmware 33, it sends a response indicating that an update firmware is available. In S301, server 17 sends a response indicating that an update firmware is available to MFP11.

[0038] The MFP11 sends a request to the server 17 to receive the update firmware (S4). In response to the request from the MFP11, the server 17 sends the update firmware 33' to the MFP11 (S302). The MFP11 receives the update firmware 33' from the server 17 and temporarily stores it in the RAM 41. Figure 6(a) shows the update firmware 33' temporarily stored in the RAM 41. When the update firmware 33' is stored in the server 17, the recovery program 34 is stored after the main update data 36'. On the other hand, when the update firmware 33' is stored in the RAM 41, the recovery program 34 is stored before the main update program 35'. The reason for changing the storage order is that the recovery program 34 becomes the first target of processing by the CPU 21 after the temporary storage of the update firmware 33'. However, the storage order may be the same as the order in which the update firmware 33' is stored in the server 17.

[0039] Next, the CPU 21 of the MFP11 updates the FW update phase flag 43A to "Start writing recovery program" (S101). The FW update phase flag 43A is a flag that indicates multiple operating states and consists of multiple bits, for example, 8 bits. Then, the CPU 21 writes the recovery program 34 to the area of ​​the main data 36 (S102). If the writing is successful (S103), the CPU 21 updates the FW update phase flag 43A to "Start writing main program" (S104). Figure 6(b) shows the memory state of the firmware 33 area before the recovery program 34 is written to the area of ​​the main data 36. On the other hand, Figure 6(c) shows the memory state of the firmware 33 area after the recovery program 34 has been written to the area of ​​the main data 36. As shown in Figure 6(c), the recovery program 34 is stored in a part of the area of ​​the main data 36.

[0040] Returning to Figure 2, the CPU 21 then writes the main program 35' for the update to the area of ​​the main program 35 (S105). If the write is successful (S106), the CPU 21 updates the FW update phase flag 43A to "Main data writing started" (S107). Figure 6(d) shows the state in which the area of ​​the main program 35 has been rewritten with the main program 35' for the update. Then, the CPU 21 writes the main data 36' for the update to the area of ​​the main data 36 (S108). If the write is successful (S109), the CPU 21 updates the FW update phase flag 43A to "FW update finished" (S110). Figure 6(f) shows the state in which the firmware 33 update is complete, as described above. The main program 35' after the update shows the main program after the main program 35 before the update has been updated with the main program 35' for the update. The updated main data 36' represents the main data after the original main data 36 has been updated with the updated main data 36'. Then, the CPU 21 terminates the execution of the update program 35A.

[0041] Next, the CPU 21 restarts the MFP 11 (S111). Similar to the process in S10, the CPU 21 executes the boot loader 37 to start the MFP startup process. The CPU 21 executes the updated firmware (S112). As a result of executing the updated firmware, the MFP 11's recovery startup flag 41A is "0", so it performs the normal mode initialization process, starts up in normal mode, and performs image formation processes such as printing (S113). Figure 6(f) shows the state after the firmware 33 update is complete, as described above. Upon restarting in S111, the CPU 21 loads the updated main program 35' onto the RAM 41. The CPU 21 executes the updated main program 35' loaded onto the RAM 41, and performs various processes such as printing while appropriately referring to the updated main data 36'.

[0042] Figures 8 and 9 are sequence diagrams of the recovery process when the firmware update process fails at a certain point. This point is during the execution of the update program 35A within the main program 35 deployed on RAM 41. The cause of the failure is, for example, that the MFP11's power is turned off. In the sequence diagrams of Figures 8 and 9, the same step numbers are used for processes that are the same as those in the sequence diagram of Figure 2, and explanations of the processes are omitted as appropriate.

[0043] In Figure 8, while the CPU 21 is writing the recovery program 34 to the main data area 36 (S102), the power to the MFP 11 is turned off (S120). After the power to the MFP 11 is turned off, when the power to the MFP 11 is turned on (S1), the CPU 21 starts the MFP startup process (S10).

[0044] In Figure 3, the CPU 21 determines in S11 that there has been "no tampering". When processing proceeds to S11, no rewriting has been performed on the main program 35 of the firmware 33. Therefore, unless the main program 35 is damaged due to a failure of the MFP 11 or the like, the tampering check of the main program 35 will not determine that there has been "tampering". Thus, the CPU 21 determines in S11 that there has been "no tampering" and proceeds to S12.

[0045] In S12, the CPU 21 checks for tampering with the main data 36. When processing proceeds to S12, a portion of the recovery program 34 has been written to a part of the main data 36 area. The power off in S120 occurs while the recovery program 34 is being written to the main data 36 area in S102. Therefore, the CPU 21 determines in S12 that tampering has occurred and proceeds to S17. In S17, the CPU 21 determines whether the count value of the self-recovery retry counter 43B is less than the specified number of times. If the count value < specified number of times (S17: YES), the CPU 21 increments the self-recovery retry counter 43B (S18). Then, the CPU 21 sets the recovery startup flag 41A (S19). Specifically, setting the recovery startup flag 41A means setting the recovery startup flag 41A to "1".

[0046] Next, the CPU 21 loads the main program 35 onto the RAM 41 (S15) and then starts the main program 35 (S16). In Figure 4, the CPU 21 determines whether the recovery startup flag 41A is set, that is, whether the recovery startup flag 41A = 1 (S31). As mentioned above, the CPU 21 set the recovery startup flag 41A in S19, so in S31 it determines "YES" and proceeds to S34. In S34, the CPU 21 executes the recovery mode initialization process. The recovery mode initialization process includes the process of initializing USBIF28, LANIF29, etc., into a usable state. The recovery mode initialization process also includes the process of displaying, for example, the firmware recovery execution confirmation screen 27B shown in Figure 7(b) to the user IF27. The firmware recovery execution confirmation screen 27B may hereafter be referred to as the confirmation screen 27B.

[0047] Next, the CPU 21 waits until it is instructed to perform recovery (S35: NO). Assume that when the recovery mode initialization process in S34 is executed, the confirmation screen 27B shown in Figure 7(b) is displayed on the user IF 27. The confirmation screen 27B displays the message, "Do you want to perform firmware recovery?". The wording of the message displayed on the confirmation screen 27B is different from the wording of the message displayed on the confirmation screen 27A. Furthermore, the confirmation screen 27B displays a Yes button 27B1 and a No button 27B2. When the Yes button 27B1 is pressed, the CPU 21 determines that it has been instructed to perform recovery (S35: YES) and proceeds to S36. In S36, the CPU 21 starts the recovery program 35B within the main program 35 deployed on RAM 41.

[0048] Figure 5 shows the processing procedure of the recovery program 35B. In Figure 5, the CPU 21 first determines whether or not it is possible to communicate with the server 17 (S41). If communication is possible, the CPU 21 proceeds to S42; otherwise, the CPU 21 terminates the execution of the recovery program 35B. Now, assuming that communication with the server 17 is possible, the CPU 21 receives the update firmware 33' (S42). However, the interaction with the server 17 described above based on Figure 2 is omitted between S41 and S42. Specifically, this refers to processes S3, S301, S4, and S302 in Figure 2. Figure 9 shows the same processes S3, S301, S4, and S302 as in Figure 2.

[0049] Next, the CPU 21 reads the FW update phase flag 43A (S43). Then, the CPU 21 determines whether the FW update phase flag 43A indicates "Start writing main data" (S44). Currently, the FW update phase flag 43A = Start writing recovery program, so in S44, the CPU 21 determines "NO" and proceeds to S45. In S45, the CPU 21 determines whether the FW update phase flag 43A indicates "Start writing main program". Since the FW update phase flag 43A = Start writing recovery program, the CPU 21 determines "NO" in S45 and proceeds to S46. In S46, the CPU 21 writes the recovery program 34 to the main data 36 area in the same way as in S102. If the write is successful (S121 in Figure 9), the CPU 21 updates the FW update phase flag 43A to "Start writing main program" (S47).

[0050] Next, the CPU 21 writes the main program 35' for the update to the area of ​​the main program 35 (S48). If the write is successful (S122 in Figure 9), the CPU 21 updates the FW update phase flag 43A to "Main data writing started" (S49). Then, the CPU 21 writes the main data 36' for the update to the area of ​​the main data 36 (S50). If the write is successful (S123 in Figure 9), the CPU 21 updates the FW update phase flag 43A to "FW update finished" (S51). Then, the CPU 21 terminates the execution of the recovery program 35B.

[0051] Next, the CPU 21 restarts the MFP 11 (S111). Similar to the process in S10, the CPU 21 executes the boot loader 37 to start the MFP startup process. The CPU 21 then executes the updated firmware (S112). After executing the updated firmware, the MFP 11 performs the normal mode initialization process, starts up in normal mode, and performs image formation processes such as printing (S113). Figure 6(f) shows the state after the firmware 33 update is complete, as described above. Upon restarting in S111, the CPU 21 loads the updated main program 35' onto the RAM 41. The CPU 21 executes the updated main program 35', and performs various processes such as printing while appropriately referring to the updated main data 36'.

[0052] Figures 10 and 11 are sequence diagrams of the recovery process when the firmware update process fails at another time. The other time is a point in the execution of the update program 35A within the main program 35 deployed on RAM 41. However, the other time is a point in time that has progressed from a certain time mentioned above based on Figures 8 and 9. The cause of the failure is, for example, that the power to the MFP 11 has been turned off. In the sequence diagrams of Figures 10 and 11, the same step numbers are used for processes that are the same as those in the sequence diagrams of Figures 2, 8, and 9, and the explanation of the process is omitted as appropriate.

[0053] In Figure 10, while the CPU 21 is writing the update main program 35' to the area of ​​the main program 35 (S105), the power to the MFP 11 is turned off (S130). After the power to the MFP 11 is turned off, when the power to the MFP 11 is turned on (S1), the CPU 21 starts the MFP startup process (S10).

[0054] In Figure 3, the CPU 21 performs a tamper check on the main program 35, as described above (S11). When the process proceeds to S11, a portion of the area of ​​the main program 35 has been overwritten by a portion of the update main program 35'. Therefore, the CPU 21 determines in S11 that "tampering has occurred" and proceeds to S20. In S20, the CPU 21 performs a tamper check on the recovery program 34 written within the area of ​​the main data 36. In S103 in Figure 10, the writing of the recovery program 34 into the area of ​​the main data 36 was successful, so the CPU 21 determines in S20 that "no tampering has occurred". The CPU 21 proceeds from S20 to S21. In S21, the CPU 21 determines whether the count value of the self-recovery retry counter 43B is less than the specified number of times. If the count value is less than the specified number of attempts (S21: YES), the CPU 21 increments the self-recovery retry counter 43B (S22). Next, the CPU 21 loads the recovery program 34 written to the main data area 36 onto the RAM 41 (S23), and then starts the recovery program 34 (S24).

[0055] Figure 5 shows the processing steps of recovery program 35B, as mentioned above. Recovery program 34, which was started in S24, is the recovery program 34 included in the update firmware 33'. Therefore, recovery program 35B and recovery program 34 are different programs. However, there is no difference between the processing performed by recovery program 35B and the processing performed by recovery program 34. Therefore, it can also be said that the processing of recovery program 35B in Figure 5 is the processing of recovery program 34. Hereafter, the step numbers of the processing described in Figure 5 will be used for the processing of recovery program 34 as well.

[0056] As the recovery program 34 processes, the CPU 21 reads the FW update phase flag 43A (S43). The CPU 21 then determines whether the FW update phase flag 43A indicates "Start writing main data" (S44). When the MFP 11 is powered off at S130 in Figure 10, the FW update phase flag 43A is updated to "Start writing main program". Therefore, the CPU 21 determines "NO" in S44 and proceeds to S45. In S45, the CPU 21 determines whether the FW update phase flag 43A indicates "Start writing main program". The CPU 21 determines "YES" in S45, skips processes S46 and S47, and proceeds to S48. Processes S46 and S47 are skipped for the following reason: If at least process S46 is not skipped, the recovery program 34 will be written to the main data 36 area again while the recovery program 34 is running. This is to prevent the currently running recovery program 34 from being corrupted by rewriting it. When the process proceeds to S48, the CPU 21 executes each of the processes from S48 to S51 in sequence, and then terminates the execution of the recovery program 34. The explanations of each of the processes from S48 to S51 have been described above, so they will be omitted here.

[0057] Next, the CPU 21 restarts the MFP 11 (S111). Similar to the process in S10, the CPU 21 executes the boot loader 37 to start the MFP startup process. The CPU 21 then executes the updated firmware (S112). After executing the updated firmware, the MFP 11 performs the normal mode initialization process, starts up in normal mode, and performs image formation processes such as printing (S113). Figure 6(f) shows the state after the firmware 33 update is complete, as described above. Upon restarting in S111, the CPU 21 loads the updated main program 35' onto the RAM 41. The CPU 21 executes the updated main program 35' loaded onto the RAM 41, and performs various processes such as printing while appropriately referring to the updated main data 36'.

[0058] Figures 12 and 13 are sequence diagrams of the recovery process when the firmware update process fails at another time. The "other time" refers to a point in the process of starting the execution of the update program 35A within the main program 35 deployed on RAM 41. However, this "other time" is a point in time that is further along than the "other time" mentioned above based on Figures 10 and 11. The cause of the failure is, for example, that the power to the MFP 11 is turned off. In the sequence diagrams of Figures 12 and 13, the same step numbers are used for processes that are the same as those in the sequence diagrams of Figures 2 and 8 to 11, and the explanation of the process is omitted as appropriate.

[0059] In Figure 12, the CPU 21 is writing the main data 36' for update to the area of ​​main data 36 (S107) when the power to the MFP 11 is turned off (S140). Figure 6(e) shows the state in which a part of the area of ​​main data 36 has been overwritten with a part of the updated main data 36'. After the power to the MFP 11 is turned off, when the power to the MFP 11 is turned on (S1), the CPU 21 starts the MFP startup process (S10).

[0060] In Figure 3, the CPU 21 performs a tamper check on the main program 35, as described above (S11). When the process proceeds to S11, the entire area of ​​the main program 35 has been rewritten with the update main program 35'. Therefore, the CPU 21 determines in S11 that there has been "no tampering" and proceeds to S12. In S12, as described above, the CPU 21 performs a tamper check on the main data 36. When the process proceeds to S12, a portion of the area of ​​the main data 36 has been rewritten with a portion of the update main data 36'. Therefore, the CPU 21 determines in S12 that there has been "tampering" and proceeds to S17. In S17, the CPU 21 determines whether the count value of the self-recovery retry counter 43B is less than the specified number of times. If the count value < specified number of times (S17: YES), the CPU 21 increments the self-recovery retry counter 43B (S18). Then, CPU21 sets the recovery boot flag 41A (S19).

[0061] Next, the CPU 21 loads the main program 35' onto RAM 41 (S15) and then starts the main program 35' (S16). Note that the main program 35' is the main program after it has been overwritten with the update main program 35'. In Figure 4, the CPU 21 determines whether the recovery startup flag 41A is set, that is, whether the recovery startup flag 41A = 1 (S31). As mentioned above, the CPU 21 set the recovery startup flag 41A in S19, so in S31 it determines "YES" and proceeds to S34. In S34, the CPU 21 executes the recovery mode initialization process.

[0062] Next, CPU 21 waits until it is instructed to perform recovery (S35: NO). Assume that when the recovery mode initialization process in S34 is executed, the confirmation screen 27B in Figure 7(b) is displayed on user IF 27. When the Yes button 27B1 is pressed, CPU 21 determines that it has been instructed to perform recovery (S35: YES) and proceeds to S36. In S36, CPU 21 starts the recovery program 35B within the main program 35 deployed on RAM 41.

[0063] In Figure 5, as the recovery program 34 processes, the CPU 21 reads the FW update phase flag 43A (S43). The CPU 21 then determines whether the FW update phase flag 43A indicates "Main data writing started" (S44). When the MFP 11 is powered off in S140 in Figure 12, the FW update phase flag 43A is updated to "Main data writing started". Therefore, the CPU 21 determines "YES" in S44 and skips the processes in S46 to S49, proceeding to S50. The explanations for the processes in S50 and S51 have been given above and will be omitted here. The reason for skipping the processes in S46 to S49 is as follows: If at least the process in S48 is not skipped, the recovery program 35B' for updates will be written again while the updated recovery program 35B' is being executed. This is to prevent the currently running updated recovery program 35B' from becoming corrupted by rewriting the update recovery program 35B'.

[0064] Next, the CPU 21 restarts the MFP 11 (S111). Similar to the process in S10, the CPU 21 executes the boot loader 37 to start the MFP startup process. The CPU 21 then executes the updated firmware (S112). After executing the updated firmware, the MFP 11 performs the normal mode initialization process, starts up in normal mode, and performs image formation processes such as printing (S113). Figure 6(f) shows the state after the firmware 33 update is complete, as described above. Upon restarting in S111, the CPU 21 loads the updated main program 35' onto the RAM 41. The CPU 21 executes the updated main program 35' loaded onto the RAM 41, and performs various processes such as printing while appropriately referring to the updated main data 36'.

[0065] In the recovery program shown in Figure 5, if communication with the server 17 is not possible at step S41 (S41: NO), the CPU 21 terminates the execution of the recovery program. As mentioned above, the recovery program includes recovery program 34 and recovery programs 35B and 35B'. After terminating the execution of the recovery program, the CPU 21 restarts the MFP 11 (S111). Note that the configuration is not limited to the CPU 21 automatically restarting the MFP 11. For example, the MFP 11 may restart when the user turns the MFP 11's power from off to on.

[0066] When MFP11 restarts, CPU21 starts the MFP startup process in S10. Then, CPU21 executes the processes from S11 onwards in Figure 3. If it determines "NO" in S41 and terminates the execution of the recovery program, CPU21 does not execute the process in S51. Therefore, the FW update phase flag 43A is not updated to "FW update complete". Thus, it is determined that at least one of the main program 35 and the main data 36 has been tampered with.

[0067] If tampering is detected in S11 and again in S20, the CPU 21 proceeds to S25. In S25, the CPU 21 starts the USB recovery program 37A of the boot loader 37. The case in which the process in S25 is reached via S11 and S20 is described as Case 1. In Case 1, tampering is detected in the main program 35 tampering check and also in the recovery program 34 of the main data 36 area. In Case 1, there is no recovery program available to use for the recovery process.

[0068] On the one hand, if it is determined in S11 that "tampering has occurred" and in S20 that "no tampering has occurred", the CPU 21 proceeds to process S21. On the other hand, if it is determined in S11 that "no tampering has occurred" and in S12 that "tampering has occurred", the CPU 21 proceeds to process S17. In both S21 and S17, the CPU 21 determines whether the count value of the self-recovery retry counter 43B is less than the specified number of times. If the count value < specified number of times (S21: YES), the CPU 21 increments the self-recovery retry counter 43B (S22). Similarly, if the count value < specified number of times (S17: YES), the CPU 21 increments the self-recovery retry counter 43B (S18). After processing S22 and after processing S18, the CPU 21 starts the recovery program (S24, S36). The recovery program includes one of the following: recovery program 34, 35B, or 35B'.

[0069] Even if CPU21 starts any of the recovery programs 34, 35B, or 35B', If communication with server 17 remains impossible (S41: NO), the self-recovery retry counter 43B will be incremented in S18 or S22, and the startup of one of the recovery programs 34, 35B, or 35B' will be repeated. As the count value of the self-recovery retry counter 43B increases through the processing of S18 or S22, eventually the count value will be greater than or equal to the specified number of times. Therefore, either S17 will be judged as "NO", or S22 will be judged as "NO". Then, CPU 21 proceeds to S25 and starts the USB recovery program 37A of boot loader 37. The case in which the processing of S25 is reached via S11, S20, and S21 is described as Case 2. On the other hand, the case in which the processing of S25 is reached via S11, S12, and S17 is described as Case 3.

[0070] Figure 14 is a sequence diagram of the USB recovery process. The USB recovery process in Figure 14 shows the case where the process in S25 is executed according to Case 2. The USB recovery process in Figure 14 shows the flow of processing performed collaboratively by the MFP 11, the server 17, and the terminal device 12. In the sequence diagram of Figure 14, the same step numbers are used for processes that are the same as those in the sequence diagrams of Figures 2 and 8 to 11, and the explanation of the process is omitted as appropriate. Note that the control entities may be described as MFP 11, server 17, and terminal device 12. However, in reality, if it is MFP 11, the control is performed by the CPU 21 of MFP 11. If it is terminal device 12, the control is performed by the CPU 51 of terminal device 12, and if it is server 17, the control is performed by the CPU of server 17.

[0071] In Figure 14, when the MFP 11 is powered on (S1), the CPU 21 starts the MFP startup process (S10). It is assumed that before the power is turned on in S1, the MFP 11 and the terminal device 12 are connected via USBIF 28, USBIF 58, and USB cable 14.

[0072] In Figure 3, if the CPU 21 determines in S11 that "tampering has occurred," it proceeds to S20. In S20, as mentioned above, the CPU 21 performs a tampering check on the recovery program 34 written in the area of ​​the main data 36. If the CPU 21 determines in S20 that "no tampering has occurred," the CPU 21 determines whether the count value of the self-recovery retry counter 43B is less than the specified number of times (S21). If the count value of the self-recovery retry counter 43B is greater than or equal to the specified number of times, the CPU 21 determines "NO" in S21 and proceeds to S25. In S25, the CPU 21 starts the USB recovery program 37A of the boot loader 37. Case 2 is the case in which the process in S25 is reached via S11, S20, and S21, as mentioned above. In Case 2, the reason for starting the MFP startup process in S10 is that communication with the server 17 is impossible. In both Case 1 and Case 3, the factor that initiates the MFP startup process of S10 is the inability to communicate with Server 17. In other words, if communication with Server 17 is impossible, recovery using recovery programs 34, 35B, and 35B' becomes impossible. Therefore, recovery is performed using USB recovery program 37A. However, in Cases 2 and 3, the condition for recovery using USB recovery program 37A is that the number of times recovery using recovery programs 34, 35B, and 35B' becomes impossible exceeds a specified number.

[0073] Next, CPU 21 reads the USB configuration information from memory 40 (S150). By starting the USB recovery program 37A of the boot loader 37, CPU 21 functions as a recovery processing unit. The USB recovery program 37A is an example of a functional program that enables CPU 21 to function as a recovery processing unit.

[0074] Meanwhile, terminal device 12 executes a firmware update application (S201). Terminal device 12 exchanges data with MFP 11 and server 17 via the firmware update application. Terminal device 12 obtains USB configuration information read by MFP 11 from MFP 11 (S151). Then, based on the obtained USB configuration information, terminal device 12 communicates with MFP 11 via USB and requests information about the current firmware 33 from MFP 11 (S202). MFP 11 responds with information about firmware 33 in response to the information request from terminal device 12 (S152). Specifically, the information about firmware 33 includes the firmware version and the model name of MFP 11.

[0075] The terminal device 12 transmits information about firmware 33 obtained from the MFP 11 to the server 17 (S211). Based on the information about firmware 33 received from the terminal device 12, the server 17 determines whether or not the update firmware 33' has been released. If the update firmware 33' has been released, the server 17 responds to the terminal device 12 that the update firmware 33' has been released (S311). On the other hand, if the update firmware 33' has not been released, the server 17 responds to the terminal device 12 that it has not been released.

[0076] When terminal device 12 receives a response indicating that the update firmware 33' has been released, it sends a request to server 17 to receive the update firmware 33' (S212). In response to the request from terminal device 12, server 17 sends the update firmware 33' to terminal device 12 (S312).

[0077] The terminal device 12 transmits the update firmware 33' received from the server 17 to the MFP 11 and also issues an update instruction for firmware 33. It goes without saying that the transmission of the update firmware 33' and the update instruction are performed via USB communication.

[0078] When MFP11 receives the update firmware 33' and the update instruction from the terminal device 12, it executes the processes from S105 to S112. Since the processes from S105 to S112 are the same as the corresponding processes in the sequence diagram in Figure 2, a description of each process is omitted.

[0079] The terminal device 12 obtains USB configuration information of the MFP 11 from the MFP 11 that is running the updated firmware (S161). Based on the obtained USB configuration information, the terminal device 12 communicates with the MFP 11 via USB and requests information about the current firmware 33 from the MFP 11 (S221). The MFP 11 responds with information about firmware 33 in response to the information request from the terminal device 12 (S162). Based on the information about firmware 33 from the MFP 11, the terminal device 12 determines whether or not firmware 33 has been updated to the update firmware 33'. If firmware 33 has been updated to the update firmware 33', the terminal device 12 terminates the firmware update process (S222).

[0080] Figures 8 and 9 show the recovery process, which occurs when the firmware update process is interrupted while the recovery program 34 is being written to the main data area 36. Therefore, the recovery process is performed by having the CPU 21 execute the recovery program 35B from the main program 35 before the update.

[0081] On the other hand, the recovery process in Figures 10 and 11 shows a state where the firmware update process is interrupted while the area of ​​the main program 35 is being written. In other words, the recovery program 34 has finished writing to the area of ​​the main data 36. Therefore, the recovery process is performed by the CPU 21 executing the recovery program 34 that has been written to the area of ​​the main data 36.

[0082] Furthermore, the recovery process in Figures 12 and 13 shows a state where the firmware update process was interrupted while writing to the main data 36 area. In other words, there is a risk that part or all of the recovery program 34 written to the main data 36 area may have been overwritten by the update main data 36'. On the other hand, the writing of the update main program 35' to the main program 35 area is complete. Therefore, the recovery process is performed by having the CPU 21 execute the recovery program 35B' of the updated main program 35'.

[0083] Furthermore, if the tampering checks in S11 and S12 detect "tampering" more than the specified number of times, the USB recovery process shown in Figure 14 is executed. In the USB recovery process shown in Figure 14, the factor that triggers the MFP startup process in S10, i.e., the factor that triggers the USB recovery process, was the inability to communicate with server 17. However, the factor that triggers the USB recovery process is not limited to the inability to communicate with server 17. For example, it is possible that communication with server 17 is possible, but some kind of malfunction is occurring. This is because some kind of malfunction may occur, making recovery with recovery programs 34, 35B, and 35B' difficult.

[0084] In the printing system 10 of this embodiment, even if the recovery process by the update program 35A is interrupted under any circumstances, it is possible to restore to the correct firmware. Furthermore, in the recovery process by recovery programs 35B, 34, and 35B', if "tampering" is detected more than a specified number of times, recovery is possible via USB recovery.

[0085] Furthermore, unlike the USB recovery program 37A, the recovery program 34 can be used with LANIF29 enabled. In other words, the CPU 21 can exchange data with the server 17 via LANIF29 by executing the recovery program 34. Therefore, even if the firmware update process is interrupted midway, the recovery process can be easily executed if the recovery program 34 is stored in memory 40. However, since the data capacity of the recovery program 34 is larger than that of the USB recovery program 37A, it is difficult to keep the recovery program 34 stored in memory 40 at all times. Therefore, in the MFP11 of this embodiment, the recovery program 34 is temporarily stored in the main data area 36. Since the main data area 36 is ultimately updated during the firmware update process, the recovery program 34 does not constantly consume the capacity of memory 40. However, to address the possibility of the recovery program 34 becoming corrupted, a recovery program 35B similar to the recovery program 34 is stored in the main program 35.

[0086] As described above, the MFP11 of this embodiment includes a flash ROM 42, a LANIF 29, and a CPU 21. When the MFP11 is started up, the CPU 21 determines whether the correct main program 35 is stored in the flash ROM 42. If it determines that the correct main program 35 is stored in the flash ROM 42, the CPU 21 operates the MFP11 in normal mode by executing processing according to the main program 35 stored in the flash ROM 42. In normal mode, the MFP11 is capable of performing image forming processing.

[0087] The processing according to the main program 35 includes an update process. The update process involves receiving a new update main program 35' via LANIF29 and updating the main program 35 stored in the flash ROM 42 with the new update main program 35'. In the update process, the CPU 21 stores the recovery program 34 received from the source of the new update main program 35' in the flash ROM 42, and then begins updating the main program 35 stored in the flash ROM 42 with the new update main program 35'. If the CPU 21 determines that the correct main program 35 is not stored in the flash ROM 42 when the MFP 11 is started after the update process, it will restart the update process. In the restarted update process, it is possible to receive the new update main program 35' via LANIF29 according to the recovery program 34 stored in the flash ROM 42. After the update of the main program 35 stored in the flash ROM 42 with the received update main program 35' is complete, the MFP 11 can be restarted.

[0088] When the MFP11 is restarted after the update process has been redone, the CPU21 can operate the MFP11 in normal mode by executing a process according to the new update main program 35' stored in the flash ROM42.

[0089] Therefore, in the MFP11 of this embodiment, if the main program 35 is not updated properly, it is possible to restore it to the correct update main program 35'.

[0090] It should be noted that the present invention is not limited to the embodiments described above, and various modifications are possible without departing from the spirit of the invention.

[0091] (1) In the above embodiments, the recovery processes in Figures 10 and 11 are configured not to display the confirmation screen 27B in Figure 7(b) on the user IF27. On the other hand, the recovery processes in Figures 8 and 9, and Figures 12 and 13 are configured to display the confirmation screen 27B in Figure 7(b) on the user IF27. However, the recovery processes in Figures 8 and 9, and Figures 12 and 13 may also be configured not to display the confirmation screen 27B in Figure 7(b) on the user IF27. Furthermore, the recovery processes in Figures 10 and 11 may also be configured to display the confirmation screen 27B in Figure 7(b) on the user IF27.

[0092] (2) In the above embodiment, an MFP11 or other multifunction device was given as an example of an image forming apparatus, but it is not limited to a multifunction device. For example, the image forming apparatus may be a printer, fax machine, or scanner. Therefore, the image forming function of this disclosure is not limited to a printing function, but may also be a fax function or a scanner function. Furthermore, the multiple functions including the image forming function may include an image forming function such as a printing function, a fax function, or a scanner function, as well as other functions. Specifically, the other functions are not limited to image forming functions, but may be functions realized by executing the main program 35 of the firmware 33. Furthermore, the image forming system of this disclosure is not limited to a printing system, but may also be a scanning system capable of only scanning functions, or a fax system capable of only fax functions. Furthermore, the driver of this disclosure is not limited to a driver capable of executing multiple functions such as printer, scanner, and fax, but may also be a driver capable of executing only a print function or a driver capable of executing only a scan function.

[0093] (3) In the above embodiment, the CPU 21 is configured to execute the boot loader 37 and recovery programs 34 and 35B. However, the MFP 11 may have a CPU other than the CPU 21. The CPU other than the CPU 21 may execute the boot loader 37 and recovery program 37A. Also, in the above embodiment, the USB recovery program 37A is included in the boot loader 37. However, the USB recovery program may be stored separately from the boot loader 37. The boot loader 37 may be executed by a CPU other than the CPU 21, and the CPU 21 may execute the recovery program. Furthermore, in the above embodiment, the update program 35A is included in the main program 35. However, the update program 35A may be stored separately from the main program 35.

[0094] (4) In the above embodiment, LANIF29 was adopted as the communication interface. However, wireless LANIF or Bluetooth®IF may also be used as the communication interface.

[0095] (5) In the above embodiment, a CPU 21 was used as an example of a controller. However, the controller may be an ASIC or other logic integrated circuit, or a configuration in which the CPU, ASIC, and other logic integrated circuits cooperate may be used. [Explanation of Symbols]

[0096] 10…Printing system, 11…MFP, 12…Terminal device, 17…Server, 21…CPU, 23…Printing engine, 25…Reading engine, 26…FAX engine, 27…User interface, 28, 58…USB interface, 29, 59…LAN interface, 33…Firmware, 33'…Firmware for update, 34…Recovery program, 35…Main program, 35'…Main program for update, 35A…Update program, 35B…Recovery program, 36…Main data, 36'…Main data for update, 37…Boot loader, 37A…USB recovery program, 40…Memory, 41…RAM, 41A…Recovery boot flag, 42…Flash ROM, 43…E2PROM, 43A…FW update phase flag, 43B…Self-recovery retry counter, 72…Printer driver.

Claims

1. Non-volatile memory and Communication interface, Controller and An image forming apparatus comprising, The aforementioned controller, When the image forming apparatus is started, it is determined whether the correct main program is stored in the non-volatile memory. If it is determined that the correct main program is stored in the non-volatile memory, the image forming apparatus will operate in normal mode by executing processing according to the main program stored in the non-volatile memory, and the image forming apparatus in normal mode will be able to perform image forming processing. The processing according to the aforementioned main program includes update processing. The update process is a process for receiving a new main program via the communication interface and updating the main program stored in the non-volatile memory with the new main program. The aforementioned controller, In the update process, the recovery program received from the source of the new main program is stored in the non-volatile memory, and then the update of the main program stored in the non-volatile memory to the new main program is started. If, upon startup of the image forming apparatus after the update process has been performed, it is determined that the correct main program is not stored in the non-volatile memory, the update process is repeated. In the re-update process, the image forming apparatus can be restarted after receiving a new main program via the communication interface according to the recovery program stored in the non-volatile memory, and after completing the update of the main program stored in the non-volatile memory to the new main program. When the image forming apparatus is restarted after the update process has been redone, it is possible to operate the image forming apparatus in normal mode by executing the processing according to the new main program stored in the non-volatile memory as a result of the redo of the update process. An image forming apparatus characterized by the following features.

2. The image forming apparatus further, display, Equipped with, The aforementioned controller, When the aforementioned update process is redone, a message indicating that the update process is being redone is displayed on the display. The image forming apparatus according to feature 1.

3. The controller further, When performing the aforementioned update process, a message indicating that the update process is being performed is displayed on the display. The wording of the message indicating that the update process will be performed is different from the wording of the message indicating that the update process will be redone. The image forming apparatus according to feature 2.

4. The aforementioned controller can function as a recovery processing unit, The aforementioned controller, If, upon startup of the image forming apparatus after the aforementioned update process has been redone, it is determined that the correct main program is not stored in the non-volatile memory, then the number of times the update process must be redone according to the recovery program stored in the non-volatile memory is determined. If it is determined that the number of executions has not reached a predetermined number, the update process is redone according to the recovery program stored in the non-volatile memory. When it is determined that the number of executions has reached the predetermined number, the recovery processing unit functions to redo the update process. The image forming apparatus according to feature 1.

5. The aforementioned controller, In the re-execution of the update process according to the recovery program stored in the non-volatile memory, the process of storing the recovery program in the non-volatile memory is not performed. The image forming apparatus according to feature 1.

6. The aforementioned controller can function as a recovery processing unit, The aforementioned controller, If, upon startup of the image forming apparatus after the update process has been performed, it is determined that the correct main program is not stored in the non-volatile memory, it is further determined whether or not the correct recovery program is stored in the non-volatile memory. In response to determining that the correct recovery program is stored in the non-volatile memory, the update process is redone according to the recovery program stored in the non-volatile memory. In response to determining that the correct recovery program is not stored in the non-volatile memory, the recovery processing unit performs the update process again. The image forming apparatus according to feature 1.

7. The image forming apparatus is The non-volatile memory stores a functional program that functions as the recovery processing unit in an area that is not updated during the update process. The aforementioned controller, If, upon startup of the image forming apparatus after the update process has been redone, it is determined that the correct main program is not stored in the non-volatile memory and that the correct recovery program is not stored in the non-volatile memory, the recovery processing unit will function according to the function program and redo the update process. The image forming apparatus according to feature 4 or 6.

8. The procedure for redoing the update process differs depending on whether the update process is redone according to the recovery program stored in the non-volatile memory or by functioning as the recovery processing unit. The image forming apparatus according to feature 7.

9. The aforementioned communication interface includes a network interface and a local interface. The aforementioned controller, When the update process is to be redone according to the recovery program stored in the non-volatile memory, the update process is redone in a procedure that includes receiving the new main program via the network interface. By functioning as the recovery processing unit, if the update process needs to be redone, the update process is redone in a procedure that includes receiving the new main program via the local interface. The image forming apparatus according to feature 8.

10. The aforementioned local interface includes a USB (Universal Serial Bus) interface, The aforementioned controller, When the update process is to be redone according to the recovery program stored in the non-volatile memory, the update process is redone in a procedure that includes receiving the new main program via the network interface. When the recovery processing unit is required to redo the update process, it performs the redo of the update process in a procedure that includes receiving the new main program via the USB interface. The image forming apparatus according to feature 9.

11. The image forming apparatus further, display, Equipped with, The aforementioned controller, When the update process is to be redone according to the recovery program stored in the non-volatile memory, the update process is redone in a procedure that includes displaying a confirmation screen on the display and accepting an operation to instruct the user to redo the update process via the confirmation screen. By functioning as the recovery processing unit, when the update process needs to be redone, the procedure does not include a step to display a confirmation screen on the display, nor does it include a step to accept an operation to instruct the update process to be redone, and the update process is redone in this manner. The image forming apparatus according to feature 8.

12. The aforementioned controller, In the update process, the recovery program is stored in the normal mode data storage area of ​​the non-volatile memory, and then the update of the main program stored in the non-volatile memory to the new main program is started. After completing the update of the new main program stored in the non-volatile memory, the normal mode data received from the receiver of the new main program is overwritten and stored in the normal mode data storage area of ​​the non-volatile memory where the recovery program is stored. When the image forming apparatus is started after the update process has been performed, if it is determined that the correct main program is stored in the non-volatile memory, the image forming apparatus will operate in normal mode by executing processing according to the correct main program stored in the non-volatile memory during the update process, and in normal mode, it will operate using the normal mode data stored in the non-volatile memory. The image forming apparatus according to feature 1.

13. The aforementioned controller, When the image forming apparatus is started after the update process has been executed and the update of the main program stored in the non-volatile memory to the new main program has been completed, if it is determined that the correct main program is stored in the non-volatile memory, it is further determined whether or not the correct normal mode data is stored in the non-volatile memory. In response to determining that the correct normal mode data is stored in the non-volatile memory, the image forming apparatus is operated in normal mode by executing processing according to the main program stored in the non-volatile memory. If it is determined that the correct normal mode data is not stored in the non-volatile memory, the update process is repeated according to the correct main program updated in the non-volatile memory during the update process. The image forming apparatus according to feature 12.

14. The controller can function as a recovery processing unit, When the image forming apparatus is started after the update process has been executed and the update of the main program stored in the non-volatile memory to the new main program has been completed, if it is determined that the correct main program is stored in the non-volatile memory and that the correct normal mode data is not stored in the non-volatile memory, then the number of times the update process should be repeated according to the correct main program updated in the non-volatile memory is determined. If it is determined that the number of executions has not reached a predetermined number, the update process is redone according to the correct main program stored in the non-volatile memory during the update process. When it is determined that the number of executions has reached the predetermined number, the recovery processing unit functions to redo the update process. The image forming apparatus according to feature 13.

15. The aforementioned controller, When the image forming apparatus is started up, even though the update process described above has been performed, the update of the main program stored in the non-volatile memory to the new main program has not been initiated, and it is determined that the correct main program is stored in the non-volatile memory, it is further determined whether the correct normal mode data is stored in the non-volatile memory. If it is determined that the correct normal mode data is not stored in the non-volatile memory, the update process is restarted according to the correct main program stored in the non-volatile memory before the start of the update process. The image forming apparatus according to feature 12.

16. The aforementioned controller can function as a recovery processing unit, When the image forming apparatus is started up, even though the update process has been executed, the update of the main program stored in the non-volatile memory to the new main program has not been started, and it is determined that the correct main program is stored in the non-volatile memory, and that the correct normal mode data is not stored in the non-volatile memory, the number of times the update process should be retried according to the correct main program stored in the non-volatile memory before the start of the update process should be determined. If it is determined that the number of executions has not reached a predetermined number, the update process is restarted according to the correct main program stored in the non-volatile memory before the start of the update process. When it is determined that the number of executions has reached the predetermined number, the recovery processing unit functions to redo the update process. The image forming apparatus according to feature 15.

Citation Information

Patent Citations

  • Information processing apparatus, program, and control method

    JP2019016221A