Image forming apparatus, control method for image forming apparatus, and program therefor
The image forming apparatus optimizes configuration changes by prioritizing update instructions and scheduling them for immediate execution, addressing delays in existing polling methods.
Patent Information
- Application Number
- JP2023072667
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-11-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing configuration change programs require updating and checking for dependencies and correctness, leading to delays when instructions are acquired using polling methods, especially when dependencies are not met.
An image forming apparatus that includes communication means and control logic to acquire and execute instructions, prioritizing update instructions and scheduling them for execution, thereby allowing simultaneous execution of new instructions without waiting for polling cycles.
Enables the execution of new configuration changes at desired times without delays, ensuring immediate execution of update instructions and preventing redundant processing.
Smart Images

Figure 2024157962000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an image forming apparatus, a control method for an image forming apparatus, and a program. [Background technology]
[0002] It is known that information processing devices such as image forming devices can be connected to cloud services to improve management and maintenance. Examples of cloud services include a service that receives notifications of various events that occur in an operating information processing device and monitors errors, and a service that periodically collects the status of counters and consumables to perform billing and maintenance. By using multiple services like these, the management efficiency of information processing devices is improved.
[0003] Conventionally, a configuration change program that executes and manages configuration changes could obtain instruction data for a device from a cloud service by polling, execute the data, and remotely instruct the configuration change even in an environment protected by a firewall. Patent Document 1 describes an installer program that can complete multiple configuration change instructions, including instructions that require rebooting. [Prior art documents] [Patent documents]
[0004] [Patent Document 1] JP 2004-302929 A Summary of the Invention [Problem to be solved by the invention]
[0005] When you want to add a new executable instruction to the configuration change program, you must upgrade the program itself so that the configuration change program can execute the new instruction. Therefore, you need to send an instruction to upgrade the configuration change program itself, which manages the execution of the configuration change. The configuration change program can execute the new instruction that you added only after the configuration change program is upgraded. However, when the configuration change program executes an instruction, it usually checks the correctness of the instruction before executing it, and only executes it if it is determined to be correct. For example, some instructions have dependencies, so that the instructions required to execute the instruction must be in the same instruction data. For example, an instruction to download an application and an instruction to install an application have dependencies because the application cannot be installed without the downloaded application. It is necessary to check the consistency of the entire instruction data before executing the instruction, such as whether instructions with such dependencies are correctly written in the instruction data. In addition, for example, there may be cases where the written instructions violate the established rules.
[0006] When such a check is performed, if the instruction data contains an instruction to upgrade the configuration change program and an instruction that can be executed only after the upgrade, the instruction data is determined to be incorrect and the included instructions are not executed. This is because the pre-execution check determines that the included instructions are not executable. To prevent this situation, it is necessary to issue an instruction to upgrade the configuration change program, execute the upgrade, and then issue an instruction that can be executed only after the upgrade. However, if the instruction data is acquired by a polling method, a period equivalent to one polling cycle is required to issue two instructions. If the polling cycle is relatively long, such as several hours or days, it will take a considerable amount of time before the second instruction is executed.
[0007] The present invention has been made in consideration of the above-mentioned conventional examples, and has an object to realize, with a single instruction, updating a program that executes and manages configuration changes, and executing new instructions added by the update. [Means for solving the problem]
[0008] In order to achieve the above object, the present invention has the following configuration. That is, according to a first aspect of the present invention, there is provided an image forming apparatus, comprising: A means of communication; and a control means for executing an updatable program, The control means executes the program, acquiring instruction information from a server via the communication means; and executing instructions included in the instruction information; If the instruction information includes a first instruction that cannot be specified, it is determined whether the instruction information includes an update instruction for updating the program; When it is determined that the update instruction is included in the instruction information, the update instruction is executed and then the first instruction is attempted to be executed. An image forming apparatus characterized in that Effect of the Invention
[0009] According to the present invention, it is possible to realize, with a single instruction, both updating of a program that executes and manages configuration changes and execution of new instructions added by the update. [Brief description of the drawings]
[0010] [Figure 1] FIG. 2 is a diagram illustrating a hardware configuration of the image forming apparatus. [Diagram 2] FIG. 2 is a software module hierarchy diagram of the image forming apparatus. [Diagram 3] FIG. 2 is a block diagram showing a module configuration of a software distribution service. [Figure 4] 1 is a block diagram showing a network configuration of an image forming apparatus and a software distribution service. [Diagram 5] FIG. 2 is a diagram showing the relationship between an instruction sheet, a command sequence, and a command. [Figure 6] FIG. 4 is a diagram showing a list of commands handled in the present embodiment. [Figure 7] FIG. 11 is a diagram showing the contents of an operation history. [Figure 8] FIG. 13 is a diagram showing the contents of a skip command list. [Figure 9] 11 is a diagram illustrating a data structure of an instruction for updating that an image forming apparatus acquires from a software distribution server. [Figure 10] 11 is a diagram illustrating a data structure of cancellation information that the image forming apparatus acquires from the software distribution server. [Figure 11] 11 is a flowchart showing the flow from obtaining an instruction sheet to setting a command sequence start time in the first embodiment. [Figure 12] 11 is a flowchart showing the flow of an instruction book execution process in the first embodiment. [Figure 13] 13 is a flowchart showing the flow from obtaining an instruction sheet to setting a command sequence start time in the second embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0011] Hereinafter, the embodiments will be described in detail with reference to the attached drawings. Note that the following embodiments do not limit the invention according to the claims. Although the embodiments describe a number of features, not all of these features are essential to the invention, and the features may be combined in any manner. Furthermore, in the attached drawings, the same reference numbers are used for the same or similar configurations, and duplicated descriptions are omitted.
[0012] [Embodiment 1] ● Image forming device hardware 1 is a hardware configuration diagram of an image forming apparatus 130 having a print function, a scan function, a network communication function, etc. The image forming apparatus 130 is electrically connected to a scanner unit 113 and a printer unit 114, and is also connected to an external device via a LAN 116.
[0013] The CPU 101 performs overall control of access to various connected hardware devices based on a control program stored in a ROM 102, and also performs overall control of various processes performed within the controller.
[0014] The ROM 102 is a read-only non-volatile storage area, and stores the boot program, firmware, and the like of the image forming apparatus 130.
[0015] The RAM 103 is a system work memory for the operation of the CPU 101 and is a memory for temporarily storing various data. The RAM 103 is configured by a non-volatile SRAM (Static RAM), FRAM (registered trademark) (Ferroelectric RAM), a volatile DRAM (Dynamic RAM), or the like.
[0016] The HDD 104 is a non-volatile storage area, and stores a system bundle, a later-installed bundle, etc. Firmware for the image forming apparatus is stored in the HDD 104. Even if the HDD 104 is replaced due to a malfunction, the RAM 103 is not affected.
[0017] The operation unit I / F 105 is an interface unit that connects the system bus 119 and the operation unit 118. Specifically, data to be displayed on the operation unit 118 is received from the system bus 119 and displayed, and input information from the operation unit 118 is output to the system bus 119. User instructions and information presentation to the image forming apparatus 130 are performed via the operation unit 118.
[0018] A network I / F 106 is connected to a LAN 116, a WAN 117, and a system bus 119, and performs input and output of information with the outside. A scanner I / F 108 corrects, processes, and edits image data received from a scanner unit 113. An image forming unit 109 performs image data direction conversion, image compression, decompression, etc. A printer I / F 110 receives image data sent from the image forming unit 109, and prints it with a printer unit 114 after image formation.
[0019] ● Image forming device software 2 is a software module hierarchy diagram 200 of the image forming apparatus 130 related to the present invention. Each piece of software shown in FIG. 2 and subsequent figures is stored in the ROM 102 or HDD 104, and executed by the CPU 101. Various pieces of information used during execution are stored in the RAM 103 or HDD 104, and are exchanged between software functions. Furthermore, communication with external devices is performed using the network I / F 106.
[0020] Next, each piece of software will be described. First, the image forming apparatus 140 has an operating system (OS) platform 201 as software.
[0021] The firmware 250 performs basic control of the hardware incorporated in the image forming apparatus 130. By updating this firmware 250, it becomes possible to add functions to the image forming apparatus 130.
[0022] The UI 202 is a user interface module that mediates between the device and user operations when the operator performs various operations and settings for the image forming device 130. This module transfers input information to various modules in accordance with the operator's operations to request processing or change data settings.
[0023] Next, the configuration on the JAVA (registered trademark) side will be described. The software platform on the JAVA (registered trademark) side is configured as a runtime environment of the Java VM 207, and is configured of the Java VM 207 as an interpreter, a library 208, and a group of frameworks 209. The library 208 is configured to include a standard API library. The group of frameworks 209 is configured to include an OSGi 210, and this OSGi 210 operates multiple bundles on a single Java VM 207. Furthermore, the OSGi extension unit 211 is a module that is responsible for the implementation part for the OSGi 210, which is an interface specification. The OSGi extension unit 211 indicates that the function can be extended as necessary within the range that satisfies the specifications of the OSGi 210. The OSGi 210 and the OSGi extension unit 211 provide functions such as bundle life cycle management and inter-bundle communication functions.
[0024] The OSGi 210 includes a system bundle group 212. Functions provided by the system bundle 212 include basic built-in functions of the image forming device 130, such as copying, scanning, and printing (not shown).
[0025] The bundle management service 214 is a system bundle that manages the lifecycle of a bundle, including adding / updating, installing, uninstalling, starting, and stopping one or more bundles.
[0026] The firmware update service 215 is a system bundle that installs the downloaded firmware 250 .
[0027] The instruction execution service 216 is a system bundle that analyzes the instruction (also called instruction information) of the configuration change instruction received from the cloud and executes the processes in the specified order. If the instruction instructs to install the later-added bundle 219, the bundle management service 214 is requested to install the downloaded bundle. On the other hand, if the instruction instructs to update the firmware 250, the firmware update service 215 is requested to update the downloaded firmware 250. The configuration change program corresponds to this instruction execution service 216.
[0028] The login service 217 is a service that handles the authentication management function of the image forming apparatus 130. This login service is designed so that only one can operate at a time when managing the image forming apparatus 130. That is, in order to use a new login service, it is necessary to stop the login bundle that was originally operating and start the other login bundle that is to be newly operated.
[0029] The system bundle group 212 includes a later-installed bundle group 218 that is installed later. Bundles 219 included in the later-installed bundle group 218 provide the user with various functions in the image forming apparatus 130. The provided functions include an image processing function, an authentication management function, and a department management function such as print restrictions. For example, in order to perform unique authentication management in the authentication management function, a later-installed login bundle having that management function can be installed, and the login service 217 can be switched to and used for the newly installed login bundle.
[0030] The later-added bundles 219 that realize various functions operate under the management of the bundle management service 214. The bundle management service 214 holds bundle information including the bundle ID (identification information) and bundle version of the added bundle. The bundle can be uniquely identified from the bundle ID and bundle version.
[0031] ● Software distribution system 4 is a block diagram showing a network configuration of a software distribution system including an image forming apparatus and a software distribution service. The image forming apparatus 130 can communicate with a software distribution server 403 and a software content server 404 on a cloud 402 via the Internet 401. The software distribution server 403 manages an instruction manual that is generated when a service is subscribed and describes the procedure for installing applications required for the service. The content server 404 manages firmware, applications, etc. required to start the service.
[0032] ● Instruction execution service 3 is a block diagram showing the module configuration of the instruction execution service 216. The communication unit 300 has a function of acquiring an instruction from the software distribution server 403 and firmware and applications from the content server 404, and also notifying the software distribution server 403 of the results of the configuration control process.
[0033] The analysis unit 301 acquires the instruction book acquired by the communication unit 300, and information on a command sequence and commands, which will be described later. The sequence control unit 302 has a function of sequentially executing the information acquired by the analysis unit 301.
[0034] The time management unit 404 receives an instruction to set the command sequence start time from the command interpretation unit 403 and stores the command sequence start time. When the command sequence start time arrives, the time management unit 404 notifies the sequence control unit 403 of the start of command sequence execution.
[0035] The operation history management unit 304 has a function of saving and managing the execution results of each command. When the operation history management unit 304 is inquired of using an instruction book ID, the operation history management unit 304 has a function of acquiring the corresponding command sequence and the execution results of that command.
[0036] Instructions, command sequences, and commands 5 is a diagram showing the relationship between an instruction sheet, a command sequence, and a command. An instruction sheet 500 includes one or more command sequences, and has an instruction sheet ID 501 as an attribute that uniquely identifies the instruction sheet 500. This instruction sheet 500 is created by the software distribution server 403 and acquired by the image forming apparatus 130.
[0037] A command sequence 502 includes one or more commands 505, and has as attributes a command sequence ID 503 that uniquely identifies the command sequence, and an execution time 504. When the execution time 504 associated with the command sequence 502 is reached, the commands 505 included in the command sequence 502 are executed in sequence.
[0038] A command 505 is written in an instruction book and indicates a configuration control process. The command 505 has attributes including a command ID 506 that uniquely identifies the command in the instruction book, a command name 507 that identifies the configuration control process, and parameters 508 that indicate the details of the command (the types of commands and their parameters will be explained in detail in FIG. 6). 6 is an example of a command table 600 managed by the analysis unit 301. The command table 600 includes a command name 507 of the command 505, parameters 508 which are information required to execute each process, and dependent commands 601 which are required in the same instruction manual for execution. The analysis unit 301 refers to the command table 600 to analyze the commands included in the instruction manual 500. In the example of FIG. 6, the command table 600 includes four types of commands, but other types of commands may also be included. Examples of various commands are as follows:
[0039] The DownloadFirmwareCommand 602 is a command for the instruction execution service 216 to perform processing to download firmware from the content server 404. This command can also be considered a firmware acquisition instruction. Its parameters include the firmware version, the firmware download ID, and a firmware update mode indicating whether to update all firmware or only the differences. The firmware download ID is used to inquire of the content server 404 about the acquisition source of the firmware to be acquired. The DownloadFirmwareCommand 602 also has, as a dependent command 601, the command UpdateFirmwareCommand 603 required to update the downloaded firmware.
[0040] UpdateFirmwareCommand 603 is a command for performing a process of installing firmware acquired by the firmware update service 215 in the image forming apparatus 130. This command can also be considered a firmware update instruction. Its parameters include the firmware version and a firmware update mode indicating whether to update all firmware or update only the differences. UpdateFirmwareCommand 603 also has DownloadFirmwareCommand 604, which is a command for downloading firmware required for firmware update, as a dependent command 601. The firmware to be downloaded and updated may also include the instruction execution service 216.
[0041] The DownloadApplicationCommand 604 is a command for the instruction execution service 216 to perform processing to download an application from the content server 404. Its parameters include an application download ID for inquiring of the content server 404 about the acquisition location of the firmware to be acquired, and an application ID for uniquely identifying the application. It also has, as a dependent command 601, a command InstallApplicationCommand 605 required to install the downloaded application.
[0042] The InstallApplicationCommand 605 is a command for performing processing to install an application acquired by the bundle management service 214 in the image forming apparatus 130. The parameters include an application ID that uniquely identifies the application. Also, the InstallApplicationCommand 605 has, as a dependent command 601, an InstallApplicationCommand 604 that is a command for downloading an application required for installation.
[0043] ● Operation history and skip command list 7 is a table showing data of the operation history managed by the operation history management unit 304. After the sequence control unit 302 executes a command, the operation history management unit 304 stores in the HDD 104 an instruction ID 701 to which the executed command belongs, a command sequence ID 702 and a command ID 703, and an execution result 704.
[0044] 8 shows a skip command list 800 managed by the analysis unit 301 and sequence control unit 302. When the analysis unit 301 analyzes the instruction book 500 and finds that the instruction book contains a command that is not in the command table 600, the analysis unit 301 stores in the HDD 104 an instruction book ID 801 containing that command, a command sequence ID 802, and a command ID 803 for that command. This is the skip command list. The sequence control unit 302 reads out and uses the skip command list 800 when executing a command.
[0045] Example of instructions 9 shows an example of an instruction sheet 900 provided by the software distribution server 403, which is acquired by the image forming apparatus 130. In this embodiment, the instruction sheet 900 is defined in JSON (JavaScript Object Notation) format, but is not limited to this format and may be in another format. The instruction sheet 900 is, for example, an instruction sheet for instructing firmware update for use of a regular firmware update service.
[0046] An instruction ID 901 is an ID for uniquely identifying an instruction. A command sequence 902 is a collection of commands 905 that perform configuration control processing such as downloading and installing firmware and applications. This command sequence 902 is associated with an execution time, and when the execution time is reached, one or more commands in the command sequence are executed sequentially. A command sequence ID 903 is an ID for uniquely identifying a command sequence. A command sequence start time 904 indicates the time at which the command sequence starts.
[0047] A command 905 indicates the processing content of the device configuration control processing such as firmware update or application installation, and a command ID 906 is an ID for identifying the command in the instruction sheet. A command name 907 is a name for identifying the configuration control processing. A parameter 908 is information required to execute the command. If the command is firmware download 907a, the parameters include a firmware version 909, an update mode 910, and a firmware acquisition ID 911 to be queried to the content server 404. If the command is firmware update 906b, the parameters include a firmware version 912 and an update mode 913. If the command is setting value data download 907c, the parameters include an acquisition ID 914 for setting value data to be queried to the content server 404. If the command is setting value data import 907d, it is indicated that the required parameter 908 is not included.
[0048] ●Cancellation information 10 shows an example of cancellation information 1000 provided by the software distribution server 403, and is acquired by the image forming apparatus 130. In this embodiment, an example will be described in which the cancellation information 1000 is defined in JSON (JavaScript Object Notation) format, but the format is not particularly limited to this, and other formats may be used.
[0049] An instruction ID 1001 is an ID that uniquely identifies the cancellation information 1000, and a cancellation 1002 indicates whether or not the instruction of the instruction ID 1001 is a cancellation. If the value is true, it is a cancellation, and if the value is false, it is not a cancellation.
[0050] ● Instruction acquisition process 11 is a flowchart showing the process from obtaining an instruction book 900 from a cloud service to setting the execution time of a command sequence. The flow of the image forming apparatus 130 is stored in any one of the storage units, RAM 103, HDD 104, and ROM 102, and is executed by the CPU 301. This flowchart is also executed at regular intervals (for example, every six hours).
[0051] In step 1101, the communication unit 300 checks with the software distribution server 403 whether there is an instruction sheet. If a response is received in step 1102 indicating that there is an instruction sheet, the process proceeds to step 1103, and if a response is received indicating that there is no instruction sheet, the process ends. In step 1103, the communication unit 300 obtains the instruction sheet 900 from the software distribution server 403. The instruction sheet 900 contains instructions for configuration control processing linked to a contract for a service, and is generated by the software distribution server 403. Note that if there is an instruction sheet, the instruction sheet may be obtained in step 1101. In that case, there is no need to execute step 1103 again.
[0052] In step 1104, the analysis unit 301 judges whether or not there is an unexecutable command in the instruction book. Specifically, the analysis unit 301 refers to the command table 601 managed by the analysis unit 301, and judges whether or not the instruction book contains parameters and dependent commands required for each analyzable command among the commands written in the instruction book. If they are included, it is judged that there is no unexecutable command, and the process proceeds to step 1105, and if they are not included, the process proceeds to step 1109.
[0053] In step 1105, the analysis unit 301 determines whether there is an unanalyzable command in the instruction. Specifically, the analysis unit 301 refers to the command table 601 managed by the analysis unit 301, and determines whether there is a command name 907 of each command written in the instruction that does not match any command name in the command table 600. If there is no corresponding command, the process proceeds to step 1108, and if there is, the process determines that the corresponding command is an unanalyzable command and proceeds to step 1106. An unanalyzable command is also called an unknown command or an unidentifiable command.
[0054] In step 1106, the analysis unit 301 determines whether the instruction sheet contains an UpdateFirmwareCommand, which is a command indicating a function update of the instruction sheet execution service 216. If it does, the process proceeds to step 1107. In step 1107, the command sequence ID, command ID, and instruction sheet ID of the command that could not be analyzed in step 1105 are registered in the skip command list 800 managed by the sequence management unit 302, and the process proceeds to step 1108. If it does not exist, the process proceeds to step 1109.
[0055] In step 1108, the analysis unit 301 acquires the command sequence whose designated start time is closest to the current time. However, the command sequences registered in the skip command list 800 are excluded from the target. The time management unit 303 sets the time so that the acquired command sequence 802 is executed at the start time 804, which is a parameter of the command sequence, and ends the process. For example, if the time is set by polling a timer at predetermined intervals, the start time and the target command sequence ID may be stored in a specific storage area. In that case, the start time may be compared each time the timer is read, and the command sequence may be executed if the start time has passed. Alternatively, the target command sequence ID may be stored in a specific storage area, and the timer may be set to expire at the start time, thereby setting the time. In that case, the command sequence may be executed if the timer expires. Specifically, the execution of the command sequence is the execution of the process in FIG. 12.
[0056] In step 1109, the communication unit 300 notifies the software distribution server 403 of an instruction book execution impossible error, indicating that the instruction book cannot be executed due to an incomplete content of the instruction book, and ends the process. The command sequence described in the instruction book is scheduled according to the above procedure.
[0057] ● Instruction execution process 12 is a flowchart of the instruction execution process. The instruction is stored in any one of the storage units, the RAM 103, the HDD 104, and the ROM 102, and is executed by the CPU 301. This flowchart is also executed when the command sequence execution time set in the flowchart 1100 of FIG. 11 is reached.
[0058] In step 1201, the communication unit 300 requests and acquires the cancellation information 1000 from the software distribution server 403. The acquired cancellation information 1000 is cancellation information related to the instruction sheet including the command sequence executed in the process of FIG. 12. In step 1202, the analysis unit 301 analyzes the acquired cancellation information, and if the cancellation information indicates cancellation (the value of Cancel 1002 is true), the process proceeds to step 1203. In step 1203, only if the instruction sheet has been executed, the sequence control unit 302 deletes the contents such as firmware and applications acquired in the process of the instruction sheet and ends the process. The schedule of the scheduled command sequence is canceled. In addition, the instruction sheet to be processed is removed from the process, and the process related to the instruction sheet ends. On the other hand, if the acquired cancellation information 1000 does not indicate cancellation (the value of Cancel 1002 is false), the process proceeds to step 1204.
[0059] In step 1204, sequence control unit 302 sequentially executes commands in the command sequences of the instruction that were not canceled in step 1202 and that are not registered in skip command list 800. The command sequence to be executed is the command sequence scheduled in step 1108 of FIG. 11, which triggered the processing of FIG. 12. When a command is executed, operation history management unit 304 saves the executed command sequence and the execution result of that command as operation history 700. When the processing is completed, the process proceeds to step 1205.
[0060] In step 1205, the analysis unit 301 acquires the operation history of the instruction book 900 from the operation history management unit 304, and determines whether there is an unexecuted command sequence in the instruction book. Specifically, if all command sequence IDs included in the instruction book 900 do not exist in the command sequence ID 702 of the operation history 700, it is determined that there is an unexecuted command sequence. If there is, the process proceeds to step 1206.
[0061] In step 1206, the time management unit 303 sets the time to execute the command sequence whose start time, which is a parameter of the command sequence, is closest to the current time among the unexecuted command sequences at that start time, and then the process ends. If no unexecuted command sequences exist in the instruction book in step 1205, the process proceeds to step 1207.
[0062] In step 1207, it is determined whether there is a command whose execution has been skipped. Specifically, the analysis unit 301 determines whether the combination of instruction ID 901, command sequence ID 903, and command ID 906 written in the instruction 900 exists in the skip command list 800. If it exists, the process proceeds to step 1208, and if it does not exist, the process ends. In step 1208 and after, an attempt is made to execute the command that was determined to be unanalyzable in the procedure of FIG. 11.
[0063] In step 1208, analysis unit 301 determines whether there is a command in instruction book 900 that cannot be analyzed or executed. Specifically, the same processing as steps 1104 and 1105 in flowchart 1100 is performed. If no corresponding command exists, the process proceeds to step 1209. This is the case when a command registered in skip command list 800 and whose execution was put on hold becomes an executable command. In step 1209, sequence control unit 302 sequentially executes the commands included in skip command list 800, and operation history management unit 304 saves the executed command sequence and the execution results of that command as operation history 700. This ends the process.
[0064] On the other hand, if the instruction sheet contains a command that cannot be parsed or executed in step 1208, the process proceeds to step 1210. In step 1210, the communication unit 300 notifies the software distribution server 403 of an instruction sheet execution error, indicating that the instruction sheet cannot be executed due to a defect in the contents of the instruction sheet, and the process ends.
[0065] In this manner, even if an instruction sheet contains an unanalyzable command, analysis and execution of the unanalyzable command are suspended if there is a plan to upgrade the instruction sheet execution service 216 before the execution time. Then, after the instruction sheet execution service 216 is upgraded, the unanalyzable command is analyzed again. If the analysis result indicates that the command is analyzable and executable, the command is executed.
[0066] This allows configuration changes to be made at the desired date and time even for polling-based device configuration changes, and allows a single instruction to include a certain configuration change and a configuration change that can only be executed after the previous configuration change. This allows those configuration changes to be applied without waiting for the polling cycle. This makes it possible to prevent, for example, processing performed with instructions before an update from being duplicated with instructions after the update.
[0067] [Embodiment 2] In the first embodiment, even if a command cannot be analyzed, if a command that updates the instruction execution service 216 is included in the instruction, the execution of the command is pooled (put on hold) and analyzed and executed again when the instruction ends. However, there are cases where a command that updates the instruction execution service 216 and a new command cannot be written in the same instruction, for example, because there is an upper limit to the number of commands in an instruction. Even in such cases, it is desirable to be able to execute the command without generating an error during analysis. Therefore, in the second embodiment, when an instruction sheet contains a command that cannot be analyzed and there is no command to update the instruction sheet execution service 216 in the same instruction sheet, the command that cannot be analyzed is temporarily put on hold and analyzed and executed again if the following condition is met. The condition is that a command to update the instruction sheet execution service 216 exists in the instruction sheet waiting for execution, and that this command can be executed before the command that cannot be analyzed. The instruction sheet waiting for execution may be an instruction sheet obtained together with (at the same time as) the instruction sheet to be executed.
[0068] 13 is a second flowchart of the instruction execution process. The instruction is stored in any one of the storage units, RAM 103, HDD 104, and ROM 102, and executed by CPU 301. This flowchart is also executed when the command sequence execution time set in flowchart 800 is reached. In this embodiment, the configuration and processing are the same as those of embodiment 1, except that the processing in FIG. 13 is executed instead of the processing in FIG. 11.
[0069] Steps 1301 to 1305 are similar to steps 1101 to 1105 in Fig. 11. If multiple instruction documents are acquired in step 1303, the instruction document containing the command sequence with the earliest specified start time is selected as the instruction document to be executed. The other instruction documents are held by the sequence control unit 302 as instruction documents waiting to be executed.
[0070] In step 1306, the analysis unit 301 determines whether the instruction to be executed contains an UpdateFirmwareCommand, which is a command indicating a function update of the instruction execution service 216. If it exists, the process proceeds to step 1307, and if it does not exist, the process proceeds to step 1310.
[0071] In step 1310, the analysis unit 301 acquires a waiting instruction from the sequence control unit, and judges whether the instruction contains UpdateFirmwareCommand, which is a command indicating a function update of the instruction execution service 216. If it contains UpdateFirmwareCommand, the process proceeds to step 1311. In step 1311, the analysis unit 301 judges whether the start time of the command sequence having the command identified in step 1310 is earlier than the start time of the command sequence having the command identified in step 1305. If it is earlier, the process proceeds to step 1307, and if it is later, the process proceeds to step 1309. The process from step 1307 to step 1309 is the same as the process from step 1107 to 1109 in FIG. 11. That is, in step 1307, the command judged to be unanalyzable is registered in the skip command list 800, and in step 1308, the command sequence with the earliest start time is scheduled. In step 1309, the server is notified of an error. If it is judged in step 1310 that the waiting instruction does not contain UpdateFirmwareCommand, the process branches to step 1309.
[0072] In this way, if there is an upper limit to the number of commands in an instruction book, a series of instructions can be divided into multiple instruction books. As a result, even if a command for updating the instruction book execution service 216 and a new command cannot be written in the same instruction book, the new command can be executed without generating an error during analysis.
[0073] [Other Examples] The present invention can also be realized by a process in which a program for implementing one or more of the functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. The present invention can also be realized by a circuit (e.g., ASIC) that implements one or more of the functions.
[0074] Summary of embodiments The above embodiments can be summarized as follows: (Item 1) An image forming apparatus, A means of communication; and a control means for executing an updatable program, The control means executes the program, acquiring instruction information from a server via the communication means; and executing instructions included in the instruction information; If the instruction information includes a first instruction that cannot be specified, it is determined whether the instruction information includes an update instruction for updating the program; When it is determined that the update instruction is included in the instruction information, the update instruction is executed and then the first instruction is attempted to be executed. 1. An image forming apparatus comprising: (Item 2) Item 1. The image forming apparatus according to item 1, The instruction information for which it is determined whether the update instruction is included is instruction information including the first instruction. 1. An image forming apparatus comprising: (Item 3) 3. The image forming apparatus according to claim 1, The instruction information for which it is determined whether the update instruction is included is second instruction information that has been acquired together with the instruction information including the first instruction and is waiting to be executed. 1. An image forming apparatus comprising: (Item 4) Item 3. The image forming apparatus according to item 3, a start time for starting execution of the instruction is specified in the instruction information and the second instruction information; When the instruction information includes the first instruction, the control means further determines that the start time of the update instruction included in the second instruction information is earlier than the start time of the first instruction; When it is determined that the corresponding update instruction is included in the second instruction information, the update instruction is executed and then the first instruction is attempted to be executed. 1. An image forming apparatus comprising: (Item 5) 5. The image forming apparatus according to any one of claims 1 to 4, The control means notifies the server of an error when the instruction information includes the first instruction and the instruction information does not include the update instruction. 1. An image forming apparatus comprising: (Item 6) 6. The image forming apparatus according to any one of claims 1 to 5, If the control means cannot execute the first instruction after executing the update instruction, it notifies the server of an error. 1. An image forming apparatus comprising: (Item 7) 7. The image forming apparatus according to any one of claims 1 to 6, The instruction information specifies a start time for starting execution of the instruction, The control means schedules the instruction for execution at the specified start time. 1. An image forming apparatus comprising: (Item 8) 8. The image forming apparatus according to any one of claims 1 to 7, When the acquired instruction information includes cancel information, the control means cancels the execution of the instruction included in the instruction information to be executed. 1. An image forming apparatus comprising: (Item 9) Item 9. An image forming apparatus according to item 8, The control means further deletes the content acquired by executing the instruction included in the instruction information to be executed when the instruction information acquired includes the cancel information. 1. An image forming apparatus comprising: (Item 10) 10. The image forming apparatus according to any one of claims 1 to 9, The control means periodically obtains the instruction information. 1. An image forming apparatus comprising:
[0075] The present invention is not limited to the above-described embodiments, and various modifications and variations are possible without departing from the spirit and scope of the invention. Therefore, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]
[0076] 130 Image forming device, 250 Firmware, 215 Firmware update service, 216 Instruction execution service
Claims
1. An image forming apparatus, A means of communication; and a control means for executing an updatable program, The control means executes the program, acquiring instruction information from a server via the communication means; and executing instructions included in the instruction information; If the instruction information includes a first instruction that cannot be specified, it is determined whether the instruction information includes an update instruction for updating the program; When it is determined that the update instruction is included in the instruction information, the update instruction is executed and then the first instruction is attempted to be executed.
1. An image forming apparatus comprising:
2. 2. The image forming apparatus according to claim 1, The instruction information for which it is determined whether the update instruction is included is instruction information including the first instruction.
1. An image forming apparatus comprising:
3. 2. The image forming apparatus according to claim 1, The instruction information for which it is determined whether the update instruction is included is second instruction information that has been acquired together with the instruction information including the first instruction and is waiting to be executed.
1. An image forming apparatus comprising:
4. 4. The image forming apparatus according to claim 3, a start time for starting execution of the instruction is specified in the instruction information and the second instruction information; When the instruction information includes the first instruction, the control means further determines that the start time of the update instruction included in the second instruction information is earlier than the start time of the first instruction, When it is determined that the corresponding update instruction is included in the second instruction information, the update instruction is executed and then the first instruction is attempted to be executed.
1. An image forming apparatus comprising:
5. 2. The image forming apparatus according to claim 1, The control means notifies the server of an error when the instruction information includes the first instruction and the instruction information does not include the update instruction.
1. An image forming apparatus comprising:
6. 2. The image forming apparatus according to claim 1, If the control means cannot execute the first instruction after executing the update instruction, it notifies the server of an error.
1. An image forming apparatus comprising:
7. 2. The image forming apparatus according to claim 1, The instruction information specifies a start time for starting execution of the instruction, The control means schedules the instruction for execution at the specified start time.
1. An image forming apparatus comprising:
8. 2. The image forming apparatus according to claim 1, When the acquired instruction information includes cancel information, the control means cancels the execution of the instruction included in the instruction information to be executed.
1. An image forming apparatus comprising:
9. 9. The image forming apparatus according to claim 8, The control means further deletes the content acquired by executing the instruction included in the instruction information to be executed when the instruction information acquired includes the cancel information.
1. An image forming apparatus comprising:
10. 2. The image forming apparatus according to claim 1, The control means periodically obtains the instruction information.
1. An image forming apparatus comprising:
11. A program for causing a computer to function as the control unit of the image forming apparatus according to claim 1 .
12. A method for controlling an image forming apparatus having a communication unit and a control unit that executes an updatable program, comprising: The control means acquires instruction information from a server via the communication means, The control means executes the instruction included in the instruction information, If the instruction information includes a first instruction that cannot be specified, it is determined whether the instruction information includes an update instruction for updating the program; When it is determined that the update instruction is included in the instruction information, the update instruction is executed and then the first instruction is attempted to be executed. 2 is a control method for an image forming apparatus according to claim 1 .
Citation Information
Patent Citations
Automatic installer program
JP2004302929A
