EMMC system integrating data protection and recovery functions

By integrating data protection and recovery functions in the EMMC system, the data loss problem of electronic whiteboards in emergencies is solved, and the data is securely backed up and fast recovery is realized, improving the reliability and user experience of the device.

CN119322704AActive Publication Date: 2025-01-17GUANGZHOU LANGO ELECTRONICS TECH CO LTD

Patent Information

Application Number
CN202411444609.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-01-17
Estimated Expiration
2044-10-16

AI Technical Summary

Technical Problem

Smart devices such as electronic whiteboards are difficult to effectively protect and restore user data when faced with emergencies, resulting in data loss or damage, affecting work efficiency and user experience.

Method used

Design an EMMC system that integrates data protection and recovery functions, including partition management module, write protection inspection module, data snapshot module, exception monitoring module, fault warning module and data recovery module. By dividing system partitions, user partitions and backup partitions, Monitor power status and health indicators in real time, generate data snapshots, set write protection, use backup power supplies and artificial intelligence warnings to achieve automatic backup and recovery of data.

Benefits of technology

It effectively reduces the risk of data loss, ensures that user data can be quickly recovered in the event of system failure, improves the efficiency of equipment usage and user trust, and provides a more secure and reliable operating environment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322704A_ABST
    Figure CN119322704A_ABST
Patent Text Reader

Abstract

The invention relates to an EMMC (Embedded Multi Media Card) system integrating data protection and recovery functions. The EMMC system is divided into a system partition, a user partition and a backup partition; regularly reading files and state information of the user partition, generating snapshot data, and packaging and storing the snapshot data in a backup partition; monitoring the voltage state of the power supply in real time, immediately starting a super capacitor or a small lithium battery to supply power when the power supply has an interruption risk, ensuring that the EMMC continues to work for a period of time, starting the write-in operation of current data, and transferring the data from the user partition to the backup partition; reading health state indexes of the EMMC in real time, wherein the health state indexes comprise the number of bad blocks, a read-write error rate and life prediction; and when the set health state index threshold value is exceeded, the system triggers early warning and starts a data backup program. According to the invention, the problem that the electronic whiteboard is difficult to protect and recover data when the system fails is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data protection, and relates to an EMMC system integrating data protection and recovery functions. Background Art

[0002] With the popularity of smart devices such as electronic whiteboards, data security and reliability have become particularly important. These smart devices play an indispensable role in education, meetings, and business collaboration. However, in actual use, electronic whiteboards may face various emergencies, such as abnormal power outages or system failures. Such situations often lead to the loss or damage of user data, which seriously affects work efficiency and user experience. Especially in classroom teaching or important meetings, teachers or speakers rely on electronic whiteboards for instant display and interaction of information. If interrupted by equipment failure at a critical moment, it will inevitably affect the smooth progress of the entire teaching progress or meeting. What is more worrying is that unsaved files and important data may become unrecoverable, causing great inconvenience and distress to users.

[0003] Therefore, it is particularly necessary to ensure that smart devices such as electronic whiteboards have good data protection and recovery mechanisms in the face of emergencies. This can not only enhance users' trust, but also improve the efficiency and practical value of the equipment. By taking advanced data protection measures, electronic whiteboards can effectively reduce the risk of data loss caused by unexpected power outages or system failures, providing users with a safer and more reliable operating environment. Summary of the invention

[0004] The present invention provides an EMMC system integrating data protection and recovery functions, aiming to design a system capable of integrating data protection and recovery functions in the EMMC, so as to ensure that user data of an electronic whiteboard can be safely stored and quickly recovered in an unexpected situation.

[0005] The purpose of the present invention can be achieved through the following technical solutions:

[0006] The present application provides an EMMC system with integrated data protection and recovery functions, including a partition management module, a write protection check module, a data snapshot module, an abnormality monitoring module, a fault warning module and a data recovery module, wherein the partition management module, the write protection check module, the data snapshot module, the abnormality monitoring module, the fault warning module and the data recovery module are communicatively connected, wherein:

[0007] The partition management module is used to obtain the system configuration file, determine the total capacity of the EMMC and the partition scheme; the partition scheme is specifically to divide the EMMC into a system partition, a user partition and a backup partition;

[0008] The write protection check module is used to obtain the block information of the system partition and the backup partition, and set the attribute of the partition to read-only; after the write protection mechanism is enabled, the system regularly monitors the write protection status to ensure that the read-only attribute of the partition is not tampered with or accidentally disabled;

