WO2022217625A1 - Method for data protection during power failure and terminal - Google Patents

Method for data protection during power failure and terminal Download PDF

Info

Publication number
WO2022217625A1
WO2022217625A1 PCT/CN2021/088260 CN2021088260W WO2022217625A1 WO 2022217625 A1 WO2022217625 A1 WO 2022217625A1 CN 2021088260 W CN2021088260 W CN 2021088260W WO 2022217625 A1 WO2022217625 A1 WO 2022217625A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
file
power
protection
power failure
Prior art date
Application number
PCT/CN2021/088260
Other languages
French (fr)
Chinese (zh)
Inventor
郑颖锋
欧新木
吕进之
黄继波
Original Assignee
福州富昌维控电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 福州富昌维控电子科技有限公司 filed Critical 福州富昌维控电子科技有限公司
Publication of WO2022217625A1 publication Critical patent/WO2022217625A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/30Means for acting in the event of power-supply failure or interruption, e.g. power-supply fluctuations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/26Power supply means, e.g. regulation thereof
    • G06F1/32Means for saving power
    • G06F1/3203Power management, i.e. event-based initiation of a power-saving mode
    • G06F1/3234Power saving characterised by the action undertaken
    • G06F1/3293Power saving characterised by the action undertaken by switching to a less power-consuming processor, e.g. sub-CPU
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • the invention relates to the technical field of industrial automation, and in particular, to a method and a terminal for protecting power-down data.
  • PLC Programmable Logic Controller, Programmable Logic Controller
  • CPU central processing unit, central processing unit
  • instruction and data memory input/output interface, power supply, and digital-to-analog conversion.
  • the PLC For the PLC system, some of the key data or user data need to have the attribute of power failure preservation; when the external power supply is out of power, the PLC detects the power failure signal, and the PLC backup power supply starts to maintain power supply to the PLC equipment. At this time, the PLC stores the key in the microprocessor. Register data or other user-defined data is stored in non-volatile memory. In order to ensure that the data restored when the power is turned on is the data saved before the power failure, the general practice in the industry is to save the check code of the data for verification. The energy storage requirements of the backup power supply are higher, and there is a problem that the data cannot be completely saved due to insufficient energy storage.
  • the technical problem to be solved by the present invention is to provide a power-down data protection method and a terminal, which can realize power-down data protection under the premise of low power consumption.
  • the technical scheme adopted in the present invention is:
  • Power-down data protection method including steps:
  • the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
  • a power-off data protection terminal includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor implements the following steps when executing the computer program:
  • the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
  • the beneficial effects of the present invention are: the power-down data protection method and terminal, through the secondary packaging of the file creation time including the power-down protection file and the preset data requiring power-down protection, wherein the file creation time is used to prove the power-down protection.
  • the file has been exactly completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability of the preset data in the saving process can be realized without calculating the check code. Verification, that is, to realize power-down data protection under the premise of low power consumption.
  • FIG. 1 is a schematic flowchart of a power-down data protection method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of the power-down data protection method involved in an embodiment of the present invention when the power is turned off;
  • FIG. 3 is a schematic flowchart of a power-down data protection method involved in an embodiment of the present invention when powered on;
  • FIG. 4 is a schematic structural diagram of a power-down data protection terminal according to an embodiment of the present invention.
  • the data protection method for power failure including steps:
  • the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
  • the beneficial effect of the present invention is that the file creation time including the power-down protection file and the preset data requiring power-down protection are packaged twice, wherein the file creation time is used to prove that the power-down protection file has been accurately Completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability verification of the preset data in the saving process can be realized without calculating the verification code. That is, power-down data protection is realized under the premise of low power consumption.
  • step S1 specifically includes the following steps:
  • the CPU When a power failure is detected, the CPU immediately enters a low-power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating register data and protects field data;
  • the power failure protection file and the verification file are both BIN files or both HEX files.
  • non-volatile memory is eMMC.
  • step S4 specifically includes the following steps:
  • step S41 determine whether the file creation time of the power-down protection file is consistent with the verification time, if so, go to step S42, otherwise go to step S43;
  • step S42 judging whether the first data and the second data are consistent, and if they are consistent, then use the first data as the preset data to perform data recovery and then execute a T-shaped chart program, otherwise, execute step S43;
  • a power-down data protection terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when executing the computer program:
  • the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
  • the beneficial effect of the present invention is that the file creation time including the power-down protection file and the preset data requiring power-down protection are packaged twice, wherein the file creation time is used to prove that the power-down protection file has been accurately Completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability verification of the preset data in the saving process can be realized without calculating the verification code. That is, power-down data protection is realized under the premise of low power consumption.
  • step S1 specifically includes the following steps:
  • the CPU When a power failure is detected, the CPU immediately enters a low-power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating register data and protects field data;
  • the power failure protection file and the verification file are both BIN files or both HEX files.
  • non-volatile memory is eMMC.
  • step S4 specifically includes the following steps:
  • step S41 determine whether the file creation time of the power-down protection file is consistent with the verification time, if so, go to step S42, otherwise go to step S43;
  • step S42 judging whether the first data and the second data are consistent, and if they are consistent, then use the first data as the preset data to perform data recovery and then execute a T-shaped chart program, otherwise, execute step S43;
  • the first embodiment of the present invention is:
  • Power-down data protection method including steps:
  • the preset data is packaged into a power failure protection file, and the power failure protection file is saved in a non-volatile memory;
  • step S1 specifically includes the following steps:
  • the CPU When a power failure is detected, the CPU immediately enters the low power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating the register data and protects the field data;
  • the real-time power failure detection is performed by the power failure detection circuit in the PLC system.
  • step S11 is executed, thereby reducing the power consumption of the CPU to the greatest extent, that is, reducing the energy storage requirements for the system backup power supply in the PLC system .
  • the non-volatile memory is eMMC (Embedded Multi Media Card, embedded multimedia card).
  • eMMC embedded Multi Media Card, embedded multimedia card
  • the field data that generally needs to be saved does not exceed 10MB, and the speed of eMMC can reach 400MB/s, so the time to save once is only 0.025 seconds, so that the CPU will not affect the storage speed in low power consumption mode after power failure.
  • the storage duration is fixed and reliable.
  • the power failure protection file and the verification file are both BIN files or both HEX files, the former is binary data, the latter is hexadecimal data, both are acceptable.
  • step S4 specifically includes the following steps:
  • step S41 determine whether the file creation time of the power-down protection file is consistent with the verification time, if yes, then go to step S42, otherwise go to step S43;
  • step S42 determine whether the first data and the second data are consistent, and if they are consistent, then use the first data as preset data to perform data recovery and then execute the T-shaped chart program, otherwise, execute step S43;
  • the file creation time of the once-packed power-down protection file is stored in the secondary-packed verification file, indicating that the primary-packed data has been exactly completed; at the same time, the preset data contained in the secondary-packed verification file is used for verification.
  • the data saved twice are consistent, and it can be checked whether there is an error in the data saving process, so as to realize the reliability check of the preset data in the saving process.
  • the second embodiment of the present invention is:
  • the power-down data protection terminal 1 includes a memory 3, a processor 2, and a computer program stored in the memory 3 and running on the processor 2.
  • the processor 2 implements the steps of the first embodiment when executing the computer program.
  • the CPU when the power is turned off, the CPU immediately enters the low-power consumption mode and stops the application thread and updates the register data, thereby reducing the power consumption of the CPU to the greatest extent;
  • the file creation time including the power failure protection file and the preset data that need power failure protection are repackaged, and the power failure protection file and the verification file are quickly stored in the eMMC.
  • the file creation time is used to prove the power failure protection file. It has been exactly completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability of the preset data can be verified during the saving process without calculating the verification code.
  • the test is to realize power-down data protection under the premise of low power consumption.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Human Computer Interaction (AREA)
  • Programmable Controllers (AREA)
  • Power Sources (AREA)

