Image processing apparatus, system including device management system and image processing apparatus, control method for image processing apparatus, control method for system, and program

The method addresses the challenge of maintaining device-cloud service connections during firmware updates by using a registration code for automatic reconnection and setting restoration, ensuring seamless service continuity and reducing administrative effort.

JP2024121632APending Publication Date: 2024-09-06CANON KK
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
JP2023028837
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing device management systems face challenges in maintaining a connection between devices and cloud services during firmware updates, particularly when downgrading firmware, which can lead to boot failures and require manual reconnection by administrators.

Method used

A method for managing devices that includes generating a registration code for restoring the connection relationship with the device management system, enabling automatic reconnection and managing the code for seamless service provision during firmware updates, including backup and restoration of settings.

Benefits of technology

Ensures automatic reconnection of devices to the cloud service after firmware updates, reducing administrative burden and preventing boot failures by initializing settings and maintaining service continuity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024121632000001
    Figure 2024121632000001
Patent Text Reader

Abstract

To restore a connection between a device and a cloud service that is disconnected when updating software on the device.SOLUTION: If information on an image processing apparatus has been registered in a device management system in order to receive a service provision, the image processing apparatus acquires, from a device management system, a code for restoring a connection relation with the device management system for a service provision and manages the code, and if update of software occurs in the image processing apparatus that requires the restoration of the connection relation with the device management system for the service provision, restores the connection relation with the device management system using the code.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a device management system for continuously managing an image processing apparatus. [Background technology]

[0002] In recent years, a device management system has been proposed that uses a cloud service (hereinafter referred to as CS) provided on the Internet to manage devices such as multifunction devices. In such a management system, first, an administrator of a tenant (a unit of a user group) of the CS registers a device. Next, the administrator performs device management including firmware (hereinafter referred to as FW) updates and job management for the registered devices. Patent Document 1 discloses a form in which, in a CS and a device connected thereto, when a user instructs the CS to update the FW of the device, the CS transmits an update FW to the device, and the device updates the FW. Here, the connection state between the CS and the device continues to be maintained even after the FW is updated. In this way, in the case of a FW version upgrade, it is common to implement an implementation in which the updated FW performs migration and maintains compatibility with the FW before the update. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] JP 2017-167857 A Summary of the Invention [Problem to be solved by the invention]

[0004] However, in the case of downgrading, the updated FW cannot understand the data of the original structure, which may result in a startup failure. In order to prevent startup failure, a mechanism for initializing various settings when the FW is downgraded is generally built into the device. Therefore, in the system described in Patent Document 1, there is a risk that the connection between the device and the CS will be disconnected when the FW is updated with a downgraded version of the FW. If the connection between the device and the CS is disconnected, the administrator who manages a large number of devices must go to the installation location of each device and check whether the FW update process for the device was successful. Furthermore, after that, the administrator must manually restore the connection between the device and the CS, which places a heavy burden on the administrator.

[0005] The present invention aims to restore a connection between a device and a cloud service that was disconnected when updating the device's software. [Means for solving the problem]

[0006] In order to solve the above problem, the image processing device of the present invention has an acquisition means for acquiring a code from the device management system for restoring a connection relationship with the device management system for the provision of a service when information of the image processing device has already been registered in the device management system in order to receive the provision of a service, a management means for managing the code, and a recovery means for using the code to restore the connection relationship with the device management system when a software update occurs for the image processing device that requires the restoration of the connection relationship with the device management system for the provision of a service. Effect of the Invention

[0007] According to the present invention, it is possible to restore a connection between a device and a cloud service that was disconnected when updating software on the device. [Brief description of the drawings]

[0008] [Figure 1]FIG. 1 is a diagram illustrating a system configuration. [Diagram 2] FIG. 2 is a diagram illustrating a hardware configuration of an information processing device and a device. [Diagram 3] FIG. 2 is a diagram illustrating a software configuration of a device management system. [Figure 4] FIG. 2 is a diagram illustrating a software configuration of a device. [Diagram 5] FIG. 1 is a diagram illustrating firmware management. [Figure 6] 10 is a diagram illustrating an example of data managed by a device management service 109. FIG. [Figure 7] FIG. 13 is a diagram illustrating an example of a task creation screen. [Figure 8] 11 is a flowchart illustrating an example of a device registration process according to the first embodiment. [Figure 9] 11 is a flowchart illustrating an example of a device registration process according to the first embodiment. [Figure 10] 11 is a flowchart showing a FW update task execution process in the first embodiment. [Figure 11] 11 is a flowchart showing a FW update task execution process in the first embodiment. [Figure 12] 1 is a flowchart showing a FW update process in the first embodiment. [Figure 13] 1 is a diagram illustrating a data structure for each FW version. [Figure 14] FIG. 1 is a diagram for explaining a FW version upgrade. [Figure 15] FIG. 13 is a diagram for explaining FW version downgrade. [Figure 16] 13 is a flowchart showing a FW update task execution process in the second embodiment. [Figure 17] 13 is a flowchart showing a FW update task execution process in the second embodiment. [Figure 18] 13 is a flowchart showing a FW update process in the second embodiment. [Figure 19] 13 is a flowchart illustrating an example of a device registration process according to the third embodiment. [Figure 20] 13 is a flowchart illustrating an example of a device registration process according to the third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Example 1 FIG. 1 is a diagram showing the configuration of a device management system according to the present embodiment. The device management system manages a plurality of network devices as management targets, and provides various services to the network devices. In the present embodiment, the network device is an image processing device, but is not limited to this. The network device may be any device capable of communication, and may be, for example, an image forming device, a 3D printer, a notebook computer, a smartphone, or a smart home appliance.

[0010] The devices 102, 103, 104, and 107 are devices managed by a device management system. The devices 102, 103, 104, and 107 are devices capable of network communication, and are, for example, MFPs (Multifunction Peripherals) equipped with a print function and a scan function. The devices may be single-function printers having only a print function as long as they can communicate with the device management system. The devices 102, 103, and 104 are connected to a LAN 105. On the other hand, the device 107 is connected to a LAN 108. The LAN 105 and the LAN 108 are connected to the Internet 120. In this embodiment, an example in which a LAN is used as a network between the Internet 120 and the devices will be described, but the network may be configured to transmit and receive data, and any communication method may be used. For example, the network may be configured as a cellular network such as LTE or 5G, a wireless network, a telephone line, a dedicated digital line, or a combination of these.

[0011] The device management system is a cloud service (hereinafter, referred to as CS) having a device management service 109 and a content management service 110. The cloud service is realized by a virtual machine using resources provided by a data center including an information processing device. The device management service 109 executes a process of registering a device to be managed in the device management system, and manages various information held by the device. The content management service 110 manages content such as firmware (hereinafter, referred to as FW) of the device and extended applications. Note that, in this embodiment, an example in which the device management service 109 and the content management service 110 are realized by different services will be described, but they may be realized within the same service. Each device connected to the LAN 105 and the LAN 108 is connected to the device management service 109 and the content management service 110 of the device management system via the Internet 120. Note that, in this embodiment, an example in which the device management system is realized by a cloud service will be described, but they may be realized by one or more information processing devices such as servers.

[0012] In the device management system, devices are managed for each tenant (unit of user group). Data acquired by the device management service 109 from each device is stored in a dedicated storage area for each tenant. The data stored in the storage area for each tenant can only be referenced by the users and devices of the corresponding tenant. For example, assume that devices 102 to 104 belong to tenant 1 and device 107 belongs to tenant 2 on the device management service 109. In this case, devices 102 to 104 can only access data for tenant 1, and cannot access data for tenant 2. Similarly, device 107 can only access data for tenant 2, and cannot access data for tenant 1.

[0013] Fig. 2 is a diagram showing the hardware configuration of an information processing device and a device. Fig. 2(A) is a diagram showing the hardware configuration of an information processing device that provides a device management service. That is, Fig. 2(A) is an example of an information processing device that provides a device management service 109 and an information processing device that provides a content management service 110. The information processing device has a CPU 201, a ROM 202, a RAM 203, a DKC 205, and an IFC 206. The information processing device may also be equipped with an HDD 217.

[0014] A central processing unit (CPU) 201 is a subject of execution on the hardware and controls the entire information processing device. A read only memory (ROM) 202 is a memory dedicated to reading data, and stores, for example, a basic control program of the information processing device. A random access memory (RAM) 203 is a memory from which data can be read and written. The RAM 203 functions, for example, as a work area for the CPU 201. A disk controller (DKC) 205 controls access to a storage device such as a HDD 207. A hard disk drive (HDD) 212 is an example of a storage device, and stores various programs, data, and the like. Note that, in this embodiment, an example in which the information processing device includes a HDD 205 as a storage device will be described, but this is not limited thereto, and other storage devices such as an SSD and a disk drive that mounts an external medium may be used. An interface controller (IFC) 206 transmits and receives information to and from other network devices via a network. Each component is disposed on a system bus 204. The CPU 201 executes a program for controlling the information processing device stored in the ROM 202 or the HDD 205, thereby comprehensively controlling each component connected to the system bus 204. The information processing device may have an input / output means for realizing input by a user and output to the user. For example, the input means may include a keyboard or a pointing device, and the output means may include a display.

