Data storage methods

TWI940404BActive Publication Date: 2026-09-21KITA SENSOR TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
TW114145079
Authority / Receiving Office
TW · TW
Patent Type
Patents
Current Assignee / Owner
Filing Date
2025-11-19
Publication Date
2026-09-21
Estimated Expiration
2045-11-18

Smart Images

  • Figure TWG2TB001912521_001
    Figure TWG2TB001912521_001
  • Figure TWG2TB001912521_002
    Figure TWG2TB001912521_002
  • Figure TWG2TB001912521_003
    Figure TWG2TB001912521_003
Patent Text Reader

Abstract

A data storage method is applicable to a control unit and includes: acquiring a flow value from a flow sensor at predetermined time intervals and multiplying it by the predetermined time interval to obtain a value to be accumulated; adding the value to be accumulated to a small accumulated cache value of a dynamic random access memory; when it is determined that the small accumulated cache value is greater than a predetermined value, subtracting the predetermined value from the small accumulated cache value and adding the predetermined value to an actual accumulated value of the dynamic random access memory; determining whether the value of a cumulative storage of a flash memory is full; when it is determined that the value stored in the cumulative storage is not full, storing a cumulative detail offset value of the actual accumulated value of the dynamic random access memory into the cumulative storage of the flash memory.
Need to check novelty before this filing date? Find Prior Art

Claims

1. A data storage method applicable to a flow sensor, a dynamic random access memory (DRAM), a flash memory, and a control unit, and implemented by the control unit, comprising the following steps: Step S1, acquiring a flow value from the flow sensor at predetermined time intervals, and multiplying the flow value by the predetermined time interval to obtain a value to be accumulated; Step S2, adding a small accumulated cache value stored in the DRAM to the value to be accumulated; Step S3, when it is determined that the small accumulated cache value is greater than a predetermined value, subtracting the predetermined value from the small accumulated cache value stored in the DRAM, and adding the predetermined value to an actual accumulated value stored in the DRAM, wherein the predetermined value is an integer, and the actual accumulated value is equal to an accumulated offset value of the higher significant bits of a binary representation plus an accumulated detail offset value of the lower significant bits of a binary representation; Step S4: After adding the predetermined value to the actual accumulated value, determine whether the value stored in the cumulative storage of the flash memory is full; and Step S5: When it is determined that the value stored in the cumulative storage is not full, store the accumulated detailed offset value of the dynamic random access memory into the cumulative storage of the flash memory.

2. The data storage method as described in claim 1 further includes steps S6, S7, S9, and S10 between steps S4 and S5. In step S6, when it is determined that the value stored in the accumulator is full, the accumulated offset value of the dynamic random access memory is added to the value stored in the accumulator. In step S7, it is determined whether the data stored in a setting memory of the flash memory is full. In step S9, when it is determined that the data stored in the setting memory of the flash memory is not full, the accumulated offset value of the dynamic random access memory is stored in the setting memory of the flash memory. In step S10, the value stored in the accumulator of the flash memory is erased.

3. The data storage method as described in claim 2, wherein, It also includes step S8 between steps S7 and S9. In step S8, when it is determined that the data stored in the setting memory of the flash memory is full, the data stored in the setting memory of the flash memory is erased, and then step S9 is executed.

4. The data storage method as described in claim 3, wherein, In step S5, the cumulative memory of the flash memory stores the cumulative detailed offset value in a unary encoded manner.

5. The data storage method as described in claim 1, wherein, In step S3, the predetermined value is 1.

Citation Information

Patent Citations

  • Flavor inhaler

    EP3491945A1

  • Method and system for controlling data storage device temperature

    EP3995933A1

  • Software application that determines the optimal times for outdoor activities based on outdoor conditions

    US20160117372A1

  • Method and apparatus for transmitting and receiving wireless signal in wireless communication system

    US20230410655A1

  • Method for controlling water-heating system, and water-heating system

    WO2017134743A1