Data reading method, data reading device and data writing method

By using the timing module and verification flag bits in the EEPROM storage proxy module, the error storage and missed storage problems caused by failure to read EEPROM data is solved, and the accuracy and stability of data reading are improved, and data error coverage is prevented.

CN118963643APending Publication Date: 2024-11-15CHONGQING SELIS PHOENIX INTELLIGENT INNOVATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410872339.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

When traditional technology uses EEPROM for data storage, there are problems of missed storage and missed storage, which leads to failure to read data. The controller uses the initial value 0 to write to the EEPROM, resulting in the cumulative data being overwritten, affecting the accuracy of the data.

Method used

By introducing the timing module and the check mark bit in the storage proxy module, in response to the data reading operation, obtain the first time period and the check mark bit, and obtain the stored data in the preset reading order until the sub-storage area in the target storage area is in response to the data reading operation. Stops the acquisition of data and sends the time period and verification flag bits to the on-board application to generate and display the data to be displayed to prevent error overwriting when data reading fails.

Benefits of technology

Improve the accuracy of data reading, prevent data accumulation errors, and ensure that on-board applications use correct data to calculate accurate data to be displayed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118963643A_ABST
    Figure CN118963643A_ABST
Patent Text Reader

Abstract

The invention relates to a data reading method and a data reading device. The method comprises the steps of obtaining a first time period through a timing module in response to a data reading operation for a target storage area; under the condition that the first time period is smaller than or equal to a preset time threshold value and each sub-storage area in the target storage area does not stop acquiring the storage data, acquiring the storage data of each sub-storage area according to a preset reading sequence until each sub-storage area in the target storage area stops acquiring the storage data; and obtaining a verification flag bit, and sending the first time period, the verification flag bit and the storage data to the vehicle-mounted application. By the adoption of the method, data writing can be prevented from being executed by applying wrong data when the stored data in the target storage area fails to be read, accumulated data is prevented from being covered by mistakes, the vehicle-mounted application can calculate accurate to-be-displayed data through correct data, and the accuracy of the data in the data reading process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a data reading method, device, vehicle-mounted equipment, computer-readable storage medium, and computer program product. Background Art

[0002] EEPROM (Electrically Erasable Programmable read only memory) refers to electrically erasable programmable read-only memory. As a storage chip in which data is not lost after power failure, electrically erasable programmable read-only memory is often used to store configuration data and collection data required by specific devices.

[0003] When using EEPROM for data storage, traditional technology needs to control each functional unit to store and write separately, which may cause problems of erroneous storage and missed storage. For example, if the EEPROM reading fails, the controller will apply the initial value 0 as the result of the reading storage value operation and write it to the EEPROM, resulting in the accumulated data being overwritten and data errors occurring, which will affect the accurate storage of data in the EEPROM and is not conducive to improving the accuracy of data during the data reading process. Summary of the invention

[0004] Based on this, it is necessary to provide a data reading method, device, vehicle-mounted equipment, computer-readable storage medium and computer program product that can improve the accuracy of data during the data reading process in response to the above technical problems.

[0005] In a first aspect, the present application provides a data reading method, which is applied to a storage agent module, comprising:

[0006] In response to a data read operation on a target storage area, acquiring a first time period through a timing module;

[0007] When the first time period is less than or equal to a preset time threshold and each sub-storage area in the target storage area does not stop acquiring storage data, acquiring storage data of each sub-storage area in accordance with a preset reading order until each sub-storage area in the target storage area stops acquiring storage data;

[0008] Obtain a check flag, and send the first time period, the check flag and the stored data to an in-vehicle application; the in-vehicle application is used to obtain the data to be displayed based on the first time period, the check flag and the stored data, and display the data to be displayed.

[0009] In one embodiment, the method further comprises:

[0010] In the case where the reading action of the first sub-storage area in the target storage area has been completed, the check flag is set to a state value indicating that the storage action is not completed; the first sub-storage area is a trigger storage area;

[0011] A hardware self-check flag for the target storage area is obtained, and when the hardware self-check flag indicates that storage hardware corresponding to the target storage area is abnormal, the check flag is set to a state value indicating that the storage hardware is damaged.

[0012] In one embodiment, the method further comprises:

[0013] When the first time period is greater than the preset time threshold, controlling each sub-storage area in the target storage area to stop acquiring storage data;

[0014] When the first time period is less than or equal to the preset time threshold and each sub-storage area in the target storage area has never stopped acquiring storage data, the check flag is set to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

[0015] In one embodiment, the method further comprises:

[0016] When the check flag is not set to one of the status values ​​representing that the storage action is not completed, the status value representing that the storage hardware is damaged, and the status value representing that there is an abnormality in obtaining storage data from the sub-storage area in the target storage area, the check flag is set to a status value representing that the data reading and / or data storage check has passed.

[0017] In a second aspect, the present application further provides a data reading method, characterized in that it is applied to vehicle-mounted applications, and the method comprises:

[0018] Obtaining a first time period, a check mark, and storage data sent by a storage agent module;

[0019] When the first time period is less than or equal to a preset time threshold and the check flag is set to a status value indicating that data reading and / or data storage verification has passed or a status value indicating that there is an abnormality in the acquisition of storage data by a sub-storage area in the target storage area, the data to be displayed is determined based on the stored data, and the data to be displayed is displayed.

[0020] In one embodiment, the method further comprises:

[0021] When the first time period is less than or equal to a preset time threshold and the check flag is set to a status value indicating damage to the storage hardware or a status value indicating an abnormality in obtaining storage data from a sub-storage area in the target storage area, the data to be displayed is set to a preset invalid value and displayed.

[0022] In a third aspect, the present application further provides a data writing method, characterized in that it is applied to a storage agent module, and the method comprises:

[0023] In response to a data writing operation to a target storage area, acquiring a second time period by a timing module;

[0024] Obtaining a check mark, a data integral value for the target storage area, a data cache value in a cache module, and data to be written sent by an in-vehicle application;

[0025] When the second time period is greater than a preset time threshold, and the check flag is a status value indicating that data reading and / or data storage verification has passed, or a status value indicating that there is an abnormality in obtaining storage data in a sub-storage area in the target storage area, and the data integral value is greater than the data cache value, the data to be written is written to the target storage area.

[0026] In one embodiment, the method further comprises:

[0027] Acquire first storage data of a first sub-storage area in the target storage area; the first sub-storage area is a trigger storage area;

[0028] Acquire the second storage data of the second sub-storage area in the target storage area; the second sub-storage area is a lower power storage area;

[0029] In a case where the first stored data is greater than the second stored data, taking the first stored data as the data integral value;