[0015] FIG. 2B is a diagram showing the hardware configuration of the device 102, device 103, device 104, and device 107, which are image processing devices. The image processing device has a CPU 251, a ROM 252, a RAM 253, a HDD 254, an operation unit 255, a network I / F 256, a printer 257, a scanner 258, and a facsimile communication unit 259. The CPU 251 controls the entire image processing device. The ROM 252 is a memory dedicated to reading data, and stores, for example, a basic control program and data of the image processing device. The data stored in the ROM 252 includes, for example, the serial number and model information of the image processing device. The RAM 253 is a memory capable of reading / writing data, and functions as a work area of ​​the CPU 251. The RAM 253 is also used as a receiving buffer and image drawing. The HDD 254 is an example of a storage device, and stores various programs, data, and the like. For example, the HDD 254 records FW, extended applications, font data, and the like.

[0016] The operation unit 255 displays to the user and accepts operations from the user. The operation unit 255 may be configured, for example, by various switches, buttons, and a liquid crystal display unit for displaying messages, or may be configured by a touch panel. By associating input coordinates on the touch panel with display coordinates, a GUI can be configured in which the user can directly operate the screen displayed on the touch panel. The network I / F 256 is a network interface for connecting to a network, and transmits and receives information to and from other network devices and cloud services via the network. The printer 257 prints on recording paper. For example, the printer 257 prints a document read by a reader or image data stored in the HDD 254, or prints image data based on a print job received from an external device. The scanner 258 optically reads a document set on a document tray or an ADF (Auto Document Feeder) and converts it into electronic data. The facsimile communication unit 259 transmits and receives facsimiles. Each of these components is arranged on a system bus 260. The CPU 251 executes a program for controlling the image processing apparatus stored in the ROM 252 or the HDD 255 to comprehensively control each component connected to the system bus 260 .

[0017] Fig. 3 is a diagram showing the software configuration of the device management system. Fig. 3(A) is a diagram showing the software configuration of the device management service 109. The software configuration of the device management service 109 is realized by the CPU 201 of the device management service 109 executing a program stored in the ROM 202 or HDD 205 in the RAM 203. The device management service 109 has a UI control unit 301, a function control unit 302, an authentication unit 304, a communication unit 305, and a DB management unit 307.

[0018] The UI control unit 301 provides a graphical user interface for the user to operate the program. The graphical user interface is configured as a Web page that can be displayed on other client terminals using HTTP (HyperText Transfer Protocol). The graphical user interface may be configured to be displayed on a display provided in the device management service 109.

[0019] The function control unit 302 instructs each function in the device management service 109 to perform various processes according to the instruction of the UI control unit 301 and the request received by the communication unit 305. In this embodiment, the function control unit 302 functions as a generating unit that generates a registration code, which will be described later. The function control unit 302 also registers device information, task information, authentication information, and the like, including the registration code, in a table managed by the DB management unit 307, and manages them. The function control unit 302 also functions as a transmitting unit that controls the communication unit 305 to transmit information including the registration code to a device to be managed, and a unit that controls the enable / disable of communication with the device based on the information received from the device and the managed information. The function control unit 302 functions as a recovery unit that recovers communication between the device and the device management system by enabling communication with the device based on the information received from the device and the managed information. The authentication unit 304 performs authentication processing of a user who has made a login request to the device management service 109. The authentication unit 304 performs authentication processing of a user by using user information for each tenant stored in the DB 308, for example.

[0020] The communication unit 305 controls communication with an external device. For example, the communication unit 305 receives a request from the device 102 or the like that is a management target, and transmits the request contents to the function control unit 302. Furthermore, the communication unit 305 receives a processing result for the request from the device 102 or the like from the function control unit 302, creates response data for the request, and transmits the response to the request source. Furthermore, the communication unit 305 controls HTTP communication, and transmits a Web page received from the UI control unit 301 to a client terminal used by an administrator of a device managed by the device management service 109. The DB management unit 307 instructs the DB 308 to store, delete, update, and acquire various settings, user information, and the like, according to an instruction from the function control unit 302. Furthermore, the DB management unit 307 manages tables of various information used by the device management service 109. For example, the DB management unit 307 in this embodiment manages device information and task information including a registration code of the device. The DB 308 is a database that holds various data and various tables of the device management service 109. The data stored in the DB 308 is managed for each tenant. A user can only access data of the tenant to which he or she belongs, and access to data of other tenants is restricted.

[0021] 3(B) is a diagram showing the software configuration of the content management service 110. The software configuration of the content management service 110 is realized by the CPU 201 of the content management service 110 executing, in the RAM 203, a program stored in the ROM 202 or the HDD 205. The content management service 110 has a UI control unit 351, a function control unit 352, an input / output unit 353, a communication unit 354, and a content management unit 355.

[0022] The UI control unit 351 provides a graphical user interface for the user to operate the program. The graphical user interface is configured as a Web page that can be displayed on other client terminals using HTTP. The graphical user interface may be configured to be displayed on a display provided in the content management service 110.

[0023] The function control unit 352 instructs each function in the content management service 110 to perform various processes according to instructions from the UI control unit 351 and requests received by the communication unit 354. The input / output unit 353 controls input / output of content according to instructions from the function control unit 352. The communication unit 354 controls communication with external devices. For example, the communication unit 354 receives a request from the device 102 or the device management service 109 and transmits the request content to the function control unit 352. The communication unit 354 also receives a processing result for the request from the function control unit 352, creates response data for the request, and transmits the response to the request source. The communication unit 354 also controls HTTP communication and transmits a Web page received from the UI control unit 351 to a client terminal used by an administrator of a device managed by the content management service 110.

[0024] The content management unit 355 instructs the content storage unit 356 to store, delete, update, and acquire content according to instructions from the function control unit 352. The content storage unit 356 is a database that operates in the content management service 110. The content storage unit 356 stores content such as each version of FW used in the device and extended applications.

[0025] Fig. 4 is a diagram showing the software configuration of a device. Fig. 4 shows the software configuration of device 102, device 103, device 104, and device 107, which are image processing apparatuses. The devices have a UI unit 401, a job control unit 402, a network communication unit 403, a task control unit 404, a system data management unit 410, a file system 405, and various applications. In this embodiment, an example will be described in which each device has a cloud connection application 430, a copy application 450, and a send application 460 as applications, but each device may further have other applications.

[0026] A UI (user interface) unit 401 displays a screen on the operation unit 255 and notifies the inside of the system of interactions from the user. A job control unit 402 is a module that controls printing, scanning, and the like while communicating with the printer 257 and the scanner 258 according to instructions from the user and received data. A network communication unit 403 is a module that controls network communication with external devices and cloud services via the network I / F 256. A task control unit 404 is a module that executes a task sent from the device management service 109. The task control unit 404 also functions as an acquisition unit that acquires a task and a registration code from the device management service 109 via the network communication unit 403.

[0027] The file system 405 reads and writes non-volatile data held in the device to the HDD 254. The data held in the device is managed by a system data management unit 410 according to the type of data. In other words, the system data management unit 410 functions as a management unit that manages various data including FW and registration codes. The system data management unit 410 includes a data clear control unit 415 and a firmware update unit 411. A license management unit 412, a setting value management unit 413, and an application management unit 414.

[0028] The firmware update unit 411 manages system data such as FW. The system data managed by the firmware update unit 411 is held in system data 421. In addition, data such as a registration code that is not cleared by the data clear management unit 415 during firmware update is also saved in a temporary storage area of ​​the system data 421. The license management unit 412 manages license information for functions activated by a license. The license information managed by the license management unit 412 is held in license data 422. The setting value management unit 413 manages setting values, which are configuration information. The setting values ​​managed by the setting value management unit 413 are held in setting value data 423. The application management unit 414 manages applications installed in the device. The applications managed by the application management unit 414 are held in app management data 424.

[0029] An operating area and a storage area are provided for each application installed via application management unit 414, and each application holds its own unique data. In this embodiment, an operating area and a storage area are provided for each of cloud connection application 430, copy application 450, and send application 460. Cloud connection application 430 holds its unique data in cloud connection application data 440. Copy application 450 holds its unique data in copy application data 451. Send application 460 holds its unique data in send application data 461.

[0030] The copy application 450 and the send application 460 are system applications. The system applications are pre-installed in the system and integrated with the FW. The copy application 450 is an application that provides a copy function. The send application 460 is an application that provides a send function that transmits scan data over a network. In addition to pre-installed applications, there are also extended applications that can be installed later on the device via the application management unit 414.

[0031] A cloud connection application (hereinafter referred to as a connection application) 430 is an application that may be pre-installed in a firewall or may be distributed later in the form of an extended application. The connection application 430 manages a connection with a device management system. The connection application 430 has a connection management unit 431 and an access token management unit 432 for managing whether or not a cloud connection is possible. The connection management unit 431 uses a registration code to manage a connection relationship for providing services with the device management system, and functions as a recovery means for recovering the connection relationship when the connection relationship is disconnected.

