HTTP协议与JSON格式在ZStack中的实现与应用
DOI:
作者:
作者单位:

华中师范大学 物理科学与技术学院武汉430079

作者简介:

通讯作者:

中图分类号:

TP274.2

基金项目:


Implementation and application of HTTP protocol and JSON format in ZStack
Author:
Affiliation:

College of Physical Science and Technology,Central China Normal University,Wuhan430079,China

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    ZStack是TI公司推出的符合ZigBee标准的协议栈,专注于构建低功耗、低速率的无线传感器网络。针对该协议栈无法直接接入互联网,提出了HTTP协议在ZStack中的应用方案。首先通过以太网芯片ENC28J60将uIP协议栈移植到ZStack中,实现了ZigBee网络便捷接入互联网;其次对 uIP协议栈中的TCP客户端模式进行封装,实现了HTTP协议的POST请求,采用互联网中通用的JSON标记语言传输数据到PC数据库,保证了通信的简单高效;最后采用此方案采集温湿度信息并传输到后台,在WEB端实现温湿度曲线的实时绘制与ZigBee网络的拓扑显示。

    Abstract:

    TI ZStack, a protocol stack up to ZigBee standard, focused on building low power, low rate wirelss sensor network(WSN). Aiming at it’s not direct access to the Internet, the application of HTTP protocal in ZStack is provided. Firstly, With the aid of the network chip ENC28J60, uIP protocal is ported to the ZStack providing the ZigBee easy access to the internet. Secondly, encapsulating the TCP client mode in the uIP protocol stack realizes the POST requirement in the HTTP protocal. JSON markup language widely used in the internet is adopted to transfer data to the PC datebase so the simple and effective communication is ensured. Finally, with the use of this program collecting temperature and humility and transfer the related data to backstage, and realize the realtime data curve drawing of temperature and humidity and displaying of ZigBee network topology.

    参考文献
    相似文献
    引证文献
引用本文

卢少军,过丹婷,刘守印. HTTP协议与JSON格式在ZStack中的实现与应用[J].电子测量技术,2016,39(11):100-104

复制
分享
文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2016-12-30
  • 出版日期: