Image forming apparatus, control method thereof, and program

By applying container technology to manage application modules independently of the operating system, the image forming apparatus achieves efficient resource utilization and real-time responsiveness, addressing the inefficiencies of virtual machine transitions.

JP7549460B2Active Publication Date: 2024-09-11CANON KK
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2020072372
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-04-14
Publication Date
2024-09-11
Estimated Expiration
2040-04-14

AI Technical Summary

Technical Problem

Existing image forming apparatuses face challenges in effectively utilizing hardware resources due to the need for real-time responsiveness and efficient management of in-flight applications, leading to increased waiting times and resource inefficiencies when transitioning virtual machines between states.

Method used

Implementing container technology to generate application modules independently of the operating system, allowing for controlled startup and shutdown of applications based on user demands, ensuring real-time responsiveness and efficient resource allocation.

Benefits of technology

This approach enhances hardware resource utilization and ensures rapid user response times by keeping essential modules active while dynamically managing application containers, reducing waiting times and optimizing resource usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007549460000007
    Figure 0007549460000007
  • Figure 0007549460000006
    Figure 0007549460000006
  • Figure 0007549460000008
    Figure 0007549460000008
Patent Text Reader

Abstract

To provide a mechanism for effectively utilizing hardware resources, by appropriately applying container technique to an embedded device, and assuring responsibility to a user's operation.SOLUTION: An image forming device for providing one or more functions comprises: one or more first modules which each receives a request of a corresponding function, via a user interface; and one or more second modules which execute functions corresponding to each of the one or more first modules. Moreover, the image forming device comprises: a first control unit which notifies the corresponding second module of the requests received by the one or more first modules; and a second control unit which controls the corresponding second module, according to the notification. Furthermore, in the image forming device, the one or more first modules are activated at all times from activation of the image forming device. The one or more second modules are generated as containers in an execution environment independent of an operating system, and the activation state is controlled by indications from the second control unit.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image forming apparatus that uses container technology to manage resources used by in-machine applications, a control method thereof, and a program. [Background technology]

[0002] As needs for image forming apparatuses become more diverse, the number of in-machine applications required is increasing. As the number of in-machine applications increases, the number of hardware resources required, such as CPU resources, memory resources, and storage resources, also increases, and as a result, the hardware costs also increase. In this situation, a method is required to effectively utilize the hardware resources installed in the image forming apparatus to meet the diverse needs. In recent years, technologies that effectively utilize hardware resources using virtualization technology and container technology have become widespread in the server field. Virtualization technology is a technology that builds a logical device on a host OS that runs on a physical device and runs a guest OS for running services and applications on the logical device. On the other hand, container technology is a technology that allocates part of the resources of the host OS that runs on a physical device to an independent execution environment (container) to run services and applications. Both of these technologies aim to effectively utilize limited hardware resources by dynamically allocating hardware resources when each service or application is running.

[0003] For example, Patent Document 1 proposes a technology for effectively utilizing hardware resources of embedded devices using virtualization technology. In detail, the technology proposes a user allocation unit that allocates processing for a request from a user (terminal device) to one or more virtual machines VM (Virtual Machines). The virtual machine VM goes into a standby state in advance after booting up, and goes into an operating state when the request is accepted, thereby shortening the time from accepting the request to starting processing. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2018-129003 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, the above conventional technology has the following problems. In order to effectively utilize resources in response to diversifying needs, it is possible to mount container technology on embedded devices. However, in an image forming device with a user interface, it is necessary to ensure real-time response. For example, in the above conventional technology, an application running on a virtual machine VM also includes a function to provide a user interface. That is, even if a setting screen or a confirmation screen is displayed to a user, the virtual machine VM must be put into an operating state, and then the application that provides the screen must be run. Therefore, when applied to an embedded device with very limited resources, a considerable waiting time occurs between the time a screen display is requested and the time it is actually displayed. In ergonomics, it is said that if it takes more than one second, the user will recognize that responsiveness is declining, and it is important to reduce the waiting time as much as possible.

[0006] In particular, some image forming apparatuses are provided with an application selection screen called a home screen (or a portal screen). A user has the function of selecting an icon representing one function from the home screen to display a setting screen or an execution screen of an application associated with the icon. In the above conventional technology, after an application is selected from the application selection screen, the virtual machine including the application is shifted from a stopped state to an operational state. The process of shifting from a stopped state to an operational state may take several seconds, depending on the amount of memory and storage performance required by the application.

[0007] As an alternative method, it is possible to keep the virtual machine VM in an operating state when the user logs in. This can improve the responsiveness of the application when the application is selected. However, in this case, it takes several tens of seconds from when the user makes a login request until the login is completed. Furthermore, by having many applications in an operating state, it becomes difficult to effectively utilize the hardware resources.

[0008] The present invention has been made in consideration of at least one of the above-mentioned problems, and provides a mechanism that effectively utilizes hardware resources and ensures responsiveness to user operations by preferably applying container technology to embedded devices. [Means for solving the problem]

[0009] The present invention relates to an image forming apparatus that provides one or more functions, and includes one or more first modules that receive requests for respective functions via a user interface, one or more second modules that execute functions corresponding to the one or more first modules, a first control unit that notifies the corresponding one of the second modules of the requests received by the one or more first modules, and a second control unit that controls the corresponding one of the second modules in accordance with the notification from the first control unit, and the one or more first modules are Started from The one or more second modules are generated as containers of an execution environment independent of an operating system, and their startup state is controlled by instructions from the second control unit. Effect of the Invention

[0010] According to the present invention, by suitably applying container technology to an embedded device, it is possible to effectively utilize hardware resources and ensure responsiveness to user operations. [Brief description of the drawings]

[0011] [Figure 1] FIG. 1 is a diagram showing a hardware configuration of an image forming apparatus 100 according to an embodiment. [Diagram 2] FIG. 2 is a diagram showing the software configuration of the image forming apparatus 100 according to an embodiment. [Diagram 3] FIG. 2 is a diagram showing an example of a format of a control command / control response according to an embodiment. [Figure 4] FIG. 11 is a diagram showing an example of definitions of control commands and control response identifiers according to an embodiment. [Diagram 5] 4 is a diagram showing a flow of container control by a device / job control unit 211 according to an embodiment. [Figure 6] 5A to 5C are diagrams showing an example of a Dockerfile 512 and a container management information DB 501 referenced during container control according to an embodiment. [Figure 7] 4 is a diagram showing a flow of application control by a device / job control unit 211 according to an embodiment. [Figure 8] 5 is a flowchart of a device job control unit 211 according to an embodiment. [Figure 9] 4 is a flowchart of temporary receiving units 212 to 215 according to an embodiment. [Figure 10] 11 is a flowchart of a container control unit 221 according to an embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0012] 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.

[0013] <Hardware configuration of image forming device> An embodiment of the present invention will be described below First, a hardware configuration of an image forming apparatus 100 according to the present embodiment will be described with reference to FIG.

