Media Types for Sensor Markup Language (SenML)
draft-ietf-core-senml-00

The information below is for an old version of the document
Document Type Active Internet-Draft (core WG)
Last updated 2016-04-23 (latest revision 2016-04-19)
Replaces draft-jennings-core-senml
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf html bibtex
Stream WG state WG Document (wg milestone: Aug 2016 - Media Types for Sens... )
Document shepherd No shepherd assigned
IESG IESG state AD is watching
Consensus Boilerplate Unknown
Telechat date
Responsible AD Alexey Melnikov
Send notices to (None)
Network Working Group                                        C. Jennings
Internet-Draft                                                     Cisco
Intended status: Standards Track                               Z. Shelby
Expires: October 21, 2016                                            ARM
                                                                J. Arkko
                                                              A. Keranen
                                                                Ericsson
                                                          April 19, 2016

             Media Types for Sensor Markup Language (SenML)
                        draft-ietf-core-senml-00

Abstract

   This specification defines media types for representing simple sensor
   measurements and device parameters in the Sensor Markup Language
   (SenML).  Representations are defined in JavaScript Object Notation
   (JSON), Concise Binary Object Representation (CBOR), eXtensible
   Markup Language (XML), and Efficient XML Interchange (EXI), which
   share the common SenML data model.  A simple sensor, such as a
   temperature sensor, could use this media type in protocols such as
   HTTP or CoAP to transport the measurements of the sensor or to be
   configured.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at http://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on October 21, 2016.

Copyright Notice

   Copyright (c) 2016 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

Jennings, et al.        Expires October 21, 2016                [Page 1]
Internet-Draft                Sensor Markup                   April 2016

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (http://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Overview  . . . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Requirements and Design Goals . . . . . . . . . . . . . . . .   3
   3.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   5
   4.  Semantics . . . . . . . . . . . . . . . . . . . . . . . . . .   5
   5.  Associating Meta-data . . . . . . . . . . . . . . . . . . . .   8
   6.  JSON Representation (application/senml+json)  . . . . . . . .   8
     6.1.  Examples  . . . . . . . . . . . . . . . . . . . . . . . .   9
       6.1.1.  Single Datapoint  . . . . . . . . . . . . . . . . . .   9
       6.1.2.  Multiple Datapoints . . . . . . . . . . . . . . . . .   9
       6.1.3.  Multiple Measurements . . . . . . . . . . . . . . . .  10
       6.1.4.  Collection of Resources . . . . . . . . . . . . . . .  11
   7.  CBOR Representation (application/senml+cbor)  . . . . . . . .  12
   8.  XML Representation (application/senml+xml)  . . . . . . . . .  13
   9.  EXI Representation (application/senml-exi)  . . . . . . . . .  15
   10. Usage Considerations  . . . . . . . . . . . . . . . . . . . .  19
   11. CDDL  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  20
   12. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  21
     12.1.  Units Registry . . . . . . . . . . . . . . . . . . . . .  21
     12.2.  SenML label registry . . . . . . . . . . . . . . . . . .  24
     12.3.  Media Type Registration  . . . . . . . . . . . . . . . .  24
       12.3.1.  senml+json Media Type Registration . . . . . . . . .  24
       12.3.2.  senml+cbor Media Type Registration . . . . . . . . .  25
       12.3.3.  senml+xml Media Type Registration  . . . . . . . . .  26
       12.3.4.  senml-exi Media Type Registration  . . . . . . . . .  27
     12.4.  XML Namespace Registration . . . . . . . . . . . . . . .  28
     12.5.  CoAP Content-Format Registration . . . . . . . . . . . .  28
   13. Security Considerations . . . . . . . . . . . . . . . . . . .  28
   14. Privacy Considerations  . . . . . . . . . . . . . . . . . . .  29
Show full document text