Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Motes in an OpenWSN network publish data to IPv6 addresses, usually over UDP, usually using CoAP formatting. An endPoint is a (new) program which you can run on the destination computer, and which parses and publishes the data it receives from the motes.

It is pure Python and lives here. The idea is:

  • it listens for packet, typically on a UDP port
  • the data gets timestamped, and passed to a parser
  • the parsed packet gets passed to a list of publishers
  • each publisher publishes the data at it wants

Publication can be:

  • print on screen
  • log to file
  • present in JSON format as a web service
  • log to Google spreadsheet
  • tweet
  • SMS
  • etc.

An endPoint is assembled by choosing a listener, a parser and a number of publishers. Examples are:

  • endPointTest.pyconsists of:
    • a dummy listener which (virtually) receives a 10-byte packet every second
    • a parser which considers the entire UDP payload is a single field
    • a publisher which writes to screen
  • endPointUdpRaw.pyconsists of:
    • a listener which listens to UDP port 61000
    • a parser which considers the entire UDP payload is a single field
    • a publisher which writes to screen

You can use the latter in conjunction with the udprand sample application running on the mote.

The wish list for the endPoints is infinite:

  • a parser specific for CoAP
  • web.py based publisher which presents the data as JSON
  • D3js-based web visualization of that data
  • etc.

If you get inspired and want to contribute, don't hesitate to contact Thomas Watteyne!

  • No labels