Media Types for Sensor Measurement Lists (SenML)
draft-ietf-core-senml-05

Document Type Active Internet-Draft (core WG)
Last updated 2017-03-13
Replaces draft-jennings-core-senml
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf html bibtex
Stream WG state WG Document Aug 2016
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: September 14, 2017                                          ARM
                                                                J. Arkko
                                                              A. Keranen
                                                                Ericsson
                                                              C. Bormann
                                                 Universitaet Bremen TZI
                                                          March 13, 2017

            Media Types for Sensor Measurement Lists (SenML)
                        draft-ietf-core-senml-05

Abstract

   This specification defines media types for representing simple sensor
   measurements and device parameters in the Sensor Measurement Lists
   (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 September 14, 2017.

Jennings, et al.       Expires September 14, 2017               [Page 1]
Internet-Draft                    SenML                       March 2017

Copyright Notice

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

   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 . . . . . . . . . . . . . . . .   4
   3.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   5
   4.  SenML Structure and Semantics . . . . . . . . . . . . . . . .   5
     4.1.  Base attributes . . . . . . . . . . . . . . . . . . . . .   6
     4.2.  Regular attributes  . . . . . . . . . . . . . . . . . . .   6
     4.3.  Considerations  . . . . . . . . . . . . . . . . . . . . .   7
     4.4.  Resolved Records  . . . . . . . . . . . . . . . . . . . .   8
     4.5.  Associating Meta-data . . . . . . . . . . . . . . . . . .   8
   5.  JSON Representation (application/senml+json)  . . . . . . . .   9
     5.1.  Examples  . . . . . . . . . . . . . . . . . . . . . . . .  10
       5.1.1.  Single Datapoint  . . . . . . . . . . . . . . . . . .  10
       5.1.2.  Multiple Datapoints . . . . . . . . . . . . . . . . .  10
       5.1.3.  Multiple Measurements . . . . . . . . . . . . . . . .  11
       5.1.4.  Resolved Data . . . . . . . . . . . . . . . . . . . .  12
       5.1.5.  Multiple Data Types . . . . . . . . . . . . . . . . .  13
       5.1.6.  Collection of Resources . . . . . . . . . . . . . . .  13
       5.1.7.  Setting an Actuator . . . . . . . . . . . . . . . . .  14
   6.  CBOR Representation (application/senml+cbor)  . . . . . . . .  15
   7.  XML Representation (application/senml+xml)  . . . . . . . . .  17
   8.  EXI Representation (application/senml+exi)  . . . . . . . . .  19
   9.  Fragment Identification Methods . . . . . . . . . . . . . . .  22
     9.1.  Fragment Identification Examples  . . . . . . . . . . . .  22
   10. Usage Considerations  . . . . . . . . . . . . . . . . . . . .  23
   11. CDDL  . . . . . . . . . . . . . . . . . . . . . . . . . . . .  24
   12. IANA Considerations . . . . . . . . . . . . . . . . . . . . .  25
Show full document text