[0014] The image forming apparatus 100 is connected to a PC 151. The image forming apparatus 100 can receive operation instructions from a user via the PC 151. The image forming apparatus 100 can also connect to USB devices such as a USB media 152 and can communicate with the connected USB devices. The image forming apparatus 100 is connected to network devices such as a NW HUB 153. For example, the image forming apparatus 100 may be directly connected to the PC 151 via a network. Alternatively, the image forming apparatus 100 can be configured to be indirectly connected to the network via various network devices such as a router or a switch.

[0015] The image forming apparatus 100 includes a controller board 110, a power switch 130, an operation unit 131, a printer unit 132, a scanner unit 133, and a FAX unit 134. The image forming apparatus 100 has a function of communicating with devices outside the main body via a PC 151, a USB media 152, a NW HUB 153, a FAX line 154, and the like. The controller board 110 is a controller board for controlling the image forming apparatus 100. The controller board 110 includes a CPU 111, a ROM 112, a RAM 113, and an internal storage 114. The controller board 110 also includes an operation unit I / F 121, a printer unit I / F 122, a scanner unit I / F 123, and a FAX unit I / F 124 for communicating with units in the image forming apparatus 100. Furthermore, the controller board 110 includes a USB-DI / F 141, a USB-H I / F 142, and a LAN I / F 143 for communicating with the outside of the image forming apparatus 100.

[0016] The CPU 111 is a central processing unit for providing various functions of the image forming apparatus 100. The CPU 111 loads programs and data related to the programs stored in the ROM 112 and the built-in storage 114 onto the RAM 113 and executes the programs, thereby providing various functions of the image forming apparatus 100 to the user. The ROM 112 is a storage area for storing an initial program executed by the CPU 111 when the power switch 130 is pressed and the controller board 110 is powered on. The initial program includes a series of processes for enabling the use of various devices on the controller board 110, including the RAM 113 and the built-in storage 114, which will be described later.

[0017] The RAM 113 is a storage area for temporarily storing programs executed by the CPU 111 and data used by the programs. The RAM 113 can be accessed at a high speed, but its capacity is small, about a fraction of the capacity, compared to the internal storage 114 described later. Therefore, the RAM 113 may be used as a disk cache that temporarily stores access to the internal storage 114. The internal storage 114 is a storage area for saving programs for the image forming apparatus 100 to provide functions and data used by the programs. The internal storage 114 has a very large capacity, but its access speed is slow, about a fraction of the capacity, compared to the RAM 113. Therefore, the internal storage 114 may be used temporarily as a memory alternative area (swap area) when the memory used by the programs is insufficient.

[0018] The operation unit I / F 121 is an interface for communicating with the power switch 130 and the operation unit 131. The printer unit I / F 122 is an interface for communicating with the printer unit 132. The scanner unit I / F 123 is an interface for communicating with the scanner unit 133. The FAX unit I / F 124 is an interface for communicating with the FAX unit 134. The USB-D I / F 141 is an interface for communicating with the PC 151. The USB-H I / F 142 is an interface for communicating with various USB devices. FIG. 1 shows an example of connection to a USB media 152. The LAN I / F 143 is an interface for communicating with an external device using a wired network. FIG. 1 shows an example of connection to a NW HUB 153 and indirect connection to an external device (not shown) connected to the NW HUB 153.

[0019] The power switch 130 is a unit for instructing the image forming apparatus 100 to be powered on or off. For example, a seesaw switch can be applied to the power switch 130. Alternatively, a tactile switch can be applied. The power switch 130 may also be used as an event trigger for entering a power-off mode with rapid recovery, which will be described later, or for recovering from the power-off mode with rapid recovery.

[0020] The operation unit 131 is a unit for receiving instructions from a user for the image forming apparatus 100 and for notifying the user of information and warnings. For example, the operation unit 131 may include an LCD panel for notifying information by image. The operation unit 131 may include a buzzer for notifying information by sound. The operation unit 131 may include an LED for notifying information by light. The operation unit 131 may also include physical keys or a touch panel for receiving instructions from the user. In addition, the operation unit 131 may also include a camera for receiving gesture input.

[0021] The printer unit 132 is a unit that allows the image forming apparatus 100 to print information on physical paper based on a user's instruction. In carrying out the present invention, a unit having various printing functions can be applied to the printer unit 132. The various printing functions include, for example, color / monochrome printing, single-sided / double-sided printing, stapling / stapleless stapling, and the like. In the printer unit 132, the output medium to be printed on is not limited to general paper, and media such as film can also be targeted. In the printer unit 132, the color material used during printing can be not only toner but also ink, etc. Alternatively, the present invention can be applied to an image forming apparatus equipped with a printer unit that outputs a three-dimensional object.

[0022] The scanner unit 133 is a unit that allows the image forming apparatus 100 to read information printed on physical paper based on a user's instruction. In implementing the present invention, units having various reading functions can be applied to the scanner unit 133. For example, automatic double-sided reading / one-pass double-sided reading / color reading.

[0023] The FAX unit 134 is a unit for transmitting image data stored in the image forming apparatus 100 to an external device via the FAX line 154 based on a user's instruction. It is also a unit for receiving image data transmitted from an external device to the image forming apparatus 100 via the FAX line 154.

[0024] <Software configuration> Next, the software configuration of the image forming apparatus 100 according to this embodiment will be described with reference to Fig. 2. The CPU 111 on the controller board 110 loads the main body firmware 200 stored in the internal storage 114 onto the RAM 113, and executes functions according to the contents of the main body firmware 200.

[0025] The main body firmware 200 includes an operation unit control unit 201, a device / job control unit 211, and a container control unit 221. The main body firmware 200 also includes a USB-D control unit 207, a USB-H control unit 208, and a LAN control unit 209. The operation unit control unit 201 is a control module (first module) that controls the UI application units 202 to 205. The UI application units include a copy UI application unit 202 for providing, for example, a copy function. The UI application units also include a Send UI application unit 203, a FAX UI application unit 204, a Web browser UI application unit 205, and a USB DIRECT UI application unit 206.

[0026] The copy UI application section 202 is an application operation section related to a copy function for copying image data read by the scanner unit 133 with the printer unit 132 based on an instruction from a user via the operation section control section 201. The copy UI application section 202 has a function for selecting the number of copies, double-sided printing, whether or not to staple, and the like, and controls the display of a setting screen for making these settings. The SendUI application section 203 is an application operation section related to a scan function for transmitting image data read by the scanner unit 133 to an external device via the LAN control section 209 based on an instruction from a user. The SendUI application section 203 has a function for specifying a destination to send, and the like. The FAXUI application section 204 is an application operation section related to a FAX function for transmitting image data read by the scanner unit 133 to an external device via the FAX unit control section 282 based on an instruction from a user. The FAXUI application section 204 also has a function for displaying the contents of image data and printing it with the printer unit 132 when the image data is transmitted from an external device to the FAX unit control section 282. The Web browser UI application unit 205 is an application operation unit related to a function of displaying a Web page acquired from an external device via the LAN control unit 209 to a user and accepting an operation for the content on the Web page. The USB Direct UI application unit 206 is an application operation unit related to a function of reading print data recorded in an external USB device via the USB-D control unit 207 and printing the data with the printer unit 132 in accordance with an instruction from a user. In the present invention, the application operation units 202 to 205 are configured to be able to start and operate independently of the execution units 241 to 255 of the respective applications. That is, in the present embodiment, for each application realizing each function provided by the image forming apparatus 100, an application operation unit that controls the UI and an execution unit that executes each function are independently provided.