[0009] The data snapshot module is used to periodically read the files and status information of the user partition, generate snapshot data, and package and store the snapshot data in the backup partition for data recovery in case of system abnormality or data damage;

[0010] The abnormal monitoring module is used to monitor the voltage status of the power supply in real time to determine whether there is a risk of power interruption; when there is a risk of power interruption, the system immediately starts the super capacitor or small lithium battery to supply power to ensure that the EMMC continues to work for a period of time; and starts the write operation of the current data to transfer the data from the user partition to the backup partition;

[0011] The fault warning module is used to read the health status indicators of the EMMC in real time, and the health status indicators include the number of bad blocks, read and write error rate and life prediction; set the health status indicator threshold, when the set health status indicator threshold is exceeded, the system triggers the warning and starts the data backup program;

[0012] The data recovery module performs self-check by reading all partition information and data integrity information of EMMC to detect whether there is data damage or partition abnormality; when the self-check finds data abnormality, the system automatically loads the last snapshot data in the backup partition and restores system and user data; if the detection result is normal, the normal startup process continues without performing data recovery operations.

[0013] Furthermore, in the partition management module, the system partition is used to store the operating system and application programs;

[0014] The user partition is used to store user data;

[0015] The backup partition is used to regularly back up data in the system partition and the user partition.

[0016] Furthermore, the partition management module and the partition scheme also perform partition initialization on the EMMC, specifically using a GPT or MBR partition table to ensure that the size and attributes of each partition meet the design requirements; and write the operating system and application into the system partition, initialize the user partition for storing user data, and set the backup partition as a storage area for snapshots and real-time images.

[0017] Furthermore, during the partition initialization process, the system checks whether the creation and formatting of each partition is successful; if the partition initialization fails, the system retries the partition or prompts the user to handle the error.

[0018] Furthermore, the write protection check module also checks whether the write protection status is correctly configured; if the write protection status is incorrectly configured, the system enables the write protection again and records a warning log.

[0019] Furthermore, the data snapshot module also checks whether the generation and storage of the snapshot data are successful; if failed, the system records the error and notifies the user.

[0020] Furthermore, the data snapshot module, when generating snapshot data, uses a checksum to verify the integrity of the snapshot data, including the following steps:

[0021] Generate checksum: Generate a checksum for each snapshot data file. The checksum is a unique value calculated by a specific algorithm on the file content and is used for subsequent integrity verification. The specific algorithm is configured as MD5, SHA-1 or SHA-256.

[0022] Store checksum: Save the generated checksum along with the file's metadata (including file name, size, and timestamp);

[0023] Periodic verification: Set a regular integrity check schedule to extract snapshot data files from the backup partition storage and read them to check the current status of the files;

[0024] Compare checksums: During the verification process, the checksum is recalculated for the extracted file and compared with the previously stored checksum to determine whether the file content is intact;

[0025] Report and handle: If a checksum mismatch is found, record the relevant information and generate an error report for troubleshooting;

[0026] Automation of validation: Use automated scripts to periodically perform checksum calculations and comparisons.

[0027] Furthermore, in the abnormal monitoring module, if the data of the user partition cannot be successfully transferred to the backup partition, the system tries the transfer operation again; if it still fails, the error is recorded and an emergency shutdown process is performed.

[0028] Furthermore, when there is a risk of power interruption, the system immediately starts the supercapacitor or small lithium battery to supply power to ensure that the EMMC continues to work for a period of time, including the following steps:

[0029] S1. Monitor power supply status: Use voltage monitoring equipment to detect power supply voltage in real time and determine whether the voltage is lower than the set safety threshold;

[0030] S2. Setting an automatic switching mechanism: configuring a control module in the system, wherein the control module is configured as a microcontroller or FPGA, and is used to automatically trigger power supply switching when detecting that the power supply voltage is lower than a preset value;

[0031] S3. Design backup power supply: Design the backup power supply to connect to the EMMC circuit to provide power when the main power supply fails;

[0032] S4, fast power switching: when the risk of main power interruption is detected, the system quickly switches to the backup power supply to ensure that the EMMC can continue to operate during the power switching process;

[0033] S5. Status indication: Design LED indicator lights or other indicators to provide clear information feedback by using changes in indicator lights when the power supply is working normally, switching or in standby mode.

[0034] Furthermore, the fault warning module, the setting of the health status indicator threshold, comprises the following steps:

[0035] T1. Collect EMMC health status indicator data in the historical period and record the occurrence of system failures; wherein the occurrence of system failures is divided into two situations: failure occurs and no failure occurs;

[0036] T2. Take the health status indicator as the independent variable and the system failure occurrence as the dependent variable, and build an artificial intelligence model to learn the relationship between the two;