[0030] When the second stored data is greater than the first stored data, the second stored data is used as the data integration value.

[0031] In one embodiment, the method further comprises:

[0032] In the case where the reading action of the first sub-storage area in the target storage area has been completed, the check flag is set to a state value indicating that the storage action is not completed; the first sub-storage area is a trigger storage area;

[0033] A hardware self-check flag for the target storage area is obtained, and when the hardware self-check flag indicates that storage hardware corresponding to the target storage area is abnormal, the check flag is set to a state value indicating that the storage hardware is damaged.

[0034] In one embodiment, the method further comprises:

[0035] In response to a data read operation on the target storage area, acquiring a first time period through a timing module;

[0036] When the first time period is greater than the preset time threshold, controlling each sub-storage area in the target storage area to stop acquiring storage data;

[0037] When the first time period is less than or equal to the preset time threshold and each sub-storage area in the target storage area has never stopped acquiring storage data, the check flag is set to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

[0038] In one embodiment, the method further comprises:

[0039] When the check flag is not set to one of the status values ​​representing that the storage action is not completed, the status value representing that the storage hardware is damaged, and the status value representing that there is an abnormality in obtaining storage data from the sub-storage area in the target storage area, the check flag is set to a status value representing that the data reading and / or data storage check has passed.

[0040] In a fourth aspect, the present application further provides a data reading device, applied to a storage agent module, comprising:

[0041] A first time acquisition module, configured to acquire a first time period through a timing module in response to a data reading operation on a target storage area;

[0042] a storage data reading module, configured to obtain storage data of each sub-storage area in a preset reading order when the first time period is less than or equal to a preset time threshold and each sub-storage area in the target storage area does not stop acquiring storage data, until each sub-storage area in the target storage area stops acquiring storage data;

[0043] A storage data sending module is used to obtain a check flag and send the first time period, the check flag and the stored data to an in-vehicle application; the in-vehicle application is used to obtain the data to be displayed based on the first time period, the check flag and the stored data, and display the data to be displayed.

[0044] In a fifth aspect, the present application further provides a vehicle-mounted device, wherein the vehicle-mounted device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.

[0045] In a sixth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.

[0046] In a seventh aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0047] The above-mentioned data reading method, device, vehicle-mounted equipment, computer-readable storage medium and computer program product obtain a first time period through a timing module in response to a data reading operation on a target storage area, and when the first time period is less than or equal to a preset time threshold and each sub-storage area in the target storage area has not stopped obtaining storage data, obtain the storage data of each sub-storage area in accordance with a preset reading order until each sub-storage area in the target storage area stops obtaining storage data, thereby reasonably and flexibly reading accurate storage data based on the storage data acquisition situation of each sub-storage area in the target storage area, thereby improving the efficiency of data reading; obtaining a check mark, and sending the first time period, the check mark and the storage data to the vehicle-mounted application, thereby generating and displaying to-be-displayed data to the user through the vehicle-mounted application based on the first time period, the check mark and the storage data, which can prevent the application of erroneous data from executing data writing when the storage data reading in the target storage area fails, and avoid the accumulated data from being overwritten by errors, so that the vehicle-mounted application can use the correct data to calculate accurate data to be displayed, thereby improving the accuracy of data during the data reading process. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0049] Figure 1 A schematic diagram of a flow chart of a data reading method in an embodiment;

[0050] Figure 2 is a flow chart of a data reading method in another embodiment;

[0051] Figure 3 A schematic diagram of a flow chart of a data writing method in an embodiment;

[0052] Figure 4 A schematic diagram of a storage read-write verification in one embodiment;

[0053] Figure 5 is a structural block diagram of a data reading device in an embodiment;

[0054] Figure 6 The figure is a diagram of the internal structure of a vehicle-mounted device in one embodiment. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] In an exemplary embodiment, Figure 1 As shown, a data reading method is provided, which is described by taking the method applied to a storage proxy module of an on-board device as an example, and includes the following steps S102 to S106. Among them:

[0057] Step S102: In response to a data reading operation on a target storage area, a first time period is acquired by a timing module.

[0058] The target storage area is an area for storing data. In practical applications, the target storage area may include a storage area corresponding to an electrically erasable programmable read-only memory (EEPROM).

[0059] The data reading operation may refer to an instruction for acquiring storage data.

[0060] The timing module may refer to a module in the vehicle-mounted device for realizing the timing function. In practical applications, the timing module may start continuous timing from a specific moment (such as the moment when a data reading instruction is detected) and output the timing time.

[0061] The first time period may refer to time data output by the timing module. In practical applications, the first time period may represent the length of time between a specific moment (such as the moment when the data reading instruction is detected) and the current moment.

[0062] As an example, conventional technology has a problem of failure in reading EEPROM. Failure in reading EEPROM will cause the controller application of the on-board device to use an initial value of 0, and write 0 as the result of the storage value reading operation into the EEPROM, resulting in the accumulated data being overwritten. To solve this problem, the on-board device may set a storage agent module (a controller) and set a storage agent module reading policy for the storage agent module. The storage agent module reading policy may be used to control the storage agent module to read the data stored in the target storage area. Specifically, the storage agent module may respond to the data reading operation for the target storage area, obtain a first time period T1 through the timing module of the on-board device, and the accumulation condition of T1 is that the controller of the on-board device is running. The storage agent module may determine whether to read the stored data in the target storage area based on the storage agent module reading policy and the relationship between T1 and a preset time threshold.

[0063] Step S104, when the first time period is less than or equal to the preset time threshold and each sub-storage area in the target storage area does not stop acquiring storage data, the storage data of each sub-storage area is acquired in a preset reading order until each sub-storage area in the target storage area stops acquiring storage data.

[0064] Among them, the preset time threshold may refer to information used to set the value of a storage flag or control whether the storage agent module reads the stored data. In actual applications, the preset time threshold may include 3 seconds. In specific implementations, the preset time threshold may be flexibly adjusted based on actual needs.

[0065] As an example, the storage agent module may obtain the storage flag of each sub-storage area in the target storage area, and determine whether to read the storage data of each sub-storage area in the target storage area in combination with the first time period, wherein the storage flag may refer to information used to characterize whether to read the storage data. In actual applications, when the storage flag is a preset storage flag (such as 1), the storage agent module needs to stop receiving and saving the storage data (such as storage value) of each sub-storage area in the target storage area. Specifically, when the first time period is less than or equal to the preset time threshold and the storage flag is not the preset storage flag, the storage agent module may obtain the storage data of each sub-storage area in accordance with a preset reading order until the storage flag is the preset storage flag.