[0027] The device / job control unit 211 is a control module (first control unit) for controlling the entire image forming apparatus 100. In this embodiment, the device / job control unit 211 plays a role of transmitting an instruction to each of the provisional job receiving units 212 to 215 and the FAX job receiving unit 216 based on an instruction from each of the UI application units 202 to 206. In this embodiment, the device / job control unit 211 can also receive an instruction from the PC 151 via the USB-D control unit 207 and the USB-D I / F 141. In this embodiment, the device / job control unit 211 can also receive an instruction from an external device (not shown), such as the NW HUB 153, via the LAN control unit 209 and the LAN I / F 143. The device / job control unit 211 may also transmit an instruction for an application that is not containerized to the job receiving unit. For example, the device / job control unit 211 transmits an instruction for a process related to FAX to the FAX job receiving unit 216. The FAX job receiving unit 216 transmits the instruction to the FAX job executing unit 281 and executes it. This is because the processing related to sending and receiving FAX is required to be constantly running while the image forming apparatus 100 is in operation, so it operates directly and not on a container. Thus, according to this embodiment, the container technology is not applied uniformly to all functional applications, but is applied according to the characteristics of the functions provided by the image forming apparatus 100.

[0028] The container control unit 221 is a control module (second control unit) that controls the containers 222 to 225 (second modules). For example, the main body firmware 200 includes a copy container 222 for executing a copy function. The copy container 222 is generated as a container (second module) of an execution environment independent of the operating system of the image forming apparatus 100, and includes a copy job main receiving unit 231 for receiving an instruction from the copy job temporary receiving unit 212, and a copy job executing unit 241 for executing the received instruction. The copy job executing unit 241 issues a print instruction to the printer unit 132 via the printer unit control unit 271 and the printer unit I / F 122. Similarly, the copy job executing unit 241 issues an image reading instruction to the scanner unit 133 via the scanner unit control unit 272 and the scanner unit I / F 123.

[0029] The main body firmware 200 also includes a Send container 223 for executing the Send function, a PDL container 224 for executing the PDL function, and a Web browser container 225 for executing the Web browser function. The Send container 223 includes a Send job main receiving unit 232 for receiving instructions from the Send job temporary receiving unit 213, and a Send job executing unit 242 for executing the received instructions. The PDL container 224 includes a PDL job main receiving unit 233 for receiving instructions from the PDL job temporary receiving unit 214, and a PDL job executing unit 243 for executing the received instructions. The Web browser container 225 includes a Web browser job main receiving unit 234 for receiving instructions from the Web browser job temporary receiving unit 215, and a Web browser job executing unit 244 for executing the received instructions.

[0030] The main body firmware 200 also includes a printer unit controller 271, a scanner unit controller 272, and a FAX unit controller 282. These are modules for controlling the respective units.

[0031] <Control command / control response> Next, an example of the format of the control command / control response according to this embodiment will be described with reference to Fig. 3. In this embodiment, in order to simplify the description, the control command, which is circulated inside and outside the main body and indicates a request to execute control, and the control response, which indicates the result of executing the control, are expressed in the same format. However, this is not intended to limit the present invention, and various contents can be applied to the format and contents of the control command / control response. Note that in this embodiment, the control command / control response is assumed to have data arranged in the order of network byte order.

[0032] The control command version, located at +0h at the beginning, indicates the version of the control command and control response of the data. Here, it is 0xC0CaFF01. This can be used to determine whether the control command received by the image forming device 100 is a version that the image forming device 100 supports.

[0033] The control command / control response identifier, located at +4h from the beginning, is an identifier that indicates the content of this control command / control response. Both the control command identifier / control response identifier are expressed as a maximum of 32-bit data. In this embodiment, taking into consideration future expandability, the upper 16 bits / 2 bytes are reserved, and data expressed by the lower 16 bits / 2 bytes is used. The control command identifier / control response identifier will be described in detail with reference to FIG. 4.

[0034] The user identifier, located at the beginning +8h, is an identifier that indicates the destination of the control response that is the result of sending the control command. For example, it is an identifier that can identify which application or module inside or outside the device.

[0035] The unique data length of the control command / control response, located at +10h from the beginning, and the unique data body part of the control command / control response, located at +18h from the beginning, are information for expressing information that cannot be expressed by the control command / control response identifier. Since control commands are used for various purposes and applications, it is difficult to define a format that can be commonly used by all control commands / control responses. Therefore, in this embodiment, a form is adopted in which the data length and body part (contents) that can transmit the unique data of the control command / control response are transmitted based on the control command identifier.

[0036] <Control command> Various control commands handled by the device / job control unit 211 will be described below with reference to Fig. 4 to Fig. 7. First, an example of a definition of a control command / control response identifier according to this embodiment will be described with reference to Fig. 4. The control command identifier includes a lower byte that represents a target option for identifying a target module, and an upper byte that represents a control command type for identifying what kind of instruction is to be given to the target module.

[0037] (Target options) The target option is information expressing each application that is the target of the instruction. For example, CC_TARGET_COPY (0x10) is assigned to an instruction for a copy application. CC_TARGET_SEND (0x20) is assigned to an instruction for a send application. CC_TARGET_PDL (0x30) is assigned to an instruction for a PDL application. CC_TARGET_WEBBROW (0x40) is assigned to a web browser application. CC_TARGET_FAX (0x50) is assigned to a FAX application. In this embodiment, in addition to these applications pre-installed in the image forming device 100, applications that the user has arbitrarily installed can also be targeted. For example, in this embodiment, the range from 0x80 to 0xFE is assigned for user applications, and any numerical value can be assigned at the time of installation. Furthermore, CC_TARGET_DEVICE (0xFF) is assigned to an instruction to the device main body. In addition to this, the target option can be extended to instruct external options such as feeders provided on the device.

[0038] The control command types include a control command identifier for a receiver, a control command identifier for a container, a control command identifier for an application, and a control command identifier for a device. The control response identifiers are divided into a general-purpose control response identifier and a container status control response identifier.

[0039] (Receiver control command) The control command identifier for the receiver starts from 0xF0 to 0xFF. In this embodiment, the receiver start instruction (CC_RECEPTOR_CMD_START, 0xF000) means a start instruction for the receiver. For example, the command identifier of 0xF010 is an OR of CC_TARGET_COPY and CC_RECEPTOR_CMD_START, and is therefore a control command identifier that means receiver start of the copy application.

[0040] (Container control command) Control command identifiers for containers start with 0xC0 to 0xCF. Details will be described with reference to Fig. 5 and Fig. 6. Here, the flow of container control by the device / job control unit 211 will be described with reference to Fig. 5. In this embodiment, an example in which a docker (registered trademark) library is applied as a container control library will be described. Note that the configuration shown in Fig. 5 shows a part of the software configuration (Fig. 2) included in the image forming apparatus 100 according to this embodiment, and configurations that are not related to the following description are omitted.

