作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程

• 软件技术与数据库 • 上一篇    下一篇

应用于AMR的Flash文件系统设计与实现

刘利方 1,罗亚辉 1,2,康江 1   

  1. (1.湖南农业大学工学院,长沙 410128; 2.湖南省现代农业装备工程技术研究中心,长沙 410128)
  • 收稿日期:2015-01-15 出版日期:2016-02-15 发布日期:2016-01-29
  • 作者简介:刘利方(1980-),男,工程师、硕士,主研方向为嵌入式系统;罗亚辉、康江,副教授。
  • 基金资助:
    国家科技重大专项基金资助项目(2011ZX07412-001-01)。

Design and Implementation of Flash File System Used in AMR

LIU Lifang  1,LUO Yahui  1,2,KANG Jiang  1   

  1. (1.College of Engineering,Hunan Agricultural University,Changsha 410128,China;2.Hunan Provincial Engineering Technology Research Center for Modern Agricultural Equipment,Changsha 410128,China)
  • Received:2015-01-15 Online:2016-02-15 Published:2016-01-29

摘要: 针对远程自动抄表系统数据采集和存储的高可靠性要求,设计一种掉电安全和资源紧凑的轻量级Flash文件系统。该文件系统采用分层、模块化和跨平台设计,方便移植到包括ARM Cortex-M系列单片机在内的各种资源紧张的MCU平台,具有较高的灵活性和通用性。为实现数据掉电安全,采用类似于日志文件系统的设计思想。将Flash空间划分为5个区域,使用若干物理页面作为管理区,记录文件系统的安全写入和擦除操作。使用Freescale MK60硬件平台和MQX操作系统对该Flash文件系统进行测试和现场验证,结果表明,该文件系统资源占用少、可靠性高,能满足远程自动抄表系统数据存储要求。

关键词: 远程自动抄表系统, 数据采集, Flash文件系统, 串行Flash, 数据安全

Abstract: For remote Automatic Meter Reading(AMR) systems that require high reliability data storage characteristics,a power failsafe and minimal footprint lightweight Flash file system is designed.The file system uses a hierarchical,modular,and cross-platform design and has great flexibility and versatility,and can be easily ported to a variety of resources limited platforms like ARM Cortex-M Micro Control Unit(MCU).For the realization of power fail-safe,a design method similar to the journaling file system is used.The Flash space is divided into 5 regions.Numbers of physical pages are used as the management area,recording the operations of safe erase and write operations.Finally,a hardware platform based on Freescale MK60 and MQX RTOS is used to test the file system.The results indicate that the file system is less resource consumption,has high reliability,and can meet the data storage requirements of AMR systems.

Key words: remote Automatic Meter Reading(AMR) system, data acquisition, Flash file system, serial Flash, data security

中图分类号: