Vehicle-mounted refrigerator data priority storage and verification method and system

By dividing data units in the vehicle refrigerator system and monitoring environmental parameters and user behavior in real time, dynamically adjusting storage frequency and redundant storage, the problems of low data storage efficiency and high risk of loss in the existing technology are solved, and the efficiency of key data is achieved , reliable storage.

CN119225647AInactive Publication Date: 2024-12-31FOSHAN ALPICOOL ELECTRIC APPLIANCE CO LTD

Patent Information

Application Number
CN202411287147.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2024-12-31
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing data storage systems lack flexibility in handling environmental changes in vehicle refrigerators and cannot effectively distinguish critical data from non-critical data, resulting in inefficient storage efficiency and high risk of data loss, and lack real-time monitoring and dynamic storage capabilities.

Method used

By dividing data units, distinguishing key data areas and non-critical data areas, monitoring environmental parameters and user behavior in real time, dynamically adjusting storage frequency, and using cyclic redundant experiments to verify data integrity and perform redundant storage, ensuring priority storage of key data and protection.

Benefits of technology

Improves the efficiency and reliability of data storage, reduces the risk of data loss, and ensures data integrity and security under adverse environmental conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119225647A_ABST
    Figure CN119225647A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle-mounted refrigerator data priority storage and verification method and system, and relates to the technical field of data storage and verification, and the method specifically comprises the steps: defining the size of a storage region, dividing the storage region into a key data region and a non-key data region, and carrying out the classification according to the data priority. Data to be stored are packaged into one frame, and non-critical data are preferentially covered during storage. Environmental parameters are monitored in real time, and when the environmental parameters exceed a threshold value, redundant storage of key data is carried out. And monitoring the door opening and closing frequency of the user to adjust the storage frequency. During data reading, the data unit is positioned through the latest frame count, the data integrity is verified by using a cyclic redundancy experiment, key data is periodically backed up to external storage, and the erasure times of Flash are monitored to execute necessary erasure operation. According to the method, the key data and the non-key data are clearly distinguished, so that the key data can be preferentially stored and protected, and the risk of data loss is effectively reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data storage and verification, and in particular to a method and system for storing and verifying data priority of a vehicle refrigerator. Background Art

[0002] In today's rapidly developing field of Internet of Things and embedded systems, data storage faces multiple challenges. First, with the popularization of sensor technology, devices need to collect multiple environmental parameters such as temperature, humidity and vibration in real time. Not only is the amount of data huge, but it also places higher requirements on the security and integrity of storage. However, many existing storage solutions fail to effectively distinguish between critical data and non-critical data, resulting in inefficient utilization of storage areas. Critical data may be affected when the environment changes, while non-critical data occupies valuable storage resources, which may result in the inability to save important data in time when the storage area is insufficient. In addition, existing technologies have limited capabilities in data verification and integrity monitoring, and often rely on regular manual checks, which increases the risk of data loss.

[0003] Secondly, existing data storage systems lack flexibility in responding to environmental changes, especially in the case of frequent temperature and humidity fluctuations. Many systems fail to monitor these environmental parameters in real time, which makes it impossible for them to take appropriate protective measures when data exceeds safety thresholds. Due to the lack of a real-time data redundant storage mechanism, critical data can be easily damaged or lost when affected by adverse environmental conditions. In addition, existing technologies generally adopt a fixed data storage frequency, which cannot be dynamically adjusted according to the user's actual usage behavior, resulting in inefficient data storage. Therefore, there is an urgent need for a new data storage solution that can flexibly respond to environmental changes, effectively distinguish data priorities, and has real-time monitoring and dynamic storage capabilities to meet the growing demand for data security and reliability in modern applications. The above information disclosed in this Background section is only for enhancement of understanding of the background of the present disclosure and therefore it may contain information that does not constitute the prior art that is already known to one of ordinary skill in the art. Summary of the invention