[0066] Step S106, obtain the check flag, and send the first time period, the check flag and the stored data to the vehicle application; the vehicle application is used to obtain the data to be displayed based on the first time period, the check flag and the stored data, and display the data to be displayed.

[0067] Among them, the check flag may refer to information used to generate data to be displayed. In actual applications, when the check flag takes different values, the way in which the vehicle-mounted application generates or calculates the data to be displayed may be different. The check flag may be represented as NVMerrFlag.

[0068] As an example, the storage agent module obtains the check flag at the current moment, and sends the check flag at the current moment, the first time period, and the storage data of each sub-storage area in the target storage area to the on-board application. The on-board application can generate the data to be displayed according to the value of the check flag and the corresponding data calculation method.

[0069] In the above data reading method, in response to the data reading operation for the target storage area, a first time period is obtained through a timing module, and a storage flag bit of each sub-storage area in the target storage area is obtained. When the first time period is less than or equal to a preset time threshold and each sub-storage area in the target storage area does not stop obtaining storage data, the storage data of each sub-storage area is obtained in a preset reading order until each sub-storage area in the target storage area stops obtaining storage data, thereby reasonably and flexibly reading accurate storage data based on the acquisition of storage data of each sub-storage area in the target storage area, thereby improving the efficiency of data reading; obtaining a check flag bit, and sending the first time period, the check flag bit and the storage data to the vehicle-mounted application, thereby generating and displaying to-be-displayed data to the user through the vehicle-mounted application based on the first time period, the check flag bit and the storage data, which can prevent the application of erroneous data from executing data writing when the storage data in the target storage area fails to be read, and avoid the accumulated data from being overwritten by errors, so that the vehicle-mounted application can use the correct data to calculate accurate data to be displayed, thereby improving the accuracy of data during the data reading process.

[0070] In an exemplary embodiment, the above method also includes: when the reading action of the first sub-storage area in the target storage area has been completed, setting the check flag to a status value indicating that the storage action is not completed; the first sub-storage area is a trigger storage area; obtaining a hardware self-test flag for the target storage area, and when the hardware self-test flag indicates that the storage hardware corresponding to the target storage area is abnormal, setting the check flag to a status value indicating that the storage hardware is damaged.

[0071] In actual applications, the area flag bit corresponding to the sub-storage area can be set. The area flag bit can refer to information indicating whether the data reading action / data storage action of the first sub-storage area in the target storage area is completed. In actual applications, the area flag bit (such as x1) is a read action flag bit (such as 0) which can indicate that the read action has been completed, and the area flag bit (such as x1) is a storage action flag bit (such as 1) which can indicate that the storage action has been completed.

[0072] In practical applications, the status value indicating that the storage action is not completed may include a storage exception flag, and the area flag is a read action flag. Then the check flag needs to be set to a storage exception flag (eg, 1).

[0073] Among them, the hardware self-check flag can refer to information used to characterize whether there is an abnormality in the storage hardware corresponding to the target storage area. In actual applications, the hardware self-check flag is a self-check abnormality flag (that is, the hardware self-check flag characterizes that there is an abnormality in the storage hardware corresponding to the target storage area), and the check flag needs to be set to a hardware damage flag (such as 2).

[0074] As an example, different values ​​of the check flag affect the way in which the vehicle-mounted application generates data to be displayed. In order to accurately obtain the check flag, the storage agent module can obtain the area flag of the first sub-storage area in the target storage area and the hardware self-test flag for the target storage area, and use the area flag and the hardware self-test flag to determine the check flag. Specifically, the first sub-storage area (such as the trigger storage area) in the target storage area stores the area flag x1. After the controller of the vehicle-mounted device completes the storage action, x1 is set to 1, and after the reading action is completed, x1 is set to 0. When the storage agent module starts to read data from the first sub-storage area in the target storage area, if the area flag corresponding to the first sub-storage area is the read action flag (that is, x1=0, the area flag corresponding to the first sub-storage area indicates that the reading action has been completed), the storage agent module determines that the storage has not been completed after the controller of the vehicle-mounted device was woken up last time, and the storage agent module sets the check flag NVM ErrFlag to the storage abnormality flag (such as NVM ErrFlag=1). When the storage agent module starts to read data from the first sub-storage area in the target storage area, the storage agent module can obtain the hardware self-test flag for the target storage area. When the hardware self-test flag is a self-test exception flag (that is, the hardware self-test flag indicates that the storage hardware corresponding to the target storage area is abnormal), the storage agent module determines that the storage hardware self-test corresponding to the target storage area is abnormal, and the storage hardware corresponding to the target storage area is damaged. The storage agent module sets the check flag NVMearrFlag to the hardware damage flag (such as NVMearrFlag=2).

[0075] In this embodiment, when the reading action of the first sub-storage area in the target storage area has been completed, the check flag is set to a state value indicating that the storage action is not completed; the first sub-storage area is a trigger storage area; a hardware self-test flag for the target storage area is obtained, and when the hardware self-test flag indicates that the storage hardware corresponding to the target storage area is abnormal, the check flag is set to a state value indicating that the storage hardware is damaged. Based on the completion status of the reading action of the first sub-storage area in the target storage area and the hardware self-test flag for the target storage area, the check flag can be accurately set to the value of the corresponding situation, thereby improving the accuracy of the check flag, facilitating the subsequent generation of accurate data to be displayed based on the accurate check flag by the in-vehicle application, thereby improving the accuracy of the data during the data reading process.

[0076] In some embodiments, the above method also includes: when the first time period is greater than a preset time threshold, controlling each sub-storage area in the target storage area to stop acquiring storage data; when the first time period is less than or equal to the preset time threshold, and each sub-storage area in the target storage area has never stopped acquiring storage data, setting the check flag to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

[0077] In practical applications, the status value indicating that there is an abnormality in acquiring storage data in the sub-storage area in the target storage area may include reading an abnormality flag.

[0078] As an example, the storage agent module may set a storage flag for each sub-storage area (such as a trigger storage area and a power-off storage area) in the target storage area. When the first time period (first integration time) T1 is greater than a preset time threshold, the storage agent module may set the storage flag to a preset storage flag. At this time, the storage agent module may stop receiving storage data from each sub-storage area in the target storage area. When the first time period is less than or equal to the preset time threshold and the storage flag has never been set to the preset storage flag, the storage agent module may determine that there is an abnormality when reading the storage flag. The storage agent module may set the check flag NVM ErrFlag to a status value indicating that there is an abnormality in obtaining storage data from the sub-storage area in the target storage area, that is, a read abnormality flag (such as NVM ErrFlag=3).