Abstract

Disclosed are a method for data protection during a power failure and a terminal. The method comprises the steps of: when a power failure is detected, packaging preset data into a power failure protection file, and storing same in a non-volatile memory; recording the file creation time of the power failure protection file, performing secondary packaging on the file creation time and the preset data to form a verification file, and storing the verification file in the non-volatile memory; when external powering-on is detected, acquiring first data of the power failure protection file in the non-volatile memory and second data in the verification file; and when the time and the data are verified to be consistent, performing data recovery by using the first data as the preset data, and then running a PLC program. In the present invention, secondary packaging is performed on the file creation time containing the power failure protection file and the preset data requiring power failure protection, such that the reliability of the preset data during a storing process can be verified without calculating a verification code. In other words, data protection during power failure is achieved on the premise of low power consumption.

Description

掉电数据保护方法及终端Power-down data protection method and terminal 技术领域technical field
本发明涉及工业自动化技术领域,特别涉及一种掉电数据保护方法及终端。The invention relates to the technical field of industrial automation, and in particular, to a method and a terminal for protecting power-down data.
背景技术Background technique
PLC(Programmable Logic Controller,可编程逻辑控制器),是一种具有微处理器的用于自动化控制的数字运算控制器,专为在工业环境应用而设计的可以将控制指令随时载入内存进行储存与执行的设备。可编程逻辑控制器是由CPU(central processing unit,中央处理器)、指令及数据内存、输入/输出接口、电源和数字模拟转换等功能单元组成。PLC (Programmable Logic Controller, Programmable Logic Controller) is a digital operation controller with a microprocessor for automation control. It is specially designed for applications in industrial environments and can load control instructions into memory for storage at any time. with performing equipment. The programmable logic controller is composed of functional units such as CPU (central processing unit, central processing unit), instruction and data memory, input/output interface, power supply, and digital-to-analog conversion.
对于PLC系统,其中一些关键数据或用户数据需要有停电保存属性;当外部电源没电时,PLC检测到停电信号,PLC的备用电源开始维持对PLC设备供电,此时PLC将微处理器中关键的寄存器数据或其他用户定义数据保存在非易失存储器中。而为了保证上电时所恢复的数据为停电之前所保存的数据,行业上一般做法为保存数据的校验码来进行验证,这需要CPU参与进行大量的计算,使得CPU能耗增加,对停电时的备用电源的储能要求更高,存在因为储能不够而导致的数据未能完整保存的问题。For the PLC system, some of the key data or user data need to have the attribute of power failure preservation; when the external power supply is out of power, the PLC detects the power failure signal, and the PLC backup power supply starts to maintain power supply to the PLC equipment. At this time, the PLC stores the key in the microprocessor. Register data or other user-defined data is stored in non-volatile memory. In order to ensure that the data restored when the power is turned on is the data saved before the power failure, the general practice in the industry is to save the check code of the data for verification. The energy storage requirements of the backup power supply are higher, and there is a problem that the data cannot be completely saved due to insufficient energy storage.
技术问题technical problem
本发明所要解决的技术问题是:提供一种掉电数据保护方法及终端,能够在低功耗的前提下实现掉电数据保护。The technical problem to be solved by the present invention is to provide a power-down data protection method and a terminal, which can realize power-down data protection under the premise of low power consumption.
技术解决方案technical solutions
为了解决上述技术问题,本发明采用的技术方案为:In order to solve the above-mentioned technical problems, the technical scheme adopted in the present invention is:
掉电数据保护方法,包括步骤:Power-down data protection method, including steps:
S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
S2、记录所述掉电保护文件的文件创建时间,将所述预设数据与所述掉电保护文件的文件创建时间进行二次打包成校验文件,并将所述校验文件保存在非易失存储器中;S2. Record the file creation time of the power failure protection file, package the preset data and the file creation time of the power failure protection file into a verification file twice, and save the verification file in a non- in volatile memory;
S3、当检测到外部上电时,获取所述非易失存储器中的所述掉电保护文件的第一数据以及所述校验文件中的第二数据,所述第二数据包括校验时间和校验数据;S3. When external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes the verification time and check data;
S4、当所述掉电保护文件的文件创建时间和所述校验时间一致且所述第一数据和所述第二数据一致的情况下,将所述第一数据作为所述预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data is consistent with the second data, use the first data as the preset data to perform Run the PLC program after the data is restored.
为了解决上述技术问题,本发明采用的另一种技术方案为:In order to solve the above-mentioned technical problems, another technical scheme adopted by the present invention is:
掉电数据保护终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A power-off data protection terminal includes a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor implements the following steps when executing the computer program:
S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
S2、记录所述掉电保护文件的文件创建时间,将所述预设数据与所述掉电保护文件的文件创建时间进行二次打包成校验文件,并将所述校验文件保存在非易失存储器中;S2. Record the file creation time of the power failure protection file, package the preset data and the file creation time of the power failure protection file into a verification file twice, and save the verification file in a non- in volatile memory;
S3、当检测到外部上电时,获取所述非易失存储器中的所述掉电保护文件的第一数据以及所述校验文件中的第二数据,所述第二数据包括校验时间和校验数据;S3. When external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes the verification time and check data;
S4、当所述掉电保护文件的文件创建时间和所述校验时间一致且所述第一数据和所述第二数据一致的情况下,将所述第一数据作为所述预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data is consistent with the second data, use the first data as the preset data to perform Run the PLC program after the data is restored.
有益效果beneficial effect
本发明的有益效果在于:掉电数据保护方法及终端,通过将包含掉电保护文件的文件创建时间和需要掉电保护的预设数据进行二次打包,其中文件创建时间用来证明掉电保护文件已经确切完成,而二次打包中的预设数据用来和掉电保护文件里的预设数据进行校验,从而无需计算校验码就可以实现预设数据在保存过程中的可信性校验,即在低功耗的前提下实现掉电数据保护。The beneficial effects of the present invention are: the power-down data protection method and terminal, through the secondary packaging of the file creation time including the power-down protection file and the preset data requiring power-down protection, wherein the file creation time is used to prove the power-down protection. The file has been exactly completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability of the preset data in the saving process can be realized without calculating the check code. Verification, that is, to realize power-down data protection under the premise of low power consumption.
附图说明Description of drawings
图1为本发明实施例的掉电数据保护方法的流程示意图;FIG. 1 is a schematic flowchart of a power-down data protection method according to an embodiment of the present invention;
图2为本发明实施例涉及的掉电数据保护方法在掉电时的流程示意图;FIG. 2 is a schematic flowchart of the power-down data protection method involved in an embodiment of the present invention when the power is turned off;
图3为本发明实施例涉及的掉电数据保护方法在上电时的流程示意图;3 is a schematic flowchart of a power-down data protection method involved in an embodiment of the present invention when powered on;
图4为本发明实施例的掉电数据保护终端的结构示意图。FIG. 4 is a schematic structural diagram of a power-down data protection terminal according to an embodiment of the present invention.
标号说明:Label description:
1、掉电数据保护终端;2、处理器;3、存储器。1. Power-down data protection terminal; 2. Processor; 3. Memory.
本发明的实施方式Embodiments of the present invention
为详细说明本发明的技术内容、所实现目的及效果,以下结合实施方式并配合附图予以说明。In order to describe in detail the technical content, achieved objects and effects of the present invention, the following descriptions are given with reference to the embodiments and the accompanying drawings.
请参照图1至图3,掉电数据保护方法,包括步骤:Please refer to FIG. 1 to FIG. 3 , the data protection method for power failure, including steps:
S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
S2、记录所述掉电保护文件的文件创建时间,将所述预设数据与所述掉电保护文件的文件创建时间进行二次打包成校验文件,并将所述校验文件保存在非易失存储器中;S2. Record the file creation time of the power failure protection file, package the preset data and the file creation time of the power failure protection file into a verification file twice, and save the verification file in a non- in volatile memory;
S3、当检测到外部上电时,获取所述非易失存储器中的所述掉电保护文件的第一数据以及所述校验文件中的第二数据,所述第二数据包括校验时间和校验数据;S3. When external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes the verification time and check data;
S4、当所述掉电保护文件的文件创建时间和所述校验时间一致且所述第一数据和所述第二数据一致的情况下,将所述第一数据作为所述预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data is consistent with the second data, use the first data as the preset data to perform Run the PLC program after the data is restored.
从上述描述可知,本发明的有益效果在于:通过将包含掉电保护文件的文件创建时间和需要掉电保护的预设数据进行二次打包,其中文件创建时间用来证明掉电保护文件已经确切完成,而二次打包中的预设数据用来和掉电保护文件里的预设数据进行校验,从而无需计算校验码就可以实现预设数据在保存过程中的可信性校验,即在低功耗的前提下实现掉电数据保护。As can be seen from the above description, the beneficial effect of the present invention is that the file creation time including the power-down protection file and the preset data requiring power-down protection are packaged twice, wherein the file creation time is used to prove that the power-down protection file has been accurately Completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability verification of the preset data in the saving process can be realized without calculating the verification code. That is, power-down data protection is realized under the premise of low power consumption.
进一步地,所述步骤S1具体包括以下步骤:Further, the step S1 specifically includes the following steps:
S11、当检测到掉电时,CPU立即进入低功耗模式,将所述CPU的主频调至可允许运行的最低频率,关闭各个应用线程,停止更新寄存器数据并保护现场数据;S11. When a power failure is detected, the CPU immediately enters a low-power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating register data and protects field data;
S12、将包括所述现场数据的预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中。S12. Package the preset data including the on-site data into a power-down protection file, and save the power-down protection file in a non-volatile memory.
从上述描述可知,在掉电时,CPU立即进入低功耗模式并停止应用线程和更新寄存器数据,从而最大程度降低CPU的功耗,降低对系统备用电源的储能要求。It can be seen from the above description that when the power is lost, the CPU immediately enters the low power consumption mode and stops the application thread and updates the register data, thereby reducing the power consumption of the CPU to the greatest extent and reducing the energy storage requirements for the system backup power supply.
进一步地,所述掉电保护文件和所述校验文件均为BIN文件或均为HEX文件。Further, the power failure protection file and the verification file are both BIN files or both HEX files.
进一步地,所述非易失存储器为eMMC。Further, the non-volatile memory is eMMC.
从上述描述可知,eMMC的存储速度较快,可以进一步降低功耗。It can be seen from the above description that the storage speed of eMMC is fast, which can further reduce power consumption.
进一步地,所述步骤S4具体包括以下步骤:Further, the step S4 specifically includes the following steps:
S41、判断所述掉电保护文件的文件创建时间和所述校验时间是否一致,若是,则执行步骤S42,否则执行步骤S43;S41, determine whether the file creation time of the power-down protection file is consistent with the verification time, if so, go to step S42, otherwise go to step S43;
S42、判断所述第一数据和所述第二数据是否一致,若一致,则将所述第一数据作为所述预设数据进行数据恢复之后执行T形图程序,否则执行步骤S43;S42, judging whether the first data and the second data are consistent, and if they are consistent, then use the first data as the preset data to perform data recovery and then execute a T-shaped chart program, otherwise, execute step S43;
S43、清除所述非易失存储器中的所述掉电保护文件和所述校验文件,重新开始运行所述T形图程序。S43. Clear the power-down protection file and the verification file in the non-volatile memory, and restart the T-shape program.
从上述描述可知,通过进行时间和数据的双重校验,以检验出预设数据在掉电保存过程中是否出错,从而在低功耗的前提下实现掉电数据保护。It can be seen from the above description that, by performing double check of time and data, it can be checked whether the preset data is wrong during the power-off saving process, so as to realize power-off data protection under the premise of low power consumption.
请参照图4,掉电数据保护终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现以下步骤:Please refer to FIG. 4 , a power-down data protection terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor implements the following steps when executing the computer program:
S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
S2、记录所述掉电保护文件的文件创建时间,将所述预设数据与所述掉电保护文件的文件创建时间进行二次打包成校验文件,并将所述校验文件保存在非易失存储器中;S2. Record the file creation time of the power failure protection file, package the preset data and the file creation time of the power failure protection file into a verification file twice, and save the verification file in a non- in volatile memory;
S3、当检测到外部上电时,获取所述非易失存储器中的所述掉电保护文件的第一数据以及所述校验文件中的第二数据,所述第二数据包括校验时间和校验数据;S3. When external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes the verification time and check data;
S4、当所述掉电保护文件的文件创建时间和所述校验时间一致且所述第一数据和所述第二数据一致的情况下,将所述第一数据作为所述预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data is consistent with the second data, use the first data as the preset data to perform Run the PLC program after the data is restored.
从上述描述可知,本发明的有益效果在于:通过将包含掉电保护文件的文件创建时间和需要掉电保护的预设数据进行二次打包,其中文件创建时间用来证明掉电保护文件已经确切完成,而二次打包中的预设数据用来和掉电保护文件里的预设数据进行校验,从而无需计算校验码就可以实现预设数据在保存过程中的可信性校验,即在低功耗的前提下实现掉电数据保护。As can be seen from the above description, the beneficial effect of the present invention is that the file creation time including the power-down protection file and the preset data requiring power-down protection are packaged twice, wherein the file creation time is used to prove that the power-down protection file has been accurately Completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability verification of the preset data in the saving process can be realized without calculating the verification code. That is, power-down data protection is realized under the premise of low power consumption.
进一步地,所述步骤S1具体包括以下步骤:Further, the step S1 specifically includes the following steps:
S11、当检测到掉电时,CPU立即进入低功耗模式,将所述CPU的主频调至可允许运行的最低频率,关闭各个应用线程,停止更新寄存器数据并保护现场数据;S11. When a power failure is detected, the CPU immediately enters a low-power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating register data and protects field data;
S12、将包括所述现场数据的预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中。S12. Package the preset data including the on-site data into a power-down protection file, and save the power-down protection file in a non-volatile memory.
从上述描述可知,在掉电时,CPU立即进入低功耗模式并停止应用线程和更新寄存器数据,从而最大程度降低CPU的功耗,降低对系统备用电源的储能要求。It can be seen from the above description that when the power is lost, the CPU immediately enters the low power consumption mode and stops the application thread and updates the register data, thereby reducing the power consumption of the CPU to the greatest extent and reducing the energy storage requirements for the system backup power supply.
进一步地,所述掉电保护文件和所述校验文件均为BIN文件或均为HEX文件。Further, the power failure protection file and the verification file are both BIN files or both HEX files.
进一步地,所述非易失存储器为eMMC。Further, the non-volatile memory is eMMC.
从上述描述可知,eMMC的存储速度较快,可以进一步降低功耗。It can be seen from the above description that the storage speed of eMMC is fast, which can further reduce power consumption.
进一步地,所述步骤S4具体包括以下步骤:Further, the step S4 specifically includes the following steps:
S41、判断所述掉电保护文件的文件创建时间和所述校验时间是否一致,若是,则执行步骤S42,否则执行步骤S43;S41, determine whether the file creation time of the power-down protection file is consistent with the verification time, if so, go to step S42, otherwise go to step S43;
S42、判断所述第一数据和所述第二数据是否一致,若一致,则将所述第一数据作为所述预设数据进行数据恢复之后执行T形图程序,否则执行步骤S43;S42, judging whether the first data and the second data are consistent, and if they are consistent, then use the first data as the preset data to perform data recovery and then execute a T-shaped chart program, otherwise, execute step S43;
S43、清除所述非易失存储器中的所述掉电保护文件和所述校验文件,重新开始运行所述T形图程序。S43. Clear the power-down protection file and the verification file in the non-volatile memory, and restart the T-shape program.
从上述描述可知,通过进行时间和数据的双重校验,以检验出预设数据在掉电保存过程中是否出错,从而在低功耗的前提下实现掉电数据保护。It can be seen from the above description that, by performing double check of time and data, it can be checked whether the preset data is wrong during the power-off saving process, so as to realize power-off data protection under the premise of low power consumption.
以下实施例可以应用在PLC系统中任何需要在掉电时进行数据保护的应用场景。The following embodiments can be applied to any application scenario in a PLC system that requires data protection when power is off.
请参照图1至图3,本发明的实施例一为:Please refer to FIG. 1 to FIG. 3 , the first embodiment of the present invention is:
掉电数据保护方法,包括步骤:Power-down data protection method, including steps:
S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is saved in a non-volatile memory;
在本实施例中,步骤S1具体包括以下步骤:In this embodiment, step S1 specifically includes the following steps:
S11、当检测到掉电时,CPU立即进入低功耗模式,将CPU的主频调至可允许运行的最低频率,关闭各个应用线程,停止更新寄存器数据并保护现场数据;S11. When a power failure is detected, the CPU immediately enters the low power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating the register data and protects the field data;
其中,即由PLC系统中的掉电检测电路进行实时掉电检测,当发现掉电后,执行步骤S11,从而最大程度降低CPU的功耗,即降低对PLC系统中系统备用电源的储能要求。Among them, the real-time power failure detection is performed by the power failure detection circuit in the PLC system. When a power failure is found, step S11 is executed, thereby reducing the power consumption of the CPU to the greatest extent, that is, reducing the energy storage requirements for the system backup power supply in the PLC system .
S12、将包括现场数据的预设数据打包成掉电保护文件,并将掉电保护文件保存在非易失存储器中。S12. Package the preset data including the field data into a power-down protection file, and save the power-down protection file in a non-volatile memory.
其中,非易失存储器为eMMC(Embedded Multi Media Card,嵌入式多媒体卡)。在PLC系统中,一般需要保存的现场数据不超过10MB,eMMC的速度可以达到400MB/秒,所以保存一次的时间只要0.025秒,从而使得掉电后CPU在低功耗模式下也不影响存储速度,存储时长固定且可靠。Among them, the non-volatile memory is eMMC (Embedded Multi Media Card, embedded multimedia card). In the PLC system, the field data that generally needs to be saved does not exceed 10MB, and the speed of eMMC can reach 400MB/s, so the time to save once is only 0.025 seconds, so that the CPU will not affect the storage speed in low power consumption mode after power failure. , the storage duration is fixed and reliable.
S2、记录掉电保护文件的文件创建时间,将预设数据与掉电保护文件的文件创建时间进行二次打包成校验文件,并将校验文件保存在非易失存储器中;S2. Record the file creation time of the power-down protection file, package the preset data and the file creation time of the power-down protection file twice into a verification file, and save the verification file in a non-volatile memory;
其中,掉电保护文件和校验文件均为BIN文件或均为HEX文件,前者是二进制数据,后者是十六进制数据,二者皆可。Among them, the power failure protection file and the verification file are both BIN files or both HEX files, the former is binary data, the latter is hexadecimal data, both are acceptable.
S3、当检测到外部上电时,获取非易失存储器中的掉电保护文件的第一数据以及校验文件中的第二数据,第二数据包括校验时间和校验数据;S3, when external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes verification time and verification data;
在检测到外部上电且PLC系统中系统备用电源已经充电完成时,需要进行数据恢复,假设此时不确定非易失存储器中的掉电保护文件的数据是否为预设数据,因此为了便于说明,将从非易失存储器中获取的掉电保护文件的数据称为第一数据,同理将从非易失存储器中获取的校验文件中的数据称为第二数据,并将其中的时间和数据分别称为校验时间和校验数据。When external power-on is detected and the system backup power supply in the PLC system has been charged, data recovery needs to be performed. It is assumed that it is uncertain whether the data of the power-down protection file in the non-volatile memory is the preset data at this time. Therefore, for the convenience of description , the data of the power-down protection file obtained from the non-volatile memory is called the first data, and similarly the data in the verification file obtained from the non-volatile memory is called the second data, and the time in the file is called the second data. and data are called check time and check data, respectively.
S4、当掉电保护文件的文件创建时间和校验时间一致且第一数据和第二数据一致的情况下,将第一数据作为预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data and the second data are consistent, use the first data as preset data to perform data recovery and then run the PLC program.
在本实施例中,步骤S4具体包括以下步骤:In this embodiment, step S4 specifically includes the following steps:
S41、判断掉电保护文件的文件创建时间和校验时间是否一致,若是,则执行步骤S42,否则执行步骤S43;S41, determine whether the file creation time of the power-down protection file is consistent with the verification time, if yes, then go to step S42, otherwise go to step S43;
S42、判断第一数据和第二数据是否一致,若一致,则将第一数据作为预设数据进行数据恢复之后执行T形图程序,否则执行步骤S43;S42, determine whether the first data and the second data are consistent, and if they are consistent, then use the first data as preset data to perform data recovery and then execute the T-shaped chart program, otherwise, execute step S43;
S43、清除非易失存储器中的掉电保护文件和校验文件,重新开始运行T形图程序。S43 , clear the power-down protection file and the verification file in the non-volatile memory, and restart the T-shaped graph program.
即二次打包的校验文件中保存有一次打包的掉电保护文件的文件创建时间,说明一次打包数据已经确切完成;同时,二次打包的校验文件中所包含的预设数据用于校验,两次保存的数据一致,可以检验出数据在保存过程中是否出错,从而实现预设数据在保存过程中的可信性校验。That is to say, the file creation time of the once-packed power-down protection file is stored in the secondary-packed verification file, indicating that the primary-packed data has been exactly completed; at the same time, the preset data contained in the secondary-packed verification file is used for verification. The data saved twice are consistent, and it can be checked whether there is an error in the data saving process, so as to realize the reliability check of the preset data in the saving process.
请参照图4,本发明的实施例二为:Please refer to FIG. 4 , the second embodiment of the present invention is:
掉电数据保护终端1,包括存储器3、处理器2及存储在存储器3上并可在处理器2上运行的计算机程序,处理器2执行计算机程序时实现上述实施例一的步骤。The power-down data protection terminal 1 includes a memory 3, a processor 2, and a computer program stored in the memory 3 and running on the processor 2. The processor 2 implements the steps of the first embodiment when executing the computer program.
综上所述,本发明提供的掉电数据保护方法及终端,在掉电时,CPU立即进入低功耗模式并停止应用线程和更新寄存器数据,从而最大程度降低CPU的功耗;之后通过将包含掉电保护文件的文件创建时间和需要掉电保护的预设数据进行二次打包,并将掉电保护文件和校验文件快速存储在eMMC中,其中文件创建时间用来证明掉电保护文件已经确切完成,而二次打包中的预设数据用来和掉电保护文件里的预设数据进行校验,从而无需计算校验码就可以实现预设数据在保存过程中的可信性校验,即在低功耗的前提下实现掉电数据保护。To sum up, in the power-down data protection method and terminal provided by the present invention, when the power is turned off, the CPU immediately enters the low-power consumption mode and stops the application thread and updates the register data, thereby reducing the power consumption of the CPU to the greatest extent; The file creation time including the power failure protection file and the preset data that need power failure protection are repackaged, and the power failure protection file and the verification file are quickly stored in the eMMC. The file creation time is used to prove the power failure protection file. It has been exactly completed, and the preset data in the secondary packaging is used to verify the preset data in the power-off protection file, so that the reliability of the preset data can be verified during the saving process without calculating the verification code. The test is to realize power-down data protection under the premise of low power consumption.
以上所述仅为本发明的实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等同变换,或直接或间接运用在相关的技术领域,均同理包括在本发明的专利保护范围内。The above descriptions are only examples of the present invention, and are not intended to limit the scope of the present invention. Any equivalent transformations made by using the contents of the description and drawings of the present invention, or directly or indirectly applied in related technical fields, are similarly included in the within the scope of patent protection of the present invention.