[0004] The object of the present invention is to provide a method and system for storing and verifying data priority of a vehicle refrigerator to solve the problems raised in the above-mentioned background technology.

[0005] To achieve the above object, the present invention provides the following technical solutions: A method and system for storing and verifying priority of vehicle refrigerator data, the specific steps include: Step 1: Divide the data units according to the size of the storage area of ​​the internal control board of the vehicle refrigerator, and calculate the size of each data unit; divide the storage area into a key data area and a non-key data area, and divide the data into key data and non-key data according to the priority of the data; initialize the frame counter to identify the sequence number of each frame of data; initialize the starting address to determine the starting position of the data storage; Step 2: After the initialization is completed, the data is encapsulated, and the data to be stored is encapsulated into a frame with the frame header, frame count, priority and CRC check code, and the integrity of the data is ensured through a cyclic redundancy experiment; when storing data, the priority of the data is determined, and the data is written into the corresponding storage area in sequence. If the storage area is full, non-critical data is overwritten first; Step 3: Real-time monitoring of the environmental parameters inside the vehicle refrigerator, which are specifically temperature, humidity and vibration data, and comparing the real-time environmental parameters with the corresponding safety thresholds. When the safety threshold is exceeded, real-time redundant storage of key data is performed; the frequency of users opening and closing the door is monitored, and the data storage frequency is adjusted according to user behavior; Step 4: When reading data, locate the stored data unit according to the latest frame count and verify the integrity of the data through a cyclic redundancy experiment; regularly back up key data to an external storage system, monitor the number of erase and write times of the Flash, set an erase and write threshold, and erase when the number of erase and write times exceeds the threshold.

[0006] Furthermore, the data units are divided according to the size of the storage area of ​​the internal control panel of the vehicle refrigerator, and the size of each data unit is calculated, specifically: The size of each data unit is calculated according to the following formula : in, For the size of each data unit, is the size of the total storage area, is the number of data units; The process of classifying data into key data and non-key data according to the priority of the data is as follows: The temperature data, humidity data, user settings, alarm information and usage status description are marked as data with priority 1, and the key data area is used to store data with priority 1; User preferences, historical data, log information and application data are marked as priority 0 data, and the non-critical data area is used to store priority 0 data; If the demand for critical data is large, more storage space is allocated to the critical data area; conversely, if the demand for non-critical data is small, its storage space is reduced.

[0007] Furthermore, the process of storing data is specifically as follows: When the storage area is not full, data is written in sequence in the key data area and the non-key data area, that is, key data is written into the key data area, and non-key data is written into the non-key data area; If the storage area is full, that is, the non-critical data area is full, at this time, the data in the non-critical data area is overwritten first, that is, the critical data is written into the non-critical data area.

[0008] Furthermore, the process of real-time redundant storage of key data is specifically as follows: Real-time monitoring of environmental parameters, specifically temperature, humidity and vibration data, and comparing the real-time environmental parameters with the corresponding safety thresholds: When the temperature is higher than the preset temperature threshold, redundant storage of key data is implemented; When the humidity is higher than the preset humidity threshold, redundant storage of key data is implemented; When the vibration intensity is higher than the preset vibration intensity threshold, redundant storage of key data is implemented.

[0009] Furthermore, the process of monitoring the frequency of users opening and closing doors and adjusting the data storage frequency according to user behavior is specifically as follows: Monitor the user's door opening and closing operations, record the timestamp and duration of each door opening and closing operation, and form a behavior log. The data should include: the time mark, timestamp and duration of the door opening and closing operation. Among them, set the door opening and closing time interval threshold, define the door opening and closing operations with a time interval less than the threshold as too short, and do not record continuous door opening and closing operations with a time interval too short; Extract important features from the raw data, including: the peak time period for users to open and close the door, and the number of times the door is opened and closed each day; Perform statistical analysis on the extracted important features to identify users' common door opening and closing patterns and peak times, including: average number of door opening and closing times per day, and changes in usage frequency in different time periods; According to the user's door opening and closing behavior pattern, set the storage frequency in different time periods, specifically: increase the data storage frequency during peak hours and reduce the storage frequency during off-peak hours; Real-time dynamic storage strategy: based on the results of real-time monitoring, the system automatically adjusts the storage frequency, specifically: If the number of door openings and closings in the past 30 minutes exceeds the preset threshold, the system will increase the storage frequency to once per minute; if the number of door openings and closings in the past 30 minutes is lower than the preset threshold, the system will reduce the storage frequency to once every 5 minutes; Analyze new data regularly and adjust the data storage frequency based on the results of statistical analysis of user behavior.

