Electronic device and method for controlling updates of data in an electronic device - Patents.com

The electronic device's power storage and detection system enables uninterrupted data updates during power failures, ensuring normal startup and operation by completing updates with stored power.

JP7586289B2Active Publication Date: 2024-11-19OMRON CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023507519
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-08-06
Filing Date
2021-08-02
Publication Date
2024-11-19
Estimated Expiration
2041-08-02

AI Technical Summary

Technical Problem

In the process of updating data related to the startup and operation of an electronic device, power supply failures can cause interruptions, leading to incomplete updates and subsequent failure to start the device normally.

Method used

The electronic device includes a power storage unit and a power supply detection mechanism that allows the update process to continue using stored power during power failures, ensuring complete data updates and normal device startup.

Benefits of technology

Ensures smooth completion of data updates even during power outages, allowing the electronic device to start normally after power restoration, preventing incomplete updates that would otherwise prevent normal operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007586289000001
    Figure 0007586289000001
  • Figure 0007586289000002
    Figure 0007586289000002
  • Figure 0007586289000003
    Figure 0007586289000003
Patent Text Reader

Abstract

The electronic device includes a control unit including a storage device configured to store data and a controller configured to control updating of data in the storage device, a power supply unit, a power storage unit connected to the power supply unit and configured to receive and store power from the power supply unit and supply power to the control unit, and a power supply detection unit configured to detect whether the power supply unit supplies power normally. The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operating data for operation of the electronic device after startup. During a process of updating the startup data in the first storage unit, if the power supply detection unit detects that the power supply unit has a power supply abnormality, the controller controls the storage device to complete the process of updating the startup data using the power stored in the power storage unit.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to the technical field of electronic circuits. [Background technology]

[0002] The storage device of an electronic device usually stores data related to the startup and operation of the electronic device, such as firmware. Firmware generally includes driver programs of the electronic device, which are stored inside the electronic device. Through the firmware, the operating system can implement the execution operations of a specific machine according to standard device drivers. For example, CD drivers or writers have internal firmware.

[0003] The above-mentioned data relating to the start-up and operation of the electronic device may be updated, thereby allowing effects such as correcting defects in the electronic device and / or improving the performance of the electronic device to be achieved.

[0004] It should be noted that the above description of the background art is detailed merely to facilitate a clear and complete description of the technical solutions of the present disclosure and facilitate the understanding of those skilled in the art, and it cannot be deemed that the above technical solutions are known to those skilled in the art just because these solutions are detailed in the background of the present disclosure. Summary of the Invention [Problem to be solved by the invention]

[0005] The inventors of the present disclosure have discovered that in the prior art, in the process of updating the above-mentioned data related to the start-up and operation of an electronic device, if the power supply of the electronic device is suddenly turned off due to a failure or power exhaustion, etc., the update process is interrupted and when the power supply is restored, the electronic device may not start up normally; rather, the above-mentioned data needs to be updated again using a special device, and only after the update is completed, the electronic device may be able to start up normally. [Means for solving the problem]

[0006] In order to solve the above-mentioned problems and other similar problems, the embodiment of the present disclosure provides an electronic device and a method for controlling data update of the electronic device. In the electronic device of the present disclosure, the storage unit includes a first storage unit configured to store start-up data and a second storage unit configured to store data during operation, and when the power supply unit has a power supply failure in the process of updating the start-up data, the first storage unit can continue to complete the update of the start-up data using the power supplied by the power storage unit of the electronic device, so that even if the power supply unit has a failure when the electronic device is updating the start-up data, the update of the start-up data can be completed smoothly, thus ensuring that the electronic device can start normally after the power supply unit supplies power normally.

[0007] According to one aspect of an embodiment of the present disclosure, there is provided an electronic device, comprising: a control unit including a storage device configured to store data and a controller configured to control updating of the data in the storage device; A power supply unit; a power storage unit connected to the power supply unit, configured to receive and store power from the power supply unit, and supply power to the control unit; a power supply detection unit configured to detect whether the power supply unit supplies power normally; The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operational data for operation of the electronic device after startup; In the process of updating the startup data of the first memory unit, if the power supply detection unit detects that the power supply unit has a power supply abnormality, the controller controls the memory device to complete the process of updating the startup data using the power stored in the power storage unit.

[0008] According to another aspect of an embodiment of the present disclosure, there is provided a method for controlling data updates in an electronic device, comprising: The electronic device is a control unit including a storage device configured to store data and a controller configured to control updating of the data in the storage device; A power supply unit; a power storage unit connected to the power supply unit, configured to receive and store a first power from the power supply unit, and supply a second power to the control unit; a power supply detection unit configured to detect whether the power supply unit supplies power normally; The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operational data for operation of the electronic device after startup; The method includes, during the process of updating the startup data of the first memory unit, when the power supply detection unit detects that the power supply unit has a power supply abnormality, controlling the memory device by the controller to complete the process of updating the startup data using the power stored in the power storage unit.

