Software update gateway and method for updating software of IoT devices
By designing a software update gateway for IoT devices, differential update data and status information are used to optimize software updates, which solves the problem of increased network data traffic and improves security and rollback functions.
Patent Information
- Application Number
- CN202080103237.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-10-16
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2040-10-16
AI Technical Summary
As the number of IoT devices increases, network data traffic caused by software updates increases significantly, resulting in limited and expensive network capacity.
A software update gateway is designed to store complete and differential update data of the software through a communication unit connected to the IoT device and the software update server. The processor generates and sends differential update data to update the software based on the status information of the device and the gateway. Decide how to update to reduce data traffic on public networks.
It effectively reduces data traffic on public networks, increases security, and makes it easy to roll back to the previous version after software updates.
Smart Images

Figure CN115885256B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to a software update gateway and method for updating software of IoT devices. Background Art
[0002] Recently, the number of Internet of Things (IoT) devices equipped with a communication function for sending and receiving data to and from other devices has increased significantly. IoT devices perform given operations through built-in software that can be updated as needed.
[0003] IoT devices can update software by receiving update files provided from software update servers. However, as the number of IoT devices has increased significantly as described above, there is a problem that data traffic in the network due to software updates of IoT devices has also increased significantly.
[0004] The amount of traffic that a network can handle is limited, and increasing the capacity of such a network is expensive. Therefore, there is a need for a method that can effectively reduce data traffic while updating the software of IoT devices. Summary of the invention
[0005] Technical issues
[0006] An object of the present disclosure is to provide a software update gateway and method for reducing data traffic of a public network while updating software of an IoT device.
[0007] Technical Solution
[0008] According to one embodiment of the present disclosure, a software update gateway for updating software of an IoT (Internet of Things) device includes: a communication unit, which is configured to connect to a software update server and an IoT device; a software database, which is configured to store first version complete update data of the software of the IoT device; and a processor, which is configured to receive a software update request from the IoT device via the communication unit, transmit the software update request to the software update server via the communication unit, receive second version differential update data of the software from the software update server, generate second version complete update data of the software based on the first version complete update data and the second version differential update data, and update the software by sending the second version complete update data to the IoT device via the communication unit.
[0009] The software database may also store software metadata of the software, and the software metadata may include device identification information, software identification information, and software version information.
[0010] The processor may receive software metadata of the software from the IoT device via the communication unit, determine whether the software is updatable based on the software metadata, and send a software update notification to the IoT device through the communication unit when the software is updatable.
[0011] The processor may compare the software version information of the software in the IoT device with the software version information in the software update server to determine whether the software is updatable.
[0012] The processor may collect status information of the software update gateway, and determine whether to generate a second version complete update package based on the status information of the software update gateway.
[0013] The status information of the software update gateway may include at least one of a temperature of the software update gateway, processor resource usage, available processor resources, memory usage, available memory, network usage, available network, or an operation processing type.
[0014] When the temperature of the software update gateway is less than a first reference value and the available processor resources are greater than a second reference value, the processor may determine to generate a second version complete update package.
[0015] When the processor determines to generate a second-version complete update package, the processor may execute a process of generating the second-version complete update package in the background.
[0016] The processor may collect status information of the IoT device from the IoT device via the communication unit, and determine whether to update the software based on the status information of the IoT device.
[0017] The state information of the IoT device may include at least one of the following: temperature of the IoT device, processor resource usage, available processor resources, memory usage, available memory, network usage, available network, operation processing type, power state, or power supply state.
[0018] When the temperature of the IoT device is less than a third reference value, the available processor resources are greater than a fourth reference value, and the power state is a powered-on state, the processor may determine to update the software.
[0019] The communication unit may be connected to the software update server through a public network, and connected to the IoT device through a local area network.
[0020] According to one embodiment of the present disclosure, a method for updating the software of an IoT (Internet of Things) device includes the following steps: receiving a software update request for the software of the IoT device from the IoT device via a communication unit; transmitting the software update request to a software update server via the communication unit; receiving second version differential update data of the software from the software update server via the communication unit; generating second version complete update data of the software based on first version complete update data and second version differential update data of the software, the first version complete update data being stored in a software database; and updating the software by sending the second version complete update data to the IoT device via the communication unit.
[0021] Beneficial Effects
[0022] According to various embodiments of the present disclosure, the data traffic of the public network can be effectively reduced during the process of updating the software of the IoT device.
[0023] In addition, according to various embodiments of the present disclosure, security may be increased by sending only differential update data to a public network.
[0024] In addition, according to various embodiments of the present disclosure, the software update gateway stores and manages software data of IoT devices for each version, so that even when a problem occurs in the software after updating, it is possible to easily roll back to the previous version. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 is a diagram illustrating a software update system for IoT devices according to one embodiment of the present disclosure.
[0026] Figure 2 is a block diagram illustrating a software update gateway according to one embodiment of the present disclosure.
[0027] Figure 3 is a block diagram illustrating an IoT device according to one embodiment of the present disclosure.
[0028] Figure 4 is a block diagram illustrating a software update server according to one embodiment of the present disclosure.
[0029] Figure 5 is a flowchart illustrating a method for updating software of an IoT device according to one embodiment of the present disclosure.
[0030] Figure 6 is an example Figure 5 Flowchart of an example of step S501 of receiving a software update request is shown in FIG.
[0031] Figure 7 is an example Figure 5A flowchart of an example of step S507 of generating complete update data is shown in FIG.
[0032] Figure 8 is an example Figure 5 Flow chart of an example of step S509 of sending complete update data to an IoT device shown in FIG.
[0033] Fig. 9 is a diagram illustrating a software structure of a software update gateway according to an embodiment of the present disclosure.
[0034] Fig.10 This is a diagram illustrating data transmitted within a software update system for IoT devices.
[0035] Fig.11 is a diagram illustrating an example of a software metadata table stored in a software database of a software update gateway.
[0036] Fig.12 is a diagram illustrating an example of software update data stored in a software database of a software update gateway. DETAILED DESCRIPTION
[0037] Hereinafter, the embodiments disclosed herein will be described in detail with reference to the accompanying drawings, and the same or similar elements are referred to by the same reference numerals regardless of the reference numerals in the accompanying drawings and their redundant descriptions will be omitted. The suffixes "module" and "unit or part" of the components used in the following description are provided only for the convenience of preparing this specification, and therefore they are not granted specific meanings or functions. In addition, when it is determined that the detailed description of the relevant known technology may obscure the key points of the embodiments disclosed herein when describing the embodiments, its detailed description will be omitted. In addition, the accompanying drawings are intended to facilitate the understanding of the embodiments disclosed herein, and the technical spirit disclosed herein is not limited by the accompanying drawings. Therefore, the present disclosure should be interpreted as including all changes, equivalents and substitutes included in the spirit and scope of the present disclosure.
[0038] Terms using ordinal numbers such as "first", "second", etc. may be used to indicate various components, but the components are not limited by the terms. These terms are used only for the purpose of distinguishing a component from another component.
[0039] It will also be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element, or intervening elements may be present. Conversely, when an element is referred to as being "directly connected" or "directly coupled" to another element, there are no intervening elements.
[0040] Figure 1 1 is a diagram illustrating a software update system 1 for an IoT device according to an embodiment of the present disclosure.
[0041] Reference Figure 1 The software update system 1 for IoT devices may include a software update gateway 100, at least one IoT device 200, a software update server 300, and the like.
[0042] The IoT device 200 may refer to a device having a communication function and capable of transmitting and receiving data with other IoT devices, terminals, servers, etc. For example, the IoT device 200 may include various devices such as refrigerators, air conditioners, washing machines, ovens, TVs, fans, electric heating devices, cooking appliances, cameras, switches, sensors, sockets, and electronic control units (ECUs) of vehicle components.
[0043] The IoT device 200 may have built-in software for operation, and may update the built-in software using update data provided from the software update server 300. The software of the IoT device 200 may include firmware, an operating system, a kernel, an application program, and the like.
[0044] The update of software can be performed according to a complete update method that sends complete software data corresponding to the software after the update and overwrites the existing software data with the complete software data, or a differential update method that only sends differential software data indicating the software changes caused by the update and only reflects the changes in the existing software data. The advantage of the differential update method is that because only the differential software data indicating the software changes are sent, the network data traffic is less than the network data traffic of the complete update method, but it is necessary to increase the computing power to generate the differential software data and use the differential software data to update the software. In other words, there is a trade-off relationship between network data traffic and computing power. Although the computing power required to generate differential software data and update the software using the differential software data increases, it is more useful to reduce the network data traffic, making the differential update method more meaningful than the complete update method technically or economically.
[0045] The IoT device 200 may typically lack the computing power or resources to update the software using differential software data. In this case, the IoT device 200 updates the software through a complete update method rather than a differential update method. On the other hand, when the IoT device 200 has sufficient computing resources to update the software using differential software data, the IoT device 200 may update the software according to the differential update method rather than the complete update method. Typically, since the software of the IoT device 200 has a smaller capacity, the network data traffic from the perspective of a single IoT device 200 is not large even when the complete update method is used. However, when the number of IoT devices 200 increases significantly, the network data traffic increases from the perspective of the network even when the size of a single complete software data is small.
[0046] The IoT device 200 may be classified into an IoT device 200_1 directly connected to the software update server 300 via a public network 410 and an IoT device 200_2 indirectly connected to the software update server 300 via a software update gateway 100 connected to the software update server 300 via a local area network 420. In the present disclosure, the former IoT device 200_1 may be referred to as a first type IoT device, and the latter IoT device 200_2 may be referred to as a second type IoT device.
[0047] The first type IoT device 200_1 may be directly connected to the software update server 300 via the public network 410 according to the direct connection method. When the first type IoT device 200_1 supports the differential update method, the first type IoT device 200_1 may only receive differential update data from the software update server 300 and update the software. Therefore, the amount of communication between the software update server 300 and the first type IoT device 200_1 may be reduced.
[0048] The second type IoT device 200_2 is connected to the software update gateway 100 via the local area network 420 according to the gateway connection method or the indirect connection method, and further, is indirectly connected to the software update server 300 through the software update gateway 100. When the second type IoT device 200_2 supports the differential update method, the second type IoT device 200_2 can only receive the differential update data from the software update gateway 100 and update the software. In addition, when the second type IoT device 200_2 does not support the differential update method, the second type IoT device 200_2 can receive the complete update data from the software update gateway 100 and update the software. A detailed description thereof will be given later.
[0049] The software update server 300 may refer to a server that manages and updates the software of the IoT device 200 , and there may be at least one or more servers. In addition, the software update server 300 may manage and update the software of the software update gateway 100 .
[0050] The software update server 300 may directly communicate with the software update gateway 100 and the first type IoT device 200_1 via the public network 410 , and furthermore, indirectly communicate with the second type IoT device 200_2 through the software update gateway 100 .
[0051] The software update server 300 may exist separately for each manufacturer of the IoT device 200 , exist separately for each manufacturer of the software update gateway 100 , or exist separately for each IoT platform.
[0052] The software update gateway 100 may refer to a device that is connected to the second type IoT device 200_2 via the local area network 420 based on a communication technology such as Bluetooth or WiFi and is capable of managing and controlling the second type IoT device 200_2 and communicating with the software update server 300 via the public network 410. For example, the software update gateway 100 may include various devices such as a wireless access point, a TV, a mobile phone, a smart phone, and a smart speaker.
[0053] The software update gateway 100 may be implemented with an IoT device 200, and in this case, the master IoT device 200 that manages other IoT devices 200 may be referred to as the software update gateway 100. An IoT device 200 that is a hub of a relationship with other IoT devices 200 and has computing power and resources capable of generating differential update data from complete update data of other IoT devices 200 may be used as the software update gateway 100.
[0054] The software update gateway 100 may be connected to the software update server 300 corresponding to the second type IoT device 200_2 via the public network 410 , receive software update data corresponding to the second type IoT device 200_2 from the software update server 300 , and update software of the connected second type IoT device 200_2 .
[0055] The software update gateway 100 may receive software update data of the second type IoT device 200_2 via the public network 410, and in the process, the data traffic of the public network 410 increases. The software update gateway 100 may reduce the data traffic of the public network 410 while updating the software of the second type IoT device 200_2 by the method described later.
[0056] Figure 2 is a block diagram illustrating a software update gateway 100 according to one embodiment of the present disclosure.
[0057] Reference Figure 2 , the software update gateway 100 may include a communication unit 110 , a memory 120 , and a processor 130 .
[0058] The communication unit 110 may perform wired or wireless communication with an external electronic device. For example, the communication unit 110 may send and receive sensor information, user input, learning models, and control signals to and from an external device.
[0059] The communication technologies used by the communication unit 110 include GSM (Global System for Mobile Communications), CDMA (Code Division Multiple Access), LTE (Long Term Evolution), 5G, WLAN (Wireless LAN), Wi-Fi (Wireless Fidelity), Bluetooth (BluetoothTM), RFID (Radio Frequency Identification), Infrared Data Association (IrDA), ZigBee, NFC (Near Field Communication), etc.
[0060] The communication unit 110 may be referred to as a communication modem or a communication interface.
[0061] The communication unit 110 may communicate with the software update server 300 via the public network 410 , and communicate with the second type IoT device 200_2 via the local area network 420 .
[0062] The communication unit 110 may send a software update request from the software update gateway 100 to the software update server 300, and directly receive software update data from the software update server 300. The software update data may mean complete update data or differential update data.
[0063] The communication unit 110 may receive a software update request from the second type IoT device 200_2, send the software update request of the second type IoT device 200_2 to the software update server 300, receive software update data of the second type IoT device 200_2 from the software update server 300, and send the software update data to the second type IoT device 200_2. The software update data may mean complete update data or differential update data.
[0064] The memory 120 may temporarily or permanently store a program for each signal processing and control in the processor 130 , a signal-processed image, audio or data signal, and the like.
[0065] The memory 120 may store software and software metadata for the operation of the software update gateway 100, and the software may include firmware, kernel, operating system, application program, etc. The software metadata may include device identification information, software identification information, software version information, etc.
[0066] The memory 120 may include a software database 121 storing software data and software metadata of each IoT device 200. The software database 121 may store software data of each IoT device 200 and software metadata corresponding to each version of the software data. The software data may include complete update data, differential update data, update changes, etc., and the software metadata may include device identification information, software identification information, software version information, etc.
[0067] The processor 130 may control the overall operation of the software update gateway 100 .
[0068] The processor 130 may send a software update request of the software update gateway 100 to the software update server 300 through the communication unit 110, receive software update data from the software update server 300 through the communication unit 110, and then update the software using the received software update data. The software update request may include software metadata of the software update gateway 100.
[0069] The processor 130 may send a software update request of the second type IoT device 200_2 to the software update server 300 through the communication unit 110, receive software update data of the second type IoT device 200_2 from the software update server 300 through the communication unit 110, then generate software update data of the second type IoT device 200_2 using the received software update data, and send the generated software update data to the second type IoT device 200_2 through the communication unit 110. The software update request may include software metadata of the software update gateway 100.
[0070] Specifically, the processor 130 may receive the differential update data of the second type IoT device 200_2 from the software update server 300 through the communication unit 110, generate the complete update data of the second type IoT device 200_2 based on the received differential update data, and send the generated complete update data to the second type IoT device 200_2 through the communication unit 110 to update the software of the second type IoT device 200_2. To this end, the processor 130 may reconstruct the complete update data of the new version based on the previous version software data and the differential update data stored in the software database 121.
[0071] When the differential update method is supported, the processor 130 may send the software update request according to the differential update method when sending the software update request. On the other hand, when the differential update method is not supported, the processor 130 may send the software update request according to the complete update method when sending the software update request.
[0072] When the software update data is complete update data, the processor 130 can update the software by overwriting the existing software data with the received complete update data. Alternatively, when the software update data is differential update data, the processor 130 can update the software by combining the received differential update data with the existing software data.
[0073] also, Figure 2The software update gateway 100 shown in FIG. 1 is merely an example including only necessary components, and some of the illustrated components are integrated, added, or may be omitted according to the standard of the actually implemented software update gateway 100. According to various embodiments, the software update gateway 100 may include components such as a microphone, a camera, a sensor, a display, and a speaker to provide various functions.
[0074] Figure 3 is a block diagram illustrating an IoT device 200 according to one embodiment of the present disclosure.
[0075] Reference Figure 3 , the IoT device 200 may include a communication unit 210 , a memory 220 , and a processor 230 .
[0076] The communication unit 210 may perform wired or wireless communication with an external electronic device. For example, the communication unit 210 may send and receive sensor information, user input, learning models, and control signals to and from an external device.
[0077] The communication technology used by the communication unit 210 includes GSM (Global System for Mobile Communications), CDMA (Code Division Multiple Access), LTE (Long Term Evolution), 5G, WLAN (Wireless LAN), Wi-Fi (Wireless Fidelity), Bluetooth (Bluetooth TM ), RFID (Radio Frequency Identification), Infrared Data Association (IrDA), ZigBee, NFC (Near Field Communication), etc.
[0078] The communication unit 210 may be referred to as a communication modem or a communication interface.
[0079] The communication unit 210 may directly communicate with the software update server 300 via the public network 410, or directly communicate with the software update gateway 100 via the local area network 420 to indirectly communicate with the software update server 300. As described above, among the IoT devices 200, the IoT device that directly communicates with the software update server 300 may be classified as a first type of IoT device 200_1, and the IoT device that indirectly communicates with the software update server 300 through the software update gateway 100 may be classified as a second type of IoT device 200_2.
[0080] The communication unit 210 may send a software update request to the software update server 300 through the software update gateway 100 or directly to the software update server 300, and receive software update data directly from the software update server 300 or receive software update data from the software update server 300 through the software update gateway 100. The software update data may mean complete update data or differential update data.
[0081] The memory 220 may temporarily or permanently store a program for each signal processing and control in the processor 230 , a signal-processed image, audio or data signal, and the like.
[0082] The memory 220 may store software and software metadata for the operation of the IoT device 200, and the software may include firmware, kernel, operating system, application, etc. The software metadata may include device identification information, software identification information, software version information, etc.
[0083] The processor 230 may control the overall operation of the IoT device 200 .
[0084] The processor 230 may send a software update request to the software update gateway 100 or the software update server 300 through the communication unit 210, receive software update data from the software update gateway 100 or the software update server 300 through the communication unit 210, and then use the received software update data to update the software. The software update request may include software metadata of the IoT device 200.
[0085] When the differential update method is supported, the processor 230 may send the software update request according to the differential update method when sending the software update request. On the other hand, when the differential update method is not supported, the processor 230 may send the software update request according to the complete update method when sending the software update request.
[0086] When the software update data is complete update data, processor 230 can update the software by overwriting the existing software data with the received complete update data. Alternatively, when the software update data is differential update data, processor 230 can update the software by combining the received differential update data with the existing software data.
[0087] on the other hand, Figure 3 The IoT device 200 shown in FIG. 1 is merely an example including only necessary components, and some of the illustrated components are integrated, added, or may be omitted according to the standard of the actually implemented IoT device 200. According to various implementations, the IoT device 200 may include components such as a microphone, a camera, a sensor, a display, and a speaker to provide various functions.
[0088] Figure 4 is a block diagram illustrating a software update server 300 according to one embodiment of the present disclosure.
[0089] Reference Figure 4 , the software update server 300 may include a communication unit 310 , a memory 320 , and a processor 330 .
[0090] The communication unit 310 may perform wired or wireless communication with an external electronic device. For example, the communication unit 310 may send and receive sensor information, user input, learning models, and control signals to and from an external device.
[0091] The communication technologies used by the communication unit 310 include GSM (Global System for Mobile Communications), CDMA (Code Division Multiple Access), LTE (Long Term Evolution), 5G, WLAN (Wireless LAN), Wi-Fi (Wireless Fidelity), Bluetooth (BluetoothTM), RFID (Radio Frequency Identification), Infrared Data Association (IrDA), ZigBee, NFC (Near Field Communication), etc.
[0092] The communication unit 310 may be referred to as a communication modem or a communication interface.
[0093] The communication unit 310 may communicate with the first type IoT device 200_1 or the software update gateway 100 through the public network 410. The communication unit 310 may receive a software update request of the IoT device 200 from the first type IoT device 200_1 or the software update gateway 100, and send software update data to the first type IoT device 200_1 or the software update gateway 100 based on the update request. The software update data may mean complete update data or differential update data.
[0094] The communication unit 310 may communicate with a manufacturer server (not shown) of the IoT device 200 , and receive software data of each IoT device 200 from the manufacturer server (not shown).
[0095] The memory 320 may temporarily or permanently store a program for each signal processing and control in the processor 330 , a signal-processed image, audio or data signal, and the like.
[0096] The memory 320 may include a software database 321 storing software data and software metadata of each IoT device 200. The software database 321 may store software data of each IoT device 200 and software metadata corresponding to each version of the software data. The software data may include complete update data, differential update data, update changes, etc., and the software metadata may include device identification information, software identification information, software version information, etc.
[0097] The processor 330 may control the overall operation of the software update server 300 .
[0098] The processor 330 can generate or determine software update data for software update of the software update gateway 100 or the IoT device 200, and based on the software update request received from the first type of IoT device 200_1 or the software update gateway 100, send the software update data to the first type of IoT device 200_1 or the software update gateway 100 through the communication unit 310.
[0099] The processor 330 may generate differential update data for the software update gateway 100 or updating the software of the IoT device 200 , and transmit the generated differential update data to the first type IoT device 200_ 1 or the software update gateway 100 through the communication unit 310 .
[0100] on the other hand, Figure 4 The software update server 300 shown in FIG. 1 is merely an example, and some of the illustrated components may be integrated, added, or omitted according to the standard of the software update server 300 actually implemented.
[0101] In one embodiment, two or more components of the software update server 300 may be combined into one component, or one component may be divided into two or more components as needed. In addition, the functions performed in each frame are used to describe the embodiments of the present disclosure, and its specific operations or devices do not limit the scope of the present disclosure.
[0102] Figure 5 is a flowchart illustrating a method for updating software of an IoT device according to one embodiment of the present disclosure.
[0103] Reference Figure 5 , the processor 130 of the software update gateway 100 may receive a software update request from the IoT device 200 through the communication unit 110 ( S501 ).
[0104] The software update request may include software metadata including device identification information of the IoT device 200 , software identification information, software version information, and the like.
[0105] The processor 130 can be connected to the IoT device 200 through the communication unit 110, obtain the software metadata of the IoT device 200 through the communication unit 110, and update the software database 121 based on the software metadata. The software database 121 can store the software metadata of the IoT device 200 and the complete update data (or complete update package) corresponding thereto.
[0106] Then, the processor 130 of the software update gateway 100 may send a software update request of the IoT device 200 to the software update server 300 through the communication unit 110 ( S503 ).
[0107] The processor 130 can determine the update target software, the pre-update version (or old version) and the post-update version (or new version) of the update target software based on the software metadata of the IoT device 200 for which the software update is scheduled, and request updated differential update data for the update target software from the software update server 300 through the communication unit 110.
[0108] Hereinafter, the pre-update version or the old version may be referred to as the first version, and the post-update version or the new version may be referred to as the second version. Therefore, the complete update data of the pre-update version may be referred to as the complete update data of the first version.
[0109] Then, the processor 130 of the software update gateway 100 may receive the differential update data of the IoT device 200 from the software update server 300 through the communication unit 110 ( S505 ).
[0110] The differential update data may be differential update data (or differential update package) for updating the update target software of the IoT device 200 from an old version to a new version. The new version may refer to the latest version.
[0111] Furthermore, the processor 130 of the software update gateway 100 may generate complete update data based on the old version of the software data and the differential update data ( S507 ).
[0112] The processor 130 may generate complete update data (or a complete update package) corresponding to the new version of software based on the old version of software data of the IoT device 200 stored in the software database 121 and the differential update data received from the software update server 300. The process of generating complete update data corresponding to the new version of software from the old version of software data and the differential update data may be referred to as an update package reconstruction process or an update data repackaging process.
[0113] Then, the processor 130 of the software update gateway 100 may transmit the complete update data of the update target software to the IoT device 200 through the communication unit 110 ( S509 ).
[0114] The processor 130 may update the update target software of the IoT device 200 by sending the complete update data to the IoT device 200 .
[0115] Then, the processor 130 of the software update gateway 100 may update the software database 121 ( S511 ).
[0116] After updating the update target software of the IoT device 200 , the processor 130 may update the software database 121 so that the software metadata of the IoT device 200 is replaced with the updated metadata and stores the new version software data (complete update data).
[0117] Figure 5 The order of the steps shown in is only an example, and the present disclosure is not limited thereto. That is, according to the embodiment, Figure 6 The order of some steps shown in can be performed in the reverse order. In addition, in one embodiment, Figure 5 Some of the steps shown in can be performed in parallel. In addition, only Figure 5 Some of the steps shown in .
[0118] Figure 5 Only a single cycle of the method of updating the software of an IoT device is illustrated, and can be performed repeatedly. Figure 5 How to operate in.
[0119] Figure 6 is an example Figure 5 Flowchart of an example of step S501 of receiving a software update request is shown in FIG.
[0120] Reference Figure 6 , the processor 130 of the software update gateway 100 may receive software metadata from the IoT device 200 through the communication unit 110 ( S601 ).
[0121] The software update gateway 100 and the IoT device 200 are connected through the local area network 420 , and the software update gateway 100 can receive software metadata from the IoT device 200 and update the software database 121 .
[0122] This step S601 is Figure 5 This corresponds to step S511 of updating the software database 121 shown in FIG. 1 , and may be omitted in some embodiments.
[0123] Then, the processor 130 of the software update gateway 100 may determine whether the software of the IoT device 200 is updateable ( S603 ).
[0124] The software update gateway 100 and the software update server 300 are connected through a public network 410 , and the software update gateway 100 may compare software metadata of the IoT device 200 with software metadata stored in the software update server 300 and determine whether the software of the IoT device 200 is updatable.
[0125] In one embodiment, the processor 130 may send the software identification information and software version information of the IoT device 200 to the software update server 300 through the communication unit 110, and receive a result of determining whether the software of the IoT device 200 is updatable from the software update server 300. In another embodiment, the processor 130 may receive software version information corresponding to the software identification information of the IoT device 200 from the software update server 300 through the communication unit 110, and compare the software version information of the IoT device 200 with the software version information received from the software update server 300 to determine whether the software of the IoT device 200 is updatable.
[0126] As a result of the determination in step S603 , when the software of the IoT device 200 is updatable, the processor 130 of the software update gateway 100 may transmit a software update notification to the IoT device 200 through the communication unit 110 ( S605 ).
[0127] The software update notification may mean a notification indicating that a software update is possible.
[0128] Then, the processor 130 of the software update gateway 100 may receive a software update request from the IoT device 200 through the communication unit 110 ( S607 ).
[0129] The software update request may be a response to the software update notification.
[0130] When it is determined in step S603 that the software of the IoT device 200 is not updatable, the process ends.
[0131] Figure 6 The order of the steps shown in is only an example, and the present disclosure is not limited thereto. That is, according to one embodiment, Figure 6 The order of some steps shown in can be performed in the reverse order. In addition, in one embodiment, Figure 6 Some of the steps shown in can be performed in parallel. In addition, only Figure 6 Some of the steps shown in .
[0132] Figure 7 is an example Figure 5 A flowchart of an example of step S507 of generating complete update data is shown in FIG.
[0133] Reference Figure 7 , the processor 130 of the software update gateway 100 may collect status information of the software update gateway 100 (S701).
[0134] Processor 130 may collect status information such as temperature, processor resource usage, available processor resources, memory usage, available memory, network usage, available networks, operational processing type, and the like.
[0135] Then, the processor 130 of the software update gateway 100 may determine whether to reconstruct the update package based on the state information of the software update gateway 100 ( S703 ).
[0136] The processor 130 may determine whether to perform the process of reconstructing the update package based on a determination criterion such as whether the temperature is lower than a reference value or whether the available processor resources are greater than a reference value.
[0137] For example, when the software update gateway 100 is a TV and the software update gateway 100 is outputting 4K video, most of the resources of the processor 130 may be allocated to video decoding, and there may not be enough processor resources allocated to the process of reconstructing the update package. In this case, the processor 130 may determine not to reconstruct the update package.
[0138] As a result of the determination in step S703 , while the process for reconstructing the update package is being performed, the processor 130 of the software update gateway 100 may perform a process of generating complete update data in the background ( S705 ).
[0139] The processor 130 may generate complete update data for updating the software of the IoT device 200 while maintaining the existing operation of the software update gateway 100 by executing the process of generating the complete update data in the background.
[0140] When it is determined in step S703 that the process of generating the complete update data is not performed, the process returns to step S701 of collecting the status information of the software update gateway 100 .
[0141] Figure 7 Some of the steps shown in can be performed in parallel.
[0142] Figure 8 is an example Figure 5 FIG. 5 is a flowchart of an example of step S509 of sending complete update data to the IoT device 200 .
[0143] Reference Figure 8 , the processor 130 of the software update gateway 100 may collect status information of the IoT device 200 through the communication unit 110 ( S801 ).
[0144] The processor 130 may collect status information such as temperature, processor resource usage, available processor resources, memory usage, available memory, network usage, available network, operation processing type, power status, or power supply status of the IoT device 200 through the communication unit 110 .
[0145] Then, the processor 130 of the software update gateway 100 may determine whether to update the software based on the status information of the IoT device 200 ( S803 ).
[0146] The processor 130 can determine whether to execute the software update process of the IoT device 200 based on a determination standard (for example, whether the temperature of the IoT device 200 is lower than a reference value, whether the available processor resources are higher than a reference value, whether the power is on (in a powered-on state), or whether power is being supplied).
[0147] When it is determined in step S803 to execute the software update process, the processor 130 of the software update gateway 100 may transmit the complete update data to the IoT device 200 through the communication unit 110 ( S805 ).
[0148] When it is determined in step S803 that the software update process is not to be performed, the process returns to step S801 of collecting the status information of the IoT device 200 .
[0149] Figure 8 Some of the steps shown in can be performed in parallel.
[0150] Fig. 9 is a diagram illustrating a software structure of the software update gateway 100 according to one embodiment of the present disclosure.
[0151] Reference Fig. 9 , the software that performs the function of updating the software of the IoT device 200 in the software update gateway 100 may be referred to as update master software (update master), and the update master software may be a program installed in the application layer 900 .
[0152] The update main software may include a software database 910, a server connection module 920, a status check module 930, an update package reconstruction module 940, a device connection module 950, and the like.
[0153] Software database 910 may refer to Figure 2. The server connection module 920 may refer to a module that performs a function of connecting to the software update server 300. The status check module 930 may include a gateway status check module 931 that performs a function of checking the status of the software update gateway 100 and a device status check module 932 that performs a function of checking the status of the IoT device 200. The update package reconstruction module 940 may refer to a module that performs a function of generating (or reconstructing) complete update data corresponding to the new version of the software data based on the old version of the software data and the differential update data. The device connection module 950 may refer to a module that performs a function of connecting to the IoT device 200.
[0154] The update package reconstructing module 940 may be configured as a sub-module of the status checking module 930 , since it determines whether to reconstruct the update package based on the status information of the software update gateway 100 obtained by using the gateway status checking module 931 .
[0155] Fig.10 The figure exemplifies data transmitted in the software update system 1 for IoT devices.
[0156] Reference Fig.10 , the software update gateway 100 may be connected to the software update server 300 via a public network 410 , and connected to the IoT device 200 via a local area network 420 .
[0157] The software update gateway 100 may request and receive the differential update data 1001 of the update target software from the software update server 300, so as to update the software (or update target software) of the IoT device 200. In addition, the software update gateway 100 may generate the complete update data 1002 corresponding to the new version of the software based on the received differential update data 1001 and the complete update data corresponding to the old version of the software to be updated, and send the generated complete update data 1002 to the IoT device 200 to update the update target software of the IoT device 200.
[0158] Conventionally, the software update gateway 100 receives complete update data from the software update server 300 and transmits the received complete update data to the IoT device 200, thereby causing a problem of increased network traffic in the public network 410. However, in the present disclosure, the software update gateway 100 only receives differential update data from the software update server 300, thereby effectively reducing network traffic in the public network 410.
[0159] Assuming that the ratio of differential update data (or differential update packages) is 20% and software updating is performed 20 times, when software updating is performed according to the present disclosure, the amount of data transmission in the public network 410 is reduced by about 76%.
[0160] Fig.11 is a diagram illustrating an example of a software metadata table stored in the software database 121 of the software update gateway 100 .
[0161] Reference Fig.11 The software metadata table 1100 may be stored in the software database 121 of the software update gateway 100 . The software metadata table 1100 may include software metadata of several IoT devices 200 .
[0162] The software metadata table 1100 may include a manufacturer name 1111 , a device name 1112 , device identification information 1113 , a software name 1114 , software identification information 1115 , a current software version 1116 , a latest software version 1117 , and the like.
[0163] exist Fig.11 In the example shown, the software metadata corresponding to the first IoT device is the first software metadata 1121, and similarly, the software metadata corresponding to the nth IoT device is referred to as the nth software metadata.
[0164] According to the first software metadata 1121, the third software metadata 1123, and the fourth software metadata 1124, the software installed in the first IoT device, the third IoT device, and the fourth IoT device is the latest software, so that the IoT devices do not need software updates. On the other hand, according to the second software metadata 1122, the fifth software metadata 1125, and the sixth software metadata 1126, the software installed in the second IoT device, the fifth IoT device, and the sixth IoT device is not the latest software, so that the IoT devices need software updates.
[0165] According to the second software metadata 1122 and the third software metadata 1123, the second IoT device is a "living room lamp" and the third IoT device is a "bedroom lamp", which are different from each other but are lighting products of the same manufacturer "AA Electronic Devices". The second IoT device and the third IoT device include built-in software with the same software identification information "AA_LAMP". Therefore, even if the second IoT device and the third IoT device are different from each other, the software update gateway 100 can use the same software update data to update the software of the second IoT device and the third IoT device.
[0166] On the other hand, according to the sixth software metadata 1126, the sixth IoT device is also a "bathroom lamp" which is a lighting product, but is a product of a manufacturer "CC electronic device" different from the second IoT device and the third IoT device, and includes built-in software having software identification information "CC_LAMP" different from the second IoT device and the third IoT device. Therefore, the software update gateway 100 can update its own software using the software update data of the sixth IoT device which is different from the software update data of the second IoT device and the third IoT device.
[0167] According to the fifth software metadata 1125, the current software version 1116 of the software "camera firmware" installed in the fifth IoT device is "v2", and its latest software version 1117 is "v4", so it can be known that the update is not performed twice. The software update gateway 100 can generate the complete update data of the "camera firmware" of version "v4" from the complete update data of the "camera firmware" of version "v2", the differential update data of the "camera firmware" of version "v3", and the differential update data of the "camera firmware" of version "v4", and use the generated complete update data to update the software of the fifth IoT device.
[0168] Fig.12 is a diagram illustrating an example of software update data stored in the software database 121 of the software update gateway 100 .
[0169] Reference Fig.12 , software data corresponding to the software of the IoT device may be stored in the software database 121 of the software update gateway 100 , and the software data may include differential update data 1213 that is distinguished from the software identification information 1211 and the software version 1212 , and include complete update data 1214 .
[0170] Fig.12 The examples shown in Fig.11 An example corresponding to the software metadata table 1100 shown in FIG.
[0171] For the first software 1221 whose software identification information 1211 is “AA_AIR”, the current software version 1116 and the latest software version 1117 are both “v1”, so the complete update data of the first software whose software version 1212 is “v1” may be stored in the software database 121 .
[0172] For the second software 1222 whose software identification information 1211 is "AA_LAMP", the current software version 1116 is "v1" and the latest software version 1117 is "v2", so the complete update data of the second software 1222 whose software version 1212 is "v1", the differential update data of the second software 1222 whose software version 1212 is "v2", and the complete update data of the second software 1222 whose software version 1212 is "v2" can be stored in the software database 121.
[0173] For the third software 1223 whose software identification information 1211 is “BB_WASH”, the current software version 1116 and the latest software version 1117 are both “v3”, so the complete update data of the third software whose software version 1212 is “v3” may be stored in the software database 121 .
[0174] For the fourth software 1224 whose software identification information 1211 is "BB_CAM", the current software version 1116 is "v2" and the latest software version 1117 is "v4", so the complete update data of the fourth software 1224 whose software version 1212 is "v2", the differential update data of the fourth software 1224 whose software version 1212 is "v3", the complete update data of the fourth software 1224 whose software version 1212 is "v3", the differential update data of the fourth software 1224 whose software version 1212 is "v4", and the complete update data of the fourth software 1224 whose software version 1212 is "v4" can be stored in the software database 121.
[0175] For the fifth software 1225 whose software identification information 1211 is "CC_LAMP", the current software version 1116 is "v1" and the latest software version 1117 is "v2", so the complete update data of the fifth software 1225 whose software version 1212 is "v1", the differential update data of the fifth software 1225 whose software version 1212 is "v1", the differential update data of the fifth software 1225 whose software version 1212 is "v2", and the complete update data of the fifth software 1225 whose software version 1212 is "v2" can be stored in the software database 121.
[0176] According to an embodiment of the present disclosure, the above method can be implemented with a computer-readable code on a medium of a recording program. Computer-readable media include all kinds of recording devices storing data readable by a computer system. Examples of computer-readable media may include a hard disk drive (HDD), a solid state disk (SSD), an optical disk drive (SDD), a ROM, a RAM, a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
Claims
1. A software update gateway for updating software of an IoT device, the software update gateway comprising: a communication unit configured to connect to a software update server and an IoT device; a software database configured to store complete update data of a first version of software of the IoT device; as well as A processor, the processor being configured to: receiving a software update request from the IoT device via the communication unit, transmitting the software update request to the software update server via the communication unit, receiving second version differential update data of the software from the software update server, generating second version complete update data of the software based on the first version complete update data and the second version differential update data, and The software is updated by sending the second version complete update data to the IoT device via the communication unit.
2. The software update gateway according to claim 1, wherein: The software database is configured to also store software metadata of the software, and The software metadata includes device identification information, software identification information and software version information.
3. The software update gateway according to claim 2, wherein: The processor is configured to: receive the software metadata of the software from the IoT device via the communication unit, determine whether the software can be updated based on the software metadata, and when the software can be updated, send a software update notification to the IoT device through the communication unit.
4. The software update gateway according to claim 3, wherein: The processor is configured to compare software version information of the software in the IoT device with software version information in the software update server to determine whether the software can be updated.
5. The software update gateway according to claim 1, wherein: The processor is configured to collect status information of the software update gateway, and determine whether to generate the second-version complete update package based on the status information of the software update gateway.
6. The software update gateway according to claim 5, wherein: The status information of the software update gateway includes at least one of the following: temperature of the software update gateway, processor resource usage, available processor resources, memory usage, available memory, network usage, available network, or operation processing type.
7. The software update gateway according to claim 6, wherein: The processor is configured to determine to generate the second-version complete update package when the temperature of the software update gateway is less than a first reference value and the available processor resources are greater than a second reference value.
8. The software update gateway according to claim 5, wherein: The processor is configured to: when the processor determines to generate the second-version complete update package, execute a process of generating the second-version complete update package in the background.
9. The software update gateway according to claim 1, wherein: The processor is configured to collect status information of the IoT device from the IoT device via the communication unit, and determine whether to update the software based on the status information of the IoT device.
10. The software update gateway according to claim 9, wherein: The status information of the IoT device includes at least one of the following: temperature of the IoT device, processor resource usage, available processor resources, memory usage, available memory, network usage, available network, operation processing type, power status or power supply status.
11. The software update gateway according to claim 10, wherein: The processor is configured to determine to update the software when the temperature of the IoT device is less than a third reference value, the available processor resources are greater than a fourth reference value, and the power state is a powered-on state.
12. The software update gateway according to claim 1, wherein: The communication unit is configured to be connected to the software update server through a public network and to be connected to the IoT device through a local area network.
13. A method for updating software of an IoT device, the method comprising the following steps: receiving, from the IoT device via a gateway communication unit, a software update request for the software of the IoT device; transmitting the software update request to a software update server via the gateway communication unit; receiving second version differential update data of the software from the software update server via the gateway communication unit; The gateway generates second version complete update data of the software based on the first version complete update data of the software and the second version differential update data, wherein the first version complete update data is stored in a gateway software database; and The software is updated by sending the second version complete update data to the IoT device via the gateway communication unit.
14. A recording medium recording a method for updating software of an IoT device, the method comprising the following steps: receiving, from the IoT device via a gateway communication unit, a software update request for the software of the IoT device; transmitting the software update request to a software update server via the gateway communication unit; receiving second version differential update data of the software from the software update server via the gateway communication unit; The gateway generates second version complete update data of the software based on the first version complete update data of the software and the second version differential update data, wherein the first version complete update data is stored in a gateway software database; and The software is updated by sending the second version complete update data to the IoT device via the gateway communication unit.