[0010] Furthermore, the process of reading data is specifically as follows: when data needs to be read, first obtain the latest frame count, calculate the corresponding data unit according to the frame count, accurately locate the required data, and read the content of the data unit; When writing data, the CRC checksum is calculated and stored for each data block. After reading the data, the CRC is recalculated to verify the integrity of the data. The verification process is as follows: Read the data and the corresponding CRC check code from the storage, calculate the CRC value of the read data, and compare the calculated CRC value with the stored CRC check code: If there is a match, data integrity is verified; If there is a mismatch, mark the data as corrupt and decide whether to retry the read or retrieve the data.

[0011] Furthermore, the process of regularly backing up key data to an external storage system and monitoring the number of times the Flash is erased and written is specifically as follows: According to the importance and frequency of use of data, set the backup cycle: critical data is backed up once an hour, and non-critical data is backed up once a day; at the set time point, extract the critical data and package it into a backup file, and transfer the backup file to the external transmission system. After each backup is completed, perform a simple integrity check; Each time data is written or erased, the number of times the Flash storage is erased is recorded, and a safe erase count threshold is set according to the specifications of the Flash storage device; the number of erases is checked regularly, and the current number is compared with the set safe erase count threshold. If the number of erases exceeds the set threshold, the system will automatically perform an erase operation; before the erase operation, the key data is migrated, and after the erase operation is completed, the erase counter is updated and the data to be written is restarted.

[0012] A vehicle refrigerator data priority storage and verification system, comprising: The storage area definition module is used to divide the data unit according to the size of the storage area of ​​the internal control board of the vehicle refrigerator, and calculate the size of each data unit; divide the storage area into a key data area and a non-key data area, and divide the data into key data and non-key data according to the priority of the data; initialize the frame counter to identify the sequence number of each frame of data; initialize the starting address to determine the starting position of the data storage; The data encapsulation and storage module is used to encapsulate the data after initialization is completed, encapsulate the data to be stored with the frame header, frame count, priority and CRC check code into one frame, and ensure the integrity of the data through a cyclic redundancy experiment; when storing data, determine the priority of the data and write the data into the corresponding storage area in sequence. If the storage area is full, non-critical data will be overwritten first; The real-time monitoring and adjustment module is used to monitor the environmental parameters inside the vehicle refrigerator in real time. The environmental parameters are specifically temperature, humidity and vibration data, and compare the real-time environmental parameters with the corresponding safety thresholds. When the safety threshold is exceeded, the key data is redundantly stored in real time; the frequency of opening and closing the door by the user is monitored, and the data storage frequency is adjusted according to the user's behavior; The read and erase management module is used to locate the stored data unit according to the latest frame count when reading data, and verify the integrity of the data through cyclic redundancy experiments; regularly back up key data to the external storage system, monitor the number of erase and write times of the Flash, set the erase and write number threshold, and implement erasure when the erase and write number exceeds the threshold.

[0013] Compared with the prior art, the present invention has the following beneficial effects: The present invention ensures that key data can be stored and protected first by clearly distinguishing between key data and non-key data, effectively reducing the risk of data loss. At the same time, real-time monitoring of environmental parameters and dynamic adjustment of storage strategies enable the system to respond quickly under adverse environmental conditions to ensure data integrity. In addition, the integrity of the data is verified by cyclic redundancy experiments and key data is regularly backed up to external storage, further enhancing the reliability of the system and ensuring the availability and security of data in long-term operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 It is a schematic diagram of the overall method flow of the present invention; Figure 2 It is a schematic diagram of the overall system module of the present invention. DETAILED DESCRIPTION

