摘要
为解决一般防插拔写入方法使用空间和写入次数多、造成用户写入数据耗时过长的问题,提出一种高效、可靠、快速的文件防插拔写入方法,并在自行设计的智能卡操作系统上的实现。通过查询状态机的状态跳转,进行数据写入、数据恢复、备份数据写入、目标区域写入等一系列的过程最终完成防插拔写入。该方法具有高度的独立性,可应用于各种写入场景,对其他模块的正常工作不造成影响,易于实现。通过在临时区进行数据组合,减少了写入次数,提高了写入效率,同时通过优化状态机,减少了状态机跳转,提高了方法的执行效率。实际应用表明,该设计具有写入速度快,占用内存空间小的特点,达到设计要求。
In order to solve the problem of consuming too much paper puts forward a kind of efficient, reliable, fast time and memory by the general anti-plug file writing method, this anti-plug file writing method, and implements it in a smart card operating system designed by authors. By querying the state machine whether to write data, or recovery data, or backup data, or write target area and finally finish the anti-plugging writingis decided. The method has a high degree of independence, can be applied to a variety of writing scene, has no effect on the other modules,and is easy to realize. It can reduce the times of writing and improve the writing efficiency by combining data in temporary region. At the same time, by optimizing state machine, it can reduce the states, improve efficiency in the implementation of the mechanism. The practical application shows that, the design write data faster, occupies less memory space, which meet the design requirements.
出处
《自动化技术与应用》
2013年第2期24-27,共4页
Techniques of Automation and Applications
基金
广东省高新技术产业开发区引导专项目资金项目(编号2010A011300018)
关键词
智能卡
防插拔
文件写入
smart card
anti-plugging
file writin