Repeating program, repeating device, and repeating method
The relay program in the relay device uses unique information to streamline data verification, reducing processing load and enhancing efficiency in device management systems by minimizing redundant checks.
Patent Information
- Application Number
- JP2023072295
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-26
- Publication Date
- 2024-11-08
AI Technical Summary
In a device management system where a server instructs multiple external devices to download the same data, the processing load increases due to individual data verification, which is inefficient.
A relay program executed by a relay device that includes a communication unit and a control unit to perform reception, verification, determination, and transmission processes, using unique information such as hash values to reduce the need for individual data verification.
This approach reduces the processing load for confirming data provided to external devices by avoiding unnecessary verification processes, thereby optimizing data management efficiency.
Smart Images

Figure 2024157751000001_ABST
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a relay program or the like for relaying communication between a server and an external device. [Background technology]
[0002] There is known a technology that uses a hash value to detect anomalies in data provided from a server. In the technology disclosed in Patent Document 1, the server distributes data including an encrypted content list and a hash value generated from the content list before encryption to a mobile terminal. The mobile terminal then decrypts the content list, calculates a hash value from the decrypted content list, and compares the calculated hash value with the hash value included in the distributed data to detect whether the content list has been tampered with. [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2018-5613 A Summary of the Invention [Problem to be solved by the invention]
[0004] On the other hand, in a device management system that centrally manages external devices such as image forming apparatuses, it is possible that a server may instruct multiple external devices to download the same data, etc. In such a case, if the data to be downloaded to each external device is checked one by one, the processing load may increase.
[0005] The present disclosure aims to reduce the processing load for validating data provided to a device. [Means for solving the problem]
[0006] One aspect of the present disclosure is a relay program executable by a control unit of a relay device including a communication unit configured to communicate with a server and an external device, and a control unit, the relay program being configured to cause the control unit to execute a receiving process, a matching process, a determination process, and a sending process. In the receiving process, the communication unit receives unique information uniquely provided corresponding to data provided to the external device from the server. The matching process is a process based on the unique information. In the determination process, the provided data is determined to be normal or not. In the sending process, the communication unit transmits an instruction regarding the provided data to the external device based on the matching process. In the matching process, if matching information corresponding to the unique information is stored in the storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. In the determination process, if the matching process fails, the determination process determines whether the provided data corresponding to the unique information that was the target of the matching process is normal or not, and if the matching process is successful, the provided data is not determined.
[0007] According to the above configuration, when the matching process based on the unique information of the data provided to the external device is successful, the determination process of the provided data can be avoided, thereby reducing the processing load for checking the data provided to the device.
[0008] Another aspect of the present disclosure is a relay device corresponding to a computer that operates according to the relay program, and a control method implemented by the relay program. According to such an aspect, it is possible to reduce the processing load for checking data provided to a device. [Brief description of the drawings]
[0009] [Figure 1] FIG. 2 is a block diagram showing a configuration of a management system. [Diagram 2] FIG. 2 is a block diagram showing a configuration of an external device. [Diagram 3] FIG. 2 is a block diagram showing a configuration of a relay device. [Figure 4] 13 is a table showing the configuration of a file DB. [Diagram 5] 1 is a table showing a configuration of a device DB. [Figure 6] 13 is a flowchart of an update relay process. [Figure 7] 13 is a flowchart of a deletion process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0010] Hereinafter, embodiments of the present disclosure will be described with reference to the drawings. Note that the embodiments of the present disclosure are not limited to the following embodiments, and various forms may be adopted as long as they fall within the technical scope of the present disclosure.
[0011] [1. Overview] The management system 1 of this embodiment includes a management server 2, a relay device 3, a plurality of external devices 4, and a plurality of terminals 5 (see FIG. 1).
[0012] The management server 2 and the relay device 3 are connected to a global network G and can communicate with each other via the global network G. The management server 2 and the relay device 3 can communicate with each other, for example, by HTTPS (Hypertext Transfer Protocol Secure). The global network G may be any network, and may be the Internet, for example.
[0013] As an example, the management system 1 may have a function as a mobile management system (in other words, a Mobile Device Management System (MDM system)). Of course, the management system 1 is not limited to this, and may be configured as various systems including a mobile management system. The management server 2 is capable of managing the external devices 4 by communicating with the external devices 4 to be managed via a global network G. As an example, the management server 2 is owned by a provider of the MDM system service, and the relay device 3 is owned by an administrator who manages the external devices 4 using the MDM system.
[0014] [2. External Devices] The external device 4 has a function as an image forming device, and has at least one of a printer function for printing an image based on image data and a scanner function for reading an image on a sheet and generating image data (see FIG. 2). The external device 4 may be configured as a small portable device or as a stationary device.
[0015] As an example, the external device 4 is connected to a global network G and can communicate with the relay device 3 via the global network G. As another example, the external device 4 may be connected to a local network L together with the relay device 3 and can communicate with the relay device 3 via the local network L. The local network L may be a so-called intranet, a wired network, a wireless network such as a wireless LAN, or a mixed wired and wireless network. In addition, the external device 4 may be able to communicate with the relay device 3 via a wired or wireless communication line such as a USB (Universal Serial Bus) or Bluetooth (registered trademark).
[0016] The external device 4 is capable of communicating with the relay device 3, for example, by HTTPS. Although details will be described later, the external device 4 is configured to communicate with the management server 2 via the relay device 3. As an example, the external device 4 may be configured in such a way that it is not capable of communicating with the management server 2 without going through the relay device 3.
[0017] The external device 4 includes a control unit 40, a storage unit 41, a user I / F 42, and a communication unit 43 (see FIG. 2). The external device 4 also includes a printing unit 44 and a reading unit 45, for example.
[0018] The control unit 40 includes a CPU. The storage unit 41 includes, for example, a semiconductor memory such as a ROM, a RAM, a non-volatile RAM (NVRAM), a flash memory, a solid state drive (SSD), etc. In other words, the external device 4 includes a computer including a CPU and a semiconductor memory.
[0019] The storage unit 41 stores a control program 41A (in other words, firmware) for controlling the external device 4, and the control unit 40 operates in accordance with the control program 41A to realize various functions of the external device 4. Note that the various functions realized by the control unit 40 are not limited to those realized by execution of the control program 41A, and some or all of them may be realized using one or more pieces of hardware.
[0020] The user I / F 42 includes an input device for receiving various inputs, such as a button, a touch panel, etc. The user I / F 42 further includes a display device, such as a liquid crystal panel, an LED display device, etc.
[0021] The communication unit 43 is a part for communicating with devices such as the relay device 3 via, for example, the global network G, the local network L, or a communication line such as USB or Bluetooth.
[0022] The printing unit 44 is a unit for realizing the printer function described above, and the reading unit 45 is a unit for realizing the scan function described above. Of course, the external device 4 may be equipped with either the printing unit 44 or the reading unit 45.
[0023] [3. Relay device] The relay device 3 is configured to relay communication between the management server 2 and the external device 4. In other words, the external device 4 communicates with the management server 2 via the relay device 3. The relay device 3 includes a control unit 30, a storage unit 31, a user I / F 32, and a communication unit 33 (see FIG. 3).
[0024] The control unit 30 includes a CPU. The storage unit 31 includes, for example, a semiconductor memory such as a ROM, a RAM, an NVRAM, a flash memory, or an SSD. The storage unit 31 may also include, for example, a hard disk drive (HDD). In other words, the relay device 3 includes a computer including a CPU and a semiconductor memory.
[0025] Various programs including OS 31A and relay program 31B (details will be described later) are installed in relay device 3. Storage unit 31 has a configuration as a non-transitory computer-readable storage medium, and stores programs such as OS 31A and relay program 31B. Various functions of relay device 3 are realized by control unit 30 executing programs such as OS 31A and relay program 31B stored in storage unit 31, which is a non-transitory computer-readable storage medium. Note that the various functions realized by control unit 30 are not limited to being realized by executing programs, and some or all of them may be realized using one or more pieces of hardware.
[0026] The relay program 31B may be pre-installed in the relay device 3, for example. Alternatively, the relay program 31B may be provided in a state stored in a storage medium such as a DVD-ROM or a USB memory, and the relay device 3 may read the relay program 31B from the storage medium and install it in the relay device 3. Alternatively, the relay program 31B may be installed in the relay device 3 by downloading it via the global network G or the local network L, for example.
[0027] In addition, a file DB 31C and a device DB 31D, which will be described later, are stored in the storage unit 31. Also, the storage unit 31 stores an action DB, which is a database for registering actions, which will be described later.
[0028] The user I / F 32 includes an input device, such as a keyboard, a mouse, etc., for accepting various inputs from the administrator. The user I / F 32 further includes a display device, such as a liquid crystal panel, an LED display device, etc.
[0029] The communication unit 33 communicates with devices such as the management server 2, for example, via a global network G. The communication unit 33 also communicates with devices such as the external device 4, for example, via the global network G, a local network L, or a communication line such as USB or Bluetooth.
[0030] Furthermore, as an example, the relay device 3 is capable of communicating with the external device 6 via a local network L (see FIG. 1). Of course, this is not limiting, and the relay device 3 may be capable of communicating with the external device 6 via a global network G. The external device 6 includes a computer and a storage unit 60 for storing various information.
[0031] [4. Functions of the management system] An administrator of the external device 4 manages the external device 4 by accessing a management site in the management server 2 using a Web browser installed in an apparatus such as the terminal 5. The terminal 5 may be, for example, a mobile terminal or a less portable apparatus such as a PC. The management server 2 manages the external device 4 by communicating with the external device 4 via the relay device 3 in accordance with instructions received from the administrator via the management site. The function of managing the external device 4 in the relay device 3 is realized by the control unit 30 executing the relay program 31B.
[0032] As an example, the management system 1 has an action instruction function, a regular monitoring function, and a self-check monitoring function. The action instruction function is a function for causing the external device 4 to execute an action. The action may be, for example, updating various setting values, updating the control program 41A, installing a certificate, downloading a file, transmitting status information, and the like.
[0033] The relay device 3 registers an action to be executed by the external device 4 in an action DB provided in the storage unit 31. The external device 4 also polls the relay device 3 to determine whether or not there is an action to be executed by the external device 4. As an example, the external device 4 transmits a polling command to the external device 4 at periodic timings (e.g., at five-second intervals). When the relay device 3 receives a polling command from the external device 4, it determines whether or not the action to be executed by the external device 4 is registered in the action DB. Then, if the action is registered, the relay device 3 transmits a command indicating the action to be executed to the external device 4.
[0034] The regular monitoring function is a function in which the relay device 3 periodically obtains, from the external device 4, status information indicating the status of the external device 4. Note that the status may be, for example, various setting values related to the image forming function, the remaining amount of the battery 56, the remaining amount of colorant, the remaining amount of paper, the location of the external device 4, the user name of the external device, and the like.
[0035] In addition, the status information includes a status indicating the version of the control program 41A of the external device 4, and a status indicating that this is the first notification of status information after the external device 4 has been started up (hereinafter, a startup flag). The external device 4 transmits status information when it is started up by turning on the power or when it is restarted due to an update of the control program 41A. The startup flag of the status information is then set to ON. On the other hand, the startup flag of status information transmitted for the second or subsequent time after the external device 4 has been started up or restarted is set to OFF.
[0036] The storage unit 31 of the relay device 3 is provided with a management DB that accumulates status information of each external device 4. When the control unit 30 of the relay device 3 receives the status information, it updates the management DB based on the status information.
[0037] The self-check monitoring function is a function that, when a status change occurs in the external device 4, transmits status information indicating the changed status from the external device 4 to the relay device 3. Upon receiving the status information, the control unit 30 of the relay device 3 updates the management DB based on the status information.
[0038] Therefore, for example, the administrator can access the management DB of the relay device 3 via the management site and check the status of the external device 4. In addition, for example, the administrator can request an action for the external device 4 via the management site.
[0039] In addition, the administrator can also manage the external device 4 in the same manner as when using the management server 2, by directly accessing the relay device 3 without going through the management server 2. For example, the administrator can manage the external device 4 by operating the user I / F 34 of the relay device 3, or by accessing a management site in the relay device 3 using a Web browser.
[0040] [5. Updating external device programs] The management server 2 instructs each of the multiple external devices 4 to update the control program 41A via the relay device 3 in accordance with instructions received from the administrator of the external device 4 via the management site. The multiple external devices 4 are, for example, the same or similar devices, and updating the control program 41A means replacing all or part of the current control program 41A in these external devices 4 with the same new program (hereinafter, referred to as an update program).
[0041] Specifically, the management server 2 sequentially transmits a plurality of commands (hereinafter, update instructions) to the relay device 3 via the global network G, instructing each external device 4 to update the control program 41A. Then, upon receiving the update instruction, the relay device 3 communicates with the external device 4 corresponding to the update instruction, and transmits an update instruction to the external device 4 instructing the external device 4 to update the control program 41A. The external device 4 that has received the update instruction acquires the update program via the global network G or the local network L, and updates the control program 41A.
[0042] When the management server 2 updates the control programs 41A of the multiple external devices 4, the file DB 31C and the device DB 31D stored in the storage unit 31 of the relay device 3 are used. However, the file DB 31C and the device DB 31D are not limited to this, and may be stored in the storage unit 60 of the external device 6 accessible by the relay device 3, not limited to the storage unit 31.
[0043] [6. File DB] File DB31C is a database for storing information about update programs, and has the following items as shown in Fig. 4: "File ID", "Data Type", "Hash Value", "Contents", "Creation Date", and "Update Date". Moreover, the records of file DB31C, in other words, each row in the table in Fig. 4, correspond to an update program that is replaced by an update instruction.
[0044] The column corresponding to "file ID" indicates the file ID, which is identification information of the update program corresponding to each record. The field corresponding to "Data Type" indicates the type of control program 41A to be replaced by the update program corresponding to each record. In the present embodiment, as an example, the field indicates that the control program 41A is firmware. However, as described below, the present disclosure can be used to update programs and data other than firmware, and in such a case, information according to the update target is set in the field.
[0045] The column corresponding to "hash value" indicates unique information uniquely provided for each record in correspondence with the update program. In this embodiment, as an example, a hash value generated based on the update program is used as the unique information. The unique information indicated in this column is used as collation information in the collation process described later.
[0046] The column corresponding to "contents" indicates the file name, version, etc. of the update program corresponding to each record. "Date of creation" indicates when the control program 41A that is updated by the update program corresponding to each record was first released.
[0047] "Update date" indicates the time when the update program corresponding to each record was released. Hereinafter, each record in the file DB 31C will also be referred to as file information. In addition, information corresponding to each item of "data type", "content", "creation date", and "update date" in the file information, in other words, information corresponding to items other than "file ID" and "hash value", will also be referred to as additional information.
[0048] Furthermore, in the file DB 31C, a time stamp (not shown) indicating the time when the file information was generated is provided for each file information. [7. Device DB] The device DB 31D stores information about an external device 4 (hereinafter also referred to as an updating device) for which processing to update the control program 41A is being performed in response to an update instruction from the management server 2. As shown in Fig. 5, the device DB 31D has items such as "ID", "file ID", "device ID", "creation date", and "update date". Moreover, the records of the device DB 31D, in other words, each row in the table in Fig. 5 corresponds to an updating device.
[0049] The field corresponding to "ID" indicates identification information of the record. The field corresponding to "File ID" indicates the file ID of the update program to be installed in the updating device corresponding to each record.
[0050] The field corresponding to "device ID" indicates identification information (hereinafter also referred to as device ID) of the updating device corresponding to each record. "Date of creation" indicates the time when the control program 41A to be updated in the updating device corresponding to each record was first released.
[0051] "Update date" indicates the time when the update program used to update the updating device corresponding to each record was released. Hereinafter, each record in the device DB 31D will also be referred to as device information.
[0052] [8. Update relay processing] When the relay device 3 receives an update instruction from the management server 2, it executes an update relay process, judges whether the update program is normal or not, and instructs the external device 4 specified by the update instruction to update the control program 41A. The update relay process will be explained below using the flowchart in Fig. 6. Note that this process is realized by the control unit 30 of the relay device 3 operating in accordance with the relay program 31B. In the following explanation, the subject of the process realized by the control unit 30 operating in accordance with the relay program 31B may be simply referred to as the relay program 31B.
[0053] In S100, the relay program 31B receives an update instruction from the management server 2. The update instruction includes the device ID of the external device 4 (hereinafter, the target device) for updating the control program 41A, and server information (e.g., a URL, etc.) that identifies the server that provides the update program. The update instruction may also include unique information (as an example, a hash value) of the update program corresponding to the update instruction. Whether or not the update instruction includes a hash value is determined, for example, according to a selection by an administrator, etc.
[0054] In the following S105, the relay program 31B executes a deletion process (described in detail later) to delete unnecessary file information contained in the file DB 31C, and then proceeds to S110.
[0055] In S110, the relay program 31B determines whether or not the update instruction includes a hash value, and if a positive determination is obtained (S110: Yes), it proceeds to S115, and if a negative determination is obtained (S110: No), it proceeds to S145.
[0056] In S115, the relay program 31B performs a verification process by determining whether the file DB 31C has file information (hereinafter, target file information) that includes the same hash value (in other words, verification information) as the hash value included in the update instruction. If a positive determination is obtained (S115: Yes), the relay program 31B proceeds to S125, and if a negative determination is obtained (S115: No), the relay program 31B proceeds to S120.
[0057] In S120, the relay program 31B adds new file information corresponding to the update program used for the update according to the update instruction to the file DB 31C. The relay program 31B also generates a file ID corresponding to the update program and adds it to the new file information. Note that the relay program 31B may use, for example, server information included in the update instruction as the file ID. The relay program 31B also adds a hash value included in the update instruction to the new file information as collation information. Then, the relay program 31B proceeds to S145.
[0058] On the other hand, in S125, the relay program 31B determines whether the target file information has additional information as a comparison process (hereinafter, additional determination). If a positive determination is obtained (S125: Yes), the relay program 31B proceeds to S155 as the comparison process has been successful, and if a negative determination is obtained (S125: No), the relay program 31B proceeds to S130.
[0059] In S130, the relay program 31B waits for the progress of the currently executing update relay process for a predetermined waiting time (for example, 30 seconds) as a verification process, and then proceeds to S135. That is, after executing S125, the relay program 31B proceeds to S135 after the waiting time has elapsed.
[0060] In S135, the relay program 31B performs the same addition determination as S125 as a collation process. If a positive determination is obtained (S135: Yes), the relay program 31B proceeds to S155 assuming that the collation process has been successful, and if a negative determination is obtained (S135: No), the relay program 31B proceeds to S140. In other words, in the collation process, if a negative determination is obtained in the first addition determination, another addition determination is performed. However, the present invention is not limited to this, and two or more addition determinations may be performed in a similar manner.
[0061] In S140, the relay program 31B assumes that the update program used in the update instruction has been determined to be abnormal by a determination process described later, and executes error processing before ending this process.
[0062] On the other hand, in S145, the relay program 31B accesses the server using the server information included in the update instruction, and downloads the update program from the server. Then, the relay program 31B performs a judgment process on the downloaded update program, and judges whether the update program is normal or abnormal. Specifically, for example, in the judgment process, if the update program is not compatible with the target device, it may be judged as abnormal. Furthermore, in the judgment process, the version of the update program may be specified. Then, if the judgment process judges the update program to be normal, the relay program 31B executes the processes from S150 onwards. On the other hand, if the update program is judged to be normal, the relay program 31B may end the update relay process.
[0063] In the next step S150, the relay program 31B identifies additional information of the downloaded update program, that is, the data type, content, creation date, and update date, based on the update program. The relay program 31B then stores the identified additional information in the file DB 31C as a part of the file information corresponding to the update program.
[0064] Specifically, if the file DB 31C has file information corresponding to the downloaded update program, the relay program 31B adds the identified additional information to the file information. On the other hand, if the file DB 31C does not have the file information, the relay program 31B adds new file information corresponding to the update program to the file DB 31C. Then, the relay program 31B generates a file ID corresponding to the update program and adds it to the new file information, and also adds the identified additional information to the new file information.
[0065] In the next step S155, the relay program 31B registers an "update instruction" for updating the control program 41A of the target device in the action DB as an action for the target device, and proceeds to S160.
[0066] In S160, the relay program 31B generates information including the ID, the file ID in the file information corresponding to the update program, the creation date, and the update date as device information of the target device, and adds it to the device DB 31D.
[0067] Meanwhile, the control unit 40 of the external device 4 transmits a polling command to the relay device 3 to check whether there is an action to be executed in the external device 4. Then, if the external device 4 is a target device and an "update instruction" is registered in the action DB as an action for the target device, the relay program 31B transmits a command corresponding to the "update instruction" to the target device. At this time, server information of the server that provides the update program is also transmitted to the target device. As a result, the action of "update instruction" is executed (S165).
[0068] The control unit 40 of the target device that has received the command transmits a command to the relay program 31B to instruct the relay program 31B to delete the action corresponding to the command from the action DB. The relay program 31B that has received the command deletes the action from the action DB.
[0069] The control unit 40 of the target device downloads the update program from the server specified by the server information, and updates the control program 41A with the downloaded update program. At this time, the control unit 40 transmits to the relay device 3 whether the download of the update program has been successful or not, and whether the program update has started or not.
[0070] Then, when the update of the control program 41A is completed, the target device is restarted, and the control unit 40 transmits status information resulting from the restart to the relay program 31B. Then, the startup flag of the status information that is transmitted first after the restart is ON. Furthermore, the status information transmitted after the restart includes the version of the update program.
[0071] On the other hand, the relay program 31B grasps the update result of the control program 41A in the target device from various information received from the target device after sending the "update instruction" (S170). Then, the relay program 31B updates the management DB, saves the update result of the control program 41A in the target device, and transmits the update result to the management server 2.
[0072] Specifically, when the target device fails to download the update program, the relay program 31B considers that the target device has failed to update the control program 41A. When the relay program 31B receives status information from the target device in which the startup flag is ON, the relay program 31B grasps the version of the update program contained in the status information. Furthermore, the relay program 31B accesses the file DB 31C and acquires the version of the update program indicated by the "content" in the file information corresponding to the update program. Furthermore, the relay program 31B compares the version of the received update program with the version of the update program acquired from the file DB 31C. Then, when these versions match, the relay program 31B considers that the program update has been successful, and when they do not match, the relay program 31B considers that the program update has failed.
[0073] In the following S175, the relay program 31B deletes the device information corresponding to the target device from the device DB 31D, and ends this process. [9. Deletion process] Next, the deletion process executed in S105 of the update relay process will be described with reference to the flowchart in FIG.
[0074] In S200, the relay program 31B identifies, from among the file information stored in the file DB 31C, old file information that has been stored for a predetermined storage time (for example, one hour) since its creation based on the timestamp of the file DB 31C.
[0075] In the next step S205, the relay program 31B determines, based on the device DB 31D, whether the file information identified in S200 is no longer necessary because all updates to the control program 41A of the external device 4 using the update program corresponding to the file information have been completed.
[0076] Specifically, for each file information identified in S200, the relay program 31B judges whether or not device information having the file ID of the file information is included in the device DB 31D. If a positive judgment is obtained, it is considered that there is an updating device that is being updated using the update program corresponding to the file information. On the other hand, if a negative judgment is obtained, it is considered that there is no updating device, and all updates of the control program 41A of the external device 4 using the update program have been completed. For this reason, the relay program 31B judges that the file information for which a negative judgment is obtained is unnecessary.
[0077] In S210, the relay program 31B deletes the file information determined to be unnecessary from the file DB 31C, and ends this process. [10. Effects] (1) In the update relay process in the above embodiment, if a hash value, which is unique information of an update program, is stored in the file DB31C, the update program determination process is not performed. This reduces the processing load for checking data provided to the external device 4.
[0078] (2) Furthermore, if the hash value of the update program is not stored in the file DB 31C, the hash value is stored in the file DB 31C of the relay device 3, and then the update program is judged. This makes it possible to avoid the judgment process being performed again on an update program that has already been judged.
[0079] (3) In addition, the hash value of the update program is used as unique information and matching information in the matching process, which makes it possible to perform the matching process efficiently. (4) Furthermore, the file DB 31C is stored in the storage unit 31 of the relay device 3 or in the storage unit 60 of the external device 6 that can be accessed by the relay program 31B. This makes it possible to perform the collation process in an optimal manner.
[0080] (5) Furthermore, if the downloaded update program is determined to be normal by the determination process, the additional information of the update program is saved as file information in file DB31C. If the file information in file DB31C, including the hash value of the update program, has the additional information, the matching process is deemed successful. This makes it possible to avoid a situation in which the determination process is performed again on an update program that has been determined to be normal by the determination process.
[0081] (6) In addition, in the verification process, if a negative judgment is obtained in the first addition judgment, the addition judgment is performed again after the waiting time has elapsed. Therefore, even if an update instruction for an update program is received and the verification process is started while the judgment process is being performed in response to the reception of the first update instruction for the update program, the addition judgment can be performed after the judgment process is completed. This makes it possible to more reliably avoid the judgment process being performed again on an update program that has been judged to be normal by the judgment process.
[0082] (7) Furthermore, if the comparison process fails, and if the determination process determines that the update program is normal, the relay device 3 transmits an update instruction for the control program 41A to the external device 4. Furthermore, if the comparison process is successful, the relay device 3 transmits an update instruction for the control program 41A to the external device 4 without performing the determination process. Therefore, when the update instructions for the control program 41A are sequentially transmitted to a plurality of external devices 4, it is possible to avoid performing the determination process for the update program one by one.
[0083] (8) Furthermore, when an update instruction is received, a deletion process is performed. As a result, among the old file information stored in the file DB31C, file information regarding update programs that have not been used to update the control program 41A of the external device 4 can be deleted from the file DB31C. As a result, unnecessary data can be deleted from the file DB31C.
[0084] [11. Other embodiments] (1) In the above embodiment, the external device 4 may be a device other than an image forming device. In the above embodiment, the control program 41A of the external device 4 is firmware, for example. However, programs other than firmware in the external device 4 (e.g., applications, OS, etc.) and data other than programs (e.g., databases, etc.) may also be updated by an update instruction from the management server 2 in the same manner as in the above embodiment.
[0085] (2) In the above embodiment, the hash value of the update program is used as the unique information, but for example, the serial number of the update program may be used as the unique information. In the update relay process, the matching process is successful when the file DB31C contains target file information that contains matching information identical to the unique information contained in the update instruction. However, the present invention is not limited to this, and the matching process may be successful when the file DB31C contains target file information that is not identical to the unique information contained in the update instruction but contains matching information that has a predetermined correspondence with the unique information.
[0086] (3) In addition, in the update relay process, the relay program 31B may transmit the result of a comparison process using the hash value included in the update instruction and the result of a determination process performed as a result of receiving the update instruction to the external device 4 indicated by the device ID included in the update instruction.
[0087] (4) The additional determination in the verification process may be omitted. That is, in the verification process in the update relay process, the relay program 31B may omit S125 to S140, and if a positive determination is obtained in S115, proceed to S155, and if a negative determination is obtained, proceed to S145. Even in such a case, the processing load for checking the data provided to the external device 4 can be reduced.
[0088] (5) In addition, when the external device 4 polls the relay device 3, a command indicating an action is transmitted from the relay device 3 to the external device 4. However, the method of transmission from the relay device 3 to the external device 4 is not limited to this, and various methods can be used.
[0089] (6) Multiple functions possessed by one component in the above embodiments may be realized by multiple components, or one function possessed by one component may be realized by multiple components. Also, multiple functions possessed by multiple components may be realized by one component, or one function realized by multiple components may be realized by one component. Also, part of the configuration of the above embodiments may be omitted. Also, at least part of the configuration of the above embodiments may be added to or substituted for the configuration of another of the above embodiments.
[0090] (7) In addition to the relay device 3 described above, the present disclosure can also be realized in various forms, such as a non-transitory computer-readable storage medium, such as a semiconductor memory or a hard disk drive, in which the relay program 31B is stored, or a relay method corresponding to the update relay processing.
[0091] [12. Correspondence of Wording] In the update relay process, S100 corresponds to the receiving process, S120 corresponds to the matching information storing process, S145 corresponds to the determining process, S150 corresponds to the additional information storing process, S155 and S165 correspond to the sending process, and S160 and S175 correspond to the identifying process. Also, the control program 41A corresponds to the provided data.
[0092] [13. Technical Concepts Disclosed in the Present Specification] [Item 1] A communication unit configured to communicate with a server and an external device; A control unit; A relay program executable by the control unit of a relay device comprising: The control unit, a receiving process of receiving, from the server, unique information uniquely provided corresponding to the data to be provided to the external device by the communication unit; A matching process based on the unique information; A determination process for determining whether the provided data is normal or not; a transmission process of transmitting an instruction regarding the provided data to the external device by the communication unit based on the comparison process; is configured to execute In the matching process, if matching information corresponding to the unique information is stored in a storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. the determination process, when the matching process fails, determines whether the provided data corresponding to the unique information that was the subject of the matching process is normal or not, and, when the matching process is successful, does not perform a determination on the provided data. Broadcast program.
[0093] [Item 2] In the relay program described in item 1, a matching information storage process for storing, in the storage unit, the matching information corresponding to the unique information that is the target of the matching process when the matching process fails, in the control unit; Further, a relay program is configured to be executed.
[0094] [Item 3] In the relay program described in item 2, the unique information is a hash value generated from the provided data corresponding to the unique information, The collation information corresponding to the unique information is the same hash value as the hash value included in the unique information. Broadcast program.
[0095] [Item 4] In the relay program described in any one of items 1 to 3, The storage unit is provided in the relay device. Broadcast program.
[0096] [Item 5] In the relay program described in any one of items 1 to 3, The storage unit is provided in an external device capable of communicating with the relay device via the communication unit. Broadcast program.
[0097] [Item 6] In the relay program described in any one of items 2 to 5, the control unit is configured to further execute an additional information storage process for storing additional information related to the provided data in the storage unit when the provided data is determined to be normal in the determination process, In the matching process, when the matching information corresponding to the unique information is stored in the storage unit, an additional determination is made to determine whether or not the additional information related to the provided data corresponding to the unique information is stored in the storage unit, and when a positive determination is obtained in the additional determination, the matching process is deemed to have been successful. Broadcast program.
[0098] [Item 7] In the relay program described in item 6, In the verification process, if a negative determination is obtained in the addition determination, the addition determination is performed again after a predetermined waiting time has elapsed, and if a positive determination is obtained in the addition determination, the verification process is deemed to have been successful. Broadcast program.
[0099] [Item 8] In the relay program described in any one of items 1 to 7, The transmission process is configured to transmit, to the external device, an instruction to update a program of the external device with the provided data if the determination process determines that the provided data is normal when the comparison process fails, and to transmit, to the external device, an instruction to update a program of the external device with the provided data if the comparison process is successful. Broadcast program.
[0100] [Item 9] In the relay program described in item 8, The control unit, a process of identifying an updating device, which is the external device in which a program update is in progress; a matching information storage process for storing, in the storage unit, the matching information corresponding to the unique information that is the target of the matching process when the matching process fails; a deletion process for deleting, from among the collation information stored in the storage unit, the collation information that has been stored in the storage unit for a predetermined storage time and corresponds to the provided data that is different from the provided data used for updating the updating device; The relay program is further configured to execute the following:
[0101] [Item 10] A communication unit configured to communicate with a server and an external device; A control unit; A relay device comprising: The control unit is a receiving process of receiving, from the server, unique information uniquely provided corresponding to the data to be provided to the external device by the communication unit; A matching process based on the unique information; A determination process for determining whether the provided data is normal or not; a transmission process of transmitting an instruction regarding the provided data to the external device by the communication unit based on the comparison process; is configured to run In the matching process, if matching information corresponding to the unique information is stored in a storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. the determination process, when the matching process fails, determines whether the provided data corresponding to the unique information that was the subject of the matching process is normal or not, and, when the matching process is successful, does not perform a determination on the provided data. Relay device.
[0102] [Item 11] A relay method executable by a relay device configured to communicate with a server and an external device, comprising: receiving unique information uniquely provided corresponding to the data to be provided to the external device from the server; performing a matching process based on the unique information; performing a determination process for determining whether the provided data is normal or not; transmitting an instruction regarding the provided data to the external device based on the matching process; Equipped with In the matching process, if matching information corresponding to the unique information is stored in a storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. the determination process, when the matching process fails, determines whether the provided data corresponding to the unique information that was the subject of the matching process is normal or not, and, when the matching process is successful, does not perform a determination on the provided data. Relay method. [Explanation of symbols]
[0103] 1...management system, 2...management server, 3...relay device, 30...control unit, 31...memory unit, 31B...relay program, 4...external device, 40...control unit, 41...memory unit, 41A...control program, 42...printing unit, 43...reading unit, 5...terminal, 6...external device, 60...memory unit, G...global network, L...local network.
Claims
1. A communication unit configured to communicate with a server and an external device; A control unit; A relay program executable by the control unit of a relay device comprising: The control unit, a receiving process of receiving, from the server, unique information uniquely provided corresponding to the data to be provided to the external device by the communication unit; A matching process based on the unique information; A determination process for determining whether the provided data is normal or not; a transmission process of transmitting an instruction regarding the provided data to the external device by the communication unit based on the comparison process; is configured to execute In the matching process, if matching information corresponding to the unique information is stored in a storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. the determination process, when the matching process fails, determines whether the provided data corresponding to the unique information that was the subject of the matching process is normal or not, and, when the matching process is successful, does not perform a determination on the provided data. Broadcast program.
2. 2. The relay program according to claim 1, a matching information storage process for storing, in the storage unit, the matching information corresponding to the unique information that is the target of the matching process when the matching process fails, in the control unit; Further, a relay program is configured to be executed.
3. 3. The relay program according to claim 2, the unique information is a hash value generated from the provided data corresponding to the unique information, The collation information corresponding to the unique information is the same hash value as the hash value included in the unique information. Broadcast program.
4. 4. The relay program according to claim 1, The storage unit is provided in the relay device. Broadcast program.
5. 4. The relay program according to claim 1, The storage unit is provided in an external device capable of communicating with the relay device via the communication unit. Broadcast program.
6. The relay program according to claim 2 or 3, the control unit is configured to further execute an additional information storage process for storing additional information related to the provided data in the storage unit when the provided data is determined to be normal in the determination process, In the matching process, when the matching information corresponding to the unique information is stored in the storage unit, an additional determination is made to determine whether or not the additional information related to the provided data corresponding to the unique information is stored in the storage unit, and when a positive determination is obtained in the additional determination, the matching process is deemed to have been successful. Broadcast program.
7. 7. The relay program according to claim 6, In the verification process, if a negative determination is obtained in the addition determination, the addition determination is performed again after a predetermined waiting time has elapsed, and if a positive determination is obtained in the addition determination, the verification process is deemed to have been successful. Broadcast program.
8. 4. The relay program according to claim 1, The transmission process is configured to transmit, to the external device, an instruction to update a program of the external device with the provided data if the determination process determines that the provided data is normal when the comparison process fails, and to transmit, to the external device, an instruction to update a program of the external device with the provided data if the comparison process is successful. Broadcast program.
9. 9. The relay program according to claim 8, The control unit, a process of identifying an updating device, which is the external device in which a program update is in progress; a matching information storage process for storing, in the storage unit, the matching information corresponding to the unique information that is the target of the matching process when the matching process fails; a deletion process for deleting, from among the collation information stored in the storage unit, the collation information that has been stored in the storage unit for a predetermined storage time and corresponds to the provided data that is different from the provided data used for updating the updating device; The relay program is further configured to execute the following:
10. A communication unit configured to communicate with a server and an external device; A control unit; A relay device comprising: The control unit is a receiving process of receiving, from the server, unique information uniquely provided corresponding to the data to be provided to the external device by the communication unit; A matching process based on the unique information; A determination process for determining whether the provided data is normal or not; a transmission process of transmitting an instruction regarding the provided data to the external device by the communication unit based on the comparison process; is configured to run In the matching process, if matching information corresponding to the unique information is stored in a storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. the determination process, when the matching process fails, determines whether the provided data corresponding to the unique information that was the subject of the matching process is normal or not, and, when the matching process is successful, does not perform a determination on the provided data. Relay device.
11. A relay method executable by a relay device configured to communicate with a server and an external device, comprising: receiving unique information uniquely provided corresponding to the data to be provided to the external device from the server; performing a matching process based on the unique information; performing a determination process for determining whether the provided data is normal or not; transmitting an instruction regarding the provided data to the external device based on the matching process; Equipped with In the matching process, if matching information corresponding to the unique information is stored in a storage unit, the matching process is deemed successful, and if the matching information is not stored in the storage unit, the matching process is deemed unsuccessful. the determination process, when the matching process fails, determines whether the provided data corresponding to the unique information that was the subject of the matching process is normal or not, and, when the matching process is successful, does not perform a determination on the provided data. Relay method.
Citation Information
Patent Citations
Update method, program, information processing apparatus, and update data generation apparatus
JP2018005613A