Claims (10)

  1. 掉电数据保护方法,其特征在于,包括步骤: A power-down data protection method, characterized in that it includes the steps of:
    S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
    S2、记录所述掉电保护文件的文件创建时间,将所述预设数据与所述掉电保护文件的文件创建时间进行二次打包成校验文件,并将所述校验文件保存在非易失存储器中;S2. Record the file creation time of the power failure protection file, package the preset data and the file creation time of the power failure protection file into a verification file twice, and save the verification file in a non- in volatile memory;
    S3、当检测到外部上电时,获取所述非易失存储器中的所述掉电保护文件的第一数据以及所述校验文件中的第二数据,所述第二数据包括校验时间和校验数据;S3. When external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes the verification time and check data;
    S4、当所述掉电保护文件的文件创建时间和所述校验时间一致且所述第一数据和所述第二数据一致的情况下,将所述第一数据作为所述预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data is consistent with the second data, use the first data as the preset data to perform Run the PLC program after the data is restored.
  2. 根据权利要求1所述的掉电数据保护方法,其特征在于,所述步骤S1具体包括以下步骤: The power-down data protection method according to claim 1, wherein the step S1 specifically includes the following steps:
    S11、当检测到掉电时,CPU立即进入低功耗模式,将所述CPU的主频调至可允许运行的最低频率,关闭各个应用线程,停止更新寄存器数据并保护现场数据;S11. When a power failure is detected, the CPU immediately enters a low-power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating register data and protects field data;
    S12、将包括所述现场数据的预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中。S12. Package the preset data including the on-site data into a power-down protection file, and save the power-down protection file in a non-volatile memory.
  3. 根据权利要求1或2所述的掉电数据保护方法,其特征在于,所述掉电保护文件和所述校验文件均为BIN文件或均为HEX文件。 The power-down data protection method according to claim 1 or 2, wherein the power-down protection file and the verification file are both BIN files or both HEX files.
  4. 根据权利要求1或2所述的掉电数据保护方法,其特征在于,所述非易失存储器为eMMC。 The power-down data protection method according to claim 1 or 2, wherein the non-volatile memory is eMMC.
  5. 根据权利要求1或2所述的掉电数据保护方法,其特征在于,所述步骤S4具体包括以下步骤: The power-down data protection method according to claim 1 or 2, wherein the step S4 specifically includes the following steps:
    S41、判断所述掉电保护文件的文件创建时间和所述校验时间是否一致,若是,则执行步骤S42,否则执行步骤S43;S41, determine whether the file creation time of the power-down protection file is consistent with the verification time, if so, go to step S42, otherwise go to step S43;
    S42、判断所述第一数据和所述第二数据是否一致,若一致,则将所述第一数据作为所述预设数据进行数据恢复之后执行T形图程序,否则执行步骤S43;S42, judging whether the first data and the second data are consistent, and if they are consistent, then use the first data as the preset data to perform data recovery and then execute a T-shaped chart program, otherwise, execute step S43;
    S43、清除所述非易失存储器中的所述掉电保护文件和所述校验文件,重新开始运行所述T形图程序。S43. Clear the power-down protection file and the verification file in the non-volatile memory, and restart the T-shape program.
  6. 掉电数据保护终端,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现以下步骤: A power-off data protection terminal includes a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the following steps when executing the computer program:
    S1、当检测到掉电时,将预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中;S1. When a power failure is detected, the preset data is packaged into a power failure protection file, and the power failure protection file is stored in a non-volatile memory;
    S2、记录所述掉电保护文件的文件创建时间,将所述预设数据与所述掉电保护文件的文件创建时间进行二次打包成校验文件,并将所述校验文件保存在非易失存储器中;S2. Record the file creation time of the power failure protection file, package the preset data and the file creation time of the power failure protection file into a verification file twice, and save the verification file in a non- in volatile memory;
    S3、当检测到外部上电时,获取所述非易失存储器中的所述掉电保护文件的第一数据以及所述校验文件中的第二数据,所述第二数据包括校验时间和校验数据;S3. When external power-on is detected, obtain the first data of the power-down protection file in the non-volatile memory and the second data in the verification file, where the second data includes the verification time and check data;
    S4、当所述掉电保护文件的文件创建时间和所述校验时间一致且所述第一数据和所述第二数据一致的情况下,将所述第一数据作为所述预设数据进行数据恢复之后运行PLC程序。S4. When the file creation time of the power failure protection file is consistent with the verification time and the first data is consistent with the second data, use the first data as the preset data to perform Run the PLC program after the data is restored.
  7. 根据权利要求6所述的掉电数据保护终端,其特征在于,所述步骤S1具体包括以下步骤: The power-down data protection terminal according to claim 6, wherein the step S1 specifically includes the following steps:
    S11、当检测到掉电时,CPU立即进入低功耗模式,将所述CPU的主频调至可允许运行的最低频率,关闭各个应用线程,停止更新寄存器数据并保护现场数据;S11. When a power failure is detected, the CPU immediately enters a low-power consumption mode, adjusts the main frequency of the CPU to the lowest frequency that can be run, closes each application thread, stops updating register data and protects field data;
    S12、将包括所述现场数据的预设数据打包成掉电保护文件,并将所述掉电保护文件保存在非易失存储器中。S12. Package the preset data including the on-site data into a power-down protection file, and save the power-down protection file in a non-volatile memory.
  8. 根据权利要求6或7所述的掉电数据保护终端,其特征在于,所述掉电保护文件和所述校验文件均为BIN文件或均为HEX文件。 The power-down data protection terminal according to claim 6 or 7, wherein the power-down protection file and the verification file are both BIN files or both HEX files.
  9. 根据权利要求6或7所述的掉电数据保护终端,其特征在于,所述非易失存储器为eMMC。 The power-down data protection terminal according to claim 6 or 7, wherein the non-volatile memory is eMMC.
  10. 根据权利要求6或7所述的掉电数据保护终端,其特征在于,所述步骤S4具体包括以下步骤: The power-down data protection terminal according to claim 6 or 7, wherein the step S4 specifically includes the following steps:
    S41、判断所述掉电保护文件的文件创建时间和所述校验时间是否一致,若是,则执行步骤S42,否则执行步骤S43;S41, determine whether the file creation time of the power-down protection file is consistent with the verification time, if so, go to step S42, otherwise go to step S43;
    S42、判断所述第一数据和所述第二数据是否一致,若一致,则将所述第一数据作为所述预设数据进行数据恢复之后执行T形图程序,否则执行步骤S43;S42, judging whether the first data and the second data are consistent, and if they are consistent, then use the first data as the preset data to perform data recovery and then execute a T-shaped chart program, otherwise, execute step S43;
    S43、清除所述非易失存储器中的所述掉电保护文件和所述校验文件,重新开始运行所述T形图程序。S43. Clear the power-down protection file and the verification file in the non-volatile memory, and restart the T-shape program.
