一种无线代码可靠更新系统研究与设计.docVIP

  • 3
  • 0
  • 约7.81千字
  • 约 14页
  • 2018-08-13 发布于福建
  • 举报

一种无线代码可靠更新系统研究与设计.doc

一种无线代码可靠更新系统研究与设计

一种无线代码可靠更新系统的研究与设计   摘 要:传感节点投入运行后,遇到软件错误或功能升级都需要更新节点的程序,但是传统的现场烧写方式比较繁琐。为了解决该问题,以ARM Cortex M0+内核的MKW01Z128无线射频芯片为基础,设计了一套成本低、实时性好、可靠性高的无线代码更新系统。该系统采用串口和无线射频相结合的通信技术,对片上FLASH进行合理划分,设计了Bootloader对传感节点程序进行代码更新,同时增加了通信帧格式和丢帧重传机制来确保数据传输的可靠性。对更新系统的性能进行了测试,测试结果表明该系统能可靠地实现空旷环境下200 m内的无线代码更新,具有较好的应用前景。   关键词: MKW01Z128; 无线代码更新; Bootloader; 丢帧重传; 可靠更新系统   中图分类号: TN925+.92 文献标识码: A 文章编号: 1004?373X(2016)04?0067?05   Abstract:When sensor nodes are put into operation, a program of firmware updating is needed for any software malfunction or function upgrade. The tradition solution to program in the field is inconvenient and usually hard to achieve. To solve this problem, a low?cost, well real?time performance and highly reliable wireless code update system was designed, which is based on a RF chip MKW01Z128 with RF Cortex MO+core. This chip is made by Freescale Semiconductor in 2013. With the communication technology combining serial port with RF, the Flash memory is reasonably partitioned in the system. Bootloader was designed to update the code of sensor node program. A communication frame format and a lost frame retransmission mechanism were added to make sure the reliability of data transmission. Performance of the update system was tested. The test result shows that the system can achieve reliable wireless code updating within 200 m radius in the open field. Thus it has a good application prospect.   Keywords: MKW01Z128; wireless code update; Bootloader; lost frame retransmission; reliable update system   0 引 言   随着物联网技术的快速发展,在无线传感器网络等领域,无线代码更新技术愈发显得必不可少[1]。传感节点投入运行后,难免会出现软件错误或要进行程序升级,此时在线升级需要大量的人力、物力,比较麻烦。而且传统的远程代码更新系统涉及GPRS、ZigBee、以太网等多种技术[2?3],设计周期长、研发成本高、代码更新的时间较长。对于很多近距离的无线传感节点程序更新来说,例如LED屏控制芯片的程序更新、水质监测芯片的程序更新等,简单、高效、可靠的近距离无线代码更新系统显得格外重要。基于此,本文深入剖析机器码格式、Bootloader机制、数据传输丢帧等技术要点,在基于ARM Cortex M0+内核的MKW01Z128芯片的无线传感节点上设计了Bootloader。无线接收到的代码先存放于更新程序区,丢帧重传机制确保数据的准确接收,最后在接收到代码更新指令后将存储到更新程序区中代码复制到MCU FLASH的指定位置,并通过PC指针跳转来实现代码更新。   1 系统介绍   本文搭建了一套集串口和无线射频等技术为一体的无线

文档评论(0)

1亿VIP精品文档

相关文档