[0037] T3. Input the real-time read health status indicators into the artificial intelligence model to predict the probability of system failure;

[0038] T4. Set the probability threshold of system failure as required as the health status indicator threshold.

[0039] Furthermore, the artificial intelligence model is configured as a Bayesian network model, which has a health status indicator as a parent node and a system failure as a child node, and quantifies the probability of system failure under different health status indicator parameters by constructing a conditional probability table.

[0040] Furthermore, the data recovery module also prompts the user to select a recovery mode through the user interface, and the recovery modes include restoring to the last snapshot, reinstalling the system, and retaining user data for system repair; the system performs corresponding recovery operations according to the recovery mode selected by the user.

[0041] Furthermore, the data recovery module also encrypts the data of the user partition and the backup partition, specifically using the AES encryption algorithm to convert the data into ciphertext.

[0042] Furthermore, the AES encryption algorithm is calculated as follows:

[0043] C=E K (P),

[0044] In the formula, C is the encrypted ciphertext data output; E represents the encryption function of the encryption algorithm; K is the encryption key with a length of 256 bits; and P is the plaintext data input of the user partition and the backup partition.

[0045] Furthermore, the data recovery module requires the user to perform two-factor authentication during the system recovery process. The user needs to enter a password and use a text message verification code to ensure that only authorized users can recover data.

[0046] Beneficial effects of the present invention:

[0047] (1) By dividing the EMMC into a system partition, a user partition, and a backup partition; regularly reading the files and status information of the user partition, generating snapshot data, and packaging and storing the snapshot data in the backup partition; monitoring the voltage status of the power supply in real time, when there is a risk of power interruption, immediately starting the super capacitor or small lithium battery to supply power, ensuring that the EMMC continues to work for a period of time, and starting the write operation of the current data, transferring the data from the user partition to the backup partition; reading the health status indicators of the EMMC in real time, including the number of bad blocks, read and write error rate, and life prediction; when the set health status indicator threshold is exceeded, the system triggers an early warning and starts the data backup program. The present invention solves the problem that it is difficult to protect and restore data when the electronic whiteboard fails.

[0048] (2) By establishing an artificial intelligence model between the health status index and system failure conditions, the probability of system failure can be predicted, effectively improving the monitoring and accuracy of data protection and recovery. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.

[0050] Figure 1 The structure diagram of an EMMC system integrating data protection and recovery functions in the present invention.

[0051] Figure 2 This is a flow chart of a system starting a backup power supply when there is a risk of power interruption in one embodiment of the present invention.

[0052] Figure 3 A flowchart of setting a health status indicator threshold for a fault warning module in an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation mode, structure, characteristics and effects of the present invention are described in detail below in combination with the accompanying drawings and preferred embodiments.

[0054] See also Figure 1-Figure 3 The present application provides an EMMC system with integrated data protection and recovery functions, including a partition management module, a write protection check module, a data snapshot module, an abnormality monitoring module, a fault warning module and a data recovery module, wherein the partition management module, the write protection check module, the data snapshot module, the abnormality monitoring module, the fault warning module and the data recovery module are communicatively connected, wherein:

[0055] The partition management module is used to obtain the system configuration file and determine the total capacity and partition scheme of the EMMC;

[0056] Furthermore, the partition management module and the partition scheme are specifically to divide the EMMC into a system partition, a user partition and a backup partition, wherein:

[0057] The system partition is used to store the operating system and application programs;

[0058] The user partition is used to store user data;

[0059] The backup partition is used to regularly back up data in the system partition and the user partition.

[0060] In this embodiment, the system partition is used to store the operating system and its core applications, including the boot loader, kernel, and necessary system files to ensure that the device can start normally and run various functions. The performance of this partition is crucial to the smoothness of the system, so a high read and write speed is usually required.

[0061] The user partition is used to store user-generated data, such as documents, photos, videos, and application data. This partition is designed to provide users with flexible storage space to facilitate access and management of personal data and support users' daily usage needs.

[0062] The backup partition is used to regularly back up the data in the system partition and user partition to ensure quick recovery in the event of accidental loss or system failure. This partition can automatically perform scheduled backups to provide data security and allow users to use the device with peace of mind.

[0063] Furthermore, the partition management module and the partition scheme also perform partition initialization on the EMMC, specifically using a GPT or MBR partition table to ensure that the size and attributes of each partition meet the design requirements; and write the operating system and application into the system partition, initialize the user partition for storing user data, and set the backup partition as a storage area for snapshots and real-time images.

