An EMMC system integrating data protection and recovery functions

By integrating the EMMC system with data protection and recovery functions into the electronic whiteboard, the problem of data loss in emergency situations is solved, fast and secure data recovery and efficient data management are achieved, and user experience and device reliability are improved.

CN119322704BActive Publication Date: 2025-09-30GUANGZHOU LANGO ELECTRONICS TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

When electronic whiteboards face emergencies such as abnormal power outages or system failures, user data can easily be lost or damaged, affecting work efficiency and user experience.

Method used

An EMMC system with integrated data protection and recovery functions is designed, including a partition management module, a write protection check module, a data snapshot module, an anomaly monitoring module, a fault warning module, and a data recovery module. By dividing the system partition into system partitions, user partitions, and backup partitions, the system monitors the power status in real time, generates snapshot data, and automatically switches to the backup power supply in the event of a fault. An artificial intelligence model is used to predict the failure probability and perform data recovery.

Benefits of technology

It effectively reduces the risk of data loss, improves the monitoring accuracy of data protection and recovery, ensures that user data can be quickly and safely restored in emergency situations, and improves the efficiency of device use and user trust.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119322704B_ABST
    Figure CN119322704B_ABST
Patent Text Reader

Abstract

The present invention relates to an EMMC system with integrated data protection and recovery functions. The system divides the EMMC into a system partition, a user partition, and a backup partition; periodically reads files and status information of the user partition, generates snapshot data, and packages and stores the snapshot data in the backup partition; monitors the voltage status of the power supply in real time. When there is a risk of power interruption, a supercapacitor or a small lithium battery is immediately activated to supply power, ensuring that the EMMC continues to operate for a period of time, and starts the write operation of the current data, transferring the data from the user partition to the backup partition; reads the health status indicators of the EMMC in real time, including the number of bad blocks, read and write error rates, and life prediction; when a set health status indicator threshold is exceeded, the system triggers an early warning and starts a data backup program. The present invention solves the problem of difficulty in data protection and recovery in the event of a system failure in electronic whiteboards.
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 with integrated data protection and recovery functions. Background Art

[0002] With the increasing prevalence of smart devices like electronic whiteboards, data security and reliability have become increasingly important. These devices play an indispensable role in education, meetings, and business collaboration. However, in real-world use, electronic whiteboards may face various unexpected situations, such as power outages or system failures. These situations often lead to the loss or corruption of user data, severely impacting work efficiency and user experience. This is especially true in classrooms or important meetings, where teachers or speakers rely on electronic whiteboards for real-time presentation and interaction. If a device failure interrupts the flow of the entire teaching session or meeting, it will inevitably affect the smooth progress of the entire meeting. Even more worryingly, unsaved files and important data may become unrecoverable, causing significant inconvenience and frustration for users.

[0003] Therefore, it's crucial to ensure that smart devices like electronic whiteboards have robust data protection and recovery mechanisms in the event of emergencies. This not only strengthens user trust but also improves device efficiency and practical value. By implementing advanced data protection measures, electronic whiteboards can effectively mitigate the risk of data loss caused by unexpected power outages or system failures, providing users with a more secure and reliable operating environment. Summary of the Invention

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