[0009] One of the advantageous effects of the embodiments of the present disclosure lies in that: when the power supply unit has a power supply failure in the process of updating the startup data, the first storage unit can continue to complete the updating of the startup data with the power supplied by the power storage unit of the electronic device, so that even if the power supply unit fails when the electronic device is updating the startup data, the updating of the startup data can be completed smoothly, thus ensuring that the electronic device can start normally after the power supply unit supplies power normally.

[0010] With reference to the following description and drawings, certain embodiments of the present disclosure are described in detail to illustrate the manner in which the principles of the present disclosure may be employed. The embodiments of the present disclosure are not to be understood as being limited in scope. The embodiments of the present disclosure encompass numerous modifications, variations, and equivalents within the spirit and terms of the appended claims.

[0011] Features described and / or illustrated with respect to one embodiment may be used in the same or similar manner in one or more other embodiments and may be combined with or substituted for features of the other embodiments.

[0012] It should be emphasized that as used in this application, the term "comprising" indicates the presence of features, wholes, steps or components, but does not exclude the presence or addition of one or more other features, wholes, steps or components. [Brief description of the drawings]

[0013] [Figure 1] 1 is a schematic diagram of an electronic device according to a first embodiment of the present disclosure. [Diagram 2] FIG. 2 is a schematic diagram of a process for updating start-up data of the electronic device 1. [Diagram 3] FIG. 2 is a schematic diagram of a process for updating data during operation of the electronic device 1. [Figure 4] FIG. 11 is a schematic diagram of an electronic device according to a second embodiment of the present disclosure. [Diagram 5] FIG. 1 is a schematic diagram of a process for updating switching data in the start-up data of the electronic device 1a. [Figure 6] FIG. 2 is a schematic diagram of a process for updating operational or other data of the electronic device 1a. [Figure 7] FIG. 11 is a schematic diagram of a method for controlling data update in an electronic device according to a third embodiment. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0014] The accompanying drawings are used to provide further understanding of the embodiments of the present disclosure, constitute a part of the description, are used to illustrate the embodiments of the present disclosure, and together with the text description, interpret the principles of the present disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure. Those skilled in the art can also obtain other drawings based on these drawings under the premise that no creative effort is required.

[0015] The above and other features of the present disclosure will become apparent from the following description with reference to the drawings. The description and drawings specifically disclose certain embodiments of the present disclosure and show partial examples in which the principles of the present disclosure may be employed. It should be understood that the present disclosure is not limited to the described embodiments, but on the contrary includes all modifications, variations, and equivalents within the scope of the appended documents. Various embodiments of the present disclosure are described below with reference to the drawings. These embodiments are illustrative only and do not limit the embodiments of the present disclosure.

[0016] In embodiments of the present disclosure, the terms "first" and "second" etc. are used to distinguish different components with respect to names, but do not represent the spatial arrangement, chronological order, etc. of these components, and these components should not be limited by these terms. The term "and / or" includes any and all combinations of one or more of the associated listed terms. The terms "including," "comprising," "having," etc. indicate the presence of stated features, elements, components, or components, but do not exclude the presence or addition of one or more other features, elements, components, or components.

[0017] In the embodiments of the present disclosure, the singular forms "a" and "said" are to be understood in the broad sense, including the plural, such as "a certain type" or "a type of," but are not defined as meaning "one." Furthermore, the term "said" is to be understood to include both the singular and the plural, unless the context clearly indicates otherwise. Furthermore, the term "according to" is to be understood as "at least partially according to," unless the context clearly indicates otherwise.

[0018] Embodiment 1. Embodiment 1 of the present disclosure provides an electronic device, which may be, for example, an embedded electronic device or a programmable logic controller (PLC), etc.

[0019] 1 is a schematic diagram of an electronic device according to a first embodiment of the present disclosure. As shown in FIG. 1, the electronic device 1 includes a control unit 10, a power supply unit 20, a power storage unit 30, and a power supply detection unit 40.

[0020] The control unit 10 includes a storage device 11 and a controller 12 .

[0021] The storage device 11 is arranged to store data, for example data related to the start-up and operation of the electronic device 1, such as firmware.

[0022] As shown in FIG. 1, the storage device 11 may include a first storage unit 111 and a second storage unit 112. The first storage unit 111 is configured to store start-up data for starting the electronic device 1, and the second storage unit 112 is configured to store running data for the operation of the electronic device 1 after starting. For example, when the electronic device 1 is started, it is started first using the start-up data stored in the first storage unit 111, and then the running data of the second storage unit 112 is loaded into the start-up data stored in the first storage unit 111. Also, when data in the storage device 11 is updated, the electronic device 1 may be started first using the start-up data stored in the first storage unit 111, and then performs updating of the start-up data and / or the running data.

[0023] The controller 12 may control the storage device 11 to execute or stop processing of updating data in the storage device 11. Furthermore, the controller 12 may control other components of the electronic device 1 based on the data stored in the storage device 11 so that the electronic device 1 completes a specific function. The specific function may be, for example, a function as an embedded electronic device, or a function as a programmable logic controller (PLC), etc.