[0079] In this embodiment, when the first time period is greater than the preset time threshold, each sub-storage area in the target storage area is controlled to stop acquiring storage data; when the first time period is less than or equal to the preset time threshold and each sub-storage area in the target storage area has never stopped acquiring storage data, the check flag is set to a state value representing that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area. Based on the situation of the sub-storage area acquiring storage data within the preset time threshold, it is possible to accurately judge whether there is an abnormality in the process of the sub-storage area acquiring storage data, accurately set the check flag to the value of the corresponding situation, improve the accuracy of the check flag, and facilitate the subsequent generation of accurate data to be displayed by the in-vehicle application based on the accurate check flag, thereby improving the accuracy of the data during the data reading process.

[0080] In some embodiments, the above method also includes: when the check flag is not set to one of the status values ​​representing that the storage action is not completed, the status value representing that the storage hardware is damaged, and the status value representing that there is an abnormality in obtaining storage data from the sub-storage area in the target storage area, the check flag is set to a status value representing that the data reading and / or data storage verification has passed.

[0081] In practical applications, the status value indicating that the data reading and / or data storage verification has passed may include a preset verification flag.

[0082] As an example, when the check flag is not set to one of the status values ​​indicating that the storage action is not completed, the status value indicating that the storage hardware is damaged, and the status value indicating that there is an abnormality in obtaining the storage data in the sub-storage area of ​​the target storage area (i.e., the check flag is not set to the storage abnormality flag, the hardware damage flag, and the read abnormality flag), the storage agent module can set the check flag to a preset check flag (such as NVMErrFlag=0). When the check flag is set to the preset check flag, the storage agent module can determine that the data reading and / or data storage check is passed. Taking the storage abnormality flag as 1, the hardware damage flag as 2, the read abnormality flag as 3, and the preset check flag as 0 as an example, when the storage agent module starts to read data from the first sub-storage area in the target storage area, when the check flag NVMErrFlag is not set to 1 / 2 / 3, NVMErrFlag=0, wherein NVMErrFlag is only maintained for a single power-on cycle, and the priority is 2>1.

[0083] In this embodiment, by setting the check flag to a status value indicating that data reading and / or data storage verification has passed when the check flag is not set to one of the status values ​​indicating that the storage action is not completed, the status value indicating that the storage hardware is damaged, and the status value indicating that there is an abnormality in obtaining storage data from a sub-storage area in the target storage area, the check flag can be accurately set to the value taken in the corresponding situation when the check flag is not set to one of the status values ​​indicating that the storage action is not completed, the status value indicating that the storage hardware is damaged, and the status value indicating that there is an abnormality in obtaining storage data from a sub-storage area in the target storage area, thereby improving the accuracy of the check flag and facilitating the subsequent generation of accurate data to be displayed by the in-vehicle application based on the accurate check flag, thereby improving the accuracy of data during the data reading process.

[0084] In an exemplary embodiment, Figure 2 As shown, a data reading method is provided, and the method is applied to a vehicle-mounted application as an example for explanation, including the following steps S202 to S204. Among them:

[0085] Step S202: obtaining a first time period, a check mark, and storage data sent by a storage agent module.

[0086] The storage agent module may refer to a medium used by the automobile to realize data reading and data writing. In practical applications, the storage agent module may include a controller.

[0087] As an example, the in-vehicle application can obtain the first time period, check flag and stored data sent by the storage agent module, and combine the size relationship between the first time period and the preset time threshold and the value information of the check flag to select the corresponding data generation method to use the stored data to generate corresponding data to be displayed.

[0088] Step S204, when the first time period is less than or equal to the preset time threshold and the check flag is set to a status value indicating that the data reading and / or data storage check has passed or a status value indicating that there is an abnormality in the acquisition of storage data by a sub-storage area in the target storage area, determine the data to be displayed based on the stored data and display the data to be displayed.

[0089] Among them, the data to be displayed may refer to data describing information such as the driving status of the car. In actual applications, the data to be displayed may include mileage data display values, vehicle mode display values, endurance and trip information display values, driving energy consumption display values, and vehicle usage habits display values.

[0090] As an example, when the first time period T1 is less than or equal to the preset time threshold, and the check flag NVMearrFlag is set to a status value indicating that the data reading and / or data storage check has passed, or a status value indicating that there is an abnormality in the acquisition of storage data in the sub-storage area of ​​the target storage area (that is, the check flag NVMearrFlag is set to the hardware damage flag 2 or the reading abnormality flag 3), the on-board application determines that the storage is lost. At this time, the (total) mileage data display value in the data to be displayed displays an invalid value, and the on-board application needs to wait for the storage to be read. The total mileage integral value can be equal to the total mileage starting value, and the total mileage starting value can be the data with the largest value between the storage value of the total mileage data in the trigger storage area and the storage value of the total mileage data in the power-off storage area, that is, the total mileage integral value = total The starting value of mileage = max (the value stored when the total mileage is triggered, and the value stored when the total mileage is powered on); when the first time period T1 is less than or equal to the preset time threshold, and the check flag NVMearrFlag is set to the preset check flag 0 or the storage abnormality flag 1, the on-board application determines that the storage is normal, and the (total) mileage data display value in the data to be displayed = the (total) mileage integral value, and the starting value of (total) mileage = max (the value stored when the total mileage is triggered, and the value stored when the total mileage is powered on); in the first operating cycle of NVMearrFlag=0 / 1, the total mileage integral value = the starting value of the total mileage, and then accumulates with the vehicle speed integral; when the first time period T1 is greater than the preset time threshold, the (total) mileage data display value in the data to be displayed = the total mileage integral value; the total mileage integral value accumulates with the vehicle speed integral.

[0091] In an exemplary embodiment, the vehicle mode display value in the data to be displayed may not be affected by the time period and the check flag NVMErrFlag, and the vehicle mode display value may be a storage value of the vehicle mode data in the trigger storage area.

[0092] In some embodiments, when the first time period T1 is less than or equal to the preset time threshold, and the check flag NVMearrFlag is set to the hardware damage flag 2 or the read abnormal flag 3, the vehicle-mounted application determines that the storage is lost. At this time, the display value of the battery life and trip information in the data to be displayed is an invalid value, and the vehicle-mounted application needs to wait for the storage to be read. When the check flag NVMearrFlag is set to the preset check flag 0 or the storage abnormal flag 1, the vehicle-mounted application determines that the storage is normal, and the display value of the battery life and trip information in the data to be displayed can be calculated according to the storage data corresponding to the battery life and trip information stored in the target storage area. When the first time period T1 is greater than the preset time threshold, and the check flag NVMearrFlag is set to the hardware damage flag 2 or the read abnormal flag 3, the display value of the battery life and trip information in the data to be displayed can be calculated according to the factory default value of the car, and the corresponding storage value is not used.

