基于JSON的离线数据同步策略及应用
作者:
基金项目:

中国科学院西部之光人才培养计划项目(XBBS201319);新疆维吾尔自治区青年科技创新人才培养工程基金项目(2014721033)


Offline Data Synchronization Strategy Based on JSON and its Application
Author:
  • 摘要
  • | |
  • 访问统计
  • |
  • 参考文献 [10]
  • |
  • 相似文献 [20]
  • | | |
  • 文章评论
    摘要:

    针对智能移动应用的特殊性及其在离线情况下的数据同步问题,提出了一种数据同步方案,使用JSON技术设计数据交换协议,移动端离线数据存放在SQLite数据库中、使用基于时间戳的冲突检测算法提高同步的准确性,并采用增量同步方式保证同步的效率和准确性. 将该策略应用在智慧安防系统中,结果表明,基于JSON离线数据同步效率相比传统基于XML的方案提高约8%.

    Abstract:

    In view of the particularity of intelligent mobile applications and its data offline synchronization problems, we put forward a scheme of data synchronization, using JSON technology to design data exchange protocol and the SQLite database to store the mobile terminal offline data, using the conflict detection algorithm based on time stamp to improve the accuracy of synchronization as well as the incremental synchronization mode to ensure the efficiency and accuracy of synchronization. This proposed method is applied to an intelligent security system, and the results show that the efficiency of offline data synchronization based on JSON is about 8% higher than that of the traditional XML based scheme.

    参考文献
    [1] Imam AA, Basri S, Ahmad R. Data synchronization between mobile devices and server-side databases: A systematic literature review. Journal of Theoretical & Applied Information Technology, 2015, 81(2): 364-382.
    [2] Choi MY, Cho EA, Park DH, et al. A database synchroni-zation algorithm for mobile devices. IEEE Trans. on Consumer Electronics, 2010, 56(2): 392-398. [DOI:10.1109/TCE.2010.5505945]
    [3] Sethia D, Mehta S, Chowdhary A, et al. MRDMS-mobile replicated database management synchronization. Proc. of International Conference on Signal Processing and Integrated Networks. Noida, India. 2014. 624-631.
    [4] 郝平, 林原冲. 一种移动网络下基于双时间戳的数据增量同步研究. 计算机应用与软件, 2016, 33(4): 143-145, 226.
    [5] 知乎. Android 开发时, 如何实现和服务器的数据同步? https://www.zhihu.com/question/19708808. [2016-06-14].
    [6] 陈俊龙. Android平台的数据传输与同步的设计与实现[硕士学位论文]. 北京: 北京邮电大学, 2015.
    [7] Imam AA, Basri S. Data synchronization patterns in mobile application design[J]. Journal of Theoretical and Applied Information Technology, 2015, 81(2): 364-382.
    [8] 刘宇, 戴鸿君, 郭凤华, 等. Android平台可增量同步的网络应用协议. 计算机工程, 2011, 37(18): 59-61. [DOI:10.3969/j.issn.1000-3428.2011.18.020]
    [9] w3schools. JSON introduction. http://www.w3schools.in/json/intro/. [2016-11-01].
    [10] Carmatec. Hybrid apps vs native apps in the mobile app development world. http://www.carmatec.com/blog/hybrid-apps-vs-native-apps. [2015-08-13].
    引证文献
    网友评论
    网友评论
    分享到微博
    发 布
引用本文

穆鑫鑫,蒋同海,程力,马玉鹏.基于JSON的离线数据同步策略及应用.计算机系统应用,2017,26(12):257-261

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2017-03-08
  • 最后修改日期:2017-03-27
  • 在线发布日期: 2017-12-07
文章二维码
您是第11325681位访问者
版权所有:中国科学院软件研究所 京ICP备05046678号-3
地址:北京海淀区中关村南四街4号 中科院软件园区 7号楼305房间,邮政编码:100190
电话:010-62661041 传真: Email:csa (a) iscas.ac.cn
技术支持:北京勤云科技发展有限公司

京公网安备 11040202500063号