[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 anomaly monitoring module, a fault warning module, and a data recovery module. The partition management module, the write protection check module, the data snapshot module, the anomaly 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 and determine the total capacity and partition scheme of the EMMC; the partition scheme specifically divides the EMMC into a system partition, a user partition, and a backup partition;

[0008] The write protection check module is used to obtain block information of the system partition and the backup partition, and set the partition attribute 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 abnormality monitoring module is used to monitor the voltage status of the power supply in real time and 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 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, including the number of bad blocks, read and write error rates, and life prediction; set a health status indicator threshold, and when the set health status indicator threshold is exceeded, the system triggers an early warning and starts a data backup program;

[0012] The data recovery module performs a self-check by reading all partition information and data integrity information of the 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 test 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 initialize 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; and write the operating system and application programs 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 retry 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 re-enables the write protection 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 they fail, the system records the error and notifies the user.

[0020] Furthermore, the data snapshot module uses a checksum to verify the integrity of the snapshot data when generating 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 plan to extract snapshot data files from the backup partition storage and read them to check the current status of the files;

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

[0025] Reporting and handling: If a checksum mismatch is found, relevant information will be recorded and an error report will be generated for troubleshooting.

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

[0027] Furthermore, the abnormality monitoring module records the error and performs emergency shutdown processing if the data of the user partition fails to be successfully transferred to the backup partition and the system tries the transfer operation again; if it still fails.

[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 a circuit that connects the backup power supply to the EMMC 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 lights or other indicators to provide clear information feedback by using changes in the 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, includes the following steps:

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

[0036] T2. Using health status indicators as independent variables and system failure occurrence as dependent variables, an artificial intelligence model is constructed to learn the relationship between the two;

[0037] T3. Input the real-time 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 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.

[0040] Furthermore, the data recovery module also prompts the user to select a recovery mode through the user interface. 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 in the user partition and the backup partition, specifically using the AES encryption algorithm to convert the data into ciphertext.

[0042] Furthermore, the calculation formula of the AES encryption algorithm is:

[0043] C=E K (P),

[0044] Where C is the encrypted ciphertext data output; E represents the encryption function of the encryption algorithm; K is the encryption key, which is 256 bits long; and P is the plaintext data input of the user partition and backup partition.

[0045] Furthermore, 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.

[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 the snapshot data and storing it in the backup partition; monitoring the voltage status of the power supply in real time, and when there is a risk of power interruption, immediately starting the supercapacitor or small lithium battery to supply power to ensure 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 electronic whiteboards are difficult to protect and recover data when the system fails.

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

[0049] 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 This is a structural diagram of an EMMC system with integrated data protection and recovery functions in the present invention.

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

[0052] Figure 3 This is a flowchart of setting health status indicator thresholds for a fault warning module in one embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to further illustrate the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction 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 anomaly monitoring module, a fault warning module, and a data recovery module. The partition management module, the write protection check module, the data snapshot module, the anomaly 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 specifically 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 boot normally and run various functions. The performance of this partition is crucial to the smooth operation of the system, so it generally requires high read and write speeds.

[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 their daily needs.

[0062] The backup partition is used to regularly back up data from the system and user partitions, ensuring rapid recovery in the event of unexpected loss or system failure. This partition automatically schedules backups, ensuring data security and peace of mind for users.

[0063] Furthermore, the partition management module and the partition scheme also initialize 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; and write the operating system and application programs 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 initializing the EMMC partitions, a GPT (GUID Partition Table) or MBR (Master Boot Record) partition table is used to ensure that the size and properties of each partition meet design requirements. GPT is generally more suitable for modern devices because it supports a larger number of partitions and significantly greater storage capacity. During the partition initialization process, the system partition is first established, and the operating system and core applications are written to this area. The design of this partition must take into account the system's startup stability and efficiency, ensuring that the operating system can load quickly and run efficiently. Next, the user partition is initialized. This partition 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, a backup partition is established as a storage area for snapshots and real-time images, ensuring that in the event of system failure or data loss, a saved state can be quickly restored, thereby improving system reliability. This backup partition should not only support regular backup functions but also have efficient and rapid recovery capabilities to ensure the security and integrity of user data. This complete partitioning solution significantly improves EMMC's storage management efficiency, optimizing data read and write speeds while providing users with a secure and convenient storage environment. This enhances the overall performance of the device, allowing users to enjoy a smoother experience when using the device. Furthermore, this partitioning approach lays a solid foundation for future maintenance and upgrades, allowing for flexible adjustments to the size of each partition based on actual needs, improving system availability and flexibility. This comprehensive design concept aims to enable EMMC to find the optimal balance between storage performance and data management through reasonable partition configuration, meeting the needs of different users and demonstrating 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 retry the partition or prompts the user to handle the error.

[0066] The write protection check module is used to obtain block information of the system partition and the backup partition, and set the partition attribute 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 block information for the system and backup partitions is a crucial step in ensuring data security and effective management. First, using low-level commands or file system tools, you can query the relevant block information for the system and backup partitions, including each partition's starting address, size, type, and other attributes. This information helps understand the storage structure and perform appropriate management operations. After obtaining the partition information, the system and backup partitions must be set to read-only. This can be accomplished through specific system commands or tools. Operating system configuration or file system features can be used to adjust the access permissions for these partitions. Setting read-only prevents data modification in these partitions, which is crucial for protecting critical data. After enabling write protection, it is recommended to regularly monitor the write-protection status of these partitions to ensure that the read-only attribute has not been tampered with or accidentally disabled. Custom scripts or system monitoring tools can be used to check the partition status at set intervals and verify that write protection is functioning properly. If the read-only attribute is accidentally changed, the system should immediately issue an alert and take action, such as restoring the partition attributes or logging the abnormality, to ensure data integrity and security. This monitoring mechanism effectively prevents accidental operations or malicious attacks from impacting critical partition data, ensuring system stability and reliability. By implementing robust partition protection measures and combining them with regular status monitoring, users can build greater confidence in the security of their system and backup data, thereby improving the overall system's resilience to risk. This protection strategy provides the necessary security in critical data scenarios, providing strong support for the operation of users' critical 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 re-enables the write protection 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 user partition's file and status information and generating snapshot data is an effective data protection strategy. First, a reasonable snapshot generation schedule is established, determining a snapshot frequency, such as daily or weekly, to accommodate data changes. Next, an automated script is used to regularly scan the user partition, extracting information such as file name, size, modification date, and status to ensure timely capture of all necessary data. This information is then organized into a snapshot data structure, including a file list and attributes, and even hash values ​​can be added to ensure integrity. After generating the snapshot data, the information is compressed using a compression algorithm to conserve storage space. The snapshot data is then stored in a designated backup partition, ensuring that multiple versions are retained in the same location for easy recovery. In the event of system anomalies or data corruption, a detailed recovery mechanism is developed to enable users to quickly restore data from snapshots. Furthermore, regular verification of snapshot availability and integrity is a crucial step in ensuring the effectiveness of the backup solution. This systematic data protection approach not only improves the reliability of user data management but also significantly reduces the risk of data loss due to system failures or human error, providing a solid foundation for enterprise information security. These steps ensure that user data can be quickly restored to its most recent and reliable state in any unforeseen event.

[0071] Furthermore, 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.

[0072] Furthermore, the data snapshot module uses a checksum to verify the integrity of the snapshot data when generating 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 plan to extract snapshot data files from the backup partition storage and read them to check the current status of the files;

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

[0077] Reporting and handling: If a checksum mismatch is found, relevant information will be recorded and an error report will be generated for troubleshooting.

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

[0079] The abnormality monitoring module is used to monitor the voltage status of the power supply in real time and 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 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 status of the power supply is an important step in 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 supercapacitor or a small lithium battery, to ensure that the EMMC continues to work stably for a period of time, thereby avoiding 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 a timely manner. In this process, the system should give priority to processing unsaved data to ensure the security of critical data. With this backup mechanism, even in the event of a power outage, the user's data can be effectively protected, minimizing potential losses.

[0081] Furthermore, the abnormality monitoring module records the error and performs emergency shutdown processing if the data of the user partition fails to be successfully transferred to the backup partition and the system tries the transfer operation again; if it still fails.

[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 a circuit that connects the backup power supply to the EMMC 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: Design an LED indicator light to provide clear information feedback by using the changes in the indicator light when the power supply is working normally, switching or in standby state.

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

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

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

[0091] T2. Using health status indicators as independent variables and system failure occurrence as dependent variables, an artificial intelligence model is constructed to learn the relationship between the two;

[0092] T3. Input the real-time 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 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.

[0095] In this embodiment, the Bayesian network model is a graphical probability model used to represent conditional dependencies between variables. It consists of nodes and directed edges, where each node represents a random variable and the edges represent the causal relationship between these variables. By using conditional probability tables (CPTs), Bayesian networks are able to quantify the probability distribution of each variable under the conditions of other variables. This allows users to reason and make decisions under conditions of high uncertainty. For example, in the medical field, the possibility of a disease (child node) can be inferred from 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, a Bayesian network model is used to analyze the relationship between health status indicators and system failure occurrence. In this model, the health status indicator plays the role of a parent node, representing various health parameters of the system, while the system failure occurrence serves as a child node, representing the event that needs to be inferred. By constructing a conditional probability table (CPT), the probability of system failure under different health states can be quantified. For example, when the health status indicator is "good", the probability of failure may be only 1%; when the state is "failure", this probability may rise to 80%. This quantitative relationship allows users to use Bayesian networks to infer failure risks by observing the current health status.

[0097] The data recovery module performs a self-check by reading all partition information and data integrity information of the 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 test result is normal, the normal startup process continues without performing data recovery operations.

[0098] In this embodiment, the system has designed a self-check and recovery mechanism for EMMC data storage to ensure data integrity and system stability. Upon startup, the system automatically reads all EMMC partition information and performs a data integrity check. This process primarily involves checking file hash values ​​and performing CRC checks to identify potential corruption or anomalies. If any data corruption or partition anomalies are detected during the self-check, the system immediately triggers a data recovery process, automatically loading the most recent snapshot data from the backup partition. This snapshot typically includes the system configuration, user files, and the status of installed applications, enabling rapid recovery to a known healthy state, thus avoiding prolonged system downtime and data loss. Conversely, if the self-check results indicate that everything is normal, the system continues with the established startup process without triggering a recovery operation, thus saving resources and improving startup efficiency. This self-check and recovery mechanism not only enhances the system's resilience and ensures the security of user data, but also improves the overall user experience, allowing users to 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. 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 in 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 not only detects and recovers data in the user and backup partitions of the 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 stored data, converting plaintext data into ciphertext. AES is a widely used symmetric encryption algorithm with strong security, making it difficult for unauthorized third parties to access or tamper with data during storage and transmission.

[0102] In its implementation, user data undergoes AES encryption before being written to the EMMC. Only authorized users with the correct key can decrypt and access the data. This not only protects user privacy but also effectively controls any potential data leaks during data recovery. Even if the system detects an anomaly during self-test and requires restoring backup data, the information in the backup partition is encrypted and stored. Only during the recovery process can the system decrypt it using the corresponding key and restore it to a user-usable state.

[0103] This encryption mechanism, combined with self-checking and automatic recovery capabilities, forms a complete data protection solution that ensures data confidentiality, integrity, and availability, effectively responding to various emergencies and enhancing system security and user trust. With AES encryption, users can use their devices with greater peace of mind, without worrying about potential threats to sensitive data.

[0104] Furthermore, the calculation formula of the AES encryption algorithm is:

[0105] C=E K (P),

[0106] Where C is the encrypted ciphertext data output; E represents the encryption function of the encryption algorithm; K is the encryption key, which is 256 bits long; and P is the plaintext data input of the user partition and backup partition.

[0107] Furthermore, 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.

[0108] It's important to note that during the system recovery process, to further enhance data security, the system employs a two-factor authentication mechanism, ensuring that only authorized users can perform data recovery. This requires the user to enter their account password and provide a verification code via SMS. This effectively increases the complexity of authentication, ensuring that even if the password is compromised, unauthorized users cannot complete the recovery process.

[0109] First, when the user initiates data recovery, the system prompts them to enter their account password. This password serves as a verification code. If the password is entered correctly, the system also sends a text message containing a verification code to the user's registered mobile phone number. The user must enter this verification code within a specified timeframe to complete two-factor authentication. The verification code's validity is typically temporary, limited to a short window, further preventing the risk of stolen information being used maliciously. Only after the user correctly enters both the password and verification code will the system decrypt and restore the backed-up data. This two-factor authentication process effectively prevents unauthorized access and enhances the system's security. This integrated mechanism provides users with added peace of mind when restoring data, ensuring their information is only accessible to authorized users, significantly enhancing data security and user trust. This design is suitable not only for individual users but also for enterprise environments, helping to protect sensitive data and meeting the high standards of modern information security.

[0110] The above description is merely a preferred embodiment of the present invention and does not constitute any form of limitation to the present invention. Although the present invention has been disclosed as above in terms of a preferred embodiment, it is not intended to limit the present invention. Any person skilled in the art can, without departing from the scope of the technical solution of the present invention, make some changes or modifications to equivalent embodiments using the technical contents disclosed above. 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 with integrated data protection and recovery functions, characterized by: It includes a partition management module, a write protection check module, a data snapshot module, an anomaly 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 anomaly 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 and determine the total capacity and partition scheme of the EMMC; the partition scheme specifically divides the EMMC into a system partition, a user partition, and a backup partition; The write protection check module is used to obtain block information of the system partition and the backup partition, and set the partition attribute 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 abnormality monitoring module is used to monitor the voltage status of the power supply in real time and 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 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, including the number of bad blocks, read and write error rates, and life prediction; set a health status indicator threshold, and when the set health status indicator threshold is exceeded, the system triggers an early warning and starts a data backup program; The data recovery module performs a self-check by reading all partition information and data integrity information of the 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 test 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 the 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 to 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 status is correctly configured; if the write protection status is incorrectly configured, the system re-enables the write protection 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 uses a checksum to verify the integrity of the snapshot data when generating 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 plan to extract snapshot data files from the backup partition storage and read them to check the current status of the files; Comparing checksums: During the verification process, the checksum of the extracted file is recalculated and compared with the previously stored checksum to determine whether the file content is intact; Reporting and handling: If a checksum mismatch is found, relevant information will be recorded and an error report will be generated for troubleshooting. Automation of validation: Use automated scripts to perform checksum calculations and comparisons periodically.

8. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The abnormality monitoring module records the error and performs emergency shutdown processing if the data of the user partition fails to be successfully transferred to the backup partition and the system tries the transfer operation again; if it still fails, the system records the error and performs emergency shutdown processing.

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 a circuit that connects the backup power supply to the EMMC 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: Design an LED indicator light to provide clear information feedback by using the changes in the indicator light when the power supply is working normally, switching or in standby state.

10. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The fault warning module and the setting of the health status indicator threshold include the following steps: T1. Collect EMMC health status indicator data in the historical period and record the occurrence of system failures; wherein the system failure occurrence is divided into two situations: failure and no failure; T2. Using health status indicators as independent variables and system failure occurrence as dependent variables, an artificial intelligence model is constructed to learn the relationship between the two; T3. Input the real-time 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 uses 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. 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 based on the recovery mode selected by the user.

13. The EMMC system with integrated data protection and recovery functions according to claim 1, characterized in that: The data recovery module also encrypts the data in 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 AES encryption algorithm is calculated as follows: C=E K (P), Where C is the encrypted ciphertext data output; E represents the encryption function of the encryption algorithm; K is the encryption key, which is 256 bits long; and P is the plaintext data input of the user partition and backup partition.

15. The EMMC system with integrated 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

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

    CN117687836A

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

    CN118132335A