[0093] In this embodiment, by obtaining the first time period, the check flag and the stored data sent by the storage agent module, when the first time period is less than or equal to the preset time threshold and the check flag is set to the preset check flag or the storage exception flag, the data to be displayed is determined according to the stored data, and the data to be displayed is displayed; the preset check flag is used to indicate that the data reading and / or data storage verification has passed; the storage exception flag is used to indicate that the storage action is not completed, and based on the size relationship between the first time period and the preset time threshold and the different values ​​of the check flag, the corresponding data generation method can be accurately selected to calculate the data to be displayed, thereby improving the accuracy of the data to be displayed.

[0094] In some embodiments, the above method also includes: when the first time period is less than or equal to a preset time threshold and the check flag is set to a status value characterizing damage to the storage hardware or a status value characterizing that there is an abnormality in obtaining storage data in a sub-storage area in the target storage area, the data to be displayed is set to a preset invalid value and the data to be displayed is displayed.

[0095] As an example, when the first time period is less than or equal to a preset time threshold, and the check flag is set to a status value characterizing damage to the storage hardware or a status value characterizing an abnormality in obtaining storage data in a sub-storage area in the target storage area (i.e., the check flag is set to a hardware damage flag or a reading abnormality flag), the storage agent module may set the data to be displayed to a preset invalid value. At this time, the storage agent module may also generate a prompt message and display the prompt message through the display interface of the car. The car may prompt the user to promptly check the relevant equipment or devices by displaying the invalid value and / or prompt message to the user.

[0096] In this embodiment, when the first time period is less than or equal to the preset time threshold and the check flag is set to a status value characterizing damage to the storage hardware or a status value characterizing an abnormality in obtaining storage data from a sub-storage area in the target storage area, the data to be displayed is set to a preset invalid value and the data to be displayed is displayed. This allows the user to be informed of storage read failure problems in a timely manner, thereby improving the user experience.

[0097] In an exemplary embodiment, Figure 3 As shown, a data writing method is provided, and the method is applied to a storage agent module as an example for description, including the following steps S302 to S306. Among them:

[0098] Step S302: In response to the data writing operation to the target storage area, a second time period is acquired by a timing module.

[0099] The data writing operation may refer to an instruction for writing the data to be stored into the target storage area.

[0100] The timing module may refer to a module for realizing a timing function. In practical applications, the timing module may start continuous timing from a specific moment (such as the moment when a data read instruction or a data write instruction is detected) and output the timing time.

[0101] Among them, the second time period can refer to the time data output by the timing module. In actual applications, the first time period can represent the length of time between a specific moment (such as the moment when a data read instruction or a data write instruction is detected) and the current moment. The first time period and the second time period can be the same.

[0102] As an example, the storage agent module responds to a data write operation to a target storage area and obtains a second time period through a timing module of the vehicle-mounted device. The accumulation condition of the second time period is that the controller of the vehicle-mounted device is running. The storage agent module can determine whether to write the data to be written into the target storage area based on the storage agent module write strategy and the relationship between the second time period and a preset time threshold (such as 3 seconds).

[0103] Step S304, obtaining a check mark, a data integral value for a target storage area, a data cache value in a cache module, and data to be written sent by the vehicle-mounted application.

[0104] Among them, the check flag may refer to information used to generate data to be displayed. In actual applications, when the check flag takes different values, the way in which the vehicle-mounted application generates or calculates the data to be displayed may be different. The check flag may be represented as NVMerrFlag.

[0105] Among them, the data integral value for the target storage area may refer to data calculated based on the storage data in the target storage area. In actual applications, the data integral value may include a total mileage integral value, and the total mileage integral value may include the data with the largest value between the total mileage data stored in the trigger storage area in the target storage area and the total mileage data stored in the power-off storage area in the target storage area, that is, the total mileage integral value = max (total mileage trigger storage value, total mileage power-off storage value).

[0106] The cache module may refer to a module in the vehicle-mounted device for implementing a data cache function.

[0107] The data cache value may refer to the integral value of the data cached in the cache module. In practical applications, the data cache value may be expressed as x2.

[0108] Among them, the data to be written may refer to the data sent by the in-vehicle application and need to be written into the target storage area. In actual applications, the data to be written may include total mileage data, vehicle mode data, endurance and trip data, driving energy consumption data, and vehicle usage habit data.

[0109] As an example, after the storage proxy module obtains the data to be written sent by the vehicle-mounted application, the storage proxy module needs to determine whether to write the data to be written into the target storage area based on the check flag, the data integral value for the target storage area and the data cache value in the cache module. Specifically, the vehicle-mounted device can be provided with a cache module, and the storage proxy module can calculate the data integral value for the target storage area based on the storage data in the target storage area. When the second time period is equal to the preset time threshold, the storage proxy module caches the data integral value into the cache module to obtain the data cache value. The storage proxy module also needs to obtain the check flag in real time. It can be understood that the method for obtaining the check flag, the method for setting the value of the check flag in different situations and the meaning of the value of the check flag in the above-mentioned data writing method are the same as the method for obtaining the check flag, the method for setting the value of the check flag in different situations and the meaning of the value of the check flag in the above-mentioned data reading method, and will not be repeated here.

[0110] Step S306, when the second time period is greater than the preset time threshold, and the check flag is a status value indicating that the data reading and / or data storage check has passed, or a status value indicating that there is an abnormality in the storage data obtained by the sub-storage area in the target storage area, and the data integral value is greater than the data cache value, the data to be written is written to the target storage area.

[0111] As an example, the vehicle-mounted device can set a storage proxy module write strategy for the storage proxy module, and the storage proxy module write strategy can be used to control the storage proxy module to write the data stored in the target storage area. Specifically, when the second time period is less than or equal to the preset time threshold, the storage proxy module is prohibited from updating the storage data in the first sub-storage area (such as the trigger storage area) and the second sub-storage area (such as the lower electrical storage area) in the target storage area in the write order. When the second time period is greater than the preset time threshold, the data writing condition of the second sub-storage area (such as the lower electrical storage area) can be expressed as: ① the data integral value increases by a preset distance (such as 1km); ② the vehicle mode data changes (such as the vehicle mode setting changes); ③ the area flag x1 corresponding to the first sub-storage area (such as the trigger storage area) changes. When the second time period is greater than the preset time threshold, and the check flag NVMearrFlag is a status value indicating that the data reading and / or data storage check has passed (such as the preset check flag 0) or a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area (such as the storage abnormality flag 1), and the data integral value is greater than the data cache value x2, the storage agent module can write the data to be written for the first sub-storage area into the first sub-storage area, that is, the data writing condition of the first sub-storage area (such as the trigger storage area) can be expressed as: (NVMErrFlag=0 / 1)&(total mileage integral value>x2).