[0015] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments.

[0016] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the present invention should be understood by people with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "Include" or "comprise" and similar words mean that the elements or objects appearing before the word include the elements or objects listed after the word and their equivalents, without excluding other elements or objects. "Connect" or "connected" and similar words are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "Up", "down", "left", "right" and the like are only used to indicate relative positional relationships. When the absolute position of the described object changes, the relative positional relationship may also change accordingly.

[0017] Example: See also Figure 1 , the present invention provides a technical solution: A method for storing and verifying priority of vehicle refrigerator data, the specific steps comprising: Step 1: Divide the data units according to the size of the storage area of ​​the internal control board of the vehicle refrigerator, and calculate the size of each data unit; divide the storage area into a key data area and a non-key data area, and divide the data into key data and non-key data according to the priority of the data; initialize the frame counter to identify the sequence number of each frame of data; initialize the starting address to determine the starting position of the data storage; In this embodiment, the data units are divided according to the size of the storage area of ​​the internal control panel of the vehicle refrigerator, and the size of each data unit is calculated, specifically: The size of each data unit is calculated according to the following formula : in, For the size of each data unit, is the size of the total storage area, is the number of data units; The process of classifying data into key data and non-key data according to the priority of the data is as follows: The temperature data, humidity data, user settings, alarm information and usage status description are marked as data with priority 1, and the key data area is used to store data with priority 1; User preferences, historical data, log information and application data are marked as priority 0 data, and the non-critical data area is used to store priority 0 data; If the demand for critical data is large, more storage space is allocated to the critical data area; conversely, if the demand for non-critical data is small, its storage space is reduced.

[0018] The advantage of step 1 is that it clearly divides the storage area and realizes the priority management of data. Dividing the storage area into critical data area and non-critical data area can effectively ensure the security and reliability of critical data. In the existing technology, there is often no detailed partition management, which may cause critical data to be overwritten or lost by non-critical data. By initializing the frame counter and the starting address, the system can better track the data storage status and improve the efficiency of data reading and writing. The use of this step can provide a good infrastructure for the overall solution, promote the smooth progress of subsequent steps such as data encapsulation, real-time monitoring and data verification, and ensure the improvement and stability of the overall system performance.

[0019] Step 2: After the initialization is completed, the data is encapsulated, and the data to be stored is encapsulated into a frame with the frame header, frame count, priority and CRC check code, and the integrity of the data is ensured through a cyclic redundancy experiment; when storing data, the priority of the data is determined, and the data is written into the corresponding storage area in sequence. If the storage area is full, non-critical data is overwritten first; In this embodiment, the process of storing data is specifically as follows: When the storage area is not full, data is written in sequence in the key data area and the non-key data area, that is, key data is written into the key data area, and non-key data is written into the non-key data area; If the storage area is full, that is, the non-critical data area is full, at this time, the data in the non-critical data area is overwritten first, that is, the critical data is written into the non-critical data area.

[0020] The advantage of step 2 is that it improves the security and reliability of data storage through data encapsulation and integrity verification. Encapsulating the data to be stored with the frame header, frame count, priority, and CRC check code into one frame ensures the structured expression of the data, making the data easier to manage and track during transmission and storage. At the same time, verifying the integrity of the data through cyclic redundancy check can effectively detect and correct potential data errors. This step can provide a stable and efficient data storage mechanism for the overall solution, ensuring that subsequent data monitoring and reading operations can be performed in a structured and secure environment, further improving the performance and reliability of the system.

