Electronic device capable of upgrading its functions, server for upgrading the functions of an electronic device, and method for upgrading the functions of an electronic device
By using delta data transfer and strategic memory management, the method enhances the efficiency and reliability of electronic device upgrades, reducing time and data transfer while ensuring error-free operations.
Patent Information
- Application Number
- JP2024529350
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-11-17
- Filing Date
- 2022-11-16
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2042-11-16
AI Technical Summary
Existing methods for upgrading electronic devices require transferring large amounts of data, leading to increased time and potential disruptions during the upgrade process, which can result in errors if the device loses power.
The method involves transferring only delta data, which represents the changed portions of the program, to the electronic device, utilizing a management server to generate and transmit delta data based on comparisons between different versions of program data, and implementing a storage strategy that includes volatile and non-volatile memory to manage the update efficiently.
This approach reduces the time and data required for upgrades, minimizes the risk of errors during power outages, and ensures seamless functionality maintenance.
Smart Images

Figure 2024540487000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to an electronic device capable of upgrading its functions, a server for upgrading the functions of an electronic device, and a method for upgrading the functions of an electronic device. [Background technology]
[0002] The electronic device includes a controller that controls the operation of the electronic device, and the controller executes a specific program to control the electronic device so as to realize a function desired by a user.
[0003] Generally, after an electronic device is sold, only simple support such as correction of errors in the program is provided. Therefore, if a user needs an electronic device that performs a new function, the user must purchase a new electronic device. In other words, the residual value of the electronic device purchased by the user decreases significantly over time, which is a cause of dissatisfaction for the user.
[0004] Accordingly, methods of improving the functions of electronic devices or adding functions that can be performed by electronic devices by modifying the programs have been researched, and some of these methods have already been realized.
[0005] According to conventional methods, the entire program is transferred from a server to an electronic device, or the program is divided into fixed units, and then the changed parts of the divided units are transferred from the server to the electronic device, and then the update is performed on the electronic device.
[0006] However, as the number of functions performed by electronic devices increases and the sophistication of each function increases, the size of the programs also increases, and therefore the amount of data transferred to upgrade the electronic device using the conventional method increases, resulting in an increase in the time required for the upgrade. Summary of the Invention [Problem to be solved by the invention]
[0007] SUMMARY OF THE PRESENT EMBODIMENT An object of the present invention is to provide an apparatus and method for more conveniently upgrading the functions of electronic devices.
[0008] Another object of the present invention is to provide an apparatus and method capable of shortening the time required to upgrade the functions of an electronic device.
[0009] It is also an object of the present invention to provide an apparatus and method that can reduce the amount of data transferred when upgrading the functions of an electronic device.
[0010] Another object of the present invention is to provide an apparatus and method that can normally complete the operation of upgrading the functions of an electronic device without causing problems such as errors even if the operation of the electronic device stops due to a power outage or the like while upgrading the functions of the electronic device.
[0011] The object of the present invention is not limited to the object mentioned above, and other objects and advantages of the present invention not mentioned can be understood from the following description and can be more clearly understood from the embodiments of the present invention. In addition, it is easily understood that the object and advantages of the present invention can be realized by the means and combinations thereof as set forth in the claims. [Means for solving the problem]
[0012] The electronic device, server, and method according to an embodiment of the present invention can transfer only delta data, which is data of a changed portion of program data that controls the operation of the electronic device, from a server to the electronic device.
[0013] An electronic device, server, and method according to an embodiment of the present invention can transfer only delta data, which is data of a changed portion of program data that controls the operation of the electronic device, from a communication unit of the electronic device to a control unit of the electronic device.
[0014] An electronic device, server, and method according to an embodiment of the present invention can detect data from existing program data that is most similar to sector-specific data of new program data among program data that controls the operation of the electronic device, and then compare the detected data with the sector-specific data to generate delta data.
[0015] According to an embodiment of the present invention, an electronic device, a server, and a method thereof may read data of a first region including data corresponding to delta data from among program data stored in a first storage unit of the electronic device, and replace data corresponding to the delta data from among the read data with the delta data. Here, the first storage unit may be a non-volatile memory.
[0016] An electronic device, server, and method according to an embodiment of the present invention can read data stored in a first area of a first storage unit of an electronic device, replace a portion of the read data with delta data, and then store the data in a second area of the first storage unit.
[0017] The electronic device, server, and method according to an embodiment of the present invention may transmit commands and delta data to a communication unit of the electronic device from a server, the commands and delta data being executed by a control unit of the electronic device.
[0018] According to an embodiment of the present invention, the electronic device, the server, and the method may store a history corresponding to the number of commands performed by a control unit of the electronic device in a storage unit of the electronic device. In this case, the history may be stored when a command to delete data in a certain area of the storage unit is performed among the commands.
[0019] An electronic device according to one embodiment of the present invention includes a storage unit that stores program data, a communication unit that receives and stores a file for updating the program data from a management server and transmits update data for updating the program data based on the stored file, and a control unit that updates the program data in response to the update data, and the communication unit transmits delta data consisting of only the parts of the program data that are changed and a command as the update data.
[0020] The control unit of the electronic device according to an embodiment of the present invention may include a storage unit that stores the program data, and a processing unit that reads first data in a first area of the storage unit, modifies a portion of the data in the first area to the delta data to generate second data, and stores the second data in a second area different from the first area.
[0021] According to an embodiment of the present invention, the control unit of the electronic device includes a first storage unit including a non-volatile memory and storing the program data, a second storage unit including a volatile memory, and a processing unit that updates the program data in response to the update data, and the processing unit can read data in a first area of the first storage unit and record it in a second area of the second storage unit, modify a portion of data in the second area to the delta data, and record data in the second area in a third area different from the first area of the first storage unit.
[0022] According to an embodiment of the present invention, the first storage unit of the electronic device includes a plurality of sections, and the processing unit can erase data from the third area after recording data recorded in the third area in any one of the plurality of sections.
[0023] According to an embodiment of the present invention, the control unit of the electronic device includes a first storage unit including a non-volatile memory for storing the program data, a second storage unit including a volatile memory, and a processing unit for updating the program data in response to the update data, and the electronic device further includes a third storage unit including a non-volatile memory, and the processing unit can record the program data stored in the first storage unit to the third storage unit and modify a portion of data in a first area of the first storage unit to the delta data.
[0024] The processing unit of the electronic device according to an embodiment of the present invention may delete the data in the third storage unit after updating the program data is completed.
[0025] According to one embodiment of the present invention, the control unit of the electronic device may not execute the command if a count value indicating the number of commands received after the program update is started is smaller than or equal to a history value stored in a history page, and may execute the command if the count value is larger than the history value.
[0026] In accordance with an embodiment of the present invention, the controller of the electronic device may record the count value in the history page when the command is a command to record or delete data in a non-volatile memory.
[0027] According to one embodiment of the present invention, a management server includes a storage unit that stores the latest version of program data and the previous version of program data, a control unit that compares the latest version of the program data with the previous version of the program data to generate delta data, and a communication unit that transmits the delta data to an electronic device, wherein the delta data includes only data of the latest version of the program data that differs from the previous version of the program data.
[0028] According to one embodiment of the present invention, the control unit of the management server can perform an overall comparison of a first section of data in the latest version of the program data with the previous version of the program data, search for data that is most similar to the first section of data, and determine that data in the first section of data that differs from the most similar data is the delta data.
[0029] According to an embodiment of the present invention, the communication unit of the management server may transmit a file including the delta data and at least one command to the electronic device.
[0030] According to one embodiment of the present invention, the previous version program data of a management server includes a first version program data and a second version program data, and the delta data includes first delta data and second delta data, and the control unit can compare the latest version program data with the first version program data to generate the first delta data and compare the latest version program data with the second version program data to generate the second delta data.
[0031] According to one embodiment of the present invention, the communication unit of the management server can transmit the first delta data to a first electronic device storing the first version of program data, and transmit the second delta data to a second electronic device storing the second version of program data.
[0032] A method according to one embodiment of the present invention is a method for upgrading an electronic device including a communication unit that stores files received from a management server and a control unit that stores program data, the method including a step of the communication unit sending delta data consisting of only the parts of the program data that are to be changed and a command word to the control unit, and a step of the control unit modifying a part of the program data to the delta data.
[0033] The modifying step of the method according to one embodiment of the present invention may include a step of reading data from a first area of a non-volatile memory storing the program data and recording it in a second area of a volatile memory, a step of modifying a portion of the data in the second area to the delta data, and a step of recording the data in the second area in a third area of the non-volatile memory different from the first area.
[0034] The modifying step of the method according to one embodiment of the present invention may further include recording the data of the third area in one of a plurality of sections of the non-volatile memory, and deleting the data of the third area.
[0035] The modifying step of the method according to one embodiment of the present invention may include storing the program data stored in a first non-volatile memory in a second non-volatile memory, modifying a portion of data in a first area of the first non-volatile memory to the delta data, and deleting data in the second volatile memory.
[0036] The modifying step of the method according to one embodiment of the present invention may include, when the command is a command to record or delete data in a non-volatile memory, a step of recording a count value indicating the number of commands received after the program update is started in a history page, a step of comparing the count value with a history value recorded in the history page, and a step of not executing the command if the count value is smaller than or similar to the history value stored in the history page, and executing the command if the count value is greater than the history value.
[0037] A method according to one embodiment of the present invention may further include a step in which the management server performs a comprehensive comparison of a first section of data in the latest version of the program data with the previous version of the program data to search for data that is most similar to the first section of data, and a step in which data in the first section that differs from the most similar data is determined to be the delta data. Effect of the Invention
[0038] According to an electronic device, a server, and a method according to an embodiment of the present invention, the functions of an electronic device can be upgraded more conveniently.
[0039] Furthermore, according to the electronic device, server, and method according to an embodiment of the present invention, it is possible to reduce the time required to upgrade the functions of an electronic device.
[0040] Furthermore, according to the electronic device, server, and method according to an embodiment of the present invention, the amount of data transferred when upgrading the functions of the electronic device can be reduced.
[0041] In addition, according to the electronic device, server, and method according to one embodiment of the present invention, even if the operation of the electronic device stops due to a power outage or the like while upgrading the functions of the electronic device, the function upgrade operation of the electronic device can be completed normally without causing any problems such as errors.
[0042] The above-mentioned effects and specific effects of the present invention will be described in conjunction with the following description of the preferred embodiment of the invention. [Brief description of the drawings]
[0043] [Figure 1] 1 is a diagram illustrating a schematic configuration of a system for upgrading an electronic device according to an embodiment of the present invention. [Diagram 2]2 is a diagram illustrating a schematic configuration of a system for upgrading a home appliance according to an embodiment of the present invention, more specifically illustrating the user appliance of FIG. 1. [Diagram 3] 2 is a block diagram illustrating a schematic configuration of a management server for upgrading a home appliance according to an embodiment of the present invention; FIG. [Figure 4] 1 is a block diagram illustrating a schematic configuration of an upgradeable home appliance according to an embodiment of the present invention; [Diagram 5] 2 is a diagram for explaining the overall operation of a method for upgrading a home appliance according to an embodiment of the present invention; [Figure 6] 4 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention; [Figure 7] 4 is a diagram illustrating a process of generating and transmitting delta data in a method for upgrading a home appliance according to an embodiment of the present invention. [Figure 8] 4 is a diagram illustrating an example of existing program data and new program data in a method for upgrading a home appliance according to an embodiment of the present invention; [Figure 9] 4 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention; [Figure 10] 4 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention; [Figure 11] 4 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0044] The above-mentioned objects, features and advantages will be described in detail below with reference to the accompanying drawings, so that a person having ordinary skill in the art to which the present invention pertains can easily implement the technical idea of the present invention. In describing the present invention, if a detailed description of a known technology according to the present invention is deemed to make the gist of the present invention unclear, the detailed description will be omitted. Hereinafter, preferred embodiments according to the present invention will be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings are used to indicate the same or similar components.
[0045] Although the terms "first", "second", etc. are used to describe various components, it is understood that these components are not limited by these terms. These terms are used merely to distinguish one component from another, and it is understood that a first component may also be a second component unless otherwise specified.
[0046] Hereinafter, when a component is described as being "coupled," "coupled," or "connected" to another component, it should be understood that the components may be directly coupled or connected to each other, but that other components may be "intervening" between each component, or each component may be "coupled," "coupled," or "connected" via other components.
[0047] Unless otherwise specified to the contrary throughout the entire specification, each element may be singular or plural.
[0048] As used herein, singular expressions include plural expressions unless the context clearly indicates otherwise. In this application, the terms "comprise" and "include" (comprise; constitute; construct; set; include; contain; contain) should not be interpreted as including all of the various components or steps described in the specification, but should be interpreted as including some of the components or steps that may not be included or may include additional components or steps.
[0049] Throughout the specification, "A and / or B" means A, B, or A and B, unless otherwise specified, and "C to D" means C or more and D or less, unless otherwise specified.
[0050] In the following, an upgradeable home appliance, a server for upgrading a home appliance, and a method for upgrading a home appliance according to some embodiments of the present invention will be described.
[0051] FIG. 1 is a diagram illustrating a schematic configuration of a system for upgrading a home appliance according to an embodiment of the present invention. The system according to an embodiment of the present invention may include a management server 100 and a plurality of user devices 210, 220, 230, and 240.
[0052] The management server 100 can store information about the electronic device to be upgraded and information about the electronic device owned by each user.
[0053] The information about the electronic device to be upgraded may include at least one of identification information of the electronic device, program data for each version of the electronic device, and delta data derived from a comparison between each of the program data of the previous version and the program data of the latest version.
[0054] The information regarding the electronic device owned by each user may include identification information of the user and identification information of the electronic device linked to the user's identification information.
[0055] The management server 100 may transmit a file including the delta data to update program data of each of the user devices 210, 220, 230, and 240. In this case, the file transmitted by the management server 100 may also include a command set to be executed by each of the user devices 210, 220, 230, and 240.
[0056] Each of the plurality of user devices 210, 220, 230, and 240 may include at least one electronic device. Here, the electronic device may include various types of devices, such as various types of home appliances such as air conditioners, air purifiers, refrigerators, washing machines, clothing management machines, and water purifiers, mobile devices such as smartphones, and various types of electronic devices included in automobiles (e.g., devices provided for autonomous driving or devices for controlling the operation of a vehicle).
[0057] Also, each of the plurality of user devices 210, 220, 230, and 240 may include at least one user terminal. Each of the at least one electronic device may update program data in response to a file (i.e., a file including delta data and / or an instruction set) received from the management server 100.
[0058] In the following, a case where a home appliance is upgraded will be described as an example of an electronic device to be upgraded, however, the scope of the present invention is not limited thereto.
[0059] Fig. 2 is a diagram illustrating a schematic configuration of a system for upgrading a home appliance according to an embodiment of the present invention, and is a diagram illustrating in more detail the user appliance of Fig. 1. The system according to an embodiment of the present invention may include a management server 100, an access point 300, a plurality of home appliances 410, 420, 430, 440, 500, 600, and a user terminal 700. That is, each of the plurality of user appliances 210, 220, 230, 240 of Fig. 1 may include at least one of the access point 300, the plurality of home appliances 410, 420, 430, 440, 500, 600, and the user terminal 700.
[0060] The functions of the management server 100 may be similar to those described in FIG.
[0061] The access point 300 can act as a relay between the management server 100 and the home appliances 410, 420, 500, and 600. The access point 300 may be a Wi-Fi router.
[0062] Each of the plurality of home appliances 410, 420, 430, 440, 500, and 600 can perform a unique function according to the execution of the program.
[0063] The home appliances 410, 420, 430, and 440 may be connected for a certain function. For example, the 1-1 home appliance 410, the 1-2 home appliance 420, and the 1-3 home appliance 430 may be indoor units of an air conditioner, and the 1-4 home appliance 440 may be an outdoor unit of the air conditioner. The 1-1 home appliance 410 and the 1-2 home appliance 420 may include a communication module (e.g., a Wi-Fi module). Thus, each of the 1-1 home appliance 410, the 1-2 home appliance 420, and the 1-3 home appliance 430 can adjust at least one of the temperature, humidity, and concentration of fine particulate matter in the indoor air according to the execution of the program.
[0064] Each of the second home appliance 500 and the third home appliance 600 may be an independently operating home appliance. For example, each of the second home appliance 500 and the third home appliance 600 may be one of various home appliances such as a washing machine, an air purifier, a clothes management machine, and a refrigerator. Each of the second home appliance 500 and the third home appliance 600 may include a communication module (e.g., a Wi-Fi module).
[0065] The user terminal 700 may be a mobile terminal of a user who owns multiple home appliances 410, 420, 430, 440, 500, and 600.
[0066] In some embodiments, the access point 300 may be omitted. In this case, each of the home appliances 410, 420, 500, and 600 may be connected to the management server 100 via the Internet or the like.
[0067] FIG. 3 is a block diagram showing a schematic configuration of a management server for upgrading a home appliance according to an embodiment of the present invention, and the management server 100 may include a control unit 110, a communication unit 120, and a storage unit 130.
[0068] The control unit 110 may generate delta data for each home appliance based on the data stored in the storage unit 130, and transmit the delta data to the home appliance (410, 420, 500, 600 in FIG. 2) via the communication unit 120. When transmitting the delta data, the control unit 110 may also transmit a command set to be executed by the control unit of the home appliance (410, 420, 500, 600 in FIG. 2).
[0069] The control unit 110 may include at least one processing unit and / or memory. Here, the processing unit may include, for example, a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc., and may have multiple cores. The memory may be a volatile memory (e.g., RAM, etc.), a non-volatile memory (e.g., ROM, flash memory, etc.), or a combination thereof.
[0070] The communication unit 120 can transmit a signal to the outside according to the control of the control unit 110. The communication unit 120 can also receive a signal from the outside and output the received signal to the control unit 110. The communication unit 120 can transmit and receive signals in a wired and / or wireless manner. The communication unit 120 may include a modem, a network interface card (NIC), an integrated network interface, a radio frequency transmitter / receiver, an infrared port, a USB connection, or other interface for communication with other computer devices.
[0071] The storage unit 130 may store data received via the communication unit 120 under the control of the control unit 110 and / or data processed under the control of the control unit 110. For example, the storage unit 130 may store at least one of user identification information, home appliance identification information associated with the user identification information, program data for each version of the home appliance, and delta data derived from a comparison result between each program data of a previous version and the program data of the latest version.
[0072] 4 is a block diagram illustrating a configuration of an upgradeable home appliance according to an embodiment of the present invention. The home appliance according to an embodiment of the present invention may include a communication unit 810, a control unit 820, and a third storage unit 830. The communication unit 810 may include a storage unit 811 and a transceiver unit 812, and the control unit 820 may include a processing unit 821, a first storage unit 822, and a second storage unit 823. Each of the home appliances 410, 420, 500, and 600 in FIG. 2 may include the configuration illustrated in FIG. 4. In addition, depending on an embodiment, the home appliance according to an embodiment of the present invention may not include some of the first storage unit 822, the second storage unit 823, and the third storage unit 830.
[0073] The communication unit 810 can receive data from the management server (100 in FIG. 1 or FIG. 2) and transmit the received data to the control unit 820. The data received from the management server (100 in FIG. 1 or FIG. 2) may include the delta data described above and instructions to be performed by the control unit 820. The communication unit 810 may include a radio frequency transmitter / receiver, an infrared port, a USB connection, or other interface. For example, the communication unit 160 may include a short-range communication module that transmits and receives signals according to a communication standard such as Wi-Fi or Bluetooth.
[0074] The storage unit 811 can store data received from the management server (100 in FIG. 1 or FIG. 2). The storage unit 811 may be a non-volatile memory. For example, the storage unit 811 may be a flash memory.
[0075] The transceiver 812 can transmit the data stored in the storage unit 811 to the control unit 820 .
[0076] The controller 820 may store a program for implementing a function of the home appliance and execute the stored program to cause the home appliance to perform a specific function. The controller 820 may also update the stored program in response to data received from the communication unit 810.
[0077] The processing unit 821 may include a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), etc., and may have multiple cores.
[0078] The first storage unit 822 may be a non-volatile memory. For example, the first storage unit 822 may be a flash memory. The first storage unit 822 may store the program.
[0079] The second storage unit 823 may be a volatile memory. For example, the second storage unit 823 may be a RAM. A portion of the program data stored in the first storage unit 822 may be loaded into the second storage unit 823, and the program data stored in the second storage unit 823 may be written to a specific area of the first storage unit 822.
[0080] The third storage unit 830 may be a non-volatile memory. The third storage unit may be one of a flash memory, a magnetic storage, and an optical storage. A program for performing the functions of the home appliance may be stored in the third storage unit 830.
[0081] FIG. 5 is a diagram illustrating the overall operation of a method for upgrading a home appliance according to an embodiment of the present invention.
[0082] First, the communication unit 810 may request identification information of the home appliance from the control unit 820 (operation S101). The identification information of the home appliance may include at least one of a serial number and a model name of the home appliance.
[0083] Next, the control unit 820 may return the identification information of the home appliance to the communication unit 810 in response to the product information request (operation S102).
[0084] Next, the communication unit 810 may request information regarding whether the home appliance is to be upgraded from the management server 100 (operation S103). At this time, the communication unit 810 may transmit identification information of the home appliance to the management server 100. The communication unit 810 may also transmit user information to the management server 100.
[0085] Next, the management server 100 can return upgrade information regarding whether there is anything to be upgraded to the communication unit 810 (operation S104).
[0086] The management server 100 can also provide the upgrade information to the user terminal 700 (step S105). The management server 100 can search for information on the user of the home appliance using information stored in the storage unit (130 in FIG. 3) and can also receive user information from the communication unit 810.
[0087] Next, when the user accepts the upgrade using the user terminal 700, information regarding the acceptance of the upgrade may be transmitted from the user terminal 700 to the management server 100 (step S106).
[0088] Instead of accepting the upgrade using the user terminal 700, the user may accept the upgrade using an input / output device of the home appliance.
[0089] In response to the user's consent to the upgrade, the management server 100 may request the communication unit 810 to start the upgrade (operation S107).
[0090] The communication unit 810 may request a file transfer in response to a request from the management server 100 to start the upgrade (operation S108).
[0091] In response to the file transfer request from the communication unit 810, the management server 100 may transmit a file including delta data and / or a command set to the communication unit 810 (operation S109).
[0092] The communication unit 810 and the control unit 820 can update the program of the home appliance using the file received from the management server 100 (operation S110).
[0093] When the upgrade is completed, the communication unit 810 can return a notification of the upgrade completion to the management server 100 (step S111).
[0094] In response to the upgrade completion reply received from the communication unit 810, the management server 100 can provide the user terminal with information regarding the upgrade completion (operation S112).
[0095] 6 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention. In FIG. 6, 840 indicates a non-volatile memory of the home appliance, and 850 indicates a volatile memory of the home appliance. For example, 840 in FIG. 6 may be the same as the first storage unit 822 in FIG. 4, and 850 in FIG. 6 may be the same as the second storage unit 823 in FIG. 4. The delta data is data transferred from the management server 100 and indicates data of a changed portion of the program data.
[0096] According to one embodiment of the present invention, the management server 100 transmits to the home appliance delta data, which is data of a changed portion of the program data, a location where the delta data is to be written, and a command for writing the delta data to a specified location.
[0097] According to an embodiment of the present invention, a program for implementing a function of a home appliance may be divided and stored in a plurality of sections, where a section may refer to an area of a storage unit.
[0098] As shown in FIG. 6, it is assumed that a program is divided into three sections and stored, and a new program file is one in which parts of section 2 and section 3 have been modified.
[0099] Each operation described below can be performed by the control unit of the home appliance (820 in FIG. 4 (more specifically, the processing unit 821 of the home appliance)).
[0100] First, data stored in section 2 of non-volatile memory 840 may be read, and the read data may be written to volatile memory 850. Then, a portion of the program data written to volatile memory 850 may be replaced with delta data received from management server 100. Then, an erase operation may be performed on section 2 of non-volatile memory 840, and modified program data 841 may be written to section 2 of non-volatile memory 840.
[0101] Similarly, data stored in section 3 of non-volatile memory 840 may be read, and the read data may be written to volatile memory 850. Then, a portion of the program data written to volatile memory 850 may be replaced with delta data received from management server 100. Then, a deletion operation may be performed on section 3 of non-volatile memory 840, and modified program data 842 may be written to section 3 of non-volatile memory 840.
[0102] 7 is a diagram illustrating a process of generating and transmitting delta data in a method for upgrading a home appliance according to an embodiment of the present invention. In FIG. 7, identification number 900 indicates a terminal of a program developer. In FIG. 7, PGM#1 indicates a program of version 1, PGM#2 indicates a program of version 2, and PGM#3 indicates a program of version 3, and it is assumed that the program of version 3 is the latest version of the program.
[0103] When a program developer develops a new program, the developed program is transferred to the management server 100. At this time, identification information of a home appliance on which the program is to be executed may also be transferred to the management server 100. The transferred program may be stored in a storage unit (130 in FIG. 3) of the management server 100.
[0104] The management server 100 (more specifically, the control unit of the management server (110 in FIG. 3)) can generate delta data based on the stored programs. That is, the management server 100 can compare a program of version 3 (PGM#3) with a program of version 1 (PGM#1) to generate first delta data (Delta#1), and can compare a program of version 3 (PGM#3) with a program of version 2 (PGM#2) to generate second delta data (Delta#2).
[0105] Thereafter, the management server 100 can transfer the first delta data (Delta #1) to the home appliance 801 in order to upgrade the home appliance 801 which currently stores a program version 1 (PGM #1), and can transfer the second delta data (Delta #2) to the home appliance 802 in order to upgrade the home appliance 802 which currently stores a program version 2 (PGM #2).
[0106] 8 is a diagram showing an example of existing program data (a) and new program data (b) in a method for upgrading a home appliance according to an embodiment of the present invention. The hatched parts in FIG. 8 indicate changed parts.
[0107] As shown in FIG 8(a), the existing program data may include an A block stored in section 841, a B block stored in section 842, a C block stored in section 844, and a D block stored in section 845. As shown in FIG 8(b), the new program data may include an A' block stored in section 841, a B block stored in section 842, and a D' block stored in section 844.
[0108] The management server 100 (more specifically, the control unit of the management server 100 (110 in FIG. 4)) can generate delta data by comparing the existing program data (FIG. 8(a)) with the new program data (FIG. 8(b)).
[0109] Specifically, the management server 100 searches the existing program data (FIG. 8(a)) for data that is most similar to the data (A' block) of the first section 841 of the new program data (FIG. 8(b)). When searching, the management server 100 may sequentially scan the storage area in which the existing program data is stored. At this time, it may scan by sequentially increasing addresses rather than scanning by section. After determining that the data (A block) of the first section (841 in FIG. 8(a)) is the most similar data, the management server 100 may determine that the data of the different part (data in the shaded part in 841 in FIG. 8(b)) is the first configuration of the delta data.
[0110] Next, the management server 100 searches the existing program data (FIG. 8(a)) for data that is most similar to the data (Block B) in the second section 842 of the new program data (FIG. 8(b)). The management server 100 can determine that the data (Block B) in the second section (842 in FIG. 8(a)) is the same data.
[0111] Next, the management server 100 searches the existing program data (FIG. 8(a)) for data that is most similar to the data (D' block) in the fourth section 844 of the new program data (FIG. 8(b)). After determining that the data is most similar to the data (D block) in the fifth section (845 in FIG. 8(a)), the management server 100 can determine that the data in the different portion (data in the shaded portion in 844 in FIG. 8(b)) is the second configuration of the delta data.
[0112] Through this process, the management server 100 can grasp that in the existing program data (FIG. 8(a)), when a portion of the data in the first section 841 is replaced with a first configuration of delta data and a portion of the data in the fifth section 845 is replaced with a second configuration of delta data, and then the data in the fifth section 845 is moved to the fourth section, the resulting data will be identical to the new program data (FIG. 8(b)).
[0113] 8, a case has been described in which data similar to one section of the new program data is stored in one section of the existing program data, but a case may also occur in which data similar to one section of the new program data is divided and stored in two sections of the existing program data. In this case, delta data can be generated in the same manner as described above.
[0114] FIG. 9 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention.
[0115] The method shown in FIG. 9 can be performed by a control unit 820 (more specifically, a processing unit 821) of the home appliance, and a set of commands and delta data that cause the control unit 820 to perform such operations can be transmitted from the management server 100 to the home appliance.
[0116] First, FIG. 9(a) shows the program data before it is updated.
[0117] Next, referring to FIG. 9(b), data (A) in section 841 may be changed to data (A') and written to section 843. The specific process is as described in FIG. 8. That is, data (A) in section 841 may be read and recorded in a specific area of a volatile memory (e.g., RAM), data in a part of the specific area of the volatile memory may be modified to delta data received from management server 100 and changed to data (A'), and the data (A') recorded in the specific area of the volatile memory may be recorded in section 843 of a non-volatile memory (e.g., flash memory).
[0118] Next, referring to Fig. 9(c), the data (D) in section 845 may be changed to data (D') and written to section 846. The specific process is as described in Fig. 8.
[0119] 9(d), data (A') of section 843 may be written to section 841. To explain the specific process, the data of section 841 is deleted, data (A') of section 843 is read and recorded in a specific area of the volatile memory, and the data (A') recorded in the specific area of the volatile memory is recorded in section 841.
[0120] Next, referring to Figure 9(e), the data (D') of section 846 may be written to section 844. The specific process is as described in Figure 9(d).
[0121] Next, referring to Figure 9(f), unnecessary sections can be deleted, i.e., the data in sections 843, 845, and 846 can be deleted.
[0122] By going through this process, even if the update process is interrupted due to a power outage or the like while updating program data, the home appliance can recover by itself.
[0123] FIG. 10 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention.
[0124] The method shown in FIG. 10 can be performed by a control unit 820 (more specifically, a processing unit 821) of the home appliance, and a set of commands and delta data that cause the control unit 820 to perform such operations can be transmitted from the management server 100 to the home appliance.
[0125] The embodiment shown in FIG. 10 is for a case where the capacity of the non-volatile memory (e.g., flash memory) is sufficiently large. For example, the capacity of the first storage unit 822 shown in FIG. 5 is designed to be twice as large as that of the conventional one, or the home appliance includes a third storage unit (830 in FIG. 5). That is, 850 in FIG. 10 may be the first storage unit 822 shown in FIG. 5, and 860 in FIG. 10 may be the third storage unit 830 shown in FIG. 5.
[0126] First, FIG. 10(a) shows the program data before it is updated.
[0127] 10(b), data (A, B, C, D) of storage unit 850 may be copied to storage unit 860. Specifically, data in each of sections 851, 852, 853, and 854 of storage unit 850 may be read in sequence and recorded in a specific area of the volatile memory, and then the data in the specific area of the volatile memory may be recorded in each of sections 861, 862, 863, and 864 of storage unit 860.
[0128] Next, referring to Fig. 10(c), data (A) in the storage unit (section 851) may be changed to data (A'). The specific process is as described in Fig. 8. That is, data (A) in section 851 may be read and recorded in a specific area of a volatile memory (e.g., RAM), data in a part of the specific area of the volatile memory may be modified to data (A') using delta data received from management server 100, and the data (A') recorded in the specific area of the volatile memory may be recorded in section 851 of a non-volatile memory (e.g., flash memory).
[0129] Next, referring to Fig. 10(d), the data (D) in section 854 may be changed to data (D'), as described in Fig. 10(c).
[0130] Next, referring to FIG. 10(e), the data recorded in the storage unit 860 can be deleted.
[0131] According to the embodiment shown in Fig. 10, a previous program can be backed up before updating a program. Therefore, even if the update is interrupted due to a power outage or the like during the program update process, the update can be restored without error.
[0132] 11 is a diagram illustrating a process of updating program data in a method for upgrading a home appliance according to an embodiment of the present invention, which may be performed in step S110 of FIG.
[0133] First, the communication unit 810 can notify the control unit 820 of the start of a program data update process (operation S201).
[0134] Next, the communication unit 810 may transmit information about the history page to the control unit 820 (operation S202). The information about the history page may be a specific address of a non-volatile memory included in the home appliance. Information about the number of commands performed by the control unit 820 in the process of updating the program data may be recorded in the specific address.
[0135] Next, the control unit 820 may read the history page (operation S203). As described above, information regarding the number of previously executed commands may be recorded in the history page.
[0136] Next, the control unit 820 may transmit an acknowledgement signal (ack) to the communication unit 810 (operation S204).
[0137] The communication unit 810 may transmit commands and / or delta data to the control unit 820 in response to the acknowledgement signal (ack) (operation S205). In operation S205, the communication unit 810 may sequentially transmit commands and / or delta data stored in the storage unit 811 in response to the acknowledgement signal (ack). The commands transmitted by the communication unit 810 may include a serial number.
[0138] The control unit 820 may determine whether a count value indicating the number of commands received after the program update is started is greater than a value stored in the history page (operation S206). The number of received commands may be a serial number included in the command transmitted by the communication unit 810. If the command transmitted by the communication unit 810 does not include a serial number, the control unit 820 may count each time a command is received after the program update is started.
[0139] If it is determined in step S206 that the count value is not greater than the value stored in the history page, the control unit 820 may not execute the command and may instead send an acknowledgement signal (ack) to the communication unit 810 (step S207).
[0140] If it is determined in step S206 that the count value is greater than the value stored in the history page, the control unit 820 may execute the corresponding command (step S208). At this time, the control unit 820 may also store the count value in the history page (step S208). The operation of storing the count value in the history page may be performed according to the type of the executed command. For example, the count value may be stored in the history page only when an operation of changing data in a non-volatile memory (e.g., a flash memory) is performed. According to an embodiment, the count value may be stored in the history page only when an operation of deleting data in a non-volatile memory (e.g., a flash memory) is performed.
[0141] Next, the control unit 820 can transmit an acknowledgement signal (ack) to the communication unit 810 (operation S209).
[0142] By performing the above-mentioned process, even if the update operation is stopped due to a power outage or other errors while updating the program data, the update can be completed normally. That is, when the update operation is started again after recording the command performed before the update operation is stopped, the operation performed before the update operation is stopped is not performed, and the update operation can be performed immediately after the command. In this case, the operation on the volatile memory can be performed again by recording the count value in the history page only when a command for changing data in the non-volatile memory is performed. However, in the case of an operation for recording data in the non-volatile memory, if the operation is stopped during the operation, the data may not be recorded normally. Therefore, the reliability of the operation can be further improved by recording the count value in the history page only when data in the non-volatile memory is deleted.
[0143] Next, the communication unit 810 may determine whether the update of the program data is completed (operation S210). The communication unit 810 may determine that the update of the program data is completed if all of the command sets stored in the storage unit 811 are transmitted to the control unit 820.
[0144] Next, the communication unit 810 transmits the checksum to the control unit 820 (step S211), and the control unit 820 can return an acknowledgement signal (ack) to the communication unit 810 if there is no error after checking (step S212). That is, it is possible to check whether there is an error in the data transfer, etc. Unlike the drawing, it is also possible to check whether there is an error in the data transfer by using a method other than the checksum.
[0145] Next, the communication unit 810 can notify the control unit 820 of the disconnection (operation S213).
[0146] The control unit 820 may return an acknowledgement signal (ack) to the communication unit 810 (operation S214), and the communication unit 810 may finally release the connection with the control unit 820.
[0147] Although the present invention has been described above with reference to the illustrative drawings, the present invention is not limited to the embodiments and drawings disclosed in this specification, and it is obvious that various modifications can be made by those skilled in the art within the scope of the technical concept of the present invention. Furthermore, even if the effects of the configuration of the present invention are not explicitly described and explained while the embodiments of the present invention are described above, it is natural that the effects that can be predicted by the configuration should also be recognized.
[0148] [Claims (at the time of international application)] [Claim 1] An electronic device, a storage unit for storing program data; a communication unit that receives and stores a file for updating the program data from a management server, and transmits update data for updating the program data based on the stored file; a control unit that updates the program data in response to the update data, The communication unit transmits, as the update data, delta data consisting of only a portion of the program data that is to be changed and a command word. [Claim 2] The control unit is a storage unit for storing the program data; 2. The electronic device of claim 1, further comprising: a processing unit that reads first data in a first area of the storage unit, modifies a portion of the data in the first area to the delta data to generate second data, and stores the second data in a second area different from the first area. [Claim 3] The control unit is a first storage unit including a non-volatile memory for storing the program data; a second storage unit including a volatile memory; a processing unit for updating the program data in response to the update data; The processing unit includes: 2. The electronic device of claim 1, further comprising: reading data from a first area of the first storage unit, recording the data in the second area of the second storage unit, correcting a portion of the data in the second area to the delta data, and recording the data in the second area in a third area different from the first area of the first storage unit. [Claim 4] the first reservoir comprises a plurality of sections; 4. The electronic device according to claim 3, wherein the processing unit deletes the data recorded in the third area after recording the data in one of the plurality of sections. [Claim 5] The control unit is a first storage unit having a non-volatile memory and configured to store the program data; a second storage unit having a volatile memory; a processing unit for updating the program data in response to the update data; The electronic device further comprises a third storage unit having a non-volatile memory; The processing unit includes: The program data stored in the first storage unit is recorded in the third storage unit; The electronic device of claim 1 , further comprising: a step of modifying a portion of data in a first region of the first storage unit to the delta data. [Claim 6] The electronic device of claim 5 , wherein the processing unit deletes the data in the third storage unit after the update of the program data is completed. [Claim 7] The control unit is If a count value indicating the number of commands received after the program update is started is equal to or less than a history value stored in a history page, the command is not executed; and The electronic device of claim 1 , further comprising: a processor configured to execute the instruction when the count value exceeds the history value. [Claim 8] 8. The electronic device of claim 7, wherein the control unit records the count value in the history page when the command is for recording or deleting data in a non-volatile memory. [Claim 9] A management server, a storage unit for storing the latest version of program data and previous versions of program data; a control unit that compares the latest version of the program data with the previous version of the program data to generate delta data; A communication unit that transmits the delta data to an electronic device; The delta data includes only data of the latest version of the program data that differs from the previous version of the program data. [Claim 10] The control unit is A first section of the latest version of the program data is compared with the previous version of the program data as a whole, retrieving data most similar to the data in said first section; 10. The management server according to claim 9, wherein data of the first section that differs from the most similar data is determined to be the delta data. [Claim 11] 10. The management server according to claim 9, wherein the communication unit transmits a file including the delta data and at least one command word to the electronic device. [Claim 12] The previous version of the program data comprises a first version of the program data and a second version of the program data; the delta data comprises first delta data and second delta data; The control unit is comparing the latest version of the program data with the first version of the program data to generate the first delta data; 10. The management server according to claim 9, further comprising: a management server configured to compare the program data of the latest version with the program data of the second version to generate the second delta data. [Claim 13] The communication unit is transmitting the first delta data to a first electronic device storing the first version of the program data; 13. The management server of claim 12, further comprising: a management server configured to transmit the second delta data to a second electronic device that stores the second version of the program data. [Claim 14] 1. A method for upgrading an electronic device, comprising: The electronic device includes a communication unit that stores a file received from a management server, and a control unit that stores program data; the communication unit transmitting delta data including only a portion of the program data that is to be changed and a command to the control unit; and a step of the control unit correcting a portion of the program data to the delta data. [Claim 15] The modifying step includes: reading data from a first area of the non-volatile memory storing the program data and recording the data in a second area of the volatile memory; modifying a portion of data in the second region to the delta data; 15. The method of claim 14, further comprising: recording the data in the second area in a third area of the non-volatile memory that is different from the first area. [Claim 16] The modifying step includes: recording the data of the third region in one of a plurality of sections of the non-volatile memory; The method of claim 15, further comprising the step of: deleting data in the third area. [Claim 17] The modifying step includes: storing the program data stored in the first non-volatile memory in a second non-volatile memory; modifying a portion of data in a first region of the first non-volatile memory to the delta data; and deleting data in the second volatile memory. [Claim 18] The modifying step includes: if the command is a command for writing or deleting data in a non-volatile memory, writing a count value indicating the number of commands received after the program update is started in a history page; comparing the count value with a history value recorded in the history page; 15. The method of claim 14, further comprising: not executing the instruction when the count value is less than or equal to the history value; and executing the instruction when the count value exceeds the history value. [Claim 19] the management server performs an overall comparison between the first section data of the latest version of the program data and the previous version of the program data to search for data most similar to the first section data; 15. The method of claim 14, further comprising: determining, as the delta data, data in the first section that differs from the most similar data.
Claims
1. An electronic device, a storage unit for storing program data; a communication unit that receives and stores a file for updating the program data from a management server, and transmits update data for updating the program data based on the stored file; a control unit that updates the program data in response to the update data, The communication unit transmits, as the update data, delta data consisting of only a portion of the program data that is to be changed and a command word.
2. The control unit is a storage unit for storing the program data; 2. The electronic device of claim 1, further comprising: a processing unit that reads first data in a first area of the storage unit, modifies a portion of the data in the first area to the delta data to generate second data, and stores the second data in a second area different from the first area.
3. The control unit is a first storage unit including a non-volatile memory for storing the program data; a second storage unit including a volatile memory; a processing unit for updating the program data in response to the update data; The processing unit includes:
2. The electronic device of claim 1, further comprising: reading data from a first area of the first storage unit, recording the data in the second area of the second storage unit, correcting a portion of the data in the second area to the delta data, and recording the data in the second area in a third area different from the first area of the first storage unit.
4. the first reservoir comprises a plurality of sections; The electronic device of claim 3 , wherein the processing unit is configured to delete the data recorded in the third area after recording the data in one of the plurality of sections.
5. The control unit is a first storage unit having a non-volatile memory and configured to store the program data; a second storage unit having a volatile memory; a processing unit for updating the program data in response to the update data; The electronic device further comprises a third storage unit having a non-volatile memory; The processing unit includes: The program data stored in the first storage unit is recorded in the third storage unit; The electronic device of claim 1 , further comprising: a step of modifying a part of data in a first region of the first storage unit to the delta data.
6. The electronic device of claim 5 , wherein the processing unit deletes the data in the third storage unit after the update of the program data is completed.
7. The control unit is If a count value indicating the number of commands received after the program update is started is equal to or less than a history value stored in a history page, the command is not executed; and The electronic device of claim 1 , further comprising: a processor configured to execute the command when the count value exceeds the history value.
8. The electronic device of claim 7 , wherein the control unit records the count value in the history page when the command is a command to record or delete data in a non-volatile memory.
9. A management server, a storage unit for storing the latest version of program data and previous version of program data; a control unit that compares the latest version of the program data with the previous version of the program data to generate delta data; A communication unit that transmits the delta data to an electronic device; The delta data includes only data of the latest version of the program data that differs from the previous version of the program data.
10. The control unit is A first section of the latest version of the program data is compared with the previous version of the program data as a whole, retrieving data that is most similar to the data in the first section; The management server according to claim 9 , wherein data of the first section that differs from the most similar data is determined to be the delta data.
11. The management server according to claim 9 , wherein the communication unit transmits a file including the delta data and at least one command to the electronic device.
12. The previous version of the program data comprises a first version of the program data and a second version of the program data; the delta data comprises first delta data and second delta data; The control unit is comparing the latest version of the program data with the first version of the program data to generate the first delta data; The management server according to claim 9 , further comprising: a management server configured to compare the latest version of the program data with the second version of the program data to generate the second delta data.
13. The communication unit is transmitting the first delta data to a first electronic device storing the first version of the program data; 13. The management server of claim 12, further comprising: a second delta data transmitting section configured to transmit the second delta data to a second electronic device that stores the second version of the program data.
14. 1. A method for upgrading an electronic device, comprising: The electronic device includes a communication unit that stores a file received from a management server, and a control unit that stores program data; the communication unit transmitting delta data including only a portion of the program data that is to be changed and a command to the control unit; and a step of the control unit correcting a portion of the program data to the delta data.
15. The modifying step includes: reading data from a first area of the non-volatile memory storing the program data and writing the data in a second area of the volatile memory; modifying a portion of data in the second region to the delta data; 15. The method of claim 14, further comprising: recording the data in the second area in a third area of the non-volatile memory, the third area being different from the first area.
16. The modifying step includes: recording the data of the third region in one of a plurality of sections of the non-volatile memory; The method of claim 15, further comprising the step of: deleting data in the third area.
17. The modifying step includes: storing the program data stored in the first non-volatile memory in a second non-volatile memory; modifying a portion of data in a first region of the first non-volatile memory to the delta data; and erasing data in the second volatile memory.
18. The modifying step includes: if the command is a command for writing or deleting data in a non-volatile memory, writing a count value indicating the number of commands received after the program update is started in a history page; comparing the count value with a history value recorded in the history page; 15. The method of claim 14, further comprising: not executing the instruction when the count value is less than or equal to the history value; and executing the instruction when the count value exceeds the history value.
19. the management server performs an overall comparison between the first section data of the latest version of the program data and the previous version of the program data to search for data most similar to the first section data; 15. The method of claim 14, further comprising: determining, as the delta data, data in the first section that differs from the most similar data.
Citation Information
Patent Citations
Memory rewriter
JP1996272698A
Software update method and mobile terminal
JP2007189332A
Difference generation device, difference application device, difference generation program, difference application program, difference generation and application system, and difference generation and application method
JP2008046914A
Image processing apparatus and information processing apparatus
JP2016178499A
Communication apparatus and program
WO2021131754A1