[0032] The data clear control unit 415 of the system data management unit 410 can instruct and execute a data clear of the data managed by the system data management unit 410 and the data managed by each application. The data clear control unit 415 can instruct the deletion of all data, such as formatting the HDD 254, or can instruct a partial clear by acting on the management unit of each data to execute only the necessary clear.

[0033] Fig. 5 is a diagram illustrating firmware management. Fig. 5(A) is a diagram illustrating an example of a firmware management table 500 managed by the content management service 110. The firmware management table 500 is a table that stores firmware information, which is information related to FW. One record represents one piece of firmware information. Each record in the firmware management table 500 includes a model name 501, a firmware version 502, and firmware 503.

[0034] Model name 501 stores the model name of a model to which the FW registered in firmware management table 500 can be applied. Firmware version 502 stores version information of the FW registered in firmware 503. Firmware 503 stores the entity of the FW registered in the content management service 110. Note that in this embodiment, it is assumed that the entity of the FW is stored in firmware 503, but it is also possible to store only the path to the entity of the FW in firmware 503. When only the path is stored in firmware 503, the entity of the FW is configured to be placed as a file in another location.

[0035] 5(B) is a diagram showing an example of a firmware list screen 520. The firmware list screen 520 is a screen provided by the UI control unit 351 of the content management service 110. A firmware list and various buttons are displayed on the firmware list screen 520. Specifically, a model name 521, firmware version 522, an add button 523, a delete button 524, a download button 525, and an end button 526 are displayed on the firmware list screen 520.

[0036] The firmware list displays the model name 521 and firmware version 522 of each FW. The model name 521 and firmware version 522 respectively display the values ​​of the model name 501 and firmware version 502 in the firmware management table 500. The Add button 523 is a button for adding firmware. When the Add button 523 is pressed, an addition screen 540 shown in FIG. 5(C) is displayed. The Delete button 524 is a button for deleting selected firmware information. When the user selects any row in the firmware list and presses the Delete button 524, the data of the record in the firmware management table 500 corresponding to the user's selection is deleted.

[0037] The download button 525 is a button for downloading the selected firmware. When the user selects any line in the firmware list and presses the download button 525 or the delete button 524, the firmware of the record in the firmware management table 500 corresponding to the user's selection is downloaded to the device. The exit button 526 is a button for ending the display of the firmware list. When the user presses the exit button 526, the UI control unit 351 of the content management service 110 ends the firmware list screen 520.

[0038] FIG. 5C is a diagram showing an example of an addition screen 540. The addition screen 540 is a screen provided by the UI control unit 351 of the content management service 110. The addition screen 540 displays a firmware file designation area 541, an OK button 542, and a cancel button 543. The firmware file designation area 541 is an area in which the file path of the FW entity to be added to the content management service 110 is input. A file reference dialogue display button (not shown) may be provided to facilitate input of the file path. When the OK button 542 is pressed with the file path input in the firmware file designation area 541, the content management service 110 adds the FW designated in the firmware file designation area 541 to the firmware management table 500. At this time, the content management service 110 identifies the model name and firmware version of the FW from the attribute information of the FW, etc., sets them to the model name 501 and firmware version 502 of the firmware management table 500, and registers the FW in the firmware 503. When the addition of the FW is completed, the UI control unit 351 ends the addition screen 540. The cancel button 543 is a button for closing the addition screen 540. When the user presses the cancel button 543, the content management service 110 discards the editing results of the addition screen 540, and the UI control unit 351 closes the addition screen 540. Note that, although an example of the management of the FW by the content management service 110 has been described in Fig. 5, the content management service 110 can also manage the extended application in the same way as the FW.

[0039] FIG. 6 is a diagram showing an example of data managed by the device management service 109. FIG. 6(A) shows an authentication information management table 600. In the authentication information management table 600, authentication information of a user (administrator) who uses the device management service 109 is managed. One record in the authentication information management table 600 represents one piece of authentication information. The authentication information management table 600 is managed by the DB management unit 307. Each record in the authentication information management table 600 includes an account 601, a tenant 602, a user name 603, a role 604, and a password 605.

[0040] The account 601 stores an ID for uniquely identifying a user who accesses the device management system. The tenant to which the user belongs 602 stores information about the tenant to which the user belongs. The user name 603 stores the name of the user. The role 604 stores a role assigned to the user. The role indicates the presence or absence of administrator authority. For example, in this embodiment, a value indicating either "admin", which indicates that the user has administrator authority in the tenant, or "general", which indicates that the user is a general user, is stored in the role 604. Note that each tenant must belong to at least one "admin" role, that is, an account with administrator authority. The password 605 is a password entered when a user logs in to the device management system. The device management service 109 of this embodiment performs user authentication processing based on a combination of an account and a password entered by a user who is attempting to log in to the device management system. Note that the method of user authentication is not limited to this, and authentication using information stored in an IC card or biometric authentication may be performed.

[0041] 6(B) shows a device management table 620. In the device management table 620, information on devices managed by the device management system is managed. One record in the device management table 620 represents one piece of device information. The device management table 620 is managed by the DB management unit 307. Each record in the device management table 620 includes a serial number 621, an associated tenant 612, a registration code 623, an activation status 624, an access token 625, a model name 626, and a firmware version 627.

[0042] The serial number 621 stores the serial number of the device. The tenant to which the device belongs 622 stores the value of the tenant to which the device belongs. The registration code 623 stores the registration code used when registering the device. The registration code is a character string that is entered by the user when registering a new device in the device management system. The registration code is generated by a specific algorithm using, for example, the serial number and the time when the registration operation was performed, but the method of generating the registration code is not limited to this.

[0043] The activation status 624 stores a value indicating whether the cloud connection of the device is enabled or disabled. In this embodiment, "ON" is stored when the cloud connection is enabled, and "OFF" is stored when the cloud connection is disabled, but this is not limited to this. When the activation status is "OFF" and there is no access from the device using the value of the registration code 623 for a certain period of time, the value of the registration code 623 becomes invalid and is deleted.

[0044] The access token 625 stores an access token used by the device when the device accesses the device management system. The access token has a different value generated for each device using a specific algorithm. The model name 626 stores the model name of the device. The FW version 627 stores the current FW version of the device. The device management table 620 can also include the device name, network information such as the device's IP address, and the like.

[0045] 6C shows a task management table 630. In the task management table 630, task information managed by the device management system is managed. A task is a process to be executed by a device registered in the device management system, and in this embodiment, an example in which a process for updating the FW of a device is managed by the task management table 630 will be described. One record in the task management table 630 represents one piece of task information. The task management table 630 is managed by the DB management unit 307. Each record in the task management table 630 includes a task ID 631, a target device 632, a FW 633, an execution date and time 634, a connection application 635, a registration code 636, and a result 637.

[0046] Information for uniquely identifying a task is stored in the task ID 631. Note that, in the example shown in Fig. 6(C), numbers starting with 1 are stored in the task ID 631, but this is not limiting. Information for uniquely identifying a device that is the target of the task, i.e., a device whose FW is to be updated, is stored in the target device 632. Note that, in the example shown in Fig. 6(C), the serial number of the device is stored in the target device 632, but this is not limiting.

[0047] In the FW 633, the FW to be updated is stored. In the example shown in FIG. 6(C), the entity of the FW is stored in the FW 633, but the present invention is not limited thereto, and for example, a path to the entity of the FW may be stored. In the execution date and time 634, date and time information on the date and time when the task is executed is stored. In the connection application 635, an extended application type connection application that is installed in the device when the cloud connection of the target device 632 is disabled after the task is executed and the FW to be updated is applied is stored. In the example shown in FIG. 6(C), it is assumed that the entity of the connection application is stored in the connection application 635, but the present invention is not limited thereto, and a path to the entity of the connection application may be stored.

[0048] A registration code for reconnecting to the device management system when the cloud connection of the target device 632 becomes invalid after the task is executed and the FW to be updated is applied is stored in the registration code 636. The result 637 stores the result of the task execution. After the task is executed, the result 637 stores "success" if the task execution is successful, or "failure" if the task fails. Before the task is executed, the result 637 is blank.

[0049] 7 is a diagram showing an example of a task creation screen. The task creation screen 640 is a UI screen used by a user of each tenant of the device management service 109 to issue a FW update instruction to a device registered in the tenant to which the user belongs. The task creation screen 640 is provided by the UI control unit 301 of the device management service 109. The task creation screen 640 includes an affiliated tenant 641, a target device designation area 642, a FW designation area 643, an OK button 644, and a cancel button 645.

[0050] The belonging tenant 641 is the name of the belonging tenant corresponding to the user. The belonging tenant 641 displays the value of the belonging tenant 602 linked to the account used by the user when logging in to the device management service 109. In the example shown in FIG. 7, "Tenant 1" is displayed in the belonging tenant 641. The target device designation area 642 is an area that displays a device corresponding to a tenant in a selectable manner. In the example shown in FIG. 7, the values ​​of the serial number 621 and the model name 626 are displayed as information for identifying the device, but other information may be displayed as long as the information allows the user to identify the device. The user selects and specifies the device for which the FW is to be updated in the target device designation area 642.