[0112] In this embodiment, in response to the data write operation for the target storage area, a second time period is obtained through a timing module, a check flag, a data integral value for the target storage area, a data cache value in the cache module, and the data to be written sent by the vehicle-mounted application are obtained. When the second time period is greater than a preset time threshold, and the check flag is a status value representing that the data reading and / or data storage verification has passed, or a status value representing that there is an abnormality in the storage data obtained from the sub-storage area in the target storage area, and the data integral value is greater than the data cache value, the data to be written is written into the target storage area. Based on the check flag, it can be accurately determined whether the data to be written is allowed to be written to the corresponding position in the target storage area, thereby avoiding erroneous data from overwriting the storage data in the target storage area, and improving the accuracy of the stored data during the data writing process.

[0113] In some embodiments, the above method also includes: obtaining first storage data of a first sub-storage area in the target storage area; the first sub-storage area is a trigger storage area; obtaining second storage data of a second sub-storage area in the target storage area; the second sub-storage area is a power-off storage area; when the first storage data is greater than the second storage data, using the first storage data as a data integral value; when the second storage data is greater than the first storage data, using the second storage data as a data integral value.

[0114] The first stored data may refer to the total mileage data stored in the trigger storage area.

[0115] The second storage data may refer to the total mileage data stored in the lower power storage area.

[0116] As an example, the storage agent module may use the total mileage data stored in the first sub-storage area (i.e., the trigger storage area) in the target storage area as the first storage data, and the total mileage data stored in the second sub-storage area (i.e., the power-off storage area) in the target storage area as the second storage data. Then, the storage agent module may select one of the first storage data and the second storage data as the data integral value by comparing the data value sizes of the first storage data and the second storage data. Specifically, when the first storage data is greater than the second storage data, the storage agent module may use the first storage data as the data integral value, and when the second storage data is greater than the first storage data, the storage agent module may use the second storage data as the data integral value.

[0117] In this embodiment, by acquiring the first storage data of the first sub-storage area in the target storage area; the first sub-storage area is a trigger storage area; acquiring the second storage data of the second sub-storage area in the target storage area; the second sub-storage area is a power-down storage area; when the first storage data is greater than the second storage data, the first storage data is used as the data integration value; when the second storage data is greater than the first storage data, the second storage data is used as the data integration value, it is possible to generate an accurate data integration value based on the size relationship of the values ​​of the data stored in each sub-storage area in the target storage area, improve the accuracy of the data integration value, and ensure the accuracy of the data written to the target storage area.

[0118] In some embodiments, the problem of failure to read EEPROM in conventional technology will cause the controller application to use the initial value 0, and write 0 as the result of the read storage value operation into the EEPROM, resulting in the accumulated data being overwritten, and the controller's functional units are stored and written separately, resulting in problems of erroneous storage and missed storage. The reason is that there is no storage read and write strategy with a verification function, and the storage is stored and retrieved at the same time, resulting in problems in the calculation of the total mileage of the vehicle, mode setting, and trip display. Therefore, a storage read and write strategy with a verification function can be adopted to ensure that the controller reads and writes the EEPROM correctly by setting up a storage proxy module and a storage verification mechanism, such as Figure 4As shown, a schematic diagram of storage read and write verification is provided. Taking the EEPROM storage area as the target storage area as an example, the EEPROM storage area can be divided into a trigger storage area and a lower power storage area. The vehicle information in the storage signal can include total mileage, trip information, driving energy consumption / vehicle usage habits, and vehicle mode. The vehicle information can be used by different vehicle applications, wherein the total mileage is stored in the trigger storage area and the lower power storage area, the vehicle mode is stored in the trigger storage area, and the trip information and driving energy consumption / vehicle usage habits are stored in the lower power storage area. The reading order (from left to right) in the transmission mechanism of the storage signal can be expressed as: EEPROM-NVM module (a module for managing non-volatile memory)-storage agent module-each vehicle application. The writing order of the storage signal can be expressed as (from left to right): each vehicle application-storage agent module-NVM module-EEPROM; when the storage signal of the vehicle application needs to be updated, the vehicle application sends the signal that needs to be updated in the lower power storage area and the trigger storage area and the trigger storage flag to the storage agent module, and the storage agent module makes a unified decision on the writing of the lower power storage area and the trigger storage area.

[0119] The read check flag NVMErrFlag in the storage read and write check mechanism may include: read check flag NVMErrFlag: set the area flag x1, x1 is stored in the trigger storage area, x1 is set to 1 after the controller completes the storage action, and x1 is set to 0 after the read action is completed; when starting to read the storage, if x1=0, the storage was not completed after the last controller wake-up, NVMErrFlag=1; when starting to read the storage, receive the hardware self-test flag of the EEPROM, when the self-test is abnormal, the storage hardware is damaged, NVMErrFlag=2; NVMErrFlag is only maintained for a single power-on cycle, the priority is 2>1, when starting to read the storage, NVMErrFlag is not set to 1 / 2 / 3, NVMErrFlag=0.

[0120] The storage agent module reading strategy in the storage read and write verification mechanism may include: setting the timing module 1, the time period T1, and the T1 accumulation condition as the controller running; setting the storage flag bit, T1>3s, writing the value to 1, and storing it in the trigger storage area and the power-down storage area; when T1≤3s, the storage agent module receives the storage values ​​of each area in the reading order until the storage flag bit read is 1, stops receiving and saving the storage values ​​of each area; when T1>3s, stops receiving the storage values ​​of each area; within T1≤3s, if the storage flag bit read is never 1, then NVMerrFlag=3. The storage data in the trigger storage area and the power-down storage area can be used for vehicle application storage.

[0121] After the vehicle application receives the time period (such as integration time) T1, the storage data in the trigger storage area and the power-down storage area, and the check flag NVMerrFlag sent by the storage proxy module, the vehicle application can determine the data to be displayed according to the time period T1, the storage data, and the check flag NVMerrFlag. Specifically, the vehicle application can calculate and display the total mileage data in the following three cases: ① T1≤3s, NVMerrFlag=2 / 3, storage loss: the total mileage display value = invalid value, waiting for storage reading; Total mileage integral value = starting value = max (total mileage trigger storage value, total mileage power-on storage value); ②T1≤3s, NVMerrFlag=0 / 1, storage is normal: total mileage display value = total mileage integral value; total mileage starting value = max (total mileage trigger storage value, total mileage power-on storage value); in the first operation cycle when NVMerrFlag=0 / 1, total mileage integral value = total mileage starting value, and then accumulates with vehicle speed integral; ③T1>3s, total mileage display value = total mileage integral value; total mileage integral value accumulates with vehicle speed integral. When the vehicle application calculates and displays the vehicle mode data, the vehicle mode information to be displayed is the storage value of the vehicle mode in the trigger storage area, that is, vehicle mode = trigger storage value. The in-vehicle application calculates and displays the trip information, driving energy consumption / driving habits, which may include the following three situations: ①T1≤3s, NVMearrFlag=2 / 3, storage loss: the displayed value of the battery life and trip information = invalid value, waiting for storage reading; ②NVMErrFlag=0 / 1, normal storage: the displayed value of the battery life and trip information = the battery life and trip information calculated according to the storage value; ③T1>3s, NVMearrFlag=2 / 3, the battery life and trip information are calculated according to the factory default values, and the stored value is not used.