[0041] A case will be described where a control command with a control command identifier of 0xC010 is transmitted to the device / job control unit 211 from inside or outside the device. Since the lower byte expressing the target option of the control command identifier is 0x10, the device / job control unit 211 determines that it has received a control command for a copy application. Then, the device / job control unit 211 notifies the copy job provisional receiving unit 212 of the control command. Since the control command identifier starts with 0xC0, the copy job provisional receiving unit 212 determines that the control command is a control command for issuing a container generation instruction, and notifies the container control unit 221 of the control command.

[0042] The container control unit 221 determines from the control command identifier that the control command is a container creation instruction for the copy application. The container control unit 221 refers to the container management information DB 501, selects a corresponding Dockerfile from the Dockerfiles 512, and issues a container creation instruction to the Docker engine 511. As a result, the Docker engine 511 creates a copy container 222.

[0043] Here, a supplementary explanation will be given of the Dockerfile 512 and the container management information DB 501 used in this embodiment with reference to Fig. 6. Fig. 6 shows an example of the Dockerfile 512 referenced during container control and the container management information 600 stored in the container management information DB 501. The Dockerfile 512 shown in Fig. 6 is a Dockerfile that defines a container for a copy application. Lines beginning with "#" are comment lines to facilitate explanation.

[0044] FROM on the fourth line means that the Docker image used when generating a container is appimage:1.0 (504) on the private registry 513. In this embodiment, the explanation is given on the assumption that the Docker image on which each container is based is held in the image forming apparatus 100. However, there is no such restriction in the implementation of the present invention, and for example, the registry of another image forming apparatus or a public registry that is open to the public may be referenced.

[0045] RUN on the 6th line means that the work directory / var / copy is generated as a command to be executed when the container is generated. WORKDIR on the 8th line means that the work directory is moved to / var / copy as a command to be executed when the container is generated. RUN on the 10th line means that the pkg-manager command is executed with the arguments "install" and "copyserver" as a command to be executed when the container is generated. As a result, the pkg-manager command is executed on the copy container 222, and the copyserver application is installed from the package repository 552 via the package manager 551. In addition to being implemented as an independent storage, each container can also be represented using a file system that records only update differences from a base image and transparently represents them.

[0046] EXPOSE on line 12 indicates that the port number opened to receive control commands on the container is 20001. CMD on line 15 indicates that " / apps / copyserver" will be executed when the container is run. STOPSIGNAL on line 18 indicates that the SIGTERM signal will be sent to the program started by CMD when the container terminates. This allows the program to detect the termination of the container.

[0047] Here, the Dockerfile has been described using the copy container 222 for the copy application as an example, but the same applies to other applications and containers. In order to simplify the description, the description of other applications will be omitted.

[0048] Reference numeral 600 denotes container management information managed by the container management information DB 501. For the sake of explanation, the term DB, that is, database, is used here. If the information on the container can be managed, the information may be managed using something other than a relational database. For example, a simple text file may be used as a management format. Reference numeral 601 denotes a management number of each container management information. Reference numeral 602 denotes a name of a container. Reference numeral 603 denotes whether or not to perform main body-linked startup. Main body-linked startup means that a container is generated and started in conjunction with the image forming apparatus 100 (main body). Note that containers other than those for main body-linked startup may be generated at various times. For example, when the setting of a corresponding function is started via a user interface, a corresponding container may be generated and started. Also, when it is detected that a sheet is placed on a tray (not shown) of the image forming apparatus 100, a container corresponding to one or more functions that are expected to be executed may be generated and started. In this case, for example, at least one of containers related to a copy function, a scan function, and a FAX function may be generated and started. Furthermore, in the case where the image forming apparatus 100 is equipped with a human presence sensor (not shown), when a human is detected by the human presence sensor within a predetermined range from the image forming apparatus 100, a container corresponding to one or more functions predicted to be executed may be generated and started. 604 indicates which port the host running Docker uses for control command communication. 605 indicates the priority of CPU resource allocation between containers. 606 indicates the maximum memory resource allocation. 607 indicates the maximum memory resource allocation including swap memory.

[0049] Reference numeral 610 denotes container management information of the copy application (information on the copy container 222). As shown in 610, the name 602 of the copy container 222 is "copyserver". In addition, since the main body linked startup is set to "Yes" in the copy container 222, the copy container 222 starts at the same time when the image forming apparatus 100 is powered on. Note that, although the copy function, the send function, and the PDL function are set to start up in conjunction with the main body here, this is not intended to limit the present invention. This setting can be changed according to the usage environment of the image forming apparatus and the administrator's intention. The host port 603 of the copy container 222 is assigned the port 20016. The cpu-shares 604 of the copy container 222 is set to 512. The memory 606 of the copy container 222 is set to 256 MB, which indicates that up to 256 MB can be used. The memory swap 607 of the copy container 222 is set to 256 MB, which indicates that up to 256 MB of memory, including swap memory, is available. In other words, since there is no difference with the memory 606, the swap memory is not used. For example, if this value is 1280 MB, this means that up to 1024 MB, which is the difference with 256 MB, can be used as a swap file. Similarly, the container management information for the Send application, PDL application, and Web browser application is also managed in the container management information DB 501. In this way, the container management information 600 includes information regarding the allocation of hardware resources (host port, CPU usage, memory, and memory swap) for each container. Returning to the description of Fig. 5, the container control performed by the container control unit 221 on the docker engine 511 includes a container creation instruction, a container start instruction, and a container stop instruction. Furthermore, the container control also includes a container restoration instruction, a container setting change instruction, a container termination instruction, a container destruction instruction, and a container status acquisition instruction.

[0050] The container creation instruction (CC_CONTAINER_CMD_CREATE, 0xC000) is an instruction to create a container based on the above-mentioned Dockerfile 512 and the container management information 600. The container start instruction (CC_CONTAINER_CMD_START, 0xC100) is an instruction to start an application on a container. The container stop instruction (CC_CONTAINER_CMD_PAUSE, 0xC200) is an instruction to temporarily suspend a container from a running state to a stopped state. The container stop instruction is issued, for example, when a currently logged-in user logs out, or when a certain time has passed since the end of a job of the corresponding function without a job of the same function being submitted. Furthermore, the container stop instruction is also issued when the hardware resources become less than a predetermined value when starting another container, and the usage frequency at that timing is low, or when a fatal error occurs. The container return instruction (CC_CONTAINER_CMD_UNPAUSE, 0xC300) is an instruction to activate a suspended container again. Also, when the device transitions to a power saving mode or a sleep mode, at least one container may be temporarily suspended. A container return instruction is basically issued when a request to execute a function is received for a stopped container or when the device returns from a power saving mode or the like. A container setting change instruction (CC_CONTAINER_CMD_UPDATE, 0xC700) is an instruction to change resource settings, such as CPU resources and memory resources, allocated to a container. A container termination instruction (CC_CONTAINER_CMD_STOP, 0xCD00) is an instruction to terminate an application on a container. A container destruction instruction (CC_CONTAINER_CMD_REMOVE, 0xCE00) is an instruction to destroy a container. A container destruction instruction is issued, for example, when a container that is not made resident is destroyed after a job is executed in the container. A container status acquisition instruction (CC_CONTAINER_CMD_GET_STATUS, 0xCF00) is an instruction to acquire the status of a container.