[0021] Step 3: Real-time monitoring of the environmental parameters inside the vehicle refrigerator, which are specifically temperature, humidity and vibration data, and comparing the real-time environmental parameters with the corresponding safety thresholds. When the safety threshold is exceeded, real-time redundant storage of key data is performed; the frequency of users opening and closing the door is monitored, and the data storage frequency is adjusted according to user behavior; In this embodiment, the process of real-time redundant storage of key data is specifically as follows: Real-time monitoring of environmental parameters, specifically temperature, humidity and vibration data, and comparing the real-time environmental parameters with the corresponding safety thresholds: When the temperature is higher than the preset temperature threshold, redundant storage of key data is implemented; When the humidity is higher than the preset humidity threshold, redundant storage of key data is implemented; When the vibration intensity is higher than the preset vibration intensity threshold, redundant storage of key data is implemented.

[0022] The process of monitoring the frequency of users opening and closing doors and adjusting the data storage frequency according to user behavior is specifically as follows: Monitor the user's door opening and closing operations, record the timestamp and duration of each door opening and closing operation, and form a behavior log. The data should include: the time mark, timestamp and duration of the door opening and closing operation. The door opening and closing time threshold is set to 1 minute, and the door opening and closing operations less than the threshold are defined as too short an interval. Continuous door opening and closing operations with too short an interval are not recorded; extract important features from the original data, including: the peak time period for users to open and close the door, and the number of door openings and closings per day; Perform statistical analysis on the extracted important features to identify users' common door opening and closing patterns and peak times, including: average number of door opening and closing times per day, and changes in usage frequency in different time periods; According to the user's door opening and closing behavior pattern, set the storage frequency in different time periods, specifically: increase the data storage frequency during peak hours and reduce the storage frequency during off-peak hours; Real-time dynamic storage strategy: based on the results of real-time monitoring, the system automatically adjusts the storage frequency, specifically: If the number of door openings and closings in the past 30 minutes exceeds the preset threshold, the system will increase the storage frequency to once per minute; if the number of door openings and closings in the past 30 minutes is lower than the preset threshold, the system will reduce the storage frequency to once every 5 minutes; Regularly analyze new data and adjust the frequency of data storage based on the statistical analysis results of user behavior; The safety threshold is obtained according to the safety manual.

[0023] The advantage of step 3 is that it dynamically adjusts the data storage strategy by real-time monitoring of environmental parameters and user behavior to ensure the security of key data and the efficiency of the system. Monitoring environmental parameters such as temperature, humidity, and vibration can identify potential risks in a timely manner and perform redundant storage of key data when necessary to protect important information from loss. At the same time, monitoring the frequency of users opening and closing doors and adjusting the storage frequency can optimize the use of storage resources and improve the response speed of the system. This step can provide a flexible response mechanism for the overall solution, allowing the system to maintain efficient operation under various environmental conditions, ensuring the safe storage of data and timely response.

[0024] Step 4: When reading data, locate the stored data unit according to the latest frame count, and verify the integrity of the data through a cyclic redundancy experiment; regularly back up key data to an external storage system, monitor the number of erase and write times of the Flash, set the erase and write times threshold, and implement erasure when the erase and write times exceed the threshold; In this embodiment, the process of reading data is specifically as follows: when data needs to be read, first obtain the latest frame count, calculate the corresponding data unit according to the frame count, accurately locate the required data, and read the content of the data unit; When writing data, the CRC checksum is calculated and stored for each data block. After reading the data, the CRC is recalculated to verify the integrity of the data. The verification process is as follows: Read the data and the corresponding CRC check code from the storage, calculate the CRC value of the read data, and compare the calculated CRC value with the stored CRC check code: If there is a match, data integrity is verified; If there is a mismatch, mark the data as corrupt and decide whether to retry the read or retrieve the data.

