[go: up one dir, main page]

CN107704200A - 一种数据存放方法 - Google Patents

一种数据存放方法 Download PDF

Info

Publication number
CN107704200A
CN107704200A CN201710806859.5A CN201710806859A CN107704200A CN 107704200 A CN107704200 A CN 107704200A CN 201710806859 A CN201710806859 A CN 201710806859A CN 107704200 A CN107704200 A CN 107704200A
Authority
CN
China
Prior art keywords
storage area
data
user
user storage
flash memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710806859.5A
Other languages
English (en)
Inventor
秦勇
周意
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Amlogic Shanghai Co Ltd
Original Assignee
Amlogic Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Amlogic Shanghai Co Ltd filed Critical Amlogic Shanghai Co Ltd
Priority to CN201710806859.5A priority Critical patent/CN107704200A/zh
Publication of CN107704200A publication Critical patent/CN107704200A/zh
Priority to US16/644,921 priority patent/US20200264795A1/en
Priority to PCT/CN2018/104425 priority patent/WO2019047901A1/zh
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0679Non-volatile semiconductor memory device, e.g. flash memory, one time programmable memory [OTP]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0616Improving the reliability of storage systems in relation to life time, e.g. increasing Mean Time Between Failures [MTBF]
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0614Improving the reliability of storage systems
    • G06F3/0619Improving the reliability of storage systems in relation to data integrity, e.g. data losses, bit errors
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0629Configuration or reconfiguration of storage systems
    • G06F3/0631Configuration or reconfiguration of storage systems by allocating resources to storage systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0646Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
    • G06F3/0652Erasing, e.g. deleting, data cleaning, moving of data to a wastebasket
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0653Monitoring storage devices or systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • G06F3/0659Command handling arrangements, e.g. command buffers, queues, command scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Techniques For Improving Reliability Of Storages (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明涉及一种数据存储技术,尤其涉及一种数据存放方法,应用于显示设备中的闪存,其中,包括:步骤S1,将闪存划分出一第一用户存储区和一第二用户存储区,以存储结构化数据;步骤S2,按一预设策略在第一用户存储区和第二用户存储区之间循环交替存储结构化数据;能够容易地找到新存储的数据,并且避免了擦除断电造成的数据丢失的问题,写入速度快且可靠性高。

Description

一种数据存放方法
技术领域
本发明涉及一种数据存储技术,尤其涉及一种数据存放方法。
背景技术
传统电视对于用户数据的存储,通常采用两种方法:其一通过内置集成电路总线,连接电可擦读写存储器,用来存储用户可调节的数据,例如菜单中各项的调节值(亮度,对比度,音量等),调节后,通过内置集成电路协议,对电可擦读写存储器进行写的操作,来达到数据存储的功能;其二在程序存储器划出一段空间,用于用户数据的存放,每次数据的存储更新在数据的存储原地址更改数据。
采用上述技术会产生的问题是:主芯片需要有一组内置集成电路的总线接口,用于访问电可擦读写存储器,一定程度上占用芯片硬件资源。平台外接一颗器件,对于成本来说,会有少许增加。程序存储器的读写速度通常比外置集成器件要快;频繁的对闪存进行擦除,对存在芯片中的程序的安全性有很大的负作用,缩短了闪存的使用寿命。因为闪存擦除和写入的特性(同一个地址区,如果再次更新数据的话,必需对其进行擦除,而且擦除的数据大小单位为整个芯片或块或扇区,没有字节擦除的功能)。
发明内容
针对上述问题,本发明提出了一种数据存放方法,应用于显示设备中的闪存,其中,包括:
步骤S1,将所述闪存划分出一第一用户存储区和一第二用户存储区,以存储结构化数据;
步骤S2,按一预设策略在所述第一用户存储区和所述第二用户存储区之间循环交替存储所述结构化数据。
上述的数据存放方法,其中,所述预设策略为:
向所述第一用户存储区或所述第二用户存储区中存储所述结构化数据,于所述第一用户存储区和所述第二用户存储区中任一存满时,转向两者中未存满的所述第一用户存储区或所述第二用户存储区进行存储,循环交替;
其中,于当前执行存储的所述第一用户存储区或所述第二用户存储区存满时,擦除两者中当前未在执行存储的所述第一用户存储区或所述第二用户存储区中的全部数据。
上述的数据存放方法,其中,所述闪存中还划分有一第一单数据存储区和一第二单数据存储区;
所述第一单数据存储区的地址紧接在所述第一用户数据存储区的地址之后;
所述第二单数据存储区的地址紧接在所述第二用户数据存储区地址之后。
上述的数据存放方法,其中,所述第二用户存储区的存储空间大小等于所述第一用户存储区的存储空间大小,且均为所述闪存的扇区的存储空间大小的整数倍。
上述的数据存放方法,其中,第二用户存储区加所述第二单数据存储区的存储空间大小为所述闪存的扇区的存储空间大小的整数倍。
上述的数据存放方法,其中,所述结构化数据包括:
数据长度字段,和/或数据偏移量字段,和/或存入数据字段。
有益效果:本发明提出的一种数据存放方法能够容易地找到新存储的数据,并且避免了擦除断电造成的数据丢失的问题,写入速度快,可靠性高。
附图说明
图1为本发明一实施例中数据存放方法的步骤流程图。
具体实施方式
下面结合附图和实施例对本发明进行进一步说明。
在一个较佳的实施例中,如图1所示,提出了一种数据存放方法,应用于显示设备中的闪存,其中,可以包括:
步骤S1,将闪存划分出一第一用户存储区和一第二用户存储区,以存储结构化数据;
步骤S2,按一预设策略在第一用户存储区和第二用户存储区之间循环交替存储结构化数据。
上述技术方案中,由于采用了结构化数据,能够容易地将结构化数据与单个数据进行区分,因此在对结构化数据进行区分和查找容易实现;
在一个较佳的实施例中,预设策略可以为:
向第一用户存储区或第二用户存储区中存储结构化数据,于第一用户存储区和第二用户存储区中任一存满时,转向两者中未存满的第一用户存储区或第二用户存储区进行存储,循环交替;
其中,于当前执行存储的第一用户存储区或第二用户存储区存满时,擦除两者中当前未在执行存储的第一用户存储区或第二用户存储区中的全部数据。
上述仅为一种优选的情况,其他存储顺序和策略也应视为包含在本发明中,在此不再赘述。
在一个较佳的实施例中,闪存中还划分有一第一单数据存储区和一第二单数据存储区;
第一单数据存储区的地址紧接在第一用户数据存储区的地址之后;
第二单数据存储区的地址紧接在第二用户数据存储区地址之后。
在一个较佳的实施例中,第二用户存储区的存储空间大小等于第一用户存储区的存储空间大小,且均为闪存的扇区的存储空间大小的整数倍。
上述技术方案中,一个扇区的存储空间的大小为4096字节。
在一个较佳的实施例中,第二用户存储区加第二单数据存储区的存储空间大小为闪存的扇区的存储空间大小的整数倍,例如为4096或8192字节,其中一个扇区的存储空间的大小为4096字节。
在一个较佳的实施例中,结构化数据可以包括:
数据长度字段,和/或数据偏移量字段,和/或存入数据字段。
上述技术方案中,每个结构化数据为单数据的结构化数据;举例来说,某个数据长度字段的值(value)可以为4,数据偏移量字段的值可以为0,存储数据字段的值可以为99;结构化数据还可以包括设备特征字段,和/或加工特征字段,和/或格式特征字段等。
通过说明和附图,给出了具体实施方式的特定结构的典型实施例,基于本发明精神,还可作其他的转换。尽管上述发明提出了现有的较佳实施例,然而,这些内容并不作为局限。
对于本领域的技术人员而言,阅读上述说明后,各种变化和修正无疑将显而易见。因此,所附的权利要求书应看作是涵盖本发明的真实意图和范围的全部变化和修正。在权利要求书范围内任何和所有等价的范围与内容,都应认为仍属本发明的意图和范围内。

Claims (6)

1.一种数据存放方法,应用于显示设备中的闪存,其特征在于,包括:
步骤S1,将所述闪存划分出一第一用户存储区和一第二用户存储区,以存储结构化数据;
步骤S2,按一预设策略在所述第一用户存储区和所述第二用户存储区之间循环交替存储所述结构化数据。
2.根据权利要求1所述的数据存放方法,其特征在于,所述预设策略为:
向所述第一用户存储区或所述第二用户存储区中存储所述结构化数据,于所述第一用户存储区和所述第二用户存储区中任一存满时,转向两者中未存满的所述第一用户存储区或所述第二用户存储区进行存储,循环交替;
其中,于当前执行存储的所述第一用户存储区或所述第二用户存储区存满时,擦除两者中当前未在执行存储的所述第一用户存储区或所述第二用户存储区中的全部数据。
3.根据权利要求1所述的数据存放方法,其特征在于,所述闪存中还划分有一第一单数据存储区和一第二单数据存储区;
所述第一单数据存储区的地址紧接在所述第一用户数据存储区的地址之后;
所述第二单数据存储区的地址紧接在所述第二用户数据存储区地址之后。
4.根据权利要求1所述的数据存放方法,其特征在于,所述第二用户存储区的存储空间大小等于所述第一用户存储区的存储空间大小,且均为所述闪存的扇区的存储空间大小的整数倍。
5.根据权利要求3所述的数据存放方法,其特征在于,第二用户存储区加所述第二单数据存储区的存储空间大小为所述闪存的扇区的存储空间大小的整数倍。
6.根据权利要求1所述的数据存放方法,其特征在于,所述结构化数据包括:
数据长度字段,和/或数据偏移量字段,和/或存入数据字段。
CN201710806859.5A 2017-09-08 2017-09-08 一种数据存放方法 Pending CN107704200A (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710806859.5A CN107704200A (zh) 2017-09-08 2017-09-08 一种数据存放方法
US16/644,921 US20200264795A1 (en) 2017-09-08 2018-09-06 Data deposition method
PCT/CN2018/104425 WO2019047901A1 (zh) 2017-09-08 2018-09-06 一种数据存放方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710806859.5A CN107704200A (zh) 2017-09-08 2017-09-08 一种数据存放方法

Publications (1)

Publication Number Publication Date
CN107704200A true CN107704200A (zh) 2018-02-16

Family

ID=61172302

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710806859.5A Pending CN107704200A (zh) 2017-09-08 2017-09-08 一种数据存放方法

Country Status (3)

Country Link
US (1) US20200264795A1 (zh)
CN (1) CN107704200A (zh)
WO (1) WO2019047901A1 (zh)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019047901A1 (zh) * 2017-09-08 2019-03-14 晶晨半导体(上海)股份有限公司 一种数据存放方法
CN110658743A (zh) * 2018-06-29 2020-01-07 中车株洲电力机车研究所有限公司 一种wtb波形记录仪及记录方法
CN109032528B (zh) * 2018-08-01 2020-11-17 西安电子科技大学 一种平板pet系统的在线预处理方法及装置
CN113819995A (zh) * 2021-10-28 2021-12-21 深圳市道中创新科技有限公司 一种重力售货柜的重力传感器形变自动矫正方法
CN115390763A (zh) * 2022-08-26 2022-11-25 京东方科技集团股份有限公司 基于闪存的数据存储方法、闪存及相关设备
CN117311610A (zh) * 2023-09-06 2023-12-29 河南翔宇医疗设备股份有限公司 一种医疗数据的存储管理方法、系统及设备

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817527B (zh) * 2021-01-21 2024-06-04 深圳市显控科技股份有限公司 掉电数据存储方法、单片机及计算机可读存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231136A (zh) * 2011-07-12 2011-11-02 晨星软件研发(深圳)有限公司 一种闪存存储设备的数据存储方法和装置
CN102890656A (zh) * 2012-09-25 2013-01-23 Tcl光电科技(惠州)有限公司 提高flash使用寿命的方法
CN103440205A (zh) * 2013-08-21 2013-12-11 深圳市九洲电器有限公司 一种机顶盒数据存储方法及装置
CN105868120A (zh) * 2016-03-24 2016-08-17 航天科技控股集团股份有限公司 基于芯片内部flash替代eeprom的数据存储方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963942A (zh) * 2010-09-13 2011-02-02 福建新大陆通信科技股份有限公司 一种机顶盒nor型flash快速存储的方法
CN103294615B (zh) * 2012-02-24 2017-09-22 北京四达时代软件技术股份有限公司 一种存储机顶盒用户信息的方法
CN106020735A (zh) * 2016-05-31 2016-10-12 晨星半导体股份有限公司 一种数据存储方法及数据存储装置
CN107704200A (zh) * 2017-09-08 2018-02-16 晶晨半导体(上海)股份有限公司 一种数据存放方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102231136A (zh) * 2011-07-12 2011-11-02 晨星软件研发(深圳)有限公司 一种闪存存储设备的数据存储方法和装置
CN102890656A (zh) * 2012-09-25 2013-01-23 Tcl光电科技(惠州)有限公司 提高flash使用寿命的方法
CN103440205A (zh) * 2013-08-21 2013-12-11 深圳市九洲电器有限公司 一种机顶盒数据存储方法及装置
CN105868120A (zh) * 2016-03-24 2016-08-17 航天科技控股集团股份有限公司 基于芯片内部flash替代eeprom的数据存储方法

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019047901A1 (zh) * 2017-09-08 2019-03-14 晶晨半导体(上海)股份有限公司 一种数据存放方法
CN110658743A (zh) * 2018-06-29 2020-01-07 中车株洲电力机车研究所有限公司 一种wtb波形记录仪及记录方法
CN109032528B (zh) * 2018-08-01 2020-11-17 西安电子科技大学 一种平板pet系统的在线预处理方法及装置
CN113819995A (zh) * 2021-10-28 2021-12-21 深圳市道中创新科技有限公司 一种重力售货柜的重力传感器形变自动矫正方法
CN115390763A (zh) * 2022-08-26 2022-11-25 京东方科技集团股份有限公司 基于闪存的数据存储方法、闪存及相关设备
CN117311610A (zh) * 2023-09-06 2023-12-29 河南翔宇医疗设备股份有限公司 一种医疗数据的存储管理方法、系统及设备
CN117311610B (zh) * 2023-09-06 2025-03-11 河南翔宇医疗设备股份有限公司 一种医疗数据的存储管理方法、系统及设备

Also Published As

Publication number Publication date
WO2019047901A1 (zh) 2019-03-14
US20200264795A1 (en) 2020-08-20

Similar Documents

Publication Publication Date Title
CN107704200A (zh) 一种数据存放方法
US10901949B2 (en) Method and apparatus for compressing metadata in a file system
US9804801B2 (en) Hybrid memory device for storing write data based on attribution of data stored therein
TWI596603B (zh) 用於快取壓縮資料之設備、系統及方法
CN112765271A (zh) 区块链交易索引的存储方法、装置、计算机设备及介质
US20150347012A1 (en) System and method of interleaving data retrieved from first and second buffers
TW201245959A (en) Dynamic and static data for a system having non-volatile memory
CN105808151A (zh) 固态硬盘存储设备和固态硬盘存储设备的数据存取方法
EP3142014B1 (en) Method, device and user equipment for reading/writing data in nand flash
US20110004720A1 (en) Method and apparatus for performing full range random writing on a non-volatile memory
US20200117722A1 (en) Efficient file storage and retrieval system, method and apparatus
US9891824B2 (en) Sub-block input/output (I/O) commands for storage device including byte stream buffer
CN105550123A (zh) 电子装置及其存储空间管理方法
KR102835666B1 (ko) 참조값을 이용한 메모리 디바이스 액션의 유효성 확인
CN107045423B (zh) 存储器装置及其数据存取方法
US11216383B2 (en) Storage device providing a virtual memory region, electronic system including the same, and method of operating the same
CN108427648A (zh) 存储系统页内脏数据索引方法和装置
US11132134B2 (en) Flexible over-provisioning of storage space within solid-state storage devices (SSDs)
CN104636079B (zh) 文件存取方法及其系统
US20140351485A1 (en) Differential File System for Computer Memory
CN111897484B (zh) 一种数据存储方法、装置、电子设备及存储介质
CN107077420B (zh) 覆盖擦除块映射
US9804968B2 (en) Storage system and data writing method
US10572382B2 (en) Method of operating data storage device and method of operating data processing system including the same
CN116149540A (zh) 更新主机与闪存地址对照表的方法和计算机可读取存储介质和装置

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20180216

RJ01 Rejection of invention patent application after publication