[0051] The FW designation area 643 is an area for inputting the file path of the FW entity to be applied to the device for which the FW is to be updated. The user inputs into the FW designation area 643 the file path of the FW entity to be applied to the target device designated in the target device designation area 642. The FW entity file may be a file downloaded from the firmware list screen 520, or may be a FW file obtained by other means. A file reference dialog display button (not shown) may be provided to facilitate input into the FW designation area 643.

[0052] The OK button 644 is a button for executing the update of the FW for the device specified in the target device specification area 642 and the FW specification area 643. When the OK button 644 is pressed, the device management service 109 adds a new record of task information corresponding to the specification contents on the task creation screen 640 to the task management table 630. Specifically, the device management service 109 stores the device information specified in the target device specification area 642 in the target device 632 of the newly added record, and stores the FW file specified in the FW specification area 643 in the FW 633. Furthermore, the device management service 109 registers the time when the OK button 644 is pressed in the execution date and time 634 of the record. Note that the time specified by the user may be registered in the execution date and time 634 of the record, instead of the time when the OK button 644 is pressed. When the addition of the new record corresponding to the specification contents on the task creation screen 640 to the task management table 630 is completed, the device management service 109 closes the task creation screen 640. The cancel button 645 is a button for canceling the creation of the task. When the cancel button 645 is pressed, the device management service 109 discards the edit results of the task creation screen 640 and closes the task creation screen 640.

[0053] Next, the device registration process will be described with reference to Figures 8 and 9. The device registration process is a process for registering a device to be managed in a device management system. Each process executed by the device in the device registration process is realized by the CPU 251 executing a program stored in memory (ROM 252 or HDD 255). Each process executed by the device management system in the device registration process is realized by the CPU 201 of the device management service 109 executing a program stored in memory (ROM 202 or HDD 205).

[0054] In the following, an example of a case where the device 102 is registered in the device management system will be described. First, with reference to FIG. 8, a case where a user starts a device registration process on a screen provided by the UI control unit 301 of the device management service 109 in an information processing device (not shown) or the like will be described. FIG. 8 is a flowchart showing an example of the device registration process in the first embodiment. The device registration process shown in FIG. 8 is started by a user who registers a device logging in to the device management service 109 and then inputting a serial number of a device to be registered on a screen generated by the UI control unit 301 of the device management service 109. In S701, the UI control unit 301 of the device management service 109 accepts the device serial number input by the user and passes it to the function control unit 302. The function control unit 302 stores the received device serial number and the user's belonging tenant in the serial number 621 and the belonging tenant 622 of the device management table 620 managed by the DB management unit 307. The function control unit 302 acquires the user's belonging tenant from the belonging tenant 602 of the authentication information management table 600.

[0055] In S702, the function control unit 302 of the device management service 109 generates a registration code and presents it to the user. Specifically, first, the function control unit 302 generates a registration code and stores it in the registration code 623 of the device management table 620 managed by the DB management unit 307. The function control unit 302 also stores "OFF", which indicates that the cloud connection is disabled, in the activation status 624 of the device management table 620. Thereafter, the function control unit 302 passes the generated registration code to the UI control unit 301. The UI control unit 301 displays the registration code received from the function control unit 302 on a screen generated by the UI control unit 301. The user inputs the registration code displayed on the screen from a screen generated by the UI unit 401 of the device 102.

[0056] In S703, the connection management unit 431 of the connection application 430 of the device 102 transmits the registration code entered by the user and the serial number of the device 102 to the device management service 109. Specifically, the UI unit 401 receives the registration code entered by the user on a screen displayed by the UI unit 401, and passes it to the connection management unit 431 of the connection application 430. The connection management unit 431 obtains its own serial number from the system data 421, and transmits the registration code and its own serial number to the device management service 109 via the network communication unit 403.

[0057] In S704, the function control unit 302 of the device management service 109 receives the serial number and registration code from the device 102 via the communication unit 305. In S705, the function control unit 302 of the device management service 109 determines whether or not the serial number and registration code received from the device 102 have already been registered in the device management table 620 managed by the DB management unit 307. If it is determined that the serial number and registration code received from the device 102 have already been registered in the device management table 620, the process of S706 is performed. On the other hand, if it is determined that the serial number and registration code received from the device 102 have not already been registered in the device management table 620, the process of S707 is performed.

[0058] In S706, the function control unit 302 of the device management service 109 enables the cloud connection of the device 102 and generates an access token. Specifically, the function control unit 302 first sets the value of the enablement status 624 of the device management table 620 managed by the DB management unit 307 to "ON". Next, the function control unit 302 generates an access token for identifying access from the device 102 to the device management service 109. The function control unit 302 stores the generated access token in the access token 625 of the device management table 620. Furthermore, the function control unit 302 deletes the value of the registration code 623 of the device management table 620 that has been used. In S707, the function control unit 302 of the device management service 109 disables the cloud connection of the device 102. Specifically, the function control unit 302 sets the value of the enablement status 624 of the device management table 620 to "OFF". Note that if the value of the enablement status 624 is "OFF", nothing needs to be set.

[0059] In S708, the function control unit 302 of the device management service 109 transmits the result of the device registration process to the device 102 via the communication unit 305. If an access token was generated in S706, the function control unit 302 also transmits the access token to the device 102 together with the result of the device registration process. In S709, the connection management unit 431 of the connection application 430 of the device 102 receives the result of the device registration process from the device management service 109 via the network communication unit 403. If the cloud connection is enabled, the cloud connection application data 440 stores information indicating that the cloud connection is enabled. Furthermore, if an access token is received, the received access token is stored in the access token management unit 432. The access token is used when accessing the device management system thereafter.

[0060] Next, a case where a user operates a device to be registered to start the device registration process will be described with reference to FIG. 9. FIG. 9 is a flowchart showing an example of the device registration process in the first embodiment. The device registration process shown in FIG. 9 is started by a user who registers a device instructing cloud connection on a screen generated by the UI unit 401 of the device 102. In S751, the UI unit 401 of the device 102 transmits a request to enable cloud connection to the device management service 109 of the device management system. Specifically, first, when the UI unit 401 receives a cloud connection instruction from the user, it calls the connection management unit 431. The connection management unit 431 obtains its own serial number from the system data 421 and transmits the obtained serial number to the device management service 109 via the network communication unit 403. Note that, here, it is assumed that the URL (Uniform Resource Locator) of the device management service 109 is incorporated in advance in the connection management unit 431 of the device 102, but it may be provided by another means, such as input by the user.

[0061] In S752, when the function control unit 302 of the device management service 109 receives the serial number of the device 102 via the communication unit 305, it stores the received serial number in the serial number 621 of the device management table 620. Furthermore, the function control unit 302 generates a registration code and stores it in the registration code 623 of the device management table 620. Furthermore, the function control unit 302 stores "OFF", which indicates that the cloud connection is disabled, in the activation status 624 of the device management table 620. In S753, the function control unit 302 of the device management service 109 transmits the registration code generated in S752 to the device 102 via the communication unit 305.

[0062] In S754, the connection management unit 431 of the device 102 receives a registration code from the device management service 109 via the network communication unit 403. Thereafter, the connection management unit 431 passes the received registration code to the UI unit 401. The UI unit 401 displays the received registration code on a screen generated by the UI unit 401. The user logs in to the device management service 109 and then inputs the registration code displayed on the screen into a screen provided by the UI unit 301 of the device management service 109. The user inputs the code into a screen provided by the UI unit 301 of the device management service 109, for example, on an information processing device (not shown). Note that if the screen provided by the UI unit 301 of the device management service 109 can be displayed on the device 102, the user may log in to the device management system and input the registration code on the device 102.

[0063] In S755, the UI control unit 301 of the device management service 109 receives the registration code entered by the user and passes it to the function control unit 302. In S756, the function control unit 302 of the device management service 109 determines whether the received registration code has already been registered in the device management table 620. If it is determined that the received registration code has already been registered in the device management table 620, the process of S757 is performed. On the other hand, if it is determined that the received registration code has not already been registered in the device management table 620, the process of S758 is performed.

[0064] In S757, the function control unit 302 of the device management service 109 stores the tenant to which the user belongs in the belonging tenant 622 of the device management table 620. Furthermore, the function control unit 302 of the device management service 109 enables the cloud connection of the device 102 and generates an access token. The process of enabling the cloud connection of the device 102 and generating an access token is similar to the process of S706, and therefore a detailed description thereof will be omitted. In S758, the function control unit 302 of the device management service 109 disables the cloud connection of the device 102. The process of S758 is similar to that of S707, and therefore a detailed description thereof will be omitted.

[0065] The device 102 executes the process of S759 after a certain time has elapsed since the execution of S754. The time from the execution of S754 to the execution of S759 may be built into the connection management unit 431 in advance, or may be provided by another means, such as by a user inputting it. In S759, the connection management unit 431 of the device 102 transmits a result confirmation request to the device management service 109 to confirm the result of the device registration process. Specifically, the connection management unit 431 acquires its own serial number from the system data 421, issues a result confirmation request including the serial number, and transmits the result confirmation request to the device management service 109 via the network communication unit 403.