[0024] The power supply unit 20 can supply DC power, for example, the power supply unit 20 may have two power supply output pins, and the DC power output by the two power supply output pins has a DC voltage of, for example, 24V.

[0025] The power storage unit 30 is electrically connected to the power supply unit 20 and electrically connected to the control unit 10. The power storage unit 30 can receive power from the power supply unit 20, store the power, and supply the power to the control unit 10. For example, the power storage unit 30 may include at least one capacitance, and two ends of the at least one capacitance may be connected in parallel between two power supply output pins of the power supply unit 20, and two ends of the at least one capacitance may be connected in parallel between two power supply input pins of the control unit 10 to receive power, whereby the capacitance may store the power output from the power supply unit 20 and supply the power to the power supply unit 10, and when the power supply unit 20 has a power supply abnormality, such as an interruption of power supply by the power supply unit 20, the power storage unit 30 may supply the power stored in itself to the control unit 10.

[0026] The power supply detection unit 40 may detect whether the power supply unit 20 supplies power normally. Furthermore, a detection signal from the power supply detection unit 40 may be sent to the control unit 10. For example, when the power supply detection unit 40 detects an interruption of power supply by the power supply unit 20, a power interruption signal is generated as a detection signal, and the power interruption signal is sent to the control unit 10.

[0027] In this embodiment, the start-up data in the first storage section 111 and the running data in the second storage section 112 of the storage device 11 are updatable.

[0028] If the power supply detection unit 40 detects an abnormality in the power supply by the power supply unit 20 during the process of updating the startup data in the first storage unit 111, the controller 12 controls the storage device 11 to complete the process of updating the startup data using the power stored in the power storage unit 30. In this way, after the power supply unit 20 recovers normal power supply, the electronic device 1 can start up using the startup data after the update is completed.

[0029] Thereby, if the power supply fails when the startup data is updated, the update of the startup data can be completed smoothly, thereby ensuring that the electronic device 1 can start up normally after the power supply 20 supplies power normally, and avoiding a situation where the electronic device cannot start up normally again due to an incomplete update.

[0030] In this embodiment, the power in the power storage unit 30 can support the start-up data update process that has already started to continue and be completed.

[0031] In this embodiment, when the start-up data in the first storage unit 111 is not updated, if the power supply detection unit 40 detects that the power supply unit 20 has a power supply abnormality, the controller 12 prohibits the storage unit 11 from starting a process of updating the start-up data using the power stored in the power storage unit 30. Thereby, interruption of the update of the start-up data due to insufficient power in the power storage unit 30 can be avoided by using the power of the power storage unit 30 during the process of starting and executing the update of the start-up data.

[0032] Prohibiting the memory device 11 from starting to update the startup data using the power stored in the power storage unit 30 by the controller 12 may include the controller 12 cutting off the power supply from the power storage unit 30 to the memory device 11, for example, the controller 12 turning off a switching element (not shown) between the power storage unit 30 and the memory device 11, thereby cutting off the power supply from the power storage unit 30 to the memory device 11, or may include the controller 12 controlling the first memory unit 111 so that the first memory unit 111 does not start the process of updating the startup data.

[0033] As shown in FIG. 1, the control device 10 may further include a communication device 13. The communication device 13 may receive the start data for updating. The storage device 11 may further include a third storage unit 113. The third storage unit 113 is configured to store the start data for updating received by the communication device 13. The controller 12 may also detect the start data for updating stored in the third storage unit 113, and thereby determine whether the start data for updating is complete and / or valid. The data determined by the controller 12 to be complete and / or valid can be used to update the start data in the first storage unit 111.

[0034] In this embodiment, in the process of receiving start-up data for updating via the communication device 13 and storing the start-up data for updating via the third memory unit 113, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20, the controller 12 executes control to stop receiving and storing the start-up data for updating.

[0035] FIG. 2 is a schematic diagram of a process of updating the startup data of the electronic device 1. As shown in FIG. 2, the process includes the following operations:

[0036] Operation 201: Receive and store initiation data for an update. For example, the initiation data for an update is received by the communication device 13 and stored in the third storage unit 113.

[0037] Operation 202: The power supply detection unit 40 detects whether or not a power interruption occurs in the power supply unit 20. If the detection result is "YES", the process proceeds to operation 207. If the detection result is "NO", the process proceeds to operation 203.

[0038] Operation 203: Determine whether reception of the start-up data is complete. For example, the controller 12 determines whether the start-up data for updating in the third storage unit 113 is complete and / or valid. If the determination is "YES", it indicates that reception of the start-up data is complete, and proceeds to operation 204; if the determination is "NO", it indicates that reception of the start-up data is not yet complete, and proceeds to operation 201 to continue receiving and storing the start-up data.

[0039] Operation 204: Start updating the start-up data. For example, the controller 12 executes control so that the start-up data for update stored in the third storage unit 113 updates the start-up data already existing in the first storage unit 111.

[0040] Operation 205: The power supply detection unit 40 detects whether or not a power interruption occurs in the power supply unit 20. If the detection result is "YES", the process proceeds to operation 206. If the detection result is "NO", the process also proceeds to operation 206.

