Management system, server device, and management method
The management system efficiently applies multiple software updates by determining the number of simultaneous applications and creating cumulative update modules, addressing inefficient update processes.
Patent Information
- Application Number
- JP2023068173
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-04-19
- Publication Date
- 2024-10-31
AI Technical Summary
Inefficient application of updated software due to the need to complete earlier updates before applying later updates, leading to inefficient software update processes.
A management system that includes a server device and electronic devices, where the server determines the number of applications of updated software that can be applied at once, creates a cumulative update software module, and transmits it to the electronic devices for simultaneous application.
Efficient application of multiple software updates by reducing the number of transfers and time required for data transfer, enabling simultaneous update of multiple versions.
Smart Images

Figure 2024154440000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to information processing technology. [Background technology]
[0002] There are several known technologies for updating software built into devices. For example, there are known technologies for scheduling updates depending on the operating status of the device, and technologies for changing the update order of each module depending on the free space in the storage unit of the device (see, for example, Patent Documents 1 and 2). In addition, there is known a technology for dividing update data and downloading it so that it fits within the free space of the storage unit of the device (see, for example, Patent Document 3). [Prior art documents] [Patent documents]
[0003] [Patent Document 1] JP 2021-184242 A [Patent Document 2] JP 2007-213189 A [Patent Document 3] JP 2018-18307 A Summary of the Invention [Problem to be solved by the invention]
[0004] In some cases, software updates for software installed in a device are released in rapid succession. In such cases, the application of the later released software updates cannot proceed until the application of the earlier released software updates is completed, which may result in inefficiency in the application of the software updates. [Means for solving the problem]
[0005] In one embodiment, the management system includes an electronic device and a server device that manages the electronic device. The server device includes a determination unit, a creation unit, and a transmission unit. When update software, which is an update version of software executed by the electronic device, has been released multiple times, the determination unit determines the number of applications of update software that can be applied collectively in updating the software in the electronic device. The creation unit creates a cumulative update software module including the update software a number of times corresponding to the number of applications determined by the determination unit. The transmission unit transmits this cumulative update software module. Meanwhile, the electronic device includes a receiving unit and an update unit. The receiving unit receives the cumulative update software module transmitted by the transmission unit. The update unit collectively applies the update software included in the cumulative update software module for the above-mentioned number of times to update the software. Effect of the Invention
[0006] According to the above aspect, it is possible to efficiently apply multiple software updates. [Brief description of the drawings]
[0007] [Figure 1] FIG. 1 illustrates a configuration of a management system as an example of an embodiment. [Diagram 2] FIG. 2 illustrates an example of a functional configuration of a server device. [Diagram 3] FIG. 13 illustrates an example of a management table. [Figure 4] FIG. 2 is a diagram illustrating an example of a functional configuration of the electronic device. [Diagram 5] FIG. 2 is a diagram illustrating an example of a hardware configuration of an information processing device. [Figure 6] FIG. 11 is a sequence diagram illustrating an example of a software update process. [Figure 7] 13 is a flowchart showing an example of a process content of a software update management process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0008] Hereinafter, the embodiments will be described in detail with reference to the drawings.
[0009] First, a description will be given of Fig. 1. Fig. 1 shows the configuration of a management system as an example of an embodiment.
[0010] The management system 1 is installed within the premises of a facility such as a factory.
[0011] The management system 1 includes a server device 10 and n (n is a positive integer) electronic devices A20a, ..., N20n as components. These components are all connected to a communication network 30, which is, for example, a LAN, and are configured to enable various data to be exchanged between the server device 10 and the electronic devices A20a, ..., N20n via the communication network 30. Note that "LAN" is an abbreviation for Local Area Network.
[0012] The electronic devices A20a, ..., N20n are, for example, IoT devices such as PLCs and data collection devices. Note that "PLC" is an abbreviation for Programmable Logic Controller, and "IoT" is an abbreviation for Internet of Things.
[0013] In this embodiment, the electronic devices A20a, ..., and N20n are assumed to have the same configuration, and unless there is a need to distinguish between them, each of the electronic devices A20a, ..., and N20n will be referred to as "electronic device 20."
[0014] The server device 10 manages the electronic device 20. For example, the server device 10 manages the version of software that is held in the electronic device 20 and executed by the electronic device 20. Also, for example, the server device 10 distributes update software, which is an update version of the software, to the electronic device 20.
[0015] The server device 10 is also connected to a communication network 40, for example, the Internet. An update software registration terminal 50 is connected to the communication network 40. The update software registration terminal 50 is a terminal used by, for example, a manufacturer of the electronic device 20, and is used to register update software in the server device 10.
[0016] Next, the functional configurations of the server device 10 and the electronic device 20 will be described.
[0017] 2 shows an example of the functional configuration of the server device 10. The server device 10 includes a determining unit 11, a creating unit 12, a transmitting unit 13, an update software storage unit 14, and a management table 15.
[0018] When a software update has been released multiple times, the determination unit 11 determines the number of software updates that can be applied collectively in updating the software in the electronic device 20.
[0019] The creating unit 12 creates a cumulative update software module. The cumulative update software module is a software module that includes the update software the number of times corresponding to the number of applications determined by the determining unit 11.
[0020] The transmission unit 13 transmits the cumulative update software module created by the creation unit 12 to the electronic device 20 .
[0021] The update software storage unit 14 stores and holds update software sent from the update software registration terminal 50.
[0022] The management table 15 is a table used for managing the data size of each version of the above-mentioned update software and the version of the software held in the electronic device 20.
[0023] 3 shows an example of the management table 15. This example will be described.
[0024] The "target" field stores identification information about the electronic device 20. For example, "electronic device A" is identification information about the electronic device A 20a.
[0025] The "Version" column stores information indicating the version of update software released for the software executed in the electronic device 20 identified in the "Target" column. The example in Fig. 3 indicates that a total of four versions of update software, V1.0, V1.1, V1.2, and V1.3, have been released for the software executed in the electronic device A 20a.
[0026] The "Size" column stores information on the data size of each version of the update software. In the example of Fig. 3, for example, the data size of the update software for the software executed in the electronic device A20a is shown to be 1.6MB (megabytes) for version V1.3.
[0027] The "Current Status" column stores information indicating the version of the update software most recently applied to the software held in the electronic device 20 identified in the "Target" column. In the example of Fig. 3, for example, the information in the row in which "Current" is stored in the "Current Status" column indicates that update software up to version V1.1 has already been applied to the software held in the electronic device A 20a.
[0028] The above information is included in management table 15. Therefore, by referring to management table 15, it is possible to identify the most recently applied update software version to the software held in each of electronic devices 20 and the update software version that has not yet been applied.
[0029] 4 shows an example of the functional configuration of the electronic device 20. The electronic device 20 includes a receiving unit 21, an updating unit 22, and a storage unit .
[0030] The receiving unit 21 receives the cumulative update software module transmitted by the transmitting unit 13 of the server device 10 .
[0031] The update unit 22 applies the update software contained in the cumulative update software module a number of times corresponding to the aforementioned number of applications determined by the determination unit 11 of the server device 10 to the software executed by the electronic device 20 in a batch, thereby updating the software.
[0032] The storage unit 23 provides a storage area that is used when the electronic device 20 executes various types of information processing.
[0033] The determination of the number of applications by the determination unit 11 of the server device 10 is performed based on the relationship between the storage capacity (free capacity) of the storage unit 23 available for updating software executed in the electronic device 20 and the data size of the update software for the number of applications corresponding to the number of applications. The electronic device 20 may notify the server device 10 of this free capacity.
[0034] Next, an example of the hardware configuration of the server device 10 and the electronic device 20 will be described.
[0035] 5 shows an example of the hardware configuration of an information processing device 60. The server device 10 can be configured using this information processing device 60, and the electronic device 20 can also be configured using this information processing device 60.
[0036] The information processing device 60 includes the following components: a CPU 61, a memory 62, an input device 63, a display device 64, an auxiliary storage device 65, a first communication I / F 66, and a second communication I / F 67. All of these components are connected to an internal bus 68, and are configured to enable data exchange between the components. Note that "CPU" is an abbreviation for Central Processing Unit. Also, "I / F" is an abbreviation for Interface.
[0037] The CPU 61 controls each component of the information processing device 60 by, for example, executing a predetermined program using the memory 62, and enables the server device 10 and the electronic device 20 to provide the functions of each component.
[0038] The input device 63 is, for example, a keyboard and pointing device for inputting instructions, various sensors for measuring various data, and the like.
[0039] The display device 64 is used, for example, to display and output various types of information.
[0040] The auxiliary storage device 65 is, for example, a flash memory or a hard disk drive. The information processing device 60 can store programs and data in the auxiliary storage device 65 and load them into the memory 62 for use.
[0041] The first communication I / F 66 is connected to the communication network 30 , and manages the transmission and reception of various data via the communication network 30 .
[0042] The second communication I / F 67 is connected to the communication network 40 and manages the transmission and reception of various data via the communication network 40 .
[0043] When the server device 10 is configured using the information processing device 60, the CPU 61 provides the functions of the determination unit 11 and the creation unit 12, the first communication I / F 66 provides the function of the transmission unit 13, and the auxiliary storage device 65 provides the function of the update software storage unit 14. The management table 15 is held in the auxiliary storage device 65.
[0044] Furthermore, when the electronic device 20 is configured using the information processing device 60, the first communication I / F 66 provides the function of the receiving unit 21, the CPU 61 provides the function of the update unit 22, and the auxiliary memory device 65 provides the function of the memory unit 23.
[0045] When the server device 10 or the electronic device 20 is configured using the information processing device 60, the information processing device 60 does not need to include all the components shown in Fig. 5, and some components may be omitted depending on the application or conditions. For example, since the electronic device 20 is not directly connected to the communication network 40, the second communication I / F 67 may be omitted when the electronic device 20 is configured using the information processing device 60.
[0046] Next, an example of a procedure for updating software held in the electronic device 20, which is performed in the management system 1 of FIG. 1, will be described with reference to a sequence diagram of FIG.
[0047] First, when new update software for software held in electronic device 20 is released, the update software is registered in server device 10 by update software registration terminal 50 (arrow S100). At this time, server device 10 performs a process of storing the registered update software in update software storage unit 14. Also, at this time, server device 10 performs a process of registering in management table 15, for the newly registered update software, identification information of electronic device 20 holding the software to be updated, version information, and data size information.
[0048] After the update software is registered, the server device 10 requests the electronic device 20 to confirm whether the software update process can be executed (arrow S101). In response to this request, if the electronic device 20 is in a state where the software update process can be executed, the electronic device 20 returns an executable response indicating that the software update process can be executed to the server device 10 (arrow S102).
[0049] When the server device 10 receives the response indicating that the update process can be executed, the server device 10 creates a cumulative update software module (arrow S103), and sends the created cumulative update software module to the electronic device 20 (arrow S104).
[0050] The electronic device 20 executes a software update process using the received cumulative update software module (arrow S105). Upon completion of the software update process, the electronic device 20 sends a notification of the result of the update process to the server device 10 (arrow S106).
[0051] For each of the electronic devices 20 included in the management system 1, the software held in the electronic device 20 is updated according to the above procedure.
[0052] Next, a software update management process performed by the server device 10 will be described. Fig. 7 is a flowchart showing an example of the process contents of the software update management process. This software update management process is a process for realizing the process steps performed by the server device 10 among the process steps shown in the sequence diagram of Fig. 6, and is performed individually for each electronic device 20.
[0053] When the process shown in FIG. 7 is to be performed by a server device 10 configured using an information processing device 60 having the hardware configuration illustrated in FIG. 5, for example, a software update management program describing the process may be executed by a CPU 61.
[0054] When the process of FIG. 7 is started, first, in S201, a process is performed to determine whether or not an unapplied update software that is a later version than the one already applied to the software held in the electronic device 20 is registered in the update software memory unit 14.
[0055] In the determination process of S201, the determination is made based on the context between the version of the update software registered in the update software storage unit 14 and the version of the most recently applied update software. The version of the most recently applied update software is acquired by referring to the management table 15.
[0056] In the determination process of S201, if it is determined that the unapplied update software is registered (if the determination result is YES), the process proceeds to S203. On the other hand, in the determination process of S201, if it is determined that the unapplied update software is not registered (if the determination result is NO), the process proceeds to S202.
[0057] In S202, the process waits for a predetermined time to wait for the registration of new update software, and then the process returns to S201 to again check whether new update software has been registered.
[0058] In S203, the number of unapplied software updates is counted by referring to management table 15, and this number is substituted for variable k. Since the number of unapplied software updates is substituted for variable k, the value of variable k is a positive integer.
[0059] In S204, a process is performed in which a request for confirmation of whether or not the software update process can be executed is transmitted to the electronic device 20. The process of S204 corresponds to the procedure of S101 in the sequence diagram of FIG.
[0060] At this time, the electronic device 20 performs a process to receive this request, and when this request is received, a process to determine whether there is enough time to execute the software update process based on the execution status of other processes at this time point.Then, the electronic device 20 performs a process to transmit information indicating this determination result to the server device 10 as a response to the request.
[0061] In addition, when sending a response indicating that there is room to perform the software update process, the electronic device 20 sends the response together with information indicating the capacity (free capacity) of the memory area in the memory unit 23 that is available for performing the software update process.
[0062] The above-mentioned response process performed in the electronic device 20 corresponds to the procedure of S102 in the sequence diagram of FIG.
[0063] Following the process of S204, in S205, a process is performed in which it is determined whether or not the software update process can be executed on the electronic device 20 based on the above-mentioned response received from the electronic device 20. In this determination process, if it is determined that the update process can be executed (if the determination result is YES), the process proceeds to S207. On the other hand, in this determination process, if it is determined that the update process cannot be executed (if the determination result is NO), the process proceeds to S206.
[0064] In S206, the process waits for a predetermined period of time to allow the electronic device 20 to execute the software update process, and then the process returns to S201 to check again whether any unapplied update software has been registered.
[0065] In S207, a process is performed to acquire the storage capacity (free capacity) of the storage unit 23 available for the electronic device 20 to execute the software update process from the response received from the electronic device 20.
[0066] In S208, a process is performed to determine whether or not the update process for applying the unapplied k updates to the software held in the electronic device 20 can be performed with the free space in the storage unit 23 acquired in the process of S207.
[0067] In the judgment process of S208, first, the data size of each of the k updates of software that have not been applied to the software held in the electronic device 20 is obtained from the management table 15, and the total value of the obtained data sizes is calculated. Then, a comparison is made between the calculated total data size and the free space obtained in the process of S207. Here, if the total data size is equal to or smaller than the free space, it is determined that the update process can be executed. On the other hand, if the total data size is larger than the free space, it is determined that the update process cannot be executed.
[0068] When it is determined in the determination process of S208 that the update process of applying the unapplied k updates can be executed (when the determination result is YES), the process proceeds to S209. On the other hand, when it is determined in the determination process of S208 that the update process of applying the unapplied k updates cannot be executed (when the determination result is NO), the process proceeds to S210.
[0069] The value of the variable k when the determination result in S208 is YES becomes the number of updates that can be applied collectively in software updates in the electronic device 20. In S209, a process is performed to create a cumulative update software module in which k updates that have not yet been applied are combined into one module, and the process then proceeds to S213.
[0070] On the other hand, in S210, a process is performed to determine whether or not the value of the variable k at this time point of the process is 1.
[0071] When the result of the determination in S210 is YES, i.e., when the value of the variable k is 1 and it has been determined in the most recently executed determination process in S208 that the update process for applying one unapplied update software cannot be executed, the process proceeds to S211. Then, in S211, the process is suspended for a predetermined time to wait for an increase in free space in the storage unit 23 that can be used for executing the software update process in the electronic device 20. After that, the process returns to S201, and the process after the confirmation of whether or not the unapplied update software has been registered is executed again.
[0072] On the other hand, when the determination result of the process of S210 is NO, that is, when it is determined that the value of the variable k is greater than 1, the process proceeds to S212, where a process is performed in which the value obtained by subtracting 1 from the current value of the variable k is newly substituted for the variable k. Thereafter, the process returns to S208, and a process is performed again to determine whether or not the electronic device 20 can execute the update process for applying the unapplied k updates.
[0073] For example, when the value of the variable k at the time of executing the determination process of S208 is "3", the process of S208 determines whether or not it is possible to execute the update process that applies the three unapplied software updates. If it is determined in this determination that the update process cannot be executed, the value of the variable k is changed to "2" by the process of S212 executed following the determination process of S210. Therefore, in the process of S208 executed again immediately after the process of S212, it is determined whether or not it is possible to execute the update process that applies the two unapplied software updates.
[0074] As described above, by executing the processes of S208, S210, and S212, the number of software updates that can be applied collectively in software updates in the electronic device 20 is determined.
[0075] The above-described processing steps from S205 to S212 correspond to the procedure of S103 in the sequence diagram of FIG.
[0076] Following the process of S209, a process of S213 is performed in which the cumulative update software module created in the process of S209 is transmitted to the electronic device 20. The process of S213 corresponds to the procedure of S104 in the sequence diagram of FIG.
[0077] At this time, the electronic device 20 performs a process of receiving this cumulative update software module. This process is performed by the receiving unit 21 included in the electronic device 20. Next, the electronic device 20 performs a process of extracting update software from the received cumulative update software module for a number of times corresponding to the number of applications indicated by the value of the variable k at the time of this process, and applying them collectively to the software to be updated, thereby updating the software. This process is performed by the update unit 22 included in the electronic device 20.
[0078] The above-mentioned update process performed in the electronic device 20 corresponds to the procedure of S105 in the sequence diagram of FIG.
[0079] After that, when the above-mentioned update process is completed and the software is properly updated, the electronic device 20 performs a process of transmitting a predetermined update process result notification to the server device 10. This notification transmission process corresponds to the procedure of S106 in the sequence diagram of FIG.
[0080] On the other hand, in the server device 10, following the process of S213, in order to wait for the processing time required for the software update process to be properly performed in the electronic device 20 and for the update process result notification to be transmitted, the server device 10 waits for the execution of the process for a predetermined period of time in S214. Then, in the following S215, the server device 10 performs a process of determining whether or not the update process result notification transmitted from the electronic device 20 has been received.
[0081] In the determination process of S215, if it is determined that the update process result notification has been received (if the determination result is YES), the process proceeds to S216. On the other hand, if it is determined that the update process result notification has not been received (if the determination result is NO), it is determined that the software update process in the electronic device 20 has not been performed appropriately, and the process returns to S213, where the process after the transmission of the cumulative update software module is performed again.
[0082] When the result of the determination process in S215 is YES and it is confirmed that the software update in the electronic device 20 has been properly performed, a process of updating the information in the "Current Status" column in the management table 15 is performed in S216. By this process, the storage position of the "Current" display in the "Current Status" column is changed to a position corresponding to the k-advance update software included in the cumulative update software module.
[0083] When the process of S216 described above is completed, the process returns to S201, and the process from the confirmation of whether or not unapplied update software has been registered is performed again.
[0084] The above-mentioned processes are the software update management process. In the process of Fig. 7, the processes of S207, S208, S210, S211, and S212 are performed by the determination unit 11 included in the server device 10. The process of S209 is performed by the creation unit 12 included in the server device 10, and the process of S213 is performed by the transmission unit 13 included in the server device 10.
[0085] As described above, in the management system 1, when update software has been released multiple times, a cumulative update software module including the number of updates that can be applied collectively in software updates is transferred from the server device 10 to the electronic device 20. Therefore, the number of transfers is reduced compared to transferring multiple updates of update software one at a time, so the time required for the update data transfer process is reduced, and multiple updates of update software can be applied efficiently.
[0086] Although the disclosed embodiments and their advantages have been described in detail above, it will be appreciated that those skilled in the art may make various modifications, additions, and omissions therein without departing from the scope of the present invention as clearly set forth in the claims.
[0087] For example, the updated software registration terminal 50 connected to the communication network 40 in the configuration illustrated in FIG. 1 may be configured to be connected to the communication network 30 instead of the communication network 40.
[0088] Also, for example, information on the version of the software update most recently applied to the software held in each of the electronic devices 20, which is managed in the management table 15 illustrated in Fig. 3, may be managed by the electronic devices 20 themselves. In this case, when the server device 10 executes the software update management process illustrated in Fig. 7, the server device 10 may inquire of the electronic devices 20 about information on the version of the software update most recently applied to the electronic devices 20. Furthermore, the electronic devices 20 may themselves perform a process for determining the number of software updates that can be applied collectively in a software update in the electronic devices 20, and notify the server device 10 of the determined number of applications.
[0089] 7, the free space of the storage unit 23 available for the electronic device 20 to execute the software update process is acquired from the electronic device 20. Alternatively, the server device 10 may perform the process of S208 for determining whether the electronic device 20 can execute the update process by using the free space estimated from the specifications of the electronic device 20 and the process executed by the electronic device 20.
[0090] 7, for example, the value of variable k, which indicates the number of software updates that can be applied collectively in the update process in the electronic device 20, is determined by deducting the number of unapplied software updates by 1. Alternatively, the number of updates may be found by performing a binary search in the range of possible values of variable k, which is from 1 to the number of unapplied software updates.
[0091] Also, for example, instead of defining the difference from the software to be updated as the update software, the entire software that replaces the software to be updated may be defined as the update software.
[0092] Also, for example, the method of consolidating update software as a cumulative update software module may involve unpacking and integrating multiple updates of update software so that the multiple updates can be applied collectively in one application. [Explanation of symbols]
[0093] 1 Management System 10. Server equipment 11 Decision Section 12 Creation Department 13 Transmitter 14 Update software storage unit 15 Management Table 20 Electronic equipment 21 Receiving section 22 Update section 23 Memory section 20a Electronic equipment A 20n Electronic equipment N 30, 40 Communication Network 50 Update software registration terminal 60 Information processing equipment 61 CPU 62 Memory 63 Input Devices 64 Display device 65 Auxiliary storage device 66 First communication I / F 67 Second communication I / F 68 Internal Bus
Claims
1. A management system including an electronic device and a server device that manages the electronic device, The server device includes: a determination unit that, when update software that is an update version of the software executed by the electronic device has been released multiple times, determines the number of applications of the update software that can be applied collectively in updating the software in the electronic device; a generating unit that generates a cumulative update software module including the update software for a number of times corresponding to the number of applications determined by the determining unit; A transmitter for transmitting the cumulative update software module; Equipped with The electronic device includes: a receiving unit that receives the cumulative update software module transmitted by the transmitting unit; an update unit that collectively applies the update software for the number of times included in the cumulative update software module to update the software; Equipped 1. A management system comprising:
2. The management system described in claim 1, characterized in that the determination unit determines the number of applications based on a relationship between the memory capacity available for updating the software in the memory unit provided in the electronic device and the data size of the update software for the number of applications corresponding to the number of applications.
3. The management system according to claim 2 , wherein the determination unit determines the number of applications by using the storage capacity notified from the electronic device.
4. the server device further includes a management table for managing the version of the software stored in the electronic device; The determination unit determines the number of applications of the update software that can be applied collectively in an update of the software of the version that is indicated in the management table as being stored in the electronic device.
4. The management system according to claim 2 or 3.
5. the management table includes information on the data size of each of the update software; The determination unit obtains the data size for each of the software updates for a number of times corresponding to the number of applications from the management table, calculates a total value of the data sizes, and determines the number of applications based on a magnitude relationship between the storage capacity and the total value. The management system according to claim 4 .
6. A server device in a management system including an electronic device and a server device that manages the electronic device, a determination unit that, when update software that is an update version of the software executed by the electronic device has been released multiple times, determines the number of applications of the update software that can be applied collectively in updating the software in the electronic device; a generating unit that generates a cumulative update software module including the update software for a number of times corresponding to the number of applications determined by the determining unit; A transmitter for transmitting the cumulative update software module; A server device comprising:
7. When update software, which is an update version of software executed in an electronic device, is released multiple times, a server device that manages the electronic device, determining a number of applications of the update software that can be applied collectively in updating the software in the electronic device; creating and transmitting a cumulative update software module including the update software for a number of times corresponding to the determined number of applications; The electronic device comprises: receiving the cumulative update software module transmitted from the server device; The software is updated by collectively applying the update software for the number of times included in the cumulative update software module. A management method comprising:
Citation Information
Patent Citations
Device equipment and software update method therefor
JP2007213189A
Construction machine software remote update system
JP2018018307A
Scheduling system and method for online program update
JP2021184242A