PCT/CN2021/088260 2021-04-14 2021-04-20 Method for data protection during power failure and terminal WO2022217625A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110401582.4A CN113138653B (en) 2021-04-14 2021-04-14 Power failure data protection method and terminal
CN202110401582.4 2021-04-14

Publications (1)

Publication Number Publication Date
WO2022217625A1 true WO2022217625A1 (en) 2022-10-20

Family

ID=76812544

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/088260 WO2022217625A1 (en) 2021-04-14 2021-04-20 Method for data protection during power failure and terminal

Country Status (2)

Country Link
CN (1) CN113138653B (en)
WO (1) WO2022217625A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631677A (en) * 2013-11-27 2014-03-12 上海电器科学研究院 Method for keeping PLC device power-down data
US20170090793A1 (en) * 2015-09-28 2017-03-30 EMC IP Holding Company, LLC Devices and methods for a data storage device
CN111062066A (en) * 2019-11-04 2020-04-24 湖南源科创新科技有限公司 Method for preventing data loss of solid state disk and data storage system
US20200264954A1 (en) * 2019-02-15 2020-08-20 Sanmina Corporation Method and apparatus for consistent and highly available data storage using local and fabric attached non-volatile memory storage devices
CN112115515A (en) * 2020-10-29 2020-12-22 苏州浪潮智能科技有限公司 Data protection method and device, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8452734B2 (en) * 2009-04-30 2013-05-28 Texas Instruments Incorporated FAT file in reserved cluster with ready entry state
CN104751888B (en) * 2013-12-27 2018-11-06 北京兆易创新科技股份有限公司 A kind of power-off protection method and device of nonvolatile memory
CN108646982B (en) * 2018-05-04 2020-11-10 广东电网有限责任公司电力科学研究院 Automatic data restoration method and device based on UBIFS
CN108804258B (en) * 2018-06-07 2021-02-02 Oppo(重庆)智能科技有限公司 Data recovery method and device, mobile terminal and storage medium
CN109086226A (en) * 2018-09-21 2018-12-25 郑州云海信息技术有限公司 A kind of test macro, method, equipment and storage medium storing power down protection
CN112018720A (en) * 2019-05-31 2020-12-01 核工业理化工程研究院 Power failure protection method and protection system of power supply system based on PLC control

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103631677A (en) * 2013-11-27 2014-03-12 上海电器科学研究院 Method for keeping PLC device power-down data
US20170090793A1 (en) * 2015-09-28 2017-03-30 EMC IP Holding Company, LLC Devices and methods for a data storage device
US20200264954A1 (en) * 2019-02-15 2020-08-20 Sanmina Corporation Method and apparatus for consistent and highly available data storage using local and fabric attached non-volatile memory storage devices
CN111062066A (en) * 2019-11-04 2020-04-24 湖南源科创新科技有限公司 Method for preventing data loss of solid state disk and data storage system
CN112115515A (en) * 2020-10-29 2020-12-22 苏州浪潮智能科技有限公司 Data protection method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113138653A (en) 2021-07-20
CN113138653B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
US8589730B2 (en) Handling errors during device bootup from a non-volatile memory
US20110202728A1 (en) Methods and apparatus for managing cache persistence in a storage system using multiple virtual machines
US9619318B2 (en) Memory circuits, method for accessing a memory and method for repairing a memory
WO2021017029A1 (en) Unified-format demura data application method
CN101634960A (en) Method for revising BIOS parameter and regenerating checksum
EP3142015A1 (en) Low-power memory-access method and associated apparatus
CN1794191B (en) Method and computer-readable medium for verifying and saving an electronic document
US10747287B2 (en) Backup power supply based configuration data application
US8006028B2 (en) Enabling memory module slots in a computing system after a repair action
CN105408869A (en) Invoking error handler to handle uncorrectable error
CN110704236B (en) On-line checking method for chip flash data and computer storage medium
WO2022217625A1 (en) Method for data protection during power failure and terminal
CN104484289A (en) Sector-based embedded system write protection device and method
TW201327160A (en) Method for hibernation mechanism and computer system therefor
JPH11265283A (en) Correction method for firmware in storage device, and storage device
TW202134859A (en) Method for performing resuming management, and memory device and controller thereof and electronic device
CN112466377A (en) SSD power-down recovery test method, system and controller
CN106933558B (en) Power supply control method and device
CN117289976A (en) Program updating method, device, equipment and computer readable storage medium
JP3010737B2 (en) Data backup and restoration method for information processing equipment
JPS61182103A (en) Programmable controller
JPH0454656A (en) Electronic apparatus
JP2003242046A (en) Information processor, and operational method and program for information processor
CN116610494A (en) Method, device and equipment for backing up and recovering important data of satellite measurement and control equipment
JPH02100744A (en) Electronic equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21936499

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21936499

Country of ref document: EP

Kind code of ref document: A1