[0064] In this embodiment, when the EMMC is partitioned and initialized, a GPT (GUID Partition Table) or MBR (Master Boot Record) partition table is used to ensure that the size and attributes of each partition can meet the design requirements. GPT is usually more suitable for modern devices because it supports more partitions and significantly larger storage capacity. In the partition initialization process, the system partition is first set, and the operating system and core applications are written to the area. The design of the partition needs to take into account the startup stability and efficiency of the system to ensure that the operating system can be quickly loaded and run efficiently. Next is the initialization of the user partition, which is specifically used to store user-generated data, such as documents, photos, videos, and applications. It must have sufficient space and flexibility to meet the diverse needs of users, while facilitating user management and access to personal data. Finally, the backup partition is set as a storage area for snapshots and real-time images to ensure that in the event of system failure or data loss, it can be quickly restored to the saved state and improve the reliability of the system. The spare partition should not only support regular backup functions, but also have efficient and fast recovery capabilities to ensure the security and integrity of user data. Through this complete set of partitioning solutions, the storage management efficiency of EMMC has been significantly improved, which not only optimizes the data reading and writing speed, but also provides users with a safe and convenient storage environment, enhances the overall performance of the device, and allows users to enjoy a smoother experience when using the device. In addition, this partitioning method also lays a solid foundation for later maintenance and upgrades. The size of each partition can be flexibly adjusted according to actual needs, improving the availability and flexibility of the system. This comprehensive design concept aims to enable EMMC to find the best balance between storage performance and data management through reasonable partition configuration, meet the needs of different users, and demonstrate its strong adaptability and practical value.

[0065] Furthermore, during the partition initialization process, the system checks whether the creation and formatting of each partition is successful; if the partition initialization fails, the system retries the partition or prompts the user to handle the error.

[0066] The write protection check module is used to obtain the block information of the system partition and the backup partition, and set the attribute of the partition to read-only; after the write protection mechanism is enabled, the system regularly monitors the write protection status to ensure that the read-only attribute of the partition is not tampered with or accidentally disabled;

[0067] In this embodiment, obtaining the block information of the system partition and the backup partition is an important step to ensure data security and effective management. First, through low-level commands or file system tools, the relevant block information of the system partition and the backup partition can be queried, including the starting address, size, type and other attributes of each partition. This information can help understand the storage structure and perform corresponding management operations. After obtaining the partition information, the properties of the system partition and the backup partition need to be set to read-only. This can be achieved through specific system commands or tools, and the configuration of the operating system or the file system characteristics can be used to adjust the access rights of these partitions. After setting to read-only, these partitions will not allow data to be modified, which is crucial for the protection of critical data. After enabling the write protection mechanism, it is recommended to regularly monitor the write protection status of these partitions to ensure that their read-only attributes are not tampered with or accidentally disabled. The status of the partition can be detected at a set time interval through a custom script or system monitoring tool, and the write protection can be verified to be working properly. If the read-only attribute is found to be accidentally changed, the system should immediately send an alarm and take measures, such as restoring the partition attributes or recording abnormal conditions, to ensure the integrity and security of the data. This monitoring mechanism can effectively prevent accidental operations or malicious attacks from affecting key partition data, ensuring system stability and reliability. By setting strong partition protection measures and combining them with regular status monitoring, users can build higher confidence in the security of the system and backup data, thereby improving the overall system's ability to resist risks. Such a protection strategy can provide the necessary security guarantees in scenarios where data is critical, providing strong support for the operation of users' key applications.

[0068] Furthermore, the write protection check module also checks whether the write protection status is correctly configured; if the write protection status is incorrectly configured, the system enables the write protection again and records a warning log.

[0069] The data snapshot module is used to periodically read the files and status information of the user partition, generate snapshot data, and package and store the snapshot data in the backup partition for data recovery in case of system abnormality or data damage;

[0070] In this embodiment, regularly reading the files and status information of the user partition and generating snapshot data is an effective data protection strategy. First, set a reasonable snapshot generation plan and determine the frequency of snapshots, such as daily or weekly, to adapt to data changes. Next, use an automated script to regularly scan the user partition to extract information such as file name, size, modification date and status to ensure that all necessary data is obtained in a timely manner. Subsequently, this information is organized into a snapshot data structure, including a file list and attributes, and even a hash value of the data can be added to ensure integrity. After the snapshot data is generated, the information is packaged using a compression algorithm to save storage space, and then the snapshot data is stored in the set backup partition. It must be ensured that multiple versions are retained in the same location for selection and recovery. In the event of system abnormalities or data corruption, a detailed recovery mechanism is formulated to enable users to quickly recover data from snapshots. In addition, regularly verifying the availability and integrity of snapshots is an important part of ensuring the effectiveness of the backup plan. This systematic data protection measure not only improves the reliability of user data management, but also greatly reduces the risk of data loss due to system failures or human errors, providing a solid guarantee for the information security of the enterprise. Through these steps, it can be ensured that in any unexpected situation, the user's data can be quickly restored to the latest reliable state.