[0051] (Application Control Command) As shown in Fig. 4, the control command identifier for an application starts with 0xA0 to 0xAF. Now, an application control command for an application by the device / job control unit 211 according to this embodiment will be described with reference to Fig. 7. In the following, an example will be described in which a control command with a control command identifier of 0xA110 is transmitted to the device / job control unit 211 from inside or outside the device.

[0052] Since the lower byte expressing the target option of the control command identifier is 0x10, the device / job control unit 211 determines that it has received a control command for a copy application. Then, the device / job control unit 211 notifies the copy job temporary receiving unit 212 of the control command. The copy job temporary receiving unit 212 detects that the control command identifier starts with 0xA1, determines that it is a control command for issuing an application execution instruction, and notifies the copy job main receiving unit 231 of the control command.

[0053] At this time, the copy job temporary receiving unit 212 recognizes that the control command communication port assigned to the copy application is 20016 by referring to the management information 610 related to the copy container 222 in the container management information DB 501. Then, the copy job temporary receiving unit 212 transmits a control command to the 20016 port. The communication to the 20016 port is received by the docker engine 511, which then transmits the control command to the 20001 port on the copy container 222. The copy job main receiving unit 231 reads the control command transmitted to the 20001 port and notifies the copy job executing unit 241, thereby executing the copy job. Each of the containers 222 to 225 operates according to the resource allocation described in the container management information 600 in the container management information DB 501.

[0054] In the present invention, the image forming apparatus 100 does not need to keep all containers running at the same time. For example, in this embodiment, the Web browser container 225 is started when the user clearly indicates his / her intention to use the container, for example, when the Web browser UI application unit 205 is operated. In addition, in this embodiment, an application that is always running as a main body linked start-up may be set not to be always running according to a user setting. In that case, the corresponding container is started when the user clearly indicates his / her intention to use the container, similar to the above-mentioned Web browser.

[0055] Returning to the explanation of FIG. 5, the application instructions that each temporary receiving unit 212-215 sends to each real receiving unit 231-234 include an execution instruction, a pause instruction, a cache memory flush request instruction, and a cancel instruction. The execution instruction (CC_APPLICATION_CMD_EXECUTE, 0xA100) is an instruction to execute a job in the application. The pause instruction (CC_APPLICATION_CMD_STOP, 0xA500) is an instruction to pause a job being executed in the application. The cache memory flush request instruction (CC_APPLICATION_CMD_C_FLUSH, 0xA700) is an instruction to discard the cache in the memory that was held during the execution of the application. This makes it possible to reduce the memory usage used by the application. The cancel instruction (CC_APPLICATION_CMD_CANCEL, 0xAF00) is an instruction to cancel a job being executed in the application.

[0056] (Device control commands) As shown in Fig. 4, the control command identifiers for devices start with 0xD0 to 0xDF. The device control commands can include, for example, control commands for receiving instructions such as device power control from inside and outside the equipment. The device control command identifiers include a sleep recovery instruction, a sleep entry instruction, a panel light-on instruction, a panel light-off instruction, a rapid recovery power-off instruction, and a power-off instruction.

[0057] The sleep entry instruction (CC_DEVICE_CMD_WAKEUP, 0xD000) is an instruction to transition the device state to a power saving mode that reduces power consumption. The sleep return instruction (CC_DEVICE_CMD_SLEEP, 0xD100) is an instruction to transition the device state from a power saving mode to a normal mode. The panel turn off instruction (CC_DEVICE_CMD_PANELOFF, 0xD200) is an instruction to stop the screen display of the operation panel provided in the operation unit 131. The panel turn on instruction (CC_DEVICE_CMD_PANELON, 0xD300) is an instruction to execute the screen display of the operation panel provided in the operation unit 131. The quick recovery power off instruction (CC_DEVICE_CMD_QUICKOFF, 0xD400) is an instruction to transition the device state from a normal mode to a quick recovery power off mode. When the image forming apparatus 100 enters the fast recovery power-off mode, the image forming apparatus 100 can return to the normal mode only by operating the power switch 130. The power-off instruction (CC_DEVICE_CMD_POWEROFF, 0xDF00) is an instruction to turn off the power to the device.

[0058] In the image forming apparatus 100 according to this embodiment, the power consumption of the entire image forming apparatus 100 is reduced by finely controlling the power consumption of the printer unit 132, the scanner unit 133, the FAX unit 134, etc. For example, the printer unit 132 may be provided with two modes with different standby power consumption amounts, and the modes may be selectively used according to instructions from the main body firmware 200. In this embodiment, the power control of these devices is processed in the same manner as the power control in a general image forming apparatus, and therefore a detailed description thereof will be omitted.

[0059] (Generic Control Response Identifier) As shown in Figure 4, the general-purpose control response identifiers include a success response identifier (CC_RESPONSE_OK, 0x0000) and a failure response identifier (CC_RESPONSE_NG, 0x0001). These are used to notify whether processing for various control commands has been successful or unsuccessful.

[0060] (Container Status Control Response Identifier) 4, the container state control response identifiers include a container absent state control response, a container not started state control response, a container started state response, and a container stopped state response. Further, the container state control response identifiers include a container restarting response, a container terminating response, a container deleting response, and a container stop failure response.

[0061] The non-existent container control response (CC_RESPONSE_NONEXISTS, 0x8000) indicates that the container required to run the targeted application does not exist. The non-started container control response (CC_RESPONSE_CREATED, 0x0000) indicates that the targeted container exists but is not started. The running container response (CC_RESPONSE_RUNNING, 0x0001) indicates that the targeted container exists and is started. The stopped container response (CC_RESPONSE_PAUSED, 0x0002) indicates that the targeted container exists and is started, but has received a stop instruction. The restarting container response (CC_RESPONSE_RESTARTING, 0x0003) indicates that a restart request for the container is being executed. The exiting container response (CC_RESPONSE_EXITED, 0x0004) indicates that the container is in an exited state. The container removal response (CC_RESPONSE_REMOVING, 0x0005) indicates that a container removal request is being executed. The container stop failure response (CC_RESPONSE_DEAD, 0x0006) indicates that the target container exists and is running, but the stop process has failed in response to a stop instruction request.

[0062] <Processing procedure of device / job control section> Next, a processing procedure of the device / job control unit 211 according to this embodiment will be described with reference to Fig. 8. The processing described below is realized, for example, by the CPU 111 reading a control program stored in the ROM 112 or the internal storage 114 into the RAM 113 and executing it.

[0063] S801 indicates a loop process, and the device / job control unit 211 repeatedly executes the following processes of S802 to S805 for all the temporary receiving units 212 to 215 and the receiving unit 216. In S802, the device / job control unit 211 transmits a receiving unit start command to each receiving unit. Then, in S803, the device / job control unit 211 receives a response from each receiving unit. In S804, the device / job control unit 211 judges whether the response is a failure. If it is a failure, the process proceeds to S805, where the device / job control unit 211 records that a fatal error has occurred and continues the repeated process. On the other hand, if it is not a failure, the process continues as it is. By repeating the above processes of S802 to S805, the device / job control unit 211 issues a start instruction to all the temporary receiving units 212 to 215 and the receiving unit 216. When all the processes are completed, the process proceeds to S806.