[0041] Operation 206: Continue to update the startup data until the update is completed. For example, if the result of the determination in operation 205 is "YES", the power supply unit 20 stops the power supply, and the controller 12 executes control so that the first memory unit 111 continues to update the startup data using the remaining power stored in the power storage unit 30. If the result of the determination in operation 205 is "NO", the power supply unit 20 supplies power as usual, and the controller 12 executes control so that the first memory unit 111 continues to update the startup data using the power continuously supplied by the power supply unit 20 to the power storage unit 30.

[0042] Act 207: Stop receiving and storing trigger data for updates.

[0043] Furthermore, when it is determined in operation 203 that reception of the start-up data has been completed and before operation 204 starts updating the start-up data, the power supply detection unit 40 detects a power outage in the power supply unit 20, and then the control unit 12 executes control to prohibit the memory device 11 from starting updating the start-up data using the remaining power stored in the power storage unit 30.

[0044] In this embodiment, the communication device 13 may receive running data for updating, the third memory unit 113 may store the running data for updating, and the running data for updating may update the running data in the second memory unit 112.

[0045] In this embodiment, in the process of receiving running data for updating via the communication device 13 and storing start-up data for updating via the third memory unit 113, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20, the controller 12 executes control to stop receiving and storing the running data for updating.

[0046] In addition, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20 during the process of updating the operating data in the second memory unit 112, the controller 12 executes control to stop updating the operating data in the second memory unit 112.

[0047] FIG. 3 is a schematic diagram of a process of updating data during operation of the electronic device 1. As shown in FIG.

[0048] Operation 301: Complete receiving and storing running data for updating. For example, the running data for updating is received by the communication device 13 and stored in the third storage unit 113.

[0049] Operation 302: The power supply detection unit 40 detects whether or not a power interruption occurs in the power supply unit 20. If the detection result is "YES", the process proceeds to operation 303. If the detection result is "NO", the process proceeds to operation 304.

[0050] Action 303: The storage device 11 does not perform any updating of the active data.

[0051] Operation 304: Start updating the running data. For example, the controller 12 executes control so that the running data for update stored in the third storage unit 113 updates the running data already existing in the second storage unit 112.

[0052] Operation 305: The power supply detection unit 40 detects whether or not a power outage has occurred in the power supply unit 20. If the detection result is “YES”, proceed to operation 306. If the detection result is “NO”, return to operation 304 and continue updating the running data.

[0053] Operation 306: Stop updating the active data. For example, when a power interruption occurs in the power supply unit 20, the storage device 11 is also prohibited from continuing to update the active data using the power stored in the power storage unit 30.

[0054] Further, in operation 304, it may be determined whether the update of the active data is completed. If the determination result is "NO", indicating that the update of the active data is not yet completed, the process enters operation 305. If the determination result is "YES", indicating that the update of the active data is completed, the process skips operation 305 and proceeds directly to "END".

[0055] According to embodiment 1 of the present disclosure, if the power supply unit fails when the startup data is updated, the update of the startup data can be completed smoothly, thereby ensuring that the electronic device 1 can start up normally after the power supply unit 20 supplies power normally, and avoiding the situation where the electronic device cannot start up normally again due to an incomplete update.

[0056] Embodiment 2. A second embodiment of the present disclosure provides an electronic device.

[0057] 4 is a schematic diagram of an electronic device according to embodiment 2 of the present disclosure. As shown in FIG. 4, the electronic device 1a includes a control unit 10a, a power supply unit 20, a power storage unit 30, and a power supply detection unit .

[0058] A control unit 10a of the electronic device 1a of the second embodiment is different from the control unit 10 of the electronic device 1 of the first embodiment. Also, a power supply unit 20, a power storage unit 30, and a power supply detection unit 40 of the electronic device 1a are the same as the power supply unit 20, the power storage unit 30, and the power supply detection unit 40 of the electronic device 1, respectively. Therefore, in the second embodiment, a description of the power supply unit 20, the power storage unit 30, and the power supply detection unit 40 will be omitted.

[0059] As shown in FIG. 4, the control unit 10a includes a storage device 11a and a controller 12a.

[0060] The memory device 11a is arranged to store data, for example data related to the start-up and operation of the electronic device 1, such as firmware.

[0061] 4, the storage device 11a may include a first storage unit 111a and a second storage unit 112a. The first storage unit 111a is configured to store startup data for starting the electronic device 1. The second storage unit 112a is configured to store operation data for operation of the electronic device 1a after the electronic device 1a is started.

[0062] The first storage unit 111a includes a first storage partition 1111 configured to store first startup data, a second storage partition 1112 configured to store second startup data, and a third storage partition 1113 configured to store switching data. The switching data is used to select the first startup data stored in the first storage partition 1111 or the second startup data stored in the second storage partition 1112 to start up the electronic device. The third storage partition 1113 may also store configurations related to startup. For example, when the electronic device 1a is started up, it first starts up the third storage partition 1113, and loads the first startup data in the first storage partition 1111 or the second startup data in the second storage partition 1112 according to the switching data in the third storage partition 1113, and then the first startup data or the second startup data loads the running data of the second storage unit 112a. Also, when the data in the storage device 11a is updated, the electronic device 1a may first start up using the start-up data stored in the first storage unit 111a, and then perform updating of the start-up data and / or the running data.