[0025] The process of regularly backing up key data to an external storage system and monitoring the number of times the Flash is erased and written is specifically as follows: According to the importance and frequency of use of data, set the backup cycle: critical data is backed up once an hour, and non-critical data is backed up once a day; at the set time point, extract the critical data and package it into a backup file, and transfer the backup file to the external transmission system. After each backup is completed, perform a simple integrity check; Each time data is written or erased, the number of erases and writes to the Flash storage is recorded, and a safe erase threshold is set according to the specifications of the Flash storage device; the erase count is checked regularly, and the current number is compared with the set safe erase threshold. If the erase count exceeds the set threshold, the system will automatically perform an erase operation; before the erase operation, the critical data is migrated, and after the erase operation is completed, the erase counter is updated and the data to be written is restarted. Since the number of erases and writes to the Flash memory is limited, each storage unit can only withstand a certain number of erases and writes during its life cycle. The health status of the Flash is evaluated by monitoring the number of erases and writes to avoid data loss or storage failures caused by exceeding the limit; The erasure times threshold is obtained according to the instruction manual.

[0026] The advantage of step 4 is that it ensures the accuracy and reliability of data reading through precise data location and integrity verification. At the same time, regularly backing up key data to an external storage system enhances data security and extends the service life of the storage medium by monitoring the number of Flash erases and writes. This step can provide a comprehensive data management mechanism for the overall solution, ensuring not only efficient data reading, but also data persistence and the health of the storage medium, thereby improving the stability and reliability of the overall system.

[0027] See also Figure 2 The present invention also provides a vehicle refrigerator data priority storage and verification system, the vehicle refrigerator data priority storage and verification system is used to execute the above-mentioned vehicle refrigerator data priority storage and verification method, including: The storage area definition module is used to divide the data unit according to the size of the storage area of ​​the internal control board of the vehicle refrigerator, and calculate the size of each data unit; divide the storage area into a key data area and a non-key data area, and divide the data into key data and non-key data according to the priority of the data; initialize the frame counter to identify the sequence number of each frame of data; initialize the starting address to determine the starting position of the data storage; The data encapsulation and storage module is used to encapsulate the data after initialization is completed, encapsulate the data to be stored with the frame header, frame count, priority and CRC check code into one frame, and ensure the integrity of the data through a cyclic redundancy experiment; when storing data, determine the priority of the data and write the data into the corresponding storage area in sequence. If the storage area is full, non-critical data will be overwritten first; The real-time monitoring and adjustment module is used to monitor the environmental parameters inside the vehicle refrigerator in real time. The environmental parameters are specifically temperature, humidity and vibration data, and compare the real-time environmental parameters with the corresponding safety thresholds. When the safety threshold is exceeded, the key data is redundantly stored in real time; the frequency of opening and closing the door by the user is monitored, and the data storage frequency is adjusted according to the user's behavior; The read and erase management module is used to locate the stored data unit according to the latest frame count when reading data, and verify the integrity of the data through cyclic redundancy experiments; regularly back up key data to the external storage system, monitor the number of erase and write times of the Flash, set the erase and write number threshold, and implement erasure when the erase and write number exceeds the threshold.

[0028] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.

[0029] The above embodiments may be implemented in whole or in part by software, hardware, firmware or any other combination thereof. When implemented by software, the above embodiments may be implemented in whole or in part in the form of a computer program product. Those skilled in the art may appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein may be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software methods depends on the specific application and design constraints of the technical solution.

[0030] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, and may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0031] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.

Claims

