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

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

Clc Number:

TP274.2

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    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.

    Reference
    Related
    Cited by
Get Citation
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:
  • Revised:
  • Adopted:
  • Online: December 30,2016
  • Published:
Article QR Code