[0066] In S760, when the function control unit 302 of the device management service 109 receives a result confirmation request of the device registration process from the device 102 via the communication unit 305, it responds with the result to the device 102. Specifically, first, the function control unit 302 checks whether the cloud connection of the device 102 corresponding to the serial number has been enabled based on the serial number included in the received result confirmation request. The function control unit 302 checks whether the received serial number is stored in the serial number 621 of each record of the device management table 620, and if it is stored, checks whether the value of the enabled status 624 is "ON". If the value of the enabled status 624 is "ON", the function control unit 302 obtains the value of the access token 625 and transmits it to the device 102 together with the result that the registration process was successful. If the received serial number does not exist or the value of the enabled status 624 is other than "ON", the function control unit 302 transmits to the device 102 that the cloud connection is disabled. When the device 102 receives an access token from the device management service 109, the device 102 stores the received access token in the access token management unit 432. The access token is used thereafter when accessing the device management system.

[0067] 8 or 9, the registration of the device 102 in the device management service 109 is completed. Thereafter, the device 102 transmits device information such as the model name and FW version to the device management service 109 using the access token stored in the access token management unit 432. The device management service 109 stores the device information received from the device 102 in the model name 626 and FW version 627 of the device management table 620. The device 102 is able to transmit requests to the device management service 109 using the access token. Also, the device management service 109 can receive instructions from the device management service 109 by polling at regular intervals.

[0068] Next, the FW update task execution process will be described with reference to Fig. 10 and Fig. 11. The FW update task execution process in this embodiment is a process for executing a task for updating the FW of a device. Fig. 10 and Fig. 11 are flowcharts showing the FW update task execution process in the first embodiment. Each process executed by the device in the FW update task execution process is realized by the CPU 251 executing a program stored in the memory (ROM 252 or HDD 255). Each process executed by the device management system in the FW update task execution process is realized by the CPU 201 of the device management service 109 executing a program stored in the memory (ROM 202 or HDD 205).

[0069] In the following, an example will be described in which the FW of the device 102 is updated. The FW update task execution process is started when the user specifies the device to be updated and the FW to be applied on a task creation screen 640 provided by the device management system, and presses an OK button 644. The device management service 109 first performs task creation preparations in steps S801 to S805. In S801, the function control unit 302 of the device management service 109 receives task information of the FW update task created by the user on the task creation screen 640, and stores it in the task management table 630. Details of the storage process are as described in the description of the task creation screen 640 using FIG. 7.

[0070] In S802, the function control unit 302 of the device management service 109 judges whether the FW version specified in S801 is older than the current FW version of the target device. That is, it judges whether the value indicating the FW version specified in S801 is smaller than the value indicating the current FW version of the target device. The process of S802 is executed to judge whether the FW update specified in the task is an FW update that requires the connection relationship between the device and the device management system to be restored. A device generally has a built-in mechanism for initializing various settings when the FW version is downgraded, and the connection between the device and the CS is released during the FW update that involves the downgrading of the FW. Therefore, in S802, it is judged whether the FW update that has occurred is an FW downgrade, thereby judging whether the FW update is an FW update that requires the connection relationship between the device and the device management system to be released and restored. If it is judged that the value indicating the FW version specified in S801 is smaller than the value indicating the current FW version, that is, if it is judged that the FW update requires the connection relationship between the device and the device management system to be restored, the process of S803 is executed. If it is determined that the value indicating the FW version specified in S801 is not smaller than the value indicating the current FW version, the process waits until the request of S806 is received from the device 102. In other words, if it is determined that the FW update is not one that requires the connection relationship between the device and the device management system to be restored, the process waits until the request of S806 is received from the device 102. Note that in this embodiment, it is determined only whether the FW update corresponds to a FW version downgrade, but it may also be determined whether the FW update corresponds to a specific FW version downgrade that requires the connection relationship to be restored accompanied by initialization of system data in the device.

[0071] In S803, the function control unit 302 of the device management service 109 generates a registration code for the device 102. The registration code generated in S803 is a code for recovering the connection between the device management system and the device 102. Specifically, if the registration code 623 of the record in the device management table 620 corresponding to the device 102 to be updated is empty, the function control unit 302 generates a registration code for the target device as in the process of S702 and stores it in the registration code 623. However, the function control unit 302 does not change the activation status 624 corresponding to the device 102, leaving it at "ON". In addition, the function control unit 302 also stores the same registration code as the registration code stored in the registration code 623 in the device management table 620 in the registration code 636 in the task management table 630.

[0072] In S804, the function control unit 302 of the device management service 109 determines whether the FW to be applied to the device 102 specified in S801 includes the connection application 430. For example, the function control unit 302 holds the module name of the connection application 430 in advance, and can determine whether the FW includes the connection application 430 by confirming that a module having the same name is included in the FW. Alternatively, the FW can be determined by storing a file in the FW entity that lists all modules included in the FW, and the function control unit 302 confirming that the module name of the connection application 430 exists in the file. Alternatively, the FW may be determined whether the FW includes the connection application 430 by other means. If the FW to be applied to the device 102 includes the connection application 430, the device management service 109 waits until it receives the request of S806. On the other hand, if the FW to be applied to the device 102 does not include the connection application 430, the device management service 109 performs the process of S805.

[0073] In S805, the function control unit 302 of the device management service 109 acquires a connection app, which is an extended application that can be installed in the FW applied to the device 102. Specifically, the function control unit 302 first identifies a version of the connection app that can be installed in the FW specified in this task, using a list of combinations of the FW version and the connection app version that can be installed in the FW, which has been created in advance. Then, the function control unit 302 acquires the identified version of the connection app from the content management service 110 and stores it in the connection app 635 of the task management table 630. Note that the list of combinations of the FW version and the connection app version that can be installed in the FW version may be held in the content management service 110. In this case, the function control unit 302 transmits version information of the FW specified in this task to the content management service 110, and the content management service 110 identifies the version of the connection app and responds to the device management service 109. Thereafter, the device management service 109 waits until it receives the request in S806. The above processes shown in S801 to S805 complete the task creation preparation by the device management system.

[0074] In S806, the task control unit 404 of the device 102 checks with the device management service 109 at regular intervals whether or not there is a task. If the task creation preparation is completed by the processes from S801 to S805, the device management service 109 executes S807 in response to S806. On the other hand, if no task exists, the device management service 109 responds to S806 with a result such as "no task".

[0075] In S807, the function control unit 302 of the device management service 109 transmits task information and advance preparation information to the device 102. Here, the advance preparation information is information including information of a registration code prepared in advance in S803 for recovering the connection relationship between the device management system and the device 102. Furthermore, if a connection application is prepared in advance in the process of S805, the advance preparation information includes information of the registration code and information of the connection application. The function control unit 302 extracts task information and advance preparation information to be instructed to the device 102 from the task management table 630, and transmits them to the device 102. The task control unit 404 of the device 102 receives the task information and the advance preparation information including the registration code from the device management service 109 via the network communication unit 403, and stores them in a temporary storage area of ​​the system data 421. The task information and advance preparation information are managed in the temporary storage area of ​​the system data 421.

[0076] In S808, the task control unit 404 of the device 102 executes FW update processing based on the task information received from the device management service 109. Specifically, the task control unit 404 receives the task information from the device management service 109 via the network communication unit 403, and stores the task information in a temporary storage area of ​​the system data 421. Then, the task control unit 404 executes FW update processing according to the task information. The FW update processing will be described later with reference to FIG. 12. In S809, the task control unit 404 of the device 102 determines whether or not the FW update processing of S808 was successful. If it is determined that the FW update processing was successful, the task control unit 404 executes the processing of S801. On the other hand, if it is determined that the FW update processing was not successful, the task control unit 404 executes the processing of S818.

[0077] In S810, the task control unit 404 of the device 102 determines whether or not advance preparation information such as a registration code or an extended application type connection application has been received from the device management service 109 in response to the task confirmation request in S806. If it is determined that advance preparation information has been received, the task control unit 404 performs processing of S811. On the other hand, if it is determined that advance preparation information has not been received, the task control unit 404 performs processing of S818.

[0078] In S811, the task control unit 404 of the device 102 determines whether or not the extended connection application received as advance preparation information from the device management service 109 is stored in the temporary storage area of ​​the system data 421. If it is determined that the extended connection application received as advance preparation information from the device management service 109 is stored in the system data 421, the task control unit 404 performs processing of S812. On the other hand, if it is determined that the extended connection application received as advance preparation information from the device management service 109 is not stored in the system data 421, the task control unit 404 performs processing of S813.

[0079] In S812, the task control unit 404 of the device 102 installs the extended application type connection app received as advance preparation information from the device management service 109 in the device 102. Specifically, first, the task control unit 404 retrieves the extended application type connection app from the temporary storage area of ​​the system data 421, and passes it to the application management unit 414. The application management unit 414 installs the received connection app, and holds the entity of the app in the application management data 424. This allows the device 102 to continue to place the connection app 430 therein.

