Information processing method, electronic device, and program
The information processing method and system address the challenge of updating firmware across electronic devices by using a network tree structure to ensure functional consistency, allowing for reliable updates and maintaining system functionality.
Patent Information
- Application Number
- PCT/JP2024/014277
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2024-04-08
- Publication Date
- 2024-10-31
AI Technical Summary
Existing systems face challenges in appropriately updating firmware across electronic devices, particularly when the operating state is abnormal, and ensuring functional consistency among multiple connected devices, which can lead to inconvenience and device unavailability.
An information processing method and system that identifies and updates software combinations across electronic devices based on a network tree structure, ensuring that firmware updates are performed in a manner that maintains functional consistency, regardless of the network topology or device positions, by designating host and dependent devices and using a version table to specify compatible firmware versions.
Enables reliable and functional firmware updates for electronic devices, preventing operational issues and ensuring that all devices maintain compatible firmware versions, thus maintaining system functionality and preventing device unavailability.
Smart Images

Figure JP2024014277_31102024_PF_FP_ABST
Abstract
Description
Information processing method, electronic device, and program
[0001] The present technology relates to an information processing method, an electronic device, and a program, and in particular to an information processing method, an electronic device, and a program that enable appropriate software updates, for example.
[0002] For example, Patent Document 1 describes a technology that provides a first communication path for communication between a camera and an interchangeable lens and a second communication path for communication between the camera and an intermediate accessory, and enables updating of the firmware (FW) of either the interchangeable lens or the intermediate accessory even if the operating state of the other is abnormal. In Patent Document 1, the network topology of the camera, interchangeable lens, and intermediate accessory is a star topology with the camera at the center.
[0003] Japanese Patent Publication No. 2020-008845
[0004] There is a demand for technology that can properly update the firmware and other software of each electronic device in systems in which various electronic devices are connected to various network topologies, in addition to the system described in Patent Document 1 in which cameras, interchangeable lenses, and intermediate accessories are connected in a star-shaped network topology.
[0005] The present technology has been made in view of such circumstances, and makes it possible to appropriately update software.
[0006] The information processing method of the present technology is an information processing method that includes identifying combinations of software that can be combined and used in multiple connected electronic devices based on the multiple electronic devices, and updating the software of the multiple electronic devices so that the software of the multiple electronic devices becomes the identified combination.
[0007] The electronic device of the present technology is an electronic device that can become one of a plurality of electronic devices, including a control unit that identifies a combination of software that can be combined and used in the plurality of electronic devices based on the plurality of connected electronic devices, and updates the software of the plurality of electronic devices so that the software of the plurality of electronic devices becomes the identified combination.
[0008] The program of the present technology is a program that causes a computer to execute a process of identifying combinations of software that can be combined and used in multiple connected electronic devices based on the multiple electronic devices, and updating the software of the multiple electronic devices so that the software of the multiple electronic devices becomes the identified combination.
[0009] In this technology, a combination of software that can be used in combination on multiple connected electronic devices is identified, and the software on the multiple electronic devices is updated so that the software on the multiple electronic devices matches the identified combination.
[0010] The program can be provided by transmitting it via a transmission medium or by recording it on a recording medium.
[0011] 1 is a block diagram illustrating an example of a configuration of an embodiment of an information processing system to which the present technology is applied. FIG. 1 is a diagram illustrating an overview of processing of a drone system when the information processing system 10 is applied to a drone system and the FW of the drone system is updated by FOTA (Firmware Over the Air) as a data update. FIG. 2 is a diagram illustrating an example of inconvenience that occurs when the FW of an electronic device is updated unconditionally. FIG. 3 is a diagram illustrating an example of a network tree structure. FIG. 4 is a diagram illustrating an example of FW updates of electronic devices that are performed in order from electronic devices that are leaf nodes in the network tree structure to a host device that is the root node. FIG. 5 is a block diagram illustrating an example of configurations of electronic devices 11 to 14 that constitute the information processing system 10. FIG. 6 is a diagram illustrating an example of processing for updating the FW of accessory A when the information processing system 10 is composed of a host device and accessory A. FIG. 7 is a diagram illustrating an example of processing for updating the FW of accessories A to C when the information processing system 10 is composed of a host device and accessories A to C. FIG. 8 is a flowchart illustrating an example of processing for updating the FW of electronic devices performed by the information processing system 10. FIG. 9 is a diagram illustrating an example of processing for specifying the network tree structure in step S201. FIG. 10 is a diagram illustrating an example of a device list generated by specifying the network tree structure in step S201. FIG. 1 is a diagram showing an example of a network tree structure identified in the identification of the network tree structure in step S201. FIG. 2 is a flowchart explaining an example of the process of identifying the network tree structure in step S201. FIG. 3 is a diagram showing an example of a version table stored in the data server 23. FIG. 4 is a flowchart explaining an example of the process of identifying a combination of FW versions that can be combined and used in step S203. FIG. 5 is a diagram explaining an example of the process of selecting a target row in step S223 and identifying a combination of FW versions that can be combined and used in step S227. FIG. 6 is a diagram explaining another example of the process of selecting a target row in step S223 and identifying a combination of FW versions that can be combined and used in step S227. FIG. 7 is a flowchart explaining an example of the process of updating FW based on the identified combination in step S204. FIG. 8 is a flowchart explaining a first example of the process of updating FW of the target device in step S235.Fig. 10 is a flowchart illustrating a second example of the process of updating the FW of the target device in step S235. Fig. 11 is a block diagram illustrating an example of the configuration of an embodiment of a computer to which the present technology is applied.
[0012] <Configuration example of an information processing system to which this technology is applied>
[0013] FIG. 1 is a block diagram showing an example of the configuration of an embodiment of an information processing system to which the present technology is applied.
[0014] 1, an information processing system 10 is configured from a plurality of electronic devices, namely, four electronic devices 11, 12, 13, and 14. The number of electronic devices constituting the information processing system 10 is not limited to four, and any number such as two, three, five, or more may be adopted.
[0015] Each electronic device constituting the information processing system 10 is configured to be connectable to at least one other electronic device. Regarding an electronic device constituting the information processing system 10, connection to another electronic device means, unless otherwise specified, connection so that signals (data) can be directly exchanged between the electronic devices. The electronic devices can be connected to each other by any communication method, such as wired communication such as USB (Universal Serial Bus) or wireless communication such as wireless LAN (Local Area Network).
[0016] 1, electronic devices 11 and 12 are connected, electronic devices 12 and 13 are connected, and electronic devices 13 and 14 are connected. Note that electronic devices 11 to 14 can be configured to be further connectable to other electronic devices, as indicated by the dotted lines in the figure.
[0017] The electronic devices 11 to 14 that make up the information processing system 10 each store internal data for performing their functions.
[0018] Of the electronic devices 11 to 14 constituting the information processing system 10, for example, the electronic device 12 can communicate via an external network 21 such as the Internet. For example, the electronic device 12 can communicate with a data server 22 and a data server 23 via the external network 21.
[0019] The data server 22 is, for example, a server on the cloud, and stores various versions of internal data as internal data of various electronic devices.
[0020] The data server 23 is, for example, a server on the cloud, and stores a version table that manages the versions of the internal data stored in the data server 22 .
[0021] The electronic device 12 communicates with the data server 23 to download a version table, and uses the version table to identify versions of internal data that can be used in combination with the electronic devices 11 to 14 that make up the information processing system 10. The electronic device 12 communicates with the data server 22 to download the identified version of internal data, and the internal data of the electronic devices that make up the information processing system 10 is updated with the internal data.
[0022] The internal data of an electronic device includes various data such as setting values that control the operation of the electronic device and software (programs) that the electronic device executes, including application programs, firmware (FW), operating systems (OS), etc.
[0023] With regard to updating of internal data, electronic device 11 functions as a subordinate device, electronic device 12 functions as a host device and an independent device, electronic device 13 functions as an independent device, and electronic device 14 functions as a subordinate device.
[0024] A host device is an electronic device that can communicate with the external network 21 and is connected directly or indirectly to other electronic devices that make up the information processing system 10. Other electronic devices that are connected directly or indirectly to a host device are also called accessories.
[0025] An independent device is an electronic device that can perform update processing for updating its own internal data by itself.
[0026] A subordinate device is an electronic device that cannot update its own internal data by itself and needs another electronic device to do so (to control the updating of its internal data). In other words, a subordinate device is an electronic device whose internal data update process is performed by another electronic device.
[0027] An electronic device whose internal data is to be updated is also called a target device, and an electronic device that performs the update process on the internal data of a target device is also called an update processing device. When an independent device becomes a target device, the independent device becomes an update processing device that performs the update process on its own internal data. When a dependent device becomes a target device, an independent device that can perform the update process on the internal data of the dependent device becomes an update processing device.
[0028] Hereinafter, the internal data of an electronic device will be referred to as software executed by the electronic device, such as FW (Firmware).
[0029] An electronic device's firmware is updated by writing new firmware to a firmware storage area where the firmware of the electronic device is to be stored. The firmware update process requires temporarily storing a firmware file (image file) that stores an image of the firmware to be written to the firmware storage area, and controlling the writing of the firmware stored in the temporarily stored firmware file to the firmware storage area. Therefore, an electronic device capable of performing firmware update processing (an independent device) has a storage unit with a file system (FS) that manages file storage. On the other hand, an electronic device that does not have a storage unit with a file system is called a dependent device.
[0030] Here, for example, in a camera system having a camera body and accessories, such as an interchangeable lens and an intermediate accessory attached between the camera body and the interchangeable lens, the camera body is, for example, both a host device and an independent device, and the interchangeable lens and the intermediate accessory are each connected in parallel to the camera body as a subordinate device. The camera body then performs firmware update processing for each accessory. Therefore, the accessories are limited to subordinate devices. Furthermore, the network topology between the camera body and each accessory is limited to a star-shaped network topology centered around the camera body, which is the host device (and independent device).
[0031] In the information processing system 10, an electronic device that will be an update processing device that performs FW update processing for a target device, which is an electronic device whose FW is to be updated, is determined from among the multiple electronic devices that make up the information processing system 10. The update processing device then performs FW update processing for the target device. As a result, in the information processing system 10, whether the electronic device that makes up the information processing system 10 is an independent device or a dependent device, the FW as internal data of the electronic device can be appropriately updated.
[0032] That is, in the information processing system 10, as long as there is one or more electronic devices that can function as a host device, the other electronic devices can update the firmware of the electronic devices, whether they are independent devices or dependent devices. However, if there is a dependent device among the electronic devices in the information processing system 10, the information processing system 10 must include an independent electronic device that functions as an update processing device capable of updating the firmware of the dependent device. Therefore, as long as there is an independent electronic device in the information processing system 10 that functions as a host device and also as an update processing device for any dependent device, the firmware of the other electronic devices can be updated, regardless of whether they are independent devices or dependent devices. For example, in the information processing system 10, an independent electronic device that functions as a host device and also as an update processing device for any dependent device can be used as the electronic device 12.
[0033] Furthermore, the information processing system 10 can update the firmware of an electronic device regardless of the network topology of the electronic device. Furthermore, the information processing system 10 can update the firmware of an electronic device regardless of the position of the host device in the network topology of the electronic device.
[0034] <Drone system using information processing system 10>
[0035] Figure 2 is a diagram that explains an overview of the processing of a drone system when the information processing system 10 is applied to a drone system and the firmware of the drone system is updated using FOTA (Firmware Over the Air) as a data update.
[0036] In FIG. 2 , the drone system 30 is composed of a tablet 31, a transmitter 32, a drone 33, and an RTK (Real Time Kinematic) 34 as multiple electronic devices.
[0037] The tablet 31 functions as a host device and an independent device, and the transmitter 32 and drone 33 function as independent devices. The RTK 34 functions as a slave device. The drone 33, which is an independent device, also functions as an update processing device for the RTK 34, which is a slave device.
[0038] The tablet 31 and the transmitter 32 are connected via, for example, a USB. The transmitter 32 and the drone 33 are connected via, for example, a wireless LAN such as Wi-Fi (registered trademark). The drone 33 and the RTK 34 are connected via, for example, a USB.
[0039] For example, when RTK 34 is attached to drone 33 and drone 33 and RTK 34 are connected, in step S31, drone 33 sends a system configuration update message to tablet 31 via transmitter 32, indicating that the configuration of drone system 30 has been updated by attaching RTK 34.
[0040] The tablet 31 receives a system configuration update message from the drone 33. The tablet 31 detects the connection of the RTK 34 based on the system configuration update message from the drone 33.
[0041] In response to the system configuration update message, the tablet 31 presents to the user in step S11 that the RTK 34 has been detected by displaying the message. Furthermore, in response to the system configuration update message, the tablet 31 accesses the data server 23 in step S12 to confirm the version of the FW applied to the RTK 34. In response to the access from the tablet 31, the data server 23 transmits a version table to the tablet 31 in step S51. The tablet 31 obtains the version table by receiving it from the data server 23.
[0042] The tablet 31 uses the version table to check whether the current version of the FW of the RTK 34 is the latest version appropriate for the drone system 30. If the current version of the FW of the RTK 34 is the latest appropriate version, subsequent processing is skipped.
[0043] If the current version of RTK34's FW is not the latest appropriate version, i.e., if the current version of RTK34's FW is an old (or inappropriate) version, in step S13, tablet 31 notifies (presents) the user by displaying update information indicating that RTK34's FW should be updated.
[0044] When the user operates the tablet 31 in response to the notification of update information to agree to the FW update, the tablet 31, in step S14, transmits to the transmitter 32 a FOTA mode transition message instructing the tablet 31 to transition its operating mode to the FOTA mode, which updates the FW via FOTA. Furthermore, in step S15, the tablet 31 transmits the FOTA mode transition message to the drone 33 via the transmitter 32. In response to the FOTA mode transition message, the transmitter 32 and the drone 33 transition their operating modes to the FOTA mode.
[0045] Thereafter, the tablet 31 requests the data server 22 to send a FOTA package, which is a package of the latest appropriate version of the FW of the RTK 34 to be updated by FOTA. In step S61, the data server 22 transmits the FOTA package in response to the request from the tablet 31 to the tablet 31.
[0046] The tablet 31 receives the FOTA package from the data server 22. In response to receiving the FOTA package, the tablet 31 transmits (transfers) the FOTA package to the drone 33 via the transmitter 32 in step S16.
[0047] The drone 33 receives the FOTA package from the tablet 31. In step S32, the drone 33 temporarily stores the FOTA package from the tablet 31, i.e., the appropriate latest version FW package for the RTK 34, and performs a FW update process to update the FW of the RTK 34 using the FW package.
[0048] When the RTK 34 FW update process is completed, the drone 33 sends a FOTA completion message to the tablet 31 via the transmitter 32 indicating that the RTK 34 FW update process has been completed.
[0049] The tablet 31 receives the FOTA completion message from the drone 33. In response to receiving the FOTA completion message, the tablet 31 transmits, in step S17, a FOTA mode cancel message instructing the drone 33 to cancel FOTA mode via the transmitter 32. Furthermore, in step S18, the tablet 31 transmits the FOTA mode cancel message to the transmitter 32. In response to the FOTA mode cancel message, the transmitter 32 and the drone 33 transition their operating mode from FOTA mode to the original mode.
[0050] Thereafter, in step S19, the tablet 31 notifies the user that the FW update of the RTK 34 via FOTA has been completed (FOTA completion) by displaying a message or the like.
[0051] Note that, although it has been described here that the RTK 34 is updated when the RTK 34 is attached to the drone 33 and the connection of the RTK 34 is detected, the FW of the RTK 34 can be updated at any time for any electronic device. That is, the drone system 30 can detect (detect connection) an electronic device connected as the drone system 30 at any time and check the FW version of the detected electronic device. Then, depending on the FW version check result, the FW of the required electronic device can be updated to the appropriate latest version of FW (new FW).
[0052] The information processing system 10 can be applied to various systems in addition to the drone system 30 shown in Fig. 2. For example, the information processing system 10 can be applied to various systems to which multiple electronic devices can be attached, such as various robot systems such as pet-type robots and humanoid robots, and vehicle systems to which driving automation systems are applied.
[0053] <Issues that occur when updating the firmware of electronic devices>
[0054] FIG. 3 is a diagram illustrating an example of a problem that occurs when the firmware of an electronic device is updated unconditionally.
[0055] FIG. 3 is a block diagram showing an example of the configuration of a vehicle system 40 to which the information processing system 10 can be applied.
[0056] The vehicle system 40 comprises a PC 41 and a vehicle 42 .
[0057] The PC 41 functions as a host device.
[0058] The vehicle 42 includes an interior I / F (Interface) 51 and an audio system 52 , as well as an exterior I / F 61 and a proximity sensor 62 .
[0059] The interior I / F (Interface) 51 functions as an independent device, and the audio system 52 functions as a subordinate device. Interior accessories (devices) of the vehicle 42, such as the audio system 52, can be connected to the interior I / F 51. The independent interior I / F 51 also functions as an update processing device for the subordinate devices, such as the audio system 52, connected to the interior I / F 51.
[0060] The exterior I / F 61 functions as an independent device, and the proximity sensor 62 functions as a subordinate device. Exterior accessories of the vehicle 42, such as the proximity sensor 62, can be connected to the exterior I / F 61. The exterior I / F 61, which is an independent device, also functions as an update processing device for subordinate devices, such as the proximity sensor 62, connected to the exterior I / F 61.
[0061] In the vehicle system 40, a PC 41 is connected to an interior I / F 51 and an exterior I / F 61 of a vehicle 42. The PC 41, the interior I / F 51, the audio system 52, the exterior I / F 61, and the proximity sensor 62 are electronic devices, and therefore the vehicle system 40 is configured by connecting a plurality of electronic devices.
[0062] When new versions of the interior and exterior firmware of the vehicle 42 are released, the host device PC 41 downloads the new versions of the interior and exterior firmware from the data server 22 and transmits them to the interior I / F 51 and the exterior I / F 61.
[0063] The interior I / F 51 of the update processing device performs update processing to update the interior firmware of the audio system 52, etc., with a new version of the interior firmware from the PC 41. Similarly, the exterior I / F 61 of the update processing device performs update processing to update the exterior firmware of the proximity sensor 62, etc., with a new version of the exterior firmware from the PC 41.
[0064] Here, when multiple connected electronic devices are involved, the normal operation of the functions of each electronic device in relation to the other electronic devices is referred to as functional consistency, and the assurance of functional consistency is also referred to as functional guarantee. It is desirable for the combination of firmware and other software among multiple electronic devices to be a combination with guaranteed functionality, but functional consistency is acceptable even if functionality is not guaranteed. Therefore, in the following description, a combination (of firmware) with guaranteed functionality can be interpreted as a combination (of firmware) with functional consistency.
[0065] The interior I / F 51 performs various management operations, including managing the versions of FW for the audio system 52 and other interior components connected to the interior I / F 51. Therefore, the interior I / F 51 can check (consistency) the combination of FW versions for multiple interior components, such as the audio system 52, connected to the interior I / F 51 to ensure that the combination is a combination that guarantees functionality. If the check results in the combination of FW versions for multiple interior components not being a combination that guarantees functionality after updating the FW for any interior component, the interior I / F 51 can restrict the update of that FW.
[0066] Similarly, the exterior I / F 61 performs various management operations, including managing the versions of the FW of the proximity sensor 62 and other exterior components connected to the exterior I / F 61. Therefore, the exterior I / F 61 can check that the combination of FW versions of multiple exterior components, such as the proximity sensor 62 connected to the exterior I / F 61, is a combination that guarantees functionality. If the check results in the exterior I / F 61 finding that updating any exterior FW does not result in a combination that guarantees functionality, the exterior I / F 61 can restrict the update of that FW.
[0067] However, the above check does not check the combination of the firmware version of the interior and the firmware version of the exterior. Therefore, for example, if the firmware of the proximity sensor 62, which is an exterior component, is updated to a new version, even if the combination of the firmware versions of the multiple exterior components including the proximity sensor 62 is a combination guaranteed for functionality, the combination of the firmware version of the proximity sensor 62, which is an exterior component, and the firmware version of the audio system 52, which is an interior component, may not be a combination guaranteed for functionality. In this case, a problem may occur in which some or all of the functions of one of the audio system 52 and the proximity sensor 62 do not operate normally relative to the other. For example, a problem may occur in which the audio system 52 does not output a warning sound when the proximity sensor 62 detects the proximity of an object to the vehicle 42.
[0068] As described above, if the firmware of an electronic device is unconditionally updated to a new version, the combination of firmware of multiple electronic devices may result in a combination of firmware versions that are not guaranteed to function, which can cause inconvenience such as the function of one electronic device not working properly in relation to other electronic devices.
[0069] The information processing system 10 identifies a combination of FW versions with guaranteed functionality as a combination of FW versions that can be used in combination with the electronic devices 11 to 14, based on the electronic devices 11 to 14 that make up the information processing system 10. The information processing system 10 then updates the FW of the electronic devices to achieve the identified version combination.
[0070] This allows the FW as internal data of electronic devices to be updated appropriately in the information processing system 10. In other words, the FW of the electronic devices can be updated while preventing the combination of FW of the multiple electronic devices constituting the information processing system 10 from becoming a combination of FW versions that are not guaranteed to function, causing an inconvenience in which the functions of one electronic device do not operate properly in relation to other electronic devices.
[0071] In addition, when the network topology of the electronic devices that make up the information processing system 10 is expressed as a tree structure (hereinafter also referred to as a network tree structure) with the host device as the root node, the information processing system 10 updates the FW of the electronic devices in the order from the electronic devices that are leaf nodes in the network tree structure to the host device that is the root node.
[0072] FIG. 4 is a diagram illustrating an example of a network tree structure.
[0073] In the network tree structure of Figure 4, the root node (node at the highest level (level 0)) N1 represents a host device. Nodes N2 and N3 in the first level connected to node N1 by branches (links) each represent an electronic device connected to (that communicates directly with) the host device represented by node N1. Node N3 in the second level connected to node N2 by branches represents an electronic device connected to the electronic device represented by node N2. Nodes N5 and N6 in the second level connected to node N4 by branches each represent an electronic device connected to the electronic device represented by node N4. Nodes N3, N5, and N6 are leaf nodes (nodes with no nodes at lower levels). The level of a node is equal to the number of branches from that node to the root node.
[0074] 4, the firmware of the electronic devices is updated in the order from the electronic devices that are leaf nodes in the network tree structure to the host device that is the root node. The firmware of the electronic devices represented by the leaf nodes N3, N5, and N6 is updated first. The firmware of the electronic devices represented by the nodes N3, N5, and N6 can be updated in any order.
[0075] Then, the firmware of the electronic device represented by node N2, which is one level higher from leaf node N3 toward root node N1, and the firmware of the electronic device represented by node N4, which is one level higher from leaf nodes N5 and N6 toward root node N1, are updated. Note that the order in which the firmware of the electronic devices represented by nodes N2 and N4 are updated is arbitrary.
[0076] Finally, the firmware of the electronic device represented by node N1 one layer above nodes N2 and N4 toward the root node N1 is updated.
[0077] FIG. 5 is a diagram illustrating an example of updating the firmware of electronic devices in the order from the electronic devices that are leaf nodes in the network tree structure to the host device that is the root node.
[0078] Figure 5 shows the order of FW updates when the information processing system 10 is applied to a drone system and the FW of the drone system is updated using FOTA.
[0079] 5, the drone system 70 includes a transmitter 71, a drone 72, and an RTK 73. The transmitters 71 to RTK 73 correspond to the electronic devices 12 to 14 of the information processing system 10, respectively. Therefore, the transmitter 71 is a host device and an independent device, the drone 72 is an independent device, and the RTK 73 is a dependent device.
[0080] The transmitter 71 wirelessly communicates with the drone 72 and controls the drone 72. The drone 72 operates according to the control of the transmitter 71. The RTK 73 is an accessory that is attached to the drone 72 and used to correct positioning information using a global navigation satellite system (GNSS).
[0081] In a network tree structure in which transmitter 71, which is the host device of drone system 70, is the root node, from the perspective of transmitter 71, the root node, transmitters 71 to RTK 73 are connected in that order, i.e., transmitter 71, drone 72, RTK 73.
[0082] Therefore, the FW update of electronic devices, which is performed in the order from the leaf nodes to the root node of the network tree structure (hereinafter also referred to as the FW update from the leaf node), is performed in the order of RTK 73, drone 72, and transmitter 71.
[0083] Here, it is assumed that, before the firmware update, communication between the transmitter 71 and the drone 72 and communication between the drone 72 and the RTK 73 are guaranteed, i.e., communication is able to occur normally. Furthermore, it is assumed that communication guarantee is verified between firmware versions with the same number (version number) in the firmware of the transmitters 71 through RTK 73. Therefore, for example, if the firmware of the transmitters 71 through RTK 73 are all version 1, communication guarantee is guaranteed between the transmitter 71 and the drone 72 and communication between the drone 72 and the RTK 73. In this case, if, for example, only the firmware of the transmitter 71 among the transmitters 71 through RTK 73 is updated from version 1 to version 2, communication guarantee is guaranteed between the drone 72 and the RTK 73, but communication guarantee is not guaranteed between the transmitter 71 and the drone 72, which may result in communication failure between the transmitter 71 and the drone 72.
[0084] Now, the FW of transmitter 71 to RTK 73 is all version 1 FW, and it is assumed that the version 1 FW of transmitter 71 to RTK 73 is to be updated to version 2 FW.
[0085] In this case, if the FW in the drone system 70 is updated in an arbitrary order rather than updating the FW from the leaf node, there is a risk that the drone system 70 will become unusable.
[0086] In the drone system 70, the transmitter 71, which is the host device, downloads version 2 FW for the transmitters 71 through RTK 73 from the data server 22 via the external network 21. The transmitter 71 also transmits version 2 FW for the drone 72 and RTK 73 to the drone 72, and the drone 72 transmits version 2 FW for the RTK 73 to the RTK 73. After obtaining version 2 FW, the transmitters 71 through RTK 73 update their version 1 FW to the version 2 FW.
[0087] In this case, for example, when the version 1 firmware of the transmitter 71 is first updated to version 2 firmware, communication between the transmitter 71 with version 2 firmware and the drone 72 with version 1 firmware is not guaranteed. As a result, there is a risk that communication between the transmitter 71 and the drone 72 will become impossible. If communication between the transmitter 71 and the drone 72 is impossible, the transmitter 71 will not be able to transmit the version 2 firmware of the drone 72 and the RTK 73 to the drone 72. As a result, the drone 72 and the RTK 73 will not be able to be updated to version 2 firmware. As a result, there is a risk that the drone system 70 will become unusable.
[0088] On the other hand, in the drone system 70, when a FW update is performed from a leaf node, the version 2 FW of the RTK 73 is first transmitted from the transmitter 71 to the drone 72, and then from the drone 72 to the RTK 73. The RTK 73 then updates the version 1 FW to the version 2 FW (highest priority FW update). In this case, communication is not guaranteed between the drone 72 with version 1 FW and the RTK 73 with version 2 FW, and as indicated by the dotted double-headed arrow in the figure, communication may become impossible. However, communication is guaranteed between the transmitter 71 with version 1 FW and the drone 72 with version 1 FW, and communication is possible.
[0089] In a FW update from a leaf node, after updating the FW of the RTK 73, the version 2 FW of the drone 72 is transmitted from the transmitter 71 to the drone 72. Then, in the drone 72, the version 1 FW is updated to the version 2 FW (second FW update). In this case, communication is not guaranteed between the transmitter 71 with the version 1 FW and the drone 72 with the version 2 FW, and as indicated by the dotted double arrow in the figure, there is a risk that communication will not be possible. However, between the drone 72 with the version 2 FW and the RTK 73 with the version 2 FW, communication changes from an unguaranteed state to a guaranteed state, and communication is possible.
[0090] After that, in the FW update from the leaf node, the transmitter 71 updates the FW from version 1 to FW version 2 (final FW update). In this case, the state in which communication is not guaranteed between the transmitter 71 with FW version 2 and the drone 72 with FW version 2 changes to a state in which communication is guaranteed, and communication can be performed.
[0091] As described above, when a FW is updated from a leaf node, even after the FW of a certain electronic device is updated, communication is guaranteed from the host device to only one of the electronic devices whose FW has been updated. Furthermore, communication is also guaranteed from the electronic device whose FW has been updated to the electronic device that is the leaf node. As a result, when the FW update for all of the transmitters 71 through RTK 73 is completed by updating the FW from the leaf node, communication is restored to a state in which communication is guaranteed between the transmitter 71 and the drone 72, and between the drone 72 and the RTK 73. This prevents the drone system 70 from becoming unusable.
[0092] Furthermore, for example, if communication assurance has been verified between FWs of the same version number in the FWs of the transmitters 71 to RTK 73, it is guaranteed that all of the transmitters 71 to RTK 73 can be updated to FWs of the same version number with guaranteed communication by updating the FW from the leaf nodes. Therefore, in developing the FWs of the transmitters 71 to RTK 73, it is only necessary to verify communication assurance between FWs of the same version number; there is no need to verify communication assurance between FWs of different versions number. In other words, for example, there is no need to verify communication assurance between FW version 1 of the transmitter 71 and FW version 2 of the drone 72. As a result, the effort required to develop a new version of FW can be reduced.
[0093] <Configuration Examples of Electronic Devices 11 to 14>
[0094] FIG. 6 is a block diagram showing an example of the configuration of the electronic devices 11 to 14 that make up the information processing system 10 of FIG.
[0095] In FIG. 6, parts of the electronic devices 11 to 14 that are not related to the firmware update are omitted.
[0096] The electronic device 11 includes an I / F unit 111 , a control unit 112 , and a flash memory 113 .
[0097] The I / F unit 111 is an I / F for exchanging signals (data) with other electronic devices connectable to the electronic device 11, for example, the electronic device 12. For example, the I / F unit 111 receives the FW of the electronic device 11 transmitted from the electronic device 12 and supplies it to the control unit 112. The I / F unit 111 also receives messages as various commands from the electronic device 12 and supplies them to the control unit 112. Furthermore, the I / F unit 111 transmits messages as responses to the command messages in accordance with the control of the control unit 112.
[0098] The control unit 112 has a firmware check unit 112A, and controls updating of the FW stored in the flash memory 113 in response to a command message from the I / F unit 111. For example, the control unit 112 receives the FW supplied from the I / F unit 111 and causes the firmware check unit 112A to perform a security check of the FW. The control unit 112 updates the FW of the electronic device 11 by writing the FW that has successfully passed the security check by the firmware check unit 112A into the flash memory 113, which serves as a FW storage area.
[0099] The flash memory 113 stores the firmware of the electronic device 11 .
[0100] The electronic device 11 is a subordinate device because it does not have a storage unit for temporarily storing FW files to be written to the flash memory 113. The update process for updating the FW of the subordinate electronic device 11 is performed by an independent device, for example, the electronic device 12, which acts as the update processing device.
[0101] The electronic device 12 includes an I / F unit 121 , a control unit 122 , a flash memory 123 , a storage unit 124 , and an accessory detection unit 125 .
[0102] The I / F unit 121 is an I / F for exchanging signals with other electronic devices connectable to the electronic device 11, such as the electronic device 11 and the electronic device 13. The I / F unit 121 also functions as an I / F for communication via the external network 21. For example, the I / F unit 121 receives (downloads) the firmware for the electronic devices 11 to 14 from the data server 22 via the external network 21. The I / F unit 121 also receives a version table from the data server 23 via the external network 21. The I / F unit 121 also transmits the firmware from the data server 22 to the electronic devices 11 and 13 connected to the electronic device 11, and supplies the version table from the data server 23 to the control unit 122. The I / F unit 121 also supplies the firmware from the data server 22 to the storage unit 124. The I / F unit 121 also receives messages as responses from the electronic devices 11 and the like, and supplies the messages to the control unit 122 or the accessory detection unit 125. Furthermore, the I / F unit 121 transmits messages as commands in accordance with the control of the control unit 122 .
[0103] The control unit 122 has a firmware check unit 122A and a network control unit 122B. The control unit 122 controls updates to the FW stored in the flash memory 123. For example, the control unit 122 reads out the FW stored in the storage unit 124 and causes the firmware check unit 122A to perform a security check of the FW. The control unit 122 updates the FW of the electronic device 12 by writing the FW that has successfully passed the security check by the firmware check unit 122A into the flash memory 123, which serves as a FW storage area.
[0104] The electronic device 12 can function as an update processing device for a subordinate device among the electronic devices (electronic devices directly or indirectly connected to the electronic device 12) that can constitute the information processing system 10. For example, when the electronic device 12 functions as an update processing device for the subordinate electronic device 11, the I / F unit 121 supplies the firmware of the electronic device 11 from the data server 22 to the storage unit 124 for temporary storage. The control unit 122 reads the firmware stored in the storage unit 124 and causes the I / F unit 121 to transmit it to the electronic device 11. Furthermore, the control unit 122 controls the electronic device 11 via the I / F unit 121 to write (update) the firmware.
[0105] Additionally, the control unit 122 causes the network control unit 122B to control communication via the external network 21 by the I / F unit 121. As a result, the control unit 122 causes the I / F unit 121 to download the firmware of the electronic devices 11 to 14 from the data server 22 and download the version table from the data server 23.
[0106] The flash memory 123 stores the firmware of the electronic device 12 .
[0107] The storage unit 124 is a storage unit having an FS (a storage unit managed by the FS), and temporarily stores the FW supplied in the form of a file from the I / F unit 121 .
[0108] The accessory detection unit 125 detects an electronic device as an accessory directly or indirectly connected to the host device's electronic device 12. For example, the accessory detection unit 125 controls the I / F unit 121 to cause the I / F unit 121 to exchange data with an electronic device connected to the electronic device 12, and detects an electronic device as an accessory directly or indirectly connected to the electronic device 12 based on the data.
[0109] The electronic device 12 is a host device because it can communicate via the external network 21. The electronic device 12 is also provided with a storage unit 124 that temporarily stores FW files to be written to a flash memory 123, so the electronic device 11 is an independent device. The independent electronic device 12 not only performs FW update processing for its own FW, but also functions as an update processing device and can perform FW update processing for subordinate devices, such as the electronic device 11.
[0110] The electronic device 13 includes an I / F unit 131 , a control unit 132 , a flash memory 133 , and a storage unit 134 .
[0111] The I / F unit 131 is an I / F for exchanging signals with other electronic devices connectable to the electronic device 13, such as the electronic device 12 and the electronic device 14. For example, the I / F unit 131 receives the FWs of the electronic devices 13 and 14 transmitted from the electronic device 12 and supplies them to the storage unit 134. The I / F unit 131 also receives messages as commands from the electronic device 12 and supplies them to the control unit 132. Furthermore, the I / F unit 131 transmits messages as commands and transmits messages as responses to messages as commands, in accordance with the control of the control unit 132.
[0112] The control unit 132 has a firmware check unit 132A, and controls updating of the FW stored in the flash memory 133 in response to a command message from the I / F unit 131. For example, the control unit 132 reads out the FW stored in the storage unit 134 and causes the firmware check unit 132A to perform a security check of the FW. The control unit 132 updates the FW of the electronic device 13 by writing the FW that has successfully passed the security check by the firmware check unit 132A into the flash memory 133, which serves as a FW storage area.
[0113] The electronic device 13 is an independent device that can constitute the information processing system 10, and can function as an update processing device for the electronic device 14 connected to the electronic device 13. When the electronic device 13 functions as an update processing device for the electronic device 14, which is a subordinate device, the I / F unit 131 supplies the firmware of the electronic device 14 from the electronic device 12 to the storage unit 134 for temporary storage. The control unit 132 reads the firmware stored in the storage unit 134 and causes the I / F unit 131 to transmit it to the electronic device 14. Furthermore, the control unit 132 controls the electronic device 14 via the I / F unit 131 to write (update) the firmware (sends a message to the electronic device 14 instructing the firmware update).
[0114] The flash memory 133 stores the firmware of the electronic device 13 .
[0115] The storage unit 134 is a storage unit having an FS, and temporarily stores the FW supplied in the form of a file from the I / F unit 131 .
[0116] The electronic device 13 is an independent device because it is provided with a storage unit 134 that temporarily stores FW files to be written to the flash memory 133. The independent electronic device 13 not only performs update processing for its own FW, but also functions as an update processing device and can perform update processing for subordinate devices such as the electronic device 14.
[0117] The electronic device 14 includes an I / F unit 141 , a control unit 142 , and a flash memory 143 .
[0118] The I / F unit 141 is an I / F for exchanging signals with other electronic devices connectable to the electronic device 14, for example, the electronic device 13. For example, the I / F unit 141 receives a firewall of the electronic device 14 transmitted from the electronic device 13 and supplies it to the control unit 142. The I / F unit 141 also receives a message as a command from the electronic device 13 and supplies it to the control unit 142. Furthermore, the I / F unit 141 transmits a message as a response to the message as a command in accordance with the control of the control unit 142.
[0119] The control unit 142 has a firmware check unit 142A, and controls updating of the FW stored in the flash memory 143 in response to a command message from the I / F unit 141. For example, the control unit 142 receives the FW supplied from the I / F unit 141 and causes the firmware check unit 142A to perform a security check of the FW. The control unit 142 updates the FW of the electronic device 14 by writing the FW that has successfully passed the security check by the firmware check unit 142A into the flash memory 143, which serves as a FW storage area.
[0120] The flash memory 143 stores the firmware of the electronic device 14 .
[0121] The electronic device 14 is a subordinate device because it does not have a storage unit for temporarily storing FW files to be written to the flash memory 143. The update process for updating the FW of the subordinate electronic device 14 is performed by an independent device, for example, the electronic device 13, which acts as the update processing device.
[0122] Here, for example, electronic devices 11, 13, and 14 are accessories directly or indirectly connected to the host device electronic device 12, and hereinafter, these will also be referred to as accessories A, B, and C, respectively. Also, the host device and the independent electronic device 12 will also be simply referred to as the host device.
[0123] FIG. 7 is a diagram illustrating an example of a process for updating the firmware of the accessory A when the information processing system 10 is configured from the host device and the accessory A. In FIG.
[0124] FIG. 7 shows an example of a process for updating the firmware of the accessory A when the host device and the accessory A are connected to form the information processing system 10.
[0125] In step S91, accessory A notifies the host device of the firmware version of accessory A, etc., by sending a message including the firmware version of accessory A stored in flash memory 113 to the host device.
[0126] The host device receives a message from accessory A, and in step S81 detects the presence (connection) of accessory A, the firmware version of accessory A, and the like based on the message from accessory A.
[0127] In step S82, the host device checks the version table to determine the latest functionality-guaranteed combination of FW versions for the host device and accessory A. The host device then identifies this functionality-guaranteed combination of FW versions as a combination that can be used in combination with the host device and accessory A.
[0128] If the FW version of the host device matches the version in the identified FW version combination, but the FW version of accessory A does not match the version in the identified FW version combination, for example, if the FW version of accessory A is lower than the version in the identified FW version combination, a FW update is performed to upgrade the FW of accessory A.
[0129] In this case, in step S83, the host device downloads a package (file) of the FW version of accessory A in the identified combination of FW versions from the data server 22 via the external network 21. Then, the host device temporarily stores the downloaded FW in the storage unit 124.
[0130] In step S84, the host device notifies accessory A that it will start updating its firmware by sending a message to accessory A indicating that it will start updating its firmware. Then, in step S85, the host device updates the firmware of accessory A using the firmware stored in storage unit 124. That is, the host device controls accessory A to transmit the firmware of accessory A stored in storage unit 124 to accessory A and update the firmware in flash memory 113 using that firmware.
[0131] In step S92, accessory A writes the FW transmitted from the host device to flash memory 113 in accordance with the control of the host device, thereby updating the FW.
[0132] When accessory A finishes updating the FW, in step S93 accessory A notifies the host device that the FW update has been completed by sending a message to the host device indicating that the FW update has been completed.
[0133] FIG. 8 is a diagram illustrating an example of a process for updating the firmware of accessories A to C when the information processing system 10 is configured from a host device and accessories A to C.
[0134] Figure 8 shows an example of the process of updating the firmware of accessories A to C when accessories A and B are each connected to a host device, and accessory C is further connected to accessory B to form an information processing system 10.
[0135] In step S121, accessory A notifies the host device of the firmware version of accessory A, etc., by sending a message including the firmware version of accessory A stored in flash memory 113 to the host device.
[0136] In step S131, accessory B notifies the host device of the firmware version of accessory B, etc., by sending a message including the firmware version of accessory B stored in flash memory 133 to the host device.
[0137] In step S141, accessory C notifies the host device of the firmware version of accessory C, etc., by sending a message including the firmware version of accessory C stored in flash memory 143 to the host device via accessory B.
[0138] The host device receives a message from accessory A, and in step S101, detects the presence (connection) of accessory A and the firmware version of accessory A based on the message from accessory A. The host device also receives a message from accessory B, and in step S102, detects the presence of accessory B and the firmware version of accessory B based on the message from accessory B. The host device also receives a message from accessory C, and in step S103, detects the presence of accessory C and the firmware version of accessory C based on the message from accessory C.
[0139] Furthermore, based on the messages from accessories A to C, the host device detects that accessory C is farthest from the host device (that is, the hierarchy from the host device's perspective in the network tree structure is lower) followed by accessories A and B. The host device identifies the detected order as the order from the leaf nodes toward the root node in the network tree structure.
[0140] In step S104, the host device checks the version table to determine the latest combination of FW versions with guaranteed functionality as a combination of the host device and accessories A to C. The host device identifies the checked combination as a combination of FW versions that can be used in combination with the host device and accessories A to C.
[0141] If the FW version of the host device matches the version in the identified FW version combination, but the FW versions of accessories A to C do not match the version in the identified FW version combination, for example, if the FW versions of accessories A to C are lower than the version in the identified FW version combination, a FW update is performed to upgrade the FW of accessories A to C.
[0142] The FW of accessories A to C is updated in the order from the leaf nodes of the network tree structure toward the root node, that is, accessory C, followed by accessories A and B. In the network tree structure, accessories A and B are at the same level (first level), so either of the FW of accessories A or B can be updated first. In Figure 9, the FW of accessories A to C is updated in the order from the leaf nodes of the network tree structure toward the root node, in the order of accessories C, B, and A.
[0143] In steps S105, S106, and S107, the host device downloads the FW version packages (files) of accessories C, B, and A for the identified FW version combination from the data server 22 via the external network 21, and temporarily stores them in the memory unit 124 as necessary.
[0144] After that, the FW of accessories A to C is updated in the order from the leaf nodes to the root node of the network tree structure, that is, in this case, accessories C, B, A.
[0145] First, the firmware of accessory C is updated. The firmware update process for accessory C, which is a dependent device, is performed by accessory B, which is an independent device, acting as the update processing device.
[0146] In step S108, the host device notifies accessory C that it will start updating its firmware by sending a message to accessory C via accessory B indicating that it will start updating its firmware. Furthermore, in step S109, the host device notifies accessory B that it will start updating the firmware of accessory C by sending a message to accessory B indicating that it will start updating its firmware.
[0147] In step S110, the host device transmits (transfers) the FW of accessory C downloaded from the data server 22 to accessory B of the update processing device. Accessory B temporarily stores the FW of accessory C from the host device in the storage unit 134.
[0148] In step S132, accessory B updates the FW of accessory C with the FW stored in the storage unit 134. That is, accessory B transmits the FW of accessory C stored in the storage unit 134 to accessory C, and controls accessory C to update the FW in the flash memory 143 with that FW.
[0149] In step S142, accessory C, under the control of accessory B, writes the FW transmitted from accessory B into flash memory 143 and updates the FW.
[0150] When accessory C finishes updating the FW, in step S143 accessory C notifies accessory B that the FW update has been completed by sending a message to accessory B indicating that the FW update has been completed.
[0151] In step S133, in response to the message from accessory C, accessory B notifies the host device that the FW update of accessory C has been completed by sending a message to the host device indicating that the FW update of accessory C has been completed.
[0152] Next, the firmware of accessory B is updated. The firmware update process for accessory B, which is an independent device, is performed by accessory B itself acting as the update processing device.
[0153] In step S111, the host device notifies accessory B that it will start updating its firmware by sending a message to accessory B informing that it will start updating its firmware.
[0154] In step S112, the host device transmits the FW of accessory B downloaded from the data server 22 to accessory B. Accessory B temporarily stores the FW of accessory B from the host device in the storage unit 134.
[0155] In step S134, accessory B updates the FW in flash memory 133 with the FW stored in storage unit 134. That is, accessory B writes the FW stored in storage unit 134 to flash memory 133, updating the FW.
[0156] When accessory B finishes updating the FW, in step S135 accessory B notifies the host device that the FW update has been completed by sending a message to the host device indicating that the FW update has been completed.
[0157] After that, the firmware of accessory A is updated. The firmware of accessory C, which is a dependent device, is updated by the host device, which is an independent device, acting as the update processing device.
[0158] In updating the firmware of accessory A, steps S113, S114, S122, and S123 are performed in the same manner as steps S84, S85, S92, and S93 in FIG. 7, respectively.
[0159] <Processing of Information Processing System 10>
[0160] FIG. 9 is a flowchart illustrating an example of a process for updating the firmware of an electronic device performed by the information processing system 10. In FIG.
[0161] The information processing system 10 can periodically update the firmware of the electronic device. Furthermore, the information processing system 10 can irregularly update the firmware of the electronic device. For example, the information processing system 10 can update the firmware of the electronic device when a user performs a predetermined operation or when the data server 22 or 23 notifies the user that a new version of the firmware of the electronic device has been released. Furthermore, the information processing system 10 can update the firmware of the electronic device when the configuration of the information processing system 10 is changed, such as when a new electronic device that constitutes the information processing system 10 is connected or when an electronic device that constitutes the information processing system 10 is removed.
[0162] In step S201, the information processing system 10 identifies the network tree structure of the electronic devices that make up the information processing system 10, and the process proceeds to step S202.
[0163] In step S202, the information processing system 10 acquires all version tables stored in the data server 23 by downloading them, and the process proceeds to step S203.
[0164] In step S203, the information processing system 10 uses the device list and version table described below, which are generated by identifying the network tree structure, to identify combinations of FW versions that can be used in combination in the electronic devices that make up the information processing system 10, and processing proceeds to step S204.
[0165] In step S204, the information processing system 10 uses the network tree structure as necessary to update the FW based on the identified combination, i.e., updates the FW of the electronic devices that make up the information processing system 10 to the version (FW) of the identified combination, and the process ends.
[0166] <Identifying the network tree structure>
[0167] FIG. 10 is a diagram illustrating an example of the process of identifying the network tree structure in step S201.
[0168] In the information processing system 10, the electronic device 12 serving as the host device broadcasts an inquiry message Q to inquire about the presence of other electronic devices in the information processing system 10.
[0169] An electronic device that receives the inquiry message Q broadcasts the inquiry message Q. In this way, the inquiry message Q is transmitted in a domino effect.
[0170] Accessory X, which is an electronic device that receives inquiry message Q, broadcasts inquiry message Q and also returns a response message R(X) to the host device that is the root node in the network tree structure in response to inquiry message Q. The response message R(X) is sent from accessory X to the host device that is the root node along the network tree structure.
[0171] An accessory X (= A, B, C) that returns a response message R(X) includes identification information for identifying the accessory X and the firmware version of the accessory X in the response message R(X).
[0172] The response message R(X) also includes parent node information and a number count value.
[0173] The parent node information is identification information of the electronic device that directly received the response message R(X) from the accessory X that returned the response message R(X), i.e., the electronic device represented by the node (hereinafter also referred to as the parent node) that is one level higher in the network tree structure and connected to the node representing the accessory X that returned the response message R(X). The parent node information is included in the response message R(X) received from the accessory X by the electronic device that is the parent node of the accessory X that returns the response message R(X).
[0174] The number count value is a value that counts the number of electronic devices from the accessory X that returns the response message R(X) to the host device. The initial value of the number count value is, for example, 0. When an electronic device sends a response message R(X) to an electronic device that is a node in a higher hierarchy, it increments the number count value by 1. The number count value included in the response message R(X) received by the host device is equal to the hierarchy (value) of the node representing the accessory X in the network tree structure.
[0175] FIG. 11 is a diagram showing an example of a device list generated by identifying the network tree structure in step S201 of FIG.
[0176] In identifying the network tree structure, the host device (electronic device 12) generates a device list based on a response message R(X) from the accessory X in response to the inquiry message Q. The device list is a list of the electronic devices 11 to 14 that make up the information processing system 10, and information about each of the electronic devices 11 to 14 is described (registered) in the device list. The information about the electronic devices described in the device list includes the identification information, hierarchy, parent node information (identification information of the electronic device that is the parent node), and firmware version of the electronic device.
[0177] The host device first describes its own information in the device list. That is, the host device describes the host device identification information, the host device hierarchy, parent node information, and the FW version. In Figure 11, the host device identification information is "host" and the host device hierarchy is "0". The parent node information is "None", which indicates that there is no parent node, and the FW version is "2.0".
[0178] Thereafter, when the host device receives the response message R(X), it writes (adds) information about the accessory X that sent the response message R(X) to the device list based on the response message R(X).
[0179] 11, first, a response message R(B) is received from accessory B. Then, based on that response message R(B), the identification information of accessory B, "accessory B," the hierarchy level of accessory B, "1," the parent node information of accessory B, "host," and the firmware version, "1.0," are written in the device list as information about accessory B.
[0180] After that, a response message R(A) is received from accessory A. Then, based on that response message R(A), the identification information of accessory A, "accessory A," the hierarchy level of accessory A, "1," the parent node information of accessory A, "host," and the firmware version, "2.0," are written in the device list as information about accessory A.
[0181] Finally, a response message R(C) is received from accessory C. Based on this response message R(C), the identification information of accessory C, "Accessory C," the hierarchy level of accessory C, "Accessory B," the parent node information of accessory C, and the firmware version, "1.0," are written in the device list as information about accessory C.
[0182] In this example, for ease of understanding, the name is used as the identification information of the electronic device, but a unique ID (Identification) or the like can also be used as the identification information.
[0183] FIG. 12 is a diagram showing an example of a network tree structure identified in the network tree structure identification in step S201 of FIG.
[0184] For example, the host device identifies the network tree structure of the electronic devices that make up the information processing system 10 based on the device list.
[0185] For the information processing system 10 of Figure 6, based on the device list of Figure 11, a network tree structure is identified as shown in Figure 12, in which a node representing a host device is the root node, and a node representing accessory A and a node representing accessory B are connected to the node representing the host device, and a node representing accessory C is connected to the node representing accessory B.
[0186] When updating the FW of electronic devices in the order from the electronic devices that are leaf nodes in the network tree structure to the host device that is the root node, the update order for updating the FW of the electronic devices (hereinafter also referred to as the FW update order) can be set if the hierarchy of the nodes representing the electronic devices is known, and therefore can be set using either the network tree structure or the device list (Figure 11).
[0187] FIG. 13 is a flowchart illustrating an example of the process of identifying the network tree structure in step S201 of FIG.
[0188] In step S211, the host device broadcasts an inquiry message Q, and the process proceeds to step S212.
[0189] In step S212, the host device determines whether an electronic device has been detected within the information processing system 10. For example, when the host device receives a response message R(X) in response to the inquiry message Q, the host device determines that an accessory X has been detected as an electronic device.
[0190] If it is determined in step S212 that no electronic device has been detected, the process skips step S213 and proceeds to step S214.
[0191] On the other hand, if it is determined in step S212 that an electronic device has been detected, that is, if the host device has received a response message R(X) from the accessory X as an electronic device, the process proceeds to step S213.
[0192] In step S213, the host device adds information about accessory X as the detected electronic device to the device list, and the process proceeds to step S214.
[0193] In step S214, the host device determines whether a certain time has elapsed since it started detecting electronic devices, that is, since it broadcasted the inquiry message Q.
[0194] If it is determined in step S214 that the fixed time has not elapsed, the process returns to step S212, and the same processes are repeated.
[0195] On the other hand, if it is determined in step S214 that the certain time has elapsed, the host device identifies the network tree structure based on the device list, and the process returns.
[0196] The process of specifying the network tree structure in step S201 can be performed by an electronic device other than the host device in the information processing system 10. In this case, the electronic device that has performed the process of specifying the network tree structure can transmit the device list and network tree structure obtained by the process to the host device.
[0197] <Version table>
[0198] FIG. 14 is a diagram showing an example of a version table stored in the data server 23. As shown in FIG.
[0199] The version table is a table that describes combinations of FW versions with guaranteed functionality for combinations of electronic devices that can be combined as part of the information processing system 10. In the version table, for example, combinations of FW versions with guaranteed functionality are described in the same row.
[0200] The data server 23 stores a version table for various combinations of electronic devices that can be combined.
[0201] The first line of the version table describes the combinations of electronic devices that can be combined. The second and subsequent lines describe combinations of firmware versions that are guaranteed to function for the combination of electronic devices in the first line. Lines from the second line onwards are added as new versions of firmware for the electronic devices are released, and the version table is updated accordingly.
[0202] The version table in Fig. 14 is updated to version tables V1, V2, and V3. Note that the larger the version number, the newer the version.
[0203] According to the version table in Figure 14, functionality is guaranteed for each combination of FW version 1.0 for the host device and accessories A to C. Furthermore, functionality is guaranteed for each combination of FW version 2.0 for the host device and accessories A and B. Furthermore, functionality is guaranteed for each combination of FW version 3.0 for the host device and accessories A to C.
[0204] Note that if a certain combination of electronic devices has a functionality guarantee for a certain combination of FW versions, then a combination in which one or more electronic devices are removed from that combination also has a functionality guarantee for that combination of FW versions. For example, as described above, if a functionality guarantee is provided for the combination of a host device and accessories A through C with FW version 3.0, then a combination in which accessory C is removed from the combination of the host device and accessories A through C, i.e., the combination of the host device and accessories A and B, also has a functionality guarantee for the combination of each FW version 3.0.
[0205] In step S202 of FIG. 9, the host device acquires the above version table by downloading it from the data server 23.
[0206] <Identifying combinations of FW versions that can be used together>
[0207] FIG. 15 is a flowchart illustrating an example of the process of identifying a combination of FW versions that can be used in combination in step S203 of FIG.
[0208] In step S221, the host device selects one version table that has not yet been selected as a table of interest from the version tables downloaded from the data server 23 in step S202 of FIG. 9, and the process proceeds to step S222.
[0209] In step S222, the host device determines whether the combination of electronic devices in the device list is included in the combination of electronic devices in the attention table. For example, if the device list is the device list described in Fig. 11, it determines whether the host device and accessories A to C are described in the first row of the attention table.
[0210] If it is determined in step S222 that the combination of electronic devices in the device list is not included in the combination of electronic devices in the attention table, the process skips steps S223 to S227 and proceeds to step S228.
[0211] Also, if it is determined in step S222 that the combination of electronic devices in the device list is included in the combination of electronic devices in the attention table, the process proceeds to step S223.
[0212] In step S223, the host device selects the latest row in the attention table that describes the firmware versions of all electronic devices in the device list as the attention row. That is, the host device selects the row in the attention table that describes the latest combination of firmware versions with guaranteed functionality for the combination of electronic devices in the device list as the attention row.
[0213] The process then proceeds from step S223 to step S224, where the host device determines whether the FW version of each electronic device in the device list matches the version in the target row, i.e., whether the combination of FW versions of the electronic devices in the device list matches the combination of the latest FW versions with guaranteed functionality.
[0214] In step S224, if it is determined that the FW version of each electronic device in the device list matches the version in the target row, that is, if the combination of FW versions of the electronic devices in the device list is a combination of the latest versions of FW with guaranteed functionality, processing proceeds to step S225.
[0215] In step S225, if a device lock has been applied to each electronic device in the information processing system 10 in step S226 (described later), the host device releases the device lock, and the process proceeds to step S228.
[0216] On the other hand, if it is determined in step S224 that the FW version of each electronic device in the device list does not match the version in the target row, i.e., if the combination of FW versions of the electronic devices in the device list is not a combination of FW with guaranteed functionality, processing proceeds to step S226.
[0217] In step S226, the host device applies a device lock to each electronic device in the information processing system 10, and the process proceeds to step S227. Device locking means restricting an electronic device from performing its original functions. For example, if the electronic device is a drone, device locking means restricting the drone's flight.
[0218] In step S227, the host device identifies the version combination in the target row as a usable combination of FW versions and saves it, and the process proceeds to step S228.
[0219] In step S228, the host device determines whether or not there is a version table among the version tables downloaded from the data server 23 that has not yet been selected as the target table.
[0220] If it is determined in step S228 that there is a version table that has not yet been selected as the table of interest among the version tables downloaded from the data server 23, the process returns to step S221. Then, in step S221, one version table that has not yet been selected as the table of interest among the version tables downloaded from the data server 23 is selected as the table of interest, and the same process is repeated thereafter.
[0221] On the other hand, if it is determined in step S228 that there is no version table that has not been selected as the target table among the version tables downloaded from the data server 23, the process ends (returns).
[0222] As described above, the latest row in the attention table that describes the FW versions of all electronic devices in the device list (the row that describes the latest functionally guaranteed FW combination for the combination of electronic devices in the device list) is selected as the attention row, and after the version combination in the attention row is identified as a usable combination of FW versions, the FW of the electronic devices in the device list is updated to the identified FW version combination. As a result, the FW of the electronic device is updated to the latest functionally guaranteed FW combination.
[0223] Here, the combination of FW versions in the latest row in which the FW versions of all electronic devices in the device list are described is identified as a combination of FW versions that can be combined and used. In other words, for a combination of electronic devices in the device list, the latest combination of FW versions for which functionality is guaranteed is identified as a combination of FW versions that can be combined and used. However, as long as the FW versions of all electronic devices in the device list are described in a row, the combination of versions in any row can be identified as a combination of FW versions that can be combined and used. In other words, for a combination of electronic devices in the device list, as long as the combination of FW versions is functionally guaranteed, any version combination can be identified as a combination of FW versions that can be combined and used. For a combination of electronic devices in the device list, which combination of FW versions with functionality guaranteed is identified as a combination of FW versions that can be combined and used can be determined, for example, based on a user operation, etc.
[0224] FIG. 16 is a diagram illustrating an example of the process of selecting a line of interest in step S223 of FIG. 15 and the process of identifying a combination of FW versions that can be used in combination in step S227.
[0225] 16A shows the target row that is selected when the version table is the version table V2 of FIG. 14 and the information processing system 10 is made up of a host device and accessories A to C.
[0226] 16B shows the row of interest that is selected when the version table is version table V2 and the information processing system 10 is made up of a host device and accessories A and B.
[0227] As described with reference to FIG. 14, the version table is a table in which, for combinations of electronic devices that can be combined as the information processing system 10, combinations of FW versions with guaranteed functionality are written in the same row.
[0228] Version table V2 is a table that describes combinations of FW versions for which functionality is guaranteed for combinations of host devices and accessories A to C. In version table V2, the second line indicates that functionality is guaranteed for combinations of FW version 1.0 for each combination of host devices and accessories A to C. Furthermore, the third line indicates that functionality is guaranteed for combinations of FW version 2.0 for each combination of host devices and accessories A and B.
[0229] In version table V2, the first line describes the combination of a host device and accessories A to C. Therefore, whether the information processing system 10 is configured with a host device and accessories A to C (A in FIG. 16) or with a host device and accessories A and B (B in FIG. 16), the combination of electronic devices in the device list is included in the combination of electronic devices in version table V2.
[0230] When the information processing system 10 is configured with a host device and accessories A to C (A in FIG. 16), the row in version table V2 describing the latest combination of FW versions with guaranteed functionality for the combination of those host devices and accessories A to C is the second row, which describes 1.0 as the FW version for each of the host device and accessories A to C. Therefore, the second row in version table V2 is selected as the row of interest.
[0231] In version table V2, the third row describes the firmware versions of the host device and accessories A and B, but does not describe the firmware version of accessory C. Therefore, the third row of version table V2 cannot be said to be a row describing a combination of firmware versions with guaranteed functionality for the combination of host device and accessories A to C, and is therefore not selected as a row of interest.
[0232] In the target row, the FW versions of the host device and accessories A to C are all 1.0. In the device list, the FW versions of the host device and accessories A to C are 2.0, 2.0, 1.0, and 1.0, respectively. Therefore, the FW versions of the electronic devices in the device list do not match the versions in the target row, so the combination of versions in the target row is identified as a combination of FW versions that can be used together. In this case, when updating the FW, the FW of the host device and accessory A is downgraded from version 2.0 to version 1.0, as indicated by the diagonal lines in the figure, while the FW of accessories B and C remains at version 1.0.
[0233] On the other hand, if the information processing system 10 is configured with a host device and accessories A and B (B in FIG. 16), the row in version table V2 describing the latest combination of FW versions with guaranteed functionality for the combination of the host device and accessories A and B is the third row, which describes 2.0 as the FW version for each of the host device and accessories A and B. Therefore, the third row in version table V2 is selected as the row of interest.
[0234] In the target row, the firmware versions of the host device, accessories A, and B are all 2.0. In the device list, the firmware versions of the host device, accessories A, and B are 2.0, 2.0, and 1.0, respectively. Therefore, the firmware versions of the electronic devices in the device list do not match the versions in the target row, so the combination of versions in the target row is identified as a usable combination of firmware versions. In this case, when the firmware is updated, the firmware of the host device and accessory A remains at version 2.0, while the firmware of accessory B is upgraded from version 1.0 to version 2.0, as indicated by the diagonal lines in the figure.
[0235] FIG. 17 is a diagram illustrating another example of the process of selecting a line of interest in step S223 of FIG. 15 and the process of identifying a combination of FW versions that can be used in combination in step S227.
[0236] FIG. 17A shows the target row that is selected when the version table is version table V3 and the information processing system 10 is made up of a host device and accessories A to C.
[0237] 17B shows the row of interest that is selected when the version table is version table V3 and the information processing system 10 is made up of a host device and accessories A and B.
[0238] FIG. 17 differs from FIG. 16 in that a version table V3 is used instead of the version table V2.
[0239] Like version table V2, version table V3 is a table that describes combinations of FW versions that are guaranteed to function for combinations of host devices and accessories A to C. Rows 1 to 3 of version table V3 are configured in the same way as version table V2. In version table V3, row 4 indicates that functionality is guaranteed for each combination of FW version 3.0 for each combination of host device and accessories A to C.
[0240] In version table V3, similar to version table V2, the first line describes the combination of a host device and accessories A to C. Therefore, whether the information processing system 10 is configured with a host device and accessories A to C (A in FIG. 17) or with a host device and accessories A and B (B in FIG. 17), the combination of electronic devices in the device list is included in the combination of electronic devices in version table V3.
[0241] When the information processing system 10 is configured with a host device and accessories A to C (A in FIG. 17), the row in version table V3 describing the latest combination of FW versions with guaranteed functionality for the combination of those host devices and accessories A to C is row 4, which describes 3.0 as the FW version for each of the host device and accessories A to C. Therefore, row 4 of version table V3 is selected as the row of interest.
[0242] In the target row, the FW versions of the host device and accessories A to C are all 3.0. In the device list, the FW versions of the host device and accessories A to C are 2.0, 2.0, 1.0, and 1.0, respectively. Therefore, the FW versions of the electronic devices in the device list do not match the versions in the target row, so the combination of versions in the target row is identified as a usable combination of FW versions. In this case, when updating the FW, as indicated by the diagonal lines in the figure, the FW of the host device and accessory A is upgraded from version 2.0 to version 3.0, and the FW of accessories B and C is upgraded from version 1.0 to version 3.0.
[0243] On the other hand, if the information processing system 10 is configured with a host device and accessories A and B (B in FIG. 17), the row in version table V3 describing the latest combination of FW versions with guaranteed functionality for the combination of the host device and accessories A and B is row 4, which describes 3.0 as the FW version for each of the host device and accessories A and B. Therefore, row 4 of version table V3 is selected as the row of interest.
[0244] In the target row, the firmware versions of the host device, accessories A, and B are all 3.0. In the device list, the firmware versions of the host device, accessories A, and B are 2.0, 2.0, and 1.0, respectively. Therefore, the firmware versions of the electronic devices in the device list do not match the versions in the target row, so the combination of versions in the target row is identified as a usable combination of firmware versions. In this case, when updating the firmware, as indicated by the diagonal lines in the figure, the firmware of the host device and accessory A is upgraded from version 2.0 to version 3.0, and the firmware of accessory B is upgraded from version 1.0 to version 3.0.
[0245] <Firmware update based on identified combinations>
[0246] FIG. 18 is a flowchart illustrating an example of a process for updating FW based on the combination identified in step S204 of FIG.
[0247] In step S231, the host device determines whether the specified combination is saved.
[0248] If it is determined in step S231 that the identified combination has not been saved, that is, if the identified combination has not been saved in the process of identifying a combination of FW versions that can be used in combination in Figure 15, the process ends.
[0249] The specified combination is not saved when it is determined that the combination of FW versions of the electronic devices in the device list matches the combination of the latest FW versions with guaranteed functionality in the process of specifying a combination of FW versions that can be combined and used in Fig. 15. If the combination of FW versions of the electronic devices in the device list matches the combination of the latest FW versions with guaranteed functionality, there is no need to update the FW of the electronic devices in the device list, and therefore subsequent processing, including the FW update, is skipped in the FW update process based on the specified combination.
[0250] On the other hand, if it is determined in step S231 that the identified combination has been saved, that is, if the identified combination has been saved in the process of identifying a combination of FW versions that can be used in combination in Figure 15, the process proceeds to step S232.
[0251] In step S232, the host device acquires a FW package (image file) by downloading it from the data server 22 based on the identified combination, and the process proceeds to step S233. That is, the host device identifies, among the electronic devices constituting the information processing system 10, electronic devices whose current FW version does not match the version in the identified combination as electronic devices whose FW should be updated, and acquires the FW version in the identified combination of those electronic devices. The current FW versions of the electronic devices constituting the information processing system 10 can be identified by referring to the device list.
[0252] In step S233, the host device sets a FW update order for updating the FW of the electronic devices in the order from the leaf nodes of the network tree structure to the root node, for the electronic devices whose FW should be updated, and the process proceeds to step S235.
[0253] In step S234, the host device sets (selects) the target device for FW update from among the electronic devices whose FW should be updated based on the FW update order, and the process proceeds to step S235.
[0254] In step S235, the information processing system 10 updates the firmware of the target device set in the immediately preceding step S234, and the process proceeds to step S236.
[0255] In step S236, the host device determines whether or not a completion notification notifying completion of the FW update of the target device has been received, and if it is determined that a completion notification has not been received, the process returns to step S236.
[0256] If it is determined in step S236 that a completion notification has been received, that is, for example, if the host device has received a message notifying the completion of the FW update of the target device, the process proceeds to step S237.
[0257] In step S237, the host device determines whether there is an electronic device whose firmware should be updated next in the firmware update order.
[0258] In step S237, if it is determined that there is an electronic device whose FW should be updated next in the FW update order, that is, if there is an electronic device among the electronic devices whose FW should be updated that has not yet been set as a target device, the process returns to step S234, and the same process is repeated thereafter.
[0259] On the other hand, if it is determined in step S237 that there is no electronic device whose FW needs to be updated next in the FW update order, that is, if the FW updates for all electronic devices whose FW needs to be updated have been completed, the process ends (returns).
[0260] <Firmware update for target devices>
[0261] FIG. 19 is a flowchart illustrating a first example of the process of updating the firmware of the target device in step S235 of FIG.
[0262] In updating the FW of a target device, first, a determination is made as to which electronic device will be the update processing device that will update the FW of the target device.
[0263] The determination of an electronic device to become an update processing device may be made by the host device, or by an electronic device other than the host device, i.e., a target device, an electronic device that is a parent node of the target device (hereinafter also referred to as a parent device), or an electronic device other than the target device and parent device. Also, the determination of an electronic device to become an update processing device may be made by each electronic device constituting the information processing system 10. Here, for example, it is assumed that the host device determines an electronic device to become an update processing device.
[0264] As a method for determining which electronic devices will become update processing devices, for example, a first determination method can be adopted in which update function information regarding firmware update functions is stored in each electronic device and electronic devices that will become update processing devices are dynamically determined based on the update function information. In the first determination method, for example, a host device or the like collects update function information from each electronic device and dynamically determines which electronic devices will become update processing devices based on the update function information.
[0265] The update function information for an electronic device can include, for example, information about the FW update function, such as whether the electronic device can perform its own FW update process (whether or not it has a memory unit to temporarily store FW), whether it can perform FW update process for other electronic devices, information about other electronic devices that can have their FW updated, and information about other electronic devices that can perform FW update process for them.
[0266] Another method for determining which electronic devices will become update processing devices is to prepare an update processing device list for each electronic device that describes information about update processing devices that can perform FW update processing, and then use this update processing device list to determine which electronic devices will become update processing devices. A second determination method can be adopted.
[0267] The update processing device list can be stored in the data server 23, for example, and downloaded from the data server 23 to the host device.
[0268] In FIG. 19, the first determination method is adopted as a method for determining which electronic device will become the update processing device.
[0269] In FIG. 19, the processes of steps S251 and S254 are performed to determine which electronic device will be the update processing device.
[0270] In step S251, the host device determines, based on the update function information, whether or not the target device has a storage unit having an FS for temporarily storing the FW.
[0271] In step S251, if it is determined that the target device has a memory unit for temporarily storing FW, that is, if the target device is an independent device, the host device determines that the target device, which is an independent device, is itself an update processing device, and processing proceeds to step S252.
[0272] In step S252, the host device transmits the FW image file of the target device, among the FW image files acquired from the data server 22, to the target device that is also the update processing device, and processing proceeds to step S253. In this case, the target device that is also the update processing device receives the FW image file from the host device and temporarily stores it in a memory unit possessed by the target device that is also the update processing device. Note that when the host device is the target device, there is no need for the host device to transmit the FW image file acquired from the data server 22 to the host device, so the host device stores the FW image file of the host device acquired from the data server 22 in the memory unit 124 without transmitting it.
[0273] In step S253, the control unit of the target device, which is also an update processing device (for example, the control unit 132 of the electronic device 13 in Figure 6), sets a self-write flag indicating that it will control the writing of its own FW, and the process proceeds to step S259.
[0274] On the other hand, if it is determined in step S251 that the target device does not have a storage unit for temporarily storing FW, that is, if the target device is a subordinate device, the process proceeds to step S254.
[0275] In step S254, the host device determines, based on the update function information and the network tree structure, whether the parent device that is the parent node of the target device has a memory unit with an FS that temporarily stores the FW and is capable of performing update processing for the target device that is a subordinate device.
[0276] In step S254, if it is determined that the parent device has a memory unit that temporarily stores FW and is capable of performing update processing on the target device, that is, if the parent device is an independent device that is capable of performing update processing on the target device, the host device determines that the parent device, which is an independent device that is capable of performing update processing on the target device, which is a dependent device, is the update processing device, and processing proceeds to step S255.
[0277] In step S255, the host device transmits the FW image file of the target device, among the FW image files acquired from the data server 22, to the parent device, which is the update processing device for the target device, and the process proceeds to step S256. In this case, the parent device, which is the update processing device, receives the FW image file from the host device and temporarily stores it in a storage unit (e.g., storage unit 134 of electronic device 13 in FIG. 6 ) of the parent device, which is the update processing device.
[0278] In step S256, the control unit of the parent device, which is the update processing device for the target device (for example, the control unit 132 of the electronic device 13 in Figure 6), sets a target device write flag indicating that it will control the writing of the FW for the target device, and the process proceeds to step S259.
[0279] On the other hand, if it is determined in step S254 that the parent device does not have a memory unit for temporarily storing FW, or if it is determined that the parent device is unable to perform update processing for the target device, that is, for example, if the parent device is not an independent device, or is an independent device but is unable to perform update processing for the target device, the host device determines that the host device itself, which is also an independent device, is the update processing device for the target device, which is a subordinate device, and processing proceeds to step S257.
[0280] In step S257, the host device temporarily stores the FW image file of the target device from among the FW image files obtained from the data server 22 in the memory unit 124 of the host device itself that has been determined to be the update processing device, and processing proceeds to step S258.
[0281] In step S258, the control unit 122 of the host device, which is also the update processing device, sets a target device write flag indicating that control for writing the FW of the target device is to be performed, and the process proceeds to step S259.
[0282] In step S259, the host device broadcasts an update command message instructing the host device to update its FW, and the process proceeds to step S260. The broadcast update command message is transmitted in a domino effect, similar to the inquiry message Q described with reference to FIG.
[0283] In step S260, the host device determines whether the target device write flag is set in the host device and whether the FW image file of the target device is stored in the storage unit 124 of the host device itself.
[0284] In step S260, if it is determined that the target device write flag is set in the host device and the FW image file of the target device is stored in the memory unit 124, i.e., if the host device is an update processing device, processing proceeds to step S261.
[0285] In step S261, the host device performs an update process to update the FW of the target device, and then the process ends (returns). That is, the host device reads the FW of the target device stored as an image file in the storage unit 124, transmits it to the target device, and writes it to the flash memory serving as the FW storage area of the target device. Note that if the host device is the target device, there is no need to transmit to the host device an image file of the FW of the host device stored in the storage unit 124 of the host device, so the host device writes the FW of the host device, which is the target device, read from the storage unit 124, to the flash memory 123 of the host device without transmitting it.
[0286] On the other hand, if it is determined in step S260 that the target device write flag is not set in the host device or that the FW image file of the target device is not stored in the memory unit 124, i.e., if the host device is not an update processing device, processing proceeds to step S262.
[0287] In step S262, the target device determines whether or not the target device itself has a self-write flag set and whether or not the target device's firmware image file is stored in the storage unit of the target device itself.
[0288] In step S262, if it is determined that the target device has its own write flag set and the FW image file of the target device is stored in the memory unit of the target device itself, i.e., if the target device is its own update processing device, processing proceeds to step S263.
[0289] In step S263, the target device, which is also the update processing device, receives the update command message broadcast in step S259, and performs update processing to update the firmware of the target device in response to the update command message, and then the processing ends. That is, the target device reads the firmware of the target device stored as an image file in its own storage unit and writes it to the flash memory that serves as the firmware storage area of the target device.
[0290] On the other hand, if it is determined in step S262 that the target device does not have its own write flag set or that the FW image file of the target device is not stored in the target device's own memory, i.e., if the target device is not an update processing device, processing proceeds to step S264.
[0291] In step S264, the parent device of the target device determines whether the target device write flag is set in the parent device and whether the FW image file of the target device is stored in the storage unit of the parent device.
[0292] In step S262, if it is determined that the target device write flag is set in the parent device and the FW image file of the target device is stored in the memory unit of the parent device, i.e., if the parent device of the target device is an update processing device, processing proceeds to step S265.
[0293] In step S265, the parent device, which is the update processing device for the target device, receives the update command message broadcast in step S259 and performs update processing to update the firmware of the target device in response to the update command message, and then the processing ends. That is, the parent device reads the firmware of the target device stored as an image file in its storage unit, transmits it to the target device, and writes it into the flash memory that serves as the firmware storage area of the target device.
[0294] On the other hand, if it is determined that the target device write flag is not set in the parent device or that the FW image file of the target device is not stored in the memory unit of the parent device, the process ends (returns).
[0295] FIG. 20 is a flowchart illustrating a second example of the process of updating the firmware of the target device in step S235 of FIG.
[0296] In FIG. 20, the second determination method is adopted as a method for determining which electronic device will be the update processing device.
[0297] In FIG. 20, the processes of steps S281 and S283 are performed to determine which electronic device will be the update processing device.
[0298] In step S281, the host device determines, based on the update processing device list, whether the target device is an independent device that can perform the FW update process by itself, i.e., whether the target device can become the update processing device for that target device.
[0299] In step S281, if it is determined that the target device is an independent device that can perform FW update processing by itself, the host device determines that the target device, which is an independent device, is an update processing device, and processing proceeds to step S282.
[0300] In step S282, the host device transmits the FW image file of the target device, among the FW image files acquired from the data server 22, to the target device that is also the update processing device, and processing proceeds to step S286. In this case, the target device that is also the update processing device receives the FW image file from the host device and temporarily stores it in a memory unit possessed by the target device that is also the update processing device. Note that when the host device is the target device, there is no need for the host device to transmit the FW image file acquired from the data server 22 to the host device, so the host device stores the FW image file of the host device acquired from the data server 22 in the memory unit 124 without transmitting it.
[0301] On the other hand, if it is determined in step S281 that the target device is not capable of performing the FW update process by itself, that is, if the target device is a dependent device, the process proceeds to step S283.
[0302] In step S283, the host device determines, based on the update processing device list and the network tree structure, whether the parent device that is the parent node of the target device can perform update processing for the target device that is a subordinate device.
[0303] If it is determined in step S283 that the parent device is capable of performing update processing on the target device, that is, if the parent device is an independent device capable of performing update processing on the target device, the host device determines that the parent device, which is an independent device capable of performing update processing on the target device, which is a dependent device, is the update processing device, and processing proceeds to step S284.
[0304] In step S284, the host device transmits the FW image file of the target device, among the FW image files acquired from the data server 22, to the parent device, which is the update processing device for the target device, and the process proceeds to step S286. In this case, the parent device, which is the update processing device, receives the FW image file from the host device and temporarily stores it in a memory unit of the parent device, which is the update processing device.
[0305] On the other hand, if it is determined in step S283 that the parent device is unable to perform the update process for the target device, that is, if the parent device is not an independent device or is an independent device but is unable to perform the update process for the target device, the host device determines that the host device itself, which is also an independent device, is the update processing device for the target device, which is a subordinate device, and the process proceeds to step S285.
[0306] In step S285, the host device temporarily stores the FW image file of the target device from among the FW image files obtained from the data server 22 in the memory unit 124 of the host device itself that has been determined to be the update processing device, and processing proceeds to step S286.
[0307] In step S286, the host device broadcasts (transmits) an update command message instructing the host device to update its FW, and the process proceeds to step S287. The broadcasted update command message is transmitted in a domino effect, similar to the inquiry message Q described with reference to FIG.
[0308] In step S287, the host device determines whether or not an image file of the firmware of the target device is stored in the storage unit 124 of the host device itself.
[0309] If it is determined in step S287 that the image file of the firmware of the target device is stored in the storage unit 124, that is, if the host device is an update processing device, the process proceeds to step S288.
[0310] In step S288, the host device performs an update process to update the FW of the target device, and the process ends (returns). That is, the host device reads the FW of the target device stored as an image file in the storage unit 124, transmits it to the target device, and writes it to the flash memory serving as the FW storage area of the target device. Note that if the host device is the target device, there is no need to transmit to the host device an image file of the FW of the host device stored in the storage unit 124 of the host device, so the host device writes the FW of the host device, which is the target device, read from the storage unit 124, to the flash memory 123 of the host device without transmitting it.
[0311] On the other hand, if it is determined in step S287 that the image file of the firmware of the target device is not stored in the storage unit 124, the process proceeds to step S289.
[0312] In step S289, the target device determines whether or not an image file of the FW of the target device is stored in the storage unit of the target device itself.
[0313] If it is determined in step S289 that the image file of the FW of the target device is not stored in the memory unit of the target device itself, for example, if the target device is a subordinate device that does not have a memory unit with an FS, and the parent device of the target device has been determined to be the update processing device for that target device, and the image file of the FW of the target device is stored in the memory unit of that parent device, processing proceeds to step S290.
[0314] In step S290, the parent device, which is the update processing device for the target device, receives the update command message broadcast in step S286 and performs update processing to update the firmware of the target device in response to the update command message, and then the processing ends. That is, the parent device reads the firmware of the target device stored as an image file in its storage unit, transmits it to the target device, and writes it into the flash memory that serves as the firmware storage area of the target device.
[0315] On the other hand, if it is determined in step S289 that the image file of the FW of the target device is stored in the memory unit of the target device itself, that is, if the target device is an independent device and is the update processing device of the target device itself, processing proceeds to step S291.
[0316] In step S291, the target device, which is also the update processing device, receives the update command message broadcast in step S286, and performs update processing to update the firmware of the target device in response to the update command message, and then the processing ends. That is, the target device reads the firmware of the target device stored as an image file in its own storage unit and writes it to the flash memory that serves as the firmware storage area of the target device.
[0317] 19 and 20, for a subordinate device, the parent device or host device of the subordinate device is determined to be the update processing device for the subordinate device, but any electronic device other than the parent device or host device that can perform firmware update processing for the subordinate device can be determined to be the update processing device for the subordinate device. However, for example, if the subordinate device is connected to the parent device via USB or the like, it may be difficult for electronic devices other than the parent device to finely control the subordinate device during firmware update processing for the subordinate device.
[0318] <Description of a computer to which this technology is applied>
[0319] Next, the above-described series of processes can be performed by hardware or software. When the series of processes is performed by software, the programs that make up the software are installed on a general-purpose computer or the like.
[0320] FIG. 21 is a block diagram showing an example of the configuration of an embodiment of a computer in which a program for executing the above-described series of processes is installed.
[0321] The program can be recorded in advance on the hard disk 905 or ROM 903 as a recording medium built into the computer.
[0322] Alternatively, the program can be stored (recorded) on a removable recording medium 911 driven by the drive 909. Such a removable recording medium 911 can be provided as a so-called package software. Here, examples of the removable recording medium 911 include a flexible disk, a CD-ROM (Compact Disc Read Only Memory), an MO (Magneto Optical) disk, a DVD (Digital Versatile Disc), a magnetic disk, and a semiconductor memory.
[0323] The program can be installed into the computer from the removable recording medium 911 as described above, or can be downloaded to the computer via a communication network or a broadcasting network and installed on the built-in hard disk 905. That is, the program can be transferred to the computer wirelessly from a download site via an artificial satellite for digital satellite broadcasting, or transferred to the computer via a wired network such as a LAN (Local Area Network) or the Internet.
[0324] The computer includes a CPU (Central Processing Unit) 902 , to which an input / output interface 910 is connected via a bus 901 .
[0325] When a user inputs a command via an input / output interface 910 by operating an input unit 907, the CPU 902 executes a program stored in a read-only memory (ROM) 903 in accordance with the command. Alternatively, the CPU 902 loads a program stored on a hard disk 905 into a random access memory (RAM) 904 and executes the program.
[0326] As a result, the CPU 902 performs processing according to the flowchart described above or processing performed by the configuration of the block diagram described above. Then, the CPU 902 outputs the processing results from the output unit 906 via the input / output interface 910, or transmits them from the communication unit 908, or further records them on the hard disk 905, as necessary.
[0327] The input unit 907 is made up of a keyboard, a mouse, a microphone, etc. The output unit 906 is made up of an LCD (Liquid Crystal Display), a speaker, etc.
[0328] In this specification, the processing performed by a computer according to a program does not necessarily have to be performed in chronological order according to the order described in the flowchart. In other words, the processing performed by a computer according to a program also includes processing that is executed in parallel or individually (for example, parallel processing or object-based processing).
[0329] The program may be processed by a single computer (processor), or may be distributed among multiple computers. Furthermore, the program may be transferred to and executed on a remote computer.
[0330] Furthermore, in this specification, a system refers to a collection of multiple components (devices, modules (components), etc.), regardless of whether all of the components are contained in the same housing. Therefore, multiple devices housed in separate housings and connected via a network, and a single device housed in a single housing with multiple modules, are both systems.
[0331] It should be noted that the embodiments of the present technology are not limited to the above-described embodiments, and various modifications are possible within the scope of the present technology.
[0332] For example, the present technology can be configured as a cloud computing system in which a single function is shared and processed collaboratively by a plurality of devices via a network.
[0333] Furthermore, each step described in the above flowchart can be executed by one device, or can be shared and executed by a plurality of devices.
[0334] Furthermore, when one step includes multiple processes, the multiple processes included in that one step can be executed by one device or can be shared and executed by multiple devices.
[0335] Furthermore, the effects described in this specification are merely examples and are not limiting, and other effects may also be present.
[0336] The present technology can have the following configurations.
[0337] <1> An information processing method including: identifying, based on a plurality of connected electronic devices, software combinations that can be used in combination among the plurality of electronic devices; and updating the software of the plurality of electronic devices so that the software of the plurality of electronic devices matches the identified combination. <2> The information processing method described in <1>, in which a software combination in which the functions of each electronic device operate normally in relation to the other electronic devices is identified as the software combination that can be used in combination. <3> The information processing method described in <2>, in which the software combination of the plurality of electronic devices is identified as the latest software combination in which the functions of each electronic device operate normally in relation to the other electronic devices. <4> The information processing method described in <2> or <3>, in which the software combination that can be used in combination is identified based on a table describing software combinations in which the functions of each electronic device operate normally in relation to the other electronic devices. <5> The information processing method described in any of <2> to <4>, in which, if the software combination of the plurality of electronic devices matches a software combination in which the functions of each electronic device operate normally in relation to the other electronic devices, a software update of the electronic device is skipped. <6> The information processing method according to <5>, wherein, if the software combination of the plurality of electronic devices matches a software combination that allows the functions of each electronic device to operate normally in relation to the other electronic devices, and a device lock that restricts use of the electronic device is applied to the electronic device, the device lock is released. <7> The information processing method according to any of <2> to <6>, wherein, if the software combination of the plurality of electronic devices does not match a software combination that allows the functions of each electronic device to operate normally in relation to the other electronic devices, a device lock that restricts use of the electronic device is applied to the electronic device.<8> The information processing method according to any one of <1> to <7>, wherein the plurality of electronic devices includes a host device that is an electronic device capable of communicating with an external network, and the host device acquires the software via the external network. <9> The information processing method according to <8>, wherein, when a network topology of the plurality of electronic devices is represented as a network tree structure in which the host device is a root node, software updates of the electronic devices are performed in an order from the electronic devices that are leaf nodes of the network tree structure to the host device that is the root node. <10> The host device broadcasts a message, and generates a device list that lists the plurality of electronic devices based on response messages returned by the electronic devices to the host device in response to the message, the device list including the hierarchy of the nodes of the electronic devices in the network tree structure, and sets an update order for updating the software of the electronic devices in an order from the electronic devices that are leaf nodes of the network tree structure identified based on the device list to the host device that is the root node. <11> The information processing method described in <10>, wherein the response message includes identification information that identifies the electronic device returning the response message and a node hierarchy of the electronic device returning the response message in the network tree structure. <12> The information processing method described in any of <1> to <11>, wherein the plurality of electronic devices constitute a drone system. <13> The information processing method described in any of <1> to <12>, wherein the software is firmware (FW). <14> An electronic device capable of becoming one of the plurality of electronic devices, including a control unit that identifies a combination of software that can be combined and used in the plurality of electronic devices based on the plurality of connected electronic devices, and updates the software of the electronic devices so that the software of the plurality of electronic devices becomes the identified combination.<15> A program that causes a computer to execute the following process: based on a plurality of connected electronic devices, identify a combination of software that can be combined and used in the plurality of electronic devices; and update the software of the plurality of electronic devices so that the software of the plurality of electronic devices becomes the identified combination.
[0338] 10 Information processing system. 11 to 14 Electronic device, 21 External network, 22, 23 Data server, 30 Drone system, 31 Tablet, 32 Transmitter, 33 Drone, 34 RTK, 40 Vehicle system, 41 PC, 42 Vehicle, 51 Interior I / F, 52 Audio system, 61 Exterior I / F, 62 Proximity sensor, 70 Drone system, 71 Transmitter, 72 Drone, 73 RTK, 111 I / F unit, 112 Control unit, 112A Firmware check unit, 113 Flash memory, 121 I / F unit, 122 Control unit, 122A Firmware check unit, 122B Network control unit, 123 Flash memory, 124 Storage unit, 125 Accessory detection unit, 131 I / F unit, 132 Control unit, 132A Firmware check unit, 133 Flash memory, 134 Storage unit, 141 I / F unit, 142 Control unit, 142A Firmware check unit, 143 Flash memory, 901 Bus, 902 CPU, 903 ROM, 904 RAM, 905 Hard disk, 906 Output unit, 907 Input unit, 908 Communication unit, 909 Drive, 910 Input / output interface, 911 Removable recording medium
Claims
1. An information processing method comprising: identifying a combination of software that can be used in combination in a plurality of connected electronic devices based on the plurality of electronic devices; and updating the software of the plurality of electronic devices so that the software of the plurality of electronic devices becomes the identified combination.
2. The information processing method according to claim 1, further comprising the step of identifying a combination of software that allows the functions of each electronic device to function normally in relation to other electronic devices as the combination of software that can be used in combination.
3. The information processing method according to claim 2, wherein the latest software combination that enables the functions of each electronic device to operate normally in relation to the other electronic devices is specified as the combination of software that can be used in combination as the combination of software of the plurality of electronic devices.
4. The information processing method according to claim 2, further comprising the step of identifying a combination of software that can be used in combination based on a table describing combinations of software that allow the functions of each electronic device to function properly in relation to other electronic devices.
5. The information processing method according to claim 2, further comprising skipping software updates for the electronic devices when the software combination of the plurality of electronic devices matches a software combination in which the functions of each electronic device operate normally in relation to the other electronic devices.
6. The information processing method according to claim 5, further comprising the steps of: releasing a device lock that restricts the use of an electronic device when the software combination of the plurality of electronic devices matches a software combination in which the functions of each electronic device operate normally in relation to the other electronic devices and the device lock is applied to the electronic device.
7. The information processing method according to claim 2, further comprising the step of: if the software combination of the plurality of electronic devices does not match a software combination in which the functions of each electronic device operate normally in relation to the other electronic devices, a device lock is placed on the electronic device to restrict use of the electronic device.
8. The information processing method according to claim 1, wherein the plurality of electronic devices includes a host device which is an electronic device capable of communicating with an external network, and the host device acquires the software via the external network.
9. The information processing method according to claim 8, wherein when the network topology of the plurality of electronic devices is represented as a network tree structure in which the host device is the root node, software updates of the electronic devices are performed in the order from the electronic devices which are leaf nodes of the network tree structure to the host device which is the root node.
10. The information processing method of claim 9, wherein the host device broadcasts a message, and generates a device list that lists the plurality of electronic devices based on a response message returned by the electronic devices to the host device in response to the message, the device list including a hierarchy of nodes of the electronic devices in the network tree structure, and sets an update order for updating software of the electronic devices in an order from the electronic devices that are leaf nodes of the network tree structure identified based on the device list to the host device that is a root node.
11. The information processing method according to claim 10, wherein the response message includes identification information for identifying the electronic device that returns the response message, and a node hierarchy of the electronic device that returns the response message in the network tree structure.
12. The information processing method according to claim 1, wherein the plurality of electronic devices constitute a drone system.
13. The information processing method according to claim 1, wherein the software is FW (Firmware).
14. An electronic device capable of becoming one of a plurality of electronic devices, the electronic device including a control unit that identifies a combination of software that can be used in combination in a plurality of electronic devices based on the plurality of connected electronic devices, and updates the software of the plurality of electronic devices so that the software of the plurality of electronic devices becomes the identified combination.
15. A program that causes a computer to execute the following process: Identifying combinations of software that can be used in combination in multiple electronic devices based on multiple connected electronic devices; and updating the software in the multiple electronic devices so that the software in the multiple electronic devices matches the identified combination.
Citation Information
Patent Citations
Method and system for updating firmware
JP2006195766A
Software update apparatus, method, program, and vehicle
JP2022015169A