[0064] In S806, the device / job control unit 211 determines whether or not a fatal error has occurred, and if a fatal error has occurred, the process proceeds to S808, and if not, the process proceeds to S807. In S808, the device / job control unit 211 notifies the operation unit control unit 201 of an error display request accompanying the occurrence of a fatal error, and ends the process. On the other hand, in S807, if a fatal error has not occurred, the device / job control unit 211 issues a start-up instruction to the operation unit control unit 201. In response to the start-up instruction, the operation unit control unit 201 starts the UI application units 202 to 206, and the process proceeds to S831. Note that it is desirable to realize the UI application units 202 to 206 in the form of external programs called by the operation unit control unit 201 in order to facilitate program updates.

[0065] In S831, the device / job control unit 211 receives a command transmitted from inside or outside the device. Then, in S832, the device / job control unit 211 branches the process according to the type of the received command. If the received command type is an application control command, the process proceeds to S833, where the device / job control unit 211 identifies a target application from the control command. Next, in S834, the device / job control unit 211 transmits the control command to a temporary receiving unit or a receiving unit of the target application. The temporary receiving unit or the receiving unit performs processing for the command as described below, and transmits a control response. In S835, the device / job control unit 211 receives a response from the target application. Then, in S836, the device / job control unit 211 transmits the received response to the transmission source recorded in the user identifier of the control command received in S831.

[0066] On the other hand, if the command type received in S832 is determined to be a device control command, the process proceeds to S851, where the device / job control unit 211 branches the process according to the command type. If the command type is a sleep recovery command, the process proceeds to S852, where the device / job control unit 211 executes a sleep recovery process. Similarly, in S853 to S856, the device / job control unit 211 executes the respective processes for the sleep entry command, panel on command, panel off command, or fast recovery power off command. After that, in S857, the device / job control unit 211 acquires the results of these command executions as a response. Next, in S858, the device / job control unit 211 transmits a response indicating that the device control has been performed to the sender recorded in the user identifier of the control command received in S831. Then, the process returns to S831 to receive a new command.

[0067] If it is determined in S851 that the command type is a power-off command, the process proceeds to S891, in which the device / job control unit 211 executes a power-off process and ends the process. As a result, the image forming apparatus 100 enters a completely power-off state.

[0068] Through the above control, the device / job control unit 211 can transfer a control command to the temporary receiving unit / receiving unit of an application or control a device according to the target included in the received control command.

[0069] <Processing procedure of temporary receiver> Next, the processing procedure of the temporary receiving units 212 to 215 according to this embodiment will be described with reference to Fig. 9. Here, the copy job temporary receiving unit 212 will be described as a representative. The other temporary receiving units 213 to 215 behave in the same manner as the copy job temporary receiving unit 212, and therefore will not be described. The processing described below is realized, for example, by the CPU 111 reading a control program stored in the ROM 112 or the built-in storage 114 into the RAM 113 and executing it.

[0070] In S901, the copy job temporary reception unit 212 receives a temporary reception unit startup command from the device / job control unit 211. Subsequently, in S902, the copy job temporary reception unit 212 executes a startup process of the temporary reception unit. For example, the startup process of the temporary reception unit may secure memory in advance and set related hardware. Thereafter, in S903, the copy job temporary reception unit 212 determines whether the startup process has been successful. If the startup process has been successful, the process proceeds to S904, where the copy job temporary reception unit 212 notifies the device / job control unit 211 of a success response, and thereafter, the process proceeds to S911 to repeat the process for the application control command. On the other hand, if the startup process has failed, the process proceeds to S905, where the copy job temporary reception unit 212 notifies the device / job control unit 211 of a failure response, and ends the process.

[0071] In S911, the copy job temporary reception unit 212 receives an application control command from the device job control unit 211. Subsequently, in S912, in order to execute the application control command received in S911, the copy job temporary reception unit 212 transmits a container status obtainment command to the container control unit 221. Furthermore, in S913, the copy job temporary reception unit 212 obtains a container status control response from the container control unit 221.

[0072] Next, in S914, the copy job temporary receiving unit 212 switches processing depending on the received container status. If the container status is a container non-started status (CC_RESPONSE_CREATED), the process proceeds to S921, where the copy job temporary receiving unit 212 transmits a container start command (CC_CONTAINER_CMD_START) to the container control unit 221. Next, in S922, the copy job temporary receiving unit 212 receives a response to the container start command from the container control unit 221. As a result, the container for running the application transitions to a container started status (CC_RESPONSE_RUNNING). Then, the process proceeds to S929, where the copy job temporary receiving unit 212 waits for a certain period of time, and then returns the process to S912 to repeat the container status acquisition process again.

[0073] If the container state is the container stopped state (CC_RESPONSE_PAUSED) in S914, the process proceeds to S923. In S923, the copy job temporary reception unit 212 transmits a container return command (CC_CONTAINER_CMD_UNPAUSE) to the container control unit 221. Then, in S924, the copy job temporary reception unit 212 receives a response to the container return command from the container control unit 221. As a result, the container for running the application transitions to a container running state (CC_RESPONSE_RUNNING). Then, the process proceeds to S929, where the copy job temporary reception unit 212 waits for a certain period of time, and then returns the process to S912 to repeat the container state acquisition process again.

[0074] If the container status is the container running status (CC_RESPONSE_RUNNING) in S914, the process proceeds to S941. In S941, the copy job temporary reception unit 212 transmits the application control command received in S911 to the copy job main reception unit 231. Next, in S942, the copy job temporary reception unit 212 receives a response to the application control command from the copy job main reception unit 231. Furthermore, in S943, the copy job temporary reception unit 212 transmits the response received in S942 to the sender of the application control command received in S911, and returns the process to S911.

[0075] If the container status is other than the above in S914, the process proceeds to S931, where the temporary copy job reception unit 212 notifies the operation unit control unit 201 of a fatal error. Then, in S932, the temporary copy job reception unit 212 transmits a failure response to the sender of the application control command received in S911, and ends the process.

[0076] By the above control, the copy job temporary receiving unit 212 can always receive an application control command related to a copy job, regardless of the state of the copy container 222. Furthermore, the copy job temporary receiving unit 212 can prepare a container environment for executing the received application control command by transmitting a container start command or a container return command for the copy container 222 to the container control unit 221.

[0077] <Processing procedure of container control unit> Next, a processing procedure of the container control unit 221 according to this embodiment will be described with reference to Fig. 10. The processing described below is realized, for example, by the CPU 111 reading a control program stored in the ROM 112 or the internal storage 114 into the RAM 113 and executing the program.

[0078] S1001 indicates a loop process, and the container control unit 221 repeats the processes of S1002 to S1007, S1011 to S1014, and S1021 for all managed containers 222 to 225. In S1002, the container control unit 221 executes a container status acquisition command to the docker engine 511. Next, in S1003, the container control unit 221 acquires a response to the status acquisition command from the docker engine 511. Then, in S1004, the container control unit 221 switches the process depending on the acquired response.