[0080] In S813, the connection management unit 431 of the connection application 430 instructed by the task control unit 404 of the device 102 transmits the registration code received from the device management service 109 and the serial number of the device 102 to the device management service 109. Specifically, the connection management unit 431 obtains the registration code received from the device management service 109 as advance preparation information from the temporary storage area of ​​the system data 421, and transmits it together with its own serial number to the device management service 109 via the network communication unit 403. In S814, the function control unit 302 of the device management service 109 receives the serial number and the registration code from the device 102 via the communication unit 305.

[0081] In S815, the function control unit 302 of the device management service 109 executes a registration process of the device 102 to the device management service 109. In the device registration process in S815, the same processes as S705 to S707 of the device registration process shown in Fig. 8 are executed. In S816, the function control unit 302 of the device management service 109 transmits a result of the registration process to the device 102. The process of S816 is the same as the process of S708. In S817, the connection management unit 431 of the connection application 430 of the device 102 receives the result of the device registration process from the device management service 109 via the network communication unit 403. The process of S817 is the same as the process of S709.

[0082] In S818, the task control unit 404 of the device 102 transmits the task execution result to the device management service 109 via the network communication unit 403 together with the task ID retrieved from the temporary storage area of ​​the system data 421. For example, the task control unit 404 transmits "success" if the FW update process is successful, and transmits "failure" if it is unsuccessful. Note that the information transmitted by the device 102 to the device management service 109 in S818 may be a value that enables the device management service 109 to determine whether the task execution result in the device 102 is a success or failure. In S819, when the function control unit 302 of the device management service 109 receives the task result from the device 102 via the communication unit 305, the function control unit 302 identifies the corresponding record from the task management table 630 using the received task ID, and stores the task result in the result 637.

[0083] Next, details of the FW update process in S808 will be described with reference to Fig. 12. Fig. 12 is a flowchart showing the FW update process in the first embodiment. Each process executed by the device in the FW update process is realized by the CPU 251 executing a program stored in memory (ROM 252 or HDD 255). The following describes an example in which the device 102 executes the FW update process.

[0084] In S901, the task control unit 404 confirms the version of the FW currently running in the device 102 and the version of the FW (FW to be updated) to be applied by the update. In S902, the task control unit 404 judges whether the FW update involves downgrading based on the two versions confirmed in S901. For example, if the value of the FW version to be updated is smaller than the value of the FW version running in the device 102, the task control unit 404 judges that the FW update involves downgrading. In addition, the task control unit 404 also judges that the FW update involves downgrading when it has received advance preparation information such as a registration code or an extended application type connection application from the device management service 109 as a response to the task confirmation request in S807. If the task control unit 404 judges that the FW update involves downgrading the FW, it performs the process of S903. On the other hand, if the task control unit 404 judges that the FW update does not involve downgrading the FW, it performs the process of S904. In this embodiment, it is only determined whether the FW update corresponds to a FW downgrade, but it may also be determined whether the FW update corresponds to a specific FW downgrade that requires the initialization of system data on the device to restore the connection relationship.

[0085] In S903, the task control unit 404 instructs the data clearing management unit 415 to reserve a special clearing process that forcibly executes a clearing process at the first startup after the FW is downgraded. The clear reservation information is stored in a non-volatile area in the data clearing management unit 415. In S904, the firmware update unit 411 performs a process of updating the FW of the device 102 to the FW version instructed by the device management system. Therefore, if the FW update that has occurred is a FW downgrade, the task control unit 404 issues a clear reservation instruction and then executes the downgrade.

[0086] In S905, the firmware update unit 411 judges whether the FW update process in S904 has been successful. If the firmware update unit 411 judges that the FW update process has been successful, it performs the process of S906. On the other hand, if it judges that the FW update process has not been successful, it ends this process. In S906, the firmware update unit 411 restarts the device 102.

[0087] In S907, the data clear control unit 415 determines whether or not a clear instruction exists. Specifically, the data clear control unit 415 determines whether or not clear reservation information exists in a non-volatile area in the data clear control unit 415 while the FW is running after the reboot. If the data clear control unit 415 determines that clear reservation information exists in the data clear control unit 415, it performs processing of S908. On the other hand, if the data clear control unit 415 determines that clear reservation information does not exist in the data clear control unit 415, it ends this processing.

[0088] In S908, the data clear control unit 415 performs a clear process. In the clear process, the data clear control unit 415 clears non-volatile data other than the data stored in the temporary storage area. Specifically, the data clear control unit 415 first initializes the license data 422, the setting value data 423, and the application management data 424. Furthermore, the data clear control unit 415 also initializes the data of system applications such as the copy application data 451 and the send application data 461. Note that the data clear control unit 415 also initializes the system data 421, but maintains the task information and advance preparation information stored in the temporary storage area without erasing it.

[0089] In S909, the firmware update unit 411 restarts the device 102 again. Since the start sequence of S909 is entered in a state in which the data group that may become inconsistent with the FW update is initialized once by the clear process of S908, the device 102 is started without causing a start failure or the like when restarting in S909. In this way, in the case of a FW update accompanied by a version downgrade, a clear process is executed at the first startup to prevent an inconsistent state between the updated FW and the original data. On the other hand, when the FW is downgraded, the connection relationship between the device 102 and the device management system is also cleared by the clear process, so in this embodiment, the connection relationship is restored by the process for reconnection described in FIG. 10 and FIG. 11. Even if the FW is downgraded and various settings are cleared, the device 102 can continue to connect to the device management service 109. As a result, the user can check the execution result of the FW update process on the device management service 109 without going to the device installation location.

[0090] In this embodiment, a clear reservation process (S903) and a clear process (S908) are executed so that the device does not have a startup failure due to the version downgrade. An example of an inconsistent state that occurs when the clear process is not executed will be described with reference to Figs. 13 to 15. Fig. 13 is a diagram for explaining the data structure for each version of FW. In the following, an example will be described in which the FW versions are version V1.00 and version V2.00. Version V2.00 was developed chronologically after V1.00, and was created with the assumption that it will be upgraded from version V1.00. Table schema 1001 shown in Fig. 13(A) shows the data structure of version V1.00. Table schema 1002 shown in Fig. 13(B) shows the data structure of version V2.00. Version V1.00 FW and version V2.00 FW have setting value data of different schemas. In version V2.00, compared to version V1.00, the information of MetaInfo has been increased, and the table has been modified to be managed by dividing it into multiple parts.

[0091] FIG. 14 is a diagram for explaining the version upgrade of FW. A schematic diagram 1010 of FW and data is a schematic diagram of FW and data when the version of FW is upgraded from version V1.00 to version V2.00. An image before update 1011 shows a state in which FW of version V1.00 before the FW update is started while holding the data structure of V1.00. An image immediately after update 1012 shows a state in which FW of version V2.00 immediately after the FW update is started while holding the data structure of V1.00. In this way, when FW is updated from version V1.00 to version V2.00, immediately after the update, the FW after the update has been updated to version V2.00, but the data structure is in a state in which the data structure of version V1.00 is inherited. And, it is common that FW version V2.00 recognizes the old data structure (data structure of version V1.00) and has logic 1014 for converting it to a new data structure in order to execute migration 1013. After upgrading the FW, the device 102 executes data migration, converts the data structure of version V1.00 to the data structure of version V2.00, and can start up without any problems. In this way, when upgrading, data migration is executed, and the data structure before the update can be converted and used by the updated FW.

[0092] FIG. 15 is a diagram for explaining FW downgrade. A schematic diagram 1020 of FW and data is a schematic diagram of FW and data when FW is downgraded from version V2.00 to version V1.00. A pre-update image 1021 shows a state in which FW of version V2.00 before FW update is started while holding the data structure of V2.00. A post-update image 1022 shows a state in which FW of version V1.00 after FW update is started while holding the data structure of V2.00. In this way, when FW is updated from version V2.00 to version V1.00, immediately after the update, the FW after the update has been updated to version V1.00, but the data structure is in a state in which the data structure of version V2.00 is inherited. The FW of version V1.00 cannot understand the data structure of version V2.00, and cannot perform data migration. Therefore, when the version is downgraded, the FW cannot be started, and the state transitions to a state in which the user is prompted to clear the data. When the clear process is performed and the device 102 is started again, the FW of version V1.00 reconstructs data with the structure of V1.00 from scratch, and the device 102 can start up. In this way, when the FW update process is a version downgrade, there are cases where the device cannot start up and an interaction is required to wait for the clear. In order to avoid such a startup failure due to the version downgrade, in this embodiment, the task control unit 404 reserves automatic execution of the clear in advance in S903 and executes the clear process in S908. This makes it possible to automatically clear data without user interaction and start the device 102 without a startup failure. However, since the clear process also releases the connection relationship between the device 102 and the device management system, when updating the FW with a version downgrade, a registration code is prepared in advance and the device 102 is made to acquire it. In addition, if necessary, a connection application, which is an extended application that runs on the updated FW, is prepared in advance and the device 102 is made to acquire it. When the version downgrade is performed, the connection relationship can be restored by using the registration code and connection application acquired before the FW update process.

[0093] As described above, according to this embodiment, even if the firmware is downgraded, various settings are cleared, and the connection between the device 102 and the device management service 109 is also terminated, the device 102 can recover the connection.