[0063] The controller 12a may control the storage device 11a to execute or stop processing of updating data in the storage device 11a. Furthermore, the controller 12a may control other components of the electronic device 1a based on the data stored in the storage device 11a so that the electronic device 1a completes a specific function. The specific function is, for example, a function as an embedded electronic device, a function as a programmable logic controller (PLC), etc.

[0064] In this embodiment, the start-up data in the first storage unit 111a and the operating data in the second storage unit 112a of the storage device 11 are updatable. The start-up data stored in the first storage unit 111a includes first start-up data, second start-up data, and switching data.

[0065] In this embodiment, when the switching data selects one of the first start-up data and the second start-up data to start up the electronic device 1a, updating the start-up data in the first memory unit 11a includes updating the other of the first start-up data and the second start-up data that is not selected by the switching data, and updating the switching data stored in the third memory partition 1113.

[0066] For example, if the switching data selects the first start-up data to start up the electronic device 1a, updating the start-up data of the first storage unit 11a includes updating the second start-up data and updating the switching data stored in the third storage partition 1113. As another example, if the switching data selects the second start-up data to start up the electronic device 1a, updating the start-up data of the first storage unit 11a includes updating the first start-up data and updating the switching data stored in the third storage partition 1113.

[0067] In this embodiment, if the power supply detection unit 40 detects an abnormality in the power supply by the power supply unit 20 during the process of updating the startup data in the first storage unit 111a, the controller 12a controls the storage device 11a to complete the process of updating the startup data using the power stored in the power storage unit 30. In this way, after the power supply unit 20 recovers normal power supply, the electronic device 1a can start up using the startup data after the update is completed.

[0068] For example, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20 during the process of updating the switching data, the controller 12a controls the third storage partition 1113 to complete the process of updating the switching data using the power stored in the power storage unit 30. Thereby, the power stored in the power storage unit 30 may not necessarily be necessary to update all the start-up data in the first storage unit 111a, but is only required to complete the update of the switching data, therefore, compared with the first embodiment, the power storage unit 30 of the second embodiment can store less power, thereby reducing the cost of the power storage unit 30, for example, the capacity value of the capacity in the power storage unit 30 of the second embodiment may be smaller.

[0069] In this embodiment, when the switching data of the third storage partition 1113 is not updated, if the power supply detection unit 40 detects that the power supply unit 20 has a power supply abnormality, the controller 12a prohibits the storage device 11a from starting a process of updating the switching data using the power stored in the power storage unit 30. Thereby, interruption of the update of the switching data due to insufficient power in the power storage unit 30 can be avoided by using the power of the power storage unit 30 during the process of starting and executing the update of the switching data.

[0070] Prohibiting the memory device 11a from starting to update the switching data using the power stored in the power storage unit 30 by the controller 12a may include the controller 12a cutting off the power supply from the power storage unit 30 to the memory device 11a, for example, the controller 12a turning off a switching element (not shown) between the power storage unit 30 and the memory device 11a, thereby cutting off the power supply from the power storage unit 30 to the memory device 11a, or may include the controller 12a controlling the third memory partition 1113 of the first memory unit 111a so that the third memory partition 1113 does not start the process of updating the switching data.

[0071] As shown in FIG. 4, the control unit 10a may further include a communication device 13. The communication device 13 may receive the switching data for update. The storage device 11a may further include a third storage unit 113a. The third storage unit 113a is configured to store the switching data for update received by the communication device 13. The controller 12a may also detect the switching data for update stored in the third storage unit 113a, and thereby determine whether the switching data for update is complete and / or valid. The data determined by the controller 12a to be complete and / or valid can be used to update the switching data in the third storage partition 1113 of the first storage unit 111a.

[0072] In this embodiment, in the process of receiving running data for updating via the communication device 13 and storing switching data for updating via the third memory unit 113a, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20, the controller 12a executes control to stop receiving and storing the switching data for updating.

[0073] FIG. 5 is a schematic diagram of a process of updating switching data in the start-up data of the electronic device 1a. As shown in FIG. 5, the process includes the following operations:

[0074] Operation 501: Receive and store switching data for updating. For example, the switching data for updating is received by the communication device 13 and stored in the third storage unit 113a.

[0075] OPERATION 502: The power supply detection unit 40 detects whether or not a power interruption occurs in the power supply unit 20. If the detection result is "YES", the process proceeds to OPERATION 507. If the detection result is "NO", the process proceeds to OPERATION 503.

