Power failure data protection method and terminal

The invention discloses a power-down data protection method and a terminal, and the method comprises the steps: packaging preset data into a power-down protection file when power-down is detected, and storing the power-down protection file in a nonvolatile memory; recording the file creation time of...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: LYU JINZHI, HUANG JIBO, OU XINMU, ZHENG YINGFENG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention discloses a power-down data protection method and a terminal, and the method comprises the steps: packaging preset data into a power-down protection file when power-down is detected, and storing the power-down protection file in a nonvolatile memory; recording the file creation time of the power failure protection file, carrying out secondary packaging on the file creation time and preset data to form a verification file, and storing the verification file in a nonvolatile memory; when external power-on is detected, obtaining first data of a power-down protection file in the nonvolatile memory and second data in a verification file; and when the time and the data sum are consistent through verification, taking the first data as preset data to carry out data recovery, and then running the PLC program. According to the method, the file creation time containing the power-down protection file and the preset data needing power-down protection are subjected to secondary packaging, so that credibility v