[0122] The storage agent module write strategy in the storage read and write verification mechanism may include: setting the timing module 1, the time period T1, the T1 accumulation condition is the controller running, setting the cache module 1, when T1=3s is satisfied, the total mileage integral value is stored as x2; T1≤3s, it is prohibited to update the trigger storage area and the power-down storage area in the write order; when T1>3s, the trigger storage area write condition can be expressed as: ① the total mileage integral value increases by 1km; ② the vehicle mode setting changes; ③ the area flag x1 in the trigger storage area changes; when T1>3s, the power-down storage area write condition can be expressed as: (NVMErrFlag=0 / 1) and (total mileage integral value>x2), and writing to the power-down storage area is allowed only when the power-on storage read condition is met. This can prevent the total mileage starting value from being incorrect, that is, the integral value is too small, when the power-on storage read fails, and writing to the power-down storage is prohibited (the trigger storage can be written, and the starting value is the larger of the two).

[0123] In this embodiment, by setting a storage read and write strategy with a verification function, it is possible to prevent erroneous storage and missed storage, prevent the loss of total mileage, improve the accuracy of data during the data reading and writing process, avoid regulatory risks, extend the storage read time, and reduce the risk of storage read failure. When the storage read fails, it can also provide a human-computer interaction reminder by displaying invalidity, thereby improving the user's car experience.

[0124] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0125] Based on the same inventive concept, the embodiment of the present application also provides a data reading device for implementing the data reading method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more data reading device embodiments provided below can refer to the limitations on the data reading method above, and will not be repeated here.

[0126] In an exemplary embodiment, Figure 5 As shown, a data reading device is provided, which is applied to a storage agent module, including: a first time acquisition module 502, a storage data reading module 504 and a storage data sending module 506, wherein:

[0127] The first time acquisition module 502 is configured to acquire a first time period through a timing module in response to a data read operation on a target storage area.

[0128] The storage data reading module 504 is used to obtain the storage data of each sub-storage area in accordance with a preset reading order when the first time period is less than or equal to a preset time threshold and the sub-storage areas in the target storage area have not stopped acquiring storage data until the sub-storage areas in the target storage area stop acquiring storage data.

[0129] The stored data sending module 506 is used to obtain a check flag and send the first time period, the check flag and the stored data to the vehicle-mounted application; the vehicle-mounted application is used to obtain the data to be displayed based on the first time period, the check flag and the stored data, and display the data to be displayed.

[0130] In an exemplary embodiment, the above-mentioned device also includes a check flag acquisition module, which is specifically used to set the check flag to a status value indicating that the storage action is not completed when the reading action of the first sub-storage area in the target storage area has been completed; the first sub-storage area is a trigger storage area; obtain a hardware self-test flag for the target storage area, and when the hardware self-test flag indicates that the storage hardware corresponding to the target storage area is abnormal, set the check flag to a status value indicating that the storage hardware is damaged.

[0131] In an exemplary embodiment, the above-mentioned check flag acquisition module is specifically used to control each sub-storage area in the target storage area to stop acquiring storage data when the first time period is greater than the preset time threshold; when the first time period is less than or equal to the preset time threshold, and each sub-storage area in the target storage area has never stopped acquiring storage data, the check flag is set to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

[0132] In an exemplary embodiment, the above-mentioned check flag acquisition module is specifically used to set the check flag to a status value indicating that data reading and / or data storage verification has passed when the check flag is not set to one of a status value indicating that the storage action is not completed, a status value indicating that the storage hardware is damaged, and a status value indicating that there is an abnormality in obtaining storage data from a sub-storage area in the target storage area.

[0133] Each module in the above data reading device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0134] In an exemplary embodiment, a data reading device is provided, which is applied to vehicle-mounted applications and includes: an acquisition module and a display module, wherein:

[0135] The acquisition module is used to acquire the first time period, the check mark and the storage data sent by the storage agent module.

[0136] A display module is used to determine the data to be displayed based on the stored data and display the data to be displayed when the first time period is less than or equal to a preset time threshold and the check flag is set to a status value indicating that the data reading and / or data storage check has passed or a status value indicating that there is an abnormality in obtaining storage data in a sub-storage area in the target storage area.

[0137] In an exemplary embodiment, the above-mentioned device also includes a prompt module, which is specifically used to set the data to be displayed to a preset invalid value and display the data to be displayed when the first time period is less than or equal to a preset time threshold and the check flag is set to a status value representing damage to the storage hardware or a status value representing an abnormality in obtaining storage data in a sub-storage area in the target storage area.

[0138] Each module in the above data reading device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0139] In an exemplary embodiment, a data writing device is provided, which is applied to a storage agent module and includes: an acquisition module and a display module, wherein:

[0140] A second time acquisition module, configured to acquire a second time period through a timing module in response to a data writing operation to a target storage area;

[0141] A data acquisition module, used to acquire a check mark, a data integral value for the target storage area, a data cache value in a cache module, and data to be written sent by an in-vehicle application;

[0142] A data writing module is used to write the data to be written into the target storage area when the second time period is greater than a preset time threshold, and the check flag is a status value indicating that the data reading and / or data storage check has passed, or a status value indicating that there is an abnormality in the acquisition of storage data by a sub-storage area in the target storage area, and the data integral value is greater than the data cache value.

[0143] In an exemplary embodiment, the above-mentioned device also includes an integral value acquisition module, which is specifically used to acquire first storage data of a first sub-storage area in the target storage area; the first sub-storage area is a trigger storage area; acquire second storage data of a second sub-storage area in the target storage area; the second sub-storage area is a power-down storage area; when the first storage data is greater than the second storage data, the first storage data is used as the data integral value; when the second storage data is greater than the first storage data, the second storage data is used as the data integral value.