[0094] Example 2 In the first embodiment, an example was described in which the device 102 can recover the connection with the device management service 109 even in a case where the FW is downgraded and various settings are cleared. However, the cleared various settings are not recovered, and the user needs to recover these settings manually. In this embodiment, an example is described in which the device 102 can recover various settings that were cleared due to a FW downgrade. Only the differences from the first embodiment are described below.

[0095] The FW update task execution process in the second embodiment will be described with reference to Figs. 16 and 17. The FW update task execution process in this embodiment is a process for executing a task for updating the FW of a device. Figs. 16 and 17 are flowcharts showing the FW update task execution process. Each process executed by the device in the FW update task execution process is realized by the CPU 251 executing a program stored in memory (ROM 252 or HDD 255). Each process executed by the device management system in the FW update task execution process is realized by the CPU 201 of the device management service 109 executing a program stored in memory (ROM 202 or HDD 205).

[0096] In the following, an example of updating the FW of the device 102 will be described. Note that the same processes as those in the FW update task execution process (FIGS. 10 and 11) of the first embodiment will be denoted by the same reference numerals and description thereof will be omitted. The FW update task execution process is started when the user designates the device to be updated and the FW to be applied on a task creation screen 640 provided by the device management system and presses the OK button 644. The processes from S801 to S807 are the same as those described in the first embodiment. The device 102 receives task information and advance preparation information from the device management service 109 as a response to the task confirmation request and executes the FW update process of S1601.

[0097] Details of the FW update process in S1601 will be described with reference to Fig. 18. Fig. 18 is a flowchart showing the FW update process in the second embodiment. Each process executed by the device in the FW update process is realized by the CPU 251 executing a program stored in memory (ROM 252 or HDD 255). In the following, a case where the device 102 executes the FW update process will be described as an example. Note that the same processes as those in the FW update process in the first embodiment (Fig. 12) are denoted by the same reference numerals and description thereof will be omitted.

[0098] The processes from S901 to S903 are the same as those described in the first embodiment. When the FW update that has occurred is a version downgrade, the device 102 performs the process of S1801 after issuing a clear instruction in S903. In S1801, the task control unit 404 instructs the data clear management unit 415 to back up the setting information to be cleared. The data clear management unit 415 that has received the backup instruction specifically backs up the license data 422, the setting value data 423, and the application management data 424. The data clear management unit 415 also backs up the data of the system application, such as the copy application data 451 and the send application data 461. When an extended application is installed, the data clear management unit 415 also backs up the extended application stored in the application management data 424. The data clear management unit 415 also backs up the system data 421, but does not need to back up the task information and advance preparation information stored in the temporary storage area.

[0099] The backed up data is made into a file in, for example, an XML (Extensible Markup Language) format. Note that the format of the backed up data is not limited to the XML format and may be another format. When the backup data is composed of multiple files, it may be archived into one file in a ZIP format or the like. The filed backup data is stored, for example, in a temporary storage area of ​​the system data 421 of the device 102. When the backup data is stored in the temporary storage area of ​​the system data 421 of the device 102, it is desirable to store the backup data in association with task information and advance preparation information that have been temporarily stored in advance.

[0100] Furthermore, the backup data may be temporarily stored in the DB 308 of the device management service 109. When the backup data is temporarily stored in the device management service 109, the task control unit 404 sends the backup data together with its own serial number to the device management service 109 via the network communication unit 403. When the function control unit 302 of the device management service 109 receives the backup data from the device 102 via the communication unit 305, the function control unit 302 temporarily stores the received backup data in the DB 308 in association with the serial number.

[0101] The backup data is data before the FW was downgraded. Therefore, if the backup data is restored as is in the steps described below, the FW may enter a startup inconsistency state, which may cause startup failure of the device 102. Therefore, it is desirable for the data clearing control unit 415 to also back up the data structure (schema) of each setting value.

[0102] When the backup process is completed in S1801, the process of S904 is executed. The processes from S904 to S907 are the same as those in the first embodiment, and therefore the description will be omitted. If it is determined in S907 that a clear instruction exists, the data clear control unit 415 executes the process of S1802. In S1802, the data clear control unit 415 executes the clear process. In the clear process, the data clear control unit 415 clears non-volatile data other than data stored in the temporary storage area. In the clear process in the first embodiment, the data clear control unit 415 maintains the task information and advance preparation information stored in the temporary storage area without deleting them. In the clear process in the second embodiment, the data clear control unit 415 maintains the backup data generated in S1801 in addition to the task information and advance preparation information stored in the temporary storage area without deleting them. Specifically, the data clear control unit 415 first executes initialization of the license data 422, the setting value data 423, and the application management data 424. Furthermore, the data clearing control unit 415 also initializes data of system applications such as copy application data 451 and send application data 461. The data clearing control unit 415 also initializes the system data 421, but maintains the task information, advance preparation information, and backup data stored in the temporary storage area without deleting them. When the clearing process in S1802 is completed, the device 102 is rebooted in S909. The process in S909 is the same as the process described in the first embodiment, and therefore a description thereof will be omitted.

[0103] Returning to the description of the FW update task execution process (FIGS. 16 and 17), when the FW update process of S1601 is completed in the device 102, the process of S809 is executed. Since S809 to S819 are the same as the processes described in the first embodiment, the description will be omitted. When the transmission and reception process of the task result is completed in S818 and S819, the device 102 performs the process of S1602. In S1602, the task control unit 404 of the device 102 restores the backup data backed up in S1801. Specifically, the task control unit 404 acquires its own backup data from the temporary storage area of ​​the system data 421 or the device management service 109, and calls the data clearing control unit 415. The data clearing control unit 415 analyzes the acquired backup data, specifies the restore destination, and restores the data to the license data 422, the setting value data 423, and the application management data 424, respectively. Similarly, the data of the system applications, such as the copy application data 451 and the send application data 461, is also restored. Furthermore, if the backup data includes an extended application, the extended application is handed over to the application management unit 414, and the extended application is installed. The substance of the installed extended application is held in the application management data 424. When performing each restoration process, the data clearing control unit 415 compares the data structure before the FW update, which is included in the backup data, with the current data structure (after the FW update). If the data structures of the data match, it can be determined that the backup data before the FW update is compatible with the data after the FW update, and therefore, even if the data is restored as is, a startup failure of the device 102 will not occur. On the other hand, if the data structures before and after the FW update are different, the data clearing control unit 415 discards the backup data without restoring it.

[0104] As described above, according to this embodiment, even if the FW is downgraded, the device 102 can not only recover the connection with the device management service 109, but also maintain the setting values ​​before the FW update.

[0105] Example 3 In the first and second embodiments, an example has been described in which the device management service 109 generates a registration code when it is determined that the FW of the target device will be downgraded in the FW update task execution process. In the third embodiment, an example will be described in which a registration code for recovering a connection relationship is generated during a device registration process, which is a different timing from the first and second embodiments. Only the differences from the first embodiment will be described below.

[0106] The device registration process in the third embodiment will be described with reference to Fig. 19 and Fig. 20. The device registration process is a process for registering a device to be managed in a device management system. Each process executed by the device in the device registration process is realized by the CPU 251 executing a program stored in memory (ROM 252 or HDD 255). Each process executed by the device management system in the device registration process is realized by the CPU 201 of the device management service 109 executing a program stored in memory (ROM 202 or HDD 205).

[0107] First, a case where a user starts a device registration process on a screen provided by the UI control unit 301 of the device management service 109 in an information processing device (not shown) or the like will be described with reference to Fig. 19. Fig. 19 is a flowchart showing an example of a device registration process in the third embodiment. In Fig. 19, the same processes as those in Fig. 8 are denoted by the same reference numerals and the description thereof will be omitted. The processes from S701 to S705 and S707 are the same as those described in the first embodiment, and therefore the description thereof will be omitted. In S705, the function control unit 302 of the device management service 109 judges whether or not the serial number and registration code received from the device 102 have been registered in the device management table 620. If it is judged that the serial number and registration code received from the device 102 have been registered in the device management table 620, the process of S1901 is performed.

[0108] In S1901, the function control unit 302 of the device management service 109 enables the cloud connection of the device 102, generates an access token, and further generates a registration code for the next registration. That is, in S1901, in addition to the processing of S706 in the first embodiment, a registration code to be used the next time the device 102 is registered in the device management service 109 is generated and stored in the registration code 623 of the device management table 620. When the processing of S1901 is completed, the device management service 109 performs the processing of S1902.

[0109] In S1902, the function control unit 302 of the device management service 109 transmits the result of the device registration process to the device 102 via the communication unit 305. When an access token and a registration code are generated in S1901, the function control unit 302 transmits the access token and the registration code together with the result of the device registration process to the device 102. That is, in the first embodiment, when transmitting a result of successful device registration to the device 102, the access token is transmitted together with the result, but in this embodiment, in addition to the access token, the registration code is transmitted together with the result.

[0110] In S1903, the connection management unit 431 of the connection application 430 of the device 102 receives a result of the device registration process from the device management service 109 via the network communication unit 403. When the cloud connection is enabled, the cloud connection application data 440 stores information indicating that the cloud connection is enabled. When an access token is received, the access token management unit 432 stores the received access token. The access token is used when accessing the device management system from that point on. Furthermore, in this embodiment, when a registration code is received, the task control unit 404 stores the received registration code in a temporary storage area of ​​the system data 421. In this way, in this embodiment, when the device 102 is registered in the device management system, a new registration code that can be used for the next device registration is generated and stored in both the device management service 109 and the device 102.