[0076] Operation 503: Determine whether the reception of the switching data is complete. For example, the controller 12a determines whether the switching data for updating in the third storage unit 113a is complete and / or valid. If the determination is "YES", it indicates that the reception of the switching data is complete, and proceeds to operation 504; if the determination is "NO", it indicates that the reception of the switching data is not yet complete, and proceeds to operation 501 to continue receiving and storing the start-up data.

[0077] Operation 504: Start updating switching data. For example, the controller 12a executes control so that the switching data for update stored in the third storage unit 113a updates the switching data already existing in the third storage partition 1113 of the first storage unit 111a.

[0078] Operation 505: The power supply detection unit 40 detects whether or not a power interruption occurs in the power supply unit 20. If the detection result is "YES", the process proceeds to operation 506. If the detection result is "NO", the process also proceeds to operation 506.

[0079] Operation 506: Continue to update the switching data until the update is completed. For example, if the determination result in operation 505 is "YES", the power supply unit 20 stops the power supply, and the controller 12a executes control so that the third storage partition 1113 of the first storage unit 111a continues to update the switching data using the remaining power stored in the power storage unit 30. If the determination result in operation 505 is "NO", the power supply unit 20 supplies power as usual, and the controller 12a executes control so that the third storage partition 1113 of the first storage unit 111a continues to update the startup data using the power continuously supplied by the power supply unit 20 to the power storage unit 30.

[0080] Action 507: Stop receiving and storing switch data for updates.

[0081] Furthermore, when it is determined in operation 503 that reception of the switching data has been completed and before operation 504 starts updating the switching data, the power supply detection unit 40 detects a power outage in the power supply unit 20, and then the control unit 12a prohibits the memory device 11a from starting updating the switching data using the power stored in the power storage unit 30.

[0082] In this embodiment, the communication device 13 may receive the first start data or the second start data for updating, and the third storage unit 113a may store the first start data or the second start data for updating. The first start data for updating is used to update the first start data already present in the first partition 1111, and the second start data for updating is used to update the second start data already present in the second partition 1112.

[0083] In this embodiment, in the process of receiving the first or second start-up data for updating via the communication device 13 and storing the first or second start-up data for updating via the third memory unit 113a, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20, the controller 12a executes control to stop receiving and storing the first or second start-up data for updating.

[0084] In this embodiment, when the switching data selects one of the first start-up data and the second start-up data to start up the electronic device 1a, in the process of updating the other of the first start-up data and the second start-up data, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20, the controller 12a executes control to stop the process of updating the other data, and if the power supply unit 20 does not have a power supply abnormality, the controller 12a executes control to complete the process of updating the other data.

[0085] Also, after the process of updating the other is finished and the update of the switching data stored in the third storage partition 1113 is completed, the updated switching data selects the updated other to start up the electronic device 1a. For example, the switching data selects to start up the electronic device 1a from the first startup data, and then the switching data is updated and the second startup data is also updated, at this time, when the electronic device 1a is started up again, the updated switching data selects to start up the electronic device 1a with the updated second startup data.

[0086] In this embodiment, the communication device 13 may receive running data for updating, the third memory unit 113a may store the running data for updating, and the running data for updating may update the running data in the second memory unit 112a.

[0087] In this embodiment, in the process of receiving running data for updating via the communication device 13 and storing start-up data for updating via the third memory unit 113a, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20, the controller 12a executes control to stop receiving and storing the running data for updating.

[0088] In addition, if the power supply detection unit 40 detects a power supply abnormality in the power supply unit 20 during the process of updating the operating data in the second memory unit 112a, the controller 12a executes control to stop updating the operating data in the second memory unit 112a.

[0089] Fig. 6 is a schematic diagram of a process of updating the working data or other data of the electronic device 1a. In Fig. 6, the other is, for example, the first start-up data. As shown in Fig. 6, the process includes the following operations:

[0090] Operation 601: Complete receiving and storing running data for updating or first start-up data for updating. For example, the running data for updating or first start-up data for updating is received by the communication device 13 and stored in the third storage unit 113a.

[0091] Operation 602: The power supply detection unit 40 detects whether or not a power interruption occurs in the power supply unit 20. If the detection result is "YES", the process proceeds to operation 603. If the detection result is "NO", the process proceeds to operation 604.

[0092] Action 603: The storage device 11a does not perform an update of the running data or the first start-up data.

[0093] Operation 604: Update the running data or the first start-up data. For example, the controller 12a executes control so that the running data for update stored in the third storage unit 113a updates the running data already existing in the second storage unit 112a, or the first start-up data for update stored in the third storage unit 113a updates the second start-up data already existing in the second storage partition 1112 of the first storage unit 111a.

[0094] Operation 605: The power supply detection unit 40 detects whether a power interruption occurs in the power supply unit 20, and if the detection result is "YES", proceed to operation 606, and if the detection result is "NO", return to operation 604 and continue updating the running data or the first start-up data.

[0095] Operation 606: Stop updating the operation data or the first start-up data. For example, a power outage occurs in the power supply unit 20, and the storage device 11a is also prohibited from continuing to update the operation data or the first start-up data using the power stored in the power storage unit 30.