[0071] Furthermore, the data snapshot module also checks whether the generation and storage of the snapshot data are successful; if failed, the system records the error and notifies the user.

[0072] Furthermore, the data snapshot module, when generating snapshot data, uses a checksum to verify the integrity of the snapshot data, including the following steps:

[0073] Generate checksum: Generate a checksum for each snapshot data file. The checksum is a unique value calculated by a specific algorithm on the file content and is used for subsequent integrity verification. The specific algorithm is configured as MD5, SHA-1 or SHA-256.

[0074] Store checksum: Save the generated checksum along with the file's metadata (including file name, size, and timestamp);

[0075] Periodic verification: Set a regular integrity check schedule to extract snapshot data files from the backup partition storage and read them to check the current status of the files;

[0076] Compare checksums: During the verification process, the checksum is recalculated for the extracted file and compared with the previously stored checksum to determine whether the file content is intact;

[0077] Report and handle: If a checksum mismatch is found, record the relevant information and generate an error report for troubleshooting;

[0078] Automation of validation: Use automated scripts to periodically perform checksum calculations and comparisons.

[0079] The abnormal monitoring module is used to monitor the voltage status of the power supply in real time to determine whether there is a risk of power interruption; when there is a risk of power interruption, the system immediately starts the super capacitor or small lithium battery to supply power to ensure that the EMMC continues to work for a period of time; and starts the write operation of the current data to transfer the data from the user partition to the backup partition;

[0080] In this embodiment, real-time monitoring of the voltage state of the power supply is an important part of ensuring system stability. By deploying sensors, the system can continuously monitor the power supply voltage and set a threshold to determine whether there is a risk of power outage. Once the voltage is detected to drop below the threshold, the system will immediately start the backup power supply, such as a super capacitor or a small lithium battery, to ensure that the EMMC continues to work stably for a period of time, so as to avoid data loss or accidental shutdown of the device. At the same time, the system needs to quickly start the write operation of the current data and transfer the data in the user partition to the backup partition in time. In this process, the system should give priority to unsaved data to ensure the security of key data. Using this backup mechanism, even in the case of power outages, the user's data can be effectively protected to minimize potential losses.

[0081] Furthermore, in the abnormal monitoring module, if the data of the user partition cannot be successfully transferred to the backup partition, the system tries the transfer operation again; if it still fails, the error is recorded and an emergency shutdown process is performed.

[0082] Furthermore, when there is a risk of power interruption, the system immediately starts the supercapacitor or small lithium battery to supply power to ensure that the EMMC continues to work for a period of time, including the following steps:

[0083] S1. Monitor power supply status: Use voltage monitoring equipment to detect power supply voltage in real time and determine whether the voltage is lower than the set safety threshold;

[0084] S2. Setting an automatic switching mechanism: configuring a control module in the system, wherein the control module is configured as a microcontroller or FPGA, and is used to automatically trigger power supply switching when detecting that the power supply voltage is lower than a preset value;

[0085] S3. Design backup power supply: Design the backup power supply to connect to the EMMC circuit to provide power when the main power supply fails;

[0086] S4, fast power switching: when the risk of main power interruption is detected, the system quickly switches to the backup power supply to ensure that the EMMC can continue to operate during the power switching process;

[0087] S5. Status indication: An LED indicator light is designed to provide clear information feedback by using the changes in the indicator light when the power supply is working normally, switching or in standby mode.

[0088] The fault warning module is used to read the health status indicators of the EMMC in real time, and the health status indicators include the number of bad blocks, read and write error rate and life prediction; set the health status indicator threshold, when the set health status indicator threshold is exceeded, the system triggers the warning and starts the data backup program;

[0089] Furthermore, the fault warning module, the setting of the health status indicator threshold, comprises the following steps:

[0090] T1. Collect EMMC health status indicator data in the historical period and record the occurrence of system failures; wherein the occurrence of system failures is divided into two situations: failure occurs and no failure occurs;

[0091] T2. Take the health status indicator as the independent variable and the system failure occurrence as the dependent variable, and build an artificial intelligence model to learn the relationship between the two;