[0111] Next, a case where a user operates a device to be registered to start device registration processing will be described with reference to Fig. 20. Fig. 20 is a flowchart showing an example of device registration processing in the third embodiment. In Fig. 20, the same processes as those in Fig. 9 are denoted by the same reference numerals and the description thereof will be omitted. The processes from S751 to S756, S758, and S759 are the same as those described in the first embodiment, and therefore the description thereof will be omitted.

[0112] In S705, when the device management service 109 determines that the registration code received from the device 102 has already been registered in the device management table 920, the process of S1951 is performed. In S1951, the function control unit 302 of the device management service 109 stores the tenant to which the user belongs in the tenant 622 of the device management table 620. Furthermore, the function control unit 302 of the device management service 109 enables the cloud connection of the device 102 and generates an access token. The process of enabling the cloud connection of the device 102 and generating an access token is the same as that of S706. Furthermore, in this embodiment, the function control unit 302 generates a registration code to be used when registering the device 102 in the device management service 109 next time, and stores the registration code in the registration code 623 of the device management table 620. That is, in S1951, in addition to the process of S757 in the first embodiment, a process of generating and saving a registration code that can be used next time is performed.

[0113] After a certain time has elapsed since the execution of S754, the device 102 executes the process of S759. In S759, the connection management unit 431 of the device 102 transmits a result confirmation request to the device management service 109 to confirm the result of the device registration process. The device management service 109, which has received the result confirmation request from the device 102, executes the process of S1952. In S1952, the function control unit 302 of the device management service 109 responds to the device 102 with the result of the device registration process. In S1952, in addition to the content transmitted to the device 102 in S760 of the first embodiment, the function control unit 302 also transmits the registration code generated in S1951. Specifically, first, based on the serial number included in the received result confirmation request, the function control unit 302 checks whether the cloud connection of the device 102 corresponding to the serial number has been enabled. The function control unit 302 checks whether the received serial number is stored in the serial number 621 of each record of the device management table 620, and if it is stored, checks whether the value of the enabled status 624 is "ON". If the value of the activation status 624 is "ON", the function control unit 302 acquires the value of the access token 625 and the value of the registration code 623, and transmits them to the device 102 together with a result indicating that the registration process was successful. If the received serial number does not exist or the value of the activation status 624 is other than "ON", the function control unit 302 transmits to the device 102 a message indicating that the cloud connection is disabled.

[0114] If the response to the result confirmation request contains an access token or a registration code, the device 102 performs processing in S1953. In S1853, the task control unit 404 of the device 102 stores the access token received from the device management service 109 in the access token management unit 432 and stores the registration code in a temporary storage area of ​​the system data 421.

[0115] As described above, according to this embodiment, a registration code to be used the next time the device is registered with the device management service 109 can be stored in the device 102 during the device registration process. After that, when it is necessary to restore the connection between the device and the device management system, the connection can be restored using the stored registration code.

[0116] The disclosure of this embodiment includes the following configuration of an image processing device. (Configuration 1) An image processing device, an acquisition means for acquiring, when information of the image processing device has been registered in a device management system in order to receive a service, a code for restoring a connection relationship with the device management system for receiving the service from the device management system; A management means for managing the code; and a recovery means for recovering a connection relationship with the device management system using the code when a software update of the image processing device occurs that requires recovery of a connection relationship for providing services with the device management system. (Configuration 2) 2. The image processing device according to claim 1, wherein the recovery means recovers a connection relationship between the image processing device and the device management system by using an extension application executed on the image processing device after the update and the code. (Configuration 3) 3. The image processing device according to claim 1, wherein the software update is a downgrade of a specified firmware. (Configuration 4) a clearing unit that clears system data of the image processing device after the software update is performed to downgrade the firmware version, 4. The image processing apparatus according to claim 3, wherein the clearing means does not clear the code managed by the management means. The disclosure of this embodiment also includes the following system configuration. (Configuration 5) A system including a device management system that provides a service to an image processing device, and the image processing device, The device management system includes: a generating means for generating a code for restoring a connection relationship with the device management system for providing a service when information of the image processing device has been registered in the device management system; A management means for managing the code; a transmitting means for transmitting the code to the image processing device; a recovery unit that recovers communication between the device management system and the image processing device when the code received from the image processing device has been registered in the device management system; The image processing device includes: an acquisition means for acquiring the code from the device management system; A management means for managing the code; and a recovery means for transmitting the code to the device management system to restore a connection relationship with the device management system when a software update for the image processing device occurs that requires the restoration of a connection relationship with the device management system for the provision of services. (Configuration 6) The system described in configuration 5, wherein the device management system generates the code and transmits the code to the image processing device when an instruction is given to update software of the image processing device that requires recovery of a connection relationship with the device management system for the provision of services. (Configuration 7) The system described in configuration 5 or 6, wherein the transmission means transmits an extension application that can be installed in the software applied to the image processing device together with the code to the image processing device if the software applied to the image processing device by the software update does not include an extension application for connecting to the device management system. (Configuration 8) The system described in configuration 5 is characterized in that the device management system generates the code and transmits it to the image processing device when information about the image processing device is registered in the device management system and a connection relationship with the image processing device for providing a service is enabled.

[0117] (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-mentioned 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.

[0118] Although the preferred embodiments of the present invention have been described above, the present invention is not limited to these embodiments, and various modifications and changes are possible within the scope of the gist of the present invention.

Claims

1. An image processing device, an acquisition means for acquiring, when information of the image processing device has been registered in a device management system in order to receive a service, a code for restoring a connection relationship with the device management system for receiving the service from the device management system; A management means for managing the code; and a recovery means for recovering a connection relationship with the device management system using the code when a software update of the image processing device occurs that requires recovery of a connection relationship for providing services with the device management system.

2. 2 . The image processing apparatus according to claim 1 , wherein the recovery unit recovers a connection relationship between the image processing apparatus and the device management system by using an extension application executed in the image processing apparatus after the update and the code.

3. 3. The image processing apparatus according to claim 1, wherein the software update is a downgrade of a predetermined firmware version.

4. a clearing unit that clears system data of the image processing device after the software update is performed to downgrade the firmware version, 4. The image processing apparatus according to claim 3, wherein said clearing means does not clear said code managed by said management means.

5. A system including a device management system that provides a service to an image processing device, and the image processing device, The device management system includes: a generating means for generating a code for restoring a connection relationship with the device management system for providing a service when information of the image processing device has been registered in the device management system; A management means for managing the code; a transmitting means for transmitting the code to the image processing device; a recovery unit that recovers communication between the device management system and the image processing device when the code received from the image processing device has been registered in the device management system; The image processing device includes: an acquisition means for acquiring the code from the device management system; A management means for managing the code; and a recovery means for transmitting the code to the device management system to restore a connection relationship with the device management system when a software update for the image processing device occurs that requires the restoration of a connection relationship with the device management system for the provision of services.

6. The system described in claim 5, characterized in that the device management system generates and transmits the code to the image processing device when an update of software of the image processing device is instructed, which requires restoring a connection relationship with the device management system for providing services.

7. The system described in claim 5 or 6, characterized in that the transmission means transmits an extension application that can be installed in the software applied to the image processing device together with the code to the image processing device when the software applied to the image processing device by the software update does not include an extension application that connects to the device management system.

8. The system described in claim 5, characterized in that the device management system generates and transmits the code to the image processing device when information of the image processing device is registered in the device management system and a connection relationship with the image processing device for providing services becomes effective.

9. A control method for an image processing device, comprising: acquiring, when information of the image processing device has been registered in a device management system in order to receive a service, a code for restoring a connection relationship with the device management system for receiving the service from the device management system; Managing the code; and when a software update for the image processing device occurs that requires restoring a connection relationship with the device management system for the provision of services to the device management system, the method comprises the step of restoring a connection relationship with the device management system using the code.

10. A method for controlling a system including an image processing device and a device management system that provides a service to the image processing device, comprising: generating a code for restoring a connection relationship with the device management system for providing a service when information of the image processing device has been registered in the device management system; the device management system managing the code; the device management system transmitting the code to the image processing device; the image processing device acquiring the code from the device management system; a step of managing the code by the image processing device; when a software update of the image processing device occurs that requires recovery of a connection relationship with the device management system for providing a service, the image processing device transmits the code to the device management system to recover the connection relationship with the device management system; and if the code received from the image processing device has already been registered in the device management system, the device management system restores communication between the device management system and the image processing device.

11. A program for causing a computer of an image processing apparatus to execute each step according to claim 9.

Citation Information

Patent Citations

  • Device management system

    JP2006048113A

  • Information processor, information updating method, and program therefor

    JP2008117060A

  • Power saving control apparatus and program

    JP2011037174A

  • Information processing device, control method of the same, and program

    JP2016020034A

  • Information processing apparatus, method of updating firmware of information processing apparatus, and program

    JP2019125047A