[0096] Further, in operation 604, it may be determined whether the update of the running data or the first start data is completed. If the determination result is "NO", it indicates that the update of the running data or the first start data is not yet completed, and the process enters operation 605. If the determination result is "YES", it indicates that the update of the running data or the first start data is completed, and the process skips operation 605 and proceeds directly to "END".

[0097] In this embodiment, the third memory partition 1113 may be a register, and the first memory partition 1111, the second memory partition 1112, the second memory unit 112a, and the third memory unit 113a may be read-only memories (ROMs).

[0098] According to the second embodiment of the present disclosure, if the power supply unit fails when the switching data in the startup data is updated, the update of the switching data can be completed smoothly, thereby ensuring that the electronic device 1a can be started up normally after the power supply unit 20 supplies power normally, and also avoiding a situation where the electronic device cannot be started up normally again due to an incomplete update, and reducing the power stored in the power storage unit 30.

[0099] Embodiment 3. The third embodiment of the present disclosure provides a method for controlling data update of an electronic device, which is used to control the electronic device 1 or 1a of the first or second embodiment.

[0100] FIG. 7 is a schematic diagram of a method for controlling data update of an electronic device according to embodiment 3. As shown in FIG. 7, the method includes the following operations.

[0101] Operation 701: In a process of updating the startup data of the first memory unit, if the power supply detection unit detects that the power supply unit has a power supply abnormality, the controller controls the memory device to complete the process of updating the startup data using the power stored in the power storage unit.

[0102] According to this embodiment, if the power supply unit fails when the startup data is updated, the update of the startup data can be completed smoothly, thereby ensuring that the electronic device 1a can start up normally after the power supply unit 20 supplies power normally, and avoiding a situation where the electronic device cannot start up normally again due to an incomplete update.

[0103] In combination with the controller described in the embodiments of the present disclosure, it may be directly reflected as hardware, as software executed by a processor, or as a combination of the two. For example, one or more of the illustrated functional block diagrams or one or more combinations thereof may correspond to software modules of a computer program flow, and may also correspond to hardware modules. These software modules may each correspond to a step as shown in embodiment 3. These hardware modules may be realized by implementing these software modules using, for example, a field programmable gate array (FPGA).

[0104] The software module may be provided in a RAM memory, a flash memory, a ROM memory, an EPROM memory, an EEPROM memory, a register, a hard disk, a mobile magnetic disk, a CD-ROM, or any other form of storage medium known in the art. The storage medium may be connected to the processor, thereby enabling the processor to read information from and write information to the storage medium, or the storage medium may be a component of the processor. The processor and the storage medium may be provided in an ASIC. The software module may be stored in a memory of the mobile terminal, or in a memory card of the mobile terminal. For example, if the electronic device adopts a MEGA-SIM card with a larger capacity, or a flash memory device with a large capacity, the software module may be stored in the MEGA-SIM card or the flash memory device with a large capacity.

[0105] One or more of the functional block diagrams as shown, or one or more combinations thereof, may be implemented as a general purpose processor digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or any combination thereof to perform the functions described in this disclosure. One or more of the functional block diagrams as shown, or one or more combinations thereof, may be implemented as a combination of computing devices, such as a combination of a DSP and a microprocessor, multiple microprocessors, one or more microprocessors in communication with a DSP, or any other such configuration.

[0106] Although the present disclosure has been described in combination with specific embodiments, those skilled in the art should clearly recognize that these descriptions are illustrative and do not limit the protection scope of the present disclosure. Based on the principle of the present disclosure, those skilled in the art may make various modifications and changes to the present disclosure, and these modifications and changes are also within the scope of the present disclosure.

Claims

1. a control unit including a storage device configured to store data and a controller configured to control updating of the data in the storage device; A power supply unit; a power storage unit connected to the power supply unit, configured to receive and store power from the power supply unit, and supply power to the control unit; a power supply detection unit configured to detect whether power is being supplied by the power supply unit, The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operational data for operation of the electronic device after startup; In the process of updating the startup data of the first storage unit, when the power supply detection unit detects that the power supply unit has interrupted power supply, the controller controls the storage device to complete the process of updating the startup data using the power stored in the power storage unit; The first storage unit includes: a first storage partition configured to store first startup data; a second storage partition configured to store second startup data; a third storage partition configured to store switching data used to select the first startup data stored in the first storage partition or the second startup data stored in the second storage partition to start up the electronic device; If the switching data selects from one of the first start-up data and the second start-up data to start up the electronic device, The update of the start data in the first storage unit is updating the other of the first start data and the second start data that is not selected by the switching data; updating switching data stored in the third storage partition; In a process of updating the other of the first start-up data and the second start-up data, when the power supply detection unit detects that the power supply unit has interrupted power supply, the controller stops the process of updating the other of the first start-up data and the second start-up data. electronic equipment.