[0092] T3. Input the real-time read health status indicators into the artificial intelligence model to predict the probability of system failure;

[0093] T4. Set the probability threshold of system failure as required as the health status indicator threshold.

[0094] Furthermore, the artificial intelligence model is configured as a Bayesian network model, which has a health status indicator as a parent node and a system failure as a child node, and quantifies the probability of system failure under different health status indicator parameters by constructing a conditional probability table.

[0095] In this embodiment, the Bayesian network model is a graphical probability model for representing conditional dependencies between variables. It consists of nodes and directed edges, each node represents a random variable, and the edges represent the causal relationship between these variables. By using the conditional probability table (CPT), the Bayesian network can quantify the probability distribution of each variable under the conditions of other variables. This allows users to reason and make decisions under high uncertainty. For example, in the medical field, the possibility of a disease (child node) can be inferred by the patient's symptoms (parent node), thereby helping doctors make a diagnosis. The flexibility and scalability of Bayesian networks make them widely used in different fields, such as artificial intelligence, data mining, and risk assessment. By modeling the relationship between variables in complex systems, Bayesian networks not only improve the accuracy of reasoning, but also can update the inference results in real time in a dynamic environment, supporting a more scientific and reasonable decision-making process.

[0096] In this embodiment, the Bayesian network model is used to analyze the relationship between the health status indicator and the occurrence of system failures. In this model, the health status indicator plays the role of a parent node, representing various health parameters of the system, and the occurrence of system failures as child nodes, representing events that need to be inferred. By constructing a conditional probability table (CPT), the probability of system failures in different health states can be quantified. For example, when the health status indicator is "good", the probability of a failure may be only 1%; when the state is "failure", this probability may rise to 80%. This quantitative relationship enables users to use Bayesian networks to infer failure risks by observing the current health status.

[0097] The data recovery module performs self-check by reading all partition information and data integrity information of EMMC to detect whether there is data damage or partition abnormality; when the self-check finds data abnormality, the system automatically loads the last snapshot data in the backup partition and restores system and user data; if the detection result is normal, the normal startup process continues without performing data recovery operations.

[0098] In this embodiment, the system designs a self-check and recovery mechanism for EMMC data storage, aiming to ensure the integrity of data and the stability of the system. At startup, the system will automatically read all partition information of EMMC and perform data integrity detection. This process mainly identifies possible damage or abnormality by checking the hash value of the file, performing CRC verification, etc. If any data damage or partition abnormality is found during the self-check process, the system will immediately trigger the data recovery program and automatically load the most recent snapshot data in the backup partition. This snapshot usually includes the status of system configuration, user files, and installed applications, and can quickly recover to a known healthy state, thereby avoiding long-term system downtime and data loss. On the contrary, if the self-check result shows that everything is normal, the system will continue to proceed according to the established startup process, and will not trigger the recovery operation, thereby saving resources and improving startup efficiency. Through this self-check and recovery mechanism, the system not only enhances the anti-fault capability and ensures the security of user data, but also improves the overall user experience, and users can use the system with peace of mind without worrying about data loss.

[0099] Furthermore, the data recovery module also prompts the user to select a recovery mode through the user interface, and the recovery modes include restoring to the last snapshot, reinstalling the system, and retaining user data for system repair; the system performs corresponding recovery operations according to the recovery mode selected by the user.

[0100] Furthermore, the data recovery module also encrypts the data of the user partition and the backup partition, specifically using the AES encryption algorithm to convert the data into ciphertext.

[0101] In this embodiment, the data recovery module is not only responsible for detecting and recovering the user partition and backup partition data of EMMC, but also encrypts the data to ensure the security of user information. Specifically, the system uses the Advanced Encryption Standard (AES) algorithm to encrypt the stored data and convert the plaintext data into ciphertext. AES is a widely used symmetric encryption algorithm, and its strong security makes it difficult for data to be accessed or tampered by unauthorized third parties during storage and transmission.

[0102] In the specific implementation process, user data will be encrypted by AES before being written to EMMC, and only authorized users with the correct key can decrypt and access the data. This not only protects the privacy of users, but also ensures that any potential data leakage risks can be effectively controlled during the data recovery process. Even if the system finds an abnormality during self-test and needs to restore the backup data, the information in the backup partition will be encrypted and stored. Only during the recovery process can the system decrypt it with the corresponding key and restore it to a state available to the user.

[0103] This encryption mechanism, combined with self-checking and automatic recovery functions, forms a complete data protection solution to ensure the confidentiality, integrity and availability of data, thereby effectively responding to various emergencies and improving system security and user trust. With AES encryption, users can feel more at ease when using the device without worrying about sensitive data being threatened.