[0144] The above-mentioned device also includes a check flag acquisition module, which is specifically used to set the check flag to a state value representing that the storage action is not completed when the reading action of the first sub-storage area in the target storage area has been completed; the first sub-storage area is a trigger storage area; obtain a hardware self-test flag for the target storage area, and when the hardware self-test flag indicates that the storage hardware corresponding to the target storage area is abnormal, set the check flag to a state value representing that the storage hardware is damaged.

[0145] In an exemplary embodiment, the above-mentioned check flag acquisition module is specifically used to obtain a first time period through a timing module in response to a data reading operation for the target storage area; when the first time period is greater than the preset time threshold, control each sub-storage area in the target storage area to stop acquiring storage data; when the first time period is less than or equal to the preset time threshold, and each sub-storage area in the target storage area has never stopped acquiring storage data, set the check flag to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

[0146] In an exemplary embodiment, the above-mentioned check flag acquisition module is specifically used to set the check flag to a status value indicating that data reading and / or data storage verification has passed when the check flag is not set to one of a status value indicating that the storage action is not completed, a status value indicating that the storage hardware is damaged, and a status value indicating that there is an abnormality in obtaining storage data from a sub-storage area in the target storage area.

[0147] Each module in the above data writing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0148] In an exemplary embodiment, a vehicle-mounted device is provided. The vehicle-mounted device may be a terminal, and its internal structure diagram may be as follows: Figure 6 As shown. The vehicle-mounted device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the vehicle-mounted device is used to provide computing and control capabilities. The memory of the vehicle-mounted device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the vehicle-mounted device is used to exchange information between the processor and the external device. The communication interface of the vehicle-mounted device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the vehicle-mounted device is executed by the processor, a data reading method is realized. The display unit of the vehicle-mounted device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the vehicle-mounted equipment can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the vehicle-mounted equipment, or an external keyboard, touchpad or mouse.

[0149] Those skilled in the art will understand that Figure 6 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the vehicle-mounted equipment to which the scheme of the present application is applied. The specific vehicle-mounted equipment may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0150] In one embodiment, a vehicle-mounted device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.

[0151] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.

[0152] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.

[0153] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0154] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0155] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0156] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be construed as limiting the scope of the present application. It should be noted that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A data reading method, characterized in that: Applied to a storage proxy module, the method comprises: In response to a data read operation on a target storage area, acquiring a first time period through a timing module; When the first time period is less than or equal to a preset time threshold and each sub-storage area in the target storage area does not stop acquiring storage data, acquiring storage data of each sub-storage area in accordance with a preset reading order until each sub-storage area in the target storage area stops acquiring storage data; Obtain a check flag, and send the first time period, the check flag and the stored data to an in-vehicle application; the in-vehicle application is used to obtain the data to be displayed based on the first time period, the check flag and the stored data, and display the data to be displayed.

2. The method according to claim 1, characterized in that The method further comprises: In the case where the reading action of the first sub-storage area in the target storage area has been completed, the check flag is set to a state value indicating that the storage action is not completed; the first sub-storage area is a trigger storage area; A hardware self-check flag for the target storage area is obtained, and when the hardware self-check flag indicates that storage hardware corresponding to the target storage area is abnormal, the check flag is set to a state value indicating that the storage hardware is damaged.

3. The method according to claim 2, characterized in that The method further comprises: When the first time period is greater than the preset time threshold, controlling each sub-storage area in the target storage area to stop acquiring storage data; When the first time period is less than or equal to the preset time threshold and each sub-storage area in the target storage area has never stopped acquiring storage data, the check flag is set to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

4. The method according to claim 3, characterized in that The method further comprises: When the check flag is not set to one of the status values ​​representing that the storage action is not completed, the status value representing that the storage hardware is damaged, and the status value representing that there is an abnormality in obtaining storage data from the sub-storage area in the target storage area, the check flag is set to a status value representing that the data reading and / or data storage check has passed.

5. A data writing method, characterized in that: Applied to a storage proxy module, the method comprises: In response to a data writing operation to a target storage area, acquiring a second time period by a timing module; Obtaining a check mark, a data integral value for the target storage area, a data cache value in a cache module, and data to be written sent by an in-vehicle application; When the second time period is greater than a preset time threshold, and the check flag is a status value indicating that data reading and / or data storage verification has passed, or a status value indicating that there is an abnormality in obtaining storage data in a sub-storage area in the target storage area, and the data integral value is greater than the data cache value, the data to be written is written to the target storage area.

6. The method according to claim 5, characterized in that The method further comprises: Acquire first storage data of a first sub-storage area in the target storage area; the first sub-storage area is a trigger storage area; Acquire the second storage data of the second sub-storage area in the target storage area; the second sub-storage area is a lower power storage area; In the case where the first stored data is greater than the second stored data, taking the first stored data as the data integral value; When the second stored data is greater than the first stored data, the second stored data is used as the data integration value.

7. The method according to claim 5, characterized in that The method further comprises: In the case where the reading action of the first sub-storage area in the target storage area has been completed, the check flag is set to a state value indicating that the storage action is not completed; the first sub-storage area is a trigger storage area; A hardware self-check flag for the target storage area is obtained, and when the hardware self-check flag indicates that storage hardware corresponding to the target storage area is abnormal, the check flag is set to a state value indicating that the storage hardware is damaged.

8. The method according to claim 7, characterized in that The method further comprises: In response to a data read operation on the target storage area, acquiring a first time period through a timing module; When the first time period is greater than the preset time threshold, controlling each sub-storage area in the target storage area to stop acquiring storage data; When the first time period is less than or equal to the preset time threshold and each sub-storage area in the target storage area has never stopped acquiring storage data, the check flag is set to a status value indicating that there is an abnormality in the acquisition of storage data by the sub-storage area in the target storage area.

9. The method according to claim 8, characterized in that The method further comprises: When the check flag is not set to one of the status values ​​representing that the storage action is not completed, the status value representing that the storage hardware is damaged, and the status value representing that there is an abnormality in obtaining storage data from the sub-storage area in the target storage area, the check flag is set to a status value representing that the data reading and / or data storage check has passed.

10. A data reading device, characterized in that: Applied to a storage proxy module, the device comprises: A first time acquisition module, configured to acquire a first time period through a timing module in response to a data reading operation on a target storage area; a storage data reading module, configured to obtain storage data of each sub-storage area in a preset reading order when the first time period is less than or equal to a preset time threshold and each sub-storage area in the target storage area does not stop acquiring storage data, until each sub-storage area in the target storage area stops acquiring storage data; A storage data sending module is used to obtain a check flag and send the first time period, the check flag and the stored data to an in-vehicle application; the in-vehicle application is used to obtain the data to be displayed based on the first time period, the check flag and the stored data, and display the data to be displayed.