2. a control unit including a storage device configured to store data and a controller configured to control updating of the data in the storage device; A power supply unit; a power storage unit connected to the power supply unit, configured to receive and store power from the power supply unit, and supply power to the control unit; a power supply detection unit configured to detect whether power is being supplied by the power supply unit, The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operational data for operation of the electronic device after startup; In the process of updating the startup data of the first storage unit, when the power supply detection unit detects that the power supply unit has interrupted power supply, the controller controls the storage device to complete the process of updating the startup data using the power stored in the power storage unit; The first storage unit includes: a first storage partition configured to store first startup data; a second storage partition configured to store second startup data; a third storage partition configured to store switching data used to select the first startup data stored in the first storage partition or the second startup data stored in the second storage partition to start up the electronic device; If the switching data selects from one of the first start-up data and the second start-up data to start up the electronic device, The update of the start data in the first storage unit is updating the other of the first start data and the second start data that is not selected by the switching data; updating switching data stored in the third storage partition; In the process of updating the switching, when the power supply detection unit detects that the power supply unit has stopped supplying power, the controller controls the third storage partition to complete the process of updating the switching data using the power stored in the power storage unit. electronic equipment.

3. When the startup data of the first memory unit is not updated, if the power supply detection unit detects that the power supply unit has interrupted power supply, the controller prohibits the storage device from starting a process of updating the startup data using the power stored in the power storage unit.

3. An electronic device according to claim 1 or 2.

4. The control unit further comprises a communication device configured to receive start-up data for the update; the storage device further comprises a third storage unit configured to store trigger data for the update received by the communication device; 3. An electronic device according to claim 1 or 2.

5. After the updating of the other of the first startup data and the second startup data is completed and after the updating of the switching data stored in the third storage partition is completed, the updated switching data selects the updated first startup data or the updated second startup data to start up the electronic device.

3. An electronic device according to claim 1 or 2.

6. 1. A method for controlling data updates in an electronic device, comprising: The electronic device is a control unit including a storage device configured to store data and a controller configured to control updating of the data in the storage device; A power supply unit; a power storage unit connected to the power supply unit, configured to receive and store a first power from the power supply unit, and supply a second power to the control unit; a power supply detection unit configured to detect whether or not power is being supplied by the power supply unit, The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operational data for operation of the electronic device after startup; The method includes, in a process of updating the startup data of the first memory unit, when the power supply detection unit detects that the power supply unit has interrupted power supply, controlling the storage device by the controller to complete the process of updating the startup data using power stored in the power storage unit; The first storage unit includes: a first storage partition configured to store first startup data; a second storage partition configured to store second startup data; a third storage partition configured to store switching data used to select the first startup data stored in the first storage partition or the second startup data stored in the second storage partition to start up the electronic device; If the switching data selects from one of the first start-up data and the second start-up data to start up the electronic device, The update of the start data in the first storage unit is updating the other of the first start data and the second start data that is not selected by the switching data; updating switching data stored in the third storage partition; In a process of updating the other of the first start-up data and the second start-up data, when the power supply detection unit detects that the power supply unit has interrupted power supply, the controller stops the process of updating the other of the first start-up data and the second start-up data. method.

7. 1. A method for controlling data updates in an electronic device, comprising: The electronic device is a control unit including a storage device configured to store data and a controller configured to control updating of the data in the storage device; A power supply unit; a power storage unit connected to the power supply unit, configured to receive and store a first power from the power supply unit, and supply a second power to the control unit; a power supply detection unit configured to detect whether or not power is being supplied by the power supply unit, The storage device includes a first storage unit configured to store startup data for starting the electronic device, and a second storage unit configured to store operational data for operation of the electronic device after startup; The method includes, in a process of updating the startup data of the first memory unit, when the power supply detection unit detects that the power supply unit has interrupted power supply, controlling the storage device by the controller to complete the process of updating the startup data using power stored in the power storage unit; The first storage unit includes: a first storage partition configured to store first startup data; a second storage partition configured to store second startup data; a third storage partition configured to store switching data used to select the first startup data stored in the first storage partition or the second startup data stored in the second storage partition to start up the electronic device; If the switching data selects from one of the first start-up data and the second start-up data to start up the electronic device, The update of the start data in the first storage unit is updating the other of the first start data and the second start data that is not selected by the switching data; updating switching data stored in the third storage partition; In a process of updating the other of the first start-up data and the second start-up data, when the power supply detection unit detects that the power supply unit has interrupted power supply, the controller stops the process of updating the other of the first start-up data and the second start-up data. In the process of updating the switching, when the power supply detection unit detects that the power supply unit has stopped supplying power, the controller controls the third storage partition to complete the process of updating the switching data using the power stored in the power storage unit. method.

8. When the startup data of the first memory unit is not updated, if the power supply detection unit detects that the power supply unit has interrupted power supply, the controller prohibits the storage device from starting a process of updating the startup data using the power stored in the power storage unit. The method according to claim 6 or 7.

Citation Information

Patent Citations

  • Battery-driven device and its nonvolatile memory updating method

    JP2006119996A

  • Information processor

    JP2013142914A

  • Electronic apparatus

    JP2015064726A

  • Information processing device, image forming apparatus, and update method

    JP2018156638A

  • Electronic apparatus and program

    JP2019149118A