1. A method for storing and verifying data priority of a vehicle refrigerator, characterized in that: The specific steps include: Step 1: Divide the data units according to the size of the storage area of ​​the internal control board of the vehicle refrigerator, and calculate the size of each data unit; divide the storage area into a key data area and a non-key data area, and divide the data into key data and non-key data according to the priority of the data; initialize the frame counter to identify the sequence number of each frame of data; initialize the starting address to determine the starting position of the data storage; Step 2: After the initialization is completed, the data is encapsulated, and the data to be stored is encapsulated into a frame with the frame header, frame count, priority and CRC check code, and the integrity of the data is ensured through a cyclic redundancy experiment; when storing data, the priority of the data is determined, and the data is written into the corresponding storage area in sequence. If the storage area is full, non-critical data is overwritten first; Step 3: Real-time monitoring of the environmental parameters inside the vehicle refrigerator, which are specifically temperature, humidity and vibration data, and comparing the real-time environmental parameters with the corresponding safety thresholds. When the safety threshold is exceeded, real-time redundant storage of key data is performed; the frequency of users opening and closing the door is monitored, and the data storage frequency is adjusted according to user behavior; Step 4: When reading data, locate the stored data unit according to the latest frame count and verify the integrity of the data through a cyclic redundancy experiment; regularly back up key data to an external storage system, monitor the number of erase and write times of the Flash, set an erase and write threshold, and erase when the number of erase and write times exceeds the threshold.

2. A method for storing and verifying vehicle refrigerator data priority according to claim 1, characterized in that: The data units are divided according to the size of the storage area of ​​the internal control panel of the vehicle refrigerator, and the size of each data unit is calculated, specifically: The size of each data unit is calculated according to the following formula : in, For the size of each data unit, is the size of the total storage area, is the number of data units; The process of classifying data into key data and non-key data according to the priority of the data is as follows: The temperature data, humidity data, user settings, alarm information and usage status description are marked as data with priority 1, and the key data area is used to store data with priority 1; User preferences, historical data, log information and application data are marked as priority 0 data, and the non-critical data area is used to store priority 0 data; If the demand for critical data is large, more storage space is allocated to the critical data area; conversely, if the demand for non-critical data is small, its storage space is reduced.

3. A method for storing and verifying vehicle refrigerator data priority according to claim 2, characterized in that: The process of storing data is specifically as follows: When the storage area is not full, data is written in sequence in the key data area and the non-key data area, that is, key data is written into the key data area, and non-key data is written into the non-key data area; If the storage area is full, that is, the non-critical data area is full, at this time, the data in the non-critical data area is overwritten first, that is, the critical data is written into the non-critical data area.

4. The method for storing and verifying data priority of a vehicle refrigerator according to claim 1, characterized in that: The process of real-time redundant storage of key data is specifically as follows: Real-time monitoring of environmental parameters, specifically temperature, humidity and vibration data, and comparing the real-time environmental parameters with the corresponding safety thresholds: When the temperature is higher than the preset temperature threshold, redundant storage of key data is implemented; When the humidity is higher than the preset humidity threshold, redundant storage of key data is implemented; When the vibration intensity is higher than the preset vibration intensity threshold, redundant storage of key data is implemented.

5. The method for storing and verifying vehicle refrigerator data priority according to claim 1, characterized in that: The process of monitoring the frequency of users opening and closing doors and adjusting the data storage frequency according to user behavior is specifically as follows: Monitor the user's door opening and closing operations, record the timestamp and duration of each door opening and closing operation, and form a behavior log. The data should include: the time mark, timestamp and operation duration of the door opening and closing. Among them, set the door opening and closing time interval threshold, define the door opening and closing operations with a time interval less than the threshold as too short, and do not record continuous door opening and closing operations with a time interval too short; Extract important features from the raw data, including: the peak time period for users to open and close the door, and the number of times the door is opened and closed each day; Perform statistical analysis on the extracted important features to identify users' common door opening and closing patterns and peak times, including: average number of door opening and closing times per day, and changes in usage frequency in different time periods; According to the user's door opening and closing behavior pattern, set the storage frequency in different time periods, specifically: increase the data storage frequency during peak hours and reduce the storage frequency during off-peak hours; Real-time dynamic storage strategy: based on the results of real-time monitoring, the system automatically adjusts the storage frequency, specifically: If the number of door openings and closings in the past 30 minutes exceeds the preset threshold, the system will increase the storage frequency to once per minute; if the number of door openings and closings in the past 30 minutes is lower than the preset threshold, the system will reduce the storage frequency to once every 5 minutes; Analyze new data regularly and adjust the data storage frequency based on the results of statistical analysis of user behavior.