[0104] Furthermore, the AES encryption algorithm is calculated as follows:

[0105] C=E K (P),

[0106] In the formula, C is the encrypted ciphertext data output; E represents the encryption function of the encryption algorithm; K is the encryption key with a length of 256 bits; and P is the plaintext data input of the user partition and the backup partition.

[0107] Furthermore, the data recovery module requires the user to perform two-factor authentication during the system recovery process. The user needs to enter a password and use a text message verification code to ensure that only authorized users can recover data.

[0108] It should be noted that during the system recovery process, in order to further enhance data security, the system uses a two-factor authentication mechanism to ensure that only authorized users can perform data recovery. The specific operation requires the user to enter his account password and provide a verification code sent via SMS. This measure effectively increases the complexity of identity authentication, ensuring that even if the password is leaked, unauthorized users still cannot complete the recovery process.

[0109] First, when the user initiates data recovery, the system will prompt for the account password. The password is used to confirm the user's identity. If the password is entered correctly, the system will also send a text message containing a verification code to the user's registered mobile phone number. The user needs to enter the verification code within a specified time to complete the two-factor verification. The validity of the verification code is usually temporary and limited to a short time window, which further prevents the risk of malicious use of information after being stolen. Only after the user enters the password and verification code correctly will the system decrypt and restore the backup data. This two-factor verification process effectively prevents unauthorized access and improves the security protection level of the system. After integrating this mechanism, users can have more peace of mind when restoring data, ensuring that their information is only in the control of the actual authorized user, thereby greatly enhancing data security and user trust. This design is not only suitable for individual users, but also for corporate environments, helping to protect sensitive data and meeting the high standards of modern information security.

[0110] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any brief modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present invention without departing from the content of the technical solution of the present invention are still within the scope of the technical solution of the present invention.

Claims

1. An EMMC system integrating data protection and recovery functions, characterized in that: It includes a partition management module, a write protection check module, a data snapshot module, an abnormality monitoring module, a fault warning module and a data recovery module, and the partition management module, the write protection check module, the data snapshot module, the abnormality monitoring module, the fault warning module and the data recovery module are communicatively connected, wherein: The partition management module is used to obtain the system configuration file, determine the total capacity of the EMMC and the partition scheme; the partition scheme is specifically to divide the EMMC into a system partition, a user partition and a backup partition; The write protection check module is used to obtain the block information of the system partition and the backup partition, and set the attribute of the partition to read-only; after the write protection mechanism is enabled, the system regularly monitors the write protection status to ensure that the read-only attribute of the partition is not tampered with or accidentally disabled; The data snapshot module is used to periodically read the files and status information of the user partition, generate snapshot data, and package and store the snapshot data in the backup partition for data recovery in case of system abnormality or data damage; The abnormal monitoring module is used to monitor the voltage status of the power supply in real time to determine whether there is a risk of power interruption; when there is a risk of power interruption, the system immediately starts the super capacitor or small lithium battery to supply power to ensure that the EMMC continues to work for a period of time; and starts the write operation of the current data to transfer the data from the user partition to the backup partition; The fault warning module is used to read the health status indicators of the EMMC in real time, and the health status indicators include the number of bad blocks, read and write error rate and life prediction; set the health status indicator threshold, when the set health status indicator threshold is exceeded, the system triggers the warning and starts the data backup program; The data recovery module performs self-check by reading all partition information and data integrity information of EMMC to detect whether there is data damage or partition abnormality; when the self-check finds data abnormality, the system automatically loads the last snapshot data in the backup partition and restores system and user data; if the detection result is normal, the normal startup process continues without performing data recovery operations.

2. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: In the partition management module, the system partition is used to store the operating system and application programs; The user partition is used to store user data; The backup partition is used to regularly back up data in the system partition and the user partition.

3. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The partition management module also initializes the EMMC partitions, specifically using a GPT or MBR partition table to ensure that the size and attributes of each partition meet the design requirements; writes the operating system and application programs into the system partition, initializes the user partition for storing user data, and sets the backup partition as a storage area for snapshots and real-time images.

4. The EMMC system with integrated data protection and recovery functions according to claim 3, characterized in that: During the partition initialization process, the system checks whether each partition is created and formatted successfully; If partition initialization fails, the system retries the partition or prompts the user to handle the error.

5. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The write protection check module also checks whether the write protection state is correctly configured; if the write protection state is incorrectly configured, the system enables the write protection again and records a warning log.

6. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The data snapshot module also checks whether the generation and storage of the snapshot data are successful; if they fail, the system records the error and notifies the user.

7. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The data snapshot module, when generating snapshot data, uses a checksum to verify the integrity of the snapshot data, including the following steps: Generate checksum: Generate a checksum for each snapshot data file. The checksum is a unique value calculated by a specific algorithm on the file content and is used for subsequent integrity verification. The specific algorithm is configured as MD5, SHA-1 or SHA-256. Store checksum: save the generated checksum along with the file's metadata; Periodic verification: Set a regular integrity check schedule to extract snapshot data files from the backup partition storage and read them to check the current status of the files; Compare checksums: During the verification process, the checksum is recalculated for the extracted file and compared with the previously stored checksum to determine whether the file content is intact; Report and handle: If a checksum mismatch is found, record the relevant information and generate an error report for troubleshooting; Automation of validation: Use automated scripts to periodically perform checksum calculations and comparisons.

8. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: In the abnormal monitoring module, if the data of the user partition cannot be successfully transferred to the backup partition, the system tries the transfer operation again; if it still fails, the error is recorded and an emergency shutdown process is performed.

9. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: When there is a risk of power interruption, the system immediately starts the supercapacitor or small lithium battery to supply power to ensure that the EMMC continues to work for a period of time, including the following steps: S1. Monitor power supply status: Use voltage monitoring equipment to detect power supply voltage in real time and determine whether the voltage is lower than the set safety threshold; S2. Setting an automatic switching mechanism: configuring a control module in the system, wherein the control module is configured as a microcontroller or FPGA, and is used to automatically trigger power supply switching when detecting that the power supply voltage is lower than a preset value; S3. Design backup power supply: Design the backup power supply to connect to the EMMC circuit to provide power when the main power supply fails; S4, fast power switching: when the risk of main power interruption is detected, the system quickly switches to the backup power supply to ensure that the EMMC can continue to operate during the power switching process; S5. Status indication: An LED indicator light is designed to provide clear information feedback by using the changes in the indicator light when the power supply is working normally, switching or in standby mode.

10. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The fault warning module, the setting of the health status indicator threshold, comprises the following steps: T1. Collect EMMC health status indicator data in the historical period and record the occurrence of system failures; wherein the occurrence of system failures is divided into two situations: failure occurs and no failure occurs; T2. Take the health status indicator as the independent variable and the system failure occurrence as the dependent variable, and build an artificial intelligence model to learn the relationship between the two; T3. Input the real-time read health status indicators into the artificial intelligence model to predict the probability of system failure; T4. Set the probability threshold of system failure as required as the health status indicator threshold.

11. The EMMC system with integrated data protection and recovery functions according to claim 10, characterized in that: The artificial intelligence model is configured as a Bayesian network model. The Bayesian network model takes the health status indicator as the parent node and the system failure occurrence as the child node, and quantifies the probability of system failure under different health status indicator parameters by constructing a conditional probability table.

12. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The data recovery module also prompts the user to select a recovery mode through the user interface, and the recovery modes include restoring to the last snapshot, reinstalling the system, and retaining user data for system repair; the system performs corresponding recovery operations according to the recovery mode selected by the user.

13. The EMMC system integrating data protection and recovery functions according to claim 1, characterized in that: The data recovery module also encrypts the data of the user partition and the backup partition, specifically using the AES encryption algorithm to convert the data into ciphertext.

14. The EMMC system with integrated data protection and recovery functions according to claim 13, characterized in that: The calculation formula of the AES encryption algorithm is: C=Eg(P) In the formula, C is the encrypted ciphertext data output; E represents the encryption function of the encryption algorithm; K is the encryption key with a length of 256 bits; and P is the plaintext data input of the user partition and the backup partition.

15. The EMMC system integrating data protection and recovery functions according to claim 1, characterized in that: The data recovery module requires users to perform two-factor authentication during the system recovery process. Users need to enter a password and use a text message verification code to ensure that only authorized users can recover data.

Citation Information

Patent Citations

  • EMMC running state monitoring method and system and computer readable storage medium

    CN116820898A

  • Electric energy data fault automatic recovery method, system, device and medium

    CN117687836A

  • Method, system and equipment for recovering startup exception of embedded equipment

    CN118132335A

  • Computer platform embedded operating system backup switching handling method and system

    US20070174689A1

Cited By

  • Storage equipment monitoring device and monitoring method thereof

    CN120670253A

  • Method and system for recovering long-term storage failure of mobile terminal

    CN121210211A