[0079] If the response acquired in S1004 indicates that the container does not exist, the process proceeds to S1005, where the container control unit 221 executes a container creation command for the Docker engine 511. Next, in S1006, the container control unit 221 acquires a response to the container creation command from the Docker engine 511. Then, in S1007, the container control unit 221 switches processing depending on the acquired response. If the acquired response indicates a failure to create a container, the process proceeds to S1021, where the container control unit 221 records the occurrence of a fatal error and continues repeating the process.

[0080] On the other hand, if the response to the container status acquisition command in S1004 is not "container does not exist" or the response to the container creation command in S1007 is successful, the process proceeds to S1011. In S1011, the container control unit 221 switches the process depending on whether the container is started in conjunction with the main body. If it is started in conjunction with the main body, the process proceeds to S1012, where the container control unit 221 executes a container start command for the Docker engine 511. Next, in S1013, the container control unit 221 acquires a response to the container start command from the Docker engine 511. Then, in S1014, the container control unit 221 switches the process depending on the acquired response. Here, if the container start command fails, the process proceeds to S1021, where the container control unit 221 records the occurrence of a fatal error and continues the repeated process. On the other hand, if the container is not started in conjunction with the main body in S1011, or if the container start command does not fail in S1014, the repeated process continues as is.

[0081] By repeating the above process, all containers 222 to 225 managed by the container control unit 221 are generated. Then, containers for which main body linked startup is specified on the container management information 600 of the container management information DB 501 will be in a container running state (i.e., CC_RESPONSE_RUNNING, equivalent to 0x0001). Then, containers for which main body linked startup is not specified will be in a container not running state (i.e., CC_RESPONSE_CREATED, equivalent to 0x0000). When the repeated process ends, proceed to S1041.

[0082] In S1041, the container control unit 221 switches the process depending on whether or not a fatal error was recorded in S1021 in the container startup process for all managed containers 222 to 225. If a fatal error was recorded, the process proceeds to S1042, where the container control unit 221 notifies the operation unit control unit 201 of a request to display a fatal error, and ends the process.

[0083] On the other hand, if no fatal error is recorded, the process proceeds to S1050, where the container control unit 221 starts a receiving process for a container control command and receives a container control command from inside or outside the aircraft. Next, in S1051, the container control unit 221 switches the process depending on the received container control command.

[0084] If the container control command received in S1051 is a container creation command, the process proceeds to S1052, where the container control unit 221 executes the container creation command for the Docker engine 511. If the received container control command is a container start command, the process proceeds to S1053, where the container control unit 221 executes the container start command for the Docker engine 511. If the received container control command is a container stop command, the process proceeds to S1054, where the container control unit 221 executes the container stop command for the Docker engine 511. If the received container control command is a container return command, the process proceeds to S1055, where the container control unit 221 executes the container return command for the Docker engine 511. If the received container control command is a container setting change command, the process proceeds to S1056, where the container control unit 221 executes the container setting change command for the Docker engine 511. If the received container control command is a container stop command, the process proceeds to S1057, where the container control unit 221 executes the container return command for the Docker engine 511. If the received container control command is a container destroy command, the process proceeds to S1058, and the container control unit 221 executes the container destroy command for the docker engine 511. After executing each command, the process proceeds to S1061.

[0085] In S1061, the container control unit 221 receives responses to various commands executed by the docker engine 511. Next, in S1062, the container control unit 221 switches processing depending on the received response. If the response to the command is successful, the process proceeds to S1063, where the container control unit 221 treats the response to the container control command as a success response, and proceeds to S1091. On the other hand, if the response to the command is unsuccessful, the process proceeds to S1064, where the container control unit 221 treats the response to the container control command as a failure response, and proceeds to S1091.

[0086] Also, if the container control command received in S1051 is a container status acquisition command, the process proceeds to S1071, where the container control unit 221 executes a container existence check command for the Docker engine 511. Then, in S1072, the container control unit 221 acquires a response to the container existence check command of S1071 from the Docker engine 511. Then, in S1073, the container control unit 221 switches processing depending on whether the container exists. If the container exists, the process proceeds to S1075, where the container control unit 221 executes a container status acquisition command for the Docker engine 511. Then, in S1076, the container control unit 221 acquires a response to the container status acquisition command from the Docker engine 511. Then, in S1077, the container control unit 221 sets a response to the container control command based on the response to the container status acquisition command, and the process proceeds to S1091. For example, if the container is in a running state (RUNNING) on the docker engine 511, the response to the command control command will be the container running state (CC_RESPONSE_RUNNING, 0x0001). On the other hand, if the container does not exist in S1073, the process proceeds to S1074, where the container control unit 221 sets the container control response to "No container," and the process proceeds to S1091.

[0087] In S1091, the container control unit 221 transmits a response to the container control command determined in the above processing to the source of the control command received in S1050, and returns the processing to S1050.

[0088] With the above control, the container control unit 221 can issue an appropriate command to the Docker engine 511 for controlling containers based on the container control command circulating within the machine, and control each container. By using this configuration, each application that transmits a container control command to the container control unit 221 and receives a response to the container control command does not need to be aware of the type of library that realizes the container. For example, in this embodiment, the general container management library Docker is used for explanation, but the system can also be built using other container management libraries. It is very troublesome to use different container control commands that an application should issue for each container management library. Therefore, by introducing a bridge module that handles general container control like the container control unit 221, the difference in behavior for each container library can be absorbed.

[0089] <Summary> MVC, consisting of Model / View / Controller, is widely known as a common design pattern for applications that achieve a certain function. The view is a module that creates a display screen based on the information indicated by the model. The controller is a module that accepts operations from the user and notifies the model. The model is a module that updates the view based on the operations performed by the user. The MVC model is a design pattern that is often adopted in software with a user interface to increase reusability on multiple platforms.

[0090] However, with the traditional MVC approach alone, the scale of applications running on containers becomes very large, making it difficult to use resources efficiently. Specifically, if all MVC modules are run on a container, there are issues such as the time it takes to run the container in response to operation requests and the amount of resources required also becoming large. This is because the traditional approach considered having an application running to be synonymous with being able to provide all functions to the user.

[0091] In this invention, the idea of ​​MVC is developed and a management method for embedded applications is proposed in which the parts corresponding to the view and controller are provided outside the container and the parts corresponding to the model are managed within the container. This allows an application to be divided into a part that accepts operation requests from the user and a part that executes the operation requests from the user. By switching whether or not to start each part, it is possible to realize effective use of resources. For example, by always starting the parts corresponding to the view and controller, the main firmware can respond to user operations in real time. In addition, by starting the application execution part corresponding to the model on the container as necessary, it is possible to reduce the resources required for the entire system even if multiple applications are installed.