6. A method for storing and verifying vehicle refrigerator data priority according to claim 1, characterized in that: The process of reading data is specifically as follows: when data needs to be read, first obtain the latest frame count, calculate the corresponding data unit according to the frame count, accurately locate the required data, and read the content of the data unit; When writing data, the CRC checksum is calculated and stored for each data block. After reading the data, the CRC is recalculated to verify the integrity of the data. The verification process is as follows: Read the data and the corresponding CRC check code from the storage, calculate the CRC value of the read data, and compare the calculated CRC value with the stored CRC check code: If there is a match, data integrity is verified; If there is a mismatch, mark the data as corrupt and decide whether to retry the read or re-acquire the data.

7. A method for storing and verifying data priority of a vehicle refrigerator according to claim 1, characterized in that: The process of regularly backing up key data to an external storage system and monitoring the number of times the Flash is erased and written is specifically as follows: According to the importance and frequency of use of data, set the backup cycle: critical data is backed up once an hour, and non-critical data is backed up once a day; at the set time point, extract the critical data and package it into a backup file, and transfer the backup file to the external transmission system. After each backup is completed, perform a simple integrity check; Since the number of erasures and writes to the Flash memory is limited, each storage unit can only withstand a certain number of erasures and writes during its life cycle. The health status of the Flash is evaluated by monitoring the number of erasures and writes: each time data is written or erased, the number of erasures and writes to the Flash storage is recorded, and a safe erasure and write threshold is set according to the specifications of the Flash storage device; the number of erasures and writes is checked regularly, and the current number is compared with the set safe erasure and write threshold. If the number of erasures and writes exceeds the set threshold, the system will automatically perform an erase operation; before the erase operation, the key data is migrated, and after the erase operation is completed, the erase counter is updated and the data to be written is restarted.

8. A vehicle refrigerator data priority storage and verification system, used to execute a vehicle refrigerator data priority storage and verification method according to any one of claims 1 to 7, characterized in that: include: A storage area definition module, used to divide data units according to the size of the storage area of ​​the internal control panel of the vehicle refrigerator, and calculate the size of each data unit; Divide the storage area into a critical data area and a non-critical data area, and divide the data into critical data and non-critical data according to the priority of the data; initialize the frame counter to identify the sequence number of each frame of data; initialize the starting address to determine the starting position of data storage; The data encapsulation and storage module is used to encapsulate the data after initialization is completed, encapsulate the data to be stored with the frame header, frame count, priority and CRC check code into one frame, and ensure the integrity of the data through a cyclic redundancy experiment; when storing data, determine the priority of the data and write the data into the corresponding storage area in sequence. If the storage area is full, non-critical data will be overwritten first; The real-time monitoring and adjustment module is used to monitor the environmental parameters inside the vehicle refrigerator in real time. The environmental parameters are specifically temperature, humidity and vibration data, and compare the real-time environmental parameters with the corresponding safety thresholds. When the safety threshold is exceeded, the key data is redundantly stored in real time; the frequency of opening and closing the door by the user is monitored, and the data storage frequency is adjusted according to the user's behavior; The read and erase management module is used to locate the stored data unit according to the latest frame count when reading data, and verify the integrity of the data through cyclic redundancy experiments; regularly back up key data to the external storage system, monitor the number of erase and write times of the Flash, set the erase and write number threshold, and implement erasure when the erase and write number exceeds the threshold.

Citation Information

Patent Citations

  • Recording method and recording system of refrigerator event and refrigerator

    CN106850303A

  • Key data safety redundancy storage algorithm

    CN108228380A

  • Distributed storage device based on block chain

    CN115547369A

  • Data read-write and erasure method and device, intelligent equipment and storage medium

    CN117891403A

  • Data storage method and device, electronic equipment and storage medium

    CN118193647A

Cited By

  • Perovskite whole line equipment data management method and system

    CN120783885A