[0092] In order to realize the above-mentioned configuration, an image forming apparatus providing one or more functions according to this embodiment includes one or more first modules that receive requests for the corresponding functions via a user interface, and one or more second modules that execute the functions corresponding to the one or more first modules. The image forming apparatus also includes a first control unit that notifies the corresponding second module of the request received by the one or more first modules, and a second control unit that controls the corresponding second module according to the notification. Furthermore, according to this image forming apparatus, the one or more first modules are always started from the time of starting up the image forming apparatus, and the one or more second modules are generated as containers of an execution environment independent of the operating system, and the starting state is controlled by an instruction from the second control unit. As a result, according to this embodiment, it is possible to effectively utilize hardware resources and ensure responsiveness to user operations by suitably applying container technology to an embedded device.

[0093] <Modification> The present invention is not limited to the above embodiment, and various modifications are possible. According to the present invention, the temporary receiving units 212 to 215 may realize processes and functions other than notifying the main receiving units of the control command. For example, the temporary receiving units 212 to 215 may have a function of communicating with the printer unit control unit 271 and the scanner unit control unit 272 used by each application and judging whether or not a job can be accepted (whether or not it can be executed). In this case, even if the scanner unit control unit 272 is being used by the send job executing unit 242, the PDL job executing unit 243 can execute the print process using the printer unit control unit 271. However, when the scanner unit control unit 272 is being used, the copy job executing unit 241 can reserve the job execution but cannot execute it immediately. The function of judging whether or not a job can be accepted may be configured to be provided in the temporary receiving units 212 to 215 in addition to the configuration provided in each executing unit 241 to 244.

[0094] Further, the temporary receiving units 212 to 215 may have some of the functions of the job executing units 241 to 244. For example, the PDL job executing unit 243 may have a function of temporarily spooling print data notified from the LAN control unit 209 in the RAM 113 or the internal storage 114. However, unless the container control unit 221 activates the PDL container 224, data reception cannot be started, and the start of printing may be delayed accordingly. Therefore, the PDL job temporary receiving unit 214 may temporarily spool the print data in the RAM 113 or the internal storage 114 while the container control unit 221 is executing the activation / recovery process of the PDL container 224. Then, the PDL job executing unit 243 executes the process including the print data already received by the PDL job temporary receiving unit 214 at the start of job execution. This allows the image forming apparatus 100 to start spooling print data without waiting for the container to be activated or restored, thereby reducing processing delays.

[0095] <Other embodiments> 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.

[0096] The 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. Accordingly, the following claims are appended to apprise the public of the scope of the invention. [Explanation of symbols]

[0097] 111: CPU, 211: device / job control unit, 221: container control unit, 511: Docker engine

Claims

1. An image forming apparatus that provides one or more functions, one or more first modules, each of which receives a request for a corresponding function via a user interface; one or more second modules that perform functions corresponding to each of the one or more first modules; a first control unit that notifies the corresponding second module of a request received by the one or more first modules; a second control unit that controls the corresponding second module in accordance with a notification from the first control unit; Equipped with the one or more first modules are activated at the time of booting of the image forming apparatus; The one or more second modules are generated as containers of an execution environment independent of an operating system, and an activation state of the second modules is controlled by an instruction from the second control unit.

2. 2. The image forming apparatus according to claim 1, wherein the second control unit controls an activation state of the one or more second modules in accordance with container management information of a corresponding function.

3. 3. The image forming apparatus according to claim 2, wherein the container management information further includes information regarding allocation of hardware resources for each container.

4. The second control unit is If the container management information of the corresponding function indicates that the function is set to be started in conjunction with the main body, the second module corresponding to the first module is generated and started when the first module is started; An image forming apparatus as described in claim 2 or 3, characterized in that if the container management information of a corresponding function does not indicate that it is set to be started in conjunction with the main body, the corresponding second module is started when the first module accepts a request for the corresponding function.

5. The second control unit is 5. The image forming apparatus according to claim 4, wherein when setting of a corresponding function is started via the user interface, the corresponding second module is generated and started.

6. The second control unit is 6. The image forming apparatus according to claim 4, wherein when it detects that a sheet has been placed on a tray of the image forming apparatus, the image forming apparatus generates and starts the second module corresponding to one or more functions that are predicted to be executed.

7. Further comprising a human presence sensor for detecting a person, The second control unit is An image forming device as described in any one of claims 4 to 6, characterized in that when a person is detected by the human presence sensor within a predetermined range from the image forming device, the second module corresponding to one or more functions predicted to be executed is generated and launched.

8. The first module is An image forming apparatus as described in any one of claims 1 to 7, characterized in that when a control command for a corresponding function is received as a request for the corresponding function, the image forming apparatus obtains the status of the corresponding container from the second control unit, and issues instructions to the second control unit according to the obtained status of the container.

9. 9. The image forming apparatus according to claim 8, wherein the container state includes at least a non-existent state in which the container has not been generated, a non-started state in which the container has not been started, a started state in which the container has been started, and a stopped state in which the container has been stopped.

10. The image forming apparatus according to claim 9, characterized in that the second control unit, in accordance with a notification from the first control unit, temporarily suspends the corresponding container from the started state to the stopped state when: a currently logged-in user logs out; a certain period of time has passed since the completion of a job of the corresponding function without a job being submitted for the function; when hardware resources fall below a predetermined value when starting another container and the container is used infrequently; or when a fatal error occurs.

11. 11. The image forming apparatus according to claim 1, wherein the first module controls a setting screen for a corresponding function as the user interface.

12. 12. The image forming apparatus according to claim 1, wherein the first module has at least a part of the function of the corresponding second module.

13. The second module is 13. The image forming apparatus according to claim 1, further comprising at least one of a function of temporarily spooling the request to the image forming apparatus and a function of determining whether the request to the image forming apparatus is executable.

14. The function of determining whether the request can be executed includes:

14. The image forming apparatus according to claim 13, wherein the determination as to whether the execution is possible is based on an operating state of another function that utilizes the hardware included in the image forming apparatus.

15. 1. A method for controlling an image forming apparatus having one or more first modules that receive requests for respective functions via a user interface, and one or more second modules that execute functions corresponding to the one or more first modules, comprising: a first control step in which a first control unit notifies a corresponding second module of a request accepted by the one or more first modules; a second control step of controlling the corresponding second module in accordance with a notification from the first control unit; Including, the one or more first modules are activated at the time of booting of the image forming apparatus; A method for controlling an image forming apparatus, characterized in that the one or more second modules are generated as containers of an execution environment independent of an operating system, and their startup state is controlled by instructions from the second control unit.

16. A program for causing a computer to execute each step of a control method for an image forming apparatus having one or more first modules that receive requests for corresponding functions via a user interface, and one or more second modules that execute functions corresponding to the one or more first modules, the control method comprising: a first control step in which a first control unit notifies a corresponding second module of a request accepted by the one or more first modules; a second control step of controlling the corresponding second module in accordance with a notification from the first control unit; Including, the one or more first modules are activated at the time of booting of the image forming apparatus; A program characterized in that the one or more second modules are generated as containers of an execution environment independent of an operating system, and their startup state is controlled by instructions from the second control unit.

Citation Information

Patent Citations

  • Information processing device and program

    JP2018129003A

  • Application update method and program

    JP2019101866A

  • Apparatus, information processing system, information processing method, and program

    JP2019153079A

  • Information processing device, information processing method and information processing program

    JP2019175399A

  • Service providing device

    JP2019219866A